def create_clock(self, touch): function = partial(self.menu, touch) self.long_press_clock = Clock.schedule_once(function, 2) touch.ud['event'] = function # So we can unschedule it if the button is pressed early
def create_clock(self, touch): function = partial(self.menu, touch) self.long_press_clock = Clock.schedule_once(function, 2) touch.ud[ 'event'] = function # So we can unschedule it if the button is pressed early