X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c5ae2d2a6f716e8a89b27579026b9d085f84191..a6d57d0388f29fca011b0e168e926b61be0f465c:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index f27dc7dc9a..2a2b12e23b 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -350,10 +350,26 @@ $target = t_output_helper($target, o); } - %typemap(python,ignore) bool *OUTPUT = bool *T_OUTPUT; %typemap(python,argout) bool *OUTPUT = bool *T_OUTPUT; + + +%typemap(python,ignore) byte *T_OUTPUT(int temp) +{ + $target = (byte*)&temp; +} + +%typemap(python,argout) byte *T_OUTPUT +{ + PyObject *o; + o = PyInt_FromLong((long) (*$source)); + $target = t_output_helper($target, o); +} + +%typemap(python,ignore) byte *OUTPUT = byte *T_OUTPUT; +%typemap(python,argout) byte *OUTPUT = byte *T_OUTPUT; + //--------------------------------------------------------------------------- // Typemaps to convert return values that are base class pointers // to the real derived type, if possible. See wxPyMake_wxObject in