+ self.stdButtons = [
+ (ID_NEW.OK_BUTTON, 'OK Button', 'Create standard button'),
+ (ID_NEW.YES_BUTTON, 'YES Button', 'Create standard button'),
+ (ID_NEW.SAVE_BUTTON, 'SAVE Button', 'Create standard button'),
+ (ID_NEW.APPLY_BUTTON, 'APPLY Button', 'Create standard button'),
+ (ID_NEW.NO_BUTTON, 'NO Button', 'Create standard button'),
+ (ID_NEW.CANCEL_BUTTON, 'CANCEL Button', 'Create standard button'),
+ (ID_NEW.HELP_BUTTON, 'HELP Button', 'Create standard button'),
+ (ID_NEW.CONTEXT_HELP_BUTTON, 'CONTEXT HELP Button', 'Create standard button'),
+ ]
+ self.stdButtonIDs = {
+ ID_NEW.OK_BUTTON: ('wxID_OK', '&Ok'),
+ ID_NEW.YES_BUTTON: ('wxID_YES', '&Yes'),
+ ID_NEW.SAVE_BUTTON: ('wxID_SAVE', '&Save'),
+ ID_NEW.APPLY_BUTTON: ('wxID_APPLY', '&Apply'),
+ ID_NEW.NO_BUTTON: ('wxID_NO', '&No'),
+ ID_NEW.CANCEL_BUTTON: ('wxID_CANCEL', '&Cancel'),
+ ID_NEW.HELP_BUTTON: ('wxID_HELP', '&Help'),
+ ID_NEW.CONTEXT_HELP_BUTTON: ('wxID_CONTEXT_HELP', '&Help'),
+ }
+ self.custom = ['custom', 'User-defined controls']
+ self.customMap = {}
+
+ def addCustom(self, klass):
+ n = len(self.custom)-2
+ self.custom.append((ID_NEW.CUSTOM + n, klass))
+ self.customMap[ID_NEW.CUSTOM + n] = klass
+