Skip to content

Commit 97a7add

Browse files
authored
add missing import to doc example
1 parent 44cf059 commit 97a7add

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/layout.rst

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ Setting renderables
7474

7575
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::
7676

77+
from rich.panel import Panel
78+
7779
layout["right"].split(
7880
Layout(Panel("Hello")),
7981
Layout(Panel("World!"))

0 commit comments

Comments
 (0)