mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
a couple more Phoenix changes for wx.lib.masked
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -592,7 +592,7 @@ class BaseMaskedComboBox( wx.ComboBox, MaskedEditMixin ):
|
||||
else:
|
||||
def GetMark(self):
|
||||
## dbg('MaskedComboBox::GetMark()', indent = 1)
|
||||
ret = wx.ComboBox.GetMark(self)
|
||||
ret = wx.ComboBox.GetTextSelection(self)
|
||||
## dbg('returned', ret, indent=0)
|
||||
return ret
|
||||
|
||||
|
||||
@@ -1955,7 +1955,7 @@ class MaskedEditMixin:
|
||||
'foregroundColour', 'signedForegroundColour'):
|
||||
if key in ctrl_kwargs:
|
||||
if isinstance(ctrl_kwargs[key], (str, unicode)):
|
||||
c = wx.NamedColour(ctrl_kwargs[key])
|
||||
c = wx.Colour(ctrl_kwargs[key])
|
||||
if c.Get() == (-1, -1, -1):
|
||||
raise TypeError('%s not a legal color specification for %s' % (repr(ctrl_kwargs[key]), key))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user