Changeset 347:35f09e0ccd16


Ignore:
Timestamp:
Sep 5, 2009, 11:13:48 PM (11 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@348
Message:

Make 'Esc' cancel the 'Are You Sure?' dialog. Fix dialog title

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/misc.py

    r336 r347  
    5454class CheckDialog(gui.Dialog):
    5555    def __init__(self, **params):
    56         title = gui.Label('Are You sure')
     56        title = gui.Label('Are You Sure?')
    5757        self.do_quit = False
    5858        self.running = True
     
    7878    def event(self, e):
    7979        if e.type == KEYDOWN and e.key == K_ESCAPE:
    80             self.clicked(True)
     80            self.clicked(False)
    8181            return True
    8282        return gui.Dialog.event(self, e)
Note: See TracChangeset for help on using the changeset viewer.