]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/calendar_wrap.cpp
final tweaks for embedded
[wxWidgets.git] / wxPython / src / mac / calendar_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *, 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 *) {
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 *, PyObject *args, PyObject *kwargs) {
1183 PyObject *resultobj;
1184 wxWindow *arg1 = (wxWindow *) 0 ;
1185 int arg2 ;
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 *)"OO|OOOOO: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 arg2 = (int) SWIG_AsInt(obj1);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 if (obj2) {
1216 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
1217 SWIG_POINTER_EXCEPTION | 0)) == -1)
1218 SWIG_fail;
1219 if (arg3 == NULL) {
1220 PyErr_SetString(PyExc_TypeError,"null reference");
1221 SWIG_fail;
1222 }
1223 }
1224 if (obj3) {
1225 {
1226 arg4 = &temp4;
1227 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1228 }
1229 }
1230 if (obj4) {
1231 {
1232 arg5 = &temp5;
1233 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1234 }
1235 }
1236 if (obj5) {
1237 arg6 = (long) SWIG_AsLong(obj5);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 }
1240 if (obj6) {
1241 {
1242 arg7 = wxString_in_helper(obj6);
1243 if (arg7 == NULL) SWIG_fail;
1244 temp7 = True;
1245 }
1246 }
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 result = (wxCalendarCtrl *)new wxCalendarCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
1250
1251 wxPyEndAllowThreads(__tstate);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 }
1254 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1);
1255 {
1256 if (temp7)
1257 delete arg7;
1258 }
1259 return resultobj;
1260 fail:
1261 {
1262 if (temp7)
1263 delete arg7;
1264 }
1265 return NULL;
1266 }
1267
1268
1269 static PyObject *_wrap_new_PreCalendarCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
1270 PyObject *resultobj;
1271 wxCalendarCtrl *result;
1272 char *kwnames[] = {
1273 NULL
1274 };
1275
1276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCalendarCtrl",kwnames)) goto fail;
1277 {
1278 PyThreadState* __tstate = wxPyBeginAllowThreads();
1279 result = (wxCalendarCtrl *)new wxCalendarCtrl();
1280
1281 wxPyEndAllowThreads(__tstate);
1282 if (PyErr_Occurred()) SWIG_fail;
1283 }
1284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1);
1285 return resultobj;
1286 fail:
1287 return NULL;
1288 }
1289
1290
1291 static PyObject *_wrap_CalendarCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1292 PyObject *resultobj;
1293 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1294 wxWindow *arg2 = (wxWindow *) 0 ;
1295 int arg3 ;
1296 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
1297 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
1298 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1299 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1300 wxSize const &arg6_defvalue = wxDefaultSize ;
1301 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1302 long arg7 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
1303 wxString const &arg8_defvalue = wxPyCalendarNameStr ;
1304 wxString *arg8 = (wxString *) &arg8_defvalue ;
1305 bool result;
1306 wxPoint temp5 ;
1307 wxSize temp6 ;
1308 bool temp8 = False ;
1309 PyObject * obj0 = 0 ;
1310 PyObject * obj1 = 0 ;
1311 PyObject * obj2 = 0 ;
1312 PyObject * obj3 = 0 ;
1313 PyObject * obj4 = 0 ;
1314 PyObject * obj5 = 0 ;
1315 PyObject * obj6 = 0 ;
1316 PyObject * obj7 = 0 ;
1317 char *kwnames[] = {
1318 (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
1319 };
1320
1321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:CalendarCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1326 arg3 = (int) SWIG_AsInt(obj2);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 if (obj3) {
1329 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
1330 SWIG_POINTER_EXCEPTION | 0)) == -1)
1331 SWIG_fail;
1332 if (arg4 == NULL) {
1333 PyErr_SetString(PyExc_TypeError,"null reference");
1334 SWIG_fail;
1335 }
1336 }
1337 if (obj4) {
1338 {
1339 arg5 = &temp5;
1340 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1341 }
1342 }
1343 if (obj5) {
1344 {
1345 arg6 = &temp6;
1346 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1347 }
1348 }
1349 if (obj6) {
1350 arg7 = (long) SWIG_AsLong(obj6);
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 if (obj7) {
1354 {
1355 arg8 = wxString_in_helper(obj7);
1356 if (arg8 == NULL) SWIG_fail;
1357 temp8 = True;
1358 }
1359 }
1360 {
1361 PyThreadState* __tstate = wxPyBeginAllowThreads();
1362 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
1363
1364 wxPyEndAllowThreads(__tstate);
1365 if (PyErr_Occurred()) SWIG_fail;
1366 }
1367 {
1368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1369 }
1370 {
1371 if (temp8)
1372 delete arg8;
1373 }
1374 return resultobj;
1375 fail:
1376 {
1377 if (temp8)
1378 delete arg8;
1379 }
1380 return NULL;
1381 }
1382
1383
1384 static PyObject *_wrap_CalendarCtrl_SetDate(PyObject *, PyObject *args, PyObject *kwargs) {
1385 PyObject *resultobj;
1386 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1387 wxDateTime *arg2 = 0 ;
1388 PyObject * obj0 = 0 ;
1389 PyObject * obj1 = 0 ;
1390 char *kwnames[] = {
1391 (char *) "self",(char *) "date", NULL
1392 };
1393
1394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetDate",kwnames,&obj0,&obj1)) goto fail;
1395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1397 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
1398 SWIG_POINTER_EXCEPTION | 0)) == -1)
1399 SWIG_fail;
1400 if (arg2 == NULL) {
1401 PyErr_SetString(PyExc_TypeError,"null reference");
1402 SWIG_fail;
1403 }
1404 {
1405 PyThreadState* __tstate = wxPyBeginAllowThreads();
1406 (arg1)->SetDate((wxDateTime const &)*arg2);
1407
1408 wxPyEndAllowThreads(__tstate);
1409 if (PyErr_Occurred()) SWIG_fail;
1410 }
1411 Py_INCREF(Py_None); resultobj = Py_None;
1412 return resultobj;
1413 fail:
1414 return NULL;
1415 }
1416
1417
1418 static PyObject *_wrap_CalendarCtrl_GetDate(PyObject *, PyObject *args, PyObject *kwargs) {
1419 PyObject *resultobj;
1420 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1421 wxDateTime *result;
1422 PyObject * obj0 = 0 ;
1423 char *kwnames[] = {
1424 (char *) "self", NULL
1425 };
1426
1427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetDate",kwnames,&obj0)) goto fail;
1428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1430 {
1431 PyThreadState* __tstate = wxPyBeginAllowThreads();
1432 {
1433 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetDate();
1434 result = (wxDateTime *) &_result_ref;
1435 }
1436
1437 wxPyEndAllowThreads(__tstate);
1438 if (PyErr_Occurred()) SWIG_fail;
1439 }
1440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
1441 return resultobj;
1442 fail:
1443 return NULL;
1444 }
1445
1446
1447 static PyObject *_wrap_CalendarCtrl_SetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
1448 PyObject *resultobj;
1449 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1450 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1451 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1452 bool result;
1453 PyObject * obj0 = 0 ;
1454 PyObject * obj1 = 0 ;
1455 char *kwnames[] = {
1456 (char *) "self",(char *) "date", NULL
1457 };
1458
1459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames,&obj0,&obj1)) goto fail;
1460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1462 if (obj1) {
1463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
1464 SWIG_POINTER_EXCEPTION | 0)) == -1)
1465 SWIG_fail;
1466 if (arg2 == NULL) {
1467 PyErr_SetString(PyExc_TypeError,"null reference");
1468 SWIG_fail;
1469 }
1470 }
1471 {
1472 PyThreadState* __tstate = wxPyBeginAllowThreads();
1473 result = (bool)(arg1)->SetLowerDateLimit((wxDateTime const &)*arg2);
1474
1475 wxPyEndAllowThreads(__tstate);
1476 if (PyErr_Occurred()) SWIG_fail;
1477 }
1478 {
1479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1480 }
1481 return resultobj;
1482 fail:
1483 return NULL;
1484 }
1485
1486
1487 static PyObject *_wrap_CalendarCtrl_SetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
1488 PyObject *resultobj;
1489 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1490 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1491 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1492 bool result;
1493 PyObject * obj0 = 0 ;
1494 PyObject * obj1 = 0 ;
1495 char *kwnames[] = {
1496 (char *) "self",(char *) "date", NULL
1497 };
1498
1499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames,&obj0,&obj1)) goto fail;
1500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1502 if (obj1) {
1503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
1504 SWIG_POINTER_EXCEPTION | 0)) == -1)
1505 SWIG_fail;
1506 if (arg2 == NULL) {
1507 PyErr_SetString(PyExc_TypeError,"null reference");
1508 SWIG_fail;
1509 }
1510 }
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 result = (bool)(arg1)->SetUpperDateLimit((wxDateTime const &)*arg2);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 }
1518 {
1519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1520 }
1521 return resultobj;
1522 fail:
1523 return NULL;
1524 }
1525
1526
1527 static PyObject *_wrap_CalendarCtrl_GetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
1528 PyObject *resultobj;
1529 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1530 wxDateTime *result;
1531 PyObject * obj0 = 0 ;
1532 char *kwnames[] = {
1533 (char *) "self", NULL
1534 };
1535
1536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames,&obj0)) goto fail;
1537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1539 {
1540 PyThreadState* __tstate = wxPyBeginAllowThreads();
1541 {
1542 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetLowerDateLimit();
1543 result = (wxDateTime *) &_result_ref;
1544 }
1545
1546 wxPyEndAllowThreads(__tstate);
1547 if (PyErr_Occurred()) SWIG_fail;
1548 }
1549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
1550 return resultobj;
1551 fail:
1552 return NULL;
1553 }
1554
1555
1556 static PyObject *_wrap_CalendarCtrl_GetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
1557 PyObject *resultobj;
1558 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1559 wxDateTime *result;
1560 PyObject * obj0 = 0 ;
1561 char *kwnames[] = {
1562 (char *) "self", NULL
1563 };
1564
1565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames,&obj0)) goto fail;
1566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 {
1571 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetUpperDateLimit();
1572 result = (wxDateTime *) &_result_ref;
1573 }
1574
1575 wxPyEndAllowThreads(__tstate);
1576 if (PyErr_Occurred()) SWIG_fail;
1577 }
1578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
1579 return resultobj;
1580 fail:
1581 return NULL;
1582 }
1583
1584
1585 static PyObject *_wrap_CalendarCtrl_SetDateRange(PyObject *, PyObject *args, PyObject *kwargs) {
1586 PyObject *resultobj;
1587 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1588 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1589 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1590 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
1591 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
1592 bool result;
1593 PyObject * obj0 = 0 ;
1594 PyObject * obj1 = 0 ;
1595 PyObject * obj2 = 0 ;
1596 char *kwnames[] = {
1597 (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL
1598 };
1599
1600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
1601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1603 if (obj1) {
1604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
1605 SWIG_POINTER_EXCEPTION | 0)) == -1)
1606 SWIG_fail;
1607 if (arg2 == NULL) {
1608 PyErr_SetString(PyExc_TypeError,"null reference");
1609 SWIG_fail;
1610 }
1611 }
1612 if (obj2) {
1613 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
1614 SWIG_POINTER_EXCEPTION | 0)) == -1)
1615 SWIG_fail;
1616 if (arg3 == NULL) {
1617 PyErr_SetString(PyExc_TypeError,"null reference");
1618 SWIG_fail;
1619 }
1620 }
1621 {
1622 PyThreadState* __tstate = wxPyBeginAllowThreads();
1623 result = (bool)(arg1)->SetDateRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
1624
1625 wxPyEndAllowThreads(__tstate);
1626 if (PyErr_Occurred()) SWIG_fail;
1627 }
1628 {
1629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1630 }
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject *_wrap_CalendarCtrl_EnableYearChange(PyObject *, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1640 bool arg2 = (bool) True ;
1641 PyObject * obj0 = 0 ;
1642 PyObject * obj1 = 0 ;
1643 char *kwnames[] = {
1644 (char *) "self",(char *) "enable", NULL
1645 };
1646
1647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames,&obj0,&obj1)) goto fail;
1648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1650 if (obj1) {
1651 arg2 = (bool) SWIG_AsBool(obj1);
1652 if (PyErr_Occurred()) SWIG_fail;
1653 }
1654 {
1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1656 (arg1)->EnableYearChange(arg2);
1657
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) SWIG_fail;
1660 }
1661 Py_INCREF(Py_None); resultobj = Py_None;
1662 return resultobj;
1663 fail:
1664 return NULL;
1665 }
1666
1667
1668 static PyObject *_wrap_CalendarCtrl_EnableMonthChange(PyObject *, PyObject *args, PyObject *kwargs) {
1669 PyObject *resultobj;
1670 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1671 bool arg2 = (bool) True ;
1672 PyObject * obj0 = 0 ;
1673 PyObject * obj1 = 0 ;
1674 char *kwnames[] = {
1675 (char *) "self",(char *) "enable", NULL
1676 };
1677
1678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames,&obj0,&obj1)) goto fail;
1679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1681 if (obj1) {
1682 arg2 = (bool) SWIG_AsBool(obj1);
1683 if (PyErr_Occurred()) SWIG_fail;
1684 }
1685 {
1686 PyThreadState* __tstate = wxPyBeginAllowThreads();
1687 (arg1)->EnableMonthChange(arg2);
1688
1689 wxPyEndAllowThreads(__tstate);
1690 if (PyErr_Occurred()) SWIG_fail;
1691 }
1692 Py_INCREF(Py_None); resultobj = Py_None;
1693 return resultobj;
1694 fail:
1695 return NULL;
1696 }
1697
1698
1699 static PyObject *_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
1700 PyObject *resultobj;
1701 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1702 bool arg2 = (bool) True ;
1703 PyObject * obj0 = 0 ;
1704 PyObject * obj1 = 0 ;
1705 char *kwnames[] = {
1706 (char *) "self",(char *) "display", NULL
1707 };
1708
1709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames,&obj0,&obj1)) goto fail;
1710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1712 if (obj1) {
1713 arg2 = (bool) SWIG_AsBool(obj1);
1714 if (PyErr_Occurred()) SWIG_fail;
1715 }
1716 {
1717 PyThreadState* __tstate = wxPyBeginAllowThreads();
1718 (arg1)->EnableHolidayDisplay(arg2);
1719
1720 wxPyEndAllowThreads(__tstate);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 }
1723 Py_INCREF(Py_None); resultobj = Py_None;
1724 return resultobj;
1725 fail:
1726 return NULL;
1727 }
1728
1729
1730 static PyObject *_wrap_CalendarCtrl_SetHeaderColours(PyObject *, PyObject *args, PyObject *kwargs) {
1731 PyObject *resultobj;
1732 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1733 wxColour *arg2 = 0 ;
1734 wxColour *arg3 = 0 ;
1735 wxColour temp2 ;
1736 wxColour temp3 ;
1737 PyObject * obj0 = 0 ;
1738 PyObject * obj1 = 0 ;
1739 PyObject * obj2 = 0 ;
1740 char *kwnames[] = {
1741 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1742 };
1743
1744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1747 {
1748 arg2 = &temp2;
1749 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1750 }
1751 {
1752 arg3 = &temp3;
1753 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1754 }
1755 {
1756 PyThreadState* __tstate = wxPyBeginAllowThreads();
1757 (arg1)->SetHeaderColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1758
1759 wxPyEndAllowThreads(__tstate);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 }
1762 Py_INCREF(Py_None); resultobj = Py_None;
1763 return resultobj;
1764 fail:
1765 return NULL;
1766 }
1767
1768
1769 static PyObject *_wrap_CalendarCtrl_GetHeaderColourFg(PyObject *, PyObject *args, PyObject *kwargs) {
1770 PyObject *resultobj;
1771 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1772 wxColour result;
1773 PyObject * obj0 = 0 ;
1774 char *kwnames[] = {
1775 (char *) "self", NULL
1776 };
1777
1778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames,&obj0)) goto fail;
1779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1781 {
1782 PyThreadState* __tstate = wxPyBeginAllowThreads();
1783 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourFg();
1784
1785 wxPyEndAllowThreads(__tstate);
1786 if (PyErr_Occurred()) SWIG_fail;
1787 }
1788 {
1789 wxColour * resultptr;
1790 resultptr = new wxColour((wxColour &) result);
1791 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1792 }
1793 return resultobj;
1794 fail:
1795 return NULL;
1796 }
1797
1798
1799 static PyObject *_wrap_CalendarCtrl_GetHeaderColourBg(PyObject *, PyObject *args, PyObject *kwargs) {
1800 PyObject *resultobj;
1801 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1802 wxColour result;
1803 PyObject * obj0 = 0 ;
1804 char *kwnames[] = {
1805 (char *) "self", NULL
1806 };
1807
1808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames,&obj0)) goto fail;
1809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1811 {
1812 PyThreadState* __tstate = wxPyBeginAllowThreads();
1813 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourBg();
1814
1815 wxPyEndAllowThreads(__tstate);
1816 if (PyErr_Occurred()) SWIG_fail;
1817 }
1818 {
1819 wxColour * resultptr;
1820 resultptr = new wxColour((wxColour &) result);
1821 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1822 }
1823 return resultobj;
1824 fail:
1825 return NULL;
1826 }
1827
1828
1829 static PyObject *_wrap_CalendarCtrl_SetHighlightColours(PyObject *, PyObject *args, PyObject *kwargs) {
1830 PyObject *resultobj;
1831 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1832 wxColour *arg2 = 0 ;
1833 wxColour *arg3 = 0 ;
1834 wxColour temp2 ;
1835 wxColour temp3 ;
1836 PyObject * obj0 = 0 ;
1837 PyObject * obj1 = 0 ;
1838 PyObject * obj2 = 0 ;
1839 char *kwnames[] = {
1840 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1841 };
1842
1843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1846 {
1847 arg2 = &temp2;
1848 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1849 }
1850 {
1851 arg3 = &temp3;
1852 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1853 }
1854 {
1855 PyThreadState* __tstate = wxPyBeginAllowThreads();
1856 (arg1)->SetHighlightColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1857
1858 wxPyEndAllowThreads(__tstate);
1859 if (PyErr_Occurred()) SWIG_fail;
1860 }
1861 Py_INCREF(Py_None); resultobj = Py_None;
1862 return resultobj;
1863 fail:
1864 return NULL;
1865 }
1866
1867
1868 static PyObject *_wrap_CalendarCtrl_GetHighlightColourFg(PyObject *, PyObject *args, PyObject *kwargs) {
1869 PyObject *resultobj;
1870 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1871 wxColour result;
1872 PyObject * obj0 = 0 ;
1873 char *kwnames[] = {
1874 (char *) "self", NULL
1875 };
1876
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames,&obj0)) goto fail;
1878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourFg();
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 }
1887 {
1888 wxColour * resultptr;
1889 resultptr = new wxColour((wxColour &) result);
1890 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1891 }
1892 return resultobj;
1893 fail:
1894 return NULL;
1895 }
1896
1897
1898 static PyObject *_wrap_CalendarCtrl_GetHighlightColourBg(PyObject *, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1901 wxColour result;
1902 PyObject * obj0 = 0 ;
1903 char *kwnames[] = {
1904 (char *) "self", NULL
1905 };
1906
1907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames,&obj0)) goto fail;
1908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1910 {
1911 PyThreadState* __tstate = wxPyBeginAllowThreads();
1912 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourBg();
1913
1914 wxPyEndAllowThreads(__tstate);
1915 if (PyErr_Occurred()) SWIG_fail;
1916 }
1917 {
1918 wxColour * resultptr;
1919 resultptr = new wxColour((wxColour &) result);
1920 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1921 }
1922 return resultobj;
1923 fail:
1924 return NULL;
1925 }
1926
1927
1928 static PyObject *_wrap_CalendarCtrl_SetHolidayColours(PyObject *, PyObject *args, PyObject *kwargs) {
1929 PyObject *resultobj;
1930 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1931 wxColour *arg2 = 0 ;
1932 wxColour *arg3 = 0 ;
1933 wxColour temp2 ;
1934 wxColour temp3 ;
1935 PyObject * obj0 = 0 ;
1936 PyObject * obj1 = 0 ;
1937 PyObject * obj2 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1945 {
1946 arg2 = &temp2;
1947 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1948 }
1949 {
1950 arg3 = &temp3;
1951 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1952 }
1953 {
1954 PyThreadState* __tstate = wxPyBeginAllowThreads();
1955 (arg1)->SetHolidayColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1956
1957 wxPyEndAllowThreads(__tstate);
1958 if (PyErr_Occurred()) SWIG_fail;
1959 }
1960 Py_INCREF(Py_None); resultobj = Py_None;
1961 return resultobj;
1962 fail:
1963 return NULL;
1964 }
1965
1966
1967 static PyObject *_wrap_CalendarCtrl_GetHolidayColourFg(PyObject *, PyObject *args, PyObject *kwargs) {
1968 PyObject *resultobj;
1969 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1970 wxColour result;
1971 PyObject * obj0 = 0 ;
1972 char *kwnames[] = {
1973 (char *) "self", NULL
1974 };
1975
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames,&obj0)) goto fail;
1977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
1978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1979 {
1980 PyThreadState* __tstate = wxPyBeginAllowThreads();
1981 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourFg();
1982
1983 wxPyEndAllowThreads(__tstate);
1984 if (PyErr_Occurred()) SWIG_fail;
1985 }
1986 {
1987 wxColour * resultptr;
1988 resultptr = new wxColour((wxColour &) result);
1989 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1990 }
1991 return resultobj;
1992 fail:
1993 return NULL;
1994 }
1995
1996
1997 static PyObject *_wrap_CalendarCtrl_GetHolidayColourBg(PyObject *, PyObject *args, PyObject *kwargs) {
1998 PyObject *resultobj;
1999 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2000 wxColour result;
2001 PyObject * obj0 = 0 ;
2002 char *kwnames[] = {
2003 (char *) "self", NULL
2004 };
2005
2006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames,&obj0)) goto fail;
2007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2009 {
2010 PyThreadState* __tstate = wxPyBeginAllowThreads();
2011 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourBg();
2012
2013 wxPyEndAllowThreads(__tstate);
2014 if (PyErr_Occurred()) SWIG_fail;
2015 }
2016 {
2017 wxColour * resultptr;
2018 resultptr = new wxColour((wxColour &) result);
2019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2020 }
2021 return resultobj;
2022 fail:
2023 return NULL;
2024 }
2025
2026
2027 static PyObject *_wrap_CalendarCtrl_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) {
2028 PyObject *resultobj;
2029 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2030 size_t arg2 ;
2031 wxCalendarDateAttr *result;
2032 PyObject * obj0 = 0 ;
2033 PyObject * obj1 = 0 ;
2034 char *kwnames[] = {
2035 (char *) "self",(char *) "day", NULL
2036 };
2037
2038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_GetAttr",kwnames,&obj0,&obj1)) goto fail;
2039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2041 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
2042 if (PyErr_Occurred()) SWIG_fail;
2043 {
2044 PyThreadState* __tstate = wxPyBeginAllowThreads();
2045 result = (wxCalendarDateAttr *)((wxCalendarCtrl const *)arg1)->GetAttr(arg2);
2046
2047 wxPyEndAllowThreads(__tstate);
2048 if (PyErr_Occurred()) SWIG_fail;
2049 }
2050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarDateAttr, 0);
2051 return resultobj;
2052 fail:
2053 return NULL;
2054 }
2055
2056
2057 static PyObject *_wrap_CalendarCtrl_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) {
2058 PyObject *resultobj;
2059 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2060 size_t arg2 ;
2061 wxCalendarDateAttr *arg3 = (wxCalendarDateAttr *) 0 ;
2062 PyObject * obj0 = 0 ;
2063 PyObject * obj1 = 0 ;
2064 PyObject * obj2 = 0 ;
2065 char *kwnames[] = {
2066 (char *) "self",(char *) "day",(char *) "attr", NULL
2067 };
2068
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
2070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2072 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
2073 if (PyErr_Occurred()) SWIG_fail;
2074 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCalendarDateAttr,
2075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2076 {
2077 PyThreadState* __tstate = wxPyBeginAllowThreads();
2078 (arg1)->SetAttr(arg2,arg3);
2079
2080 wxPyEndAllowThreads(__tstate);
2081 if (PyErr_Occurred()) SWIG_fail;
2082 }
2083 Py_INCREF(Py_None); resultobj = Py_None;
2084 return resultobj;
2085 fail:
2086 return NULL;
2087 }
2088
2089
2090 static PyObject *_wrap_CalendarCtrl_SetHoliday(PyObject *, PyObject *args, PyObject *kwargs) {
2091 PyObject *resultobj;
2092 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2093 size_t arg2 ;
2094 PyObject * obj0 = 0 ;
2095 PyObject * obj1 = 0 ;
2096 char *kwnames[] = {
2097 (char *) "self",(char *) "day", NULL
2098 };
2099
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetHoliday",kwnames,&obj0,&obj1)) goto fail;
2101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2103 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
2104 if (PyErr_Occurred()) SWIG_fail;
2105 {
2106 PyThreadState* __tstate = wxPyBeginAllowThreads();
2107 (arg1)->SetHoliday(arg2);
2108
2109 wxPyEndAllowThreads(__tstate);
2110 if (PyErr_Occurred()) SWIG_fail;
2111 }
2112 Py_INCREF(Py_None); resultobj = Py_None;
2113 return resultobj;
2114 fail:
2115 return NULL;
2116 }
2117
2118
2119 static PyObject *_wrap_CalendarCtrl_ResetAttr(PyObject *, PyObject *args, PyObject *kwargs) {
2120 PyObject *resultobj;
2121 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2122 size_t arg2 ;
2123 PyObject * obj0 = 0 ;
2124 PyObject * obj1 = 0 ;
2125 char *kwnames[] = {
2126 (char *) "self",(char *) "day", NULL
2127 };
2128
2129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_ResetAttr",kwnames,&obj0,&obj1)) goto fail;
2130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2132 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
2133 if (PyErr_Occurred()) SWIG_fail;
2134 {
2135 PyThreadState* __tstate = wxPyBeginAllowThreads();
2136 (arg1)->ResetAttr(arg2);
2137
2138 wxPyEndAllowThreads(__tstate);
2139 if (PyErr_Occurred()) SWIG_fail;
2140 }
2141 Py_INCREF(Py_None); resultobj = Py_None;
2142 return resultobj;
2143 fail:
2144 return NULL;
2145 }
2146
2147
2148 static PyObject *_wrap_CalendarCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
2149 PyObject *resultobj;
2150 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2151 wxPoint *arg2 = 0 ;
2152 PyObject *result;
2153 wxPoint temp2 ;
2154 PyObject * obj0 = 0 ;
2155 PyObject * obj1 = 0 ;
2156 char *kwnames[] = {
2157 (char *) "self",(char *) "pos", NULL
2158 };
2159
2160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
2161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2163 {
2164 arg2 = &temp2;
2165 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2166 }
2167 {
2168 PyThreadState* __tstate = wxPyBeginAllowThreads();
2169 result = (PyObject *)wxCalendarCtrl_HitTest(arg1,(wxPoint const &)*arg2);
2170
2171 wxPyEndAllowThreads(__tstate);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 resultobj = result;
2175 return resultobj;
2176 fail:
2177 return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_CalendarCtrl_GetMonthControl(PyObject *, PyObject *args, PyObject *kwargs) {
2182 PyObject *resultobj;
2183 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2184 wxControl *result;
2185 PyObject * obj0 = 0 ;
2186 char *kwnames[] = {
2187 (char *) "self", NULL
2188 };
2189
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetMonthControl",kwnames,&obj0)) goto fail;
2191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2193 {
2194 PyThreadState* __tstate = wxPyBeginAllowThreads();
2195 result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetMonthControl();
2196
2197 wxPyEndAllowThreads(__tstate);
2198 if (PyErr_Occurred()) SWIG_fail;
2199 }
2200 {
2201 resultobj = wxPyMake_wxObject(result);
2202 }
2203 return resultobj;
2204 fail:
2205 return NULL;
2206 }
2207
2208
2209 static PyObject *_wrap_CalendarCtrl_GetYearControl(PyObject *, PyObject *args, PyObject *kwargs) {
2210 PyObject *resultobj;
2211 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2212 wxControl *result;
2213 PyObject * obj0 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetYearControl",kwnames,&obj0)) goto fail;
2219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalendarCtrl,
2220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2221 {
2222 PyThreadState* __tstate = wxPyBeginAllowThreads();
2223 result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetYearControl();
2224
2225 wxPyEndAllowThreads(__tstate);
2226 if (PyErr_Occurred()) SWIG_fail;
2227 }
2228 {
2229 resultobj = wxPyMake_wxObject(result);
2230 }
2231 return resultobj;
2232 fail:
2233 return NULL;
2234 }
2235
2236
2237 static PyObject * CalendarCtrl_swigregister(PyObject *, PyObject *args) {
2238 PyObject *obj;
2239 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2240 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl, obj);
2241 Py_INCREF(obj);
2242 return Py_BuildValue((char *)"");
2243 }
2244 static PyMethodDef SwigMethods[] = {
2245 { (char *)"new_CalendarDateAttr", (PyCFunction) _wrap_new_CalendarDateAttr, METH_VARARGS | METH_KEYWORDS, NULL },
2246 { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction) _wrap_CalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
2247 { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
2248 { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS, NULL },
2249 { (char *)"CalendarDateAttr_SetFont", (PyCFunction) _wrap_CalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
2250 { (char *)"CalendarDateAttr_SetBorder", (PyCFunction) _wrap_CalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL },
2251 { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction) _wrap_CalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS, NULL },
2252 { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction) _wrap_CalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
2253 { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
2254 { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_CalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS, NULL },
2255 { (char *)"CalendarDateAttr_HasFont", (PyCFunction) _wrap_CalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
2256 { (char *)"CalendarDateAttr_HasBorder", (PyCFunction) _wrap_CalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL },
2257 { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction) _wrap_CalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS, NULL },
2258 { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction) _wrap_CalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
2259 { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
2260 { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS, NULL },
2261 { (char *)"CalendarDateAttr_GetFont", (PyCFunction) _wrap_CalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
2262 { (char *)"CalendarDateAttr_GetBorder", (PyCFunction) _wrap_CalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL },
2263 { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister, METH_VARARGS, NULL },
2264 { (char *)"new_CalendarEvent", (PyCFunction) _wrap_new_CalendarEvent, METH_VARARGS | METH_KEYWORDS, NULL },
2265 { (char *)"CalendarEvent_GetDate", (PyCFunction) _wrap_CalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS, NULL },
2266 { (char *)"CalendarEvent_SetDate", (PyCFunction) _wrap_CalendarEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL },
2267 { (char *)"CalendarEvent_SetWeekDay", (PyCFunction) _wrap_CalendarEvent_SetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
2268 { (char *)"CalendarEvent_GetWeekDay", (PyCFunction) _wrap_CalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
2269 { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister, METH_VARARGS, NULL },
2270 { (char *)"new_CalendarCtrl", (PyCFunction) _wrap_new_CalendarCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
2271 { (char *)"new_PreCalendarCtrl", (PyCFunction) _wrap_new_PreCalendarCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
2272 { (char *)"CalendarCtrl_Create", (PyCFunction) _wrap_CalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
2273 { (char *)"CalendarCtrl_SetDate", (PyCFunction) _wrap_CalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS, NULL },
2274 { (char *)"CalendarCtrl_GetDate", (PyCFunction) _wrap_CalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS, NULL },
2275 { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS, NULL },
2276 { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS, NULL },
2277 { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS, NULL },
2278 { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS, NULL },
2279 { (char *)"CalendarCtrl_SetDateRange", (PyCFunction) _wrap_CalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS, NULL },
2280 { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction) _wrap_CalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS, NULL },
2281 { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_CalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS, NULL },
2282 { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_CalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
2283 { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_CalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS, NULL },
2284 { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS, NULL },
2285 { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS, NULL },
2286 { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_CalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS, NULL },
2287 { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS, NULL },
2288 { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS, NULL },
2289 { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_CalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS, NULL },
2290 { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS, NULL },
2291 { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS, NULL },
2292 { (char *)"CalendarCtrl_GetAttr", (PyCFunction) _wrap_CalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL },
2293 { (char *)"CalendarCtrl_SetAttr", (PyCFunction) _wrap_CalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL },
2294 { (char *)"CalendarCtrl_SetHoliday", (PyCFunction) _wrap_CalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS, NULL },
2295 { (char *)"CalendarCtrl_ResetAttr", (PyCFunction) _wrap_CalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS, NULL },
2296 { (char *)"CalendarCtrl_HitTest", (PyCFunction) _wrap_CalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
2297 { (char *)"CalendarCtrl_GetMonthControl", (PyCFunction) _wrap_CalendarCtrl_GetMonthControl, METH_VARARGS | METH_KEYWORDS, NULL },
2298 { (char *)"CalendarCtrl_GetYearControl", (PyCFunction) _wrap_CalendarCtrl_GetYearControl, METH_VARARGS | METH_KEYWORDS, NULL },
2299 { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister, METH_VARARGS, NULL },
2300 { NULL, NULL, 0, NULL }
2301 };
2302
2303
2304 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2305
2306 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
2307 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
2308 }
2309 static void *_p_wxCalendarCtrlTo_p_wxObject(void *x) {
2310 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
2311 }
2312 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
2313 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
2314 }
2315 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
2316 return (void *)((wxObject *) ((wxSizerItem *) x));
2317 }
2318 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
2319 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
2320 }
2321 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
2322 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
2323 }
2324 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
2325 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
2326 }
2327 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
2328 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
2329 }
2330 static void *_p_wxSizerTo_p_wxObject(void *x) {
2331 return (void *)((wxObject *) ((wxSizer *) x));
2332 }
2333 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2334 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2335 }
2336 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
2337 return (void *)((wxObject *) ((wxFileHistory *) x));
2338 }
2339 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2340 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2341 }
2342 static void *_p_wxEventTo_p_wxObject(void *x) {
2343 return (void *)((wxObject *) ((wxEvent *) x));
2344 }
2345 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2346 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2347 }
2348 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2349 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2350 }
2351 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2352 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2353 }
2354 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2355 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2356 }
2357 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2358 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2359 }
2360 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2361 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2362 }
2363 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2364 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2365 }
2366 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2367 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2368 }
2369 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2370 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2371 }
2372 static void *_p_wxControlTo_p_wxObject(void *x) {
2373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2374 }
2375 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2376 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2377 }
2378 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
2379 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
2380 }
2381 static void *_p_wxCalendarEventTo_p_wxObject(void *x) {
2382 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCalendarEvent *) x));
2383 }
2384 static void *_p_wxFSFileTo_p_wxObject(void *x) {
2385 return (void *)((wxObject *) ((wxFSFile *) x));
2386 }
2387 static void *_p_wxClipboardTo_p_wxObject(void *x) {
2388 return (void *)((wxObject *) ((wxClipboard *) x));
2389 }
2390 static void *_p_wxPySizerTo_p_wxObject(void *x) {
2391 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2392 }
2393 static void *_p_wxPyEventTo_p_wxObject(void *x) {
2394 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2395 }
2396 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2397 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2398 }
2399 static void *_p_wxShowEventTo_p_wxObject(void *x) {
2400 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2401 }
2402 static void *_p_wxToolTipTo_p_wxObject(void *x) {
2403 return (void *)((wxObject *) ((wxToolTip *) x));
2404 }
2405 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2406 return (void *)((wxObject *) ((wxMenuItem *) x));
2407 }
2408 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2409 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2410 }
2411 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2412 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2413 }
2414 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2415 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2416 }
2417 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2418 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2419 }
2420 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2421 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2422 }
2423 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2424 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2425 }
2426 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2427 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2428 }
2429 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2430 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2431 }
2432 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2433 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2434 }
2435 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2436 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2437 }
2438 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2439 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2440 }
2441 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2442 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2443 }
2444 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2445 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2446 }
2447 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2448 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2449 }
2450 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2451 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2452 }
2453 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2454 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2455 }
2456 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2457 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2458 }
2459 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2460 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2461 }
2462 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2463 return (void *)((wxObject *) ((wxImageHandler *) x));
2464 }
2465 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2466 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2467 }
2468 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2469 return (void *)((wxObject *) ((wxEvtHandler *) x));
2470 }
2471 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
2472 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
2473 }
2474 static void *_p_wxImageTo_p_wxObject(void *x) {
2475 return (void *)((wxObject *) ((wxImage *) x));
2476 }
2477 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2478 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2479 }
2480 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
2481 return (void *)((wxObject *) ((wxSystemOptions *) x));
2482 }
2483 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
2484 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
2485 }
2486 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2487 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2488 }
2489 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2490 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2491 }
2492 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2493 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2494 }
2495 static void *_p_wxWindowTo_p_wxObject(void *x) {
2496 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2497 }
2498 static void *_p_wxMenuTo_p_wxObject(void *x) {
2499 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2500 }
2501 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2502 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2503 }
2504 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
2505 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
2506 }
2507 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2508 return (void *)((wxObject *) ((wxFileSystem *) x));
2509 }
2510 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2511 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2512 }
2513 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2514 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2515 }
2516 static void *_p_wxPyAppTo_p_wxObject(void *x) {
2517 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2518 }
2519 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2520 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2521 }
2522 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2523 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2524 }
2525 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2526 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2527 }
2528 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
2529 return (void *)((wxObject *) ((wxBusyInfo *) x));
2530 }
2531 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2532 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2533 }
2534 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2535 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2536 }
2537 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2538 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2539 }
2540 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2541 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2542 }
2543 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2545 }
2546 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
2547 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
2548 }
2549 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2550 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2551 }
2552 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2553 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2554 }
2555 static void *_p_wxValidatorTo_p_wxObject(void *x) {
2556 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2557 }
2558 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
2559 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
2560 }
2561 static void *_p_wxControlTo_p_wxWindow(void *x) {
2562 return (void *)((wxWindow *) ((wxControl *) x));
2563 }
2564 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2565 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2566 }
2567 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2568 return (void *)((wxWindow *) ((wxMenuBar *) x));
2569 }
2570 static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x) {
2571 return (void *)((wxWindow *) (wxControl *) ((wxCalendarCtrl *) x));
2572 }
2573 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2574 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2575 }
2576 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2577 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2578 }
2579 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2580 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2581 }
2582 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2583 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2584 }
2585 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2586 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2587 }
2588 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2589 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2590 }
2591 static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x) {
2592 return (void *)((wxCommandEvent *) ((wxCalendarEvent *) x));
2593 }
2594 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2595 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2596 }
2597 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2598 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2599 }
2600 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2601 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2602 }
2603 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2604 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2605 }
2606 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2607 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2608 }
2609 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2610 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2611 }
2612 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
2613 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
2614 }
2615 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2616 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2617 }
2618 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2619 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2620 }
2621 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2622 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2623 }
2624 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2625 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2626 }
2627 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
2628 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
2629 }
2630 static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x) {
2631 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
2632 }
2633 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
2634 return (void *)((wxControl *) ((wxControlWithItems *) x));
2635 }
2636 static void *_p_wxCalendarCtrlTo_p_wxControl(void *x) {
2637 return (void *)((wxControl *) ((wxCalendarCtrl *) x));
2638 }
2639 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
2640 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
2641 }
2642 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
2643 return (void *)((wxEvent *) ((wxMenuEvent *) x));
2644 }
2645 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
2646 return (void *)((wxEvent *) ((wxCloseEvent *) x));
2647 }
2648 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
2649 return (void *)((wxEvent *) ((wxMouseEvent *) x));
2650 }
2651 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
2652 return (void *)((wxEvent *) ((wxEraseEvent *) x));
2653 }
2654 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
2655 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
2656 }
2657 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
2658 return (void *)((wxEvent *) ((wxTimerEvent *) x));
2659 }
2660 static void *_p_wxCalendarEventTo_p_wxEvent(void *x) {
2661 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCalendarEvent *) x));
2662 }
2663 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
2664 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
2665 }
2666 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
2667 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
2668 }
2669 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
2670 return (void *)((wxEvent *) ((wxPyEvent *) x));
2671 }
2672 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
2673 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
2674 }
2675 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
2676 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
2677 }
2678 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
2679 return (void *)((wxEvent *) ((wxIdleEvent *) x));
2680 }
2681 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
2682 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
2683 }
2684 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
2685 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
2686 }
2687 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
2688 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
2689 }
2690 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
2691 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
2692 }
2693 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
2694 return (void *)((wxEvent *) ((wxActivateEvent *) x));
2695 }
2696 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
2697 return (void *)((wxEvent *) ((wxSizeEvent *) x));
2698 }
2699 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
2700 return (void *)((wxEvent *) ((wxMoveEvent *) x));
2701 }
2702 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
2703 return (void *)((wxEvent *) ((wxPaintEvent *) x));
2704 }
2705 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
2706 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
2707 }
2708 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
2709 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
2710 }
2711 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
2712 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
2713 }
2714 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
2715 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
2716 }
2717 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
2718 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2719 }
2720 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
2721 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
2722 }
2723 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
2724 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
2725 }
2726 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
2727 return (void *)((wxEvent *) ((wxFocusEvent *) x));
2728 }
2729 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
2730 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
2731 }
2732 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
2733 return (void *)((wxEvent *) ((wxProcessEvent *) x));
2734 }
2735 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
2736 return (void *)((wxEvent *) ((wxShowEvent *) x));
2737 }
2738 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
2739 return (void *)((wxEvent *) ((wxCommandEvent *) x));
2740 }
2741 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
2742 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
2743 }
2744 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
2745 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2746 }
2747 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
2748 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
2749 }
2750 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
2751 return (void *)((wxEvent *) ((wxKeyEvent *) x));
2752 }
2753 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
2754 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
2755 }
2756 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}};
2757 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}};
2758 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}};
2759 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}};
2760 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}};
2761 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}};
2762 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}};
2763 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}};
2764 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}};
2765 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}};
2766 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}};
2767 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}};
2768 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}};
2769
2770 static swig_type_info *swig_types_initial[] = {
2771 _swigt__p_wxControl,
2772 _swigt__p_wxDateTime,
2773 _swigt__p_wxWindow,
2774 _swigt__p_wxFont,
2775 _swigt__p_wxEvent,
2776 _swigt__p_wxObject,
2777 _swigt__p_wxEvtHandler,
2778 _swigt__p_char,
2779 _swigt__p_wxCalendarDateAttr,
2780 _swigt__p_wxColour,
2781 _swigt__p_wxCalendarEvent,
2782 _swigt__p_wxCommandEvent,
2783 _swigt__p_wxCalendarCtrl,
2784 0
2785 };
2786
2787
2788 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2789
2790 static swig_const_info swig_const_table[] = {
2791 {0, 0, 0, 0.0, 0, 0}};
2792
2793 #ifdef __cplusplus
2794 }
2795 #endif
2796
2797 #ifdef __cplusplus
2798 extern "C"
2799 #endif
2800 SWIGEXPORT(void) SWIG_init(void) {
2801 static PyObject *SWIG_globals = 0;
2802 static int typeinit = 0;
2803 PyObject *m, *d;
2804 int i;
2805 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
2806 m = Py_InitModule((char *) SWIG_name, SwigMethods);
2807 d = PyModule_GetDict(m);
2808
2809 if (!typeinit) {
2810 for (i = 0; swig_types_initial[i]; i++) {
2811 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
2812 }
2813 typeinit = 1;
2814 }
2815 SWIG_InstallConstants(d,swig_const_table);
2816
2817 PyDict_SetItemString(d,"CAL_SUNDAY_FIRST", SWIG_FromInt((int)wxCAL_SUNDAY_FIRST));
2818 PyDict_SetItemString(d,"CAL_MONDAY_FIRST", SWIG_FromInt((int)wxCAL_MONDAY_FIRST));
2819 PyDict_SetItemString(d,"CAL_SHOW_HOLIDAYS", SWIG_FromInt((int)wxCAL_SHOW_HOLIDAYS));
2820 PyDict_SetItemString(d,"CAL_NO_YEAR_CHANGE", SWIG_FromInt((int)wxCAL_NO_YEAR_CHANGE));
2821 PyDict_SetItemString(d,"CAL_NO_MONTH_CHANGE", SWIG_FromInt((int)wxCAL_NO_MONTH_CHANGE));
2822 PyDict_SetItemString(d,"CAL_SEQUENTIAL_MONTH_SELECTION", SWIG_FromInt((int)wxCAL_SEQUENTIAL_MONTH_SELECTION));
2823 PyDict_SetItemString(d,"CAL_SHOW_SURROUNDING_WEEKS", SWIG_FromInt((int)wxCAL_SHOW_SURROUNDING_WEEKS));
2824 PyDict_SetItemString(d,"CAL_HITTEST_NOWHERE", SWIG_FromInt((int)wxCAL_HITTEST_NOWHERE));
2825 PyDict_SetItemString(d,"CAL_HITTEST_HEADER", SWIG_FromInt((int)wxCAL_HITTEST_HEADER));
2826 PyDict_SetItemString(d,"CAL_HITTEST_DAY", SWIG_FromInt((int)wxCAL_HITTEST_DAY));
2827 PyDict_SetItemString(d,"CAL_HITTEST_INCMONTH", SWIG_FromInt((int)wxCAL_HITTEST_INCMONTH));
2828 PyDict_SetItemString(d,"CAL_HITTEST_DECMONTH", SWIG_FromInt((int)wxCAL_HITTEST_DECMONTH));
2829 PyDict_SetItemString(d,"CAL_HITTEST_SURROUNDING_WEEK", SWIG_FromInt((int)wxCAL_HITTEST_SURROUNDING_WEEK));
2830 PyDict_SetItemString(d,"CAL_BORDER_NONE", SWIG_FromInt((int)wxCAL_BORDER_NONE));
2831 PyDict_SetItemString(d,"CAL_BORDER_SQUARE", SWIG_FromInt((int)wxCAL_BORDER_SQUARE));
2832 PyDict_SetItemString(d,"CAL_BORDER_ROUND", SWIG_FromInt((int)wxCAL_BORDER_ROUND));
2833 PyDict_SetItemString(d, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED));
2834 PyDict_SetItemString(d, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED));
2835 PyDict_SetItemString(d, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED));
2836 PyDict_SetItemString(d, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED));
2837 PyDict_SetItemString(d, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED));
2838 PyDict_SetItemString(d, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED));
2839 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
2840 SWIG_addvarlink(SWIG_globals,(char*)"CalendarNameStr",_wrap_CalendarNameStr_get, _wrap_CalendarNameStr_set);
2841
2842
2843 }
2844