Skip to content

Commit

Permalink
Merge pull request #2777 from eguven/patch-1
Browse files Browse the repository at this point in the history
add missing import to doc example
  • Loading branch information
willmcgugan committed Jan 27, 2023
2 parents 9a19862 + 97a7add commit c74ec19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/layout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Setting renderables

The first position argument to ``Layout`` can be any Rich renderable, which will be sized to fit within the layout's area. Here's how we might divide the "right" layout in to two panels::

from rich.panel import Panel
layout["right"].split(
Layout(Panel("Hello")),
Layout(Panel("World!"))
Expand Down

0 comments on commit c74ec19

Please sign in to comment.