Changeset b0b09b9 in sasview for src/sas/qtgui/Plotting/Binder.py
- Timestamp:
- Oct 26, 2017 3:13:05 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:
- 895e7359
- Parents:
- def64a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Binder.py
rdc5ef15 rb0b09b9 24 24 return self.artist is not other.artist 25 25 26 def __ nonzero__(self):26 def __bool__(self): 27 27 return self.artist is not None 28 28 … … 61 61 ] 62 62 except: 63 print "bypassing scroll_event: wrong matplotlib version"63 print("bypassing scroll_event: wrong matplotlib version") 64 64 self._connections = [ 65 65 canvas.mpl_connect('motion_notify_event', self._onMotion), … … 121 121 for cid in self._connections: self.canvas.mpl_disconnect(cid) 122 122 except: 123 logging.error("Error disconnection canvas: %s" % sys.exc_ value)123 logging.error("Error disconnection canvas: %s" % sys.exc_info()[1]) 124 124 self._connections = [] 125 125 … … 185 185 # Check that the trigger is valid 186 186 if trigger not in self._actions: 187 raise ValueError ,"%s invalid --- valid triggers are %s"\188 % (trigger, ", ".join(self.events)) 187 raise ValueError("%s invalid --- valid triggers are %s"\ 188 % (trigger, ", ".join(self.events))) 189 189 190 190 # Register the trigger callback … … 201 201 """ 202 202 if action not in self.events: 203 raise ValueError , "Trigger expects " + ", ".join(self.events)203 raise ValueError("Trigger expects " + ", ".join(self.events)) 204 204 205 205 # Tag the event with modifiers
Note: See TracChangeset
for help on using the changeset viewer.