mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix refresh
This commit is contained in:
@@ -5,16 +5,17 @@ from textual.widget import Widget
|
||||
class BasicApp(App):
|
||||
"""A basic app demonstrating CSS"""
|
||||
|
||||
def on_mount(self) -> None:
|
||||
"""Build layout here."""
|
||||
def on_load(self):
|
||||
self.bind("t", "toggle('#sidebar', '-active')")
|
||||
|
||||
self.view.mount(
|
||||
def on_mount(self):
|
||||
"""Build layout here."""
|
||||
self.mount(
|
||||
header=Widget(),
|
||||
content=Widget(),
|
||||
footer=Widget(),
|
||||
sidebar=Widget(),
|
||||
)
|
||||
self.panic(self.query("#sidebar").first().styles)
|
||||
|
||||
|
||||
BasicApp.run(log="textual.log", css_file="basic.css")
|
||||
BasicApp.run(log="textual.log", css_file="basic.css", log_verbosity=3)
|
||||
|
||||
Reference in New Issue
Block a user