Avoid using the OOR typemap in the constructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user