simplify compose

This commit is contained in:
Will McGugan
2022-10-15 13:07:15 +01:00
parent babf5beefc
commit 8982d88f9e
8 changed files with 120 additions and 35 deletions

View File

@@ -3,8 +3,8 @@ from textual.widgets import Welcome
class WelcomeApp(App):
def on_key(self) -> None:
self.mount(Welcome())
async def on_key(self) -> None:
await self.mount(Welcome())
def on_button_pressed(self) -> None:
self.exit()