Changeset 750 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Sep 5, 2012 10:43:15 AM (10 years ago)
Author:
vondreele
Message:

put inverse checker back in SearchMap?
add atom rename facility
update of Map peaks when map/peaks are shifted by U/D/L/R key commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r749 r750  
    13881388            generalData = data['General']
    13891389            colLabels = [Atoms.GetColLabelValue(c) for c in range(Atoms.GetNumberCols())]
    1390             choices = ['Type','x','y','z','frac','I/A','Uiso']
     1390            choices = ['Type','Name','x','y','z','frac','I/A','Uiso']
    13911391            dlg = wx.SingleChoiceDialog(G2frame,'Select','Atom parameter',choices)
    13921392            if dlg.ShowModal() == wx.ID_OK:
     
    14131413                    FillAtomsGrid()
    14141414                dlg.Destroy()
     1415            elif parm in ['Name',]:
     1416                dlg = wx.MessageDialog(G2frame,'Do you really want to rename the selected atoms?','Rename',
     1417                    wx.YES_NO | wx.ICON_QUESTION)
     1418                try:
     1419                    result = dlg.ShowModal()
     1420                    if result == wx.ID_YES:
     1421                        for r in indx:
     1422                            El = atomData[r][cid+1]
     1423                            if len(El) in [2,4]:
     1424                                atomData[r][cid] = El[:2]+'(%d)'%(r+1)
     1425                            else:
     1426                                atomData[r][cid] = El[:1]+'(%d)'%(r+1)
     1427                    FillAtomsGrid()
     1428                finally:
     1429                    dlg.Destroy()
     1430                   
    14151431            elif parm in ['I/A']:
    14161432                choices = ['Isotropic','Anisotropic']
     
    39663982            colLabels = ['mag','x','y','z','dzero']
    39673983            Types = 5*[wg.GRID_VALUE_FLOAT+':10,4',]
    3968             MapPeaksTable = G2gd.Table(mapPeaks,rowLabels=rowLabels,colLabels=colLabels,types=Types)
    3969             MapPeaks.SetTable(MapPeaksTable, True)
     3984            G2frame.MapPeaksTable = G2gd.Table(mapPeaks,rowLabels=rowLabels,colLabels=colLabels,types=Types)
     3985            MapPeaks.SetTable(G2frame.MapPeaksTable, True)
    39703986            MapPeaks.Bind(wg.EVT_GRID_LABEL_LEFT_CLICK, RowSelect)
    39713987            for r in range(MapPeaks.GetNumberRows()):
Note: See TracChangeset for help on using the changeset viewer.