Error with Tkinter and tkMessageBox

jim-on-linux inq1ltd at inqvista.com
Tue Jul 31 18:45:57 EDT 2007


On Tuesday 31 July 2007 15:24, Fabio Z Tessitore 
wrote:
> Il Tue, 31 Jul 2007 19:12:48 +0000, kyosohma ha 
scritto:
> > I'm not sure, but I don't think you need the
> > "win" variable at all. I can get it to work
> > as follows:
> >
> > <code>
> >
> > from Tkinter import *
> > from tkMessageBox import showinfo
> >
> > def reply():
> >         showinfo(title='ciao',
> > message='hello')
> >
> > Button(text='press me',
> > command=reply).pack(fill=X) mainloop()
> >
> > </code>
> >
> > Mike
>
> You're right. But the problem I have is always
> there. Tkinter doesn't work properly and I
> don't understand why. Thanks!


Try This:

 def reply():
         showinfo('ciao','hello')

jim-on-linux
http://www.inqvista.com



More information about the Python-list mailing list