-
When setting from rich.console import Console
from rich.table import Table
console = Console()
table = Table(show_header=False, expand=True)
table.add_column("date")
table.add_column("title") # expand=False?
table.add_row("Dev 20, 2019", "Star Wars: The Rise of Skywalker")
console.print(table)
|
Beta Was this translation helpful? Give feedback.
Answered by
sanders41
Oct 12, 2021
Replies: 1 comment 1 reply
-
This isn't exactly what you asked for but maybe it's an option for what you want. from rich.console import Console
from rich.table import Table
console = Console()
table = Table(show_header=False, expand=True)
table.add_column("date", ratio=1)
table.add_column("title")
table.add_row("Dec 20, 2019", "Star Wars: The Rise of Skywalker")
console.print(table) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
willmcgugan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This isn't exactly what you asked for but maybe it's an option for what you want.