Add missing state arguments to scene __init__s.
authorSimon Cross <hodgestar@gmail.com>
Sun, 11 May 2014 17:09:37 +0000 (19:09 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sun, 11 May 2014 17:09:37 +0000 (19:09 +0200)
naja/scenes/credits.py
naja/scenes/game.py
naja/scenes/menu.py

index 46c076f487ce65ade92b76cff8e429e6f24e4b5c..a1c7d8f4ff3aefeb3b6fa4106b49a34e41e1e5e2 100644 (file)
@@ -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),
index d6d558c068668503591f9cb1c4ec481b895e684d..e37b63efd4c5daf9af2c8464a27ea1656104afa7 100644 (file)
@@ -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)))
index 6819810be1e5d253fdca03baefb9505e825cb634..9a0fe71318cb3095dd69b16b20c7f69ea8890599 100644 (file)
@@ -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,