

def _set_value(self, value):
    if (value == self._value):
        return
    self._value = value
    self.dispatch_event('on_change', bool(value))
    if self:
        self.dispatch_event('on_press')
    else:
        self.dispatch_event('on_release')

dataset/ETHPy150Open ardekantur/pyglet/pyglet/input/base.py Button._set_value/VarMisuse@45/56 `value`->`self`