X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8d39b51e6b6be11c52436777b370f7dcef009c6..6028be3f39babc4530472a4139576fe318c6aa90:/wxPython/src/_control.i diff --git a/wxPython/src/_control.i b/wxPython/src/_control.i index a957574d2a..c89a9ecb89 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, @@ -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.", "",