# HG changeset patch # User Neil Muller # Date 1328954649 -7200 # Node ID 2d87cb7eee50222319d12ce02305fd08d1abe331 # Parent 6df527142e6920d1e57c3bad3cee1a9d3978d36d pep8 cleanup diff -r 6df527142e69 -r 2d87cb7eee50 gamelib/widgets.py --- 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 -