Fix rich Table.grid call
This commit is contained in:
@@ -9,8 +9,7 @@ authors = [
|
|||||||
dependencies = []
|
dependencies = []
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = ["pytest>=7.0"]
|
dev = ["pytest>=7.0", "rich>=13.7.0"]
|
||||||
dashboard = ["rich>=13.7.0"]
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=61"]
|
requires = ["setuptools>=61"]
|
||||||
|
|||||||
@@ -21,7 +21,10 @@ LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def _table(title: str) -> Table:
|
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:
|
class RichDashboard:
|
||||||
@@ -128,4 +131,3 @@ class RichDashboard:
|
|||||||
finally:
|
finally:
|
||||||
if self.save_path and self.sim and self.sim.last_state:
|
if self.save_path and self.sim and self.sim.last_state:
|
||||||
self.reactor.save_state(self.save_path, self.sim.last_state)
|
self.reactor.save_state(self.save_path, self.sim.last_state)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user