X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21f8d7ea6b728d473045198304592b61c610e49a..ea804aadf91c963d97a56e152d8372c9e689affe:/utils/wxPython/src/gtk/windows.cpp diff --git a/utils/wxPython/src/gtk/windows.cpp b/utils/wxPython/src/gtk/windows.cpp index 29e66edbb8..5f2c7c73c0 100644 --- a/utils/wxPython/src/gtk/windows.cpp +++ b/utils/wxPython/src/gtk/windows.cpp @@ -115,6 +115,39 @@ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); static char* wxStringErrorMsg = "string type is required for parameter"; +#define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) +static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxEvtHandler * _arg0; + wxEvent * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxEvtHandler_ProcessEvent",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxEvtHandler_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxEvent_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { if (PyCallable_Check(func)) { self->Connect(id, lastId, eventType, @@ -144,8 +177,12 @@ static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args) { { _arg4 = _obj4; } - wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -194,8 +231,12 @@ static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -215,8 +256,12 @@ static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_CaptureMouse(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_CaptureMouse(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -237,8 +282,12 @@ static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_Center(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Center(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -259,8 +308,12 @@ static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_Centre(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Centre(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -294,8 +347,12 @@ static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args) temp0 = (int) PyInt_AsLong(_obj2); _arg2 = &temp0; } - wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -327,8 +384,12 @@ static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxWindow_Close(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_Close(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -348,8 +409,12 @@ static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxWindow_Destroy(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_Destroy(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -368,8 +433,12 @@ static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args) return NULL; } } - wxWindow_DestroyChildren(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_DestroyChildren(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -392,8 +461,12 @@ static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxWindow_Enable(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Enable(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -416,8 +489,12 @@ static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -446,10 +523,14 @@ static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args) PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj1) @@ -473,8 +554,12 @@ static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_Fit(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Fit(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -496,8 +581,12 @@ static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *ar return NULL; } } - _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -518,8 +607,12 @@ static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxWindow_GetCharHeight(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxWindow_GetCharHeight(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -539,8 +632,12 @@ static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxWindow_GetCharWidth(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxWindow_GetCharWidth(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -569,8 +666,12 @@ static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *arg return NULL; } } - wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -602,8 +703,12 @@ static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxSize (wxWindow_GetClientSize(_arg0)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxSize (wxWindow_GetClientSize(_arg0)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -625,8 +730,12 @@ static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -648,9 +757,13 @@ static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args) { return NULL; } } - wxFont & _result_ref = wxWindow_GetFont(_arg0); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxFont & _result_ref = wxWindow_GetFont(_arg0); _result = (wxFont *) &_result_ref; - SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -672,8 +785,12 @@ static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *ar return NULL; } } - _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -695,8 +812,12 @@ static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -717,8 +838,12 @@ static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxWindow_GetId(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxWindow_GetId(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -738,8 +863,12 @@ static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxWindow_GetLabel(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxWindow_GetLabel(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -764,8 +893,12 @@ static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxWindow_GetName(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxWindow_GetName(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -791,8 +924,12 @@ static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxWindow *)wxWindow_GetParent(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxWindow *)wxWindow_GetParent(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -822,8 +959,12 @@ static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args) return NULL; } } - wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -855,8 +996,12 @@ static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxPoint (wxWindow_GetPosition(_arg0)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxPoint (wxWindow_GetPosition(_arg0)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -878,8 +1023,12 @@ static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxRect (wxWindow_GetRect(_arg0)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxRect (wxWindow_GetRect(_arg0)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -900,8 +1049,12 @@ static PyObject *_wrap_wxWindow_GetReturnCode(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxWindow_GetReturnCode(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxWindow_GetReturnCode(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -922,8 +1075,12 @@ static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -944,8 +1101,12 @@ static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -966,8 +1127,12 @@ static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -996,8 +1161,12 @@ static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -1029,8 +1198,12 @@ static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxSize (wxWindow_GetSize(_arg0)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxSize (wxWindow_GetSize(_arg0)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -1067,10 +1240,14 @@ static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -1133,7 +1310,7 @@ static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } if (_argc6) { if (SWIG_GetPtr(_argc6,(void **) &_arg6,"_wxFont_p")) { @@ -1141,8 +1318,12 @@ static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args return NULL; } } - wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -1187,8 +1368,12 @@ static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxWindow_GetTitle(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxWindow_GetTitle(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -1213,8 +1398,12 @@ static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *arg return NULL; } } - _result = (long )wxWindow_GetWindowStyleFlag(_arg0); - _resultobj = Py_BuildValue("l",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (long )wxWindow_GetWindowStyleFlag(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("l",_result); return _resultobj; } @@ -1233,8 +1422,12 @@ static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_InitDialog(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_InitDialog(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1255,8 +1448,12 @@ static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxWindow_IsEnabled(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_IsEnabled(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1276,8 +1473,12 @@ static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxWindow_IsRetained(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_IsRetained(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1297,8 +1498,12 @@ static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxWindow_IsShown(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_IsShown(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1317,8 +1522,12 @@ static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_Layout(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Layout(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1356,7 +1565,7 @@ static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args) PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } if (_argc3) { if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxResourceTable_p")) { @@ -1364,8 +1573,12 @@ static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args) return NULL; } } - _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); { if (_obj2) delete _arg2; @@ -1388,8 +1601,12 @@ static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_Lower(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Lower(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1412,8 +1629,12 @@ static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxWindow_MakeModal(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_MakeModal(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1435,8 +1656,45 @@ static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_MoveXY(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_MoveXY(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) +static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxWindow * _arg0; + wxPoint * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxWindow_Move",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPoint_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Move. Expected _wxPoint_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Move(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1467,8 +1725,12 @@ static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,_arg2,_arg3); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,_arg2,_arg3); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1487,8 +1749,12 @@ static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_Raise(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Raise(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1519,8 +1785,12 @@ static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_Refresh(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_Refresh(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1540,8 +1810,12 @@ static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_ReleaseMouse(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_ReleaseMouse(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1575,8 +1849,12 @@ static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args) temp0 = (int) PyInt_AsLong(_obj2); _arg2 = &temp0; } - wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -1616,8 +1894,12 @@ static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1645,8 +1927,12 @@ static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *ar return NULL; } } - wxWindow_SetAcceleratorTable(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetAcceleratorTable(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1669,8 +1955,12 @@ static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxWindow_SetAutoLayout(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetAutoLayout(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1698,8 +1988,12 @@ static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *ar return NULL; } } - wxWindow_SetBackgroundColour(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetBackgroundColour(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1727,8 +2021,12 @@ static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetConstraints(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetConstraints(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1751,8 +2049,12 @@ static PyObject *_wrap_wxWindow_SetDoubleClick(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxWindow_SetDoubleClick(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetDoubleClick(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1772,8 +2074,12 @@ static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetFocus(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetFocus(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1801,8 +2107,12 @@ static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetFont(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetFont(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1830,8 +2140,12 @@ static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *ar return NULL; } } - wxWindow_SetForegroundColour(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetForegroundColour(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1852,8 +2166,12 @@ static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetId(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetId(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1880,10 +2198,14 @@ static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxWindow_SetName(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetName(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -1908,8 +2230,12 @@ static PyObject *_wrap_wxWindow_SetReturnCode(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetReturnCode(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetReturnCode(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1936,8 +2262,12 @@ static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args) { } } _arg5 = (bool ) tempbool5; - wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1962,8 +2292,12 @@ static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args) { } } _arg3 = (bool ) tempbool3; - wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1988,8 +2322,12 @@ static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2019,8 +2357,12 @@ static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetSize(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetSize(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2050,8 +2392,12 @@ static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetPosition(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetPosition(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2077,8 +2423,12 @@ static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2100,8 +2450,45 @@ static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args) return NULL; } } - wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) +static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxWindow * _arg0; + wxSize * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxWindow_SetClientSize",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxSize_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetClientSize. Expected _wxSize_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetClientSize(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2129,8 +2516,12 @@ static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetCursor(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetCursor(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2157,10 +2548,14 @@ static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxWindow_SetTitle(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetTitle(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -2188,8 +2583,12 @@ static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - _result = (bool )wxWindow_Show(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_Show(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2209,8 +2608,12 @@ static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject return NULL; } } - _result = (bool )wxWindow_TransferDataFromWindow(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_TransferDataFromWindow(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2230,8 +2633,12 @@ static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *a return NULL; } } - _result = (bool )wxWindow_TransferDataToWindow(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_TransferDataToWindow(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2251,8 +2658,12 @@ static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxWindow_Validate(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxWindow_Validate(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2273,8 +2684,12 @@ static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_WarpPointer(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_WarpPointer(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2304,8 +2719,12 @@ static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObj return NULL; } } - _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -2335,8 +2754,12 @@ static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObje return NULL; } } - _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -2366,8 +2789,12 @@ static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObje return NULL; } } - _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -2397,8 +2824,12 @@ static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObjec return NULL; } } - _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); - SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -2425,10 +2856,14 @@ static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args) PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxWindow_SetToolTipString(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetToolTipString(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -2460,8 +2895,12 @@ static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args) { return NULL; } } - wxWindow_SetToolTip(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxWindow_SetToolTip(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2483,8 +2922,12 @@ static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -2541,8 +2984,12 @@ static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -2562,8 +3009,12 @@ static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args) { return NULL; } } - wxPanel_InitDialog(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxPanel_InitDialog(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2623,7 +3074,7 @@ static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } if (_argc3) { if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) { @@ -2637,8 +3088,12 @@ static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -2663,8 +3118,12 @@ static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args) { return NULL; } } - wxDialog_Centre(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxDialog_Centre(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2685,8 +3144,12 @@ static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args) { return NULL; } } - wxDialog_EndModal(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxDialog_EndModal(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2707,8 +3170,12 @@ static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxDialog_GetTitle(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxDialog_GetTitle(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -2735,8 +3202,12 @@ static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxDialog_Iconize(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxDialog_Iconize(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2757,8 +3228,12 @@ static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxDialog_IsIconized(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxDialog_IsIconized(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2780,8 +3255,12 @@ static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxDialog_SetModal(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxDialog_SetModal(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2802,8 +3281,12 @@ static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxDialog_IsModal(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxDialog_IsModal(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2829,10 +3312,14 @@ static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxDialog_SetTitle(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxDialog_SetTitle(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -2860,8 +3347,12 @@ static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - _result = (bool )wxDialog_Show(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxDialog_Show(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2881,8 +3372,12 @@ static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxDialog_ShowModal(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxDialog_ShowModal(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -2938,8 +3433,12 @@ static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -2965,8 +3464,12 @@ static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject } _arg1 = (bool ) tempbool1; _arg2 = (bool ) tempbool2; - wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2996,8 +3499,12 @@ static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, P return NULL; } } - wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -3037,8 +3544,12 @@ static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject return NULL; } } - wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -3069,8 +3580,12 @@ static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *arg return NULL; } } - _result = (bool )wxScrolledWindow_IsRetained(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxScrolledWindow_IsRetained(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3097,8 +3612,12 @@ static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args return NULL; } } - wxScrolledWindow_PrepareDC(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrolledWindow_PrepareDC(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3120,8 +3639,12 @@ static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args) { return NULL; } } - wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3147,8 +3670,12 @@ static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject * return NULL; } } - wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3178,8 +3705,12 @@ static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args return NULL; } } - wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; @@ -3219,10 +3750,14 @@ static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg0 = new wxString(PyString_AsString(_obj0)); + _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); } - _result = (wxMenu *)new_wxMenu(*_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMenu *)new_wxMenu(*_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj0) @@ -3257,7 +3792,7 @@ static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } if (_obj3) { @@ -3265,10 +3800,14 @@ static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg3 = new wxString(PyString_AsString(_obj3)); + _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); } - wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj2) @@ -3308,7 +3847,7 @@ static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } if (_argc3) { if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxMenu_p")) { @@ -3322,10 +3861,14 @@ static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg4 = new wxString(PyString_AsString(_obj4)); + _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4)); } - wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj2) @@ -3353,8 +3896,12 @@ static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args) { return NULL; } } - wxMenu_AppendSeparator(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_AppendSeparator(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3374,8 +3921,12 @@ static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args) { return NULL; } } - wxMenu_Break(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_Break(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3399,8 +3950,12 @@ static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args) { } } _arg2 = (bool ) tempbool2; - wxMenu_Check(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_Check(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3424,8 +3979,12 @@ static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args) { } } _arg2 = (bool ) tempbool2; - wxMenu_Enable(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_Enable(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3453,10 +4012,14 @@ static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - _result = (int )wxMenu_FindItem(_arg0,*_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxMenu_FindItem(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); { if (_obj1) delete _arg1; @@ -3480,8 +4043,12 @@ static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxMenu_GetTitle(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxMenu_GetTitle(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -3512,10 +4079,14 @@ static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxMenu_SetTitle(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_SetTitle(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -3542,8 +4113,12 @@ static PyObject *_wrap_wxMenu_FindItemForId(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxMenuItem *)wxMenu_FindItemForId(_arg0,_arg1); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMenuItem *)wxMenu_FindItemForId(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -3565,8 +4140,12 @@ static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -3592,8 +4171,12 @@ static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -3625,10 +4208,14 @@ static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } - wxMenu_SetHelpString(_arg0,_arg1,*_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_SetHelpString(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj2) @@ -3654,8 +4241,12 @@ static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenu_IsChecked(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenu_IsChecked(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3676,8 +4267,12 @@ static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3704,10 +4299,14 @@ static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } - wxMenu_SetLabel(_arg0,_arg1,*_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenu_SetLabel(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj2) @@ -3751,14 +4350,18 @@ static PyObject *_wrap_new_wxPyMenu(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg0 = new wxString(PyString_AsString(_obj0)); + _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); } if (_obj1) { _arg1 = _obj1; } - _result = (wxPyMenu *)new_wxPyMenu(*_arg0,_arg1); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyMenu_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxPyMenu *)new_wxPyMenu(*_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyMenu_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj0) @@ -3782,8 +4385,12 @@ static PyObject *_wrap_delete_wxPyMenu(PyObject *self, PyObject *args) { return NULL; } } - delete_wxPyMenu(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + delete_wxPyMenu(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3805,8 +4412,12 @@ static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args) { self = self; if(!PyArg_ParseTuple(args,":new_wxMenuBar")) return NULL; - _result = (wxMenuBar *)new_wxMenuBar(); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMenuBar *)new_wxMenuBar(); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -3841,10 +4452,14 @@ static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } - wxMenuBar_Append(_arg0,_arg1,*_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenuBar_Append(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj2) @@ -3872,8 +4487,12 @@ static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args) { } } _arg2 = (bool ) tempbool2; - wxMenuBar_Check(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenuBar_Check(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3895,8 +4514,12 @@ static PyObject *_wrap_wxMenuBar_Checked(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenuBar_Checked(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenuBar_Checked(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3919,8 +4542,12 @@ static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args) { } } _arg2 = (bool ) tempbool2; - wxMenuBar_Enable(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenuBar_Enable(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3942,8 +4569,12 @@ static PyObject *_wrap_wxMenuBar_Enabled(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenuBar_Enabled(_arg0,_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenuBar_Enabled(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3972,17 +4603,21 @@ static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } { if (!PyString_Check(_obj2)) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } - _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); { if (_obj1) delete _arg1; @@ -4012,8 +4647,12 @@ static PyObject *_wrap_wxMenuBar_FindItemForId(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxMenuItem *)wxMenuBar_FindItemForId(_arg0,_arg1); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMenuItem *)wxMenuBar_FindItemForId(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -4034,8 +4673,12 @@ static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxMenuBar_GetMenuCount(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxMenuBar_GetMenuCount(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4057,8 +4700,31 @@ static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define new_wxMenuItem() (new wxMenuItem()) +static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxMenuItem * _result; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,":new_wxMenuItem")) + return NULL; +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMenuItem *)new_wxMenuItem(); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -4079,8 +4745,12 @@ static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenuItem_IsSeparator(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenuItem_IsSeparator(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4100,8 +4770,12 @@ static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenuItem_IsEnabled(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenuItem_IsEnabled(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4121,8 +4795,12 @@ static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenuItem_IsChecked(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenuItem_IsChecked(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4142,8 +4820,12 @@ static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxMenuItem_IsCheckable(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxMenuItem_IsCheckable(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4163,8 +4845,12 @@ static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxMenuItem_GetId(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxMenuItem_GetId(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4185,8 +4871,12 @@ static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -4213,10 +4903,14 @@ static PyObject *_wrap_wxMenuItem_SetName(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxMenuItem_SetName(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenuItem_SetName(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -4241,10 +4935,16 @@ static PyObject *_wrap_wxMenuItem_GetName(PyObject *self, PyObject *args) { return NULL; } } - const wxString & _result_ref = wxMenuItem_GetName(_arg0); - _result = (wxString *) &_result_ref; { - _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxMenuItem_GetName(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ + _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); +} +{ + delete _result; } return _resultobj; } @@ -4265,10 +4965,16 @@ static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args) { return NULL; } } - const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); - _result = (wxString *) &_result_ref; { - _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxMenuItem_GetHelp(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ + _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); +} +{ + delete _result; } return _resultobj; } @@ -4295,10 +5001,14 @@ static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxMenuItem_SetHelp(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenuItem_SetHelp(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -4325,8 +5035,12 @@ static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxMenuItem_Enable(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenuItem_Enable(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4349,8 +5063,12 @@ static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxMenuItem_Check(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMenuItem_Check(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4368,6 +5086,7 @@ static PyMethodDef windowscMethods[] = { { "wxMenuItem_IsChecked", _wrap_wxMenuItem_IsChecked, 1 }, { "wxMenuItem_IsEnabled", _wrap_wxMenuItem_IsEnabled, 1 }, { "wxMenuItem_IsSeparator", _wrap_wxMenuItem_IsSeparator, 1 }, + { "new_wxMenuItem", _wrap_new_wxMenuItem, 1 }, { "wxMenuBar_GetMenu", _wrap_wxMenuBar_GetMenu, 1 }, { "wxMenuBar_GetMenuCount", _wrap_wxMenuBar_GetMenuCount, 1 }, { "wxMenuBar_FindItemForId", _wrap_wxMenuBar_FindItemForId, 1 }, @@ -4424,6 +5143,8 @@ static PyMethodDef windowscMethods[] = { { "wxWindow_SetToolTipString", _wrap_wxWindow_SetToolTipString, 1 }, { "wxWindow_ConvertPixelSizeToDialog", _wrap_wxWindow_ConvertPixelSizeToDialog, 1 }, { "wxWindow_ConvertPixelPointToDialog", _wrap_wxWindow_ConvertPixelPointToDialog, 1 }, + { "wxWindow_DLG_SZE", _wrap_wxWindow_ConvertDialogSizeToPixels, 1 }, + { "wxWindow_DLG_PNT", _wrap_wxWindow_ConvertDialogPointToPixels, 1 }, { "wxWindow_ConvertDialogSizeToPixels", _wrap_wxWindow_ConvertDialogSizeToPixels, 1 }, { "wxWindow_ConvertDialogPointToPixels", _wrap_wxWindow_ConvertDialogPointToPixels, 1 }, { "wxWindow_WarpPointer", _wrap_wxWindow_WarpPointer, 1 }, @@ -4433,6 +5154,7 @@ static PyMethodDef windowscMethods[] = { { "wxWindow_Show", _wrap_wxWindow_Show, 1 }, { "wxWindow_SetTitle", _wrap_wxWindow_SetTitle, 1 }, { "wxWindow_SetCursor", _wrap_wxWindow_SetCursor, 1 }, + { "wxWindow_SetClientSize", _wrap_wxWindow_SetClientSize, 1 }, { "wxWindow_SetClientSizeWH", _wrap_wxWindow_SetClientSizeWH, 1 }, { "wxWindow_SetSizeHints", _wrap_wxWindow_SetSizeHints, 1 }, { "wxWindow_SetPosition", _wrap_wxWindow_SetPosition, 1 }, @@ -4457,6 +5179,7 @@ static PyMethodDef windowscMethods[] = { { "wxWindow_Refresh", _wrap_wxWindow_Refresh, 1 }, { "wxWindow_Raise", _wrap_wxWindow_Raise, 1 }, { "wxWindow_PopupMenu", _wrap_wxWindow_PopupMenu, 1 }, + { "wxWindow_Move", _wrap_wxWindow_Move, 1 }, { "wxWindow_MoveXY", _wrap_wxWindow_MoveXY, 1 }, { "wxWindow_MakeModal", _wrap_wxWindow_MakeModal, 1 }, { "wxWindow_Lower", _wrap_wxWindow_Lower, 1 }, @@ -4505,6 +5228,7 @@ static PyMethodDef windowscMethods[] = { { "wxWindow_CaptureMouse", _wrap_wxWindow_CaptureMouse, 1 }, { "new_wxWindow", _wrap_new_wxWindow, 1 }, { "wxEvtHandler_Connect", _wrap_wxEvtHandler_Connect, 1 }, + { "wxEvtHandler_ProcessEvent", _wrap_wxEvtHandler_ProcessEvent, 1 }, { NULL, NULL } }; static PyObject *SWIG_globals; @@ -4552,6 +5276,10 @@ SWIGEXPORT(void,initwindowsc)() { SWIG_RegisterMapping("_wxImageList","_class_wxImageList",0); SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); + SWIG_RegisterMapping("_size_t","_unsigned_int",0); + SWIG_RegisterMapping("_size_t","_int",0); + SWIG_RegisterMapping("_size_t","_wxWindowID",0); + SWIG_RegisterMapping("_size_t","_uint",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0); SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0); @@ -4563,6 +5291,7 @@ SWIGEXPORT(void,initwindowsc)() { SWIG_RegisterMapping("_wxColour","_class_wxColour",0); SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0); SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0); + SWIG_RegisterMapping("_uint","_size_t",0); SWIG_RegisterMapping("_uint","_unsigned_int",0); SWIG_RegisterMapping("_uint","_int",0); SWIG_RegisterMapping("_uint","_wxWindowID",0); @@ -4624,6 +5353,7 @@ SWIGEXPORT(void,initwindowsc)() { SWIG_RegisterMapping("_class_wxMenu","_class_wxPyMenu",SwigwxPyMenuTowxMenu); SWIG_RegisterMapping("_class_wxMenu","_wxPyMenu",SwigwxPyMenuTowxMenu); SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0); + SWIG_RegisterMapping("_unsigned_int","_size_t",0); SWIG_RegisterMapping("_unsigned_int","_uint",0); SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0); SWIG_RegisterMapping("_unsigned_int","_int",0); @@ -4635,11 +5365,13 @@ SWIGEXPORT(void,initwindowsc)() { SWIG_RegisterMapping("_short","_unsigned_short",0); SWIG_RegisterMapping("_short","_signed_short",0); SWIG_RegisterMapping("_class_wxImageList","_wxImageList",0); + SWIG_RegisterMapping("_wxWindowID","_size_t",0); SWIG_RegisterMapping("_wxWindowID","_EBool",0); SWIG_RegisterMapping("_wxWindowID","_uint",0); SWIG_RegisterMapping("_wxWindowID","_int",0); SWIG_RegisterMapping("_wxWindowID","_signed_int",0); SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0); + SWIG_RegisterMapping("_int","_size_t",0); SWIG_RegisterMapping("_int","_EBool",0); SWIG_RegisterMapping("_int","_uint",0); SWIG_RegisterMapping("_int","_wxWindowID",0);