mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
* Docs for content-align, some bug fixes for it too * Make the example output a little clearer * Remove app.run() from content-align docs example * Improve wording * Move content-align and scrollbar-gutter docs exmaples to split css/py files * Remove app.run() from scrollbar-gutter docs example
14 lines
392 B
Python
14 lines
392 B
Python
from textual.app import App
|
|
from textual.widgets import Static
|
|
|
|
|
|
class ContentAlignApp(App):
|
|
def compose(self):
|
|
yield Static("With [i]content-align[/] you can...", id="box1")
|
|
yield Static("...[b]Easily align content[/]...", id="box2")
|
|
yield Static("...Horizontally [i]and[/] vertically!", id="box3")
|
|
|
|
|
|
app = ContentAlignApp(css_path="content_align.css")
|
|
app.run()
|