MCPcopy
hub / github.com/Textualize/textual / CenterApp

Class CenterApp

docs/examples/how-to/center07.py:7–26  ·  view source on GitHub ↗

How to center things.

Source from the content-addressed store, hash-verified

5
6
7class CenterApp(App):
8 """How to center things."""
9
10 CSS = """
11 Screen {
12 align: center middle;
13 }
14
15 #hello {
16 background: blue 50%;
17 border: wide white;
18 width: 40;
19 height: 9;
20 text-align: center;
21 content-align: center middle;
22 }
23 """
24
25 def compose(self) -> ComposeResult:
26 yield Static(QUOTE, id="hello")
27
28
29if __name__ == "__main__":

Callers 1

center07.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…