mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tree fix
This commit is contained in:
@@ -5,16 +5,10 @@ from textual.widgets import DirectoryTree
|
||||
|
||||
|
||||
class TreeApp(App):
|
||||
DEFAULT_CSS = """
|
||||
Screen {
|
||||
overflow: auto;
|
||||
|
||||
}
|
||||
"""
|
||||
|
||||
def compose(self):
|
||||
tree = DirectoryTree("~/projects")
|
||||
yield Container(tree)
|
||||
tree.focus()
|
||||
|
||||
|
||||
app = TreeApp()
|
||||
|
||||
Reference in New Issue
Block a user