From: Simon Cross Date: Sun, 11 May 2014 17:09:37 +0000 (+0200) Subject: Add missing state arguments to scene __init__s. X-Git-Tag: 0.1~401 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=0c2f24f460b34fc558eedbd448a4c35415cb60d6;p=naja.git Add missing state arguments to scene __init__s. --- diff --git a/naja/scenes/credits.py b/naja/scenes/credits.py index 46c076f..a1c7d8f 100644 --- a/naja/scenes/credits.py +++ b/naja/scenes/credits.py @@ -13,8 +13,8 @@ class CreditsScene(Scene): base_menu = None - def __init__(self): - super(CreditsScene, self).__init__() + def __init__(self, state): + super(CreditsScene, self).__init__(state) self.widgets.append(TextWidget((60, 10), 'Credits', fontsize=32, colour='white')) self.widgets.append(TextWidget((60, 30), diff --git a/naja/scenes/game.py b/naja/scenes/game.py index d6d558c..e37b63e 100644 --- a/naja/scenes/game.py +++ b/naja/scenes/game.py @@ -20,8 +20,8 @@ class GameScene(Scene): Gameboard scene. """ - def __init__(self): - super(GameScene, self).__init__() + def __init__(self, state): + super(GameScene, self).__init__(state) self.widgets.append(PlayerBitsWidget((0, 0))) self.widgets.append(BoardWidget((0, 60))) self.widgets.append(GameBitsWidget((0, 540))) diff --git a/naja/scenes/menu.py b/naja/scenes/menu.py index 6819810..9a0fe71 100644 --- a/naja/scenes/menu.py +++ b/naja/scenes/menu.py @@ -13,8 +13,8 @@ from naja.events import SceneChangeEvent class MenuScene(Scene): - def __init__(self): - super(MenuScene, self).__init__() + def __init__(self, state): + super(MenuScene, self).__init__(state) self.widgets.append(TextWidget((10, 10), 'Game', fontsize=32, colour='white')) self.widgets.append(TextWidget((10, 40), 'Credits', fontsize=32,