Render bit pattern markers on tile widgets
[naja.git] / naja / widgets / board.py
index ac53d5dd9c58f361a044588f89cf6d7f25e147c0..c5eef2ac50ae00784e120fc2a70fc180fa5a7733 100644 (file)
@@ -11,7 +11,7 @@ class BoardWidget(Widget):
     """
     Widget which holds all the tiles that make up the gameboard.
     """
-    def __init__(self, pos, tiles=None):
+    def __init__(self, pos, state):
         super(BoardWidget, self).__init__(pos, BOARD_SIZE)
         # FIXME: Placeholder logic
         self._tiles = []
@@ -19,7 +19,7 @@ class BoardWidget(Widget):
             for x in range(0, 5):
                 tile_pos = (pos[0] + x * TILE_SIZE[0],
                             pos[1] + y * TILE_SIZE[1])
-                self._tiles.append(TileWidget(tile_pos, None))
+                self._tiles.append(TileWidget(tile_pos, state, (x, y)))
 
     def prepare(self):
         for tile in self._tiles: