mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Swap the 5x5 game header to the alt-compose method
Embrace the future!
This commit is contained in:
@@ -87,11 +87,10 @@ class GameHeader(Widget):
|
|||||||
Returns:
|
Returns:
|
||||||
ComposeResult: The result of composing the game header.
|
ComposeResult: The result of composing the game header.
|
||||||
"""
|
"""
|
||||||
yield Horizontal(
|
with Horizontal():
|
||||||
Label(self.app.title, id="app-title"),
|
yield Label(self.app.title, id="app-title")
|
||||||
Label(id="moves"),
|
yield Label(id="moves")
|
||||||
Label(id="progress"),
|
yield Label(id="progress")
|
||||||
)
|
|
||||||
|
|
||||||
def watch_moves(self, moves: int):
|
def watch_moves(self, moves: int):
|
||||||
"""Watch the moves reactive and update when it changes.
|
"""Watch the moves reactive and update when it changes.
|
||||||
|
|||||||
Reference in New Issue
Block a user