- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarEvent_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
- wxDateTime::WeekDay result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetWeekDay",kwnames,&obj0)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarEvent, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxDateTime::WeekDay)((wxCalendarEvent const *)arg1)->GetWeekDay();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((result));
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * CalendarEvent_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static int _wrap_CalendarNameStr_set(PyObject *) {
- PyErr_SetString(PyExc_TypeError,"Variable CalendarNameStr is read-only.");
- return 1;
-}
-
-
-static PyObject *_wrap_CalendarNameStr_get(void) {
- PyObject *pyobj = NULL;
-
- {
-#if wxUSE_UNICODE
- pyobj = PyUnicode_FromWideChar((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len());
-#else
- pyobj = PyString_FromStringAndSize((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len());
-#endif
- }
- return pyobj;
-}
-
-
-static PyObject *_wrap_new_CalendarCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxWindow *arg1 = (wxWindow *) 0 ;
- int arg2 = (int) -1 ;
- wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
- wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
- wxPoint const &arg4_defvalue = wxDefaultPosition ;
- wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
- wxSize const &arg5_defvalue = wxDefaultSize ;
- wxSize *arg5 = (wxSize *) &arg5_defvalue ;
- long arg6 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
- wxString const &arg7_defvalue = wxPyCalendarNameStr ;
- wxString *arg7 = (wxString *) &arg7_defvalue ;
- wxCalendarCtrl *result;
- wxPoint temp4 ;
- wxSize temp5 ;
- bool temp7 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- char *kwnames[] = {
- (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_CalendarCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- if (obj1) {
- {
- arg2 = static_cast<int >(SWIG_As_int(obj1));
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- }
- if (obj2) {
- {
- SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(3)) SWIG_fail;
- if (arg3 == NULL) {
- SWIG_null_ref("wxDateTime");
- }
- if (SWIG_arg_fail(3)) SWIG_fail;
- }
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- {
- arg6 = static_cast<long >(SWIG_As_long(obj5));
- if (SWIG_arg_fail(6)) SWIG_fail;
- }
- }
- if (obj6) {
- {
- arg7 = wxString_in_helper(obj6);
- if (arg7 == NULL) SWIG_fail;
- temp7 = true;
- }
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxCalendarCtrl *)new wxCalendarCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1);
- {
- if (temp7)
- delete arg7;
- }
- return resultobj;
- fail:
- {
- if (temp7)
- delete arg7;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PreCalendarCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *result;
- char *kwnames[] = {
- NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCalendarCtrl",kwnames)) goto fail;
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxCalendarCtrl *)new wxCalendarCtrl();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 ;
- wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
- wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
- wxPoint const &arg5_defvalue = wxDefaultPosition ;
- wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
- wxSize const &arg6_defvalue = wxDefaultSize ;
- wxSize *arg6 = (wxSize *) &arg6_defvalue ;
- long arg7 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
- wxString const &arg8_defvalue = wxPyCalendarNameStr ;
- wxString *arg8 = (wxString *) &arg8_defvalue ;
- bool result;
- wxPoint temp5 ;
- wxSize temp6 ;
- bool temp8 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- PyObject * obj7 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:CalendarCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(2)) SWIG_fail;
- {
- arg3 = static_cast<int >(SWIG_As_int(obj2));
- if (SWIG_arg_fail(3)) SWIG_fail;
- }
- if (obj3) {
- {
- SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(4)) SWIG_fail;
- if (arg4 == NULL) {
- SWIG_null_ref("wxDateTime");
- }
- if (SWIG_arg_fail(4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- {
- arg6 = &temp6;
- if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
- }
- }
- if (obj6) {
- {
- arg7 = static_cast<long >(SWIG_As_long(obj6));
- if (SWIG_arg_fail(7)) SWIG_fail;
- }
- }
- if (obj7) {
- {
- arg8 = wxString_in_helper(obj7);
- if (arg8 == NULL) SWIG_fail;
- temp8 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- {
- if (temp8)
- delete arg8;
- }
- return resultobj;
- fail:
- {
- if (temp8)
- delete arg8;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_SetDate(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxDateTime *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "date", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetDate",kwnames,&obj0,&obj1)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- {
- SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(2)) SWIG_fail;
- if (arg2 == NULL) {
- SWIG_null_ref("wxDateTime");
- }
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetDate((wxDateTime const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_GetDate(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxDateTime *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetDate",kwnames,&obj0)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- {
- wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetDate();
- result = (wxDateTime *) &_result_ref;
- }
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_SetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
- wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "date", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames,&obj0,&obj1)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- if (obj1) {
- {
- SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(2)) SWIG_fail;
- if (arg2 == NULL) {
- SWIG_null_ref("wxDateTime");
- }
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->SetLowerDateLimit((wxDateTime const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_SetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
- wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "date", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames,&obj0,&obj1)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- if (obj1) {
- {
- SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(2)) SWIG_fail;
- if (arg2 == NULL) {
- SWIG_null_ref("wxDateTime");
- }
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->SetUpperDateLimit((wxDateTime const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_GetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxDateTime *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames,&obj0)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- {
- wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetLowerDateLimit();
- result = (wxDateTime *) &_result_ref;
- }
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_GetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxDateTime *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames,&obj0)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- {
- wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetUpperDateLimit();
- result = (wxDateTime *) &_result_ref;
- }
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_SetDateRange(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
- wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
- wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
- wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- if (obj1) {
- {
- SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(2)) SWIG_fail;
- if (arg2 == NULL) {
- SWIG_null_ref("wxDateTime");
- }
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- }
- if (obj2) {
- {
- SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(3)) SWIG_fail;
- if (arg3 == NULL) {
- SWIG_null_ref("wxDateTime");
- }
- if (SWIG_arg_fail(3)) SWIG_fail;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->SetDateRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_EnableYearChange(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- bool arg2 = (bool) true ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "enable", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames,&obj0,&obj1)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- if (obj1) {
- {
- arg2 = static_cast<bool >(SWIG_As_bool(obj1));
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->EnableYearChange(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_EnableMonthChange(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- bool arg2 = (bool) true ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "enable", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames,&obj0,&obj1)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- if (obj1) {
- {
- arg2 = static_cast<bool >(SWIG_As_bool(obj1));
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->EnableMonthChange(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj = NULL;
- wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
- bool arg2 = (bool) true ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "display", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames,&obj0,&obj1)) goto fail;
- SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
- if (SWIG_arg_fail(1)) SWIG_fail;
- if (obj1) {
- {
- arg2 = static_cast<bool >(SWIG_As_bool(obj1));
- if (SWIG_arg_fail(2)) SWIG_fail;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->EnableHolidayDisplay(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;