Il ven, 2005-09-16 alle 17:52, george young ha scritto:
> On Fri, 16 Sep 2005 10:24:07 +0200
> Alessandro Ferrarin <[EMAIL PROTECTED]> threw this fish to the penguins:
> 
> > I realized a popup menu which presents a list of menu items each with a
> > 'name':
> > 
> > item = gtk.MenuItem(name)
> > 
> > Now, I would like to simply change the name of some of theese menu
> > items.
> 
> Hmmm, how about [not tested]:
> 
>    item.get_child().set_label('new_name')

It runs! Thank you.

Anyway... I wonder where is the set_label() method. I tried to search it
into namespace with dir(item) but there isn't.

I'm unaware of some python/pygtk basis..?

-- 
Alessandro Ferrarin <[EMAIL PROTECTED]>

_______________________________________________
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