[Tutor] tkinter question
Alan Gauld
alan.gauld at btinternet.com
Sat Apr 28 01:54:38 CEST 2012
On 27/04/12 05:08, Khalid Al-Ghamdi wrote:
> I've created this simple window with two widgets (a label and a button)
> the button is supposed to exit the root window, but the problem is it
> doesn't seem to,
> top=tkinter.Tk()
> ...
> tkinter.mainloop()
try
top.mainloop()
I'm not sure if that makes a difference but it is usual to call
mainloop() on the root widget, calling at the module level may do
something strange...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list