summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorAgnes Wendt <agnes@wendt.nu>2021-03-07 21:42:08 +0100
committerAgnes Wendt <agnes@wendt.nu>2021-03-07 21:42:08 +0100
commit9ac04b24c14d1c0937a2aee5dac9e489d5ef2803 (patch)
tree028c21e5dbab71223986d10daae2a53ebd7648ca /main.py
parentda0ed1051316a007e9c509eb0a6d56121c5231ea (diff)
downloadtg-9ac04b24c14d1c0937a2aee5dac9e489d5ef2803.tar.gz
wip display messages
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.py b/main.py
index 27c132e..9763bfa 100644
--- a/main.py
+++ b/main.py
@@ -11,10 +11,13 @@ async def on_tab():
def main():
+ messages = ["hej", "vad", "är", "klockan"]
+ tele.messages = messages
+ tele.redraw = cursed.redraw
with tele.client:
tele.client.start()
with cursed.Console() as c:
- tele.client.loop.run_until_complete(cursed.start(c, on_str, on_tab))
+ tele.client.loop.run_until_complete(cursed.start(c, on_str, on_tab, messages))
if __name__=="__main__":