X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftile.py;h=7550ba573ba147c4e39d3e0bccb7325bd318251e;hb=afd42e545649b6e5a3fe1502c063080cb9302c14;hp=db20cda7a597c9eec410967381e586cf85ef315a;hpb=01008fbdb6fd368d2c6df854725d608d6a3fb0cc;p=naja.git diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index db20cda..7550ba5 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -1,11 +1,11 @@ -from naja.constants import TILE_SIZE -from naja.widgets.base import Widget -from naja.resources import resources - # These will probably need to go away when we have images import pygame import pygame.locals as pgl +from naja.constants import TILE_SIZE +from naja.resources import resources +from naja.widgets.base import Widget + class TileWidget(Widget): """Widget which holds a tile on the game board.""" @@ -15,7 +15,7 @@ class TileWidget(Widget): def prepare(self): # Placeholder logic - just draw the outline of a square - self.surface = pygame.surface.Surface(self.size) + self.surface = pygame.surface.Surface(TILE_SIZE) pygame.draw.lines(self.surface, pgl.color.THECOLORS['yellow'], True, [(1, 1), (1, 95), (95, 95), (95, 1)], 2) self.surface.convert_alpha(pygame.display.get_surface())