def on_checked_changed(self, on):
        """ See https://stackoverflow.com/questions/19628310/ """
        #: Since iOS decides to call this like 100 times for each defer it
        d = self.declaration
        with self.widget.setOn.suppressed():
            d.checked = on
def on_checked_changed ( self , on ) : d = self . declaration with self . widget . setOn . suppressed ( ) : d . checked = on
See https://stackoverflow.com/questions/19628310/