Merge pull request #869 from RobinD42/fix-issue808

Override SetForegroundColour and SetBackgroundColour in MaskedEditMixin
This commit is contained in:
Robin Dunn
2018-05-30 21:05:21 -07:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -107,6 +107,9 @@ Changes in this release include the following:
* Fix a bug in calculating whether a tool fits into the AuiToolBar. (#863)
* Override SetForegroundColour and SetBackgroundColour in MaskedEditMixin (#808)
4.0.1 "Lemonade"

View File

@@ -3229,6 +3229,13 @@ class MaskedEditMixin:
#### dbg(indent=0)
return self._fields[self._lookupField[pos]]
def SetForegroundColour(self, colour):
super(MaskedEditMixin, self).SetForegroundColour(colour)
self._foregroundColour = colour
def SetBackgroundColour(self, colour):
super(MaskedEditMixin, self).SetBackgroundColour(colour)
self._validBackgroundColour = colour
def ClearValue(self):
""" Blanks the current control value by replacing it with the default value."""