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