changed to CSS_PATH

This commit is contained in:
Will McGugan
2022-09-18 22:02:08 +01:00
parent f2c5e6ce78
commit d0293c2c89
80 changed files with 261 additions and 741 deletions

View File

@@ -4,6 +4,8 @@ from textual.widgets import Button, Static
class ButtonsApp(App):
CSS_PATH = "button.css"
def compose(self) -> ComposeResult:
yield layout.Horizontal(
layout.Vertical(
@@ -28,7 +30,6 @@ class ButtonsApp(App):
self.app.bell()
app = ButtonsApp(css_path="button.css")
if __name__ == "__main__":
app = ButtonsApp()
result = app.run()