yeh, I am using IDLE.
why, is it a problem??

 
On 10/10/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:
>
>
> Folks,
>
> 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 ( )*
>
shouldn't you mainloop your root?
also, are you using IDLE?
> Thanks.
>
> Regards,
> Asrar
>
>
> --
> To HIM you shall return.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>




--
To HIM you shall return.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to