Changeset 2587 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Dec 16, 2016 11:25:33 AM (5 years ago)
Author:
toby
Message:

Return SpinButton? to prev. arrangement but with fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r2586 r2587  
    46184618           
    46194619        def OnMoveMult(event):
    4620             data[key]['Mult'] = multSpin.GetValue()*0.01
     4620            data[key]['Mult'] += multSpin.GetValue()*0.01
    46214621            mult.SetValue(data[key]['Mult'])
     4622            multSpin.SetValue(0)
    46224623            wx.CallAfter(OnComputePDF,None)
    46234624                       
    46244625        def AfterChange(invalid,value,tc):
    46254626            if invalid: return
    4626             multSpin.SetValue(int(0.5 + data[key]['Mult']*100))
    46274627            wx.CallAfter(OnComputePDF,None)
    46284628       
     
    46414641        mulBox.Add(mult,0,)
    46424642        multSpin = wx.SpinButton(G2frame.dataDisplay,style=wx.SP_VERTICAL,size=wx.Size(20,20))
    4643         multSpin.SetRange(-100,100)
    4644         multSpin.SetValue(int(data[key]['Mult']*100))
     4643        multSpin.SetRange(-1,1)
     4644        multSpin.SetValue(0)
    46454645        multSpin.Bind(wx.EVT_SPIN, OnMoveMult)
    46464646        mulBox.Add(multSpin,0,WACV)
Note: See TracChangeset for help on using the changeset viewer.