Fix rich Table.grid call
This commit is contained in:
@@ -21,7 +21,10 @@ LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def _table(title: str) -> Table:
|
||||
return Table.grid(expand=True, padding=(0, 1), title=title, title_style="bold cyan")
|
||||
tbl = Table.grid(expand=True, padding=(0, 1))
|
||||
tbl.title = title
|
||||
tbl.title_style = "bold cyan"
|
||||
return tbl
|
||||
|
||||
|
||||
class RichDashboard:
|
||||
@@ -128,4 +131,3 @@ class RichDashboard:
|
||||
finally:
|
||||
if self.save_path and self.sim and self.sim.last_state:
|
||||
self.reactor.save_state(self.save_path, self.sim.last_state)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user