Exemplo n.º 1
0
 def enter(self):
     functions.debug_msg("Entering inserter ", self)
     if self.repeat_delay is not None:
         key_set_repeat(self.repeat_delay, self.repeat_interval)
     if self._hide_mouse:
         mouse_set_visible(False)
     self._activated = True
     self.cursor._activated = True
Exemplo n.º 2
0
 def enter(self):
     for e in self.deactivate_on_focus:
         e.active = False
     functions.debug_msg("Entering inserter ", self)
     if self.repeat_delay is not None:
         key_set_repeat(self.repeat_delay, self.repeat_interval)
     if self._hide_mouse:
         mouse_set_visible(False)
     self._activated = True
     self.cursor._activated = True
Exemplo n.º 3
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)
         if self._varlink_func:
             self._varlink_func(self._value)
Exemplo n.º 4
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)
         if self._varlink_func:
             self._varlink_func(self._value)
     for e in self.deactivate_on_focus:
         e.active = True