-
Notifications
You must be signed in to change notification settings - Fork 1
/
final.py
47 lines (34 loc) · 1.4 KB
/
final.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
import draw
import slider
import presenter
def game():
import main
import Tkinter as tk
root = tk.Tk()
bkgcolor='#D84315'
root.configure(background=bkgcolor)
label=tk.Label(root,text="Gesture Recognition Project",font=('arial black',12),fg="white",width=90,height=3,bg="purple")
label.pack()
frame1 = tk.Frame(root,bg=bkgcolor)
frame1.pack(padx=205,pady=25)
bframe1 = tk.Frame(root,bg=bkgcolor)
bframe1.pack(side=tk.BOTTOM,padx=205)
photo1 = tk.PhotoImage(file="1.png")
photo2 = tk.PhotoImage(file="2.png")
photo3 = tk.PhotoImage(file="3.png")
photo4 = tk.PhotoImage(file="4.png")
# create the image button, image is above (top) the optional text
button1 = tk.Button(frame1, width=255, height=255, image=photo1,text="Cat and Mouse Game",fg="black",bg="white" ,command=game )
button1.pack(side=tk.LEFT)
button1.image = photo1
button2 = tk.Button(frame1, width=255, height=255, image=photo3,text="Slide Presenter",fg="purple",bg="white",command = presenter.main)
button2.pack(side=tk.LEFT,padx=25)
button2.image = photo1
button3 = tk.Button(bframe1, width=255, height=255, image=photo2,text="Scroller",fg="green",bg="white",command = slider.main)
button3.pack(side=tk.LEFT)
button3.image = photo1
button4 = tk.Button(bframe1, width=255, height=255, image=photo4,text="Drawing Board",fg="blue",bg="white", command = draw.main)
button4.pack(side=tk.LEFT,padx=25)
button4.image = photo1
# start the event loop
root.mainloop()