Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > bug in Tkinter? invalid literal for int() line 1035

Reply
Thread Tools

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

 
 
Ton K.
Guest
Posts: n/a
 
      07-04-2003

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

 
Reply With Quote
 
 
 
 
Fredrik Lundh
Guest
Posts: n/a
 
      07-04-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>




 
Reply With Quote
 
 
 
 
Richard Townsend
Guest
Posts: n/a
 
      07-04-2003
"Fredrik Lundh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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




 
Reply With Quote
 
Ton K.
Guest
Posts: n/a
 
      07-07-2003
Richard Townsend wrote:
> "Fredrik Lundh" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>>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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: illegal line end in character literal in escaped unicode CARRIAGERETURN / NEW LINE Joshua Cranmer Java 0 05-15-2009 02:50 PM
Re: illegal line end in character literal in escaped unicode CARRIAGERETURN / NEW LINE Lew Java 0 05-15-2009 02:38 PM
Re: illegal line end in character literal in escaped unicode CARRIAGERETURN / NEW LINE Mark Space Java 0 05-15-2009 02:35 PM
Re: illegal line end in character literal in escaped unicode CARRIAGE RETURN / NEW LINE Andreas Leitgeb Java 0 05-15-2009 02:02 PM
What's wrong with rpc-literal? Why use doc-literal? Anonieko Ramos ASP .Net Web Services 0 09-27-2004 09:06 AM



Advertisments