Changeset 1769


Ignore:
Timestamp:
Mar 30, 2015 9:31:58 AM (7 years ago)
Author:
vondreele
Message:

remove 'All', etc. from DeleteData?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1768 r1769  
    28272827        Data/DeleteData menu
    28282828        '''
    2829         TextList = ['All Data']
     2829#        TextList = ['All Data']
     2830        TextList = []
    28302831        DelList = []
    28312832        DelItemList = []
     
    28492850                    TextList.append(name)
    28502851                item, cookie = self.PatternTree.GetNextChild(self.root, cookie)
    2851             if ifPWDR: TextList.insert(1,'All PWDR')
    2852             if ifSASD: TextList.insert(1,'All SASD')
    2853             if ifIMG: TextList.insert(1,'All IMG')
    2854             if ifHKLF: TextList.insert(1,'All HKLF')
    2855             if ifPDF: TextList.insert(1,'All PDF')               
     2852#            if ifPWDR: TextList.insert(1,'All PWDR')
     2853#            if ifSASD: TextList.insert(1,'All SASD')
     2854#            if ifIMG: TextList.insert(1,'All IMG')
     2855#            if ifHKLF: TextList.insert(1,'All HKLF')
     2856#            if ifPDF: TextList.insert(1,'All PDF')               
    28562857            dlg = G2gd.G2MultiChoiceDialog(self, 'Which data to delete?', 'Delete data', TextList, wx.CHOICEDLG_STYLE)
    28572858            try:
     
    28592860                    result = dlg.GetSelections()
    28602861                    for i in result: DelList.append(TextList[i])
    2861                     if 'All Data' in DelList:
    2862                         DelList = [item for item in TextList if item[:3] != 'All']
    2863                     elif 'All PWDR' in DelList:
    2864                         DelList = [item for item in TextList if item[:4] == 'PWDR']
    2865                     elif 'All SASD' in DelList:
    2866                         DelList = [item for item in TextList if item[:4] == 'SASD']
    2867                     elif 'All IMG' in DelList:
    2868                         DelList = [item for item in TextList if item[:3] == 'IMG']
    2869                     elif 'All HKLF' in DelList:
    2870                         DelList = [item for item in TextList if item[:4] == 'HKLF']
    2871                     elif 'All PDF' in DelList:
    2872                         DelList = [item for item in TextList if item[:3] == 'PDF']
     2862#                    if 'All Data' in DelList:
     2863#                        DelList = [item for item in TextList if item[:3] != 'All']
     2864#                    elif 'All PWDR' in DelList:
     2865#                        DelList = [item for item in TextList if item[:4] == 'PWDR']
     2866#                    elif 'All SASD' in DelList:
     2867#                        DelList = [item for item in TextList if item[:4] == 'SASD']
     2868#                    elif 'All IMG' in DelList:
     2869#                        DelList = [item for item in TextList if item[:3] == 'IMG']
     2870#                    elif 'All HKLF' in DelList:
     2871#                        DelList = [item for item in TextList if item[:4] == 'HKLF']
     2872#                    elif 'All PDF' in DelList:
     2873#                        DelList = [item for item in TextList if item[:3] == 'PDF']
    28732874                    item, cookie = self.PatternTree.GetFirstChild(self.root)
    28742875                    while item:
Note: See TracChangeset for help on using the changeset viewer.