mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Merge pull request #869 from RobinD42/fix-issue808
Override SetForegroundColour and SetBackgroundColour in MaskedEditMixin
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user