Tweak example for offset.

This commit is contained in:
Rodrigo Girão Serrão
2022-12-22 18:00:52 +00:00
parent 296dd73565
commit 289ec2556b
2 changed files with 7 additions and 7 deletions

View File

@@ -1,12 +1,12 @@
from textual.app import App
from textual.widgets import Static
from textual.widgets import Label
class OffsetApp(App):
def compose(self):
yield Static("Paul (offset 8 2)", classes="paul")
yield Static("Duncan (offset 4 10)", classes="duncan")
yield Static("Chani (offset 0 5)", classes="chani")
yield Label("Paul (offset 8 2)", classes="paul")
yield Label("Duncan (offset 4 10)", classes="duncan")
yield Label("Chani (offset 0 -2)", classes="chani")
app = OffsetApp(css_path="offset.css")