[helpwanted: Would anyone like to contribute a FAQ entry on ItemFactory garbage collection and how to avoid it? It's been asked multiple times before..]
On Wed, Nov 05, 2003 at 10:20:51PM +0100, mc collilieux wrote: > After playing with gc (new for me), > gc.set_debug(gc.DEBUG_LEAK) -> gc: collectable <gtk.ItemFactory > 0x82248fc> > > The simple fact of write this line in my module can stop the problem ? > Surprises, but I am very beginner in > programmation (and in english too) > > To Christian : > Yes, usually, i don't use "from foo import *", it's only for testing and > trying understand the problem Okay, just making sure. > Thanks to everyone > > And now, the best way is using my new 'manual' menu ? You can just hold a Python reference to the factory (something like self.factory = factory, for instance) and it won't be garbage collected. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
