Changeset 2864 for trunk/GSASIIphsGUI.py
- Timestamp:
- Jun 16, 2017 11:23:31 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r2863 r2864 5826 5826 def OnDataDelete(event): 5827 5827 UseList = data['Histograms'] 5828 keyList = ['All',]+UseList.keys()5828 keyList = UseList.keys() 5829 5829 keyList.sort() 5830 DelList = []5831 5830 if UseList: 5832 5831 DelList = [] 5833 dlg = wx.MultiChoiceDialog(G2frame, 5834 'Which histogram to delete from this phase?', 'Delete histogram', 5835 keyList, wx.CHOICEDLG_STYLE) 5832 dlg = G2G.G2MultiChoiceDialog(G2frame.dataFrame, 'Delete histogram', 5833 'Which histogram to delete from this phase?',keyList) 5836 5834 try: 5837 5835 if dlg.ShowModal() == wx.ID_OK: … … 5839 5837 for i in result: 5840 5838 DelList.append(keyList[i]) 5841 if 'All' in DelList:5842 DelList = keyList[1:]5843 5839 for i in DelList: 5844 5840 del UseList[i] 5845 5841 data['Histograms'] = UseList 5846 wx.CallAfter(G2ddG.UpdateDData,G2frame,DData,data)5847 5842 finally: 5848 5843 dlg.Destroy() 5844 wx.CallAfter(G2ddG.UpdateDData,G2frame,DData,data) 5849 5845 5850 5846 ################################################################################
Note: See TracChangeset
for help on using the changeset viewer.