partial tree control fix

This commit is contained in:
Will McGugan
2022-08-11 13:31:51 +01:00
parent 85e51f0ebc
commit 806582fcb4

22
sandbox/will/tree.py Normal file
View File

@@ -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()