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