Skip to content Skip to sidebar Skip to footer

How To Introspectively Connect Handlers To Signals?

gtk.Builder is capable to identify all signals that a GUI (described in a XML file) can emit and with the method connect_signals() automagically matches signals and handlers. Examp

Solution 1:

GtkBuilder takes the names to connect to from the XML, it does not search for methods starting with 'on'. This means your model needs to be represented in the XML, there is no way to pass GtkBuilder a widget you instantiated in code. Glade has documentation on custom widgets.


Post a Comment for "How To Introspectively Connect Handlers To Signals?"