add missing import to doc example

This commit is contained in:
Eren Güven 2023-01-25 21:42:10 +01:00 committed by GitHub
parent 44cf059b14
commit 97a7addc7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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!"))