Changeset fa81e94 in sasview for src/sas/sasgui/guiframe/local_perspectives/plotting/binder.py
- Timestamp:
- Nov 15, 2017 4:33:09 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- d4881f6a
- Parents:
- 7c487846
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/binder.py
r463e7ffc rfa81e94 187 187 # Check that the trigger is valid 188 188 if trigger not in self._actions: 189 raise ValueError, "%s invalid --- valid triggers are %s" \190 % (trigger, ", ".join(self.events)) 189 raise (ValueError, "%s invalid --- valid triggers are %s" \ 190 % (trigger, ", ".join(self.events))) 191 191 # Register the trigger callback 192 192 self._actions[trigger][artist] = action … … 203 203 """ 204 204 if action not in self.events: 205 raise ValueError, "Trigger expects " + ", ".join(self.events)205 raise (ValueError, "Trigger expects " + ", ".join(self.events)) 206 206 # Tag the event with modifiers 207 207 for mod in ('alt', 'control', 'shift', 'meta'):
Note: See TracChangeset
for help on using the changeset viewer.