Add tiles to the board. Skip draw for other game scene widgets for now
[naja.git] / naja / widgets / tile.py
index db20cda7a597c9eec410967381e586cf85ef315a..1950996aea0dd70391e6986d26d5cd242781fa2b 100644 (file)
@@ -1,7 +1,8 @@
 from naja.constants import TILE_SIZE
-from naja.widgets.base import Widget
 from naja.resources import resources
 
+from .base import Widget
+
 # These will probably need to go away when we have images
 import pygame
 import pygame.locals as pgl
@@ -15,7 +16,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())