def callback(self, widget, data=None):
        print "%s was toggled %s" % (data, ("OFF", "ON")[widget.get_active()])

    # This callback quits the program
dataset/ETHPy150Open anandology/pyjamas/pygtkweb/demos/008-togglebutton.py/ToggleButton.callback/original