Changeset 1015 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Aug 3, 2013 1:59:27 PM (9 years ago)
Author:
vondreele
Message:

allow delete of individual Pawley reflections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r1012 r1015  
    44794479        def KeyEditPawleyGrid(event):
    44804480            colList = G2frame.PawleyRefl.GetSelectedCols()
     4481            rowList = G2frame.PawleyRefl.GetSelectedRows()
    44814482            PawleyPeaks = data['Pawley ref']
    44824483            if event.GetKeyCode() == wx.WXK_RETURN:
     
    44964497                            for row in range(PawleyTable.GetNumberRows()): PawleyPeaks[row][col]=False
    44974498                        FillPawleyReflectionsGrid()
     4499            elif rowList:
     4500                if event.GetKeyCode() == wx.WXK_DELETE:
     4501                    rowList.reverse()
     4502                    for row in rowList:
     4503                        del(PawleyPeaks[row])
     4504                    FillPawleyReflectionsGrid()
    44984505           
    44994506        # FillPawleyReflectionsGrid executable starts here
    4500         G2frame.dataFrame.SetStatusText('')                       
     4507        G2frame.dataFrame.SetStatusText('To delete a few Pawley reflections: select rows & press Delete')                       
    45014508        if 'Pawley ref' in data:
    45024509            PawleyPeaks = data['Pawley ref']                       
Note: See TracChangeset for help on using the changeset viewer.