file monitor

This commit is contained in:
Will McGugan
2021-12-18 13:17:48 +00:00
parent 485c1bdfe1
commit 72f933b844
10 changed files with 120 additions and 29 deletions

View File

@@ -6,7 +6,7 @@ class BasicApp(App):
"""A basic app demonstrating CSS"""
def on_load(self):
self.bind("t", "toggle('#sidebar', '-active')")
self.bind("t", "toggle_class('#sidebar', '-active')")
def on_mount(self):
"""Build layout here."""
@@ -18,4 +18,4 @@ class BasicApp(App):
)
BasicApp.run(log="textual.log", css_file="basic.css", log_verbosity=3)
BasicApp.run(log="textual.log", css_file="basic.css", watch_css=True)