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