user3163030
user3163030

Reputation: 343

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?

Upvotes: 6

Views: 3691

Answers (2)

jonrsharpe
jonrsharpe

Reputation: 122169

The list is available in the documentation.

Upvotes: -2

liberforce
liberforce

Reputation: 11454

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.

Upvotes: 3

Related Questions