Mercurial > sypikslang
comparison gamelib/engine.py @ 68:7309392d9ca9
fixed widget drawing bugs
author | Rizmari Versfeld <rizziepit@gmail.com> |
---|---|
date | Tue, 08 May 2012 23:05:58 +0200 |
parents | 1d3d20bdc8b9 |
children | e386ec5d179b |
comparison
equal
deleted
inserted
replaced
67:06c8539df478 | 68:7309392d9ca9 |
---|---|
64 self.process_input() | 64 self.process_input() |
65 self.draw() | 65 self.draw() |
66 clock.tick(FPS) | 66 clock.tick(FPS) |
67 | 67 |
68 def draw(self): | 68 def draw(self): |
69 for view in self._window_stack: | 69 #for view in self._window_stack: |
70 view.draw(self._screen) | 70 self._window_stack[-1].draw(self._screen) |
71 pygame.display.flip() | 71 pygame.display.flip() |
72 | 72 |
73 def process_input(self): | 73 def process_input(self): |
74 for event in pygame.event.get(): | 74 for event in pygame.event.get(): |
75 if self._mouse_down: | 75 if self._mouse_down: |