mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update sandbox example to use text-justify CSS property
This commit is contained in:
@@ -36,8 +36,4 @@ class TextJustify(App):
|
|||||||
app = TextJustify(css_path="text_justify.scss", watch_css=True)
|
app = TextJustify(css_path="text_justify.scss", watch_css=True)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from rich.console import Console
|
app.run()
|
||||||
|
|
||||||
console = Console()
|
|
||||||
text = Text(TEXT)
|
|
||||||
console.print(TEXT, justify="full")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user