Error with Tkinter and tkMessageBox
Fabio Z Tessitore
fabioztessitore at libero.it
Tue Jul 31 15:24:13 EDT 2007
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!
More information about the Python-list
mailing list