Mercurial > rinkhals
changeset 347:35f09e0ccd16
Make 'Esc' cancel the 'Are You Sure?' dialog. Fix dialog title
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 23:13:48 +0000 |
parents | 6baf8b5beb5c |
children | e61f95503461 |
files | gamelib/misc.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/misc.py Sat Sep 05 23:11:16 2009 +0000 +++ b/gamelib/misc.py Sat Sep 05 23:13:48 2009 +0000 @@ -53,7 +53,7 @@ class CheckDialog(gui.Dialog): def __init__(self, **params): - title = gui.Label('Are You sure') + title = gui.Label('Are You Sure?') self.do_quit = False self.running = True tbl = gui.Table() @@ -77,7 +77,7 @@ def event(self, e): if e.type == KEYDOWN and e.key == K_ESCAPE: - self.clicked(True) + self.clicked(False) return True return gui.Dialog.event(self, e)