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