File size: 310 Bytes
2c3c408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from textual.app import App

from textual.containers 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()