473,386 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2925
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sreekant | last post by:
Hi guys I am running slackware 9.0 with python 2.2.2 and previously under mandrake I wrote a few programs for personal use. Now the same progs work partly under the new environment. Mainly...
3
by: Ivan Letal | last post by:
I have just tried this code.. Tkinter import * root = Tk() def callback(event): print "clicked at", event.x, event.y frame = Frame(root, width=100, height=100)
0
by: Wesley Kincaid | last post by:
I'm attempting to run a simple query through MySQLdb's cursor.execute(). However, when the request includes a timestamp field, I'm getting "ValueError: invalid literal for int(): 9-." Could...
2
by: Michael Zhang | last post by:
My project uses Python-2.3.4 + Tkinter + PIL-1.1.4 to retrieve images from server and display those images. I created a thread (also a separate toplevel window) for displaying images and another...
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
8
by: aine_canby | last post by:
>>v = raw_input("Enter: ") Enter: kjjkj Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for int() with base 10: 'kjjkj' In my program I need...
5
by: exhuma.twn | last post by:
As many might know, windows allows to copy an image into the clipboard by pressing the "Print Screen" button on the keyboard. Is it possible to paste such an image from the clipboard into a "Text"...
11
by: davidj411 | last post by:
i am parsing a cell phone bill to get a list of all numbers and the total talktime spend on each number. i already have a unique list of the phone numbers. now i must go through the list of...
3
by: Tex08 | last post by:
I have hit a roadblock on a class project. Trying to implement the composite pattern with separate classes to represent a boolean expression. My literal class will not compile (g++, required...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.