Advertisement
cendolinside

Home

Sep 25th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.63 KB | None | 0 0
  1. from tkinter import *
  2. from cekWin import ui1,ui2,ui3
  3. from GUI1 import GUI1
  4. from GUI2 import GUI2
  5. from GUI3 import GUI3
  6.  
  7. class Home(GUI1,GUI2,GUI3):
  8.     def HomeMenu():
  9.         ui = Tk()
  10.         ui.title("Home")
  11.         ui.geometry("400x400")
  12.         frame1 = Frame(ui)
  13.         frame1.pack()
  14.         buttonUI = Button(ui,text = "Table",command = lambda: Home.process())
  15.         buttonUI.place(x = 90,y = 70)
  16.  
  17.         buttonUI2 = Button(ui,text = "Input",command = lambda: Home.process2())
  18.         buttonUI2.place(x = 180,y = 70)
  19.  
  20.         buttonUI3 = Button(ui,text = "Read",command = lambda: Home.process3())
  21.         buttonUI3.place(x = 270,y = 70)
  22.  
  23.         ui.mainloop()
  24.  
  25.     def process():
  26.         global ui2
  27.         global ui3
  28.         global ui1
  29.         if ui2 == True:
  30.             print("Another Windows is Opened")
  31.         elif ui3 == True:
  32.             print("Another Windows is Opened")
  33.         else:
  34.             GUI1.Table()
  35.             ui1 = True
  36.        
  37.  
  38.     def process2():
  39.         global ui2
  40.         global ui3
  41.         global ui1
  42.         if ui1 == True:
  43.             print("Another Windows is Opened")
  44.         elif ui3 == True:
  45.             print("Another Windows is Opened")
  46.         else:
  47.             GUI2.Input()
  48.             ui2 = True
  49.  
  50.     def process3():
  51.         global ui2
  52.         global ui3
  53.         global ui1
  54.         if ui2 == True:
  55.             print("Another Windows is Opened")
  56.         elif ui1 == True:
  57.             print("Another Windows is Opened")
  58.         else:
  59.             GUI3.Read()
  60.             ui3 = True
  61.  
  62.            
  63.  
  64. Home.HomeMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement