]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_window.i
merge from 2.8 branch
[wxWidgets.git] / wxPython / src / _window.i
index 5c83b625f0183767fd1fe574116dfca9a31ed94f..450d476f26487c42eca1f477249f827779d978fa 100644 (file)
@@ -2072,9 +2072,15 @@ opaque.", "");
         self.thisown = pre.thisown
         pre.thisown = 0
         if hasattr(self, '_setOORInfo'):
-            self._setOORInfo(self)
+            try:
+                self._setOORInfo(self)
+            except TypeError:
+                pass
         if hasattr(self, '_setCallbackInfo'):
-            self._setCallbackInfo(self, pre.__class__)
+            try:
+                self._setCallbackInfo(self, pre.__class__)
+            except TypeError:
+                pass
     }
 
     %pythoncode {