return target;
}
-#if PYTHON_API_VERSION >= 1009
- static char* wxStringErrorMsg = "String or Unicode type required";
-#else
- static char* wxStringErrorMsg = "String type required";
-#endif
-
WXSHAPE_IMP_CALLBACKS(wxPyShapeEvtHandler,wxShapeEvtHandler);
WXSHAPE_IMP_CALLBACKS(wxPyShape, wxShape);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxShapeRegion",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxShapeRegion *)new_wxShapeRegion();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxShapeRegion *)new_wxShapeRegion();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxShapeRegion_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetText(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetText(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_arg1 = NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetFont(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetFont(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetMinSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetMinSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetPosition(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetPosition(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetProportions(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetProportions(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetFormatMode(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetFormatMode(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetName(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetName(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetColour(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetColour(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxShapeRegion_GetText(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxShapeRegion_GetText(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxFont *)wxShapeRegion_GetFont(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxFont *)wxShapeRegion_GetFont(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_GetMinSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_GetMinSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_GetProportion(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_GetProportion(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_GetSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_GetSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_GetPosition(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_GetPosition(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxShapeRegion_GetFormatMode(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxShapeRegion_GetFormatMode(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxShapeRegion_GetName(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxShapeRegion_GetName(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxShapeRegion_GetColour(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxShapeRegion_GetColour(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxColour *)wxShapeRegion_GetActualColourObject(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxColour *)wxShapeRegion_GetActualColourObject(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxList & _result_ref = wxShapeRegion_GetFormattedText(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxList & _result_ref = wxShapeRegion_GetFormattedText(_arg0);
_result = (wxList *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxList_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxShapeRegion_GetPenColour(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxShapeRegion_GetPenColour(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxShapeRegion_GetPenStyle(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxShapeRegion_GetPenStyle(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetPenStyle(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetPenStyle(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_SetPenColour(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_SetPenColour(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPen *)wxShapeRegion_GetActualPen(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPen *)wxShapeRegion_GetActualPen(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxShapeRegion_GetWidth(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxShapeRegion_GetWidth(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxShapeRegion_GetHeight(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxShapeRegion_GetHeight(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxShapeRegion_ClearText(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxShapeRegion_ClearText(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShapeEvtHandler *)new_wxPyShapeEvtHandler(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShapeEvtHandler *)new_wxPyShapeEvtHandler(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShapeEvtHandler_p");
_resultobj = Py_BuildValue("s",_ptemp);
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_Destroy(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_Destroy(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static void wxPyShapeEvtHandler__setOORInfo(wxPyShapeEvtHandler *self,PyObject * _self) {
- self->SetClientObject(new wxPyClientData(_self));
+ self->SetClientObject(new wxPyOORClientData(_self));
}
static PyObject *_wrap_wxPyShapeEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
_arg1 = _obj1;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler__setOORInfo(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler__setOORInfo(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_SetShape(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_SetShape(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShape *)wxPyShapeEvtHandler_GetShape(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxPyShapeEvtHandler_GetShape(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_SetPreviousHandler(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_SetPreviousHandler(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShapeEvtHandler *)wxPyShapeEvtHandler_GetPreviousHandler(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShapeEvtHandler *)wxPyShapeEvtHandler_GetPreviousHandler(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShapeEvtHandler *)wxPyShapeEvtHandler_CreateNewCopy(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShapeEvtHandler *)wxPyShapeEvtHandler_CreateNewCopy(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDelete(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDelete(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDraw(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDraw(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDrawContents(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDrawContents(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDrawBranches(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDrawBranches(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnMoveLinks(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnMoveLinks(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnErase(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnErase(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnEraseContents(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnEraseContents(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnHighlight(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnHighlight(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnLeftDoubleClick(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnLeftDoubleClick(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnRightClick(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnRightClick(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg6 = (bool ) tempbool6;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShapeEvtHandler_base_OnMovePre(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShapeEvtHandler_base_OnMovePre(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg6 = (bool ) tempbool6;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnMovePost(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnMovePost(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnDrawControlPoints(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnDrawControlPoints(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnEraseControlPoints(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnEraseControlPoints(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnMoveLink(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnMoveLink(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnSizingDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnSizingDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnSizingBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnSizingBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnSizingEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnSizingEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnBeginSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnBeginSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeEvtHandler_base_OnEndSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeEvtHandler_base_OnEndSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_GetBoundingBoxMax(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_GetBoundingBoxMax(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_GetBoundingBoxMin(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_GetBoundingBoxMin(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetPerimeterPoint(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetPerimeterPoint(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
PyObject *o;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShapeCanvas *)wxPyShape_GetCanvas(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShapeCanvas *)wxPyShape_GetCanvas(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetCanvas(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetCanvas(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_AddToCanvas(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_AddToCanvas(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_InsertInCanvas(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_InsertInCanvas(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_RemoveFromCanvas(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_RemoveFromCanvas(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxPyShape_GetX(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxPyShape_GetX(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxPyShape_GetY(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxPyShape_GetY(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetX(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetX(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetY(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetY(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShape *)wxPyShape_GetParent(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxPyShape_GetParent(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetParent(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetParent(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShape *)wxPyShape_GetTopAncestor(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxPyShape_GetTopAncestor(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
static PyObject * wxPyShape_GetChildren(wxPyShape *self) {
wxList& list = self->GetChildren();
- return wxPy_ConvertList(&list, "wxPyShape");
+ return wxPy_ConvertShapeList(&list, "wxPyShape");
}
static PyObject *_wrap_wxPyShape_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxPyShape_GetChildren(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxPyShape_GetChildren(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = _result;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Unlink(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Unlink(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetDrawHandles(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetDrawHandles(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetDrawHandles(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetDrawHandles(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_MakeControlPoints(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_MakeControlPoints(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_DeleteControlPoints(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_DeleteControlPoints(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_ResetControlPoints(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_ResetControlPoints(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShapeEvtHandler *)wxPyShape_GetEventHandler(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShapeEvtHandler *)wxPyShape_GetEventHandler(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetEventHandler(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetEventHandler(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_MakeMandatoryControlPoints(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_MakeMandatoryControlPoints(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_ResetMandatoryControlPoints(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_ResetMandatoryControlPoints(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_Recompute(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_Recompute(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_CalculateSize(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_CalculateSize(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Select(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Select(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_arg1 = (bool ) tempbool1;
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetHighlight(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetHighlight(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_IsHighlighted(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_IsHighlighted(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_Selected(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_Selected(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_AncestorSelected(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_AncestorSelected(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetSensitivityFilter(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetSensitivityFilter(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetSensitivityFilter(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetSensitivityFilter(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_arg1 = (bool ) tempbool1;
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetDraggable(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetDraggable(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_arg1 = (bool ) tempbool1;
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetFixedSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetFixedSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
PyObject * _resultobj;
wxPyShape * _arg0;
bool * _arg1;
+ int temp;
bool * _arg2;
+ int temp0;
PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- PyObject * _argo2 = 0;
- char *_kwnames[] = { "self","OUTPUT","OUTPUT", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShape_GetFixedSize",_kwnames,&_argo0,&_argo1,&_argo2))
+{
+ _arg1 = (bool*)&temp;
+}
+{
+ _arg2 = (bool*)&temp0;
+}
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetFixedSize",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
return NULL;
}
}
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_bool_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_GetFixedSize. Expected _bool_p.");
- return NULL;
- }
- }
- if (_argo2) {
- if (_argo2 == Py_None) { _arg2 = NULL; }
- else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_bool_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShape_GetFixedSize. Expected _bool_p.");
- return NULL;
- }
- }
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_GetFixedSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_GetFixedSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg1));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg2));
+ _resultobj = t_output_helper(_resultobj, o);
+}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetFixedWidth(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetFixedWidth(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetFixedHeight(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetFixedHeight(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetSpaceAttachments(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetSpaceAttachments(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetSpaceAttachments(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetSpaceAttachments(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetShadowMode(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetShadowMode(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetShadowMode(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetShadowMode(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_HitTest(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_HitTest(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
PyObject *o;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetCentreResize(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetCentreResize(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetCentreResize(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetCentreResize(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetMaintainAspectRatio(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetMaintainAspectRatio(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetMaintainAspectRatio(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetMaintainAspectRatio(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
static PyObject * wxPyShape_GetLines(wxPyShape *self) {
wxList& list = self->GetLines();
- return wxPy_ConvertList(&list, "wxPyLineShape");
+ return wxPy_ConvertShapeList(&list, "wxPyLineShape");
}
static PyObject *_wrap_wxPyShape_GetLines(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxPyShape_GetLines(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxPyShape_GetLines(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = _result;
}
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetDisableLabel(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetDisableLabel(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetDisableLabel(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetDisableLabel(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetAttachmentMode(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetAttachmentMode(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetAttachmentMode(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetAttachmentMode(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetId(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetId(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxPyShape_GetId(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (long )wxPyShape_GetId(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_arg1 = NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetPen(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetPen(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_arg1 = NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetBrush(_arg0,_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-static void wxPyShape_SetClientData(wxPyShape *self,PyObject * userData) {
- wxPyUserData* data = NULL;
- if (userData)
- data = new wxPyUserData(userData);
- self->SetClientData(data);
- }
-static PyObject *_wrap_wxPyShape_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxPyShape * _arg0;
- PyObject * _arg1;
- PyObject * _argo0 = 0;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","userData", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_SetClientData",_kwnames,&_argo0,&_obj1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetClientData. Expected _wxPyShape_p.");
- return NULL;
- }
- }
-{
- _arg1 = _obj1;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetClientData(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetBrush(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
-static PyObject * wxPyShape_GetClientData(wxPyShape *self) {
- wxPyUserData* data = (wxPyUserData*)self->GetClientData();
- if (data) {
- Py_INCREF(data->m_obj);
- return data->m_obj;
- } else {
- Py_INCREF(Py_None);
- return Py_None;
- }
- }
-static PyObject *_wrap_wxPyShape_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- PyObject * _result;
- wxPyShape * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetClientData",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetClientData. Expected _wxPyShape_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxPyShape_GetClientData(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-}{
- _resultobj = _result;
-}
- return _resultobj;
-}
-
#define wxPyShape_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
static PyObject *_wrap_wxPyShape_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Show(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Show(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_IsShown(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_IsShown(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg4 = (bool ) tempbool4;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Move(_arg0,*_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Move(_arg0,*_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Erase(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Erase(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_EraseContents(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_EraseContents(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Draw(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Draw(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Flash(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Flash(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_MoveLinks(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_MoveLinks(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_DrawContents(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_DrawContents(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg3 = (bool ) tempbool3;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetSize(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetSize(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetAttachmentSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetAttachmentSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Attach(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Attach(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Detach(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Detach(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_Constrain(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_Constrain(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_AddLine(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_AddLine(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetLinePosition(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetLinePosition(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_AddText(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_AddText(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPen *)wxPyShape_GetPen(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPen *)wxPyShape_GetPen(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxBrush *)wxPyShape_GetBrush(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxBrush *)wxPyShape_GetBrush(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetDefaultRegionSize(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetDefaultRegionSize(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg2 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
return NULL;
- }
- _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_FormatText(_arg0,*_arg1,*_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_FormatText(_arg0,*_arg1,*_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetFormatMode(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetFormatMode(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetFormatMode(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetFormatMode(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_arg1 = NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetFont(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetFont(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxFont *)wxPyShape_GetFont(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxFont *)wxPyShape_GetFont(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetTextColour(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetTextColour(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxPyShape_GetTextColour(_arg0,_arg1));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxPyShape_GetTextColour(_arg0,_arg1));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetNumberOfTextRegions(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetNumberOfTextRegions(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetRegionName(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetRegionName(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxPyShape_GetRegionName(_arg0,_arg1));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxPyShape_GetRegionName(_arg0,_arg1));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetRegionId(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetRegionId(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
}
if (_obj1)
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_NameRegions(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_NameRegions(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxPyShape_GetRegions(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxPyShape_GetRegions(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = _result;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_AddRegion(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_AddRegion(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_ClearRegions(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_ClearRegions(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_AssignNewIds(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_AssignNewIds(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShape *)wxPyShape_FindRegion(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxPyShape_FindRegion(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
{
PyObject *o;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_FindRegionNames(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_FindRegionNames(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_ClearText(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_ClearText(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_RemoveLine(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_RemoveLine(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetAttachmentPosition(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetAttachmentPosition(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
PyObject *o;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetNumberOfAttachments(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetNumberOfAttachments(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_AttachmentIsValid(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_AttachmentIsValid(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetAttachmentPositionEdge(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetAttachmentPositionEdge(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
PyObject *o;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxRealPoint (wxPyShape_CalcSimpleAttachment(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxRealPoint (wxPyShape_CalcSimpleAttachment(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_AttachmentSortTest(_arg0,_arg1,*_arg2,*_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_AttachmentSortTest(_arg0,_arg1,*_arg2,*_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg3 = (bool ) tempbool3;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_EraseLinks(_arg0,*_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_EraseLinks(_arg0,*_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg3 = (bool ) tempbool3;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_DrawLinks(_arg0,*_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_DrawLinks(_arg0,*_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_MoveLineToNewAttachment(_arg0,*_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_MoveLineToNewAttachment(_arg0,*_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_arg1 = _obj1;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_ApplyAttachmentOrdering(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_ApplyAttachmentOrdering(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxRealPoint (wxPyShape_GetBranchingAttachmentRoot(_arg0,_arg1));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxRealPoint (wxPyShape_GetBranchingAttachmentRoot(_arg0,_arg1));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetBranchingAttachmentInfo(_arg0,_arg1,*_arg2,*_arg3,*_arg4,*_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetBranchingAttachmentInfo(_arg0,_arg1,*_arg2,*_arg3,*_arg4,*_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_GetBranchingAttachmentPoint(_arg0,_arg1,_arg2,*_arg3,*_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_GetBranchingAttachmentPoint(_arg0,_arg1,_arg2,*_arg3,*_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetAttachmentLineCount(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetAttachmentLineCount(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetBranchNeckLength(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetBranchNeckLength(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetBranchNeckLength(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetBranchNeckLength(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetBranchStemLength(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetBranchStemLength(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetBranchStemLength(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetBranchStemLength(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetBranchSpacing(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetBranchSpacing(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_GetBranchSpacing(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_GetBranchSpacing(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_SetBranchStyle(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_SetBranchStyle(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxPyShape_GetBranchStyle(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (long )wxPyShape_GetBranchStyle(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_PhysicalToLogicalAttachment(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_PhysicalToLogicalAttachment(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPyShape_LogicalToPhysicalAttachment(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyShape_LogicalToPhysicalAttachment(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_Draggable(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_Draggable(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_HasDescendant(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_HasDescendant(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_arg1 = (bool ) tempbool1;
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShape *)wxPyShape_CreateNewCopy(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxPyShape_CreateNewCopy(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Copy(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Copy(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_CopyWithHandler(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_CopyWithHandler(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Rotate(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Rotate(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxPyShape_GetRotation(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxPyShape_GetRotation(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_ClearAttachments(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_ClearAttachments(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_Recentre(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_Recentre(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_ClearPointList(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_ClearPointList(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxPen (wxPyShape_GetBackgroundPen(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxPen (wxPyShape_GetBackgroundPen(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxBrush (wxPyShape_GetBackgroundBrush(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxBrush (wxPyShape_GetBackgroundBrush(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDelete(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDelete(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDraw(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDraw(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDrawContents(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDrawContents(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDrawBranches(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDrawBranches(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnMoveLinks(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnMoveLinks(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnErase(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnErase(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnEraseContents(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnEraseContents(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnHighlight(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnHighlight(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnLeftDoubleClick(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnLeftDoubleClick(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnRightClick(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnRightClick(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg6 = (bool ) tempbool6;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShape_base_OnMovePre(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShape_base_OnMovePre(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
_arg6 = (bool ) tempbool6;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnMovePost(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnMovePost(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnDrawControlPoints(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnDrawControlPoints(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnEraseControlPoints(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnEraseControlPoints(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnMoveLink(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnMoveLink(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
_arg2 = (bool ) tempbool2;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnSizingDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnSizingDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnSizingBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnSizingBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnSizingEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnSizingEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnBeginSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnBeginSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShape_base_OnEndSize(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShape_base_OnEndSize(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
{ "wxPyShape_Move", (PyCFunction) _wrap_wxPyShape_Move, METH_VARARGS | METH_KEYWORDS },
{ "wxPyShape_IsShown", (PyCFunction) _wrap_wxPyShape_IsShown, METH_VARARGS | METH_KEYWORDS },
{ "wxPyShape_Show", (PyCFunction) _wrap_wxPyShape_Show, METH_VARARGS | METH_KEYWORDS },
- { "wxPyShape_GetClientData", (PyCFunction) _wrap_wxPyShape_GetClientData, METH_VARARGS | METH_KEYWORDS },
- { "wxPyShape_SetClientData", (PyCFunction) _wrap_wxPyShape_SetClientData, METH_VARARGS | METH_KEYWORDS },
{ "wxPyShape_SetBrush", (PyCFunction) _wrap_wxPyShape_SetBrush, METH_VARARGS | METH_KEYWORDS },
{ "wxPyShape_SetPen", (PyCFunction) _wrap_wxPyShape_SetPen, METH_VARARGS | METH_KEYWORDS },
{ "wxPyShape_GetId", (PyCFunction) _wrap_wxPyShape_GetId, METH_VARARGS | METH_KEYWORDS },