Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from cekWin import ui1,ui2,ui3
- from GUI1 import GUI1
- from GUI2 import GUI2
- from GUI3 import GUI3
- class Home(GUI1,GUI2,GUI3):
- def HomeMenu():
- ui = Tk()
- ui.title("Home")
- ui.geometry("400x400")
- frame1 = Frame(ui)
- frame1.pack()
- buttonUI = Button(ui,text = "Table",command = lambda: Home.process())
- buttonUI.place(x = 90,y = 70)
- buttonUI2 = Button(ui,text = "Input",command = lambda: Home.process2())
- buttonUI2.place(x = 180,y = 70)
- buttonUI3 = Button(ui,text = "Read",command = lambda: Home.process3())
- buttonUI3.place(x = 270,y = 70)
- ui.mainloop()
- def process():
- global ui2
- global ui3
- global ui1
- if ui2 == True:
- print("Another Windows is Opened")
- elif ui3 == True:
- print("Another Windows is Opened")
- else:
- GUI1.Table()
- ui1 = True
- def process2():
- global ui2
- global ui3
- global ui1
- if ui1 == True:
- print("Another Windows is Opened")
- elif ui3 == True:
- print("Another Windows is Opened")
- else:
- GUI2.Input()
- ui2 = True
- def process3():
- global ui2
- global ui3
- global ui1
- if ui2 == True:
- print("Another Windows is Opened")
- elif ui1 == True:
- print("Another Windows is Opened")
- else:
- GUI3.Read()
- ui3 = True
- Home.HomeMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement