Search code examples
python-3.xgtk3pygobject

Tootip and signal of Gio.MenuItem


Below are two questions on the same component:

  1. Which signal is triggered when the mouse passes over a Gio.MenuItem?
  2. How to implement a tooltip for Gio.MenuItem?

Solution

  • The solution to get this was much further than I thought. I always suspected that the Devhelp's menu could not be built using GtkPopoverMenu because my OS uses gtk 3.14. The solution involves a totally new concept of running an application, proposed by Gtk.Application interface and the Gtk.Action features. These "new" concepts can be studied in the following places.

    http://python-gtk-3-tutorial.readthedocs.io/en/latest/application.html?highlight=Gtk.Application

    https://wiki.gnome.org/HowDoI/GtkApplication

    https://github.com/Programmica/python-gtk3-tutorial/blob/master/_examples/application.py

    Apparently tooltip features are not available for this menu type.