Changeset 2526 for trunk/GSASIIctrls.py


Ignore:
Timestamp:
Nov 15, 2016 3:23:14 PM (6 years ago)
Author:
vondreele
Message:

fix double event problem in ValidatedTxtCtrl?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrls.py

    r2524 r2526  
    536536            return
    537537        self._setValue(self.result[self.key],show=False) # save value quietly
     538        print 'leave window'
    538539        if self.OnLeave: self.OnLeave(invalid=self.invalid,
    539540                                      value=self.result[self.key],
     
    547548        '''
    548549        if event: event.Skip()
     550        if not self.IsModified():   #ignore mouse crusing
     551            return
    549552        if self.evaluated: # deal with computed expressions
    550553            if self.invalid: # don't substitute for an invalid expression
    551                 if event: event.Skip()
    552554                return
    553555            self.evaluated = False # expression has been recast as value, reset flag
     
    560562                                      tc=self,
    561563                                      **self.OnLeaveArgs)
    562         if event: event.Skip()
    563564
    564565################################################################################
Note: See TracChangeset for help on using the changeset viewer.