-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwelcome.py
57 lines (48 loc) · 1.55 KB
/
welcome.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
from tkinter import ttk
class Welcome(ttk.Frame):
def btn_clicked(self):
print('Button Clicked')
def __init__(self, container):
super().__init__(container)
self.canvas = Canvas(
bg="#ffffff",
height=500,
width=800,
bd=0,
highlightthickness=0,
relief="ridge")
self.canvas.place(x=0, y=0)
self.background_img = PhotoImage(file=f"./src/welcome/background.png")
background = self.canvas.create_image(
399.5, 250.0,
image=self.background_img)
self.img0 = PhotoImage(file=f"./src/welcome/img0.png")
b0 = Button(
image=self.img0,
borderwidth=0,
highlightthickness=0,
command=lambda: container.show_frame(Signup,None,None,None,None,None),
relief="flat")
b0.place(
x=239, y=430,
width=137,
height=34)
self.img1 = PhotoImage(file=f"./src/welcome/img1.png")
b1 = Button(
image=self.img1,
borderwidth=0,
highlightthickness=0,
command=lambda: container.show_frame(Login,None,None,None,None,None),
relief="flat")
b1.place(
x=423, y=430,
width=137,
height=34)
self.canvas.create_text(
399.0, 389.5,
text="BIENVENUE SUR VIP GRADER!",
fill="#000000",
font=("Lato SemiBold", 23))
from tkinter import *
from signup import Signup
from login import Login