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 HorizontalLayoutExample(App):
|
||||
CSS_PATH = "horizontal_layout_overflow.css"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Static("One", classes="box")
|
||||
yield Static("Two", classes="box")
|
||||
yield Static("Three", classes="box")
|
||||
|
||||
|
||||
app = HorizontalLayoutExample(css_path="horizontal_layout_overflow.css")
|
||||
if __name__ == "__main__":
|
||||
app = HorizontalLayoutExample()
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user