# HG changeset patch # User Neil Muller # Date 1252192428 0 # Node ID 35f09e0ccd162ddfb9baaf84c207eabee50e8efe # Parent 6baf8b5beb5c2a405d4d82091fc9f45f350635aa Make 'Esc' cancel the 'Are You Sure?' dialog. Fix dialog title diff -r 6baf8b5beb5c -r 35f09e0ccd16 gamelib/misc.py --- 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)