# HG changeset patch # User Neil Muller # Date 1283074576 -7200 # Node ID c72946d3a59aedc462462da490e61827ad86a438 # Parent ee6dfee88912c488874e9d7027bb586e1a463fdb Some minor pylint driven style fixes diff -r ee6dfee88912 -r c72946d3a59a gamelib/endscreen.py --- a/gamelib/endscreen.py Sun Aug 29 11:17:09 2010 +0200 +++ b/gamelib/endscreen.py Sun Aug 29 11:36:16 2010 +0200 @@ -24,7 +24,7 @@ self.add(self._quit_button) def draw(self, surface): - surface.blit(self.background, (0,0)) + surface.blit(self.background, (0, 0)) self._menu_button.draw(surface) self._quit_button.draw(surface) diff -r ee6dfee88912 -r c72946d3a59a gamelib/gamescreen.py --- a/gamelib/gamescreen.py Sun Aug 29 11:17:09 2010 +0200 +++ b/gamelib/gamescreen.py Sun Aug 29 11:36:16 2010 +0200 @@ -132,6 +132,7 @@ class DetailWindow(Widget): def __init__(self, screen): Widget.__init__(self) + self.image_rect = None self.screen = screen self.state = screen.state self.border_width = 5 diff -r ee6dfee88912 -r c72946d3a59a gamelib/scenes/bridge.py --- a/gamelib/scenes/bridge.py Sun Aug 29 11:17:09 2010 +0200 +++ b/gamelib/scenes/bridge.py Sun Aug 29 11:36:16 2010 +0200 @@ -184,7 +184,7 @@ class StethoscopeThing(Thing): "Stehoscope on the doctor" - NAME ='bridge.stethoscope' + NAME = 'bridge.stethoscope' INTERACTS = { 'stethoscope': InteractImage(650, 178, 'hanging_stethoscope.png'), @@ -228,7 +228,7 @@ class SuperconductorThing(Thing): "Superconductor from the massage chair." - NAME ='bridge.superconductor' + NAME = 'bridge.superconductor' INTERACTS = { 'superconductor': InteractImage(158, 138, 'superconductor.png'), @@ -286,7 +286,7 @@ class LeftLights(BlinkingLights): - NAME ='bridge.lights.1' + NAME = 'bridge.lights.1' INTERACTS = { "lights": InteractAnimated(176, 337, ["bridge_lights_1_1.png", "bridge_lights_1_2.png", "bridge_lights_1_3.png", "bridge_lights_1_2.png"], 5) @@ -296,7 +296,7 @@ class RightLights(BlinkingLights): - NAME ='bridge.lights.2' + NAME = 'bridge.lights.2' INTERACTS = { "lights": InteractAnimated(559, 332, ["bridge_lights_2_1.png", "bridge_lights_2_2.png", "bridge_lights_2_3.png", "bridge_lights_2_2.png"], 5) diff -r ee6dfee88912 -r c72946d3a59a gamelib/scenes/game_constants.py --- a/gamelib/scenes/game_constants.py Sun Aug 29 11:17:09 2010 +0200 +++ b/gamelib/scenes/game_constants.py Sun Aug 29 11:36:16 2010 +0200 @@ -1,3 +1,3 @@ """Usefule constants that are needed in several scenes""" -PLAYER_ID='84C7-D10DCFDA0878' +PLAYER_ID = '84C7-D10DCFDA0878' diff -r ee6dfee88912 -r c72946d3a59a gamelib/widgets.py --- a/gamelib/widgets.py Sun Aug 29 11:17:09 2010 +0200 +++ b/gamelib/widgets.py Sun Aug 29 11:36:16 2010 +0200 @@ -75,7 +75,7 @@ class BoomButton(BoomLabel): def __init__(self, text, action, screen): - super(BoomLabel, self).__init__(text, font=get_font(20, 'Vera.ttf'), margin=4) + super(BoomButton, self).__init__(text, font=get_font(20, 'Vera.ttf'), margin=4) self.bg_color = (0, 0, 0) self._frame_color = Color(50, 50, 50) self.action = action