mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
virtual size
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user