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)
def finish(self): Pressable.finish(self) self._set_hovered_states_auto()
def _reaction_press(self, event): if self.current_state_key == STATE_NORMAL: Pressable._press(self)
def _reaction_unpress(self, event): if self.current_state_key == STATE_PRESSED: Pressable._unpress(self)
def finish(self): Pressable.finish(self) Hoverable.finish(self)
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()