Changeset c416a17 in sasview for src/sas/sasgui/plottools/toolbar.py
- Timestamp:
- May 26, 2017 7:41:44 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:
- c1e380e
- Parents:
- 6964d44 (diff), 7132e49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/toolbar.py
r092a3d9 rc416a17 6 6 from matplotlib.backends.backend_wx import _load_bitmap 7 7 import logging 8 9 logger = logging.getLogger(__name__) 8 10 9 11 # Event binding code changed after version 2.5 … … 35 37 36 38 # CRUFT: mpl 1.1 uses save rather than save_figure 37 #try: save_figure = NavigationToolbar2WxAgg.save38 #except AttributeError: pass39 try: save_figure = NavigationToolbar2WxAgg.save 40 except AttributeError: pass 39 41 40 42 def _init_toolbar(self): … … 94 96 self._parent.onToolContextMenu(event=event) 95 97 except: 96 logg ing.error("Plot toolbar could not show menu")98 logger.error("Plot toolbar could not show menu") 97 99 98 100 def context_menu(self, event): … … 122 124 except: 123 125 import traceback 124 logg ing.error(traceback.format_exc())126 logger.error(traceback.format_exc()) 125 127 126 128 def copy_figure(self, event): … … 169 171 wx.TheClipboard.SetData(bmp) 170 172 wx.TheClipboard.Close() 171 172
Note: See TracChangeset
for help on using the changeset viewer.