#if PYTHON_API_VERSION >= 1009
static char* wxStringErrorMsg = "String or Unicode type required";
#else
- static char* wxStringErrorMsg = "string type is required for parameter";
+ static char* wxStringErrorMsg = "String type required";
#endif
static wxString wxPyEmptyStr("");
dest = reg1.GetBox();
if (dest != wxRect(0,0,0,0)) {
- bool doSave = wxPyRestoreThread();
+ wxPyTState* state = wxPyBeginBlockThreads();
wxRect* newRect = new wxRect(dest);
obj = wxPyConstructObject((void*)newRect, "wxRect");
PyObject* one = PyInt_FromLong(1);
PyObject_SetAttrString(obj, "thisown", one);
Py_DECREF(one);
- wxPySaveThread(doSave);
+ wxPyEndBlockThreads(state);
return obj;
}
Py_INCREF(Py_None);
{ "_byte","_unsigned_char",0},
{ "_long","_unsigned_long",0},
{ "_long","_signed_long",0},
- { "_class_wxObject","_class_wxBusyInfo",SwigwxBusyInfoTowxObject},
- { "_class_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject},
- { "_class_wxObject","_class_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
- { "_class_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
- { "_class_wxObject","_class_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
- { "_class_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
- { "_class_wxObject","_class_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
- { "_class_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_WXTYPE","_unsigned_short",0},
{ "_unsigned_short","_WXTYPE",0},
{ "_unsigned_short","_short",0},
- { "_wxObject","_class_wxBusyInfo",SwigwxBusyInfoTowxObject},
{ "_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject},
- { "_wxObject","_class_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
{ "_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
- { "_wxObject","_class_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
{ "_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
- { "_wxObject","_class_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
{ "_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
{ "_signed_short","_WXTYPE",0},
{ "_signed_short","_short",0},