diff --git a/sandbox/will/tree.py b/sandbox/will/tree.py new file mode 100644 index 000000000..158009232 --- /dev/null +++ b/sandbox/will/tree.py @@ -0,0 +1,22 @@ +from textual.app import App + +from textual.layout import Container +from textual.widgets import DirectoryTree + + +class TreeApp(App): + CSS = """ + Screen { + overflow: auto; + + } + """ + + def compose(self): + tree = DirectoryTree("~/projects") + yield Container(tree) + + +app = TreeApp() +if __name__ == "__main__": + app.run()