ToggleButton (Python) Marta Maria Casetti mmcasetti@gmail.com 2012 A button which retains state ToggleButton

When this ToggleButton is in an active state, the spinner spins.

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

In line 22 the signal "toggled" 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:

GtkToggleButton

GtkWidget

GtkSpinner