docs plugin

This commit is contained in:
Will McGugan
2022-05-23 15:47:55 +01:00
parent 7101b416c7
commit d1235e0d97
21 changed files with 286 additions and 235 deletions

28
docs/examples/simple.py Normal file
View File

@@ -0,0 +1,28 @@
from textual.app import App, ComposeResult
from textual.widgets import Static
class TextApp(App):
CSS = """
Screen {
background: darkblue;
color: white;
layout: vertical;
}
Static {
height: auto;
padding: 2;
border: heavy white;
background: #ffffff 30%;
content-align: center middle;
/**/
}
"""
def compose(self) -> ComposeResult:
yield Static("Hello")
yield Static("[b]World![/b]")
app = TextApp()