[pygtk] libglade bug?
Rob Brown-Bayliss
r.brown.bayliss at gmail.com
Mon May 4 16:06:17 WST 2009
Hi,
I have this code being called every few minutes by a gkt timeout
function:
print "====================================="
print "Count = " + str(self.check_count)
self.check_count += 1
print self.wtree.get_widget("label_checkbutton")
print "====================================="
if self.wtree.get_widget("label_checkbutton").get_active():
<< some code cut>>
It has been working fine for a very long time, then I upgraded to ubuntu
9.04, and started getting this error:
AttributeError: 'NoneType' object has no attribute 'get_active'
And here is the output prior to the error:
=====================================
Count = 41
<gtk.CheckButton object at 0x97909dc (GtkCheckButton at 0x9806910)>
=====================================
=====================================
Count = 42
<gtk.CheckButton object at 0x97909dc (GtkCheckButton at 0x9806910)>
=====================================
=====================================
Count = 43
<gtk.CheckButton object at 0x97909dc (GtkCheckButton at 0x9806910)>
=====================================
=====================================
Count = 44
None
=====================================
Some times it fails first run, somtimes after 3 or 4 iterations, other
times it goes for hours...
Any clues? am I calling the get_active incorectly?
--
Rob Brown-Bayliss <r.brown.bayliss at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090504/d076b002/attachment.htm
More information about the pygtk
mailing list