[pygtk] Tooltips on MenuItem and ui_manager
Alessandro Dentella
sandro at e-den.it
Wed Sep 8 15:26:52 WST 2010
Hi. Sorry for reposting. But it seems strange to me that such an ordinary
feature of Actions/MenuItem tooltip is not known by anybody.
Most of the application I see do have tooltips on menuItems: I can't believe
I should copy tooltips from action to MenuItem by hand...
I've searched in the docs to see if there is a flag that enables them w/o
finding anything.
sandro
*:-)
On Thu, Sep 02, 2010 at 10:13:37AM +0200, Alessandro Dentella wrote:
> 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
> _______________________________________________
> pygtk mailing list pygtk a daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
--
Sandro Dentella *:-)
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy
More information about the pygtk
mailing list