Advertisement
cendolinside

GUI2

Sep 25th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from tkinter import *
  2. from cekWin import *
  3. #from Home import Home
  4. class GUI2:
  5.     def Input():
  6.         ui = Tk()
  7.         ui.title("Input")
  8.         ui.geometry("400x400")
  9.         frame1 = Frame(ui)
  10.         frame1.pack()
  11.        
  12.         ui.protocol('WM_DELETE_WINDOW', lambda:GUI2.doSomething(ui))
  13.  
  14.         ui.mainloop()
  15.  
  16.     def doSomething(ui):
  17.         global ui1
  18.         global ui2
  19.         global ui3
  20.  
  21.         ui2 = False
  22.  
  23.         ui.destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement