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

T

Ton K.

Folks,

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.
Please help
TK
 
F

Fredrik Lundh

Ton said:
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>
 
R

Richard Townsend

Fredrik Lundh said:
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>

If you are running SuSE 8.2 there is a fix on
http://www.suse.de/en/private/download/updates/82_i386.html for this
problem.

Look for the python-tk 2.2.2 link, dated 18 April 2003.

RT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top