X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/293a0a8677c1ea28e42d4a97c3ec9c2a757d1c0c..f9ee64b1356530b7f5c957d250d2a1dcbef60f60:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 0fcf295e4a..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 @@ -391,6 +407,7 @@ %typemap(python, out) wxToolBar* { $target = wxPyMake_wxObject($source); } %typemap(python, out) wxToolBarBase* { $target = wxPyMake_wxObject($source); } %typemap(python, out) wxWindow* { $target = wxPyMake_wxObject($source); } +%typemap(python, out) wxHtmlWindow* { $target = wxPyMake_wxObject($source); } %typemap(python, out) wxSizer* { $target = wxPyMake_wxSizer($source); }