This Switch makes the title appears and disappear.
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.
In this sample we used the following:
GtkSwitch
GtkLabel
GtkGrid