import sysfrom Tkinter import Toplevel, Button, Label win1 = Toplevel() # two independent windowswin2 = Toplevel() # but part of same process Button(win1, text='Spam', command=sys.exit).pack()Button(win2, text='SPAM', command=sys.exit).pack() Label(text='Popups').pack() # on default Tk() root windowwin1.mainloop()
Name (required)
email (will not be published) (required)
Website