more general app

This commit is contained in:
Will McGugan
2022-05-24 10:26:20 +01:00
parent c1c4ce02ff
commit 8daf832c4c
4 changed files with 46 additions and 17 deletions

View File

@@ -91,7 +91,7 @@ class Success(Widget):
return Text("This is a success message", justify="center")
class BasicApp(App):
class BasicApp(App, css_path="basic.css"):
"""A basic app demonstrating CSS"""
def on_load(self):
@@ -158,7 +158,7 @@ class BasicApp(App):
tweet_body.refresh(layout=True)
app = BasicApp(css_path="basic.css")
app = BasicApp()
if __name__ == "__main__":
app.run()