X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8d39b51e6b6be11c52436777b370f7dcef009c6..3b03eb99e93df17890dcd06f3638d9c3c1d769d6:/wxPython/src/_control.i diff --git a/wxPython/src/_control.i b/wxPython/src/_control.i index a957574d2a..be2565fa70 100644 --- a/wxPython/src/_control.i +++ b/wxPython/src/_control.i @@ -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, @@ -119,7 +124,7 @@ optionally, client data associated with them. class wxItemContainer { public: - // wxItemContainer() { m_clientDataItemsType = wxClientData_None; } ** It's an ABC + // wxItemContainer() ** It's an ABC %extend { @@ -137,8 +142,9 @@ has wx.LB_SORT or wx.CB_SORT style).", ""); } } - DocDeclStrName( + DocDeclAStrName( void , Append(const wxArrayString& strings), + "AppendItems(self, List strings)", "Apend several items at once to the control. Notice that calling this method may be much faster than appending the items one by one if you need to add a lot of items.", "",