mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tweaks
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user