def r_refresh(interval=0.05): while True: try: rinterface.process_revents() except: pass time.sleep(interval)
def run(self): while self._want_run: time.sleep(self._sleep_time) try: ri.process_revents() except Exception: # pylint: disable=W0703 warn("error in process_revents: ignored")
def update(self, interval=0.03): while 1: try: rint.process_revents() except: pass time.sleep(interval)
def refresh(self): while self.halt == False: for c in self.cmd_stack: cmd,args,kwargs = c apply(cmd,args,kwargs) self.cmd_stack.remove(c) rinterface.process_revents() time.sleep(0.1) if self.halt == True: self.t.cancel()
def run(self): while self._continue: process_revents() time.sleep(EventProcessor.interval)
def refresh(self): while True: rinterface.process_revents() time.sleep(0.2)
def r_refresh(interval = 0.03): # Ctrl-C to interrupt while True: rinterface.process_revents() time.sleep(interval)
def update(self): rinterface.process_revents()
def enableInteractivity(): while(r.length(r('dev.list()'))[0]>0): rinterface.process_revents() time.sleep(0.1)