Le Fri, 7 Nov 2003 09:42:32 +1300
David Moore <[EMAIL PROTECTED]> écrivait : 


> I just store a reference as a member variable.  e.g.
> 
>  self.item_factory = gtk.ItemFactory(gtk.MenuBar, "<main>",
>  accel_group)
> 
> Storing it where I could retrieve it later prevents the garbage
> collector from tidying it up.  A global variable would work to, but of
> course "global vars are bad".

I have manage to get reference for ItemFactory, thanks. 
With this or change menu I have choice now.

-- 
Marie-Claude Collilieux
Bretagne 
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to