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