Files
textual/docs/examples/styles/content_align.py
Rodrigo Girão Serrão ddd2e25038 Change statics to labels.
2022-12-15 18:10:02 +00:00

13 lines
378 B
Python

from textual.app import App
from textual.widgets import Label
class ContentAlignApp(App):
def compose(self):
yield Label("With [i]content-align[/] you can...", id="box1")
yield Label("...[b]Easily align content[/]...", id="box2")
yield Label("...Horizontally [i]and[/] vertically!", id="box3")
app = ContentAlignApp(css_path="content_align.css")