Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
 def _unhover(self):
     if not self._activated:
         Clickable._unhover(self)
     change_cursor(constants.CURSOR_NORMAL)
Ejemplo n.º 3
0
 def _hover(self):
     Clickable._hover(self)
     change_cursor(constants.CURSOR_TEXT)
Ejemplo n.º 4
0
 def _unhover(self):
     if not self._activated:
         Clickable._unhover(self)
     change_cursor(constants.CURSOR_NORMAL)
Ejemplo n.º 5
0
 def _hover(self):
     Clickable._hover(self)
     change_cursor(constants.CURSOR_TEXT)