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:
parent
b374f545be
commit
3ca9e2d2b6
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue