Switch (Python) Marta Maria Casetti mmcasetti@gmail.com 2012 A "light switch" style toggle Switch

This Switch makes the title appears and disappear.

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

In line 17 the signal "notify::active" is connected to the callback function activate_cb() using widget.connect(signal, callback function). See for a more detailed explanation.

API References

In this sample we used the following:

GtkSwitch

GtkLabel

GtkGrid