

def toggle(self):
    oldval = self.get_active()
    newval = (not oldval)
    super(ToggleButton, self).set_active(newval)

dataset/ETHPy150Open ejeschke/ginga/ginga/gtkw/GtkHelp.py ToggleButton.toggle/original