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:
@@ -2072,9 +2072,15 @@ opaque.", "");
|
|||||||
self.thisown = pre.thisown
|
self.thisown = pre.thisown
|
||||||
pre.thisown = 0
|
pre.thisown = 0
|
||||||
if hasattr(self, '_setOORInfo'):
|
if hasattr(self, '_setOORInfo'):
|
||||||
|
try:
|
||||||
self._setOORInfo(self)
|
self._setOORInfo(self)
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
if hasattr(self, '_setCallbackInfo'):
|
if hasattr(self, '_setCallbackInfo'):
|
||||||
|
try:
|
||||||
self._setCallbackInfo(self, pre.__class__)
|
self._setCallbackInfo(self, pre.__class__)
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
}
|
}
|
||||||
|
|
||||||
%pythoncode {
|
%pythoncode {
|
||||||
|
Reference in New Issue
Block a user