mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix title update
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user