virtual size

This commit is contained in:
Will McGugan
2022-03-09 10:29:25 +00:00
parent 5f3720ed0e
commit ea2cf13425
6 changed files with 52 additions and 35 deletions

View File

@@ -8,6 +8,9 @@ from textual.widget import Widget
class BasicApp(App):
"""Sandbox application used for testing/development by Textual developers"""
def on_load(self):
self.bind("q", "quit", "Quit")
def on_mount(self):
"""Build layout here."""
@@ -34,5 +37,8 @@ class BasicApp(App):
async def on_key(self, event: events.Key) -> None:
await self.dispatch_key(event)
def action_quit(self):
self.panic(self.screen.tree)
BasicApp.run(css_file="uber.css", log="textual.log")