Files
textual/docs/examples/styles/text_overflow.py
2025-01-27 12:18:59 +00:00

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()