changeset 535:2d87cb7eee50

pep8 cleanup
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 11 Feb 2012 12:04:09 +0200
parents 6df527142e69
children 49b6a3d31ee7
files gamelib/widgets.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/widgets.py	Sat Feb 11 12:02:21 2012 +0200
+++ b/gamelib/widgets.py	Sat Feb 11 12:04:09 2012 +0200
@@ -75,7 +75,8 @@
 class BoomButton(BoomLabel):
 
     def __init__(self, text, action, screen):
-        super(BoomButton, 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
@@ -94,7 +95,7 @@
         w = 2
         top, bottom, left, right = r.top, r.bottom, r.left, r.right
         draw_lines(surface, self._frame_color, False, [
-            (left, bottom), (left, top), (right-w, top), (right-w, bottom)
+            (left, bottom), (left, top), (right - w, top), (right - w, bottom)
             ], w)
 
 
@@ -187,6 +188,7 @@
             # A menu item needs to be invoked
             self.invoke_item(item)
 
+
 class BoomImageButton(albow.controls.Image):
     """The fancy image button for the screens"""
 
@@ -211,4 +213,3 @@
         if self.enable:
             return self.enable()
         return True
-