Changeset 2656 for trunk/GSASIIctrls.py


Ignore:
Timestamp:
Jan 22, 2017 4:27:37 PM (5 years ago)
Author:
toby
Message:

Way cleaner approach to grid pointer; handles multiple grids in a frame, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrls.py

    r2655 r2656  
    27392739    def __init__(self, parent, name=''):
    27402740        wg.Grid.__init__(self,parent,-1,name=name)
    2741         parent.TopLevelParent.currentGrid = self      # save a reference to the grid in the Frame
     2741        if hasattr(parent.TopLevelParent,'currentGrids'):
     2742            parent.TopLevelParent.currentGrids.append(self)      # save a reference to the grid in the Frame
    27422743           
    27432744    def Clear(self):
Note: See TracChangeset for help on using the changeset viewer.