What are the errors in a simpliest Tix application?
klappnase
klappnase at web.de
Wed Dec 10 12:19:55 EST 2003
??????? ??????? <eugine_kosenko at ukr.net> wrote in message news:<mailman.14.1071031876.9307.python-list at python.org>...
> As the Python Library manual says, the only thing I need to use Tix is to
> replace Tkinter in the last program to Tk:
>
> import Tix
>
> root = Tix.Tk()
> widget = Tix.Button(root)
>
> However, I have got the next exception tracelist:
>
> Traceback (most recent call last):
> File "tix.py", line 4, in ?
> widget = Tix.Button(root)
> File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 1906, in __init__
> Widget.__init__(self, master, 'button', cnf, kw)
> File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 1835, in __init__
> self.tk.call(
> _tkinter.TclError: expected integer but got "-"
>
Does the manual say so? I never heard about this, I always use something like:
import Tkinter
import Tix
root = Tix.Tk()
button = Tkinter.Button(root)
etc...
This way I never had problems.
Cheers
Michael
More information about the Python-list
mailing list