Changeset 4375


Ignore:
Timestamp:
Mar 19, 2020 1:17:28 PM (4 years ago)
Author:
vondreele
Message:

try to rationalize plot & data window behavior - put data window on top more consistently

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4369 r4375  
    85088508            G2frame.RefList = list(data.keys())[0]
    85098509        G2pdG.UpdateReflectionGrid(G2frame,data)
    8510         wx.CallAfter(G2plt.PlotPatterns,G2frame)
     8510        G2plt.PlotPatterns(G2frame)
    85118511    elif G2frame.GPXtree.GetItemText(item) == 'Reflection List':    #HKLF reflections
    85128512        G2frame.PatternId = G2frame.GPXtree.GetItemParent(item)
  • trunk/GSASIIphsGUI.py

    r4373 r4375  
    1105411054        elif text == 'Data':
    1105511055            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.DataMenu)
     11056            G2plt.PlotSizeStrainPO(G2frame,data,hist='',Start=True)           
    1105611057            G2ddG.UpdateDData(G2frame,DData,data)
    11057             wx.CallAfter(G2plt.PlotSizeStrainPO,G2frame,data,hist='',Start=True)           
    1105811058        elif text == 'Atoms':
    1105911059            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.AtomsMenu)
     
    1107411074        elif text == 'Draw Options':
    1107511075            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.DataDrawOptions)
     11076            G2plt.PlotStructure(G2frame,data,firstCall=True)
    1107611077            UpdateDrawOptions()
    11077             wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True)
    1107811078        elif text == 'Draw Atoms':
    1107911079            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.DrawAtomsMenu)
     11080            G2plt.PlotStructure(G2frame,data,firstCall=True)
    1108011081            UpdateDrawAtoms()
    11081             wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True)
    1108211082        elif text == 'RB Models':
    1108311083            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.RigidBodiesMenu)
     
    1108511085        elif text == 'Map peaks':
    1108611086            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.MapPeaksMenu)
     11087            G2plt.PlotStructure(G2frame,data,firstCall=True)
    1108711088            FillMapPeaksGrid()
    11088             wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True)
    1108911089        elif text == 'MC/SA':
    1109011090            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.MCSAMenu)
     11091            G2plt.PlotStructure(G2frame,data,firstCall=True)
    1109111092            UpdateMCSA()                       
    11092             wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True)
    1109311093        elif text == 'Texture':
    1109411094            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.TextureMenu)
     11095            G2plt.PlotTexture(G2frame,data,Start=True)           
    1109511096            UpdateTexture()                       
    11096             wx.CallAfter(G2plt.PlotTexture,G2frame,data,Start=True)           
    1109711097        elif text == 'Pawley reflections':
    1109811098            G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.PawleyMenu)
Note: See TracChangeset for help on using the changeset viewer.