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