Replace Static with Label.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-31 17:31:36 +00:00
parent c14f635244
commit 828d8d2cf1
3 changed files with 9 additions and 9 deletions

View File

@@ -1,10 +1,10 @@
from textual.app import App, ComposeResult
from textual.widgets import Static, Button
from textual.widgets import Label, Button
class QuestionApp(App[str]):
def compose(self) -> ComposeResult:
yield Static("Do you love Textual?")
yield Label("Do you love Textual?")
yield Button("Yes", id="yes", variant="primary")
yield Button("No", id="no", variant="error")