Changeset 2656 for trunk/GSASIIgrid.py
- Timestamp:
- Jan 22, 2017 4:27:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r2655 r2656 4428 4428 if G2frame.dataFrame: 4429 4429 # save or finish processing of outstanding events 4430 if G2frame.dataFrame.currentGrid: # complete any open wx.Grid edits4431 if G2frame.dataFrame.currentGrid.IsCellEditControlEnabled(): # complete any grid edits in progress4432 if GSASIIpath.GetConfigValue('debug'): print 'Completing grid edit in', G2frame.dataFrame.currentGrid4433 G2frame.dataFrame.currentGrid.HideCellEditControl()4434 G2frame.dataFrame.currentGrid.DisableCellEditControl()4430 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() 4435 4435 if G2frame.dataFrame.GetLabel() == 'Comments': # save any recently entered comments 4436 4436 try: … … 4461 4461 SetDataMenuBar(G2frame) 4462 4462 G2frame.dataFrame.Raise() 4463 G2frame.dataFrame.currentGrid = None # this will be a pointerto a grid placed in the frame4463 G2frame.dataFrame.currentGrids = [] # this will contain pointers to a grid placed in the frame 4464 4464 G2frame.PickId = item 4465 4465 G2frame.PickIdText = None
Note: See TracChangeset
for help on using the changeset viewer.