From 454d36cdc70aca371d6e75e48db53b1392efc617 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: Wed, 4 Jan 2023 11:43:38 +0000 Subject: [PATCH] Use labels instead of static. --- docs/examples/styles/padding.css | 2 +- docs/examples/styles/padding.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/styles/padding.css b/docs/examples/styles/padding.css index 4c558895b..68ad84385 100644 --- a/docs/examples/styles/padding.css +++ b/docs/examples/styles/padding.css @@ -3,7 +3,7 @@ Screen { color: blue; } -Static { +Label { padding: 4 8; background: blue 20%; } diff --git a/docs/examples/styles/padding.py b/docs/examples/styles/padding.py index 4893838c1..13c43381a 100644 --- a/docs/examples/styles/padding.py +++ b/docs/examples/styles/padding.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,7 +12,7 @@ Where the fear has gone there will be nothing. Only I will remain.""" class PaddingApp(App): def compose(self): - yield Static(TEXT) + yield Label(TEXT) app = PaddingApp(css_path="padding.css")