Changeset 2674 for trunk/GSASII.py


Ignore:
Timestamp:
Jan 30, 2017 2:25:48 PM (5 years ago)
Author:
vondreele
Message:

prevent delete if PWDR if corresponding PDF exists
use PickElements? instead of PickElement? - allows multiple selection, blacks out ones already picked & can unpick a pick
add delete spots option to masks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2669 r2674  
    31523152        DelItemList = []
    31533153        nItems = {'PWDR':0,'SASD':0,'IMG':0,'HKLF':0,'PDF':0}
     3154        PDFnames = []
    31543155        if self.PatternTree.GetCount():
    31553156            item, cookie = self.PatternTree.GetFirstChild(self.root)
     
    31623163                    if 'IMG' in name:  nItems['IMG'] += 1
    31633164                    if 'HKLF' in name: nItems['HKLF'] += 1
    3164                     if 'PDF' in name:  nItems['PDF'] += 1
     3165                    if 'PDF' in name:
     3166                        PDFnames.append(name)
     3167                        nItems['PDF'] += 1
    31653168                    TextList.append(name)
    31663169                item, cookie = self.PatternTree.GetNextChild(self.root, cookie)
     3170            for pdfName in PDFnames:
     3171                TextList.remove('PWDR'+pdfName[4:])
    31673172            dlg = G2G.G2MultiChoiceDialog(self, 'Which data to delete?', 'Delete data', TextList, wx.CHOICEDLG_STYLE)
    31683173            try:
Note: See TracChangeset for help on using the changeset viewer.