This CheckButton toggles the title.
In line 17 the "toggled"
signal is connected to the callback function toggled_cb()
using widget.connect(signal, callback function)
. See for a more detailed explanation.
In this sample we used the following:
GtkApplication
GtkApplicationWindow
GtkToggleButton
GtkCheckButton