This commit is contained in:
Will McGugan
2022-09-07 15:11:34 +01:00
parent 07724489bf
commit 385a02a1e1
8 changed files with 173 additions and 76 deletions

View File

@@ -5,16 +5,10 @@ from textual.widgets import DirectoryTree
class TreeApp(App):
DEFAULT_CSS = """
Screen {
overflow: auto;
}
"""
def compose(self):
tree = DirectoryTree("~/projects")
yield Container(tree)
tree.focus()
app = TreeApp()