bug in Tkinter? invalid literal for int() line 1035

Fredrik Lundh fredrik at pythonware.com
Fri Jul 4 09:42:29 EDT 2003


Ton K. wrote:

> I get subject when binding <Button-1> to a listbox.
> The value for h is '??' which triggers the error.
> I'm running Python 2.2.2 from SuSE.

you're using a version of Tk that's newer than your Tkinter; that "??"
you're seeing how really recent versions of Tk represent an "undefined
integer value"...

this has been fixed in Python 2.3, so you can either upgrade Python
or link against an older Tk.

(or modify Tkinter.py slightly, adding try/except clauses around the
problem spots in Tkinter.py)

</F>








More information about the Python-list mailing list