Tero Saarni wrote:
I have a python object owning a widget and implementing a signal handler, lets say:class MyObject: ... self.button = gtk.Button(title) self.button.connect('clicked', self.on_clicked, None) ... Deleting instances of MyObject does not have effect until the signal handler is disconnected (either by calling disconnect or by deletingself.button).
Short answer is you probably need to make sure your widget is destroyed at the appropriate time. Otherwise learn about the garbage collector and how it works. Note also that del in python does not delete the object, rather it deletes the binding from a variable or attribute name to an object (you may or may not know this, it's unclear from your problem description).
Cheers, John _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
