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:
@@ -391,7 +391,8 @@ class wxToolBar : public wxToolBarBase {
|
||||
public:
|
||||
%pythonAppend wxToolBar "self._setOORInfo(self)"
|
||||
%pythonAppend wxToolBar() ""
|
||||
|
||||
%typemap(out) wxToolBar*; // turn off this typemap
|
||||
|
||||
wxToolBar(wxWindow *parent,
|
||||
wxWindowID id=-1,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
@@ -400,6 +401,9 @@ public:
|
||||
const wxString& name = wxPyToolBarNameStr);
|
||||
%name(PreToolBar)wxToolBar();
|
||||
|
||||
// Turn it back on again
|
||||
%typemap(out) wxToolBar* { $result = wxPyMake_wxObject($1, $owner); }
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id=-1,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
|
Reference in New Issue
Block a user