Check for TypeError exceptions in PostCreate

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-02-05 21:54:35 +00:00
parent 04578e2657
commit 53ad97d7f9

View 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 {