예제 #1
0
 def _reaction_press(self, event):
     if self.current_state_key == STATE_NORMAL:
         Pressable._press(self)
     elif self.current_state_key == STATE_PRESSED:
         Pressable._unpress(self)
         self.run_user_func()
예제 #2
0
 def _reaction_press(self, event):
     if self.current_state_key == STATE_NORMAL:
         Pressable._press(self)
예제 #3
0
 def _reaction_press(self, event):
     if self.current_state_key == STATE_NORMAL:
         Pressable._press(self)
     elif self.current_state_key == STATE_PRESSED:
         Pressable._unpress(self)
         self.run_user_func()