Changeset 3824


Ignore:
Timestamp:
Feb 14, 2019 9:31:11 AM (3 years ago)
Author:
vondreele
Message:

do ResetFlatBkg? for changing PDF background/container files & multipliers (not the spin buttons tho.)
update flat background value (without refreshing entire GUI) for each change from above

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r3821 r3824  
    64196419            def OnMult(invalid,value,tc):
    64206420                if invalid: return
     6421                ResetFlatBkg()
    64216422                wx.CallAfter(OnComputePDF,None)
    64226423               
     
    64976498                Smin += Cmul*Cmin
    64986499            data['Flat Bkg'] = max(0,Smin)
     6500            G2frame.flatBkg.SetValue(data['Flat Bkg'])
    64996501                           
    65006502        PDFfileSizer = wx.BoxSizer(wx.VERTICAL)
     
    66196621        def OnFlatSpin(event):
    66206622            data['Flat Bkg'] += flatSpin.GetValue()*0.01*data['IofQmin']
    6621             flatBkg.SetValue(data['Flat Bkg'])
     6623            G2frame.flatBkg.SetValue(data['Flat Bkg'])
    66226624            flatSpin.SetValue(0)       
    66236625            wx.CallAfter(OnComputePDF,None)
     
    66796681            sqBox.Add(obliqCoeff,0)
    66806682        sqBox.Add(wx.StaticText(G2frame.dataWindow,label=' Flat Bkg.: '),0,WACV)
    6681         flatBkg = G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'Flat Bkg',nDig=(10,0),min=0,
     6683        G2frame.flatBkg = G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'Flat Bkg',nDig=(10,0),min=0,
    66826684                typeHint=float,OnLeave=AfterChangeNoRefresh)
    6683         sqBox.Add(flatBkg,0)
     6685        sqBox.Add(G2frame.flatBkg,0)
    66846686        flatSpin = wx.SpinButton(G2frame.dataWindow,style=wx.SP_VERTICAL,size=wx.Size(20,25))
    66856687        flatSpin.SetRange(-1,1)
Note: See TracChangeset for help on using the changeset viewer.