From c783c52af634dc5a11dc25ac45f2ad79f0d3d62d Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 11 May 2014 19:03:02 +0200 Subject: [PATCH] Pass positions to the widgets --- naja/scenes/game.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/naja/scenes/game.py b/naja/scenes/game.py index b96120b..4862500 100644 --- a/naja/scenes/game.py +++ b/naja/scenes/game.py @@ -22,10 +22,10 @@ class GameScene(Scene): def __init__(self): super(GameScene, self).__init__() - self.widgets.append(PlayerBitsWidget()) - self.widgets.append(BoardWidget()) - self.widgets.append(GameBitsWidget()) - self.widgets.append(InfoAreaWidget()) + self.widgets.append(PlayerBitsWidget((0, 0))) + self.widgets.append(BoardWidget((0, 60))) + self.widgets.append(GameBitsWidget((0, 540))) + self.widgets.append(InfoAreaWidget((480, 0))) def handle_event(self, ev): if ev.type == pgl.KEYUP and ev.key in (pgl.K_q, pgl.K_ESCAPE): -- 2.34.1