Changeset 1019


Ignore:
Timestamp:
Aug 7, 2013 5:35:46 PM (8 years ago)
Author:
vondreele
Message:

few more fixes to exclude editing stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r1017 r1019  
    613613    if G2frame.dataDisplay:
    614614        G2frame.dataFrame.Clear()
     615    G2frame.ifGetExclude = False
    615616       
    616617    def KeyEditPeakGrid(event):
    617         row = G2frame.dataDisplay.GetSelectedRows()[0]
    618         if row > 1: #can't delete limits!
    619             G2frame.dataDisplay.ClearSelection()
    620             if event.GetKeyCode() == wx.WXK_DELETE:
    621                 G2frame.dataDisplay.ClearGrid()
     618        if event.GetKeyCode() == wx.WXK_DELETE:
     619            row = G2frame.dataDisplay.GetSelectedRows()[0]
     620            if row > 1: #can't delete limits!
    622621                del(data[row])
    623622                wx.CallAfter(UpdateLimitsGrid,G2frame,data)
     
    631630        new[0] = max(old[0],new[0])
    632631        new[1] = max(new[0],min(old[1],new[1]))
     632        excl = []
    633633        if len(data) > 2:
    634634            excl = data[2:]
Note: See TracChangeset for help on using the changeset viewer.