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)