From: Neil Date: Sun, 11 May 2014 17:03:02 +0000 (+0200) Subject: Pass positions to the widgets X-Git-Tag: 0.1~406 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=c783c52af634dc5a11dc25ac45f2ad79f0d3d62d;p=naja.git Pass positions to the widgets --- 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):