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