$1 = new wxMemoryBuffer(len);
temp = True;
memcpy($1->GetData(), str, len);
+ $1->SetDataLen(len);
}
%typemap(freearg) wxMemoryBuffer& {
%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); }