-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.py
155 lines (129 loc) · 3.89 KB
/
home.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
from tkinter import ttk
def btn_clicked():
print('HI')
class Home(ttk.Frame):
def quitf(self):
self.quit()
def btn_clicked(self):
print("Button Clicked")
def __init__(self, container):
super().__init__(container)
canvas = Canvas(
bg="#ffffff",
height=500,
width=800,
bd=0,
highlightthickness=0,
relief="ridge")
canvas.place(x=0, y=0)
self.img0 = PhotoImage(file=f"./src/home/img0.png")
b0 = Button(
image=self.img0,
borderwidth=0,
highlightthickness=0,
command=lambda: container.show_frame(Generate,None,None,None,None,None),
relief="flat")
b0.place(
x=262, y=198,
width=78,
height=78)
self.img1 = PhotoImage(file=f"./src/home/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=457, y=198,
width=78,
height=78)
self.img2 = PhotoImage(file=f"./src/home/img2.png")
b2 = Button(
image=self.img2,
borderwidth=0,
highlightthickness=0,
command=self.quitf,
relief="flat")
b2.place(
x=457, y=334,
width=78,
height=78)
self.img3 = PhotoImage(file=f"./src/home/img3.png")
b3 = Button(
image=self.img3,
borderwidth=0,
highlightthickness=0,
command=lambda: container.show_frame(Contact,None,None,None,None,None),
relief="flat")
b3.place(
x=262, y=334,
width=78,
height=78)
canvas.create_text(
300.0, 298.0,
text="Générer un examen",
fill="#000000",
font=("Kanit Regular", 15))
canvas.create_text(
297.5, 438.0,
text="Contactez-moi",
fill="#000000",
font=("Kanit Regular", 15))
canvas.create_text(
498.5, 298.0,
text="Corriger un examen",
fill="#000000",
font=("Kanit Regular", 15))
canvas.create_text(
498.5, 438.0,
text="Quitter l'application",
fill="#000000",
font=("Kanit Regular", 15))
canvas.create_text(
399.0, 110,
text="Bienvenue sur VIP GRADER",
fill="#000000",
font=("Kanit Regular", 24))
canvas.create_text(
400.0, 148.5,
text="un logiciel rapide, puissant et pratique !",
fill="#4b4a4a",
font=("Lato SemiBold", 14))
self.img4 = PhotoImage(file=f"./src/home/img4.png")
b4 = Button(
image=self.img4,
borderwidth=0,
highlightthickness=0,
command=btn_clicked,
relief="flat")
b4.place(
x=33, y=21,
width=174,
height=41)
self.img5 = PhotoImage(file=f"./src/home/img5.png")
b5 = Button(
image=self.img5,
borderwidth=0,
highlightthickness=0,
command=btn_clicked,
relief="flat")
b5.place(
x=33, y=194,
width=132,
height=259)
self.img6 = PhotoImage(file=f"./src/home/img6.png")
b6 = Button(
image=self.img6,
borderwidth=0,
highlightthickness=0,
command=btn_clicked,
relief="flat")
b6.place(
x=632, y=194,
width=132,
height=259)
from tkinter import *
from generate import Generate
from contact import Contact
from correct import Correct