Changeset c416a17 in sasview for src/sas/sasgui/plottools/toolbar.py


Ignore:
Timestamp:
May 26, 2017 7:41:44 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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.
Message:

Merge branch 'master' into ESS_GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/plottools/toolbar.py

    r092a3d9 rc416a17  
    66from matplotlib.backends.backend_wx import _load_bitmap 
    77import logging 
     8 
     9logger = logging.getLogger(__name__) 
    810 
    911# Event binding code changed after version 2.5 
     
    3537 
    3638    # CRUFT: mpl 1.1 uses save rather than save_figure 
    37     #try: save_figure = NavigationToolbar2WxAgg.save 
    38     #except AttributeError: pass 
     39    try: save_figure = NavigationToolbar2WxAgg.save 
     40    except AttributeError: pass 
    3941     
    4042    def _init_toolbar(self): 
     
    9496            self._parent.onToolContextMenu(event=event) 
    9597        except: 
    96             logging.error("Plot toolbar could not show menu") 
     98            logger.error("Plot toolbar could not show menu") 
    9799 
    98100    def context_menu(self, event): 
     
    122124        except: 
    123125            import traceback 
    124             logging.error(traceback.format_exc()) 
     126            logger.error(traceback.format_exc()) 
    125127 
    126128    def copy_figure(self, event): 
     
    169171    wx.TheClipboard.SetData(bmp) 
    170172    wx.TheClipboard.Close() 
    171  
    172  
Note: See TracChangeset for help on using the changeset viewer.