X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc4495dc4c8982493f878ce5cb3d48857b92a6b6..7bc1e663f31a79a4697c72cc11a687341808798d:/wxPython/src/_treectrl.i?ds=sidebyside diff --git a/wxPython/src/_treectrl.i b/wxPython/src/_treectrl.i index d1509302d9..2e7da38712 100644 --- a/wxPython/src/_treectrl.i +++ b/wxPython/src/_treectrl.i @@ -315,6 +315,7 @@ MustHaveApp(wxPyTreeCtrl); public: %pythonAppend wxPyTreeCtrl "self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl)" %pythonAppend wxPyTreeCtrl() "" + %typemap(out) wxPyTreeCtrl*; // turn off this typemap wxPyTreeCtrl(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, @@ -324,6 +325,9 @@ public: const wxString& name = wxPyTreeCtrlNameStr); %name(PreTreeCtrl)wxPyTreeCtrl(); + // Turn it back on again + %typemap(out) wxPyTreeCtrl* { $result = wxPyMake_wxObject($1, $owner); } + bool Create(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,