mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
19 lines
497 B
Python
19 lines
497 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
TEXT = """I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear."""
|
|
|
|
|
|
class WrapApp(App):
|
|
CSS_PATH = "text_overflow.tcss"
|
|
|
|
def compose(self) -> ComposeResult:
|
|
yield Static(TEXT, id="static1")
|
|
yield Static(TEXT, id="static2")
|
|
yield Static(TEXT, id="static3")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = WrapApp()
|
|
app.run()
|