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