diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 52a9103c30..cb5ae174e5 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -241,6 +241,10 @@ } +//--------------------------------------------------------------------------- + +%typemap(out) bool "$result = $1 ? Py_True : Py_False; Py_INCREF($result);" + //--------------------------------------------------------------------------- // Typemaps to convert return values that are base class pointers