X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3eb1aad7ec1331a5331f03a1913156fdbed9fcc4..df16c649d21716a3e54eb2598477fa9ed970f278:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index dbf2433fe0..d9b078bc4e 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -103,6 +103,7 @@ $1 = new wxMemoryBuffer(len); temp = True; memcpy($1->GetData(), str, len); + $1->SetDataLen(len); } %typemap(freearg) wxMemoryBuffer& { @@ -391,6 +392,8 @@ SWIG_AsDouble(PyObject *obj) %typemap(out) wxHtmlWindow* { $result = wxPyMake_wxObject($1); } %typemap(out) wxPyHtmlWindow* { $result = wxPyMake_wxObject($1); } %typemap(out) wxWizardPage* { $result = wxPyMake_wxObject($1); } +%typemap(out) wxPanel* { $result = wxPyMake_wxObject($1); } +%typemap(out) wxDialog* { $result = wxPyMake_wxObject($1); } %typemap(out) wxSizer* { $result = wxPyMake_wxSizer($1); }