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