[Tutor] I am using PythonwinRe: Help me with this Tkinter code

Asrarahmed Kadri ajkadri at googlemail.com
Wed Oct 11 11:51:40 CEST 2006


I am using Pythonwin.

Please help me resolve the issue. I have the following error message (in
blue text):



*Microsoft Visual C++ Runtime Library*

* Runtime Error!
 Program: C:\python\Lib\site-packages\pythonwin\Pythonwin.exe*

* This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more inforamtion.*
Help me out......
Regards,
Asrar

On 10/11/06, Alan Gauld <alan.gauld at btinternet.com> wrote:
>
> > yeh, I am using IDLE.
> > why, is it a problem??
>
> IDLE is a Tkinter program.
> So you are trying to run a Tkinter program inside a Tkinter program
> which can confuse things. The latest versions of IDLE are a lot better
> but I stilll strongly recommend running any Tkinter , indeed any
> GUI) programme, from the OS prompt - or by double clicking in
> Windows exploder
>
> Alan G.
>
> > On 10/10/06, Luke Paireepinart <rabidpoobear at gmail.com> 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 at python.org
> >> > http://mail.python.org/mailman/listinfo/tutor
> >> >
> >>
> >>
> >
> >
> > --
> > To HIM you shall return.
> >
>
>
>
> --------------------------------------------------------------------------------
>
>
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>



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


More information about the Tutor mailing list