Repository navigation
Expand file tree
/
Copy pathadd1_c.py
More file actions
44 lines (33 loc) · 1.44 KB
/
Copy pathadd1_c.py
File metadata and controls
44 lines (33 loc) · 1.44 KB
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
from tkinter import *
from PIL import ImageTk, Image
import os
import sys
root = Tk()
root.minsize(300,100)
root.geometry("1560x768")
root.title("Mathword_Problem_Hints")
root.configure(background="#99ccff")
def call1():
root.destroy()
os.system("python Home.py")
def call2():
root.destroy()
os.system("python add1.py")
def call3():
root.destroy()
photo1=PhotoImage(file="home2.png")
b = Button(root,image=photo1, font=('arial', 15, 'bold'), bd=16,bg="#012b74", fg="white", text="HOME", command=call1, height=128, width=220, compound=LEFT)
b.place(x = 40, y = 20)
photo2=PhotoImage(file="next3.png")
b = Button(root,image=photo2, font=('arial', 15, 'bold'), bd=16,bg="#012b74", fg="white", text="NEXT", command=call2, height=128, width=220, compound=LEFT)
b.place(x = 40, y = 240)
photo3=PhotoImage(file="exit.png")
b = Button(root,image=photo3, font=('arial', 15, 'bold'), bd=16,bg="#012b74", fg="white", text="EXIT", command=call3, height=128, width=220, compound=LEFT)
b.place(x = 40, y = 460)
photo4=PhotoImage(file="ay36.png")
b = Button(root,image=photo4, font=('arial', 15, 'bold'), bd=16,bg="#012b74", fg="white", height=570, width=530, compound=LEFT)
b.place(x = 370, y = 20)
photo5=ImageTk.PhotoImage(Image.open("boy.jpg"))
b = Button(root,image=photo5, font=('arial', 15, 'bold'),bd=8 ,bg="#012b74", fg="white",height=580, width=250, compound=LEFT)
b.place(x = 1000, y = 20)
mainloop()