[pywin32-checkins] pywin32/win32/src win32gui.i,1.43,1.44
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-07-02 02:36:36
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16070 Modified Files: win32gui.i Log Message: Add listview sorting. Index: win32gui.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** win32gui.i 12 Jun 2004 08:55:50 -0000 1.43 --- win32gui.i 2 Jul 2004 02:36:28 -0000 1.44 *************** *** 1100,1103 **** --- 1100,1113 ---- %native (CallWindowProc) PyCallWindowProc; + %typemap(python,in) WPARAM { + if (!make_param($source, (long *)&$target)) + return NULL; + } + + %typemap(python,in) LPARAM { + if (!make_param($source, (long *)&$target)) + return NULL; + } + %{ static BOOL make_param(PyObject *ob, long *pl) *************** *** 2748,2751 **** --- 2758,2762 ---- // Sorting for controls %{ + #if (PY_VERSION_HEX >= 0x02030000) // PyGILState only in 2.3+ // Callbacks *************** *** 2852,2855 **** --- 2863,2880 ---- return Py_None; } + #else // PYVERSION + static PyObject *PyListView_SortItemsEx(PyObject *self, PyObject *args) + { + PyErr_SetString(PyExc_NotImplementedError, + "This requires Python 2.3 or greater"); + return NULL; + } + static PyObject *PyListView_SortItems(PyObject *self, PyObject *args) + { + PyErr_SetString(PyExc_NotImplementedError, + "This requires Python 2.3 or greater"); + return NULL; + } + #endif // PYVERSION 2.3+ %} |