X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/856bf319b572699cc31ceef8cf78d1b9770cacf9..3cebfef17b54f9dacc386f090827b8badb2773d2:/wxPython/src/calendar.i diff --git a/wxPython/src/calendar.i b/wxPython/src/calendar.i index b98a1e330a..f81b86d766 100644 --- a/wxPython/src/calendar.i +++ b/wxPython/src/calendar.i @@ -200,6 +200,8 @@ public: %pythonAppend wxCalendarCtrl() "" DocStr(wxCalendarCtrl, "Create and show a calendar control."); + RefDoc(wxCalendarCtrl, ""); // turn it off for the ctors + wxCalendarCtrl(wxWindow *parent, wxWindowID id, const wxDateTime& date = wxDefaultDateTime, @@ -352,12 +354,12 @@ validity of the remaining two values. The result codes are: 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; } }