mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
restore on key
This commit is contained in:
@@ -3,8 +3,8 @@ from textual.widgets import Welcome
|
||||
|
||||
|
||||
class WelcomeApp(App):
|
||||
async def on_key(self) -> None:
|
||||
await self.mount(Welcome())
|
||||
def on_key(self) -> None:
|
||||
self.mount(Welcome())
|
||||
|
||||
def on_button_pressed(self) -> None:
|
||||
self.exit()
|
||||
|
||||
Reference in New Issue
Block a user