Mercurial > mamba
diff mamba/engine.py @ 208:c35e22dc225a
Prepare for circular import
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Wed, 14 Sep 2011 20:30:34 +0200 |
parents | b93845471311 |
children | 7a9be9add4c7 |
line wrap: on
line diff
--- a/mamba/engine.py Wed Sep 14 20:49:23 2011 +0200 +++ b/mamba/engine.py Wed Sep 14 20:30:34 2011 +0200 @@ -1,7 +1,6 @@ """Game engine and top-level game loop.""" from mamba.constants import SCREEN, FPS -from mamba.widgets.base import Container import pygame.event import pygame.display @@ -45,6 +44,7 @@ class Habitat(object): def __init__(self, size=SCREEN): + from mamba.widgets.base import Container self.surface_size = size self.surface = None self.container = Container(pygame.Rect((0, 0), self.surface_size))