Esempio n. 1
0
 def _reaction_press(self, pygame_event):
     Clickable._reaction_press(self, pygame_event)
     if self.current_state_key == constants.STATE_PRESSED:
         self.enter()
     elif self._activated:
         if not self.quit_on_click:
             self._value = self._inserted
         self.exit()
Esempio n. 2
0
 def _reaction_press(self, pygame_event):
     Clickable._reaction_press(self, pygame_event)
     if self.current_state_key == constants.STATE_PRESSED:
         self.enter()
     elif self._activated:
         if not self.quit_on_click:
             self._value = self._inserted
         self.exit()
Esempio n. 3
0
 def _reaction_press(self, pygame_event):
     Clickable._reaction_press(self, pygame_event)
     if self.current_state_key == constants.STATE_PRESSED:
         self.check()
Esempio n. 4
0
 def _reaction_press(self, pygame_event):
     Clickable._reaction_press(self, pygame_event)
     if self.current_state_key == constants.STATE_PRESSED:
         self.check()