Changeset 3428


Ignore:
Timestamp:
Jun 11, 2018 8:56:34 AM (3 years ago)
Author:
vondreele
Message:

fix warning about NavigationToolBar2WxAgg & get tooltips to show in wx phoenix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3426 r3428  
    150150    from matplotlib.backends.backend_wx import FigureCanvas as Canvas
    151151try:
    152     from matplotlib.backends.backend_wxagg import NavigationToolbar2Wx as Toolbar
     152    from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg as Toolbar
    153153except ImportError:
    154154    from matplotlib.backends.backend_wxagg import Toolbar as Toolbar # name changes in wx4.0.1
     
    400400    def SetToolTipString(self,text):
    401401        if 'phoenix' in wx.version():
    402             return self.canvas.SetToolTip(wx.ToolTip(text))
     402            return self.canvas.SetToolTip(text)
    403403        else:
    404404            return self.canvas.SetToolTipString(text)
Note: See TracChangeset for help on using the changeset viewer.