Skip to content

Commit

Permalink
Updates example/layout.py to use Splitter class
Browse files Browse the repository at this point in the history
  • Loading branch information
apoclyps committed Mar 29, 2021
1 parent 57736f4 commit f24b668
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions examples/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
Layout(size=10, name="footer"),
)

layout["main"].split(
Layout(name="side"), Layout(name="body", ratio=2), direction="horizontal"
)
layout["main"].split_row(Layout(name="side"), Layout(name="body", ratio=2))

layout["side"].split(Layout(), Layout())

Expand Down
1 change: 0 additions & 1 deletion rich/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class LayoutRender(NamedTuple):

RegionMap = Dict["Layout", Region]
RenderMap = Dict["Layout", LayoutRender]
Direction = Literal["horizontal", "vertical"]


class LayoutError(Exception):
Expand Down

0 comments on commit f24b668

Please sign in to comment.