diff options
Diffstat (limited to 'examples/group2.py')
-rw-r--r-- | examples/group2.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/group2.py b/examples/group2.py new file mode 100644 index 0000000..13be070 --- /dev/null +++ b/examples/group2.py @@ -0,0 +1,12 @@ +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())) |