Mercurial > mamba
diff mamba/engine.py @ 404:38f95fbc3710
Better dialog handling.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 17 Sep 2011 13:30:00 +0200 |
parents | 13eaea2365b3 |
children | 98ccef2a1a3c |
line wrap: on
line diff
--- a/mamba/engine.py Sat Sep 17 12:57:04 2011 +0200 +++ b/mamba/engine.py Sat Sep 17 13:30:00 2011 +0200 @@ -70,6 +70,11 @@ self.container.draw(self.surface) surface.blit(self.surface, self.surface.get_rect()) + def display_dialog(self, dialog): + self.container.paused = True + self.container.add(dialog) + dialog.grab_focus() + class UserEvent(object):