Swap the 5x5 game header to the alt-compose method

Embrace the future!
This commit is contained in:
Dave Pearson
2023-02-21 22:02:01 +00:00
parent f0e454f566
commit e3b3157540

View File

@@ -87,11 +87,10 @@ class GameHeader(Widget):
Returns:
ComposeResult: The result of composing the game header.
"""
yield Horizontal(
Label(self.app.title, id="app-title"),
Label(id="moves"),
Label(id="progress"),
)
with Horizontal():
yield Label(self.app.title, id="app-title")
yield Label(id="moves")
yield Label(id="progress")
def watch_moves(self, moves: int):
"""Watch the moves reactive and update when it changes.