-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontact.py
128 lines (106 loc) · 3.38 KB
/
contact.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
from tkinter import *
from tkinter import ttk
from generate import Generate
from correct import Correct
from home import Home
def btn_clicked():
print('HI')
class Contact(ttk.Frame):
def btn_clicked(self):
print('Clicked')
def quitf(self):
self.quit()
def __init__(self, container):
super().__init__(container)
self.canvas = Canvas(
bg="#00766f",
height=500,
width=800,
bd=0,
highlightthickness=0,
relief="ridge")
self.canvas.place(x=0, y=0)
self.background_img = PhotoImage(file=f"./src/contact/background.png")
background = self.canvas.create_image(
400.0, 250.0,
image=self.background_img)
self.img0 = PhotoImage(file=f"./src/contact/img0.png")
b0 = Button(
image=self.img0,
borderwidth=0,
highlightthickness=0,
command=lambda: container.show_frame(Home,None,None,None,None,None),
relief="flat")
b0.place(
x=599, y=21,
width=25,
height=25)
self.img1 = PhotoImage(file=f"./src/contact/img1.png")
b1 = Button(
image=self.img1,
borderwidth=0,
highlightthickness=0,
command=lambda: container.show_frame(Correct,None,None,None,None,None),
relief="flat")
b1.place(
x=635, y=21,
width=25,
height=25)
self.img2 = PhotoImage(file=f"./src/contact/img2.png")
b2 = Button(
image=self.img2,
borderwidth=0,
highlightthickness=0,
command=self.quitf,
relief="flat")
b2.place(
x=706, y=21,
width=25,
height=25)
self.img3 = PhotoImage(file=f"./src/contact/img3.png")
b3 = Button(
image=self.img3,
borderwidth=0,
highlightthickness=0,
command=lambda: container.show_frame(Generate,None,None,None,None,None),
relief="flat")
b3.place(
x=671, y=21,
width=25,
height=25)
self.img4 = PhotoImage(file=f"./src/contact/img4.png")
b4 = Button(
image=self.img4,
borderwidth=0,
highlightthickness=0,
command=btn_clicked,
relief="flat")
b4.place(
x=57, y=14,
width=162,
height=39)
self.canvas.create_text(
400.5, 121.5,
text="Contactez-moi:",
fill="#ffffff",
font=("Kanit Bold", int(34.36180877685547)))
self.canvas.create_text(
400.0, 232.5,
text="Yassine El Haddad",
fill="#000000",
font=("Kanit Regular", int(29.166667938232422)))
self.canvas.create_text(
399.5, 271.0,
text="services divers de développement informatique.",
fill="#000000",
font=("Lato Regular", int(16.33333396911621)))
self.canvas.create_text(
399.5, 334.5,
text="0619666722",
fill="#000000",
font=("Kanit Regular", int(21.0)))
self.canvas.create_text(
400.0, 365.5,
text="yassine.e@aol.com",
fill="#000000",
font=("Kanit Regular", int(21.0)))