comparison mamba/engine.py @ 467:165fcc747951

Splishy splash
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 17 Sep 2011 21:42:08 +0200
parents 98ccef2a1a3c
children c014f5023cd2
comparison
equal deleted inserted replaced
466:5da148acb36a 467:165fcc747951
62 self.surface = None 62 self.surface = None
63 63
64 def dispatch(self, ev): 64 def dispatch(self, ev):
65 self.container.event(ev) 65 self.container.event(ev)
66 66
67 def draw_background(self):
68 self.surface.fill(pygame.Color('gray'))
69
67 def draw(self, surface): 70 def draw(self, surface):
68 if self.surface: 71 if self.surface:
69 self.surface.fill(pygame.Color('gray')) 72 self.draw_background()
70 self.container.draw(self.surface) 73 self.container.draw(self.surface)
71 surface.blit(self.surface, self.surface.get_rect()) 74 surface.blit(self.surface, self.surface.get_rect())
72 75
73 def display_dialog(self, dialog): 76 def display_dialog(self, dialog):
74 self.container.paused = True 77 self.container.paused = True