mirror of https://github.com/Textualize/rich.git
fix typo in docs
This commit is contained in:
parent
0ea2d45a95
commit
7ae55ac2ee
|
@ -138,7 +138,7 @@ The Live class will create an internal Console object which you can access via `
|
|||
table.add_column("Description")
|
||||
table.add_column("Level")
|
||||
|
||||
with Live(table, refresh_per_second=4): # update 4 times a second to feel fluid
|
||||
with Live(table, refresh_per_second=4) as live: # update 4 times a second to feel fluid
|
||||
for row in range(12):
|
||||
live.console.print("Working on row #{row}")
|
||||
time.sleep(0.4)
|
||||
|
|
|
@ -65,7 +65,7 @@ This allows you to specify the text of the column only. If you want to set other
|
|||
table = Table(
|
||||
"Released",
|
||||
"Title",
|
||||
Column(header="Box Office", align="right"),
|
||||
Column(header="Box Office", justify="right"),
|
||||
title="Star Wars Movies"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue