rich/examples/group2.py
2021-07-28 09:10:23 +01:00

12 lines
224 B
Python

from rich import print
from rich.console import group
from rich.panel import Panel
@group()
def get_panels():
yield Panel("Hello", style="on blue")
yield Panel("World", style="on red")
print(Panel(get_panels()))