<div>yeh, I am using IDLE.</div>
<div>why, is it a problem??<br><br> </div>
<div><span class="gmail_quote">On 10/10/06, <b class="gmail_sendername">Luke Paireepinart</b> <<a href="mailto:rabidpoobear@gmail.com">rabidpoobear@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Asrarahmed Kadri wrote:<br>><br>><br>> Folks,<br>><br>> Just started to get my feet wet with basics of Tkinter Programming.
<br>> Here is a code which is giving me some problem; when I run it, it<br>> displays me the button widget, but when I click it, the window doesn't<br>> goes away. the program gets stuck up. Can anyone help me to resolve
<br>> this issue??<br>><br>> *import sys<br>> from Tkinter import **<br>><br>> *root = Tk()<br>> widget = Button(root, text='Hello widget world', command=root.quit)<br>> widget.pack( )<br>> widget.mainloop
( )*<br>><br>shouldn't you mainloop your root?<br>also, are you using IDLE?<br>> Thanks.<br>><br>> Regards,<br>> Asrar<br>><br>><br>> --<br>> To HIM you shall return.<br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>> <a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor
</a><br>><br><br></blockquote></div><br><br clear="all"><br>-- <br>To HIM you shall return.