mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Swap game_playable to use the simplified disable ability
This commit is contained in:
@@ -194,8 +194,7 @@ class Game(Screen):
|
|||||||
Args:
|
Args:
|
||||||
playable (bool): Should the game currently be playable?
|
playable (bool): Should the game currently be playable?
|
||||||
"""
|
"""
|
||||||
for cell in self.query(GameCell):
|
self.query_one(GameGrid).disabled = not playable
|
||||||
cell.disabled = not playable
|
|
||||||
|
|
||||||
def cell(self, row: int, col: int) -> GameCell:
|
def cell(self, row: int, col: int) -> GameCell:
|
||||||
"""Get the cell at a given location.
|
"""Get the cell at a given location.
|
||||||
|
|||||||
Reference in New Issue
Block a user