[pygtk] Tooltips on MenuItem and ui_manager

Alessandro Dentella sandro at e-den.it
Thu Sep 2 16:13:37 WST 2010


Hi again,


I use  UIManager() + group_action.add_actions() to create MenuItems and
ToolItems. I set tooltips as required by actiongroup.add_actions( 5^ field).

These tooltip show correctly for toolitems but they won't for menu
entries. Is it the desired behaviour? What can I do to have tooltips for
MenuItems as well? Note that

  ui_manager.get_action(action_name).props.tooltip

shows the tooltip correctly while *both* menyitem and toolitem don't (but
toolitem shows the tooltip correctly....):

  ui_manager.get_widget(menu_entry_name).props.tooltip_text   ### None
  ui_manager.get_widget(tool_entry_name).props.tooltip_text   ### None
 

.set_tooltip_text() works correctly in menu items, but it's terribly
inconvenient to set them one by one when I already set tooltips in the
actions, I guess I'm missing something!


any hints?

thanks

sandro
*:-)




-- 
Sandro Dentella  *:-)
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy


More information about the pygtk mailing list