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