Changeset 3715


Ignore:
Timestamp:
Nov 3, 2018 8:17:57 AM (3 years ago)
Author:
vondreele
Message:

fix element tool tip problem vs wx classic/phoenix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElemGUI.py

    r3687 r3715  
    9595       
    9696        El.SetBackgroundColour(color)
    97         El.SetToolTip(tip)
     97        if 'phoenix' in wx.version():
     98            El.SetToolTip(tip)
     99        else:
     100            El.SetToolTipString(tip)
    98101
    99102    def OnElButton(self, event):
     
    284287        El.SetBackgroundColour(color)
    285288        El.SetLabel(name)
    286         El.SetToolTip(tip)
     289        if 'phoenix' in wx.version():
     290            El.SetToolTip(tip)
     291        else:
     292            El.SetToolTipString(tip)
    287293        El.Bind(wx.EVT_BUTTON, self.OnElButton)
    288294
Note: See TracChangeset for help on using the changeset viewer.