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:
@@ -165,6 +165,7 @@ class wxTextCtrl : public wxControl
|
||||
public:
|
||||
%pythonAppend wxTextCtrl "self._setOORInfo(self)"
|
||||
%pythonAppend wxTextCtrl() ""
|
||||
%typemap(out) wxTextCtrl*; // turn off this typemap
|
||||
|
||||
wxTextCtrl(wxWindow* parent, wxWindowID id=-1,
|
||||
const wxString& value = wxPyEmptyString,
|
||||
@@ -175,6 +176,9 @@ public:
|
||||
const wxString& name = wxPyTextCtrlNameStr);
|
||||
%name(PreTextCtrl)wxTextCtrl();
|
||||
|
||||
// Turn it back on again
|
||||
%typemap(out) wxTextCtrl* { $result = wxPyMake_wxObject($1, $owner); }
|
||||
|
||||
bool Create(wxWindow* parent, wxWindowID id=-1,
|
||||
const wxString& value = wxPyEmptyString,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
|
Reference in New Issue
Block a user