浏览代码

dnet: fix test to work with urwid 2.2.0

lunar-mining 2 年之前
父节点
当前提交
1621456f01
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      bin/dnet/test/view.py

+ 1 - 0
bin/dnet/test/view.py

@@ -44,6 +44,7 @@ class Demo:
     async def say_hello(self):
         while True:
             await asyncio.sleep(0.1)
+            self.ev.call_soon(self.loop.draw_screen)
             self.listwalker.contents.append(urwid.Text("hello"))