Changeset 2864 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Jun 16, 2017 11:23:31 AM (6 years ago)
Author:
vondreele
Message:

new delete hist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r2863 r2864  
    58265826    def OnDataDelete(event):
    58275827        UseList = data['Histograms']
    5828         keyList = ['All',]+UseList.keys()
     5828        keyList = UseList.keys()
    58295829        keyList.sort()
    5830         DelList = []
    58315830        if UseList:
    58325831            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)
    58365834            try:
    58375835                if dlg.ShowModal() == wx.ID_OK:
     
    58395837                    for i in result:
    58405838                        DelList.append(keyList[i])
    5841                     if 'All' in DelList:
    5842                         DelList = keyList[1:]
    58435839                    for i in DelList:
    58445840                        del UseList[i]
    58455841                    data['Histograms'] = UseList
    5846                     wx.CallAfter(G2ddG.UpdateDData,G2frame,DData,data)
    58475842            finally:
    58485843                dlg.Destroy()
     5844        wx.CallAfter(G2ddG.UpdateDData,G2frame,DData,data)
    58495845               
    58505846################################################################################
Note: See TracChangeset for help on using the changeset viewer.