Tkinter Confusion

7stud bbxx789_05ss at yahoo.com
Sun Feb 17 20:26:31 EST 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