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/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to