This commit is contained in:
Will McGugan
2022-09-18 15:52:29 +01:00
parent 4e732ce309
commit f402692b5b
6 changed files with 7 additions and 69 deletions

View File

@@ -1,27 +0,0 @@
from textual.app import App, ComposeResult
from textual.widgets import Static, TextLog
class BubbleApp(App):
CSS = """
"""
def compose(self) -> ComposeResult:
Static("Foo", id="static")
yield TextLog()
def on_key(self) -> None:
log = self.query_one(TextLog)
self.query_one(TextLog).write(self.tree)
log.write(repr((log.size, log.virtual_size)))
app = BubbleApp()
if __name__ == "__main__":
app.run()