wxDateTime* date = new wxDateTime;
wxDateTime::WeekDay wd;
wxCalendarHitTestResult result = self->HitTest(pos, date, &wd);
- wxPyBeginBlockThreads();
+ bool blocked = wxPyBeginBlockThreads();
PyObject* tup = PyTuple_New(3);
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(result));
PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(date, wxT("wxDateTime"), 1));
PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(wd));
- wxPyEndBlockThreads();
+ wxPyEndBlockThreads(blocked);
return tup;
}
#ifdef __cplusplus
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
{
if (temp8)
delete arg8;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;