[pygtk] Where do I go from here?

Sandro Dentella sandro at e-den.it
Fri Jul 7 15:41:28 WST 2006


> 		checkF.connect("toggled", self.convert_to_celsius,
>                              self.get_text(widget, entry)) 

1. widget is not defined and I get an error.

2. self.get_text is evaluated when checkF.connect is executed so that '0' is
   returned and passed to convert_to_celsius, independently from you
   'toggle'. Let the callback get the value from the entry.

3. print_temp prints self.temp that is set during __init__ and never
   changed. So it will definitely only print 0.00!...

sandro
*:-)

-- 
Sandro Dentella  *:-)
http://www.tksql.org                    TkSQL Home page - My GPL work


More information about the pygtk mailing list