When this ToggleButton is in an active state, the spinner spins.
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.
In this sample we used the following:
GtkToggleButton
GtkWidget
GtkSpinner