fix title update

This commit is contained in:
Will McGugan
2023-02-01 18:00:52 +01:00
parent 087654a246
commit 8ce76f4f89
3 changed files with 6 additions and 4 deletions

View File

@@ -3,12 +3,13 @@ from textual.widgets import Button, Header, Label
class MyApp(App[str]):
CSS_PATH = "question02.css"
TITLE = "A Question App"
SUB_TITLE = "The most important question"
def compose(self) -> ComposeResult:
yield Header()
yield Label("Do you love Textual?")
yield Label("Do you love Textual?", id="question")
yield Button("Yes", id="yes", variant="primary")
yield Button("No", id="no", variant="error")

View File

@@ -4,12 +4,13 @@ from textual.widgets import Button, Header, Label
class MyApp(App[str]):
CSS_PATH = "question02.css"
TITLE = "A Question App"
SUB_TITLE = "The most important question"
def compose(self) -> ComposeResult:
yield Header()
yield Label("Do you love Textual?")
yield Label("Do you love Textual?", id="question")
yield Button("Yes", id="yes", variant="primary")
yield Button("No", id="no", variant="error")