mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
changed to CSS_PATH
This commit is contained in:
@@ -3,11 +3,13 @@ from textual.widgets import Static
|
||||
|
||||
|
||||
class LayersExample(App):
|
||||
CSS_PATH = "layers.css"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Static("box1 (layer = above)", id="box1")
|
||||
yield Static("box2 (layer = below)", id="box2")
|
||||
|
||||
|
||||
app = LayersExample(css_path="layers.css")
|
||||
if __name__ == "__main__":
|
||||
app = LayersExample()
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user