layout property, and app.tree

This commit is contained in:
Will McGugan
2021-10-21 17:08:32 +01:00
parent 537abade11
commit 9704945e04
15 changed files with 136 additions and 50 deletions

View File

@@ -27,6 +27,8 @@ class MyApp(App):
# Dock the body in the remaining space
await self.view.dock(body, edge="right")
# self.panic(self.tree)
async def get_markdown(filename: str) -> None:
with open(filename, "rt") as fh:
readme = Markdown(fh.read(), hyperlinks=True)