Add missing wxString* conversion

Python needs to know how to optionally convert to a wxString* for SWIG
to build out the interface.
This commit is contained in:
Seth Hillbrand 2021-04-27 16:43:36 -07:00
parent b374f545be
commit 3ca9e2d2b6
1 changed files with 8 additions and 0 deletions

View File

@ -274,6 +274,14 @@ public:
}
%typemap(in) wxString& (bool temp=false)
{
$1 = new wxString( Py2wxString( $input ) );
if ($1 == NULL) SWIG_fail;
temp = true;
}
%typemap(out) wxString
{
$result = PyUnicode_FromString($1.utf8_str());