In the dTextBoxMixinBase code below, why is the method recursed?
super(dTextBoxMixinBase, self).flushValue()
It looks like nothing ever will happen as a result of the call because
_inFlush is always set to true and it simple returns when true. Since we
are already in dTextBoxMixinBase, nothing different is done except recursing
into itself.
Thanks,
Larry Long
def flushValue(self):
# Call the wx SetValue() directly to reset the string value
displayed to the user.
# This resets the value to the string representation as
Python shows it. Also, we
# must save and restore the InsertionPosition because wxGtk
at least resets it to
# 0 upon SetValue().
if self._inFlush:
return
self._inFlush = True
insPos = self.InsertionPosition
startPos = self.SelectionStart
endPos = self.SelectionEnd
setter = self.SetValue
if hasattr(self, "ChangeValue"):
setter = self.ChangeValue
setter(self.getStringValue(self.Value))
self.InsertionPosition = insPos
self.SelectionStart = startPos
self.SelectionEnd = endPos
# Now that the dabo Value is set properly, the default
behavior that flushes
# the value to the bizobj can be called:
super(dTextBoxMixinBase, self).flushValue()
self._inFlush = False
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.1/1182 - Release Date: 12/12/2007
11:29 AM
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]