Changeset 515:1b1bd4f39e5c
- Timestamp:
- 09/07/13 17:47:48 (9 years ago)
- Branch:
- default
- Phase:
- public
- Rebase:
- 63313765303663386133633631353135346233366562316364643363353337313839333035346564
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/area_editor.py
r513 r515 25 25 from albow.widget import Widget 26 26 from albow.controls import Button, Label, CheckBox 27 from albow.dialogs import alert, Dialog 27 from albow.dialogs import alert, Dialog, ask 28 28 from albow.layout import Row 29 29 from albow.fields import TextField … … 1075 1075 1076 1076 y = SCREEN[1] - MENU_BUTTON_HEIGHT - MENU_PAD 1077 quit_but = Button('Quit', action=self. quit)1077 quit_but = Button('Quit', action=self.do_quit) 1078 1078 quit_but.rect = BUTTON_RECT.copy() 1079 1079 quit_but.rect.move_ip(MENU_LEFT, y) … … 1168 1168 1169 1169 y = SCREEN[1] - MENU_BUTTON_HEIGHT - MENU_PAD 1170 quit_but = Button('Quit', action=self. quit)1170 quit_but = Button('Quit', action=self.do_quit) 1171 1171 quit_but.rect = BUTTON_RECT.copy() 1172 1172 quit_but.rect.move_ip(MENU_LEFT, y) … … 1177 1177 def key_down(self, ev): 1178 1178 if ev.key == pgl.K_ESCAPE: 1179 self. quit()1179 self.do_quit() 1180 1180 elif ev.key == pgl.K_s: 1181 1181 self.save() 1182 1182 else: 1183 1183 self.level_widget.key_down(ev) 1184 1185 def do_quit(self): 1186 res = ask("Really Quit?") 1187 if res == "OK": 1188 self.quit() 1184 1189 1185 1190 def save(self):
Note:
See TracChangeset
for help on using the changeset viewer.