]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/my_typemaps.i
corrections to dynamic loading for Darwin
[wxWidgets.git] / wxPython / src / my_typemaps.i
index 0fcf295e4a909cba68717f938d7eeb104966dfc1..2a2b12e23bc2f604a0c7656087d8014b890eee14 100644 (file)
     $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
 %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); }