From b93f7ba6340814fbd63df4004812e05ba75ef9ff Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 19 Oct 2006 21:38:55 +0000 Subject: [PATCH] ensure that the MasedEditMixin's version of IsEmpty is the one used. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/masked/combobox.py | 4 ++++ wxPython/wx/lib/masked/textctrl.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/wxPython/wx/lib/masked/combobox.py b/wxPython/wx/lib/masked/combobox.py index 7c08ed4265..c7c97bdc73 100644 --- a/wxPython/wx/lib/masked/combobox.py +++ b/wxPython/wx/lib/masked/combobox.py @@ -224,6 +224,10 @@ class BaseMaskedComboBox( wx.ComboBox, MaskedEditMixin ): self.SetInsertionPoint(pos) + def IsEmpty(*args, **kw): + return MaskedEditMixin.IsEmpty(*args, **kw) + + def _GetValue(self): """ Allow mixin to get the raw value of the control with this function. diff --git a/wxPython/wx/lib/masked/textctrl.py b/wxPython/wx/lib/masked/textctrl.py index 7a2fb42a08..93c1a1c101 100644 --- a/wxPython/wx/lib/masked/textctrl.py +++ b/wxPython/wx/lib/masked/textctrl.py @@ -141,6 +141,9 @@ class BaseMaskedTextCtrl( wx.TextCtrl, MaskedEditMixin ): ## wx.TextCtrl.SetInsertionPoint(self, pos) + def IsEmpty(*args, **kw): + return MaskedEditMixin.IsEmpty(*args, **kw) + def _GetValue(self): """ Allow mixin to get the raw value of the control with this function. -- 2.45.2