diff --git a/examples/five_by_five.py b/examples/five_by_five.py index f3aada19f..b79deef8a 100644 --- a/examples/five_by_five.py +++ b/examples/five_by_five.py @@ -194,8 +194,7 @@ class Game(Screen): Args: playable (bool): Should the game currently be playable? """ - for cell in self.query(GameCell): - cell.disabled = not playable + self.query_one(GameGrid).disabled = not playable def cell(self, row: int, col: int) -> GameCell: """Get the cell at a given location.