X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..ed8d127eb08398f3ed7865c2aa6adda3f49a7be4:/wxPython/src/_validator.i

diff --git a/wxPython/src/_validator.i b/wxPython/src/_validator.i
index 2951244f36..b3e4e55aa4 100644
--- a/wxPython/src/_validator.i
+++ b/wxPython/src/_validator.i
@@ -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();
 
@@ -56,7 +61,7 @@ public:
     // validators beep by default if invalid key is pressed, these functions
     // allow to change it
     static bool IsSilent();
-    static void SetBellOnError(int doIt = True);
+    static void SetBellOnError(int doIt = true);
 
 };
 
@@ -78,7 +83,7 @@ public:
         self._setOORInfo(self)"
     wxPyValidator();
 
-    void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=True);
+    void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=true);
 };