mirror of https://github.com/Textualize/rich.git
add missing import to doc example
This commit is contained in:
parent
44cf059b14
commit
97a7addc7f
|
@ -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!"))
|
||||
|
|
Loading…
Reference in New Issue