> 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
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/