Changeset 2621


Ignore:
Timestamp:
Jan 11, 2017 11:37:35 AM (5 years ago)
Author:
toby
Message:

cruft for Windows to avoid capturing windows resize events

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrls.py

    r2620 r2621  
    9595        '''Log each press on a tree item here.
    9696        '''
     97        self.G2frame.dataFrame.userReSize = False
    9798        if self.SelectionChanged:
    9899            textlist = self._getTreeItemsList(event.GetItem())
     
    106107            self.textlist = textlist
    107108            self.SelectionChanged(event)
     109        self.G2frame.dataFrame.userReSize = True
    108110
    109111    def Bind(self,eventtype,handler,*args,**kwargs):
  • trunk/GSASIIgrid.py

    r2620 r2621  
    25242524            parent = 0
    25252525        if self.userReSize and parent and self.G2frame.PatternTree.GetItemText(parent) == "Phases":
     2526            if self.lastSize == event.EventObject.GetSize():
     2527                if GSASIIpath.GetConfigValue('debug'):
     2528                    print 'no save size=',self.lastSize
     2529                return
    25262530            self.manualPhaseSize = event.EventObject.GetSize()
    2527             if GSASIIpath.GetConfigValue('debug'): print 'Saving Phase size=',self.manualPhaseSize             
     2531            if GSASIIpath.GetConfigValue('debug'):
     2532                print 'Saving Phase size=',self.manualPhaseSize
     2533                #HowDidIgetHere()
    25282534        event.Skip()
    25292535
     
    47454751    import traceback
    47464752    print 70*'*'   
    4747     for i in traceback.format_list(traceback.extract_stack()[:-1]): print(i.strip.rstrip())
     4753    for i in traceback.format_list(traceback.extract_stack()[:-1]): print(i.strip().rstrip())
    47484754    print 70*'*'   
    47494755       
Note: See TracChangeset for help on using the changeset viewer.