mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Use labels instead of statics.
This commit is contained in:
@@ -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 MarginApp(App):
|
||||
def compose(self):
|
||||
yield Static(TEXT)
|
||||
yield Label(TEXT)
|
||||
|
||||
|
||||
app = MarginApp(css_path="margin.css")
|
||||
|
||||
Reference in New Issue
Block a user