CheckButton (Python) Marta Maria Casetti mmcasetti@gmail.com 2012 A toggle button in a window CheckButton

This CheckButton toggles the title.

Code used to generate this example
Useful methods for a CheckButton widget

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.

API References

In this sample we used the following:

GtkApplication

GtkApplicationWindow

GtkToggleButton

GtkCheckButton