Mega Code Archive

 
Categories / Python / GUI Tk
 

Transient window of root

from Tkinter import * root = Tk() t2 = Toplevel(root) Label(t2, text='This is a transient window of root').pack(padx=10, pady=10) t2.transient(root) root.mainloop()