]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_validator.i
corrected code to not suppose that Write() always writes all the data it was given
[wxWidgets.git] / wxPython / src / _validator.i
index 2951244f365c354b9123e3da686fedfc82be83ed..e68789f9e96d02102695601b70d93465fa518f8f 100644 (file)
@@ -33,10 +33,15 @@ class wxValidator : public wxEvtHandler
 {
 public:
     %pythonAppend wxValidator "self._setOORInfo(self)"
+    %typemap(out) wxValidator*;    // turn off this typemap
+
     wxValidator();
     //~wxValidator();
 
+    // Turn it back on again
+    %typemap(out) wxValidator* { $result = wxPyMake_wxObject($1, $owner); }
 
+    
     // Make a clone of this validator (or return NULL)
     wxValidator* Clone();