Advertisement
cendolinside

GUI3

Sep 25th, 2017
101
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.  
  4. class GUI3:
  5.     def Read():
  6.         ui = Tk()
  7.         ui.title("Read")
  8.         ui.geometry("400x400")
  9.         frame1 = Frame(ui)
  10.         frame1.pack()
  11.        
  12.         ui.protocol('WM_DELETE_WINDOW', lambda:GUI3.doSomething(ui))
  13.        
  14.         ui.mainloop()
  15.     def doSomething(ui):
  16.         global ui1
  17.         global ui2
  18.         global ui3
  19.  
  20.         ui3 = False
  21.  
  22.         ui.destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement