]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/calendar_wrap.cpp
Applied patch #809019 (Adds embedded/plugin capabilities to wxMac).
[wxWidgets.git] / wxPython / src / gtk / calendar_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.20
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48
49
50 /***********************************************************************
51 * common.swg for wxPython
52 *
53 * Include only the function prototypes and such from SWIG's common.swg,
54 * but not the runtime functions themselves. This helps keep the
55 * wrapper files clean of unnecessary stuff that is in the libpy.c file
56 * anyway.
57 *
58 ************************************************************************/
59
60 #include <string.h>
61
62 #if defined(_WIN32) || defined(__WIN32__)
63 # if defined(_MSC_VER)
64 # if defined(STATIC_LINKED)
65 # define SWIGEXPORT(a) a
66 # define SWIGIMPORT(a) extern a
67 # else
68 # define SWIGEXPORT(a) __declspec(dllexport) a
69 # define SWIGIMPORT(a) extern a
70 # endif
71 # else
72 # if defined(__BORLANDC__)
73 # define SWIGEXPORT(a) a _export
74 # define SWIGIMPORT(a) a _export
75 # else
76 # define SWIGEXPORT(a) a
77 # define SWIGIMPORT(a) a
78 # endif
79 # endif
80 #else
81 # define SWIGEXPORT(a) a
82 # define SWIGIMPORT(a) a
83 #endif
84
85 #ifdef SWIG_GLOBAL
86 #define SWIGRUNTIME(a) SWIGEXPORT(a)
87 #else
88 #define SWIGRUNTIME(a) static a
89 #endif
90
91
92 #ifdef __cplusplus
93 extern "C" {
94 #endif
95
96 typedef void *(*swig_converter_func)(void *);
97 typedef struct swig_type_info *(*swig_dycast_func)(void **);
98
99 typedef struct swig_type_info {
100 const char *name;
101 swig_converter_func converter;
102 const char *str;
103 void *clientdata;
104 swig_dycast_func dcast;
105 struct swig_type_info *next;
106 struct swig_type_info *prev;
107 } swig_type_info;
108
109
110 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
111 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
112 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
114 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
116 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
117
118
119 #ifdef __cplusplus
120 }
121
122 #endif
123
124 /***********************************************************************
125 * pyrun.swg for wxPython
126 *
127 * Include only the function prototypes and such from SWIG's pyrun.swg,
128 * but not the runtime functions themselves. This helps keep the
129 * wrapper files clean of unnecessary stuff that is in the libpy.c file
130 * anyway.
131 *
132 ************************************************************************/
133
134
135 #include "Python.h"
136
137 #ifdef __cplusplus
138 extern "C" {
139 #endif
140
141 #define SWIG_PY_INT 1
142 #define SWIG_PY_FLOAT 2
143 #define SWIG_PY_STRING 3
144 #define SWIG_PY_POINTER 4
145 #define SWIG_PY_BINARY 5
146
147 /* Flags for pointer conversion */
148
149 #define SWIG_POINTER_EXCEPTION 0x1
150 #define SWIG_POINTER_DISOWN 0x2
151
152 /* Exception handling in wrappers */
153 #define SWIG_fail goto fail
154
155 /* Constant information structure */
156 typedef struct swig_const_info {
157 int type;
158 char *name;
159 long lvalue;
160 double dvalue;
161 void *pvalue;
162 swig_type_info **ptype;
163 } swig_const_info;
164
165
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_PackData(c, ptr, sz) \
183 SWIG_Python_PackData(c, ptr, sz)
184 #define SWIG_UnpackData(c, ptr, sz) \
185 SWIG_Python_UnpackData(c, ptr, sz)
186 #define SWIG_NewPackedObj(ptr, sz, type) \
187 SWIG_Python_NewPackedObj(ptr, sz, type)
188 #define SWIG_InstallConstants(d, constants) \
189 SWIG_Python_InstallConstants(d, constants)
190
191
192 SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
193 SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
194 SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
195
196 SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void);
197 SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
198 SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
199 SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int);
200 SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int);
201 SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
202 SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
203
204
205 /* Contract support */
206
207 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
208
209
210 #ifdef __cplusplus
211 }
212 #endif
213
214
215
216 /* -------- TYPES TABLE (BEGIN) -------- */
217
218 #define SWIGTYPE_p_wxDateTime__WeekDay swig_types[0]
219 #define SWIGTYPE_p_wxColour swig_types[1]
220 #define SWIGTYPE_p_wxObject swig_types[2]
221 #define SWIGTYPE_p_wxCalendarEvent swig_types[3]
222 #define SWIGTYPE_p_wxCalendarDateAttr swig_types[4]
223 #define SWIGTYPE_p_wxWindow swig_types[5]
224 #define SWIGTYPE_p_wxCommandEvent swig_types[6]
225 #define SWIGTYPE_p_wxString swig_types[7]
226 #define SWIGTYPE_p_wxEvtHandler swig_types[8]
227 #define SWIGTYPE_p_wxFont swig_types[9]
228 #define SWIGTYPE_p_wxDateTime swig_types[10]
229 #define SWIGTYPE_p_wxControl swig_types[11]
230 #define SWIGTYPE_p_wxCalendarCtrl swig_types[12]
231 #define SWIGTYPE_p_wxEvent swig_types[13]
232 static swig_type_info *swig_types[15];
233
234 /* -------- TYPES TABLE (END) -------- */
235
236
237 /*-----------------------------------------------
238 @(target):= _calendar.so
239 ------------------------------------------------*/
240 #define SWIG_init init_calendar
241
242 #define SWIG_name "_calendar"
243
244 #include "wx/wxPython/wxPython.h"
245 #include "wx/wxPython/pyclasses.h"
246
247 #include <wx/calctrl.h>
248
249
250 DECLARE_DEF_STRING(CalendarNameStr);
251
252 #ifdef __cplusplus
253 extern "C" {
254 #endif
255 static PyObject *_wrap_new_CalendarDateAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
256 PyObject *resultobj;
257 wxColour *arg1 = 0 ;
258 wxColour const &arg2_defvalue = wxNullColour ;
259 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
260 wxColour const &arg3_defvalue = wxNullColour ;
261 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
262 wxFont const &arg4_defvalue = wxNullFont ;
263 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
264 int arg5 = (int) wxCAL_BORDER_NONE ;
265 wxCalendarDateAttr *result;
266 wxColour temp1 ;
267 wxColour temp2 ;
268 wxColour temp3 ;
269 PyObject * obj0 = 0 ;
270 PyObject * obj1 = 0 ;
271 PyObject * obj2 = 0 ;
272 PyObject * obj3 = 0 ;
273 char *kwnames[] = {
274 (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL
275 };
276
277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOi:new_CalendarDateAttr",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail;
278 {
279 arg1 = &temp1;
280 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
281 }
282 if (obj1) {
283 {
284 arg2 = &temp2;
285 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
286 }
287 }
288 if (obj2) {
289 {
290 arg3 = &temp3;
291 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
292 }
293 }
294 if (obj3) {
295 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
296 if (arg4 == NULL) {
297 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
298 }
299 }
300 {
301 PyThreadState* __tstate = wxPyBeginAllowThreads();
302 result = (wxCalendarDateAttr *)new wxCalendarDateAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxColour const &)*arg3,(wxFont const &)*arg4,(wxCalendarDateBorder )arg5);
303
304 wxPyEndAllowThreads(__tstate);
305 if (PyErr_Occurred()) SWIG_fail;
306 }
307 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 1);
308 return resultobj;
309 fail:
310 return NULL;
311 }
312
313
314 static PyObject *_wrap_new_CalendarDateAttrBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
315 PyObject *resultobj;
316 int arg1 ;
317 wxColour const &arg2_defvalue = wxNullColour ;
318 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
319 wxCalendarDateAttr *result;
320 wxColour temp2 ;
321 PyObject * obj1 = 0 ;
322 char *kwnames[] = {
323 (char *) "border",(char *) "colBorder", NULL
324 };
325
326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|O:new_CalendarDateAttrBorder",kwnames,&arg1,&obj1)) goto fail;
327 if (obj1) {
328 {
329 arg2 = &temp2;
330 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
331 }
332 }
333 {
334 PyThreadState* __tstate = wxPyBeginAllowThreads();
335 result = (wxCalendarDateAttr *)new wxCalendarDateAttr((wxCalendarDateBorder )arg1,(wxColour const &)*arg2);
336
337 wxPyEndAllowThreads(__tstate);
338 if (PyErr_Occurred()) SWIG_fail;
339 }
340 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 1);
341 return resultobj;
342 fail:
343 return NULL;
344 }
345
346
347 static PyObject *_wrap_CalendarDateAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
348 PyObject *resultobj;
349 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
350 wxColour *arg2 = 0 ;
351 wxColour temp2 ;
352 PyObject * obj0 = 0 ;
353 PyObject * obj1 = 0 ;
354 char *kwnames[] = {
355 (char *) "self",(char *) "colText", NULL
356 };
357
358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
360 {
361 arg2 = &temp2;
362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
363 }
364 {
365 PyThreadState* __tstate = wxPyBeginAllowThreads();
366 (arg1)->SetTextColour((wxColour const &)*arg2);
367
368 wxPyEndAllowThreads(__tstate);
369 if (PyErr_Occurred()) SWIG_fail;
370 }
371 Py_INCREF(Py_None); resultobj = Py_None;
372 return resultobj;
373 fail:
374 return NULL;
375 }
376
377
378 static PyObject *_wrap_CalendarDateAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
379 PyObject *resultobj;
380 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
381 wxColour *arg2 = 0 ;
382 wxColour temp2 ;
383 PyObject * obj0 = 0 ;
384 PyObject * obj1 = 0 ;
385 char *kwnames[] = {
386 (char *) "self",(char *) "colBack", NULL
387 };
388
389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
391 {
392 arg2 = &temp2;
393 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
394 }
395 {
396 PyThreadState* __tstate = wxPyBeginAllowThreads();
397 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
398
399 wxPyEndAllowThreads(__tstate);
400 if (PyErr_Occurred()) SWIG_fail;
401 }
402 Py_INCREF(Py_None); resultobj = Py_None;
403 return resultobj;
404 fail:
405 return NULL;
406 }
407
408
409 static PyObject *_wrap_CalendarDateAttr_SetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
410 PyObject *resultobj;
411 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
412 wxColour *arg2 = 0 ;
413 wxColour temp2 ;
414 PyObject * obj0 = 0 ;
415 PyObject * obj1 = 0 ;
416 char *kwnames[] = {
417 (char *) "self",(char *) "col", NULL
418 };
419
420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorderColour",kwnames,&obj0,&obj1)) goto fail;
421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
422 {
423 arg2 = &temp2;
424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
425 }
426 {
427 PyThreadState* __tstate = wxPyBeginAllowThreads();
428 (arg1)->SetBorderColour((wxColour const &)*arg2);
429
430 wxPyEndAllowThreads(__tstate);
431 if (PyErr_Occurred()) SWIG_fail;
432 }
433 Py_INCREF(Py_None); resultobj = Py_None;
434 return resultobj;
435 fail:
436 return NULL;
437 }
438
439
440 static PyObject *_wrap_CalendarDateAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
441 PyObject *resultobj;
442 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
443 wxFont *arg2 = 0 ;
444 PyObject * obj0 = 0 ;
445 PyObject * obj1 = 0 ;
446 char *kwnames[] = {
447 (char *) "self",(char *) "font", NULL
448 };
449
450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
452 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
453 if (arg2 == NULL) {
454 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
455 }
456 {
457 PyThreadState* __tstate = wxPyBeginAllowThreads();
458 (arg1)->SetFont((wxFont const &)*arg2);
459
460 wxPyEndAllowThreads(__tstate);
461 if (PyErr_Occurred()) SWIG_fail;
462 }
463 Py_INCREF(Py_None); resultobj = Py_None;
464 return resultobj;
465 fail:
466 return NULL;
467 }
468
469
470 static PyObject *_wrap_CalendarDateAttr_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
471 PyObject *resultobj;
472 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
473 int arg2 ;
474 PyObject * obj0 = 0 ;
475 char *kwnames[] = {
476 (char *) "self",(char *) "border", NULL
477 };
478
479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CalendarDateAttr_SetBorder",kwnames,&obj0,&arg2)) goto fail;
480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
481 {
482 PyThreadState* __tstate = wxPyBeginAllowThreads();
483 (arg1)->SetBorder((wxCalendarDateBorder )arg2);
484
485 wxPyEndAllowThreads(__tstate);
486 if (PyErr_Occurred()) SWIG_fail;
487 }
488 Py_INCREF(Py_None); resultobj = Py_None;
489 return resultobj;
490 fail:
491 return NULL;
492 }
493
494
495 static PyObject *_wrap_CalendarDateAttr_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
496 PyObject *resultobj;
497 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
498 bool arg2 ;
499 PyObject * obj0 = 0 ;
500 PyObject * obj1 = 0 ;
501 char *kwnames[] = {
502 (char *) "self",(char *) "holiday", NULL
503 };
504
505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetHoliday",kwnames,&obj0,&obj1)) goto fail;
506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
507 arg2 = PyInt_AsLong(obj1) ? true : false;
508 if (PyErr_Occurred()) SWIG_fail;
509 {
510 PyThreadState* __tstate = wxPyBeginAllowThreads();
511 (arg1)->SetHoliday(arg2);
512
513 wxPyEndAllowThreads(__tstate);
514 if (PyErr_Occurred()) SWIG_fail;
515 }
516 Py_INCREF(Py_None); resultobj = Py_None;
517 return resultobj;
518 fail:
519 return NULL;
520 }
521
522
523 static PyObject *_wrap_CalendarDateAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
524 PyObject *resultobj;
525 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
526 bool result;
527 PyObject * obj0 = 0 ;
528 char *kwnames[] = {
529 (char *) "self", NULL
530 };
531
532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasTextColour",kwnames,&obj0)) goto fail;
533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
534 {
535 PyThreadState* __tstate = wxPyBeginAllowThreads();
536 result = (bool)((wxCalendarDateAttr const *)arg1)->HasTextColour();
537
538 wxPyEndAllowThreads(__tstate);
539 if (PyErr_Occurred()) SWIG_fail;
540 }
541 resultobj = PyInt_FromLong((long)result);
542 return resultobj;
543 fail:
544 return NULL;
545 }
546
547
548 static PyObject *_wrap_CalendarDateAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
549 PyObject *resultobj;
550 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
551 bool result;
552 PyObject * obj0 = 0 ;
553 char *kwnames[] = {
554 (char *) "self", NULL
555 };
556
557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
559 {
560 PyThreadState* __tstate = wxPyBeginAllowThreads();
561 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBackgroundColour();
562
563 wxPyEndAllowThreads(__tstate);
564 if (PyErr_Occurred()) SWIG_fail;
565 }
566 resultobj = PyInt_FromLong((long)result);
567 return resultobj;
568 fail:
569 return NULL;
570 }
571
572
573 static PyObject *_wrap_CalendarDateAttr_HasBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
574 PyObject *resultobj;
575 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
576 bool result;
577 PyObject * obj0 = 0 ;
578 char *kwnames[] = {
579 (char *) "self", NULL
580 };
581
582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorderColour",kwnames,&obj0)) goto fail;
583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
584 {
585 PyThreadState* __tstate = wxPyBeginAllowThreads();
586 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorderColour();
587
588 wxPyEndAllowThreads(__tstate);
589 if (PyErr_Occurred()) SWIG_fail;
590 }
591 resultobj = PyInt_FromLong((long)result);
592 return resultobj;
593 fail:
594 return NULL;
595 }
596
597
598 static PyObject *_wrap_CalendarDateAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
599 PyObject *resultobj;
600 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
601 bool result;
602 PyObject * obj0 = 0 ;
603 char *kwnames[] = {
604 (char *) "self", NULL
605 };
606
607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasFont",kwnames,&obj0)) goto fail;
608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
609 {
610 PyThreadState* __tstate = wxPyBeginAllowThreads();
611 result = (bool)((wxCalendarDateAttr const *)arg1)->HasFont();
612
613 wxPyEndAllowThreads(__tstate);
614 if (PyErr_Occurred()) SWIG_fail;
615 }
616 resultobj = PyInt_FromLong((long)result);
617 return resultobj;
618 fail:
619 return NULL;
620 }
621
622
623 static PyObject *_wrap_CalendarDateAttr_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
624 PyObject *resultobj;
625 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
626 bool result;
627 PyObject * obj0 = 0 ;
628 char *kwnames[] = {
629 (char *) "self", NULL
630 };
631
632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorder",kwnames,&obj0)) goto fail;
633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
634 {
635 PyThreadState* __tstate = wxPyBeginAllowThreads();
636 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorder();
637
638 wxPyEndAllowThreads(__tstate);
639 if (PyErr_Occurred()) SWIG_fail;
640 }
641 resultobj = PyInt_FromLong((long)result);
642 return resultobj;
643 fail:
644 return NULL;
645 }
646
647
648 static PyObject *_wrap_CalendarDateAttr_IsHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
649 PyObject *resultobj;
650 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
651 bool result;
652 PyObject * obj0 = 0 ;
653 char *kwnames[] = {
654 (char *) "self", NULL
655 };
656
657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_IsHoliday",kwnames,&obj0)) goto fail;
658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
659 {
660 PyThreadState* __tstate = wxPyBeginAllowThreads();
661 result = (bool)((wxCalendarDateAttr const *)arg1)->IsHoliday();
662
663 wxPyEndAllowThreads(__tstate);
664 if (PyErr_Occurred()) SWIG_fail;
665 }
666 resultobj = PyInt_FromLong((long)result);
667 return resultobj;
668 fail:
669 return NULL;
670 }
671
672
673 static PyObject *_wrap_CalendarDateAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
674 PyObject *resultobj;
675 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
676 wxColour result;
677 PyObject * obj0 = 0 ;
678 char *kwnames[] = {
679 (char *) "self", NULL
680 };
681
682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetTextColour",kwnames,&obj0)) goto fail;
683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
684 {
685 PyThreadState* __tstate = wxPyBeginAllowThreads();
686 result = ((wxCalendarDateAttr const *)arg1)->GetTextColour();
687
688 wxPyEndAllowThreads(__tstate);
689 if (PyErr_Occurred()) SWIG_fail;
690 }
691 {
692 wxColour * resultptr;
693 resultptr = new wxColour((wxColour &) result);
694 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
695 }
696 return resultobj;
697 fail:
698 return NULL;
699 }
700
701
702 static PyObject *_wrap_CalendarDateAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
703 PyObject *resultobj;
704 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
705 wxColour result;
706 PyObject * obj0 = 0 ;
707 char *kwnames[] = {
708 (char *) "self", NULL
709 };
710
711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
713 {
714 PyThreadState* __tstate = wxPyBeginAllowThreads();
715 result = ((wxCalendarDateAttr const *)arg1)->GetBackgroundColour();
716
717 wxPyEndAllowThreads(__tstate);
718 if (PyErr_Occurred()) SWIG_fail;
719 }
720 {
721 wxColour * resultptr;
722 resultptr = new wxColour((wxColour &) result);
723 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
724 }
725 return resultobj;
726 fail:
727 return NULL;
728 }
729
730
731 static PyObject *_wrap_CalendarDateAttr_GetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
732 PyObject *resultobj;
733 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
734 wxColour result;
735 PyObject * obj0 = 0 ;
736 char *kwnames[] = {
737 (char *) "self", NULL
738 };
739
740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorderColour",kwnames,&obj0)) goto fail;
741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
742 {
743 PyThreadState* __tstate = wxPyBeginAllowThreads();
744 result = ((wxCalendarDateAttr const *)arg1)->GetBorderColour();
745
746 wxPyEndAllowThreads(__tstate);
747 if (PyErr_Occurred()) SWIG_fail;
748 }
749 {
750 wxColour * resultptr;
751 resultptr = new wxColour((wxColour &) result);
752 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
753 }
754 return resultobj;
755 fail:
756 return NULL;
757 }
758
759
760 static PyObject *_wrap_CalendarDateAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
761 PyObject *resultobj;
762 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
763 wxFont result;
764 PyObject * obj0 = 0 ;
765 char *kwnames[] = {
766 (char *) "self", NULL
767 };
768
769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetFont",kwnames,&obj0)) goto fail;
770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
771 {
772 PyThreadState* __tstate = wxPyBeginAllowThreads();
773 result = ((wxCalendarDateAttr const *)arg1)->GetFont();
774
775 wxPyEndAllowThreads(__tstate);
776 if (PyErr_Occurred()) SWIG_fail;
777 }
778 {
779 wxFont * resultptr;
780 resultptr = new wxFont((wxFont &) result);
781 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
782 }
783 return resultobj;
784 fail:
785 return NULL;
786 }
787
788
789 static PyObject *_wrap_CalendarDateAttr_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
790 PyObject *resultobj;
791 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
792 int result;
793 PyObject * obj0 = 0 ;
794 char *kwnames[] = {
795 (char *) "self", NULL
796 };
797
798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorder",kwnames,&obj0)) goto fail;
799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
800 {
801 PyThreadState* __tstate = wxPyBeginAllowThreads();
802 result = (int)((wxCalendarDateAttr const *)arg1)->GetBorder();
803
804 wxPyEndAllowThreads(__tstate);
805 if (PyErr_Occurred()) SWIG_fail;
806 }
807 resultobj = PyInt_FromLong((long)result);
808 return resultobj;
809 fail:
810 return NULL;
811 }
812
813
814 static PyObject * CalendarDateAttr_swigregister(PyObject *self, PyObject *args) {
815 PyObject *obj;
816 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
817 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr, obj);
818 Py_INCREF(obj);
819 return Py_BuildValue((char *)"");
820 }
821 static PyObject *_wrap_new_CalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
822 PyObject *resultobj;
823 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
824 wxEventType arg2 ;
825 wxCalendarEvent *result;
826 PyObject * obj0 = 0 ;
827 char *kwnames[] = {
828 (char *) "cal",(char *) "type", NULL
829 };
830
831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:new_CalendarEvent",kwnames,&obj0,&arg2)) goto fail;
832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
833 {
834 PyThreadState* __tstate = wxPyBeginAllowThreads();
835 result = (wxCalendarEvent *)new wxCalendarEvent(arg1,arg2);
836
837 wxPyEndAllowThreads(__tstate);
838 if (PyErr_Occurred()) SWIG_fail;
839 }
840 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarEvent, 1);
841 return resultobj;
842 fail:
843 return NULL;
844 }
845
846
847 static PyObject *_wrap_CalendarEvent_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
848 PyObject *resultobj;
849 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
850 wxDateTime *result;
851 PyObject * obj0 = 0 ;
852 char *kwnames[] = {
853 (char *) "self", NULL
854 };
855
856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetDate",kwnames,&obj0)) goto fail;
857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
858 {
859 PyThreadState* __tstate = wxPyBeginAllowThreads();
860 {
861 wxDateTime const &_result_ref = ((wxCalendarEvent const *)arg1)->GetDate();
862 result = (wxDateTime *) &_result_ref;
863 }
864
865 wxPyEndAllowThreads(__tstate);
866 if (PyErr_Occurred()) SWIG_fail;
867 }
868 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
869 return resultobj;
870 fail:
871 return NULL;
872 }
873
874
875 static PyObject *_wrap_CalendarEvent_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
876 PyObject *resultobj;
877 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
878 int result;
879 PyObject * obj0 = 0 ;
880 char *kwnames[] = {
881 (char *) "self", NULL
882 };
883
884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetWeekDay",kwnames,&obj0)) goto fail;
885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
886 {
887 PyThreadState* __tstate = wxPyBeginAllowThreads();
888 result = (int)((wxCalendarEvent const *)arg1)->GetWeekDay();
889
890 wxPyEndAllowThreads(__tstate);
891 if (PyErr_Occurred()) SWIG_fail;
892 }
893 resultobj = PyInt_FromLong((long)result);
894 return resultobj;
895 fail:
896 return NULL;
897 }
898
899
900 static PyObject * CalendarEvent_swigregister(PyObject *self, PyObject *args) {
901 PyObject *obj;
902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
903 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent, obj);
904 Py_INCREF(obj);
905 return Py_BuildValue((char *)"");
906 }
907 static PyObject *_wrap_new_CalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
908 PyObject *resultobj;
909 wxWindow *arg1 = (wxWindow *) 0 ;
910 int arg2 ;
911 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
912 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
913 wxPoint const &arg4_defvalue = wxDefaultPosition ;
914 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
915 wxSize const &arg5_defvalue = wxDefaultSize ;
916 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
917 long arg6 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
918 wxString const &arg7_defvalue = wxPyCalendarNameStr ;
919 wxString *arg7 = (wxString *) &arg7_defvalue ;
920 wxCalendarCtrl *result;
921 wxPoint temp4 ;
922 wxSize temp5 ;
923 bool temp7 = False ;
924 PyObject * obj0 = 0 ;
925 PyObject * obj2 = 0 ;
926 PyObject * obj3 = 0 ;
927 PyObject * obj4 = 0 ;
928 PyObject * obj6 = 0 ;
929 char *kwnames[] = {
930 (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
931 };
932
933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlO:new_CalendarCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail;
934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
935 if (obj2) {
936 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
937 if (arg3 == NULL) {
938 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
939 }
940 }
941 if (obj3) {
942 {
943 arg4 = &temp4;
944 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
945 }
946 }
947 if (obj4) {
948 {
949 arg5 = &temp5;
950 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
951 }
952 }
953 if (obj6) {
954 {
955 arg7 = wxString_in_helper(obj6);
956 if (arg7 == NULL) SWIG_fail;
957 temp7 = True;
958 }
959 }
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 result = (wxCalendarCtrl *)new wxCalendarCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarCtrl, 1);
968 {
969 if (temp7)
970 delete arg7;
971 }
972 return resultobj;
973 fail:
974 {
975 if (temp7)
976 delete arg7;
977 }
978 return NULL;
979 }
980
981
982 static PyObject *_wrap_new_PreCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject *resultobj;
984 wxCalendarCtrl *result;
985 char *kwnames[] = {
986 NULL
987 };
988
989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCalendarCtrl",kwnames)) goto fail;
990 {
991 PyThreadState* __tstate = wxPyBeginAllowThreads();
992 result = (wxCalendarCtrl *)new wxCalendarCtrl();
993
994 wxPyEndAllowThreads(__tstate);
995 if (PyErr_Occurred()) SWIG_fail;
996 }
997 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarCtrl, 1);
998 return resultobj;
999 fail:
1000 return NULL;
1001 }
1002
1003
1004 static PyObject *_wrap_CalendarCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1005 PyObject *resultobj;
1006 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1007 wxWindow *arg2 = (wxWindow *) 0 ;
1008 int arg3 ;
1009 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
1010 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
1011 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1012 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1013 wxSize const &arg6_defvalue = wxDefaultSize ;
1014 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1015 long arg7 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
1016 wxString const &arg8_defvalue = wxPyCalendarNameStr ;
1017 wxString *arg8 = (wxString *) &arg8_defvalue ;
1018 bool result;
1019 wxPoint temp5 ;
1020 wxSize temp6 ;
1021 bool temp8 = False ;
1022 PyObject * obj0 = 0 ;
1023 PyObject * obj1 = 0 ;
1024 PyObject * obj3 = 0 ;
1025 PyObject * obj4 = 0 ;
1026 PyObject * obj5 = 0 ;
1027 PyObject * obj7 = 0 ;
1028 char *kwnames[] = {
1029 (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
1030 };
1031
1032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlO:CalendarCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail;
1033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1034 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1035 if (obj3) {
1036 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1037 if (arg4 == NULL) {
1038 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1039 }
1040 }
1041 if (obj4) {
1042 {
1043 arg5 = &temp5;
1044 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1045 }
1046 }
1047 if (obj5) {
1048 {
1049 arg6 = &temp6;
1050 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1051 }
1052 }
1053 if (obj7) {
1054 {
1055 arg8 = wxString_in_helper(obj7);
1056 if (arg8 == NULL) SWIG_fail;
1057 temp8 = True;
1058 }
1059 }
1060 {
1061 PyThreadState* __tstate = wxPyBeginAllowThreads();
1062 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
1063
1064 wxPyEndAllowThreads(__tstate);
1065 if (PyErr_Occurred()) SWIG_fail;
1066 }
1067 resultobj = PyInt_FromLong((long)result);
1068 {
1069 if (temp8)
1070 delete arg8;
1071 }
1072 return resultobj;
1073 fail:
1074 {
1075 if (temp8)
1076 delete arg8;
1077 }
1078 return NULL;
1079 }
1080
1081
1082 static PyObject *_wrap_CalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
1083 PyObject *resultobj;
1084 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1085 wxDateTime *arg2 = 0 ;
1086 PyObject * obj0 = 0 ;
1087 PyObject * obj1 = 0 ;
1088 char *kwnames[] = {
1089 (char *) "self",(char *) "date", NULL
1090 };
1091
1092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetDate",kwnames,&obj0,&obj1)) goto fail;
1093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1094 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1095 if (arg2 == NULL) {
1096 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1097 }
1098 {
1099 PyThreadState* __tstate = wxPyBeginAllowThreads();
1100 (arg1)->SetDate((wxDateTime const &)*arg2);
1101
1102 wxPyEndAllowThreads(__tstate);
1103 if (PyErr_Occurred()) SWIG_fail;
1104 }
1105 Py_INCREF(Py_None); resultobj = Py_None;
1106 return resultobj;
1107 fail:
1108 return NULL;
1109 }
1110
1111
1112 static PyObject *_wrap_CalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
1113 PyObject *resultobj;
1114 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1115 wxDateTime *result;
1116 PyObject * obj0 = 0 ;
1117 char *kwnames[] = {
1118 (char *) "self", NULL
1119 };
1120
1121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetDate",kwnames,&obj0)) goto fail;
1122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1123 {
1124 PyThreadState* __tstate = wxPyBeginAllowThreads();
1125 {
1126 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetDate();
1127 result = (wxDateTime *) &_result_ref;
1128 }
1129
1130 wxPyEndAllowThreads(__tstate);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
1133 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
1134 return resultobj;
1135 fail:
1136 return NULL;
1137 }
1138
1139
1140 static PyObject *_wrap_CalendarCtrl_SetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
1141 PyObject *resultobj;
1142 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1143 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1144 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1145 bool result;
1146 PyObject * obj0 = 0 ;
1147 PyObject * obj1 = 0 ;
1148 char *kwnames[] = {
1149 (char *) "self",(char *) "date", NULL
1150 };
1151
1152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames,&obj0,&obj1)) goto fail;
1153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1154 if (obj1) {
1155 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1156 if (arg2 == NULL) {
1157 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1158 }
1159 }
1160 {
1161 PyThreadState* __tstate = wxPyBeginAllowThreads();
1162 result = (bool)(arg1)->SetLowerDateLimit((wxDateTime const &)*arg2);
1163
1164 wxPyEndAllowThreads(__tstate);
1165 if (PyErr_Occurred()) SWIG_fail;
1166 }
1167 resultobj = PyInt_FromLong((long)result);
1168 return resultobj;
1169 fail:
1170 return NULL;
1171 }
1172
1173
1174 static PyObject *_wrap_CalendarCtrl_GetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
1175 PyObject *resultobj;
1176 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1177 wxDateTime *result;
1178 PyObject * obj0 = 0 ;
1179 char *kwnames[] = {
1180 (char *) "self", NULL
1181 };
1182
1183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames,&obj0)) goto fail;
1184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1185 {
1186 PyThreadState* __tstate = wxPyBeginAllowThreads();
1187 {
1188 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetLowerDateLimit();
1189 result = (wxDateTime *) &_result_ref;
1190 }
1191
1192 wxPyEndAllowThreads(__tstate);
1193 if (PyErr_Occurred()) SWIG_fail;
1194 }
1195 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
1196 return resultobj;
1197 fail:
1198 return NULL;
1199 }
1200
1201
1202 static PyObject *_wrap_CalendarCtrl_SetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
1203 PyObject *resultobj;
1204 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1205 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1206 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1207 bool result;
1208 PyObject * obj0 = 0 ;
1209 PyObject * obj1 = 0 ;
1210 char *kwnames[] = {
1211 (char *) "self",(char *) "date", NULL
1212 };
1213
1214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames,&obj0,&obj1)) goto fail;
1215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1216 if (obj1) {
1217 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1218 if (arg2 == NULL) {
1219 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1220 }
1221 }
1222 {
1223 PyThreadState* __tstate = wxPyBeginAllowThreads();
1224 result = (bool)(arg1)->SetUpperDateLimit((wxDateTime const &)*arg2);
1225
1226 wxPyEndAllowThreads(__tstate);
1227 if (PyErr_Occurred()) SWIG_fail;
1228 }
1229 resultobj = PyInt_FromLong((long)result);
1230 return resultobj;
1231 fail:
1232 return NULL;
1233 }
1234
1235
1236 static PyObject *_wrap_CalendarCtrl_GetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
1237 PyObject *resultobj;
1238 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1239 wxDateTime *result;
1240 PyObject * obj0 = 0 ;
1241 char *kwnames[] = {
1242 (char *) "self", NULL
1243 };
1244
1245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames,&obj0)) goto fail;
1246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 {
1250 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetUpperDateLimit();
1251 result = (wxDateTime *) &_result_ref;
1252 }
1253
1254 wxPyEndAllowThreads(__tstate);
1255 if (PyErr_Occurred()) SWIG_fail;
1256 }
1257 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
1258 return resultobj;
1259 fail:
1260 return NULL;
1261 }
1262
1263
1264 static PyObject *_wrap_CalendarCtrl_SetDateRange(PyObject *self, PyObject *args, PyObject *kwargs) {
1265 PyObject *resultobj;
1266 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1267 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1268 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1269 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
1270 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
1271 bool result;
1272 PyObject * obj0 = 0 ;
1273 PyObject * obj1 = 0 ;
1274 PyObject * obj2 = 0 ;
1275 char *kwnames[] = {
1276 (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL
1277 };
1278
1279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
1280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1281 if (obj1) {
1282 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1283 if (arg2 == NULL) {
1284 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1285 }
1286 }
1287 if (obj2) {
1288 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1289 if (arg3 == NULL) {
1290 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1291 }
1292 }
1293 {
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (bool)(arg1)->SetDateRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 resultobj = PyInt_FromLong((long)result);
1301 return resultobj;
1302 fail:
1303 return NULL;
1304 }
1305
1306
1307 static PyObject *_wrap_CalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1308 PyObject *resultobj;
1309 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1310 bool arg2 = (bool) True ;
1311 PyObject * obj0 = 0 ;
1312 PyObject * obj1 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "self",(char *) "enable", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames,&obj0,&obj1)) goto fail;
1318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1319 if (obj1) {
1320 arg2 = PyInt_AsLong(obj1) ? true : false;
1321 if (PyErr_Occurred()) SWIG_fail;
1322 }
1323 {
1324 PyThreadState* __tstate = wxPyBeginAllowThreads();
1325 (arg1)->EnableYearChange(arg2);
1326
1327 wxPyEndAllowThreads(__tstate);
1328 if (PyErr_Occurred()) SWIG_fail;
1329 }
1330 Py_INCREF(Py_None); resultobj = Py_None;
1331 return resultobj;
1332 fail:
1333 return NULL;
1334 }
1335
1336
1337 static PyObject *_wrap_CalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1338 PyObject *resultobj;
1339 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1340 bool arg2 = (bool) True ;
1341 PyObject * obj0 = 0 ;
1342 PyObject * obj1 = 0 ;
1343 char *kwnames[] = {
1344 (char *) "self",(char *) "enable", NULL
1345 };
1346
1347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames,&obj0,&obj1)) goto fail;
1348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1349 if (obj1) {
1350 arg2 = PyInt_AsLong(obj1) ? true : false;
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 {
1354 PyThreadState* __tstate = wxPyBeginAllowThreads();
1355 (arg1)->EnableMonthChange(arg2);
1356
1357 wxPyEndAllowThreads(__tstate);
1358 if (PyErr_Occurred()) SWIG_fail;
1359 }
1360 Py_INCREF(Py_None); resultobj = Py_None;
1361 return resultobj;
1362 fail:
1363 return NULL;
1364 }
1365
1366
1367 static PyObject *_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
1368 PyObject *resultobj;
1369 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1370 bool arg2 = (bool) True ;
1371 PyObject * obj0 = 0 ;
1372 PyObject * obj1 = 0 ;
1373 char *kwnames[] = {
1374 (char *) "self",(char *) "display", NULL
1375 };
1376
1377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames,&obj0,&obj1)) goto fail;
1378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1379 if (obj1) {
1380 arg2 = PyInt_AsLong(obj1) ? true : false;
1381 if (PyErr_Occurred()) SWIG_fail;
1382 }
1383 {
1384 PyThreadState* __tstate = wxPyBeginAllowThreads();
1385 (arg1)->EnableHolidayDisplay(arg2);
1386
1387 wxPyEndAllowThreads(__tstate);
1388 if (PyErr_Occurred()) SWIG_fail;
1389 }
1390 Py_INCREF(Py_None); resultobj = Py_None;
1391 return resultobj;
1392 fail:
1393 return NULL;
1394 }
1395
1396
1397 static PyObject *_wrap_CalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1398 PyObject *resultobj;
1399 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1400 wxColour *arg2 = 0 ;
1401 wxColour *arg3 = 0 ;
1402 wxColour temp2 ;
1403 wxColour temp3 ;
1404 PyObject * obj0 = 0 ;
1405 PyObject * obj1 = 0 ;
1406 PyObject * obj2 = 0 ;
1407 char *kwnames[] = {
1408 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1409 };
1410
1411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1413 {
1414 arg2 = &temp2;
1415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1416 }
1417 {
1418 arg3 = &temp3;
1419 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1420 }
1421 {
1422 PyThreadState* __tstate = wxPyBeginAllowThreads();
1423 (arg1)->SetHeaderColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1424
1425 wxPyEndAllowThreads(__tstate);
1426 if (PyErr_Occurred()) SWIG_fail;
1427 }
1428 Py_INCREF(Py_None); resultobj = Py_None;
1429 return resultobj;
1430 fail:
1431 return NULL;
1432 }
1433
1434
1435 static PyObject *_wrap_CalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1436 PyObject *resultobj;
1437 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1438 wxColour result;
1439 PyObject * obj0 = 0 ;
1440 char *kwnames[] = {
1441 (char *) "self", NULL
1442 };
1443
1444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames,&obj0)) goto fail;
1445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1446 {
1447 PyThreadState* __tstate = wxPyBeginAllowThreads();
1448 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourFg();
1449
1450 wxPyEndAllowThreads(__tstate);
1451 if (PyErr_Occurred()) SWIG_fail;
1452 }
1453 {
1454 wxColour * resultptr;
1455 resultptr = new wxColour((wxColour &) result);
1456 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1457 }
1458 return resultobj;
1459 fail:
1460 return NULL;
1461 }
1462
1463
1464 static PyObject *_wrap_CalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1465 PyObject *resultobj;
1466 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1467 wxColour result;
1468 PyObject * obj0 = 0 ;
1469 char *kwnames[] = {
1470 (char *) "self", NULL
1471 };
1472
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames,&obj0)) goto fail;
1474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourBg();
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 {
1483 wxColour * resultptr;
1484 resultptr = new wxColour((wxColour &) result);
1485 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1486 }
1487 return resultobj;
1488 fail:
1489 return NULL;
1490 }
1491
1492
1493 static PyObject *_wrap_CalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject *resultobj;
1495 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1496 wxColour *arg2 = 0 ;
1497 wxColour *arg3 = 0 ;
1498 wxColour temp2 ;
1499 wxColour temp3 ;
1500 PyObject * obj0 = 0 ;
1501 PyObject * obj1 = 0 ;
1502 PyObject * obj2 = 0 ;
1503 char *kwnames[] = {
1504 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1505 };
1506
1507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1509 {
1510 arg2 = &temp2;
1511 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1512 }
1513 {
1514 arg3 = &temp3;
1515 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1516 }
1517 {
1518 PyThreadState* __tstate = wxPyBeginAllowThreads();
1519 (arg1)->SetHighlightColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1520
1521 wxPyEndAllowThreads(__tstate);
1522 if (PyErr_Occurred()) SWIG_fail;
1523 }
1524 Py_INCREF(Py_None); resultobj = Py_None;
1525 return resultobj;
1526 fail:
1527 return NULL;
1528 }
1529
1530
1531 static PyObject *_wrap_CalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1532 PyObject *resultobj;
1533 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1534 wxColour result;
1535 PyObject * obj0 = 0 ;
1536 char *kwnames[] = {
1537 (char *) "self", NULL
1538 };
1539
1540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames,&obj0)) goto fail;
1541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1542 {
1543 PyThreadState* __tstate = wxPyBeginAllowThreads();
1544 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourFg();
1545
1546 wxPyEndAllowThreads(__tstate);
1547 if (PyErr_Occurred()) SWIG_fail;
1548 }
1549 {
1550 wxColour * resultptr;
1551 resultptr = new wxColour((wxColour &) result);
1552 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1553 }
1554 return resultobj;
1555 fail:
1556 return NULL;
1557 }
1558
1559
1560 static PyObject *_wrap_CalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1561 PyObject *resultobj;
1562 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1563 wxColour result;
1564 PyObject * obj0 = 0 ;
1565 char *kwnames[] = {
1566 (char *) "self", NULL
1567 };
1568
1569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames,&obj0)) goto fail;
1570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1571 {
1572 PyThreadState* __tstate = wxPyBeginAllowThreads();
1573 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourBg();
1574
1575 wxPyEndAllowThreads(__tstate);
1576 if (PyErr_Occurred()) SWIG_fail;
1577 }
1578 {
1579 wxColour * resultptr;
1580 resultptr = new wxColour((wxColour &) result);
1581 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1582 }
1583 return resultobj;
1584 fail:
1585 return NULL;
1586 }
1587
1588
1589 static PyObject *_wrap_CalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1590 PyObject *resultobj;
1591 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1592 wxColour *arg2 = 0 ;
1593 wxColour *arg3 = 0 ;
1594 wxColour temp2 ;
1595 wxColour temp3 ;
1596 PyObject * obj0 = 0 ;
1597 PyObject * obj1 = 0 ;
1598 PyObject * obj2 = 0 ;
1599 char *kwnames[] = {
1600 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1601 };
1602
1603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1605 {
1606 arg2 = &temp2;
1607 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1608 }
1609 {
1610 arg3 = &temp3;
1611 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1612 }
1613 {
1614 PyThreadState* __tstate = wxPyBeginAllowThreads();
1615 (arg1)->SetHolidayColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1616
1617 wxPyEndAllowThreads(__tstate);
1618 if (PyErr_Occurred()) SWIG_fail;
1619 }
1620 Py_INCREF(Py_None); resultobj = Py_None;
1621 return resultobj;
1622 fail:
1623 return NULL;
1624 }
1625
1626
1627 static PyObject *_wrap_CalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1628 PyObject *resultobj;
1629 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1630 wxColour result;
1631 PyObject * obj0 = 0 ;
1632 char *kwnames[] = {
1633 (char *) "self", NULL
1634 };
1635
1636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames,&obj0)) goto fail;
1637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1638 {
1639 PyThreadState* __tstate = wxPyBeginAllowThreads();
1640 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourFg();
1641
1642 wxPyEndAllowThreads(__tstate);
1643 if (PyErr_Occurred()) SWIG_fail;
1644 }
1645 {
1646 wxColour * resultptr;
1647 resultptr = new wxColour((wxColour &) result);
1648 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1649 }
1650 return resultobj;
1651 fail:
1652 return NULL;
1653 }
1654
1655
1656 static PyObject *_wrap_CalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1657 PyObject *resultobj;
1658 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1659 wxColour result;
1660 PyObject * obj0 = 0 ;
1661 char *kwnames[] = {
1662 (char *) "self", NULL
1663 };
1664
1665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames,&obj0)) goto fail;
1666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1667 {
1668 PyThreadState* __tstate = wxPyBeginAllowThreads();
1669 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourBg();
1670
1671 wxPyEndAllowThreads(__tstate);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 }
1674 {
1675 wxColour * resultptr;
1676 resultptr = new wxColour((wxColour &) result);
1677 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1678 }
1679 return resultobj;
1680 fail:
1681 return NULL;
1682 }
1683
1684
1685 static PyObject *_wrap_CalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1686 PyObject *resultobj;
1687 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1688 size_t arg2 ;
1689 wxCalendarDateAttr *result;
1690 PyObject * obj0 = 0 ;
1691 PyObject * obj1 = 0 ;
1692 char *kwnames[] = {
1693 (char *) "self",(char *) "day", NULL
1694 };
1695
1696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_GetAttr",kwnames,&obj0,&obj1)) goto fail;
1697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1698 arg2 = (size_t) PyInt_AsLong(obj1);
1699 if (PyErr_Occurred()) SWIG_fail;
1700 {
1701 PyThreadState* __tstate = wxPyBeginAllowThreads();
1702 result = (wxCalendarDateAttr *)((wxCalendarCtrl const *)arg1)->GetAttr(arg2);
1703
1704 wxPyEndAllowThreads(__tstate);
1705 if (PyErr_Occurred()) SWIG_fail;
1706 }
1707 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 0);
1708 return resultobj;
1709 fail:
1710 return NULL;
1711 }
1712
1713
1714 static PyObject *_wrap_CalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1715 PyObject *resultobj;
1716 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1717 size_t arg2 ;
1718 wxCalendarDateAttr *arg3 = (wxCalendarDateAttr *) 0 ;
1719 PyObject * obj0 = 0 ;
1720 PyObject * obj1 = 0 ;
1721 PyObject * obj2 = 0 ;
1722 char *kwnames[] = {
1723 (char *) "self",(char *) "day",(char *) "attr", NULL
1724 };
1725
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
1727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1728 arg2 = (size_t) PyInt_AsLong(obj1);
1729 if (PyErr_Occurred()) SWIG_fail;
1730 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1731 {
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 (arg1)->SetAttr(arg2,arg3);
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 Py_INCREF(Py_None); resultobj = Py_None;
1739 return resultobj;
1740 fail:
1741 return NULL;
1742 }
1743
1744
1745 static PyObject *_wrap_CalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1748 size_t arg2 ;
1749 PyObject * obj0 = 0 ;
1750 PyObject * obj1 = 0 ;
1751 char *kwnames[] = {
1752 (char *) "self",(char *) "day", NULL
1753 };
1754
1755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetHoliday",kwnames,&obj0,&obj1)) goto fail;
1756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1757 arg2 = (size_t) PyInt_AsLong(obj1);
1758 if (PyErr_Occurred()) SWIG_fail;
1759 {
1760 PyThreadState* __tstate = wxPyBeginAllowThreads();
1761 (arg1)->SetHoliday(arg2);
1762
1763 wxPyEndAllowThreads(__tstate);
1764 if (PyErr_Occurred()) SWIG_fail;
1765 }
1766 Py_INCREF(Py_None); resultobj = Py_None;
1767 return resultobj;
1768 fail:
1769 return NULL;
1770 }
1771
1772
1773 static PyObject *_wrap_CalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1774 PyObject *resultobj;
1775 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1776 size_t arg2 ;
1777 PyObject * obj0 = 0 ;
1778 PyObject * obj1 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self",(char *) "day", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_ResetAttr",kwnames,&obj0,&obj1)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1785 arg2 = (size_t) PyInt_AsLong(obj1);
1786 if (PyErr_Occurred()) SWIG_fail;
1787 {
1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
1789 (arg1)->ResetAttr(arg2);
1790
1791 wxPyEndAllowThreads(__tstate);
1792 if (PyErr_Occurred()) SWIG_fail;
1793 }
1794 Py_INCREF(Py_None); resultobj = Py_None;
1795 return resultobj;
1796 fail:
1797 return NULL;
1798 }
1799
1800
1801 static PyObject *_wrap_CalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
1802 PyObject *resultobj;
1803 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1804 wxPoint *arg2 = 0 ;
1805 wxDateTime *arg3 = (wxDateTime *) NULL ;
1806 wxDateTime::WeekDay *arg4 = (wxDateTime::WeekDay *) NULL ;
1807 int result;
1808 wxPoint temp2 ;
1809 PyObject * obj0 = 0 ;
1810 PyObject * obj1 = 0 ;
1811 PyObject * obj2 = 0 ;
1812 PyObject * obj3 = 0 ;
1813 char *kwnames[] = {
1814 (char *) "self",(char *) "pos",(char *) "date",(char *) "wd", NULL
1815 };
1816
1817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:CalendarCtrl_HitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1819 {
1820 arg2 = &temp2;
1821 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
1822 }
1823 if (obj2) {
1824 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1825 }
1826 if (obj3) {
1827 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime__WeekDay,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1828 }
1829 {
1830 PyThreadState* __tstate = wxPyBeginAllowThreads();
1831 result = (int)(arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
1832
1833 wxPyEndAllowThreads(__tstate);
1834 if (PyErr_Occurred()) SWIG_fail;
1835 }
1836 resultobj = PyInt_FromLong((long)result);
1837 return resultobj;
1838 fail:
1839 return NULL;
1840 }
1841
1842
1843 static PyObject *_wrap_CalendarCtrl_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
1844 PyObject *resultobj;
1845 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1846 bool arg2 = (bool) True ;
1847 bool result;
1848 PyObject * obj0 = 0 ;
1849 PyObject * obj1 = 0 ;
1850 char *kwnames[] = {
1851 (char *) "self",(char *) "enable", NULL
1852 };
1853
1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_Enable",kwnames,&obj0,&obj1)) goto fail;
1855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1856 if (obj1) {
1857 arg2 = PyInt_AsLong(obj1) ? true : false;
1858 if (PyErr_Occurred()) SWIG_fail;
1859 }
1860 {
1861 PyThreadState* __tstate = wxPyBeginAllowThreads();
1862 result = (bool)(arg1)->Enable(arg2);
1863
1864 wxPyEndAllowThreads(__tstate);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 }
1867 resultobj = PyInt_FromLong((long)result);
1868 return resultobj;
1869 fail:
1870 return NULL;
1871 }
1872
1873
1874 static PyObject *_wrap_CalendarCtrl_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
1875 PyObject *resultobj;
1876 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1877 bool arg2 = (bool) True ;
1878 bool result;
1879 PyObject * obj0 = 0 ;
1880 PyObject * obj1 = 0 ;
1881 char *kwnames[] = {
1882 (char *) "self",(char *) "show", NULL
1883 };
1884
1885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_Show",kwnames,&obj0,&obj1)) goto fail;
1886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1887 if (obj1) {
1888 arg2 = PyInt_AsLong(obj1) ? true : false;
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 result = (bool)(arg1)->Show(arg2);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 resultobj = PyInt_FromLong((long)result);
1899 return resultobj;
1900 fail:
1901 return NULL;
1902 }
1903
1904
1905 static PyObject * CalendarCtrl_swigregister(PyObject *self, PyObject *args) {
1906 PyObject *obj;
1907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1908 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl, obj);
1909 Py_INCREF(obj);
1910 return Py_BuildValue((char *)"");
1911 }
1912 static PyMethodDef SwigMethods[] = {
1913 { (char *)"new_CalendarDateAttr", (PyCFunction) _wrap_new_CalendarDateAttr, METH_VARARGS | METH_KEYWORDS },
1914 { (char *)"new_CalendarDateAttrBorder", (PyCFunction) _wrap_new_CalendarDateAttrBorder, METH_VARARGS | METH_KEYWORDS },
1915 { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction) _wrap_CalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
1916 { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1917 { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS },
1918 { (char *)"CalendarDateAttr_SetFont", (PyCFunction) _wrap_CalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
1919 { (char *)"CalendarDateAttr_SetBorder", (PyCFunction) _wrap_CalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS },
1920 { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction) _wrap_CalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS },
1921 { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction) _wrap_CalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
1922 { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1923 { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_CalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS },
1924 { (char *)"CalendarDateAttr_HasFont", (PyCFunction) _wrap_CalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
1925 { (char *)"CalendarDateAttr_HasBorder", (PyCFunction) _wrap_CalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS },
1926 { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction) _wrap_CalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS },
1927 { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction) _wrap_CalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
1928 { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1929 { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS },
1930 { (char *)"CalendarDateAttr_GetFont", (PyCFunction) _wrap_CalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
1931 { (char *)"CalendarDateAttr_GetBorder", (PyCFunction) _wrap_CalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS },
1932 { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister, METH_VARARGS },
1933 { (char *)"new_CalendarEvent", (PyCFunction) _wrap_new_CalendarEvent, METH_VARARGS | METH_KEYWORDS },
1934 { (char *)"CalendarEvent_GetDate", (PyCFunction) _wrap_CalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS },
1935 { (char *)"CalendarEvent_GetWeekDay", (PyCFunction) _wrap_CalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
1936 { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister, METH_VARARGS },
1937 { (char *)"new_CalendarCtrl", (PyCFunction) _wrap_new_CalendarCtrl, METH_VARARGS | METH_KEYWORDS },
1938 { (char *)"new_PreCalendarCtrl", (PyCFunction) _wrap_new_PreCalendarCtrl, METH_VARARGS | METH_KEYWORDS },
1939 { (char *)"CalendarCtrl_Create", (PyCFunction) _wrap_CalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS },
1940 { (char *)"CalendarCtrl_SetDate", (PyCFunction) _wrap_CalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS },
1941 { (char *)"CalendarCtrl_GetDate", (PyCFunction) _wrap_CalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS },
1942 { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS },
1943 { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS },
1944 { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS },
1945 { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS },
1946 { (char *)"CalendarCtrl_SetDateRange", (PyCFunction) _wrap_CalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS },
1947 { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction) _wrap_CalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS },
1948 { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_CalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS },
1949 { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_CalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS },
1950 { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_CalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS },
1951 { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS },
1952 { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS },
1953 { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_CalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS },
1954 { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS },
1955 { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS },
1956 { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_CalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS },
1957 { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS },
1958 { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS },
1959 { (char *)"CalendarCtrl_GetAttr", (PyCFunction) _wrap_CalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS },
1960 { (char *)"CalendarCtrl_SetAttr", (PyCFunction) _wrap_CalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS },
1961 { (char *)"CalendarCtrl_SetHoliday", (PyCFunction) _wrap_CalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS },
1962 { (char *)"CalendarCtrl_ResetAttr", (PyCFunction) _wrap_CalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS },
1963 { (char *)"CalendarCtrl_HitTest", (PyCFunction) _wrap_CalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
1964 { (char *)"CalendarCtrl_Enable", (PyCFunction) _wrap_CalendarCtrl_Enable, METH_VARARGS | METH_KEYWORDS },
1965 { (char *)"CalendarCtrl_Show", (PyCFunction) _wrap_CalendarCtrl_Show, METH_VARARGS | METH_KEYWORDS },
1966 { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister, METH_VARARGS },
1967 { NULL, NULL }
1968 };
1969
1970
1971 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1972
1973 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1974 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1975 }
1976 static void *_p_wxCalendarCtrlTo_p_wxObject(void *x) {
1977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
1978 }
1979 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1980 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1981 }
1982 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1983 return (void *)((wxObject *) ((wxSizerItem *) x));
1984 }
1985 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1986 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1987 }
1988 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1989 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1990 }
1991 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1992 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1993 }
1994 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1995 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1996 }
1997 static void *_p_wxSizerTo_p_wxObject(void *x) {
1998 return (void *)((wxObject *) ((wxSizer *) x));
1999 }
2000 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2001 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2002 }
2003 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
2004 return (void *)((wxObject *) ((wxFileHistory *) x));
2005 }
2006 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2007 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2008 }
2009 static void *_p_wxEventTo_p_wxObject(void *x) {
2010 return (void *)((wxObject *) ((wxEvent *) x));
2011 }
2012 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2013 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2014 }
2015 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2016 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2017 }
2018 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2019 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2020 }
2021 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2022 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2023 }
2024 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2025 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2026 }
2027 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2028 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2029 }
2030 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2031 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2032 }
2033 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2034 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2035 }
2036 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2037 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2038 }
2039 static void *_p_wxControlTo_p_wxObject(void *x) {
2040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2041 }
2042 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2043 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2044 }
2045 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
2046 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
2047 }
2048 static void *_p_wxCalendarEventTo_p_wxObject(void *x) {
2049 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCalendarEvent *) x));
2050 }
2051 static void *_p_wxFSFileTo_p_wxObject(void *x) {
2052 return (void *)((wxObject *) ((wxFSFile *) x));
2053 }
2054 static void *_p_wxClipboardTo_p_wxObject(void *x) {
2055 return (void *)((wxObject *) ((wxClipboard *) x));
2056 }
2057 static void *_p_wxPySizerTo_p_wxObject(void *x) {
2058 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2059 }
2060 static void *_p_wxPyEventTo_p_wxObject(void *x) {
2061 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2062 }
2063 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2064 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2065 }
2066 static void *_p_wxShowEventTo_p_wxObject(void *x) {
2067 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2068 }
2069 static void *_p_wxToolTipTo_p_wxObject(void *x) {
2070 return (void *)((wxObject *) ((wxToolTip *) x));
2071 }
2072 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2073 return (void *)((wxObject *) ((wxMenuItem *) x));
2074 }
2075 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2076 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2077 }
2078 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2079 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2080 }
2081 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2082 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2083 }
2084 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2085 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2086 }
2087 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2088 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2089 }
2090 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2091 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2092 }
2093 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2094 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2095 }
2096 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2097 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2098 }
2099 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2100 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2101 }
2102 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2103 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2104 }
2105 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2106 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2107 }
2108 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2109 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2110 }
2111 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2112 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2113 }
2114 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2115 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2116 }
2117 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2118 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2119 }
2120 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2121 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2122 }
2123 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2124 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2125 }
2126 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2127 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2128 }
2129 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2130 return (void *)((wxObject *) ((wxImageHandler *) x));
2131 }
2132 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2133 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2134 }
2135 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2136 return (void *)((wxObject *) ((wxEvtHandler *) x));
2137 }
2138 static void *_p_wxImageTo_p_wxObject(void *x) {
2139 return (void *)((wxObject *) ((wxImage *) x));
2140 }
2141 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2142 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2143 }
2144 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
2145 return (void *)((wxObject *) ((wxSystemOptions *) x));
2146 }
2147 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
2148 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
2149 }
2150 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2151 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2152 }
2153 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2154 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2155 }
2156 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2157 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2158 }
2159 static void *_p_wxWindowTo_p_wxObject(void *x) {
2160 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2161 }
2162 static void *_p_wxMenuTo_p_wxObject(void *x) {
2163 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2164 }
2165 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2166 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2167 }
2168 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
2169 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
2170 }
2171 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2172 return (void *)((wxObject *) ((wxFileSystem *) x));
2173 }
2174 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2175 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2176 }
2177 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2178 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2179 }
2180 static void *_p_wxPyAppTo_p_wxObject(void *x) {
2181 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2182 }
2183 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2184 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2185 }
2186 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2187 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2188 }
2189 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2190 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2191 }
2192 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
2193 return (void *)((wxObject *) ((wxBusyInfo *) x));
2194 }
2195 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2196 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2197 }
2198 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2199 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2200 }
2201 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2202 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2203 }
2204 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2205 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2206 }
2207 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2208 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2209 }
2210 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
2211 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
2212 }
2213 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2214 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2215 }
2216 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2217 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2218 }
2219 static void *_p_wxValidatorTo_p_wxObject(void *x) {
2220 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2221 }
2222 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
2223 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
2224 }
2225 static void *_p_wxControlTo_p_wxWindow(void *x) {
2226 return (void *)((wxWindow *) ((wxControl *) x));
2227 }
2228 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2229 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2230 }
2231 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2232 return (void *)((wxWindow *) ((wxMenuBar *) x));
2233 }
2234 static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x) {
2235 return (void *)((wxWindow *) (wxControl *) ((wxCalendarCtrl *) x));
2236 }
2237 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2238 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2239 }
2240 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2241 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2242 }
2243 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2244 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2245 }
2246 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2247 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2248 }
2249 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2250 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2251 }
2252 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2253 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2254 }
2255 static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x) {
2256 return (void *)((wxCommandEvent *) ((wxCalendarEvent *) x));
2257 }
2258 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2259 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2260 }
2261 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2262 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2263 }
2264 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2265 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2266 }
2267 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2268 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2269 }
2270 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2271 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2272 }
2273 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2274 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2275 }
2276 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
2277 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
2278 }
2279 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2280 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2281 }
2282 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2283 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2284 }
2285 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2286 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2287 }
2288 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2289 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2290 }
2291 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
2292 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
2293 }
2294 static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x) {
2295 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
2296 }
2297 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
2298 return (void *)((wxControl *) ((wxControlWithItems *) x));
2299 }
2300 static void *_p_wxCalendarCtrlTo_p_wxControl(void *x) {
2301 return (void *)((wxControl *) ((wxCalendarCtrl *) x));
2302 }
2303 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
2304 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
2305 }
2306 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
2307 return (void *)((wxEvent *) ((wxMenuEvent *) x));
2308 }
2309 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
2310 return (void *)((wxEvent *) ((wxCloseEvent *) x));
2311 }
2312 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
2313 return (void *)((wxEvent *) ((wxMouseEvent *) x));
2314 }
2315 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
2316 return (void *)((wxEvent *) ((wxEraseEvent *) x));
2317 }
2318 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
2319 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
2320 }
2321 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
2322 return (void *)((wxEvent *) ((wxTimerEvent *) x));
2323 }
2324 static void *_p_wxCalendarEventTo_p_wxEvent(void *x) {
2325 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCalendarEvent *) x));
2326 }
2327 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
2328 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
2329 }
2330 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
2331 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
2332 }
2333 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
2334 return (void *)((wxEvent *) ((wxPyEvent *) x));
2335 }
2336 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
2337 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
2338 }
2339 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
2340 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
2341 }
2342 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
2343 return (void *)((wxEvent *) ((wxIdleEvent *) x));
2344 }
2345 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
2346 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
2347 }
2348 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
2349 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
2350 }
2351 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
2352 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
2353 }
2354 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
2355 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
2356 }
2357 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
2358 return (void *)((wxEvent *) ((wxActivateEvent *) x));
2359 }
2360 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
2361 return (void *)((wxEvent *) ((wxSizeEvent *) x));
2362 }
2363 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
2364 return (void *)((wxEvent *) ((wxMoveEvent *) x));
2365 }
2366 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
2367 return (void *)((wxEvent *) ((wxPaintEvent *) x));
2368 }
2369 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
2370 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
2371 }
2372 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
2373 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
2374 }
2375 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
2376 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
2377 }
2378 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
2379 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
2380 }
2381 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
2382 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2383 }
2384 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
2385 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
2386 }
2387 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
2388 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
2389 }
2390 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
2391 return (void *)((wxEvent *) ((wxFocusEvent *) x));
2392 }
2393 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
2394 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
2395 }
2396 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
2397 return (void *)((wxEvent *) ((wxProcessEvent *) x));
2398 }
2399 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
2400 return (void *)((wxEvent *) ((wxShowEvent *) x));
2401 }
2402 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
2403 return (void *)((wxEvent *) ((wxCommandEvent *) x));
2404 }
2405 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
2406 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
2407 }
2408 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
2409 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2410 }
2411 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
2412 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
2413 }
2414 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
2415 return (void *)((wxEvent *) ((wxKeyEvent *) x));
2416 }
2417 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
2418 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
2419 }
2420 static swig_type_info _swigt__p_wxDateTime__WeekDay[] = {{"_p_wxDateTime__WeekDay", 0, "wxDateTime::WeekDay *", 0},{"_p_wxDateTime__WeekDay"},{0}};
2421 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
2422 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject},{0}};
2423 static swig_type_info _swigt__p_wxCalendarEvent[] = {{"_p_wxCalendarEvent", 0, "wxCalendarEvent *", 0},{"_p_wxCalendarEvent"},{0}};
2424 static swig_type_info _swigt__p_wxCalendarDateAttr[] = {{"_p_wxCalendarDateAttr", 0, "wxCalendarDateAttr *", 0},{"_p_wxCalendarDateAttr"},{0}};
2425 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxWindow},{0}};
2426 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}};
2427 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
2428 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxEvtHandler},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler},{0}};
2429 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
2430 static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}};
2431 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxControl},{0}};
2432 static swig_type_info _swigt__p_wxCalendarCtrl[] = {{"_p_wxCalendarCtrl", 0, "wxCalendarCtrl *", 0},{"_p_wxCalendarCtrl"},{0}};
2433 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}};
2434
2435 static swig_type_info *swig_types_initial[] = {
2436 _swigt__p_wxDateTime__WeekDay,
2437 _swigt__p_wxColour,
2438 _swigt__p_wxObject,
2439 _swigt__p_wxCalendarEvent,
2440 _swigt__p_wxCalendarDateAttr,
2441 _swigt__p_wxWindow,
2442 _swigt__p_wxCommandEvent,
2443 _swigt__p_wxString,
2444 _swigt__p_wxEvtHandler,
2445 _swigt__p_wxFont,
2446 _swigt__p_wxDateTime,
2447 _swigt__p_wxControl,
2448 _swigt__p_wxCalendarCtrl,
2449 _swigt__p_wxEvent,
2450 0
2451 };
2452
2453
2454 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2455
2456 static swig_const_info swig_const_table[] = {
2457 { SWIG_PY_INT, (char *)"CAL_SUNDAY_FIRST", (long) wxCAL_SUNDAY_FIRST, 0, 0, 0},
2458 { SWIG_PY_INT, (char *)"CAL_MONDAY_FIRST", (long) wxCAL_MONDAY_FIRST, 0, 0, 0},
2459 { SWIG_PY_INT, (char *)"CAL_SHOW_HOLIDAYS", (long) wxCAL_SHOW_HOLIDAYS, 0, 0, 0},
2460 { SWIG_PY_INT, (char *)"CAL_NO_YEAR_CHANGE", (long) wxCAL_NO_YEAR_CHANGE, 0, 0, 0},
2461 { SWIG_PY_INT, (char *)"CAL_NO_MONTH_CHANGE", (long) wxCAL_NO_MONTH_CHANGE, 0, 0, 0},
2462 { SWIG_PY_INT, (char *)"CAL_SEQUENTIAL_MONTH_SELECTION", (long) wxCAL_SEQUENTIAL_MONTH_SELECTION, 0, 0, 0},
2463 { SWIG_PY_INT, (char *)"CAL_SHOW_SURROUNDING_WEEKS", (long) wxCAL_SHOW_SURROUNDING_WEEKS, 0, 0, 0},
2464 { SWIG_PY_INT, (char *)"CAL_HITTEST_NOWHERE", (long) wxCAL_HITTEST_NOWHERE, 0, 0, 0},
2465 { SWIG_PY_INT, (char *)"CAL_HITTEST_HEADER", (long) wxCAL_HITTEST_HEADER, 0, 0, 0},
2466 { SWIG_PY_INT, (char *)"CAL_HITTEST_DAY", (long) wxCAL_HITTEST_DAY, 0, 0, 0},
2467 { SWIG_PY_INT, (char *)"CAL_HITTEST_INCMONTH", (long) wxCAL_HITTEST_INCMONTH, 0, 0, 0},
2468 { SWIG_PY_INT, (char *)"CAL_HITTEST_DECMONTH", (long) wxCAL_HITTEST_DECMONTH, 0, 0, 0},
2469 { SWIG_PY_INT, (char *)"CAL_HITTEST_SURROUNDING_WEEK", (long) wxCAL_HITTEST_SURROUNDING_WEEK, 0, 0, 0},
2470 { SWIG_PY_INT, (char *)"CAL_BORDER_NONE", (long) wxCAL_BORDER_NONE, 0, 0, 0},
2471 { SWIG_PY_INT, (char *)"CAL_BORDER_SQUARE", (long) wxCAL_BORDER_SQUARE, 0, 0, 0},
2472 { SWIG_PY_INT, (char *)"CAL_BORDER_ROUND", (long) wxCAL_BORDER_ROUND, 0, 0, 0},
2473 { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_DOUBLECLICKED", (long) wxEVT_CALENDAR_DOUBLECLICKED, 0, 0, 0},
2474 { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_SEL_CHANGED", (long) wxEVT_CALENDAR_SEL_CHANGED, 0, 0, 0},
2475 { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_DAY_CHANGED", (long) wxEVT_CALENDAR_DAY_CHANGED, 0, 0, 0},
2476 { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_MONTH_CHANGED", (long) wxEVT_CALENDAR_MONTH_CHANGED, 0, 0, 0},
2477 { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_YEAR_CHANGED", (long) wxEVT_CALENDAR_YEAR_CHANGED, 0, 0, 0},
2478 { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_WEEKDAY_CLICKED", (long) wxEVT_CALENDAR_WEEKDAY_CLICKED, 0, 0, 0},
2479 {0}};
2480
2481 #ifdef __cplusplus
2482 }
2483 #endif
2484
2485 #ifdef __cplusplus
2486 extern "C"
2487 #endif
2488 SWIGEXPORT(void) SWIG_init(void) {
2489 static PyObject *SWIG_globals = 0;
2490 static int typeinit = 0;
2491 PyObject *m, *d;
2492 int i;
2493 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
2494 m = Py_InitModule((char *) SWIG_name, SwigMethods);
2495 d = PyModule_GetDict(m);
2496
2497 if (!typeinit) {
2498 for (i = 0; swig_types_initial[i]; i++) {
2499 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
2500 }
2501 typeinit = 1;
2502 }
2503 SWIG_InstallConstants(d,swig_const_table);
2504
2505 PyDict_SetItemString(d, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED));
2506 PyDict_SetItemString(d, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED));
2507 PyDict_SetItemString(d, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED));
2508 PyDict_SetItemString(d, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED));
2509 PyDict_SetItemString(d, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED));
2510 PyDict_SetItemString(d, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED));
2511
2512
2513 }
2514