X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e2bbb9e149c589ab03cf6d2adec0617a9f0f24..3bdec81e147765682eda34adb84288a5eb9ab6c2:/wxPython/src/_evthandler.i diff --git a/wxPython/src/_evthandler.i b/wxPython/src/_evthandler.i index 8b39ea8a5e..afff9bc445 100644 --- a/wxPython/src/_evthandler.i +++ b/wxPython/src/_evthandler.i @@ -22,6 +22,7 @@ public: // turn off this typemap %typemap(out) wxEvtHandler*; + %pythonAppend wxEvtHandler "self._setOORInfo(self)" wxEvtHandler(); // Turn it back on again @@ -72,7 +73,7 @@ public: } } - %pythonAppend _setOORInfo "args[0].thisown = 0"; + %pythonAppend _setOORInfo "args[0].this.own(False)"; %extend { void _setOORInfo(PyObject* _self, bool incref=true) { if (_self && _self != Py_None) {