Changeset 3445


Ignore:
Timestamp:
Jun 21, 2018 9:44:35 AM (5 years ago)
Author:
vondreele
Message:

wx phoenix fixes to G2ctrls for tooltip & sequential table motion binds to show tooltips for esds, etc.
replace SelectItem? with SelectDataTreeItem? for seq table after seqrefine finished. Works now.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r3442 r3445  
    13701370                    style=wx.RAISED_BORDER)
    13711371                but.Bind(wx.EVT_BUTTON, self._OnCopyButton)
    1372                 but.SetToolTipString('Press to copy adjacent value to all rows below')
     1372                if 'phoenix' in wx.version():
     1373                    but.SetToolTip('Press to copy adjacent value to all rows below')
     1374                else:
     1375                    but.SetToolTipString('Press to copy adjacent value to all rows below')
    13731376                self.ButtonIndex[but] = i
    13741377                subSizer.Add(but)
     
    36903693                return
    36913694            if hinttext is None: hinttext = ''
    3692             win.SetToolTipString(hinttext)
     3695            if 'phoenix' in wx.version():
     3696                win.SetToolTip(hinttext)
     3697            else:
     3698                win.SetToolTipString(hinttext)
    36933699            prev_rowcol[:] = [row,col,win]
    36943700            if event: event.Skip()
    3695 
    3696         wx.EVT_MOTION(self.GetGridWindow(), OnMouseMotion)
    3697         if colLblCallback: wx.EVT_MOTION(self.GetGridColLabelWindow(), OnMouseMotion)
    3698         if rowLblCallback: wx.EVT_MOTION(self.GetGridRowLabelWindow(), OnMouseMotion)
     3701        if 'phoenix' in wx.version():
     3702            self.GetGridWindow().Bind(wx.EVT_MOTION,OnMouseMotion)
     3703            if colLblCallback: self.GetGridColLabelWindow().Bind(wx.EVT_MOTION,OnMouseMotion)
     3704            if rowLblCallback: self.GetGridRowLabelWindow().Bind(wx.EVT_MOTION,OnMouseMotion)
     3705        else:
     3706            wx.EVT_MOTION(self.GetGridWindow(), OnMouseMotion)
     3707            if colLblCallback: wx.EVT_MOTION(self.GetGridColLabelWindow(), OnMouseMotion)
     3708            if rowLblCallback: wx.EVT_MOTION(self.GetGridRowLabelWindow(), OnMouseMotion)
    36993709                                                   
    37003710################################################################################           
  • trunk/GSASIIdataGUI.py

    r3442 r3445  
    44824482                    self.ResetPlots()
    44834483                    sId = GetGPXtreeItemId(self,self.root,'Sequential results')
    4484                     self.GPXtree.SelectItem(sId)
     4484                    SelectDataTreeItem(self,sId)
    44854485            finally:
    44864486                dlg.Destroy()
Note: See TracChangeset for help on using the changeset viewer.