mirror of https://github.com/Textualize/rich.git
Fixed shadowing of import `rich.box` by for loop.
This commit is contained in:
parent
23aa717744
commit
a61ad5c309
|
@ -163,14 +163,14 @@ with Live(table_centered, console=console, screen=False, refresh_per_second=20):
|
|||
with beat(10):
|
||||
table.border_style = "bright_yellow"
|
||||
|
||||
for box in [
|
||||
for box_style in [
|
||||
box.SQUARE,
|
||||
box.MINIMAL,
|
||||
box.SIMPLE,
|
||||
box.SIMPLE_HEAD,
|
||||
]:
|
||||
with beat(10):
|
||||
table.box = box
|
||||
table.box = box_style
|
||||
|
||||
with beat(10):
|
||||
table.pad_edge = False
|
||||
|
|
Loading…
Reference in New Issue