X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ec5b47f47d626c417486e2ce2d167e44b3b66b6..b3eb9bf553bff19d1004956aa40c5dae805dc450:/wxPython/src/_window.i diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index 2f01f77332..450d476f26 100644 --- a/wxPython/src/_window.i +++ b/wxPython/src/_window.i @@ -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 { @@ -2084,7 +2090,6 @@ opaque.", ""); %property(AcceleratorTable, GetAcceleratorTable, SetAcceleratorTable, doc="See `GetAcceleratorTable` and `SetAcceleratorTable`"); - %property(AdjustedBestSize, GetAdjustedBestSize, doc="See `GetAdjustedBestSize`"); %property(AutoLayout, GetAutoLayout, SetAutoLayout, doc="See `GetAutoLayout` and `SetAutoLayout`"); %property(BackgroundColour, GetBackgroundColour, SetBackgroundColour, doc="See `GetBackgroundColour` and `SetBackgroundColour`"); %property(BackgroundStyle, GetBackgroundStyle, SetBackgroundStyle, doc="See `GetBackgroundStyle` and `SetBackgroundStyle`");