MCPcopy
hub / github.com/Textualize/rich / make_layout

Function make_layout

examples/fullscreen.py:20–34  ·  view source on GitHub ↗

Define the layout.

()

Source from the content-addressed store, hash-verified

18
19
20def make_layout() -> Layout:
21 """Define the layout."""
22 layout = Layout(name="root")
23
24 layout.split(
25 Layout(name="header", size=3),
26 Layout(name="main", ratio=1),
27 Layout(name="footer", size=7),
28 )
29 layout["main"].split_row(
30 Layout(name="side"),
31 Layout(name="body", ratio=2, minimum_size=60),
32 )
33 layout["side"].split(Layout(name="box1"), Layout(name="box2"))
34 return layout
35
36
37def make_sponsor_message() -> Panel:

Callers 1

fullscreen.pyFile · 0.85

Calls 4

splitMethod · 0.95
LayoutClass · 0.90
split_rowMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected