How would I add two justified texts to a panel #1443
Answered
by
willmcgugan
wasi-master
asked this question in
Q&A
-
Basically, I wanna make something like this I thought about using panels but they don't seem to support multiple items |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Aug 28, 2021
Replies: 1 comment 1 reply
-
You can create a Table.grid and right align the second column. from rich import print
from rich.panel import Panel
from rich.table import Table
table = Table.grid(expand=True)
table.add_column()
table.add_column(justify="right")
table.add_row("some text", "May 04, 2021")
print(Panel(table)) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wasi-master
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create a Table.grid and right align the second column.