mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
formatting
This commit is contained in:
parent
7593e4b271
commit
d21823440f
2 changed files with 3 additions and 0 deletions
|
@ -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()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue