mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
context compose
This commit is contained in:
@@ -40,7 +40,8 @@ class CodeBrowser(App):
|
||||
yield Header()
|
||||
with Container():
|
||||
yield DirectoryTree(path, id="tree-view")
|
||||
yield Vertical(Static(id="code", expand=True), id="code-view")
|
||||
with Vertical(id="code-view"):
|
||||
yield Static(id="code", expand=True)
|
||||
yield Footer()
|
||||
|
||||
def on_mount(self, event: events.Mount) -> None:
|
||||
|
||||
Reference in New Issue
Block a user