From 127662943198488586dd5c60376c3b6d321709a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Fri, 6 Jan 2023 14:18:07 +0000 Subject: [PATCH] Update example. --- docs/examples/styles/text_style.css | 10 +++++----- docs/examples/styles/text_style.py | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/examples/styles/text_style.css b/docs/examples/styles/text_style.css index bf953d42c..b0a4041ba 100644 --- a/docs/examples/styles/text_style.css +++ b/docs/examples/styles/text_style.css @@ -1,18 +1,18 @@ Screen { layout: horizontal; } -Static { - width:1fr; +Label { + width: 1fr; } -#static1 { +#lbl1 { background: red 30%; text-style: bold; } -#static2 { +#lbl2 { background: green 30%; text-style: italic; } -#static3 { +#lbl3 { background: blue 30%; text-style: reverse; } diff --git a/docs/examples/styles/text_style.py b/docs/examples/styles/text_style.py index f9a59a76f..6dd1476eb 100644 --- a/docs/examples/styles/text_style.py +++ b/docs/examples/styles/text_style.py @@ -1,5 +1,5 @@ from textual.app import App -from textual.widgets import Static +from textual.widgets import Label TEXT = """I must not fear. Fear is the mind-killer. @@ -12,9 +12,9 @@ Where the fear has gone there will be nothing. Only I will remain.""" class TextStyleApp(App): def compose(self): - yield Static(TEXT, id="static1") - yield Static(TEXT, id="static2") - yield Static(TEXT, id="static3") + yield Label(TEXT, id="lbl1") + yield Label(TEXT, id="lbl2") + yield Label(TEXT, id="lbl3") app = TextStyleApp(css_path="text_style.css")