2.3 a1 True/False bug in tkinter? 
Author Message
 2.3 a1 True/False bug in tkinter?

Hi,

I have tkinter code that works on 2.1 and 2.2 and fails on 2.3 a1 (on XP).

The code initializes tk checkboxes as follows:

for var in ivars:
  exec("self.%s_flag.set(c.%s_flag)" % (var,var))

This appears to work fine.  However, the following code later fails:

for var in ivars:
  exec("c.%s_flag = self.%s_flag.get()" % (var,var))

with the following traceback:

Quote:
>>> Traceback (most recent call last):

File "c:\Apps\leo-3.9\leoFileCommands.py", line 1682, in write_LEO_file
c.setIvarsFromFind()
File "c:\Apps\leo-3.9\leoCommands.py", line 136, in setIvarsFromFind
find.set_ivars(c)
File "c:\Apps\leo-3.9\leoFind.py", line 254, in set_ivars
exec("c.%s_flag = self.%s_flag.get()" % (var,var))
File "<string>", line 1, in ?
File "c:\Apps\Python23\lib\lib-tk\Tkinter.py", line 239, in get
return getint(self._tk.globalgetvar(self._name))
ValueError: invalid literal for int(): False

Should this be considered a problem with python or tkinter?  It seems like a
natural thing to do.

Edward
--------------------------------------------------------------------

Leo: Literate Editor with Outlines
Leo: http://www.*-*-*.com/ ~edream/front.html
--------------------------------------------------------------------



Thu, 07 Jul 2005 06:36:53 GMT  
 2.3 a1 True/False bug in tkinter?

Quote:
> Should this be considered a problem with Python or tkinter?  

Yes. Can you come up with a small example, and post it as a bug report
to SourceForge?

Regards,
Martin



Thu, 07 Jul 2005 19:23:30 GMT  
 2.3 a1 True/False bug in tkinter?

Quote:
> > Should this be considered a problem with Python or tkinter?

> Yes. Can you come up with a small example, and post it as a bug report
> to SourceForge?

I'll do so within a day or so.

Edward
--------------------------------------------------------------------

Leo: Literate Editor with Outlines
Leo: http://personalpages.tds.net/~edream/front.html
--------------------------------------------------------------------



Fri, 08 Jul 2005 05:44:32 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Assign to True / False in 2.3

2. Python 2.3 True = False

3. 2.3 a1 idle.py vs. idle.pyw

4. If Observable#notify_observers returned true/false then false could imply veto of change

5. why is true and false = true ?

6. ftp_lib.tcl 2.3 bgerror after timeout of control connection on put and false-positive FTP puts

7. 2.3 Redhat 9 Tkinter IDLE

8. 0.1 + 0.2 + 0.7 = 1.0 ( true or false )

9. True/False In dictionary +

10. true/false 1/0 - please help

11. True or false with Tintools

12. FALSE EQUATE(NOT TRUE)????

 

 
Powered by phpBB® Forum Software