Changeset 2657 for trunk/GSASIIgrid.py


Ignore:
Timestamp:
Jan 22, 2017 5:00:14 PM (5 years ago)
Author:
toby
Message:

deal with dead grids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r2656 r2657  
    40114011    depVarDict.update({var:val for var,val in data[name].get('newCellDict',{}).values()})
    40124012
     4013    G2frame.dataFrame.currentGrids = []
    40134014    G2frame.dataDisplay = G2G.GSGrid(parent=G2frame.dataFrame)
    40144015    G2frame.SeqTable = G2G.Table(
     
    44294430        # save or finish processing of outstanding events
    44304431        for grid in G2frame.dataFrame.currentGrids:  # complete any open wx.Grid edits
    4431             if grid.IsCellEditControlEnabled(): # complete any grid edits in progress
    4432                 if GSASIIpath.GetConfigValue('debug'): print 'Completing grid edit in',grid
    4433                 grid.HideCellEditControl()
    4434                 grid.DisableCellEditControl()
     4432            #if GSASIIpath.GetConfigValue('debug'): print 'Testing grid edit in',grid
     4433            try:
     4434                if grid.IsCellEditControlEnabled(): # complete any grid edits in progress
     4435                    if GSASIIpath.GetConfigValue('debug'): print 'Completing grid edit in',grid
     4436                    grid.HideCellEditControl()
     4437                    grid.DisableCellEditControl()
     4438            except:
     4439                pass
    44354440        if G2frame.dataFrame.GetLabel() == 'Comments': # save any recently entered comments
    44364441            try:
Note: See TracChangeset for help on using the changeset viewer.