Changeset 2236


Ignore:
Timestamp:
May 2, 2016 12:09:11 PM (6 years ago)
Author:
vondreele
Message:

allow delete last layer & fraction input for stacking probability

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r2234 r2236  
    26492649            UpdateLayerData()
    26502650           
     2651        def OnDeleteLast(event):
     2652            del(data['Layers']['Layers'][-1])
     2653            del(data['Layers']['Transitions'][-1])
     2654            for trans in data['Layers']['Transitions']:
     2655                del trans[-1]
     2656            UpdateLayerData()
     2657               
    26512658        def OnImportLayer(event):
    26522659            dlg = wx.FileDialog(G2frame, 'Choose GSAS-II project file',
     
    28492856                transGrid.SetScrollRate(0,0)    #get rid of automatic scroll bars
    28502857                Indx[transGrid.GetId()] = Yi
    2851                 for c in range(1,4):
     2858                for c in range(0,4):
    28522859                    attr = wx.grid.GridCellAttr()
    28532860                    attr.IncRef()               #fix from Jim Hester
     
    30653072        importLayer.Bind(wx.EVT_CHECKBOX, OnImportLayer)
    30663073        titleSizer.Add(importLayer,0,WACV)
     3074        deleteLast = wx.CheckBox(layerData,label=' Delete last layer?')
     3075        deleteLast.Bind(wx.EVT_CHECKBOX, OnDeleteLast)
     3076        titleSizer.Add(deleteLast,0,WACV)
    30673077        topSizer.Add(titleSizer,0,WACV)
    30683078        for il,layer in enumerate(Layers['Layers']):
  • trunk/fsource/pydiffax.for

    r2206 r2236  
    242242        end do
    243243        print *, recrsv,inf_thick,xplcit,rndm,l_cnt,has_l_mirror
    244       end if
    245244       
    246245C      print *,lambda,max_angle,h_bnd,k_bnd,l_bnd,no_trials,
     
    253252C        print *,(l_phi(i,j),i=1,n_layers)
    254253C      end do
     254      end if
    255255       
    256256      ok = GETSPC(AGLQ16,'GSAS-II')             
Note: See TracChangeset for help on using the changeset viewer.