[Tutor] Help me with this Tkinter code

Asrarahmed Kadri ajkadri at googlemail.com
Tue Oct 10 23:50:46 CEST 2006


Just started to get my feet wet with basics of Tkinter Programming. Here is
a code which is giving me some problem; when I run it, it displays me the
button widget, but when I click it, the window doesn't goes away. the
program gets stuck up. Can anyone help me to resolve this issue??

*import sys
from Tkinter  import **

*root = Tk()
widget = Button(root, text='Hello widget world', command=root.quit)
widget.pack( )
widget.mainloop( )*


To HIM you shall return.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061010/4d693d0e/attachment.html 

More information about the Tutor mailing list