def exit(self): key_set_repeat(parameters.KEY_DELAY, parameters.KEY_INTERVAL) if self._activated: functions.debug_msg("Leaving inserter ", self) self._inserted = self._value self._urbu() mouse_set_visible(True) self.cursor.exit() self._activated = False event_quit = event.Event(constants.THORPY_EVENT, id=constants.EVENT_INSERT, el=self, value=self._value) event.post(event_quit) change_cursor(constants.CURSOR_NORMAL) if self._varlink_func: self._varlink_func(self._value) for e in self.deactivate_on_focus: e.active = True
def _unhover(self): if not self._activated: Clickable._unhover(self) change_cursor(constants.CURSOR_NORMAL)
def _hover(self): Clickable._hover(self) change_cursor(constants.CURSOR_TEXT)