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

    # This callback quits the program
dataset/ETHPy150Open anandology/pyjamas/pygtkweb/demos/008-togglebutton.py/ToggleButton.callback/swapped operands of `%`