mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
17 lines
455 B
Python
17 lines
455 B
Python
from textual.app import App
|
|
from textual.containers import Horizontal
|
|
from textual.widgets import Placeholder
|
|
|
|
|
|
class MinHeightApp(App):
|
|
def compose(self):
|
|
yield Horizontal(
|
|
Placeholder("min-height: 25%", id="p1"),
|
|
Placeholder("min-height: 75%", id="p2"),
|
|
Placeholder("min-height: 30", id="p3"),
|
|
Placeholder("min-height: 40w", id="p4"),
|
|
)
|
|
|
|
|
|
app = MinHeightApp(css_path="min_height.css")
|