]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/calendar.cpp
bd528cb0f7460439d60f9e25f9b4ab28bae448ce
[wxWidgets.git] / wxPython / src / msw / calendar.cpp
1 /*
2 * FILE : src/msw/calendar.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initcalendarc
55
56 #define SWIG_name "calendarc"
57
58 #include "export.h"
59 #include <wx/calctrl.h>
60
61 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
62 PyObject* o2;
63 if (!target) {
64 target = o;
65 } else if (target == Py_None) {
66 Py_DECREF(Py_None);
67 target = o;
68 } else {
69 if (!PyList_Check(target)) {
70 o2 = target;
71 target = PyList_New(0);
72 PyList_Append(target, o2);
73 Py_XDECREF(o2);
74 }
75 PyList_Append(target,o);
76 Py_XDECREF(o);
77 }
78 return target;
79 }
80
81 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
82 PyObject* o2;
83 PyObject* o3;
84
85 if (!target) {
86 target = o;
87 } else if (target == Py_None) {
88 Py_DECREF(Py_None);
89 target = o;
90 } else {
91 if (!PyTuple_Check(target)) {
92 o2 = target;
93 target = PyTuple_New(1);
94 PyTuple_SetItem(target, 0, o2);
95 }
96 o3 = PyTuple_New(1);
97 PyTuple_SetItem(o3, 0, o);
98
99 o2 = target;
100 target = PySequence_Concat(o2, o3);
101 Py_DECREF(o2);
102 Py_DECREF(o3);
103 }
104 return target;
105 }
106
107 #if PYTHON_API_VERSION >= 1009
108 static char* wxStringErrorMsg = "String or Unicode type required";
109 #else
110 static char* wxStringErrorMsg = "string type is required for parameter";
111 #endif
112 #ifdef __cplusplus
113 extern "C" {
114 #endif
115 #define new_wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
116 static PyObject *_wrap_new_wxCalendarDateAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
117 PyObject * _resultobj;
118 wxCalendarDateAttr * _result;
119 wxColour * _arg0;
120 wxColour * _arg1 = (wxColour *) &wxNullColour;
121 wxColour * _arg2 = (wxColour *) &wxNullColour;
122 wxFont * _arg3 = (wxFont *) &wxNullFont;
123 wxCalendarDateBorder _arg4 = (wxCalendarDateBorder ) (wxCAL_BORDER_NONE);
124 wxColour temp;
125 PyObject * _obj0 = 0;
126 wxColour temp0;
127 PyObject * _obj1 = 0;
128 wxColour temp1;
129 PyObject * _obj2 = 0;
130 PyObject * _argo3 = 0;
131 char *_kwnames[] = { "colText","colBack","colBorder","font","border", NULL };
132 char _ptemp[128];
133
134 self = self;
135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOi:new_wxCalendarDateAttr",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4))
136 return NULL;
137 {
138 _arg0 = &temp;
139 if (! wxColour_helper(_obj0, &_arg0))
140 return NULL;
141 }
142 if (_obj1)
143 {
144 _arg1 = &temp0;
145 if (! wxColour_helper(_obj1, &_arg1))
146 return NULL;
147 }
148 if (_obj2)
149 {
150 _arg2 = &temp1;
151 if (! wxColour_helper(_obj2, &_arg2))
152 return NULL;
153 }
154 if (_argo3) {
155 if (_argo3 == Py_None) { _arg3 = NULL; }
156 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxFont_p")) {
157 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxCalendarDateAttr. Expected _wxFont_p.");
158 return NULL;
159 }
160 }
161 {
162 wxPy_BEGIN_ALLOW_THREADS;
163 _result = (wxCalendarDateAttr *)new_wxCalendarDateAttr(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
164
165 wxPy_END_ALLOW_THREADS;
166 } if (_result) {
167 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p");
168 _resultobj = Py_BuildValue("s",_ptemp);
169 } else {
170 Py_INCREF(Py_None);
171 _resultobj = Py_None;
172 }
173 return _resultobj;
174 }
175
176 #define new_wxCalendarDateAttrBorder(_swigarg0,_swigarg1) (new wxCalendarDateAttr(_swigarg0,_swigarg1))
177 static PyObject *_wrap_new_wxCalendarDateAttrBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
178 PyObject * _resultobj;
179 wxCalendarDateAttr * _result;
180 wxCalendarDateBorder _arg0;
181 wxColour * _arg1 = (wxColour *) &wxNullColour;
182 wxColour temp;
183 PyObject * _obj1 = 0;
184 char *_kwnames[] = { "border","colBorder", NULL };
185 char _ptemp[128];
186
187 self = self;
188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|O:new_wxCalendarDateAttrBorder",_kwnames,&_arg0,&_obj1))
189 return NULL;
190 if (_obj1)
191 {
192 _arg1 = &temp;
193 if (! wxColour_helper(_obj1, &_arg1))
194 return NULL;
195 }
196 {
197 wxPy_BEGIN_ALLOW_THREADS;
198 _result = (wxCalendarDateAttr *)new_wxCalendarDateAttrBorder(_arg0,*_arg1);
199
200 wxPy_END_ALLOW_THREADS;
201 } if (_result) {
202 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p");
203 _resultobj = Py_BuildValue("s",_ptemp);
204 } else {
205 Py_INCREF(Py_None);
206 _resultobj = Py_None;
207 }
208 return _resultobj;
209 }
210
211 #define wxCalendarDateAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
212 static PyObject *_wrap_wxCalendarDateAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
213 PyObject * _resultobj;
214 wxCalendarDateAttr * _arg0;
215 wxColour * _arg1;
216 PyObject * _argo0 = 0;
217 wxColour temp;
218 PyObject * _obj1 = 0;
219 char *_kwnames[] = { "self","colText", NULL };
220
221 self = self;
222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
223 return NULL;
224 if (_argo0) {
225 if (_argo0 == Py_None) { _arg0 = NULL; }
226 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
227 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetTextColour. Expected _wxCalendarDateAttr_p.");
228 return NULL;
229 }
230 }
231 {
232 _arg1 = &temp;
233 if (! wxColour_helper(_obj1, &_arg1))
234 return NULL;
235 }
236 {
237 wxPy_BEGIN_ALLOW_THREADS;
238 wxCalendarDateAttr_SetTextColour(_arg0,*_arg1);
239
240 wxPy_END_ALLOW_THREADS;
241 } Py_INCREF(Py_None);
242 _resultobj = Py_None;
243 return _resultobj;
244 }
245
246 #define wxCalendarDateAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
247 static PyObject *_wrap_wxCalendarDateAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
248 PyObject * _resultobj;
249 wxCalendarDateAttr * _arg0;
250 wxColour * _arg1;
251 PyObject * _argo0 = 0;
252 wxColour temp;
253 PyObject * _obj1 = 0;
254 char *_kwnames[] = { "self","colBack", NULL };
255
256 self = self;
257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
258 return NULL;
259 if (_argo0) {
260 if (_argo0 == Py_None) { _arg0 = NULL; }
261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBackgroundColour. Expected _wxCalendarDateAttr_p.");
263 return NULL;
264 }
265 }
266 {
267 _arg1 = &temp;
268 if (! wxColour_helper(_obj1, &_arg1))
269 return NULL;
270 }
271 {
272 wxPy_BEGIN_ALLOW_THREADS;
273 wxCalendarDateAttr_SetBackgroundColour(_arg0,*_arg1);
274
275 wxPy_END_ALLOW_THREADS;
276 } Py_INCREF(Py_None);
277 _resultobj = Py_None;
278 return _resultobj;
279 }
280
281 #define wxCalendarDateAttr_SetBorderColour(_swigobj,_swigarg0) (_swigobj->SetBorderColour(_swigarg0))
282 static PyObject *_wrap_wxCalendarDateAttr_SetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
283 PyObject * _resultobj;
284 wxCalendarDateAttr * _arg0;
285 wxColour * _arg1;
286 PyObject * _argo0 = 0;
287 wxColour temp;
288 PyObject * _obj1 = 0;
289 char *_kwnames[] = { "self","col", NULL };
290
291 self = self;
292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetBorderColour",_kwnames,&_argo0,&_obj1))
293 return NULL;
294 if (_argo0) {
295 if (_argo0 == Py_None) { _arg0 = NULL; }
296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBorderColour. Expected _wxCalendarDateAttr_p.");
298 return NULL;
299 }
300 }
301 {
302 _arg1 = &temp;
303 if (! wxColour_helper(_obj1, &_arg1))
304 return NULL;
305 }
306 {
307 wxPy_BEGIN_ALLOW_THREADS;
308 wxCalendarDateAttr_SetBorderColour(_arg0,*_arg1);
309
310 wxPy_END_ALLOW_THREADS;
311 } Py_INCREF(Py_None);
312 _resultobj = Py_None;
313 return _resultobj;
314 }
315
316 #define wxCalendarDateAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
317 static PyObject *_wrap_wxCalendarDateAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
318 PyObject * _resultobj;
319 wxCalendarDateAttr * _arg0;
320 wxFont * _arg1;
321 PyObject * _argo0 = 0;
322 PyObject * _argo1 = 0;
323 char *_kwnames[] = { "self","font", NULL };
324
325 self = self;
326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetFont",_kwnames,&_argo0,&_argo1))
327 return NULL;
328 if (_argo0) {
329 if (_argo0 == Py_None) { _arg0 = NULL; }
330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetFont. Expected _wxCalendarDateAttr_p.");
332 return NULL;
333 }
334 }
335 if (_argo1) {
336 if (_argo1 == Py_None) { _arg1 = NULL; }
337 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
338 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarDateAttr_SetFont. Expected _wxFont_p.");
339 return NULL;
340 }
341 }
342 {
343 wxPy_BEGIN_ALLOW_THREADS;
344 wxCalendarDateAttr_SetFont(_arg0,*_arg1);
345
346 wxPy_END_ALLOW_THREADS;
347 } Py_INCREF(Py_None);
348 _resultobj = Py_None;
349 return _resultobj;
350 }
351
352 #define wxCalendarDateAttr_SetBorder(_swigobj,_swigarg0) (_swigobj->SetBorder(_swigarg0))
353 static PyObject *_wrap_wxCalendarDateAttr_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
354 PyObject * _resultobj;
355 wxCalendarDateAttr * _arg0;
356 wxCalendarDateBorder _arg1;
357 PyObject * _argo0 = 0;
358 char *_kwnames[] = { "self","border", NULL };
359
360 self = self;
361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarDateAttr_SetBorder",_kwnames,&_argo0,&_arg1))
362 return NULL;
363 if (_argo0) {
364 if (_argo0 == Py_None) { _arg0 = NULL; }
365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBorder. Expected _wxCalendarDateAttr_p.");
367 return NULL;
368 }
369 }
370 {
371 wxPy_BEGIN_ALLOW_THREADS;
372 wxCalendarDateAttr_SetBorder(_arg0,_arg1);
373
374 wxPy_END_ALLOW_THREADS;
375 } Py_INCREF(Py_None);
376 _resultobj = Py_None;
377 return _resultobj;
378 }
379
380 #define wxCalendarDateAttr_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0))
381 static PyObject *_wrap_wxCalendarDateAttr_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
382 PyObject * _resultobj;
383 wxCalendarDateAttr * _arg0;
384 bool _arg1;
385 PyObject * _argo0 = 0;
386 int tempbool1;
387 char *_kwnames[] = { "self","holiday", NULL };
388
389 self = self;
390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarDateAttr_SetHoliday",_kwnames,&_argo0,&tempbool1))
391 return NULL;
392 if (_argo0) {
393 if (_argo0 == Py_None) { _arg0 = NULL; }
394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetHoliday. Expected _wxCalendarDateAttr_p.");
396 return NULL;
397 }
398 }
399 _arg1 = (bool ) tempbool1;
400 {
401 wxPy_BEGIN_ALLOW_THREADS;
402 wxCalendarDateAttr_SetHoliday(_arg0,_arg1);
403
404 wxPy_END_ALLOW_THREADS;
405 } Py_INCREF(Py_None);
406 _resultobj = Py_None;
407 return _resultobj;
408 }
409
410 #define wxCalendarDateAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
411 static PyObject *_wrap_wxCalendarDateAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
412 PyObject * _resultobj;
413 bool _result;
414 wxCalendarDateAttr * _arg0;
415 PyObject * _argo0 = 0;
416 char *_kwnames[] = { "self", NULL };
417
418 self = self;
419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasTextColour",_kwnames,&_argo0))
420 return NULL;
421 if (_argo0) {
422 if (_argo0 == Py_None) { _arg0 = NULL; }
423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasTextColour. Expected _wxCalendarDateAttr_p.");
425 return NULL;
426 }
427 }
428 {
429 wxPy_BEGIN_ALLOW_THREADS;
430 _result = (bool )wxCalendarDateAttr_HasTextColour(_arg0);
431
432 wxPy_END_ALLOW_THREADS;
433 } _resultobj = Py_BuildValue("i",_result);
434 return _resultobj;
435 }
436
437 #define wxCalendarDateAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
438 static PyObject *_wrap_wxCalendarDateAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
439 PyObject * _resultobj;
440 bool _result;
441 wxCalendarDateAttr * _arg0;
442 PyObject * _argo0 = 0;
443 char *_kwnames[] = { "self", NULL };
444
445 self = self;
446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasBackgroundColour",_kwnames,&_argo0))
447 return NULL;
448 if (_argo0) {
449 if (_argo0 == Py_None) { _arg0 = NULL; }
450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasBackgroundColour. Expected _wxCalendarDateAttr_p.");
452 return NULL;
453 }
454 }
455 {
456 wxPy_BEGIN_ALLOW_THREADS;
457 _result = (bool )wxCalendarDateAttr_HasBackgroundColour(_arg0);
458
459 wxPy_END_ALLOW_THREADS;
460 } _resultobj = Py_BuildValue("i",_result);
461 return _resultobj;
462 }
463
464 #define wxCalendarDateAttr_HasBorderColour(_swigobj) (_swigobj->HasBorderColour())
465 static PyObject *_wrap_wxCalendarDateAttr_HasBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
466 PyObject * _resultobj;
467 bool _result;
468 wxCalendarDateAttr * _arg0;
469 PyObject * _argo0 = 0;
470 char *_kwnames[] = { "self", NULL };
471
472 self = self;
473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasBorderColour",_kwnames,&_argo0))
474 return NULL;
475 if (_argo0) {
476 if (_argo0 == Py_None) { _arg0 = NULL; }
477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasBorderColour. Expected _wxCalendarDateAttr_p.");
479 return NULL;
480 }
481 }
482 {
483 wxPy_BEGIN_ALLOW_THREADS;
484 _result = (bool )wxCalendarDateAttr_HasBorderColour(_arg0);
485
486 wxPy_END_ALLOW_THREADS;
487 } _resultobj = Py_BuildValue("i",_result);
488 return _resultobj;
489 }
490
491 #define wxCalendarDateAttr_HasFont(_swigobj) (_swigobj->HasFont())
492 static PyObject *_wrap_wxCalendarDateAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
493 PyObject * _resultobj;
494 bool _result;
495 wxCalendarDateAttr * _arg0;
496 PyObject * _argo0 = 0;
497 char *_kwnames[] = { "self", NULL };
498
499 self = self;
500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasFont",_kwnames,&_argo0))
501 return NULL;
502 if (_argo0) {
503 if (_argo0 == Py_None) { _arg0 = NULL; }
504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasFont. Expected _wxCalendarDateAttr_p.");
506 return NULL;
507 }
508 }
509 {
510 wxPy_BEGIN_ALLOW_THREADS;
511 _result = (bool )wxCalendarDateAttr_HasFont(_arg0);
512
513 wxPy_END_ALLOW_THREADS;
514 } _resultobj = Py_BuildValue("i",_result);
515 return _resultobj;
516 }
517
518 #define wxCalendarDateAttr_HasBorder(_swigobj) (_swigobj->HasBorder())
519 static PyObject *_wrap_wxCalendarDateAttr_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
520 PyObject * _resultobj;
521 bool _result;
522 wxCalendarDateAttr * _arg0;
523 PyObject * _argo0 = 0;
524 char *_kwnames[] = { "self", NULL };
525
526 self = self;
527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasBorder",_kwnames,&_argo0))
528 return NULL;
529 if (_argo0) {
530 if (_argo0 == Py_None) { _arg0 = NULL; }
531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasBorder. Expected _wxCalendarDateAttr_p.");
533 return NULL;
534 }
535 }
536 {
537 wxPy_BEGIN_ALLOW_THREADS;
538 _result = (bool )wxCalendarDateAttr_HasBorder(_arg0);
539
540 wxPy_END_ALLOW_THREADS;
541 } _resultobj = Py_BuildValue("i",_result);
542 return _resultobj;
543 }
544
545 #define wxCalendarDateAttr_IsHoliday(_swigobj) (_swigobj->IsHoliday())
546 static PyObject *_wrap_wxCalendarDateAttr_IsHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
547 PyObject * _resultobj;
548 bool _result;
549 wxCalendarDateAttr * _arg0;
550 PyObject * _argo0 = 0;
551 char *_kwnames[] = { "self", NULL };
552
553 self = self;
554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_IsHoliday",_kwnames,&_argo0))
555 return NULL;
556 if (_argo0) {
557 if (_argo0 == Py_None) { _arg0 = NULL; }
558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_IsHoliday. Expected _wxCalendarDateAttr_p.");
560 return NULL;
561 }
562 }
563 {
564 wxPy_BEGIN_ALLOW_THREADS;
565 _result = (bool )wxCalendarDateAttr_IsHoliday(_arg0);
566
567 wxPy_END_ALLOW_THREADS;
568 } _resultobj = Py_BuildValue("i",_result);
569 return _resultobj;
570 }
571
572 #define wxCalendarDateAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
573 static PyObject *_wrap_wxCalendarDateAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
574 PyObject * _resultobj;
575 wxColour * _result;
576 wxCalendarDateAttr * _arg0;
577 PyObject * _argo0 = 0;
578 char *_kwnames[] = { "self", NULL };
579 char _ptemp[128];
580
581 self = self;
582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetTextColour",_kwnames,&_argo0))
583 return NULL;
584 if (_argo0) {
585 if (_argo0 == Py_None) { _arg0 = NULL; }
586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetTextColour. Expected _wxCalendarDateAttr_p.");
588 return NULL;
589 }
590 }
591 {
592 wxPy_BEGIN_ALLOW_THREADS;
593 const wxColour & _result_ref = wxCalendarDateAttr_GetTextColour(_arg0);
594 _result = (wxColour *) &_result_ref;
595
596 wxPy_END_ALLOW_THREADS;
597 } if (_result) {
598 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
599 _resultobj = Py_BuildValue("s",_ptemp);
600 } else {
601 Py_INCREF(Py_None);
602 _resultobj = Py_None;
603 }
604 return _resultobj;
605 }
606
607 #define wxCalendarDateAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
608 static PyObject *_wrap_wxCalendarDateAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
609 PyObject * _resultobj;
610 wxColour * _result;
611 wxCalendarDateAttr * _arg0;
612 PyObject * _argo0 = 0;
613 char *_kwnames[] = { "self", NULL };
614 char _ptemp[128];
615
616 self = self;
617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetBackgroundColour",_kwnames,&_argo0))
618 return NULL;
619 if (_argo0) {
620 if (_argo0 == Py_None) { _arg0 = NULL; }
621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetBackgroundColour. Expected _wxCalendarDateAttr_p.");
623 return NULL;
624 }
625 }
626 {
627 wxPy_BEGIN_ALLOW_THREADS;
628 const wxColour & _result_ref = wxCalendarDateAttr_GetBackgroundColour(_arg0);
629 _result = (wxColour *) &_result_ref;
630
631 wxPy_END_ALLOW_THREADS;
632 } if (_result) {
633 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
634 _resultobj = Py_BuildValue("s",_ptemp);
635 } else {
636 Py_INCREF(Py_None);
637 _resultobj = Py_None;
638 }
639 return _resultobj;
640 }
641
642 #define wxCalendarDateAttr_GetBorderColour(_swigobj) (_swigobj->GetBorderColour())
643 static PyObject *_wrap_wxCalendarDateAttr_GetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
644 PyObject * _resultobj;
645 wxColour * _result;
646 wxCalendarDateAttr * _arg0;
647 PyObject * _argo0 = 0;
648 char *_kwnames[] = { "self", NULL };
649 char _ptemp[128];
650
651 self = self;
652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetBorderColour",_kwnames,&_argo0))
653 return NULL;
654 if (_argo0) {
655 if (_argo0 == Py_None) { _arg0 = NULL; }
656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetBorderColour. Expected _wxCalendarDateAttr_p.");
658 return NULL;
659 }
660 }
661 {
662 wxPy_BEGIN_ALLOW_THREADS;
663 const wxColour & _result_ref = wxCalendarDateAttr_GetBorderColour(_arg0);
664 _result = (wxColour *) &_result_ref;
665
666 wxPy_END_ALLOW_THREADS;
667 } if (_result) {
668 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
669 _resultobj = Py_BuildValue("s",_ptemp);
670 } else {
671 Py_INCREF(Py_None);
672 _resultobj = Py_None;
673 }
674 return _resultobj;
675 }
676
677 #define wxCalendarDateAttr_GetFont(_swigobj) (_swigobj->GetFont())
678 static PyObject *_wrap_wxCalendarDateAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
679 PyObject * _resultobj;
680 wxFont * _result;
681 wxCalendarDateAttr * _arg0;
682 PyObject * _argo0 = 0;
683 char *_kwnames[] = { "self", NULL };
684 char _ptemp[128];
685
686 self = self;
687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetFont",_kwnames,&_argo0))
688 return NULL;
689 if (_argo0) {
690 if (_argo0 == Py_None) { _arg0 = NULL; }
691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetFont. Expected _wxCalendarDateAttr_p.");
693 return NULL;
694 }
695 }
696 {
697 wxPy_BEGIN_ALLOW_THREADS;
698 const wxFont & _result_ref = wxCalendarDateAttr_GetFont(_arg0);
699 _result = (wxFont *) &_result_ref;
700
701 wxPy_END_ALLOW_THREADS;
702 } if (_result) {
703 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
704 _resultobj = Py_BuildValue("s",_ptemp);
705 } else {
706 Py_INCREF(Py_None);
707 _resultobj = Py_None;
708 }
709 return _resultobj;
710 }
711
712 #define wxCalendarDateAttr_GetBorder(_swigobj) (_swigobj->GetBorder())
713 static PyObject *_wrap_wxCalendarDateAttr_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
714 PyObject * _resultobj;
715 wxCalendarDateBorder _result;
716 wxCalendarDateAttr * _arg0;
717 PyObject * _argo0 = 0;
718 char *_kwnames[] = { "self", NULL };
719
720 self = self;
721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetBorder",_kwnames,&_argo0))
722 return NULL;
723 if (_argo0) {
724 if (_argo0 == Py_None) { _arg0 = NULL; }
725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) {
726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetBorder. Expected _wxCalendarDateAttr_p.");
727 return NULL;
728 }
729 }
730 {
731 wxPy_BEGIN_ALLOW_THREADS;
732 _result = (wxCalendarDateBorder )wxCalendarDateAttr_GetBorder(_arg0);
733
734 wxPy_END_ALLOW_THREADS;
735 } _resultobj = Py_BuildValue("i",_result);
736 return _resultobj;
737 }
738
739 static void *SwigwxCalendarEventTowxCommandEvent(void *ptr) {
740 wxCalendarEvent *src;
741 wxCommandEvent *dest;
742 src = (wxCalendarEvent *) ptr;
743 dest = (wxCommandEvent *) src;
744 return (void *) dest;
745 }
746
747 static void *SwigwxCalendarEventTowxEvent(void *ptr) {
748 wxCalendarEvent *src;
749 wxEvent *dest;
750 src = (wxCalendarEvent *) ptr;
751 dest = (wxEvent *) src;
752 return (void *) dest;
753 }
754
755 static void *SwigwxCalendarEventTowxObject(void *ptr) {
756 wxCalendarEvent *src;
757 wxObject *dest;
758 src = (wxCalendarEvent *) ptr;
759 dest = (wxObject *) src;
760 return (void *) dest;
761 }
762
763 #define new_wxCalendarEvent(_swigarg0,_swigarg1) (new wxCalendarEvent(_swigarg0,_swigarg1))
764 static PyObject *_wrap_new_wxCalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
765 PyObject * _resultobj;
766 wxCalendarEvent * _result;
767 wxCalendarCtrl * _arg0;
768 wxEventType _arg1;
769 PyObject * _argo0 = 0;
770 char *_kwnames[] = { "cal","type", NULL };
771 char _ptemp[128];
772
773 self = self;
774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxCalendarEvent",_kwnames,&_argo0,&_arg1))
775 return NULL;
776 if (_argo0) {
777 if (_argo0 == Py_None) { _arg0 = NULL; }
778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarEvent. Expected _wxCalendarCtrl_p.");
780 return NULL;
781 }
782 }
783 {
784 wxPy_BEGIN_ALLOW_THREADS;
785 _result = (wxCalendarEvent *)new_wxCalendarEvent(_arg0,_arg1);
786
787 wxPy_END_ALLOW_THREADS;
788 } if (_result) {
789 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarEvent_p");
790 _resultobj = Py_BuildValue("s",_ptemp);
791 } else {
792 Py_INCREF(Py_None);
793 _resultobj = Py_None;
794 }
795 return _resultobj;
796 }
797
798 #define wxCalendarEvent_GetDate(_swigobj) (_swigobj->GetDate())
799 static PyObject *_wrap_wxCalendarEvent_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
800 PyObject * _resultobj;
801 wxDateTime * _result;
802 wxCalendarEvent * _arg0;
803 PyObject * _argo0 = 0;
804 char *_kwnames[] = { "self", NULL };
805 char _ptemp[128];
806
807 self = self;
808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetDate",_kwnames,&_argo0))
809 return NULL;
810 if (_argo0) {
811 if (_argo0 == Py_None) { _arg0 = NULL; }
812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) {
813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetDate. Expected _wxCalendarEvent_p.");
814 return NULL;
815 }
816 }
817 {
818 wxPy_BEGIN_ALLOW_THREADS;
819 const wxDateTime & _result_ref = wxCalendarEvent_GetDate(_arg0);
820 _result = (wxDateTime *) &_result_ref;
821
822 wxPy_END_ALLOW_THREADS;
823 } if (_result) {
824 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p");
825 _resultobj = Py_BuildValue("s",_ptemp);
826 } else {
827 Py_INCREF(Py_None);
828 _resultobj = Py_None;
829 }
830 return _resultobj;
831 }
832
833 #define wxCalendarEvent_GetWeekDay(_swigobj) (_swigobj->GetWeekDay())
834 static PyObject *_wrap_wxCalendarEvent_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
835 PyObject * _resultobj;
836 wxDateTime::WeekDay _result;
837 wxCalendarEvent * _arg0;
838 PyObject * _argo0 = 0;
839 char *_kwnames[] = { "self", NULL };
840
841 self = self;
842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetWeekDay",_kwnames,&_argo0))
843 return NULL;
844 if (_argo0) {
845 if (_argo0 == Py_None) { _arg0 = NULL; }
846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) {
847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetWeekDay. Expected _wxCalendarEvent_p.");
848 return NULL;
849 }
850 }
851 {
852 wxPy_BEGIN_ALLOW_THREADS;
853 _result = (wxDateTime::WeekDay )wxCalendarEvent_GetWeekDay(_arg0);
854
855 wxPy_END_ALLOW_THREADS;
856 } _resultobj = Py_BuildValue("i",_result);
857 return _resultobj;
858 }
859
860 static void *SwigwxCalendarCtrlTowxControl(void *ptr) {
861 wxCalendarCtrl *src;
862 wxControl *dest;
863 src = (wxCalendarCtrl *) ptr;
864 dest = (wxControl *) src;
865 return (void *) dest;
866 }
867
868 static void *SwigwxCalendarCtrlTowxWindow(void *ptr) {
869 wxCalendarCtrl *src;
870 wxWindow *dest;
871 src = (wxCalendarCtrl *) ptr;
872 dest = (wxWindow *) src;
873 return (void *) dest;
874 }
875
876 static void *SwigwxCalendarCtrlTowxEvtHandler(void *ptr) {
877 wxCalendarCtrl *src;
878 wxEvtHandler *dest;
879 src = (wxCalendarCtrl *) ptr;
880 dest = (wxEvtHandler *) src;
881 return (void *) dest;
882 }
883
884 static void *SwigwxCalendarCtrlTowxObject(void *ptr) {
885 wxCalendarCtrl *src;
886 wxObject *dest;
887 src = (wxCalendarCtrl *) ptr;
888 dest = (wxObject *) src;
889 return (void *) dest;
890 }
891
892 #define new_wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
893 static PyObject *_wrap_new_wxCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
894 PyObject * _resultobj;
895 wxCalendarCtrl * _result;
896 wxWindow * _arg0;
897 wxWindowID _arg1;
898 wxDateTime * _arg2 = (wxDateTime *) &wxDefaultDateTime;
899 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
900 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
901 long _arg5 = (long ) (wxCAL_SHOW_HOLIDAYS);
902 char * _arg6 = (char *) "calendar";
903 PyObject * _argo0 = 0;
904 PyObject * _argo2 = 0;
905 wxPoint temp;
906 PyObject * _obj3 = 0;
907 wxSize temp0;
908 PyObject * _obj4 = 0;
909 char *_kwnames[] = { "parent","id","date","pos","size","style","name", NULL };
910 char _ptemp[128];
911
912 self = self;
913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOls:new_wxCalendarCtrl",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6))
914 return NULL;
915 if (_argo0) {
916 if (_argo0 == Py_None) { _arg0 = NULL; }
917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarCtrl. Expected _wxWindow_p.");
919 return NULL;
920 }
921 }
922 if (_argo2) {
923 if (_argo2 == Py_None) { _arg2 = NULL; }
924 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) {
925 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxCalendarCtrl. Expected _wxDateTime_p.");
926 return NULL;
927 }
928 }
929 if (_obj3)
930 {
931 _arg3 = &temp;
932 if (! wxPoint_helper(_obj3, &_arg3))
933 return NULL;
934 }
935 if (_obj4)
936 {
937 _arg4 = &temp0;
938 if (! wxSize_helper(_obj4, &_arg4))
939 return NULL;
940 }
941 {
942 wxPy_BEGIN_ALLOW_THREADS;
943 _result = (wxCalendarCtrl *)new_wxCalendarCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
944
945 wxPy_END_ALLOW_THREADS;
946 } if (_result) {
947 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p");
948 _resultobj = Py_BuildValue("s",_ptemp);
949 } else {
950 Py_INCREF(Py_None);
951 _resultobj = Py_None;
952 }
953 return _resultobj;
954 }
955
956 #define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0))
957 static PyObject *_wrap_wxCalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
958 PyObject * _resultobj;
959 wxCalendarCtrl * _arg0;
960 wxDateTime * _arg1;
961 PyObject * _argo0 = 0;
962 PyObject * _argo1 = 0;
963 char *_kwnames[] = { "self","date", NULL };
964
965 self = self;
966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarCtrl_SetDate",_kwnames,&_argo0,&_argo1))
967 return NULL;
968 if (_argo0) {
969 if (_argo0 == Py_None) { _arg0 = NULL; }
970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p.");
972 return NULL;
973 }
974 }
975 if (_argo1) {
976 if (_argo1 == Py_None) { _arg1 = NULL; }
977 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) {
978 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p.");
979 return NULL;
980 }
981 }
982 {
983 wxPy_BEGIN_ALLOW_THREADS;
984 wxCalendarCtrl_SetDate(_arg0,*_arg1);
985
986 wxPy_END_ALLOW_THREADS;
987 } Py_INCREF(Py_None);
988 _resultobj = Py_None;
989 return _resultobj;
990 }
991
992 #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate())
993 static PyObject *_wrap_wxCalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
994 PyObject * _resultobj;
995 wxDateTime * _result;
996 wxCalendarCtrl * _arg0;
997 PyObject * _argo0 = 0;
998 char *_kwnames[] = { "self", NULL };
999 char _ptemp[128];
1000
1001 self = self;
1002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetDate",_kwnames,&_argo0))
1003 return NULL;
1004 if (_argo0) {
1005 if (_argo0 == Py_None) { _arg0 = NULL; }
1006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p.");
1008 return NULL;
1009 }
1010 }
1011 {
1012 wxPy_BEGIN_ALLOW_THREADS;
1013 const wxDateTime & _result_ref = wxCalendarCtrl_GetDate(_arg0);
1014 _result = (wxDateTime *) &_result_ref;
1015
1016 wxPy_END_ALLOW_THREADS;
1017 } if (_result) {
1018 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p");
1019 _resultobj = Py_BuildValue("s",_ptemp);
1020 } else {
1021 Py_INCREF(Py_None);
1022 _resultobj = Py_None;
1023 }
1024 return _resultobj;
1025 }
1026
1027 #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0))
1028 static PyObject *_wrap_wxCalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1029 PyObject * _resultobj;
1030 wxCalendarCtrl * _arg0;
1031 bool _arg1 = (bool ) TRUE;
1032 PyObject * _argo0 = 0;
1033 int tempbool1 = (int) TRUE;
1034 char *_kwnames[] = { "self","enable", NULL };
1035
1036 self = self;
1037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames,&_argo0,&tempbool1))
1038 return NULL;
1039 if (_argo0) {
1040 if (_argo0 == Py_None) { _arg0 = NULL; }
1041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p.");
1043 return NULL;
1044 }
1045 }
1046 _arg1 = (bool ) tempbool1;
1047 {
1048 wxPy_BEGIN_ALLOW_THREADS;
1049 wxCalendarCtrl_EnableYearChange(_arg0,_arg1);
1050
1051 wxPy_END_ALLOW_THREADS;
1052 } Py_INCREF(Py_None);
1053 _resultobj = Py_None;
1054 return _resultobj;
1055 }
1056
1057 #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0))
1058 static PyObject *_wrap_wxCalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject * _resultobj;
1060 wxCalendarCtrl * _arg0;
1061 bool _arg1 = (bool ) TRUE;
1062 PyObject * _argo0 = 0;
1063 int tempbool1 = (int) TRUE;
1064 char *_kwnames[] = { "self","enable", NULL };
1065
1066 self = self;
1067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames,&_argo0,&tempbool1))
1068 return NULL;
1069 if (_argo0) {
1070 if (_argo0 == Py_None) { _arg0 = NULL; }
1071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p.");
1073 return NULL;
1074 }
1075 }
1076 _arg1 = (bool ) tempbool1;
1077 {
1078 wxPy_BEGIN_ALLOW_THREADS;
1079 wxCalendarCtrl_EnableMonthChange(_arg0,_arg1);
1080
1081 wxPy_END_ALLOW_THREADS;
1082 } Py_INCREF(Py_None);
1083 _resultobj = Py_None;
1084 return _resultobj;
1085 }
1086
1087 #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0))
1088 static PyObject *_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
1089 PyObject * _resultobj;
1090 wxCalendarCtrl * _arg0;
1091 bool _arg1 = (bool ) TRUE;
1092 PyObject * _argo0 = 0;
1093 int tempbool1 = (int) TRUE;
1094 char *_kwnames[] = { "self","display", NULL };
1095
1096 self = self;
1097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames,&_argo0,&tempbool1))
1098 return NULL;
1099 if (_argo0) {
1100 if (_argo0 == Py_None) { _arg0 = NULL; }
1101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p.");
1103 return NULL;
1104 }
1105 }
1106 _arg1 = (bool ) tempbool1;
1107 {
1108 wxPy_BEGIN_ALLOW_THREADS;
1109 wxCalendarCtrl_EnableHolidayDisplay(_arg0,_arg1);
1110
1111 wxPy_END_ALLOW_THREADS;
1112 } Py_INCREF(Py_None);
1113 _resultobj = Py_None;
1114 return _resultobj;
1115 }
1116
1117 #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1))
1118 static PyObject *_wrap_wxCalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1119 PyObject * _resultobj;
1120 wxCalendarCtrl * _arg0;
1121 wxColour * _arg1;
1122 wxColour * _arg2;
1123 PyObject * _argo0 = 0;
1124 wxColour temp;
1125 PyObject * _obj1 = 0;
1126 wxColour temp0;
1127 PyObject * _obj2 = 0;
1128 char *_kwnames[] = { "self","colFg","colBg", NULL };
1129
1130 self = self;
1131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames,&_argo0,&_obj1,&_obj2))
1132 return NULL;
1133 if (_argo0) {
1134 if (_argo0 == Py_None) { _arg0 = NULL; }
1135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p.");
1137 return NULL;
1138 }
1139 }
1140 {
1141 _arg1 = &temp;
1142 if (! wxColour_helper(_obj1, &_arg1))
1143 return NULL;
1144 }
1145 {
1146 _arg2 = &temp0;
1147 if (! wxColour_helper(_obj2, &_arg2))
1148 return NULL;
1149 }
1150 {
1151 wxPy_BEGIN_ALLOW_THREADS;
1152 wxCalendarCtrl_SetHeaderColours(_arg0,*_arg1,*_arg2);
1153
1154 wxPy_END_ALLOW_THREADS;
1155 } Py_INCREF(Py_None);
1156 _resultobj = Py_None;
1157 return _resultobj;
1158 }
1159
1160 #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg())
1161 static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1162 PyObject * _resultobj;
1163 wxColour * _result;
1164 wxCalendarCtrl * _arg0;
1165 PyObject * _argo0 = 0;
1166 char *_kwnames[] = { "self", NULL };
1167 char _ptemp[128];
1168
1169 self = self;
1170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames,&_argo0))
1171 return NULL;
1172 if (_argo0) {
1173 if (_argo0 == Py_None) { _arg0 = NULL; }
1174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p.");
1176 return NULL;
1177 }
1178 }
1179 {
1180 wxPy_BEGIN_ALLOW_THREADS;
1181 const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourFg(_arg0);
1182 _result = (wxColour *) &_result_ref;
1183
1184 wxPy_END_ALLOW_THREADS;
1185 } if (_result) {
1186 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1187 _resultobj = Py_BuildValue("s",_ptemp);
1188 } else {
1189 Py_INCREF(Py_None);
1190 _resultobj = Py_None;
1191 }
1192 return _resultobj;
1193 }
1194
1195 #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg())
1196 static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1197 PyObject * _resultobj;
1198 wxColour * _result;
1199 wxCalendarCtrl * _arg0;
1200 PyObject * _argo0 = 0;
1201 char *_kwnames[] = { "self", NULL };
1202 char _ptemp[128];
1203
1204 self = self;
1205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames,&_argo0))
1206 return NULL;
1207 if (_argo0) {
1208 if (_argo0 == Py_None) { _arg0 = NULL; }
1209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p.");
1211 return NULL;
1212 }
1213 }
1214 {
1215 wxPy_BEGIN_ALLOW_THREADS;
1216 const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourBg(_arg0);
1217 _result = (wxColour *) &_result_ref;
1218
1219 wxPy_END_ALLOW_THREADS;
1220 } if (_result) {
1221 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1222 _resultobj = Py_BuildValue("s",_ptemp);
1223 } else {
1224 Py_INCREF(Py_None);
1225 _resultobj = Py_None;
1226 }
1227 return _resultobj;
1228 }
1229
1230 #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1))
1231 static PyObject *_wrap_wxCalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1232 PyObject * _resultobj;
1233 wxCalendarCtrl * _arg0;
1234 wxColour * _arg1;
1235 wxColour * _arg2;
1236 PyObject * _argo0 = 0;
1237 wxColour temp;
1238 PyObject * _obj1 = 0;
1239 wxColour temp0;
1240 PyObject * _obj2 = 0;
1241 char *_kwnames[] = { "self","colFg","colBg", NULL };
1242
1243 self = self;
1244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames,&_argo0,&_obj1,&_obj2))
1245 return NULL;
1246 if (_argo0) {
1247 if (_argo0 == Py_None) { _arg0 = NULL; }
1248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p.");
1250 return NULL;
1251 }
1252 }
1253 {
1254 _arg1 = &temp;
1255 if (! wxColour_helper(_obj1, &_arg1))
1256 return NULL;
1257 }
1258 {
1259 _arg2 = &temp0;
1260 if (! wxColour_helper(_obj2, &_arg2))
1261 return NULL;
1262 }
1263 {
1264 wxPy_BEGIN_ALLOW_THREADS;
1265 wxCalendarCtrl_SetHighlightColours(_arg0,*_arg1,*_arg2);
1266
1267 wxPy_END_ALLOW_THREADS;
1268 } Py_INCREF(Py_None);
1269 _resultobj = Py_None;
1270 return _resultobj;
1271 }
1272
1273 #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg())
1274 static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1275 PyObject * _resultobj;
1276 wxColour * _result;
1277 wxCalendarCtrl * _arg0;
1278 PyObject * _argo0 = 0;
1279 char *_kwnames[] = { "self", NULL };
1280 char _ptemp[128];
1281
1282 self = self;
1283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames,&_argo0))
1284 return NULL;
1285 if (_argo0) {
1286 if (_argo0 == Py_None) { _arg0 = NULL; }
1287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p.");
1289 return NULL;
1290 }
1291 }
1292 {
1293 wxPy_BEGIN_ALLOW_THREADS;
1294 const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourFg(_arg0);
1295 _result = (wxColour *) &_result_ref;
1296
1297 wxPy_END_ALLOW_THREADS;
1298 } if (_result) {
1299 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1300 _resultobj = Py_BuildValue("s",_ptemp);
1301 } else {
1302 Py_INCREF(Py_None);
1303 _resultobj = Py_None;
1304 }
1305 return _resultobj;
1306 }
1307
1308 #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg())
1309 static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1310 PyObject * _resultobj;
1311 wxColour * _result;
1312 wxCalendarCtrl * _arg0;
1313 PyObject * _argo0 = 0;
1314 char *_kwnames[] = { "self", NULL };
1315 char _ptemp[128];
1316
1317 self = self;
1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames,&_argo0))
1319 return NULL;
1320 if (_argo0) {
1321 if (_argo0 == Py_None) { _arg0 = NULL; }
1322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p.");
1324 return NULL;
1325 }
1326 }
1327 {
1328 wxPy_BEGIN_ALLOW_THREADS;
1329 const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourBg(_arg0);
1330 _result = (wxColour *) &_result_ref;
1331
1332 wxPy_END_ALLOW_THREADS;
1333 } if (_result) {
1334 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1335 _resultobj = Py_BuildValue("s",_ptemp);
1336 } else {
1337 Py_INCREF(Py_None);
1338 _resultobj = Py_None;
1339 }
1340 return _resultobj;
1341 }
1342
1343 #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1))
1344 static PyObject *_wrap_wxCalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1345 PyObject * _resultobj;
1346 wxCalendarCtrl * _arg0;
1347 wxColour * _arg1;
1348 wxColour * _arg2;
1349 PyObject * _argo0 = 0;
1350 wxColour temp;
1351 PyObject * _obj1 = 0;
1352 wxColour temp0;
1353 PyObject * _obj2 = 0;
1354 char *_kwnames[] = { "self","colFg","colBg", NULL };
1355
1356 self = self;
1357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames,&_argo0,&_obj1,&_obj2))
1358 return NULL;
1359 if (_argo0) {
1360 if (_argo0 == Py_None) { _arg0 = NULL; }
1361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p.");
1363 return NULL;
1364 }
1365 }
1366 {
1367 _arg1 = &temp;
1368 if (! wxColour_helper(_obj1, &_arg1))
1369 return NULL;
1370 }
1371 {
1372 _arg2 = &temp0;
1373 if (! wxColour_helper(_obj2, &_arg2))
1374 return NULL;
1375 }
1376 {
1377 wxPy_BEGIN_ALLOW_THREADS;
1378 wxCalendarCtrl_SetHolidayColours(_arg0,*_arg1,*_arg2);
1379
1380 wxPy_END_ALLOW_THREADS;
1381 } Py_INCREF(Py_None);
1382 _resultobj = Py_None;
1383 return _resultobj;
1384 }
1385
1386 #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg())
1387 static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1388 PyObject * _resultobj;
1389 wxColour * _result;
1390 wxCalendarCtrl * _arg0;
1391 PyObject * _argo0 = 0;
1392 char *_kwnames[] = { "self", NULL };
1393 char _ptemp[128];
1394
1395 self = self;
1396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames,&_argo0))
1397 return NULL;
1398 if (_argo0) {
1399 if (_argo0 == Py_None) { _arg0 = NULL; }
1400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourFg. Expected _wxCalendarCtrl_p.");
1402 return NULL;
1403 }
1404 }
1405 {
1406 wxPy_BEGIN_ALLOW_THREADS;
1407 const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourFg(_arg0);
1408 _result = (wxColour *) &_result_ref;
1409
1410 wxPy_END_ALLOW_THREADS;
1411 } if (_result) {
1412 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1413 _resultobj = Py_BuildValue("s",_ptemp);
1414 } else {
1415 Py_INCREF(Py_None);
1416 _resultobj = Py_None;
1417 }
1418 return _resultobj;
1419 }
1420
1421 #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg())
1422 static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1423 PyObject * _resultobj;
1424 wxColour * _result;
1425 wxCalendarCtrl * _arg0;
1426 PyObject * _argo0 = 0;
1427 char *_kwnames[] = { "self", NULL };
1428 char _ptemp[128];
1429
1430 self = self;
1431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames,&_argo0))
1432 return NULL;
1433 if (_argo0) {
1434 if (_argo0 == Py_None) { _arg0 = NULL; }
1435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p.");
1437 return NULL;
1438 }
1439 }
1440 {
1441 wxPy_BEGIN_ALLOW_THREADS;
1442 const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourBg(_arg0);
1443 _result = (wxColour *) &_result_ref;
1444
1445 wxPy_END_ALLOW_THREADS;
1446 } if (_result) {
1447 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1448 _resultobj = Py_BuildValue("s",_ptemp);
1449 } else {
1450 Py_INCREF(Py_None);
1451 _resultobj = Py_None;
1452 }
1453 return _resultobj;
1454 }
1455
1456 #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0))
1457 static PyObject *_wrap_wxCalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1458 PyObject * _resultobj;
1459 wxCalendarDateAttr * _result;
1460 wxCalendarCtrl * _arg0;
1461 size_t _arg1;
1462 PyObject * _argo0 = 0;
1463 char *_kwnames[] = { "self","day", NULL };
1464 char _ptemp[128];
1465
1466 self = self;
1467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_GetAttr",_kwnames,&_argo0,&_arg1))
1468 return NULL;
1469 if (_argo0) {
1470 if (_argo0 == Py_None) { _arg0 = NULL; }
1471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p.");
1473 return NULL;
1474 }
1475 }
1476 {
1477 wxPy_BEGIN_ALLOW_THREADS;
1478 _result = (wxCalendarDateAttr *)wxCalendarCtrl_GetAttr(_arg0,_arg1);
1479
1480 wxPy_END_ALLOW_THREADS;
1481 } if (_result) {
1482 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p");
1483 _resultobj = Py_BuildValue("s",_ptemp);
1484 } else {
1485 Py_INCREF(Py_None);
1486 _resultobj = Py_None;
1487 }
1488 return _resultobj;
1489 }
1490
1491 #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1))
1492 static PyObject *_wrap_wxCalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1493 PyObject * _resultobj;
1494 wxCalendarCtrl * _arg0;
1495 size_t _arg1;
1496 wxCalendarDateAttr * _arg2;
1497 PyObject * _argo0 = 0;
1498 PyObject * _argo2 = 0;
1499 char *_kwnames[] = { "self","day","attr", NULL };
1500
1501 self = self;
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxCalendarCtrl_SetAttr",_kwnames,&_argo0,&_arg1,&_argo2))
1503 return NULL;
1504 if (_argo0) {
1505 if (_argo0 == Py_None) { _arg0 = NULL; }
1506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p.");
1508 return NULL;
1509 }
1510 }
1511 if (_argo2) {
1512 if (_argo2 == Py_None) { _arg2 = NULL; }
1513 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCalendarDateAttr_p")) {
1514 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p.");
1515 return NULL;
1516 }
1517 }
1518 {
1519 wxPy_BEGIN_ALLOW_THREADS;
1520 wxCalendarCtrl_SetAttr(_arg0,_arg1,_arg2);
1521
1522 wxPy_END_ALLOW_THREADS;
1523 } Py_INCREF(Py_None);
1524 _resultobj = Py_None;
1525 return _resultobj;
1526 }
1527
1528 #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0))
1529 static PyObject *_wrap_wxCalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
1530 PyObject * _resultobj;
1531 wxCalendarCtrl * _arg0;
1532 size_t _arg1;
1533 PyObject * _argo0 = 0;
1534 char *_kwnames[] = { "self","day", NULL };
1535
1536 self = self;
1537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_SetHoliday",_kwnames,&_argo0,&_arg1))
1538 return NULL;
1539 if (_argo0) {
1540 if (_argo0 == Py_None) { _arg0 = NULL; }
1541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p.");
1543 return NULL;
1544 }
1545 }
1546 {
1547 wxPy_BEGIN_ALLOW_THREADS;
1548 wxCalendarCtrl_SetHoliday(_arg0,_arg1);
1549
1550 wxPy_END_ALLOW_THREADS;
1551 } Py_INCREF(Py_None);
1552 _resultobj = Py_None;
1553 return _resultobj;
1554 }
1555
1556 #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0))
1557 static PyObject *_wrap_wxCalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1558 PyObject * _resultobj;
1559 wxCalendarCtrl * _arg0;
1560 size_t _arg1;
1561 PyObject * _argo0 = 0;
1562 char *_kwnames[] = { "self","day", NULL };
1563
1564 self = self;
1565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_ResetAttr",_kwnames,&_argo0,&_arg1))
1566 return NULL;
1567 if (_argo0) {
1568 if (_argo0 == Py_None) { _arg0 = NULL; }
1569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_ResetAttr. Expected _wxCalendarCtrl_p.");
1571 return NULL;
1572 }
1573 }
1574 {
1575 wxPy_BEGIN_ALLOW_THREADS;
1576 wxCalendarCtrl_ResetAttr(_arg0,_arg1);
1577
1578 wxPy_END_ALLOW_THREADS;
1579 } Py_INCREF(Py_None);
1580 _resultobj = Py_None;
1581 return _resultobj;
1582 }
1583
1584 #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2))
1585 static PyObject *_wrap_wxCalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
1586 PyObject * _resultobj;
1587 wxCalendarHitTestResult _result;
1588 wxCalendarCtrl * _arg0;
1589 wxPoint * _arg1;
1590 wxDateTime * _arg2 = (wxDateTime *) NULL;
1591 wxDateTime::WeekDay * _arg3 = (wxDateTime::WeekDay *) NULL;
1592 PyObject * _argo0 = 0;
1593 wxPoint temp;
1594 PyObject * _obj1 = 0;
1595 PyObject * _argo2 = 0;
1596 PyObject * _argo3 = 0;
1597 char *_kwnames[] = { "self","pos","date","wd", NULL };
1598
1599 self = self;
1600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxCalendarCtrl_HitTest",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
1601 return NULL;
1602 if (_argo0) {
1603 if (_argo0 == Py_None) { _arg0 = NULL; }
1604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p.");
1606 return NULL;
1607 }
1608 }
1609 {
1610 _arg1 = &temp;
1611 if (! wxPoint_helper(_obj1, &_arg1))
1612 return NULL;
1613 }
1614 if (_argo2) {
1615 if (_argo2 == Py_None) { _arg2 = NULL; }
1616 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) {
1617 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p.");
1618 return NULL;
1619 }
1620 }
1621 if (_argo3) {
1622 if (_argo3 == Py_None) { _arg3 = NULL; }
1623 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime::WeekDay_p")) {
1624 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p.");
1625 return NULL;
1626 }
1627 }
1628 {
1629 wxPy_BEGIN_ALLOW_THREADS;
1630 _result = (wxCalendarHitTestResult )wxCalendarCtrl_HitTest(_arg0,*_arg1,_arg2,_arg3);
1631
1632 wxPy_END_ALLOW_THREADS;
1633 } _resultobj = Py_BuildValue("i",_result);
1634 return _resultobj;
1635 }
1636
1637 static PyMethodDef calendarcMethods[] = {
1638 { "wxCalendarCtrl_HitTest", (PyCFunction) _wrap_wxCalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
1639 { "wxCalendarCtrl_ResetAttr", (PyCFunction) _wrap_wxCalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS },
1640 { "wxCalendarCtrl_SetHoliday", (PyCFunction) _wrap_wxCalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS },
1641 { "wxCalendarCtrl_SetAttr", (PyCFunction) _wrap_wxCalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS },
1642 { "wxCalendarCtrl_GetAttr", (PyCFunction) _wrap_wxCalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS },
1643 { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS },
1644 { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS },
1645 { "wxCalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS },
1646 { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS },
1647 { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS },
1648 { "wxCalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS },
1649 { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS },
1650 { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS },
1651 { "wxCalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS },
1652 { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_wxCalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS },
1653 { "wxCalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS },
1654 { "wxCalendarCtrl_EnableYearChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS },
1655 { "wxCalendarCtrl_GetDate", (PyCFunction) _wrap_wxCalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS },
1656 { "wxCalendarCtrl_SetDate", (PyCFunction) _wrap_wxCalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS },
1657 { "new_wxCalendarCtrl", (PyCFunction) _wrap_new_wxCalendarCtrl, METH_VARARGS | METH_KEYWORDS },
1658 { "wxCalendarEvent_GetWeekDay", (PyCFunction) _wrap_wxCalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
1659 { "wxCalendarEvent_GetDate", (PyCFunction) _wrap_wxCalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS },
1660 { "new_wxCalendarEvent", (PyCFunction) _wrap_new_wxCalendarEvent, METH_VARARGS | METH_KEYWORDS },
1661 { "wxCalendarDateAttr_GetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS },
1662 { "wxCalendarDateAttr_GetFont", (PyCFunction) _wrap_wxCalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
1663 { "wxCalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS },
1664 { "wxCalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1665 { "wxCalendarDateAttr_GetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
1666 { "wxCalendarDateAttr_IsHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS },
1667 { "wxCalendarDateAttr_HasBorder", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS },
1668 { "wxCalendarDateAttr_HasFont", (PyCFunction) _wrap_wxCalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
1669 { "wxCalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS },
1670 { "wxCalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1671 { "wxCalendarDateAttr_HasTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
1672 { "wxCalendarDateAttr_SetHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS },
1673 { "wxCalendarDateAttr_SetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS },
1674 { "wxCalendarDateAttr_SetFont", (PyCFunction) _wrap_wxCalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
1675 { "wxCalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS },
1676 { "wxCalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1677 { "wxCalendarDateAttr_SetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
1678 { "new_wxCalendarDateAttrBorder", (PyCFunction) _wrap_new_wxCalendarDateAttrBorder, METH_VARARGS | METH_KEYWORDS },
1679 { "new_wxCalendarDateAttr", (PyCFunction) _wrap_new_wxCalendarDateAttr, METH_VARARGS | METH_KEYWORDS },
1680 { NULL, NULL }
1681 };
1682 #ifdef __cplusplus
1683 }
1684 #endif
1685 /*
1686 * This table is used by the pointer type-checker
1687 */
1688 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1689 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1690 { "_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1691 { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1692 { "_wxEvent","_class_wxEvent",0},
1693 { "_class_wxActivateEvent","_wxActivateEvent",0},
1694 { "_signed_long","_long",0},
1695 { "_wxMenuEvent","_class_wxMenuEvent",0},
1696 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
1697 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
1698 { "_class_wxPyCommandEvent","_wxPyCommandEvent",0},
1699 { "_class_wxDateTime","_wxDateTime",0},
1700 { "_wxPrintQuality","_wxCoord",0},
1701 { "_wxPrintQuality","_int",0},
1702 { "_wxPrintQuality","_signed_int",0},
1703 { "_wxPrintQuality","_unsigned_int",0},
1704 { "_wxPrintQuality","_wxWindowID",0},
1705 { "_wxPrintQuality","_uint",0},
1706 { "_wxPrintQuality","_EBool",0},
1707 { "_wxPrintQuality","_size_t",0},
1708 { "_wxPrintQuality","_time_t",0},
1709 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
1710 { "_wxSpinCtrl","_class_wxSpinCtrl",0},
1711 { "_class_wxRegionIterator","_wxRegionIterator",0},
1712 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
1713 { "_class_wxMenuBar","_wxMenuBar",0},
1714 { "_class_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
1715 { "_class_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
1716 { "_class_wxEvtHandler","_wxEvtHandler",0},
1717 { "_wxPaintEvent","_class_wxPaintEvent",0},
1718 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1719 { "_wxCursor","_class_wxCursor",0},
1720 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
1721 { "_wxMask","_class_wxMask",0},
1722 { "_wxPen","_class_wxPen",0},
1723 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
1724 { "_byte","_unsigned_char",0},
1725 { "_wxDataObject","_class_wxDataObject",0},
1726 { "_wxStaticBox","_class_wxStaticBox",0},
1727 { "_wxColourDatabase","_class_wxColourDatabase",0},
1728 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
1729 { "_wxPyDropSource","_class_wxPyDropSource",0},
1730 { "_wxChoice","_class_wxChoice",0},
1731 { "_wxSlider","_class_wxSlider",0},
1732 { "_long","_unsigned_long",0},
1733 { "_long","_signed_long",0},
1734 { "_wxImageList","_class_wxImageList",0},
1735 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
1736 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
1737 { "_wxBitmapButton","_class_wxBitmapButton",0},
1738 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1739 { "_class_wxClipboard","_wxClipboard",0},
1740 { "_class_wxGauge","_wxGauge",0},
1741 { "_wxGDIObject","_class_wxGDIObject",0},
1742 { "_wxDC","_class_wxDC",0},
1743 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
1744 { "_class_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
1745 { "_class_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
1746 { "_class_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject},
1747 { "_class_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject},
1748 { "_class_wxObject","_wxObject",0},
1749 { "_wxSpinEvent","_class_wxSpinEvent",0},
1750 { "_size_t","_wxCoord",0},
1751 { "_size_t","_wxPrintQuality",0},
1752 { "_size_t","_time_t",0},
1753 { "_size_t","_unsigned_int",0},
1754 { "_size_t","_int",0},
1755 { "_size_t","_wxWindowID",0},
1756 { "_size_t","_uint",0},
1757 { "_class_wxRealPoint","_wxRealPoint",0},
1758 { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0},
1759 { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0},
1760 { "_class_wxMenuItem","_wxMenuItem",0},
1761 { "_class_wxPaintEvent","_wxPaintEvent",0},
1762 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
1763 { "_wxPanel","_class_wxPanel",0},
1764 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
1765 { "_wxCheckBox","_class_wxCheckBox",0},
1766 { "_wxPyEvent","_class_wxPyEvent",0},
1767 { "_wxTextCtrl","_class_wxTextCtrl",0},
1768 { "_class_wxMask","_wxMask",0},
1769 { "_wxTextDataObject","_class_wxTextDataObject",0},
1770 { "_class_wxKeyEvent","_wxKeyEvent",0},
1771 { "_wxFileConfig","_class_wxFileConfig",0},
1772 { "_wxColour","_class_wxColour",0},
1773 { "_class_wxDialog","_wxDialog",0},
1774 { "_class_wxFileDataObject","_wxFileDataObject",0},
1775 { "_wxIdleEvent","_class_wxIdleEvent",0},
1776 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
1777 { "_class_wxDataObject","_wxDataObject",0},
1778 { "_wxStaticLine","_class_wxStaticLine",0},
1779 { "_wxBrush","_class_wxBrush",0},
1780 { "_wxToggleButton","_class_wxToggleButton",0},
1781 { "_wxDataFormat","_class_wxDataFormat",0},
1782 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
1783 { "_wxShowEvent","_class_wxShowEvent",0},
1784 { "_uint","_wxCoord",0},
1785 { "_uint","_wxPrintQuality",0},
1786 { "_uint","_time_t",0},
1787 { "_uint","_size_t",0},
1788 { "_uint","_unsigned_int",0},
1789 { "_uint","_int",0},
1790 { "_uint","_wxWindowID",0},
1791 { "_wxChar","_char",0},
1792 { "_wxPyValidator","_class_wxPyValidator",0},
1793 { "_class_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1794 { "_class_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1795 { "_class_wxEvent","_wxEvent",0},
1796 { "_wxCheckListBox","_class_wxCheckListBox",0},
1797 { "_wxRect","_class_wxRect",0},
1798 { "_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
1799 { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
1800 { "_wxCommandEvent","_class_wxCommandEvent",0},
1801 { "_wxSizeEvent","_class_wxSizeEvent",0},
1802 { "_wxPoint","_class_wxPoint",0},
1803 { "_class_wxButton","_wxButton",0},
1804 { "_wxRadioBox","_class_wxRadioBox",0},
1805 { "_class_wxSpinCtrl","_wxSpinCtrl",0},
1806 { "_char","_wxChar",0},
1807 { "_wxBitmap","_class_wxBitmap",0},
1808 { "_wxPenList","_class_wxPenList",0},
1809 { "_wxWindowDC","_class_wxWindowDC",0},
1810 { "_wxTimerEvent","_class_wxTimerEvent",0},
1811 { "_wxScrollBar","_class_wxScrollBar",0},
1812 { "_wxSpinButton","_class_wxSpinButton",0},
1813 { "_wxCalendarEvent","_class_wxCalendarEvent",0},
1814 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1815 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
1816 { "_class_wxValidator","_wxValidator",0},
1817 { "_class_wxPyEvent","_wxPyEvent",0},
1818 { "_wxConfig","_class_wxConfig",0},
1819 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
1820 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
1821 { "_class_wxFileConfig","_wxFileConfig",0},
1822 { "_wxDropTarget","_class_wxDropTarget",0},
1823 { "_class_wxStaticLine","_wxStaticLine",0},
1824 { "_class_wxColourDatabase","_wxColourDatabase",0},
1825 { "_wxScrollEvent","_class_wxScrollEvent",0},
1826 { "_EBool","_wxCoord",0},
1827 { "_EBool","_wxPrintQuality",0},
1828 { "_EBool","_signed_int",0},
1829 { "_EBool","_int",0},
1830 { "_EBool","_wxWindowID",0},
1831 { "_class_wxRegion","_wxRegion",0},
1832 { "_class_wxDataFormat","_wxDataFormat",0},
1833 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
1834 { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0},
1835 { "_wxStaticText","_class_wxStaticText",0},
1836 { "_wxFont","_class_wxFont",0},
1837 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
1838 { "_wxCloseEvent","_class_wxCloseEvent",0},
1839 { "_unsigned_long","_long",0},
1840 { "_class_wxRect","_wxRect",0},
1841 { "_class_wxDC","_wxDC",0},
1842 { "_wxScrollWinEvent","_class_wxScrollWinEvent",0},
1843 { "_class_wxBrushList","_wxBrushList",0},
1844 { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0},
1845 { "_class_wxPenList","_wxPenList",0},
1846 { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0},
1847 { "_wxTimeSpan","_class_wxTimeSpan",0},
1848 { "_wxFocusEvent","_class_wxFocusEvent",0},
1849 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
1850 { "_class_wxTimerEvent","_wxTimerEvent",0},
1851 { "_class_wxSpinButton","_wxSpinButton",0},
1852 { "_class_wxCalendarEvent","_wxCalendarEvent",0},
1853 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1854 { "_class_wxPanel","_wxPanel",0},
1855 { "_class_wxCheckBox","_wxCheckBox",0},
1856 { "_wxComboBox","_class_wxComboBox",0},
1857 { "_wxRadioButton","_class_wxRadioButton",0},
1858 { "_signed_int","_wxCoord",0},
1859 { "_signed_int","_wxPrintQuality",0},
1860 { "_signed_int","_EBool",0},
1861 { "_signed_int","_wxWindowID",0},
1862 { "_signed_int","_int",0},
1863 { "_class_wxTextCtrl","_wxTextCtrl",0},
1864 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1865 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
1866 { "_class_wxTextDataObject","_wxTextDataObject",0},
1867 { "_wxMenu","_class_wxMenu",0},
1868 { "_class_wxMoveEvent","_wxMoveEvent",0},
1869 { "_wxListBox","_class_wxListBox",0},
1870 { "_wxScreenDC","_class_wxScreenDC",0},
1871 { "_class_wxCalendarCtrl","_wxCalendarCtrl",0},
1872 { "_WXTYPE","_wxDateTime_t",0},
1873 { "_WXTYPE","_short",0},
1874 { "_WXTYPE","_signed_short",0},
1875 { "_WXTYPE","_unsigned_short",0},
1876 { "_class_wxDropTarget","_wxDropTarget",0},
1877 { "_class_wxBrush","_wxBrush",0},
1878 { "_unsigned_short","_wxDateTime_t",0},
1879 { "_unsigned_short","_WXTYPE",0},
1880 { "_unsigned_short","_short",0},
1881 { "_class_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
1882 { "_class_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
1883 { "_class_wxWindow","_wxWindow",0},
1884 { "_wxDateSpan","_class_wxDateSpan",0},
1885 { "_class_wxStaticText","_wxStaticText",0},
1886 { "_class_wxFont","_wxFont",0},
1887 { "_wxClipboard","_class_wxClipboard",0},
1888 { "_class_wxPyValidator","_wxPyValidator",0},
1889 { "_class_wxCloseEvent","_wxCloseEvent",0},
1890 { "_wxBusyInfo","_class_wxBusyInfo",0},
1891 { "_wxFontList","_class_wxFontList",0},
1892 { "_class_wxMenuEvent","_wxMenuEvent",0},
1893 { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
1894 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
1895 { "_wxClientDC","_class_wxClientDC",0},
1896 { "_wxMouseEvent","_class_wxMouseEvent",0},
1897 { "_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
1898 { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
1899 { "_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject},
1900 { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject},
1901 { "_wxObject","_class_wxObject",0},
1902 { "_class_wxPoint","_wxPoint",0},
1903 { "_wxRealPoint","_class_wxRealPoint",0},
1904 { "_class_wxRadioBox","_wxRadioBox",0},
1905 { "_signed_short","_WXTYPE",0},
1906 { "_signed_short","_short",0},
1907 { "_wxMemoryDC","_class_wxMemoryDC",0},
1908 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
1909 { "_wxPaintDC","_class_wxPaintDC",0},
1910 { "_class_wxWindowDC","_wxWindowDC",0},
1911 { "_class_wxFocusEvent","_wxFocusEvent",0},
1912 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
1913 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1914 { "_class_wxCursor","_wxCursor",0},
1915 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
1916 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
1917 { "_wxCalendarDateAttr","_class_wxCalendarDateAttr",0},
1918 { "_unsigned_char","_byte",0},
1919 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
1920 { "_class_wxMenu","_wxMenu",0},
1921 { "_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
1922 { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
1923 { "_wxControl","_class_wxControl",0},
1924 { "_class_wxListBox","_wxListBox",0},
1925 { "_unsigned_int","_wxCoord",0},
1926 { "_unsigned_int","_wxPrintQuality",0},
1927 { "_unsigned_int","_time_t",0},
1928 { "_unsigned_int","_size_t",0},
1929 { "_unsigned_int","_uint",0},
1930 { "_unsigned_int","_wxWindowID",0},
1931 { "_unsigned_int","_int",0},
1932 { "_wxIcon","_class_wxIcon",0},
1933 { "_wxDialog","_class_wxDialog",0},
1934 { "_class_wxPen","_wxPen",0},
1935 { "_wxConfigBase","_class_wxConfigBase",0},
1936 { "_short","_wxDateTime_t",0},
1937 { "_short","_WXTYPE",0},
1938 { "_short","_unsigned_short",0},
1939 { "_short","_signed_short",0},
1940 { "_class_wxStaticBox","_wxStaticBox",0},
1941 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
1942 { "_class_wxPyDropSource","_wxPyDropSource",0},
1943 { "_class_wxScrollEvent","_wxScrollEvent",0},
1944 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
1945 { "_class_wxChoice","_wxChoice",0},
1946 { "_class_wxSlider","_wxSlider",0},
1947 { "_class_wxImageList","_wxImageList",0},
1948 { "_class_wxBitmapButton","_wxBitmapButton",0},
1949 { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0},
1950 { "_wxWindowID","_wxCoord",0},
1951 { "_wxWindowID","_wxPrintQuality",0},
1952 { "_wxWindowID","_time_t",0},
1953 { "_wxWindowID","_size_t",0},
1954 { "_wxWindowID","_EBool",0},
1955 { "_wxWindowID","_uint",0},
1956 { "_wxWindowID","_int",0},
1957 { "_wxWindowID","_signed_int",0},
1958 { "_wxWindowID","_unsigned_int",0},
1959 { "_class_wxGDIObject","_wxGDIObject",0},
1960 { "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
1961 { "_int","_wxCoord",0},
1962 { "_int","_wxPrintQuality",0},
1963 { "_int","_time_t",0},
1964 { "_int","_size_t",0},
1965 { "_int","_EBool",0},
1966 { "_int","_uint",0},
1967 { "_int","_wxWindowID",0},
1968 { "_int","_unsigned_int",0},
1969 { "_int","_signed_int",0},
1970 { "_class_wxMouseEvent","_wxMouseEvent",0},
1971 { "_wxPyCommandEvent","_class_wxPyCommandEvent",0},
1972 { "_wxDateTime_t","_unsigned_short",0},
1973 { "_wxDateTime_t","_short",0},
1974 { "_wxDateTime_t","_WXTYPE",0},
1975 { "_class_wxSpinEvent","_wxSpinEvent",0},
1976 { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0},
1977 { "_wxDateTime","_class_wxDateTime",0},
1978 { "_time_t","_wxCoord",0},
1979 { "_time_t","_wxPrintQuality",0},
1980 { "_time_t","_unsigned_int",0},
1981 { "_time_t","_int",0},
1982 { "_time_t","_wxWindowID",0},
1983 { "_time_t","_uint",0},
1984 { "_time_t","_size_t",0},
1985 { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0},
1986 { "_wxButton","_class_wxButton",0},
1987 { "_wxSize","_class_wxSize",0},
1988 { "_wxRegionIterator","_class_wxRegionIterator",0},
1989 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
1990 { "_class_wxTimeSpan","_wxTimeSpan",0},
1991 { "_class_wxPaintDC","_wxPaintDC",0},
1992 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
1993 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
1994 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
1995 { "_class_wxComboBox","_wxComboBox",0},
1996 { "_class_wxRadioButton","_wxRadioButton",0},
1997 { "_wxValidator","_class_wxValidator",0},
1998 { "_class_wxCalendarDateAttr","_wxCalendarDateAttr",0},
1999 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
2000 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
2001 { "_class_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
2002 { "_class_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
2003 { "_class_wxControl","_wxControl",0},
2004 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
2005 { "_class_wxIcon","_wxIcon",0},
2006 { "_class_wxColour","_wxColour",0},
2007 { "_class_wxScreenDC","_wxScreenDC",0},
2008 { "_wxPalette","_class_wxPalette",0},
2009 { "_class_wxIdleEvent","_wxIdleEvent",0},
2010 { "_class_wxConfigBase","_wxConfigBase",0},
2011 { "_wxCoord","_int",0},
2012 { "_wxCoord","_signed_int",0},
2013 { "_wxCoord","_unsigned_int",0},
2014 { "_wxCoord","_wxWindowID",0},
2015 { "_wxCoord","_uint",0},
2016 { "_wxCoord","_EBool",0},
2017 { "_wxCoord","_size_t",0},
2018 { "_wxCoord","_time_t",0},
2019 { "_wxCoord","_wxPrintQuality",0},
2020 { "_wxEraseEvent","_class_wxEraseEvent",0},
2021 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
2022 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
2023 { "_class_wxToggleButton","_wxToggleButton",0},
2024 { "_wxRegion","_class_wxRegion",0},
2025 { "_class_wxDateSpan","_wxDateSpan",0},
2026 { "_class_wxShowEvent","_wxShowEvent",0},
2027 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
2028 { "_wxActivateEvent","_class_wxActivateEvent",0},
2029 { "_wxGauge","_class_wxGauge",0},
2030 { "_class_wxCheckListBox","_wxCheckListBox",0},
2031 { "_class_wxBusyInfo","_wxBusyInfo",0},
2032 { "_class_wxFontList","_wxFontList",0},
2033 { "_class_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
2034 { "_class_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
2035 { "_class_wxCommandEvent","_wxCommandEvent",0},
2036 { "_class_wxClientDC","_wxClientDC",0},
2037 { "_class_wxSizeEvent","_wxSizeEvent",0},
2038 { "_wxBrushList","_class_wxBrushList",0},
2039 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
2040 { "_class_wxSize","_wxSize",0},
2041 { "_class_wxBitmap","_wxBitmap",0},
2042 { "_class_wxMemoryDC","_wxMemoryDC",0},
2043 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
2044 { "_wxMenuBar","_class_wxMenuBar",0},
2045 { "_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
2046 { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
2047 { "_wxEvtHandler","_class_wxEvtHandler",0},
2048 { "_wxMenuItem","_class_wxMenuItem",0},
2049 { "_class_wxScrollBar","_wxScrollBar",0},
2050 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
2051 { "_class_wxConfig","_wxConfig",0},
2052 { "_wxKeyEvent","_class_wxKeyEvent",0},
2053 { "_wxMoveEvent","_class_wxMoveEvent",0},
2054 { "_wxCalendarCtrl","_class_wxCalendarCtrl",0},
2055 { "_class_wxPalette","_wxPalette",0},
2056 { "_wxFileDataObject","_class_wxFileDataObject",0},
2057 { "_class_wxEraseEvent","_wxEraseEvent",0},
2058 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
2059 { "_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
2060 { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
2061 { "_wxWindow","_class_wxWindow",0},
2062 { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0},
2063 {0,0,0}};
2064
2065 static PyObject *SWIG_globals;
2066 #ifdef __cplusplus
2067 extern "C"
2068 #endif
2069 SWIGEXPORT(void) initcalendarc() {
2070 PyObject *m, *d;
2071 SWIG_globals = SWIG_newvarlink();
2072 m = Py_InitModule("calendarc", calendarcMethods);
2073 d = PyModule_GetDict(m);
2074 PyDict_SetItemString(d,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST));
2075 PyDict_SetItemString(d,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST));
2076 PyDict_SetItemString(d,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS));
2077 PyDict_SetItemString(d,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE));
2078 PyDict_SetItemString(d,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE));
2079 PyDict_SetItemString(d,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE));
2080 PyDict_SetItemString(d,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER));
2081 PyDict_SetItemString(d,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY));
2082 PyDict_SetItemString(d,"wxCAL_BORDER_NONE", PyInt_FromLong((long) wxCAL_BORDER_NONE));
2083 PyDict_SetItemString(d,"wxCAL_BORDER_SQUARE", PyInt_FromLong((long) wxCAL_BORDER_SQUARE));
2084 PyDict_SetItemString(d,"wxCAL_BORDER_ROUND", PyInt_FromLong((long) wxCAL_BORDER_ROUND));
2085 PyDict_SetItemString(d,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED));
2086 PyDict_SetItemString(d,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED));
2087 PyDict_SetItemString(d,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED));
2088 PyDict_SetItemString(d,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED));
2089 PyDict_SetItemString(d,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED));
2090 PyDict_SetItemString(d,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED));
2091
2092 wxClassInfo::CleanUpClasses();
2093 wxClassInfo::InitializeClasses();
2094 {
2095 int i;
2096 for (i = 0; _swig_mapping[i].n1; i++)
2097 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2098 }
2099 }