Changeset 2406 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Aug 3, 2016 8:14:47 PM (5 years ago)
Author:
vondreele
Message:

change spin flip from red/black to -1/1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r2401 r2406  
    720720                Obj = event.GetEventObject()
    721721                isym = Indx[Obj.GetId()]
    722                 SGData['SGSpin'][isym] = Obj.GetValue()
     722                spCode = {'red':-1,'black':1}
     723                SGData['SGSpin'][isym] = spCode[Obj.GetValue()]
    723724                wx.CallAfter(UpdateGeneral)                               
    724725
     
    734735            spinSizer = wx.BoxSizer(wx.HORIZONTAL)
    735736            spinColor = ['black','red']
     737            spCode = {-1:'red',1:'black'}
    736738            for isym,sym in enumerate(GenSym):
    737739                spinSizer.Add(wx.StaticText(General,label='%s: '%(sym.strip())),0,WACV)               
    738                 spinOp = wx.ComboBox(General,value=SGData['SGSpin'][isym],choices=spinColor,
     740                spinOp = wx.ComboBox(General,value=spCode[SGData['SGSpin'][isym]],choices=spinColor,
    739741                    style=wx.CB_READONLY|wx.CB_DROPDOWN)               
    740742                Indx[spinOp.GetId()] = isym
Note: See TracChangeset for help on using the changeset viewer.