Esempio n. 1
0
 def set_text(self,
              text=None,
              state=None,
              center_title=True,
              size=None,
              cut=-1):
     Pressable.set_text(self, text, state, center_title, size, cut)
     self.set_hovered_states(self._states_hover)
Esempio n. 2
0
 def finish(self):
     Pressable.finish(self)
     self._set_hovered_states_auto()
Esempio n. 3
0
 def set_text(self, text=None, state=None, center_title=True, size=None,
             cut=-1):
     Pressable.set_text(self, text, state, center_title, size, cut)
     self.set_hovered_states(self._states_hover)
Esempio n. 4
0
 def _reaction_press(self, event):
     if self.current_state_key == STATE_NORMAL:
         Pressable._press(self)
Esempio n. 5
0
 def _reaction_unpress(self, event):
     if self.current_state_key == STATE_PRESSED:
         Pressable._unpress(self)
Esempio n. 6
0
 def finish(self):
     Pressable.finish(self)
     Hoverable.finish(self)
Esempio n. 7
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()
Esempio n. 8
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()
Esempio n. 9
0
 def finish(self):
     Pressable.finish(self)
     self._set_hovered_states_auto()
Esempio n. 10
0
 def finish(self):
     Pressable.finish(self)
     Hoverable.finish(self)