Tkinter Confusion

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


MartinRineh... at gmail.com 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