From: Robin Dunn Date: Fri, 30 Nov 2001 21:17:18 +0000 (+0000) Subject: SWIGged code update X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7a0f694a115170d8235ba9df54fb2468ea66d7fe SWIGged code update git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/contrib/stc/msw/stc_.cpp b/wxPython/contrib/stc/msw/stc_.cpp index 92c7a19131..47faacd081 100644 --- a/wxPython/contrib/stc/msw/stc_.cpp +++ b/wxPython/contrib/stc/msw/stc_.cpp @@ -8757,28 +8757,21 @@ static void *SwigwxStyledTextEventTowxObject(void *ptr) { return (void *) dest; } -#define new_wxStyledTextEvent(_swigarg0) (new wxStyledTextEvent(_swigarg0)) +#define new_wxStyledTextEvent(_swigarg0,_swigarg1) (new wxStyledTextEvent(_swigarg0,_swigarg1)) static PyObject *_wrap_new_wxStyledTextEvent(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextEvent * _result; - wxStyledTextEvent * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "event", NULL }; + wxEventType _arg0 = (wxEventType ) 0; + int _arg1 = (int ) 0; + char *_kwnames[] = { "commandType","id", NULL }; char _ptemp[128]; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxStyledTextEvent",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextEvent_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStyledTextEvent. Expected _wxStyledTextEvent_p."); + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxStyledTextEvent",_kwnames,&_arg0,&_arg1)) return NULL; - } - } { wxPy_BEGIN_ALLOW_THREADS; - _result = (wxStyledTextEvent *)new_wxStyledTextEvent(*_arg0); + _result = (wxStyledTextEvent *)new_wxStyledTextEvent(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } if (_result) {