Changeset 2841


Ignore:
Timestamp:
May 29, 2017 9:08:41 AM (4 years ago)
Author:
vondreele
Message:

fix DData & RBmodel selection tables to allow use of up/down arrows - SetFocus? issues

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r2840 r2841  
    797797        oldFocus = wx.Window.FindFocus()
    798798        G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)
    799         oldFocus.SetFocus()
    800799        wx.CallLater(100,RepaintHistogramInfo)
     800        wx.CallAfter(oldFocus.SetFocus)
    801801       
    802802    def RepaintHistogramInfo(Scroll=0):
  • trunk/GSASIIphsGUI.py

    r2840 r2841  
    61386138            rbObj = data['RBModels']['Residue'][rbId]
    61396139            data['Drawing']['viewPoint'][0] = rbObj['Orig'][0]
     6140            data['Drawing']['Quaternion'] = rbObj['Orient'][0]
    61406141            G2frame.bottomSizer =  ResrbSizer(rbObj)
    61416142            mainSizer.Add(G2frame.bottomSizer)
     
    61456146            RigidBodies.Scroll(0,Scroll)
    61466147            G2frame.dataFrame.SendSizeEvent()
    6147             wx.CallAfter(G2plt.PlotStructure,G2frame,data)
     6148            G2plt.PlotStructure(G2frame,data)
    61486149            oldFocus.SetFocus()
    61496150       
     
    61816182            rbObj = data['RBModels']['Residue'][0]
    61826183            data['Drawing']['viewPoint'][0] = rbObj['Orig'][0]
     6184            data['Drawing']['Quaternion'] = rbObj['Orient'][0]
    61836185            select = wx.ListBox(RigidBodies,choices=RBnames,style=wx.LB_SINGLE,size=(-1,120))
    61846186            select.SetSelection(RBnames.index(rbName))
     
    61906192            mainSizer.Add(G2frame.bottomSizer)
    61916193            G2frame.dataFrame.SetStatusText('NB: Rotation vector is in crystallographic space')
    6192             wx.CallAfter(G2plt.PlotStructure,G2frame,data)
     6194            G2plt.PlotStructure(G2frame,data)
    61936195        if 'Vector' in data['RBModels'] and len(data['RBModels']['Vector']):
    61946196            mainSizer.Add((5,5),0)
Note: See TracChangeset for help on using the changeset viewer.