Changeset 1769
- Timestamp:
- Mar 30, 2015 9:31:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASII.py ¶
r1768 r1769 2827 2827 Data/DeleteData menu 2828 2828 ''' 2829 TextList = ['All Data'] 2829 # TextList = ['All Data'] 2830 TextList = [] 2830 2831 DelList = [] 2831 2832 DelItemList = [] … … 2849 2850 TextList.append(name) 2850 2851 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') 2856 2857 dlg = G2gd.G2MultiChoiceDialog(self, 'Which data to delete?', 'Delete data', TextList, wx.CHOICEDLG_STYLE) 2857 2858 try: … … 2859 2860 result = dlg.GetSelections() 2860 2861 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'] 2873 2874 item, cookie = self.PatternTree.GetFirstChild(self.root) 2874 2875 while item:
Note: See TracChangeset
for help on using the changeset viewer.