No default root : Toplevel : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Toplevel »

 

No default root


No default root
import Tkinter
from Tkinter import Tk, Button
Tkinter.NoDefaultRoot()
     
win1 = Tk()         # two independent root windows
win2 = Tk()
     
Button(win1, text='Spam', command=win1.destroy).pack()
Button(win2, text='SPAM', command=win2.destroy).pack()
win1.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Toplevel