X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/994453b843b007de6367fedbf4a49ac9d920c63c..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/src/_treectrl.i?ds=inline diff --git a/wxPython/src/_treectrl.i b/wxPython/src/_treectrl.i index e87e7ba7b3..b50cb86f8c 100644 --- a/wxPython/src/_treectrl.i +++ b/wxPython/src/_treectrl.i @@ -132,7 +132,7 @@ public: const wxTreeItemId& GetId(); void SetId(const wxTreeItemId& id); - %pythonAppend Destroy "args[0].thisown = 0" + %pythonPrepend Destroy "args[0].this.own(False)" %extend { void Destroy() { delete self; } } %property(Data, GetData, SetData, doc="See `GetData` and `SetData`"); @@ -344,7 +344,7 @@ MustHaveApp(wxPyTreeCtrl); %rename(TreeCtrl) wxPyTreeCtrl; class wxPyTreeCtrl : public wxControl { public: - %pythonAppend wxPyTreeCtrl "self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl)" + %pythonAppend wxPyTreeCtrl "self._setOORInfo(self);" setCallbackInfo(TreeCtrl) %pythonAppend wxPyTreeCtrl() "" %typemap(out) wxPyTreeCtrl*; // turn off this typemap