X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0699c8646a72ffd13f3a0b3ab746ec3cbec5bd28..8d72073ee3de647963a5c0904884fbbf88537216:/utils/wxPython/src/msw/controls.cpp diff --git a/utils/wxPython/src/msw/controls.cpp b/utils/wxPython/src/msw/controls.cpp index f0d8b1f86d..9f81dceccd 100644 --- a/utils/wxPython/src/msw/controls.cpp +++ b/utils/wxPython/src/msw/controls.cpp @@ -56,6 +56,7 @@ extern PyObject *SWIG_newvarlink(void); #include "helpers.h" #include #include +#include #ifdef __WXMSW__ #if wxUSE_OWNER_DRAWN @@ -166,8 +167,12 @@ static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args) { return NULL; } } - wxControl_Command(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxControl_Command(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -188,8 +193,12 @@ static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxControl_GetLabel(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxControl_GetLabel(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -220,10 +229,14 @@ static PyObject *_wrap_wxControl_SetLabel(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)); } - wxControl_SetLabel(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxControl_SetLabel(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -289,7 +302,7 @@ static PyObject *_wrap_new_wxButton(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")) { @@ -309,8 +322,12 @@ static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -334,8 +351,12 @@ static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args) { return NULL; } } - wxButton_SetDefault(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxButton_SetDefault(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -424,8 +445,12 @@ static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -447,9 +472,13 @@ static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *a return NULL; } } - wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0); _result = (wxBitmap *) &_result_ref; - SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -471,9 +500,13 @@ static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject return NULL; } } - wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0); _result = (wxBitmap *) &_result_ref; - SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -495,9 +528,13 @@ static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *a return NULL; } } - wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0); _result = (wxBitmap *) &_result_ref; - SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -519,9 +556,13 @@ static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject return NULL; } } - wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0); _result = (wxBitmap *) &_result_ref; - SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -549,8 +590,12 @@ static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject return NULL; } } - wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -578,8 +623,12 @@ static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *a return NULL; } } - wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -607,8 +656,12 @@ static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject return NULL; } } - wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -636,8 +689,12 @@ static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *a return NULL; } } - wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -699,7 +756,7 @@ static PyObject *_wrap_new_wxCheckBox(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")) { @@ -719,8 +776,12 @@ static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -745,8 +806,12 @@ static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxCheckBox_GetValue(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxCheckBox_GetValue(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -768,8 +833,12 @@ static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxCheckBox_SetValue(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxCheckBox_SetValue(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -853,10 +922,19 @@ static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args) { } } { - _arg4 = PyList_Size(_obj5); + if (_obj5) { + _arg4 = PyList_Size(_obj5); + } + else { + _arg4 = 0; + } } - _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); _resultobj = Py_BuildValue("s",_ptemp); { delete [] _arg5; @@ -886,10 +964,14 @@ static PyObject *_wrap_wxChoice_Append(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)); } - wxChoice_Append(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxChoice_Append(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -913,8 +995,12 @@ static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args) { return NULL; } } - wxChoice_Clear(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxChoice_Clear(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -942,10 +1028,14 @@ static PyObject *_wrap_wxChoice_FindString(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 )wxChoice_FindString(_arg0,*_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxChoice_FindString(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); { if (_obj1) delete _arg1; @@ -969,8 +1059,12 @@ static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxChoice_GetColumns(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxChoice_GetColumns(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -990,8 +1084,12 @@ static PyObject *_wrap_wxChoice_GetSelection(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxChoice_GetSelection(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxChoice_GetSelection(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1012,8 +1110,12 @@ static PyObject *_wrap_wxChoice_GetString(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxChoice_GetString(_arg0,_arg1)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxChoice_GetString(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -1038,8 +1140,12 @@ static PyObject *_wrap_wxChoice_GetStringSelection(PyObject *self, PyObject *arg return NULL; } } - _result = new wxString (wxChoice_GetStringSelection(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxChoice_GetStringSelection(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -1064,8 +1170,12 @@ static PyObject *_wrap_wxChoice_Number(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxChoice_Number(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxChoice_Number(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1085,8 +1195,12 @@ static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args) { return NULL; } } - wxChoice_SetColumns(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxChoice_SetColumns(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1107,8 +1221,12 @@ static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args) { return NULL; } } - wxChoice_SetSelection(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxChoice_SetSelection(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1135,10 +1253,14 @@ static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *arg PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxChoice_SetStringSelection(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxChoice_SetStringSelection(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -1227,10 +1349,19 @@ static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args) { } } { - _arg5 = PyList_Size(_obj6); + if (_obj6) { + _arg5 = PyList_Size(_obj6); + } + else { + _arg5 = 0; + } } - _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); _resultobj = Py_BuildValue("s",_ptemp); { delete [] _arg6; @@ -1260,10 +1391,14 @@ static PyObject *_wrap_wxComboBox_Append(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)); } - wxComboBox_Append(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Append(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -1287,8 +1422,12 @@ static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args) { return NULL; } } - wxComboBox_Clear(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Clear(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1308,8 +1447,12 @@ static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args) { return NULL; } } - wxComboBox_Copy(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Copy(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1329,8 +1472,12 @@ static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args) { return NULL; } } - wxComboBox_Cut(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Cut(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1351,8 +1498,12 @@ static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args) { return NULL; } } - wxComboBox_Delete(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Delete(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1380,10 +1531,14 @@ static PyObject *_wrap_wxComboBox_FindString(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 )wxComboBox_FindString(_arg0,*_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxComboBox_FindString(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); { if (_obj1) delete _arg1; @@ -1407,8 +1562,12 @@ static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *ar return NULL; } } - _result = (long )wxComboBox_GetInsertionPoint(_arg0); - _resultobj = Py_BuildValue("l",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (long )wxComboBox_GetInsertionPoint(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("l",_result); return _resultobj; } @@ -1428,8 +1587,12 @@ static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args return NULL; } } - _result = (long )wxComboBox_GetLastPosition(_arg0); - _resultobj = Py_BuildValue("l",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (long )wxComboBox_GetLastPosition(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("l",_result); return _resultobj; } @@ -1449,8 +1612,12 @@ static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxComboBox_GetSelection(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxComboBox_GetSelection(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1471,8 +1638,12 @@ static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -1497,8 +1668,12 @@ static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *a return NULL; } } - _result = new wxString (wxComboBox_GetStringSelection(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxComboBox_GetStringSelection(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -1523,8 +1698,12 @@ static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxComboBox_GetValue(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxComboBox_GetValue(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -1549,8 +1728,12 @@ static PyObject *_wrap_wxComboBox_Number(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxComboBox_Number(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxComboBox_Number(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1569,8 +1752,12 @@ static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args) { return NULL; } } - wxComboBox_Paste(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Paste(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1599,10 +1786,14 @@ static PyObject *_wrap_wxComboBox_Replace(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)); } - wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj3) @@ -1628,8 +1819,12 @@ static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args) { return NULL; } } - wxComboBox_Remove(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_Remove(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1650,8 +1845,12 @@ static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *ar return NULL; } } - wxComboBox_SetInsertionPoint(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_SetInsertionPoint(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1671,8 +1870,12 @@ static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject return NULL; } } - wxComboBox_SetInsertionPointEnd(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_SetInsertionPointEnd(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1696,8 +1899,12 @@ static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args) { } } _arg2 = (bool ) tempbool2; - wxComboBox_SetSelection(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_SetSelection(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1719,8 +1926,12 @@ static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args) { return NULL; } } - wxComboBox_SetMark(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_SetMark(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1747,10 +1958,14 @@ static PyObject *_wrap_wxComboBox_SetValue(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)); } - wxComboBox_SetValue(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxComboBox_SetValue(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -1828,8 +2043,12 @@ static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -1850,8 +2069,12 @@ static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxGauge_GetBezelFace(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxGauge_GetBezelFace(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1871,8 +2094,12 @@ static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxGauge_GetRange(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxGauge_GetRange(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1892,8 +2119,12 @@ static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxGauge_GetShadowWidth(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxGauge_GetShadowWidth(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1913,8 +2144,12 @@ static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxGauge_GetValue(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxGauge_GetValue(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -1934,8 +2169,12 @@ static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args) { return NULL; } } - wxGauge_SetBezelFace(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxGauge_SetBezelFace(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1956,8 +2195,12 @@ static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args) { return NULL; } } - wxGauge_SetRange(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxGauge_SetRange(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -1978,8 +2221,12 @@ static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args) { return NULL; } } - wxGauge_SetShadowWidth(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxGauge_SetShadowWidth(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2000,8 +2247,12 @@ static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args) { return NULL; } } - wxGauge_SetValue(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxGauge_SetValue(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2061,7 +2312,7 @@ static PyObject *_wrap_new_wxStaticBox(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")) { @@ -2075,8 +2326,12 @@ static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -2140,7 +2395,7 @@ static PyObject *_wrap_new_wxStaticText(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")) { @@ -2154,8 +2409,12 @@ static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -2180,8 +2439,12 @@ static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxStaticText_GetLabel(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxStaticText_GetLabel(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -2212,10 +2475,14 @@ static PyObject *_wrap_wxStaticText_SetLabel(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)); } - wxStaticText_SetLabel(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStaticText_SetLabel(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -2303,10 +2570,19 @@ static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args) { } } { - _arg4 = PyList_Size(_obj5); + if (_obj5) { + _arg4 = PyList_Size(_obj5); + } + else { + _arg4 = 0; + } } - _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); _resultobj = Py_BuildValue("s",_ptemp); { delete [] _arg5; @@ -2336,10 +2612,14 @@ static PyObject *_wrap_wxListBox_Append(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)); } - wxListBox_Append(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxListBox_Append(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -2363,8 +2643,12 @@ static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args) { return NULL; } } - wxListBox_Clear(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxListBox_Clear(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2385,8 +2669,12 @@ static PyObject *_wrap_wxListBox_Delete(PyObject *self, PyObject *args) { return NULL; } } - wxListBox_Delete(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxListBox_Delete(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2407,8 +2695,12 @@ static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args) { return NULL; } } - wxListBox_Deselect(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxListBox_Deselect(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -2436,10 +2728,14 @@ static PyObject *_wrap_wxListBox_FindString(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 )wxListBox_FindString(_arg0,*_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxListBox_FindString(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); { if (_obj1) delete _arg1; @@ -2463,8 +2759,47 @@ static PyObject *_wrap_wxListBox_GetSelection(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxListBox_GetSelection(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxListBox_GetSelection(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +static PyObject * wxListBox_GetSelections(wxListBox *self) { + wxArrayInt lst; + self->GetSelections(lst); + PyObject *tup = PyTuple_New(lst.GetCount()); + for(int i=0; iAppendText(_swigarg0)) +static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxTextCtrl * _arg0; + wxString * _arg1; + char * _argc0 = 0; + PyObject * _obj1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"sO:wxTextCtrl_AppendText",&_argc0,&_obj1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj1)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxTextCtrl_WriteText(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxTextCtrl_AppendText(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -3626,8 +4165,12 @@ static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args) { return NULL; } } - _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); - _resultobj = Py_BuildValue("l",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("l",_result); return _resultobj; } @@ -3699,8 +4242,12 @@ static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -3721,8 +4268,12 @@ static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxScrollBar_GetRange(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxScrollBar_GetRange(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3742,8 +4293,12 @@ static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxScrollBar_GetPageSize(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxScrollBar_GetPageSize(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3763,8 +4318,12 @@ static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *ar return NULL; } } - _result = (int )wxScrollBar_GetThumbPosition(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxScrollBar_GetThumbPosition(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3784,8 +4343,12 @@ static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args) return NULL; } } - _result = (int )wxScrollBar_GetThumbSize(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxScrollBar_GetThumbSize(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3805,8 +4368,12 @@ static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *ar return NULL; } } - wxScrollBar_SetThumbPosition(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrollBar_SetThumbPosition(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3833,8 +4400,12 @@ static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args) } } _arg5 = (bool ) tempbool5; - wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -3899,8 +4470,12 @@ static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -3921,8 +4496,12 @@ static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSpinButton_GetMax(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSpinButton_GetMax(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3942,8 +4521,12 @@ static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSpinButton_GetMin(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSpinButton_GetMin(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3963,8 +4546,12 @@ static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSpinButton_GetValue(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSpinButton_GetValue(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3985,8 +4572,12 @@ static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args) { return NULL; } } - wxSpinButton_SetRange(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSpinButton_SetRange(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4007,8 +4598,12 @@ static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args) { return NULL; } } - wxSpinButton_SetValue(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSpinButton_SetValue(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4081,8 +4676,12 @@ static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -4104,9 +4703,13 @@ static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args) return NULL; } } - wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0); +{ + wxPy_BEGIN_ALLOW_THREADS; + const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0); _result = (wxBitmap *) &_result_ref; - SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -4134,8 +4737,12 @@ static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args) return NULL; } } - wxStaticBitmap_SetBitmap(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStaticBitmap_SetBitmap(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4201,7 +4808,7 @@ static PyObject *_wrap_new_wxRadioBox(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")) { @@ -4229,10 +4836,19 @@ static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args) { } } { - _arg5 = PyList_Size(_obj6); + if (_obj6) { + _arg5 = PyList_Size(_obj6); + } + else { + _arg5 = 0; + } } - _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -4262,8 +4878,12 @@ static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxRadioBox_Enable(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_Enable(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4287,8 +4907,12 @@ static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args) { } } _arg2 = (bool ) tempbool2; - wxRadioBox_EnableItem(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_EnableItem(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4316,10 +4940,14 @@ static PyObject *_wrap_wxRadioBox_FindString(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 )wxRadioBox_FindString(_arg0,*_arg1); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxRadioBox_FindString(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); { if (_obj1) delete _arg1; @@ -4343,8 +4971,12 @@ static PyObject *_wrap_wxRadioBox_GetLabel(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxRadioBox_GetLabel(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxRadioBox_GetLabel(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -4370,8 +5002,12 @@ static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -4396,8 +5032,12 @@ static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxRadioBox_GetSelection(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxRadioBox_GetSelection(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4418,8 +5058,12 @@ static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args) { return NULL; } } - _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -4444,8 +5088,12 @@ static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *a return NULL; } } - _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); { + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); } { @@ -4470,8 +5118,12 @@ static PyObject *_wrap_wxRadioBox_Number(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxRadioBox_Number(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxRadioBox_Number(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4497,10 +5149,14 @@ static PyObject *_wrap_wxRadioBox_SetLabel(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)); } - wxRadioBox_SetLabel(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_SetLabel(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -4532,10 +5188,14 @@ static PyObject *_wrap_wxRadioBox_SetItemLabel(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)); } - wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj2) @@ -4560,8 +5220,12 @@ static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args) { return NULL; } } - wxRadioBox_SetSelection(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_SetSelection(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4588,10 +5252,14 @@ static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *a PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1)); + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); } - wxRadioBox_SetStringSelection(_arg0,*_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_SetStringSelection(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; { if (_obj1) @@ -4618,8 +5286,12 @@ static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxRadioBox_Show(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_Show(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4643,8 +5315,12 @@ static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args) { } } _arg2 = (bool ) tempbool2; - wxRadioBox_ShowItem(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioBox_ShowItem(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4706,7 +5382,7 @@ static PyObject *_wrap_new_wxRadioButton(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")) { @@ -4726,8 +5402,12 @@ static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -4752,8 +5432,12 @@ static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args) { return NULL; } } - _result = (bool )wxRadioButton_GetValue(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxRadioButton_GetValue(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4775,8 +5459,12 @@ static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args) { } } _arg1 = (bool ) tempbool1; - wxRadioButton_SetValue(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxRadioButton_SetValue(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4852,8 +5540,12 @@ static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -4873,8 +5565,12 @@ static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_ClearSel(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_ClearSel(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4894,8 +5590,12 @@ static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_ClearTicks(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_ClearTicks(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -4916,8 +5616,12 @@ static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetLineSize(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetLineSize(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4937,8 +5641,12 @@ static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetMax(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetMax(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4958,8 +5666,12 @@ static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetMin(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetMin(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4979,8 +5691,12 @@ static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetPageSize(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetPageSize(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -5000,8 +5716,12 @@ static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetSelEnd(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetSelEnd(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -5021,8 +5741,12 @@ static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetSelStart(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetSelStart(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -5042,8 +5766,12 @@ static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetThumbLength(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetThumbLength(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -5063,8 +5791,12 @@ static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetTickFreq(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetTickFreq(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -5084,8 +5816,12 @@ static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args) { return NULL; } } - _result = (int )wxSlider_GetValue(_arg0); - _resultobj = Py_BuildValue("i",_result); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxSlider_GetValue(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -5106,8 +5842,12 @@ static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetRange(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetRange(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5129,8 +5869,12 @@ static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetTickFreq(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetTickFreq(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5151,8 +5895,12 @@ static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetLineSize(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetLineSize(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5173,8 +5921,12 @@ static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetPageSize(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetPageSize(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5196,8 +5948,12 @@ static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetSelection(_arg0,_arg1,_arg2); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetSelection(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5218,8 +5974,12 @@ static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetThumbLength(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetThumbLength(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5240,8 +6000,12 @@ static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetTick(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetTick(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5262,8 +6026,12 @@ static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args) { return NULL; } } - wxSlider_SetValue(_arg0,_arg1); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxSlider_SetValue(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -5325,6 +6093,7 @@ static PyMethodDef controlscMethods[] = { { "wxScrollBar_GetRange", _wrap_wxScrollBar_GetRange, 1 }, { "new_wxScrollBar", _wrap_new_wxScrollBar, 1 }, { "wxTextCtrl_XYToPosition", _wrap_wxTextCtrl_XYToPosition, 1 }, + { "wxTextCtrl_AppendText", _wrap_wxTextCtrl_AppendText, 1 }, { "wxTextCtrl_WriteText", _wrap_wxTextCtrl_WriteText, 1 }, { "wxTextCtrl_ShowPosition", _wrap_wxTextCtrl_ShowPosition, 1 }, { "wxTextCtrl_SetValue", _wrap_wxTextCtrl_SetValue, 1 }, @@ -5364,6 +6133,7 @@ static PyMethodDef controlscMethods[] = { { "wxListBox_Number", _wrap_wxListBox_Number, 1 }, { "wxListBox_GetStringSelection", _wrap_wxListBox_GetStringSelection, 1 }, { "wxListBox_GetString", _wrap_wxListBox_GetString, 1 }, + { "wxListBox_GetSelections", _wrap_wxListBox_GetSelections, 1 }, { "wxListBox_GetSelection", _wrap_wxListBox_GetSelection, 1 }, { "wxListBox_FindString", _wrap_wxListBox_FindString, 1 }, { "wxListBox_Deselect", _wrap_wxListBox_Deselect, 1 }, @@ -5524,6 +6294,7 @@ SWIGEXPORT(void,initcontrolsc)() { SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0); SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0); SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0); + SWIG_RegisterMapping("_wxPyEvent","_class_wxPyEvent",0); SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0); SWIG_RegisterMapping("_class_wxToolTip","_wxToolTip",0); SWIG_RegisterMapping("_class_wxMask","_wxMask",0); @@ -5553,6 +6324,7 @@ SWIGEXPORT(void,initcontrolsc)() { SWIG_RegisterMapping("_wxScrollBar","_class_wxScrollBar",0); SWIG_RegisterMapping("_wxSpinButton","_class_wxSpinButton",0); SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0); + SWIG_RegisterMapping("_class_wxPyEvent","_wxPyEvent",0); SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0); SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0); SWIG_RegisterMapping("_wxScrollEvent","_class_wxScrollEvent",0);