changeset 39:d82d3e54a4ef

fixed more pep8 issues
author Rizmari Versfeld <rizziepit@gmail.com>
date Mon, 07 May 2012 00:26:55 +0200
parents 7e18a67995f6
children 0e178b20e3ff
files gamelib/gui.py gamelib/gui_base.py gamelib/main.py
diffstat 3 files changed, 5 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gui.py	Mon May 07 00:13:11 2012 +0200
+++ b/gamelib/gui.py	Mon May 07 00:26:55 2012 +0200
@@ -1,11 +1,7 @@
-import os
-
-import pygame
 from pygame import image
-from pygame.sprite import Sprite
 
 from gamelib import data
-from gamelib.gui_base import *
+from gamelib.gui_base import Drawable, TextButton
 
 
 class ImageDrawable(Drawable):
--- a/gamelib/gui_base.py	Mon May 07 00:13:11 2012 +0200
+++ b/gamelib/gui_base.py	Mon May 07 00:26:55 2012 +0200
@@ -1,6 +1,5 @@
 import pygame
-from pygame.locals import *
-from pygame import Surface, Rect, Color
+from pygame import Surface, Rect
 from pygame.font import Font
 
 from gamelib import data
--- a/gamelib/main.py	Mon May 07 00:13:11 2012 +0200
+++ b/gamelib/main.py	Mon May 07 00:26:55 2012 +0200
@@ -6,15 +6,11 @@
 package.
 '''
 import pygame
-from pygame.locals import *
-from pygame.event import *
+from pygame.locals import MOUSEBUTTONDOWN, MOUSEBUTTONUP, MOUSEMOTION, QUIT
 from pygame.time import Clock
-from pygame import Surface
 
-from gamelib import data
-
-from gamelib.gui_base import *
-from gamelib.gui import *
+from gamelib.gui_base import Window
+from gamelib.gui import BigButton
 
 
 pygame.init()