Ignore:
Timestamp:
Jun 22, 2015 11:42:30 AM (8 years ago)
Author:
vondreele
Message:

suppress editing of 1st twin element; it is always the identity matrix and frac is 1-Sum(other twin fr)
make FWHM consistent with measured FWHM for all lists & exports of peak lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r1894 r1902  
    864864                valSizer = wx.BoxSizer(wx.HORIZONTAL)
    865865                valSizer.Add(wx.StaticText(DData,-1,label=' Twin element fraction:'),0,WACV)
    866                 twinval = wx.TextCtrl(DData,-1,'%.3f'%(TwVal),style=wx.TE_PROCESS_ENTER)
    867                 Indx[twinval.GetId()] = it
    868                 twinval.Bind(wx.EVT_TEXT_ENTER,OnTwinVal)
    869                 twinval.Bind(wx.EVT_KILL_FOCUS,OnTwinVal)
    870                 if not it:
     866                twinval = wx.TextCtrl(DData,-1,'%.3f'%(TwVal),style=Style)
     867                if it:
     868                    Indx[twinval.GetId()] = it
     869                    twinval.Bind(wx.EVT_TEXT_ENTER,OnTwinVal)
     870                    twinval.Bind(wx.EVT_KILL_FOCUS,OnTwinVal)
     871                else:
    871872                    twinval.SetBackgroundColour(VERY_LIGHT_GREY)
    872873                valSizer.Add(twinval,0,WACV)
Note: See TracChangeset for help on using the changeset viewer.