def tick(self, timeout=0): for factory in self._handlers: factory.tick() self.select(timeout) editor.call_timeouts()