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:
@@ -34,6 +34,7 @@ class wxControl : public wxWindow
|
||||
public:
|
||||
%pythonAppend wxControl "self._setOORInfo(self)"
|
||||
%pythonAppend wxControl() ""
|
||||
%typemap(out) wxControl*; // turn off this typemap
|
||||
|
||||
DocCtorStr(
|
||||
wxControl(wxWindow *parent,
|
||||
@@ -51,6 +52,10 @@ __init__ as a plain old wx.Control is not very useful.", "");
|
||||
"Precreate a Control control for 2-phase creation", "",
|
||||
PreControl);
|
||||
|
||||
// Turn it back on again
|
||||
%typemap(out) wxControl* { $result = wxPyMake_wxObject($1, $owner); }
|
||||
|
||||
|
||||
DocDeclStr(
|
||||
bool , Create(wxWindow *parent,
|
||||
wxWindowID id=-1,
|
||||
|
Reference in New Issue
Block a user