mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
partial tree control fix
This commit is contained in:
22
sandbox/will/tree.py
Normal file
22
sandbox/will/tree.py
Normal 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()
|
||||
Reference in New Issue
Block a user