mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
new align
This commit is contained in:
19
sandbox/will/align.py
Normal file
19
sandbox/will/align.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.widgets import Static
|
||||
|
||||
|
||||
class Label(Static):
|
||||
pass
|
||||
|
||||
|
||||
class AlignApp(App):
|
||||
CSS_PATH = "align.css"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Label("Hello")
|
||||
yield Label("World!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = AlignApp()
|
||||
app.run()
|
||||
Reference in New Issue
Block a user