This commit is contained in:
Will McGugan 2020-03-10 22:18:23 +00:00
parent 8f184e7c80
commit 62c32b3251
6 changed files with 26 additions and 11 deletions

View file

@ -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)