Display a blank window
[naja.git] / naja / engine.py
1 import pygame
2 import pygame.locals as pgl
3
4
5 class Engine(object):
6     def __init__(self, surface):
7         self._surface = surface
8
9     def run(self):
10         while True:
11             for ev in pygame.event.get():
12                 if ev.type == pgl.QUIT:
13                     return
14             # TODO: work
15             pygame.display.flip()