+static void wxImage_SetData(wxImage *self,PyObject * data) {
+ unsigned char* dataPtr;
+
+ if (! PyString_Check(data)) {
+ PyErr_SetString(PyExc_TypeError, "Expected string object");
+ return /* NULL */ ;
+ }
+ dataPtr = (unsigned char*)PyString_AsString(data);
+ self->SetData(dataPtr);
+ }