]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/masked/textctrl.py
define arrays of chartoo as the existing ones can't be used to store char values...
[wxWidgets.git] / wxPython / wx / lib / masked / textctrl.py
index 7a2fb42a08958caa85b5853c09cc8837e3a7dac1..d374d7b247ace6ee85621d6cfc81ca5d26276919 100644 (file)
@@ -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):