[pygtk] PyGTK object escapes garbage collection
lists.stackp at online.fr
Fri Dec 24 17:58:37 WST 2010
Thanks for your answers Gerald.
> button.connect("clicked", weakref.proxy(self.hello))
Well, I get this when I click the button:
ReferenceError: weakly-referenced object no longer exists
That's surprising too, since the hello() method of "page" certainly does
exist until "page" gets unreachable... and, at the time I click, "page"
can be reached through the notebook.get_nth_page() method.
Unfortunately, I'm not familiar enough with how the Python and the
GObject reference counting systems interact to understand what's going on.
I will wait for more answers, then submit a bug report.
More information about the pygtk