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,12 +3,14 @@ from textual.widgets import Static
|
||||
|
||||
|
||||
class VerticalLayoutExample(App):
|
||||
CSS_PATH = "vertical_layout.css"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Static("One", classes="box")
|
||||
yield Static("Two", classes="box")
|
||||
yield Static("Three", classes="box")
|
||||
|
||||
|
||||
app = VerticalLayoutExample(css_path="vertical_layout.css")
|
||||
if __name__ == "__main__":
|
||||
app = VerticalLayoutExample()
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user