Changeset fa81e94 in sasview for src/sas/sasgui/plottools/binder.py
- Timestamp:
- Nov 15, 2017 2:33:09 AM (6 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/plottools/binder.py
- Property mode changed from 100644 to 100755
ra1b8fee rfa81e94 2 2 Extension to MPL to support the binding of artists to key/mouse events. 3 3 """ 4 from __future__ import print_function 4 5 5 6 6 import sys … … 28 28 return self.artist is not other.artist 29 29 30 def __ nonzero__(self):30 def __bool__(self): 31 31 return self.artist is not None 32 32 … … 125 125 for cid in self._connections: self.canvas.mpl_disconnect(cid) 126 126 except: 127 logger.error("Error disconnection canvas: %s" % sys.exc_ value)127 logger.error("Error disconnection canvas: %s" % sys.exc_info()[1]) 128 128 self._connections = [] 129 129 … … 189 189 # Check that the trigger is valid 190 190 if trigger not in self._actions: 191 raise ValueError ,"%s invalid --- valid triggers are %s"\192 % (trigger, ", ".join(self.events)) 191 raise ValueError("%s invalid --- valid triggers are %s"\ 192 % (trigger, ", ".join(self.events))) 193 193 194 194 # Register the trigger callback … … 205 205 """ 206 206 if action not in self.events: 207 raise ValueError , "Trigger expects " + ", ".join(self.events)207 raise ValueError("Trigger expects " + ", ".join(self.events)) 208 208 209 209 # Tag the event with modifiers
Note: See TracChangeset
for help on using the changeset viewer.