X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f54a36bba8b0923ddae107ab7affdb3696b4edba..1ffc8d7a55af1c253ca363bb0fbdda26bb4c9c65:/wxPython/wx/lib/masked/textctrl.py diff --git a/wxPython/wx/lib/masked/textctrl.py b/wxPython/wx/lib/masked/textctrl.py index 7a2fb42a08..d374d7b247 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. @@ -236,7 +239,7 @@ class BaseMaskedTextCtrl( wx.TextCtrl, MaskedEditMixin ): width = self.GetSize().width height = self.GetBestSize().height ## dbg('setting client size to:', (width, height)) - self.SetBestFittingSize((width, height)) + self.SetInitialSize((width, height)) def Clear(self):