return target;
}
-#if PYTHON_API_VERSION >= 1009
- static char* wxStringErrorMsg = "String or Unicode type required";
-#else
- static char* wxStringErrorMsg = "String type required";
-#endif
-
IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragLeft);
IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragRight);
IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragLeft);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDiagram",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDiagram *)new_wxDiagram();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDiagram *)new_wxDiagram();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDiagram_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDiagram_AddShape(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_AddShape(_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;
- wxDiagram_Clear(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_Clear(_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;
- wxDiagram_DeleteAllShapes(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_DeleteAllShapes(_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;
- wxDiagram_DrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_DrawOutline(_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;
- _result = (wxPyShape *)wxDiagram_FindShape(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxDiagram_FindShape(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShapeCanvas *)wxDiagram_GetCanvas(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShapeCanvas *)wxDiagram_GetCanvas(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxDiagram_GetCount(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxDiagram_GetCount(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxDiagram_GetGridSpacing(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxDiagram_GetGridSpacing(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxDiagram_GetMouseTolerance(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxDiagram_GetMouseTolerance(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxDiagram_GetShapeList(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxDiagram_GetShapeList(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = _result;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxDiagram_GetQuickEditMode(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDiagram_GetQuickEditMode(_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 )wxDiagram_GetSnapToGrid(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDiagram_GetSnapToGrid(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDiagram_InsertShape(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_InsertShape(_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;
- _result = (bool )wxDiagram_LoadFile(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDiagram_LoadFile(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDiagram_ReadContainerGeometry(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_ReadContainerGeometry(_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;
- wxDiagram_ReadLines(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_ReadLines(_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;
- wxDiagram_ReadNodes(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_ReadNodes(_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;
- wxDiagram_RecentreAll(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_RecentreAll(_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;
- wxDiagram_Redraw(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_Redraw(_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;
- wxDiagram_RemoveAllShapes(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_RemoveAllShapes(_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;
- wxDiagram_RemoveShape(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_RemoveShape(_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)
+ _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 = (bool )wxDiagram_SaveFile(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDiagram_SaveFile(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDiagram_SetCanvas(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_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;
- wxDiagram_SetGridSpacing(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_SetGridSpacing(_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;
- wxDiagram_SetMouseTolerance(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_SetMouseTolerance(_arg0,_arg1);
- 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;
- wxDiagram_SetQuickEditMode(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_SetQuickEditMode(_arg0,_arg1);
- 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;
- wxDiagram_SetSnapToGrid(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_SetSnapToGrid(_arg0,_arg1);
- 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;
- wxDiagram_ShowAll(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_ShowAll(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_arg2 = &temp0;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDiagram_Snap(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDiagram_Snap(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShapeCanvas *)new_wxPyShapeCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShapeCanvas *)new_wxPyShapeCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShapeCanvas_p");
_resultobj = Py_BuildValue("s",_ptemp);
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeCanvas__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas__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;
- wxPyShapeCanvas_AddShape(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_AddShape(_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 = (wxPyShape *)wxPyShapeCanvas_FindShape(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxPyShapeCanvas_FindShape(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
{
PyObject *o;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyShape *)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyShape *)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
{
PyObject *o;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDiagram *)wxPyShapeCanvas_GetDiagram(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDiagram *)wxPyShapeCanvas_GetDiagram(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeCanvas_InsertShape(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_InsertShape(_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;
- wxPyShapeCanvas_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnBeginDragLeft(_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;
- wxPyShapeCanvas_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnBeginDragRight(_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;
- wxPyShapeCanvas_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnEndDragLeft(_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;
- wxPyShapeCanvas_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3);
- 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;
- wxPyShapeCanvas_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnDragLeft(_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;
- wxPyShapeCanvas_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnDragRight(_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;
- wxPyShapeCanvas_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnLeftClick(_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;
- wxPyShapeCanvas_base_OnRightClick(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_base_OnRightClick(_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;
- wxPyShapeCanvas_Redraw(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_Redraw(_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;
- wxPyShapeCanvas_RemoveShape(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_RemoveShape(_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;
- wxPyShapeCanvas_SetDiagram(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_SetDiagram(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_arg2 = &temp0;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyShapeCanvas_Snap(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyShapeCanvas_Snap(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{