Search code examples
python-3.xgtk

Find signals/events available for a Gtk+3 widget using Python 3


I'm working with Gtk in Python and I am at a loss as to how to find out what events/signals are available for a widget. Most tutorials will show how to use a "clicked" event, but are there more events/signals that are present to use for any particular widget? Is that it?

Where would I find a list of what is available to use for any particular widget?


Solution

  • Open the documentation page for the widget, here GtkButton:

    enter image description here

    Clicking on the "signals" link will lead you to the list of signals available for that widget. If you don't find the signal you want, it may be implemented by a parent class, or in one of the implemented interfaces. The "object hierarchy" and "implemented interfaces" links will help you navigate among classes and interfaces and find the signals you need.