changeset 476:c72946d3a59a

Some minor pylint driven style fixes
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 29 Aug 2010 11:36:16 +0200
parents ee6dfee88912
children 51055400a9a8
files gamelib/endscreen.py gamelib/gamescreen.py gamelib/scenes/bridge.py gamelib/scenes/game_constants.py gamelib/widgets.py
diffstat 5 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
--- 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
--- 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)
--- 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'
--- 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