mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
tweaks
This commit is contained in:
parent
8f184e7c80
commit
62c32b3251
6 changed files with 26 additions and 11 deletions
|
@ -1,3 +1,9 @@
|
|||
"""
|
||||
|
||||
Render a rich table.
|
||||
|
||||
"""
|
||||
|
||||
from rich.console import Console
|
||||
from rich.table import Table
|
||||
|
||||
|
@ -12,6 +18,6 @@ table.add_row("May 25, 2018", "Solo: A Star Wars Story", "$393,151,347")
|
|||
table.add_row("Dec 15, 2017", "Star Wars Ep. V111: The Last Jedi", "$1,332,539,889")
|
||||
table.add_row("Dec 16, 2016", "Rouge One: A Star Wars Story", "$1,332,439,889")
|
||||
|
||||
console = Console(record=True)
|
||||
console = Console()
|
||||
console.print(table)
|
||||
console.save_html("table.html", inline_styles=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue