]> git.saurik.com Git - wxWidgets.git/commitdiff
wxCharBuffer typemap
authorRobin Dunn <robin@alldunn.com>
Sat, 16 Apr 2005 05:56:07 +0000 (05:56 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 16 Apr 2005 05:56:07 +0000 (05:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/my_typemaps.i

index 19d2fe76f0b63bbe443601cdd5ccc07903d4d7ea..46d7bfb7d2e48d4f49c3ed8a7644ff41eb96ea3e 100644 (file)
@@ -124,6 +124,11 @@ MAKE_INT_ARRAY_TYPEMAPS(styles, styles_field)
 
 
 
+%typemap(out) wxCharBuffer {
+    $result = PyString_FromString((char*)$1.data());
+}
+
+
 //---------------------------------------------------------------------------
 // Typemaps to convert Python sequence objects (tuples, etc.) to
 // wxSize, wxPoint, wxRealPoint, and wxRect.