def _input_loop(self):
while self.running:
for cw in self.windows:
if cw.THREAD.exception is not None:
for cw in self.windows:
cw.RUNNING = False
self.running = False
break
if cw.RUNNING and cw.WAIT:
break
else:
self.running = False
break
gevent.sleep(0)
c = self.window.getch()
if c == -1:
continue
for cw in self.windows:
cw.KEY_EVENTS.put(c)
评论列表
文章目录