Hi,
This one really bugs me. I'm using setup_menu for the applet. later on
I'm trying to change the label for an item in the menu, but nothing changes:
menu = """
<popup name="button3">
<menuitem name="Item Selection" verb="ItemSelect"
label="(No selection)" />
<menuitem name="Item Fixed" verb="ItemFixed"
label="(Nothing to fix)" />
<separator />
<menuitem name="Item About" verb="About" _label="About"
pixtype="stock" pixname="gnome-stock-about"/>
</popup>
"""
verbs = [
("About", self.on_about_click),
("ItemSelect", None),
("ItemFIxed", self.on_fixed_item_click)
]
self.applet.setup_menu(menu,verbs)
self.popup_menu = self.applet.get_popup_component()
print self.popup_menu.get_prop('/commands/ItemSelect','name')
self.popup_menu.set_prop('/commands/ItemSelect','label','Test')
printing the name of ItemSelect works. Trying to set the 'hidden'
property works, but setting 'label' has no effect.
What am I doing wrong ?
Cheers
--
Meir Kriheli
http://mksoft.co.il
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/