Exemplo n.º 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()
Exemplo n.º 2
0
 def _reaction_press(self, event):
     if self.current_state_key == STATE_NORMAL:
         Pressable._press(self)
Exemplo n.º 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()