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