]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/helpers.cpp
Change demo to not try to drop the table when it thinks it is creating it for the...
[wxWidgets.git] / wxPython / src / helpers.cpp
index 3aa1ae21d97d04ba53e59fae0c1b9ba671feac3f..9d12d8962ae08ced014f12a88bf438c93295feee 100644 (file)
@@ -784,6 +784,11 @@ static inline bool wxPointFromObjects(PyObject* o1, PyObject* o2, wxPoint* point
 }
 
 
+#if PYTHON_API_VERSION < 1009
+#define PySequence_Fast_GET_ITEM(o, i)\
+     (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i))
+#endif
+
 wxPoint* wxPoint_LIST_helper(PyObject* source, int *count) {
     // Putting all of the declarations here allows
     // us to put the error handling all in one place.