Browse Source

Add missing wxString* conversion

Python needs to know how to optionally convert to a wxString* for SWIG
to build out the interface.
6.0.7
Seth Hillbrand 5 years ago
parent
commit
3ca9e2d2b6
  1. 8
      common/swig/wx.i

8
common/swig/wx.i

@ -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…
Cancel
Save