Tkinter Confusion

7stud bbxx789_05ss at
Mon Feb 18 02:26:31 CET 2008

MartinRineh... at wrote:
> Do I use
> Tk() or toplevel()? (Support for both and if a cogent explanation of
> the differences exists, I didn't find it.)

If you close the window created by Tk(), the program terminates.  If
you close a window created by Toplevel() only that window closes.  The
Tk() window remains open and the program continues to execute.

More information about the Python-list mailing list