This commit is contained in:
Will McGugan
2022-09-09 17:52:08 +01:00
parent 8666e84e64
commit 73fa5010ad
5 changed files with 7 additions and 179 deletions

View File

@@ -5,7 +5,7 @@ from rich.traceback import Traceback
from textual.app import App, ComposeResult
from textual.layout import Container, Vertical
from textual.reactive import Reactive
from textual.reactive import var
from textual.widgets import DirectoryTree, Footer, Header, Static
@@ -17,7 +17,7 @@ class CodeBrowser(App):
("q", "quit", "Quit"),
]
show_tree = Reactive.init(True)
show_tree = var(True)
def watch_show_tree(self, show_tree: bool) -> None:
"""Called when show_tree is modified."""