generated code update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -288,11 +288,12 @@ static PyObject *_wrap_wxColourData_SetColour(PyObject *self, PyObject *args, Py | ||||
|     wxColourData * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourData_SetColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourData_SetColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -301,13 +302,11 @@ static PyObject *_wrap_wxColourData_SetColour(PyObject *self, PyObject *args, Py | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxColourData_SetColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxColourData_SetColour(_arg0,*_arg1); | ||||
| @@ -325,11 +324,12 @@ static PyObject *_wrap_wxColourData_SetCustomColour(PyObject *self, PyObject *ar | ||||
|     int  _arg1; | ||||
|     wxColour * _arg2; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo2 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj2 = 0; | ||||
|     char *_kwnames[] = { "self","i","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxColourData_SetCustomColour",_kwnames,&_argo0,&_arg1,&_argo2))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxColourData_SetCustomColour",_kwnames,&_argo0,&_arg1,&_obj2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -338,13 +338,11 @@ static PyObject *_wrap_wxColourData_SetCustomColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo2) { | ||||
|         if (_argo2 == Py_None) { _arg2 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxColourData_SetCustomColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg2 = &temp; | ||||
|     if (! wxColour_helper(_obj2, &_arg2)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxColourData_SetCustomColour(_arg0,_arg1,*_arg2); | ||||
| @@ -2092,11 +2090,12 @@ static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyOb | ||||
|     wxFontData * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -2105,13 +2104,11 @@ static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyOb | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxFontData_SetColour(_arg0,*_arg1); | ||||
|   | ||||
| @@ -484,11 +484,12 @@ static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *ar | ||||
|     wxButton * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -497,13 +498,11 @@ static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_SetBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxButton_SetBackgroundColour(_arg0,*_arg1); | ||||
| @@ -520,11 +519,12 @@ static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *ar | ||||
|     wxButton * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -533,13 +533,11 @@ static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_SetForegroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxButton_SetForegroundColour(_arg0,*_arg1); | ||||
|   | ||||
| @@ -191,11 +191,12 @@ static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *ar | ||||
|     wxListItemAttr * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colText", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -204,13 +205,11 @@ static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetTextColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxListItemAttr_SetTextColour(_arg0,*_arg1); | ||||
| @@ -227,11 +226,12 @@ static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObje | ||||
|     wxListItemAttr * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colBack", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -240,13 +240,11 @@ static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObje | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | ||||
| @@ -883,11 +881,12 @@ static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, | ||||
|     wxListItem * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colText", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -896,13 +895,11 @@ static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetTextColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxListItem_SetTextColour(_arg0,*_arg1); | ||||
| @@ -919,11 +916,12 @@ static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject * | ||||
|     wxListItem * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colBack", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -932,13 +930,11 @@ static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject * | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxListItem_SetBackgroundColour(_arg0,*_arg1); | ||||
| @@ -3965,11 +3961,12 @@ static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject * | ||||
|     wxListCtrl * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","col", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -3978,13 +3975,11 @@ static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject * | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | ||||
| @@ -4518,6 +4513,44 @@ static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObjec | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| static int  wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | ||||
|             return *self != *other; | ||||
|         } | ||||
| static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     int  _result; | ||||
|     wxTreeItemId * _arg0; | ||||
|     wxTreeItemId * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     char *_kwnames[] = { "self","other", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    _resultobj = Py_BuildValue("i",_result); | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | ||||
| static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -7174,11 +7207,12 @@ static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *ar | ||||
|     wxColour * _arg2; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     PyObject * _argo2 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj2 = 0; | ||||
|     char *_kwnames[] = { "self","item","col", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_argo2))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -7194,13 +7228,11 @@ static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo2) { | ||||
|         if (_argo2 == Py_None) { _arg2 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemTextColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg2 = &temp; | ||||
|     if (! wxColour_helper(_obj2, &_arg2)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | ||||
| @@ -7219,11 +7251,12 @@ static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObje | ||||
|     wxColour * _arg2; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     PyObject * _argo2 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj2 = 0; | ||||
|     char *_kwnames[] = { "self","item","col", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_argo2))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -7239,13 +7272,11 @@ static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObje | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo2) { | ||||
|         if (_argo2 == Py_None) { _arg2 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg2 = &temp; | ||||
|     if (! wxColour_helper(_obj2, &_arg2)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | ||||
| @@ -7374,6 +7405,7 @@ static PyMethodDef controls2cMethods[] = { | ||||
| 	 { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | ||||
|   | ||||
| @@ -485,6 +485,9 @@ class wxTreeItemIdPtr : | ||||
|     def IsOk(self, *_args, **_kwargs): | ||||
|         val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs) | ||||
|         return val | ||||
|     def __cmp__(self, *_args, **_kwargs): | ||||
|         val = apply(controls2c.wxTreeItemId___cmp__,(self,) + _args, _kwargs) | ||||
|         return val | ||||
|     def __repr__(self): | ||||
|         return "<C wxTreeItemId instance at %s>" % (self.this,) | ||||
| class wxTreeItemId(wxTreeItemIdPtr): | ||||
|   | ||||
| @@ -230,12 +230,13 @@ static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kw | ||||
|     wxBitmap * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "bitmap","colour", NULL }; | ||||
|     char _ptemp[128]; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -244,13 +245,11 @@ static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kw | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMaskColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | ||||
| @@ -2501,19 +2500,18 @@ static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kw | ||||
| static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxColour * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_argo0))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         delete_wxColour(_arg0); | ||||
| @@ -2529,19 +2527,18 @@ static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kw | ||||
|     PyObject * _resultobj; | ||||
|     unsigned char  _result; | ||||
|     wxColour * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_argo0))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Red. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (unsigned char )wxColour_Red(_arg0); | ||||
| @@ -2556,19 +2553,18 @@ static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject * | ||||
|     PyObject * _resultobj; | ||||
|     unsigned char  _result; | ||||
|     wxColour * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_argo0))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Green. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (unsigned char )wxColour_Green(_arg0); | ||||
| @@ -2583,19 +2579,18 @@ static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *k | ||||
|     PyObject * _resultobj; | ||||
|     unsigned char  _result; | ||||
|     wxColour * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_argo0))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Blue. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (unsigned char )wxColour_Blue(_arg0); | ||||
| @@ -2610,19 +2605,18 @@ static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwa | ||||
|     PyObject * _resultobj; | ||||
|     bool  _result; | ||||
|     wxColour * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_argo0))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Ok. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (bool )wxColour_Ok(_arg0); | ||||
| @@ -2639,19 +2633,18 @@ static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kw | ||||
|     unsigned char  _arg1; | ||||
|     unsigned char  _arg2; | ||||
|     unsigned char  _arg3; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "self","red","green","blue", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Set. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxColour_Set(_arg0,_arg1,_arg2,_arg3); | ||||
| @@ -2673,19 +2666,18 @@ static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kw | ||||
|     PyObject * _resultobj; | ||||
|     PyObject * _result; | ||||
|     wxColour * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_argo0))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Get. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (PyObject *)wxColour_Get(_arg0); | ||||
| @@ -2707,20 +2699,19 @@ static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwarg | ||||
|     wxColour * _arg0; | ||||
|     int  _arg1 = (int ) 1; | ||||
|     int  _arg2 = (int ) wxSOLID; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "colour","width","style", NULL }; | ||||
|     char _ptemp[128]; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_argo0,&_arg1,&_arg2))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPen. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (wxPen *)new_wxPen(_arg0,_arg1,_arg2); | ||||
| @@ -2940,11 +2931,12 @@ static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject | ||||
|     wxPen * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -2953,13 +2945,11 @@ static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxPen_SetColour(_arg0,*_arg1); | ||||
| @@ -3147,20 +3137,19 @@ static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwa | ||||
|     wxBrush * _result; | ||||
|     wxColour * _arg0; | ||||
|     int  _arg1 = (int ) wxSOLID; | ||||
|     PyObject * _argo0 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj0 = 0; | ||||
|     char *_kwnames[] = { "colour","style", NULL }; | ||||
|     char _ptemp[128]; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_argo0,&_arg1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBrush. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg0 = &temp; | ||||
|     if (! wxColour_helper(_obj0, &_arg0)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (wxBrush *)new_wxBrush(_arg0,_arg1); | ||||
| @@ -3305,11 +3294,12 @@ static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObjec | ||||
|     wxBrush * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -3318,13 +3308,11 @@ static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObjec | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxBrush_SetColour(_arg0,*_arg1); | ||||
| @@ -4304,11 +4292,12 @@ static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject * | ||||
|     wxColour * _arg3; | ||||
|     int  _arg4 = (int ) wxFLOOD_SURFACE; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo3 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj3 = 0; | ||||
|     char *_kwnames[] = { "self","x","y","colour","style", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_arg4))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -4317,13 +4306,11 @@ static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject * | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo3) { | ||||
|         if (_argo3 == Py_None) { _arg3 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDC_FloodFill. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg3 = &temp; | ||||
|     if (! wxColour_helper(_obj3, &_arg3)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | ||||
| @@ -5770,11 +5757,12 @@ static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, Py | ||||
|     wxDC * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -5783,13 +5771,11 @@ static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, Py | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextBackground. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxDC_SetTextBackground(_arg0,*_arg1); | ||||
| @@ -5806,11 +5792,12 @@ static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, Py | ||||
|     wxDC * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -5819,13 +5806,11 @@ static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, Py | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextForeground. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxDC_SetTextForeground(_arg0,*_arg1); | ||||
|   | ||||
| @@ -2671,11 +2671,12 @@ static PyObject *_wrap_wxGridCellAttr_SetTextColour(PyObject *self, PyObject *ar | ||||
|     wxGridCellAttr * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colText", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGridCellAttr_SetTextColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGridCellAttr_SetTextColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -2684,13 +2685,11 @@ static PyObject *_wrap_wxGridCellAttr_SetTextColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGridCellAttr_SetTextColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGridCellAttr_SetTextColour(_arg0,*_arg1); | ||||
| @@ -2707,11 +2706,12 @@ static PyObject *_wrap_wxGridCellAttr_SetBackgroundColour(PyObject *self, PyObje | ||||
|     wxGridCellAttr * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colBack", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGridCellAttr_SetBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGridCellAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -2720,13 +2720,11 @@ static PyObject *_wrap_wxGridCellAttr_SetBackgroundColour(PyObject *self, PyObje | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGridCellAttr_SetBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGridCellAttr_SetBackgroundColour(_arg0,*_arg1); | ||||
| @@ -7373,6 +7371,33 @@ static PyObject *_wrap_wxGrid_IsCellEditControlEnabled(PyObject *self, PyObject | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxGrid_IsCellEditControlShown(_swigobj)  (_swigobj->IsCellEditControlShown()) | ||||
| static PyObject *_wrap_wxGrid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     bool  _result; | ||||
|     wxGrid * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_IsCellEditControlShown",_kwnames,&_argo0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_IsCellEditControlShown. Expected _wxGrid_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (bool )wxGrid_IsCellEditControlShown(_arg0); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    _resultobj = Py_BuildValue("i",_result); | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxGrid_IsCurrentCellReadOnly(_swigobj)  (_swigobj->IsCurrentCellReadOnly()) | ||||
| static PyObject *_wrap_wxGrid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -8548,11 +8573,12 @@ static PyObject *_wrap_wxGrid_SetLabelBackgroundColour(PyObject *self, PyObject | ||||
|     wxGrid * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","arg2", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetLabelBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetLabelBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -8561,13 +8587,11 @@ static PyObject *_wrap_wxGrid_SetLabelBackgroundColour(PyObject *self, PyObject | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_SetLabelBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetLabelBackgroundColour(_arg0,*_arg1); | ||||
| @@ -8584,11 +8608,12 @@ static PyObject *_wrap_wxGrid_SetLabelTextColour(PyObject *self, PyObject *args, | ||||
|     wxGrid * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","arg2", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetLabelTextColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetLabelTextColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -8597,13 +8622,11 @@ static PyObject *_wrap_wxGrid_SetLabelTextColour(PyObject *self, PyObject *args, | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_SetLabelTextColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetLabelTextColour(_arg0,*_arg1); | ||||
| @@ -8796,11 +8819,12 @@ static PyObject *_wrap_wxGrid_SetGridLineColour(PyObject *self, PyObject *args, | ||||
|     wxGrid * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","arg2", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetGridLineColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetGridLineColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -8809,13 +8833,11 @@ static PyObject *_wrap_wxGrid_SetGridLineColour(PyObject *self, PyObject *args, | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_SetGridLineColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetGridLineColour(_arg0,*_arg1); | ||||
| @@ -10051,11 +10073,12 @@ static PyObject *_wrap_wxGrid_SetDefaultCellBackgroundColour(PyObject *self, PyO | ||||
|     wxGrid * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","arg2", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetDefaultCellBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetDefaultCellBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -10064,13 +10087,11 @@ static PyObject *_wrap_wxGrid_SetDefaultCellBackgroundColour(PyObject *self, PyO | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_SetDefaultCellBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetDefaultCellBackgroundColour(_arg0,*_arg1); | ||||
| @@ -10089,11 +10110,12 @@ static PyObject *_wrap_wxGrid_SetCellBackgroundColour(PyObject *self, PyObject * | ||||
|     int  _arg2; | ||||
|     wxColour * _arg3; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo3 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj3 = 0; | ||||
|     char *_kwnames[] = { "self","row","col","arg4", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO:wxGrid_SetCellBackgroundColour",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO:wxGrid_SetCellBackgroundColour",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -10102,13 +10124,11 @@ static PyObject *_wrap_wxGrid_SetCellBackgroundColour(PyObject *self, PyObject * | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo3) { | ||||
|         if (_argo3 == Py_None) { _arg3 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGrid_SetCellBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg3 = &temp; | ||||
|     if (! wxColour_helper(_obj3, &_arg3)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetCellBackgroundColour(_arg0,_arg1,_arg2,*_arg3); | ||||
| @@ -10125,11 +10145,12 @@ static PyObject *_wrap_wxGrid_SetDefaultCellTextColour(PyObject *self, PyObject | ||||
|     wxGrid * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","arg2", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetDefaultCellTextColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetDefaultCellTextColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -10138,13 +10159,11 @@ static PyObject *_wrap_wxGrid_SetDefaultCellTextColour(PyObject *self, PyObject | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_SetDefaultCellTextColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetDefaultCellTextColour(_arg0,*_arg1); | ||||
| @@ -10163,11 +10182,12 @@ static PyObject *_wrap_wxGrid_SetCellTextColour(PyObject *self, PyObject *args, | ||||
|     int  _arg2; | ||||
|     wxColour * _arg3; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo3 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj3 = 0; | ||||
|     char *_kwnames[] = { "self","row","col","arg4", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO:wxGrid_SetCellTextColour",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO:wxGrid_SetCellTextColour",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -10176,13 +10196,11 @@ static PyObject *_wrap_wxGrid_SetCellTextColour(PyObject *self, PyObject *args, | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo3) { | ||||
|         if (_argo3 == Py_None) { _arg3 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGrid_SetCellTextColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg3 = &temp; | ||||
|     if (! wxColour_helper(_obj3, &_arg3)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetCellTextColour(_arg0,_arg1,_arg2,*_arg3); | ||||
| @@ -11093,11 +11111,12 @@ static PyObject *_wrap_wxGrid_SetSelectionBackground(PyObject *self, PyObject *a | ||||
|     wxGrid * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","c", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetSelectionBackground",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetSelectionBackground",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -11106,13 +11125,11 @@ static PyObject *_wrap_wxGrid_SetSelectionBackground(PyObject *self, PyObject *a | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_SetSelectionBackground. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetSelectionBackground(_arg0,*_arg1); | ||||
| @@ -11129,11 +11146,12 @@ static PyObject *_wrap_wxGrid_SetSelectionForeground(PyObject *self, PyObject *a | ||||
|     wxGrid * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","c", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetSelectionForeground",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGrid_SetSelectionForeground",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -11142,13 +11160,11 @@ static PyObject *_wrap_wxGrid_SetSelectionForeground(PyObject *self, PyObject *a | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_SetSelectionForeground. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxGrid_SetSelectionForeground(_arg0,*_arg1); | ||||
| @@ -12495,6 +12511,7 @@ static PyMethodDef gridcMethods[] = { | ||||
| 	 { "wxGrid_HideCellEditControl", (PyCFunction) _wrap_wxGrid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxGrid_ShowCellEditControl", (PyCFunction) _wrap_wxGrid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxGrid_IsCurrentCellReadOnly", (PyCFunction) _wrap_wxGrid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxGrid_IsCellEditControlShown", (PyCFunction) _wrap_wxGrid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxGrid_IsCellEditControlEnabled", (PyCFunction) _wrap_wxGrid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxGrid_CanEnableCellControl", (PyCFunction) _wrap_wxGrid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxGrid_DisableCellEditControl", (PyCFunction) _wrap_wxGrid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | ||||
|   | ||||
| @@ -898,6 +898,9 @@ class wxGridPtr(wxScrolledWindowPtr): | ||||
|     def IsCellEditControlEnabled(self, *_args, **_kwargs): | ||||
|         val = apply(gridc.wxGrid_IsCellEditControlEnabled,(self,) + _args, _kwargs) | ||||
|         return val | ||||
|     def IsCellEditControlShown(self, *_args, **_kwargs): | ||||
|         val = apply(gridc.wxGrid_IsCellEditControlShown,(self,) + _args, _kwargs) | ||||
|         return val | ||||
|     def IsCurrentCellReadOnly(self, *_args, **_kwargs): | ||||
|         val = apply(gridc.wxGrid_IsCurrentCellReadOnly,(self,) + _args, _kwargs) | ||||
|         return val | ||||
|   | ||||
| @@ -3390,11 +3390,12 @@ static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *ar | ||||
|     wxWindow * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -3403,13 +3404,11 @@ static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetBackgroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxWindow_SetBackgroundColour(_arg0,*_arg1); | ||||
| @@ -3588,11 +3587,12 @@ static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *ar | ||||
|     wxWindow * _arg0; | ||||
|     wxColour * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     wxColour  temp; | ||||
|     PyObject * _obj1 = 0; | ||||
|     char *_kwnames[] = { "self","colour", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_argo1))  | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
| @@ -3601,13 +3601,11 @@ static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *ar | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetForegroundColour. Expected _wxColour_p."); | ||||
| { | ||||
|     _arg1 = &temp; | ||||
|     if (! wxColour_helper(_obj1, &_arg1)) | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxWindow_SetForegroundColour(_arg0,*_arg1); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user