Mercurial > boomslang
comparison pyntnclick/engine.py @ 607:f2b1ddcc4986 pyntnclick
Make menu and endscreen work.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 20:34:23 +0200 |
parents | fabce47e542f |
children | a25cd1c6335a |
comparison
equal
deleted
inserted
replaced
606:5d62644288eb | 607:f2b1ddcc4986 |
---|---|
85 def display_dialog(self, dialog): | 85 def display_dialog(self, dialog): |
86 self.container.paused = True | 86 self.container.paused = True |
87 self.container.add(dialog) | 87 self.container.add(dialog) |
88 dialog.grab_focus() | 88 dialog.grab_focus() |
89 | 89 |
90 def change_screen(self, new_screen): | |
91 ScreenChangeEvent.post(new_screen) | |
92 | |
90 | 93 |
91 class UserEvent(object): | 94 class UserEvent(object): |
92 """A user event type allowing subclassing, | 95 """A user event type allowing subclassing, |
93 to provide an infinate number of user-defined events | 96 to provide an infinate number of user-defined events |
94 """ | 97 """ |