Beispiel #1
0
 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
Beispiel #2
0
 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