-}
- if (_obj6)
-{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg6 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj6)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
-#endif
-}
- if (_obj8)
-{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj8) && !PyUnicode_Check(_obj8)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj8, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg8 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj8)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg8 = new wxString(PyString_AS_STRING(_obj8), PyString_GET_SIZE(_obj8));
-#endif