mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
updatable layout regions
This commit is contained in:
parent
b7779eb772
commit
ffc7aea12a
15 changed files with 516 additions and 161 deletions
|
@ -27,10 +27,9 @@ def make_layout() -> Layout:
|
|||
Layout(name="main", ratio=1),
|
||||
Layout(name="footer", size=7),
|
||||
)
|
||||
layout["main"].split(
|
||||
layout["main"].split_row(
|
||||
Layout(name="side"),
|
||||
Layout(name="body", ratio=2, minimum_size=60),
|
||||
direction="horizontal",
|
||||
)
|
||||
layout["side"].split(Layout(name="box1"), Layout(name="box2"))
|
||||
return layout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue