Changeset 4454


Ignore:
Timestamp:
Jun 1, 2020 2:12:13 PM (4 years ago)
Author:
vondreele
Message:

allow selection by atom name (same as by type)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4453 r4454  
    30663066                    dlg.Destroy()
    30673067                    SetupGeneral()
     3068                elif Atoms.GetColLabelValue(c) == 'Name':
     3069                    choice = []
     3070                    for r in range(Atoms.GetNumberRows()):
     3071                        if str(atomData[r][c]) not in choice:
     3072                            choice.append(str(atomData[r][c]))
     3073                    choice.sort()
     3074                    dlg = wx.SingleChoiceDialog(G2frame,'Select','Name',choice)
     3075                    if dlg.ShowModal() == wx.ID_OK:
     3076                        sel = dlg.GetSelection()
     3077                        parms = choice[sel]
     3078                        noSkip = False
     3079                        Atoms.ClearSelection()
     3080                        for row in range(Atoms.GetNumberRows()):
     3081                            if parms == atomData[row][c]:
     3082                                Atoms.SelectRow(row,True)
     3083                    dlg.Destroy()
    30683084                elif Atoms.GetColLabelValue(c) == 'residue':
    30693085                    choice = []
     
    34233439            SetPhaseWindow(Atoms)
    34243440
    3425 # FillAtomsGrid executable code starts here
     3441#### FillAtomsGrid executable code starts here
    34263442        if not data['Drawing']:                 #if new drawing - no drawing data!
    34273443            SetupDrawingData()
     
    74707486            G2plt.PlotStructure(G2frame,data)                   
    74717487
    7472         # UpdateDrawAtoms executable code starts here
     7488#### UpdateDrawAtoms executable code starts here
    74737489        G2frame.GetStatusBar().SetStatusText('',1)
    74747490        generalData = data['General']
Note: See TracChangeset for help on using the changeset viewer.