Changeset 1076 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Oct 3, 2013 12:52:28 PM (8 years ago)
Author:
vondreele
Message:

again fix MC/SA window scroll behavior & small start on dummy histograms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r1075 r1076  
    9393        data['RBModels'] = {}
    9494    if 'MCSA' not in data:
    95         data['MCSA'] = {'Models':[{'Type':'MD','Coef':[1.0,False,[0.3,3.],],'axis':[0,0,1]}],'Results':[],'AtInfo':{}}
     95        data['MCSA'] = {'Models':[{'Type':'MD','Coef':[1.0,False,[.8,1.2],],'axis':[0,0,1]}],'Results':[],'AtInfo':{}}
    9696    if isinstance(data['MCSA']['Results'],dict):
    9797        data['MCSA']['Results'] = []
     
    42794279                    Results[r][0] = True
    42804280                    resultsTable.SetValue(r,0,True)
     4281                    G2plt.PlotStructure(G2frame,data)
     4282                    wx.CallAfter(UpdateMCSA,MCSA.GetScrollPos(wx.VERTICAL))
    42814283                    resultsGrid.ForceRefresh()
    4282                     wx.CallAfter(UpdateMCSA)
    4283                     G2plt.PlotStructure(G2frame,data)
    42844284                elif c == 1:
    42854285                    if Results[r][1]:
     
    43614361            mainSizer.Add(ResultsSizer(Results))
    43624362           
    4363         mainSizer.Layout()
    43644363        SetPhaseWindow(G2frame.dataFrame,MCSA,mainSizer)
    43654364        Size = MCSA.GetSize()
     
    45154514       
    45164515    def OnMCSAclear(event):
    4517         data['MCSA'] = {'Models':[{'Type':'MD','Coef':[1.0,False,[0.,3.],],'axis':[0,0,1]}],'Results':[],'AtInfo':{}}
     4516        data['MCSA'] = {'Models':[{'Type':'MD','Coef':[1.0,False,[.8,1.2],],'axis':[0,0,1]}],'Results':[],'AtInfo':{}}
    45184517        G2plt.PlotStructure(G2frame,data)
    45194518        UpdateMCSA()
Note: See TracChangeset for help on using the changeset viewer.