468,115 Members | 2,079 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,115 developers. It's quick & easy.

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


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

Jul 18 '05 #1
3 2721
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>


Jul 18 '05 #2
"Fredrik Lundh" <fr*****@pythonware.com> wrote in message
news:ma**********************************@python.o rg...
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>


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

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

RT


Jul 18 '05 #3
Richard Townsend wrote:
"Fredrik Lundh" <fr*****@pythonware.com> wrote in message
news:ma**********************************@python.o rg...
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>


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

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


Update installed. Problem's gone.
Many thanks.
TK
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by sreekant | last post: by
3 posts views Thread by Ivan Letal | last post: by
reply views Thread by Wesley Kincaid | last post: by
2 posts views Thread by Michael Zhang | last post: by
8 posts views Thread by aine_canby | last post: by
5 posts views Thread by exhuma.twn | last post: by
5 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.