From d21823440fdbe011746f759525bcf776e94fe92e Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 13 Sep 2020 13:12:34 +0100 Subject: [PATCH] formatting --- examples/group2.py | 2 ++ examples/padding.py | 1 + 2 files changed, 3 insertions(+) diff --git a/examples/group2.py b/examples/group2.py index f48ad15e..13be0704 100644 --- a/examples/group2.py +++ b/examples/group2.py @@ -2,9 +2,11 @@ from rich import print from rich.console import render_group from rich.panel import Panel + @render_group() def get_panels(): yield Panel("Hello", style="on blue") yield Panel("World", style="on red") + print(Panel(get_panels())) diff --git a/examples/padding.py b/examples/padding.py index 024ff5d1..b01d2743 100644 --- a/examples/padding.py +++ b/examples/padding.py @@ -1,4 +1,5 @@ from rich import print from rich.padding import Padding + test = Padding("Hello", (2, 4), style="on blue", expand=False) print(test)