Files
textual/sandbox/will/tree.py
Will McGugan 385a02a1e1 tree fix
2022-09-07 15:11:34 +01:00

17 lines
306 B
Python

from textual.app import App
from textual.layout import Container
from textual.widgets import DirectoryTree
class TreeApp(App):
def compose(self):
tree = DirectoryTree("~/projects")
yield Container(tree)
tree.focus()
app = TreeApp()
if __name__ == "__main__":
app.run()