From 97a7addc7fe33bc1b274cbee659da950789ae331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=BCven?= Date: Wed, 25 Jan 2023 21:42:10 +0100 Subject: [PATCH] add missing import to doc example --- docs/source/layout.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/layout.rst b/docs/source/layout.rst index 48095631..396a3074 100644 --- a/docs/source/layout.rst +++ b/docs/source/layout.rst @@ -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!"))