changeset 70:442a1bf9b14e

fucking pep8
author Rizmari Versfeld <rizziepit@gmail.com>
date Tue, 08 May 2012 23:10:10 +0200
parents 626b1eaec13c
children 20b01d100ff5
files gamelib/gui_base.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gui_base.py	Tue May 08 23:08:51 2012 +0200
+++ b/gamelib/gui_base.py	Tue May 08 23:10:10 2012 +0200
@@ -1,4 +1,5 @@
 import pygame
+from pygame.locals import SRCALPHA
 from pygame import Surface, Rect
 from pygame.font import Font
 
@@ -157,7 +158,7 @@
     def __init__(self, rect, normal_drawable, down_drawable, text, font,
             shadow):
         super(TextButton, self).__init__(rect, normal_drawable, down_drawable)
-        self.surface = Surface((rect[2], rect[3]), pygame.SRCALPHA)
+        self.surface = Surface((rect[2], rect[3]), SRCALPHA)
         self.text = text
         self.font = font
         self.shadow = shadow
@@ -169,7 +170,7 @@
         size = self.font.size(self.text)
         if self.shadow:
             s = self.font.render(self.text, True, (128, 128, 128))
-            temp_surface = Surface((s.get_width() + 2, s.get_width() + 2), pygame.SRCALPHA)
+            temp_surface = Surface((s.get_width() + 2, s.get_width() + 2), SRCALPHA)
             temp_surface.fill((255, 255, 255, 0))
             temp_surface.blit(s, (2, 2))
             temp_surface.blit(self.text_surface, (0, 0))