Changeset 2636 for trunk/GSASII.py


Ignore:
Timestamp:
Jan 17, 2017 10:23:20 AM (7 years ago)
Author:
toby
Message:

prevent reread of all images on ExpandAll?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2635 r2636  
    24302430        self.dataDisplayPhaseText = ''
    24312431        self.lastTreeSetting = []
    2432        
     2432        self.ExpandingAll = False
     2433               
    24332434        arg = sys.argv
    24342435        if len(arg) > 1 and arg[1]:
     
    24682469            self.TreeItemDelete = False
    24692470        else:
     2471            if self.ExpandingAll:
     2472                #if GSASIIpath.GetConfigValue('debug'): print('Skipping Tree selection due to ExpandAll')
     2473                return
    24702474            pltNum = self.G2plotNB.nb.GetSelection()
    24712475            if pltNum >= 0:                         #to avoid the startup with no plot!
     
    33243328           
    33253329    def ExpandAll(self,event):
    3326         self.PatternTree.ExpandAll()       
     3330        self.ExpandingAll = True
     3331        try:
     3332            self.PatternTree.ExpandAll()
     3333        finally:
     3334            self.ExpandingAll = False
    33273335
    33283336    def ExitMain(self, event):
Note: See TracChangeset for help on using the changeset viewer.