From 0c2f24f460b34fc558eedbd448a4c35415cb60d6 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sun, 11 May 2014 19:09:37 +0200 Subject: [PATCH] Add missing state arguments to scene __init__s. --- naja/scenes/credits.py | 4 ++-- naja/scenes/game.py | 4 ++-- naja/scenes/menu.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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, -- 2.34.1