Ignore:
Timestamp:
Feb 7, 2021 7:35:35 PM (10 months ago)
Author:
toby
Message:

don't reuse dataWindow sizer for background or PWDR; plotting: reset f by select all (or none).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4801 r4803  
    51955195            if 'msg' in Rvals: text += '\n' + Rvals['msg'] + '\n'
    51965196            if 'Aborted' in Rvals:
    5197                 text += '\ERROR: Minimizer failed to reduce chi**2!\n'
     5197                text += '\nWARNING: Minimizer halted because chi**2 increased\n'
    51985198            if lamMax >= 10.:
    51995199                text += '\nWARNING: Steepest descents dominates;'+   \
     
    85238523   
    85248524    if G2frame.dataWindow:
    8525         G2frame.dataWindow.ClearData()
    8526     mainSizer = G2frame.dataWindow.GetSizer()
     8525        G2frame.dataWindow.ClearData()
     8526    #G2frame.dataWindow.GetSizer() # don't use this since may be wx.HORIZONTAL or wx.VERTICAL
     8527    bigSizer = wx.BoxSizer(wx.HORIZONTAL)
     8528    mainSizer = wx.BoxSizer(wx.VERTICAL)
    85278529    mainSizer.Add((5,5),)
    85288530    wtSizer = wx.BoxSizer(wx.HORIZONTAL)
     
    86368638        mainSizer.Add(mSizer)
    86378639       
     8640    bigSizer.Add(mainSizer)   
     8641    bigSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=kind))
     8642    G2frame.dataWindow.SetSizer(bigSizer)
     8643   
    86388644    G2frame.GPXtree.SetItemPyData(item,data)
    86398645    G2frame.PatternId = item
Note: See TracChangeset for help on using the changeset viewer.