def run(): context = _loop.get_context() while _loop.is_running(): try: callback = idle_loop.get_nowait() callback() except Queue.Empty: pass context.iteration(True)
def run(self): """ Mimic what run method does, according to the documentation. """ self.show() self.set_modal(True) context = self.loop.get_context() while self.loop.is_running(): try: callback = idle_loop.get_nowait() callback() except Queue.Empty: pass context.iteration(True) #self.set_modal(False) return self.__response
def queue_loop(self): try: callback = idle_loop.get_nowait() callback() except Queue.Empty: pass