]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/calendar.cpp
warning fixed
[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 #define new_wxCalendarEvent(_swigarg0,_swigarg1) (new wxCalendarEvent(_swigarg0,_swigarg1))
756 static PyObject *_wrap_new_wxCalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
757 PyObject * _resultobj;
758 wxCalendarEvent * _result;
759 wxCalendarCtrl * _arg0;
760 wxEventType _arg1;
761 PyObject * _argo0 = 0;
762 char *_kwnames[] = { "cal","type", NULL };
763 char _ptemp[128];
764
765 self = self;
766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxCalendarEvent",_kwnames,&_argo0,&_arg1))
767 return NULL;
768 if (_argo0) {
769 if (_argo0 == Py_None) { _arg0 = NULL; }
770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarEvent. Expected _wxCalendarCtrl_p.");
772 return NULL;
773 }
774 }
775 {
776 wxPy_BEGIN_ALLOW_THREADS;
777 _result = (wxCalendarEvent *)new_wxCalendarEvent(_arg0,_arg1);
778
779 wxPy_END_ALLOW_THREADS;
780 } if (_result) {
781 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarEvent_p");
782 _resultobj = Py_BuildValue("s",_ptemp);
783 } else {
784 Py_INCREF(Py_None);
785 _resultobj = Py_None;
786 }
787 return _resultobj;
788 }
789
790 #define wxCalendarEvent_GetDate(_swigobj) (_swigobj->GetDate())
791 static PyObject *_wrap_wxCalendarEvent_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
792 PyObject * _resultobj;
793 wxDateTime * _result;
794 wxCalendarEvent * _arg0;
795 PyObject * _argo0 = 0;
796 char *_kwnames[] = { "self", NULL };
797 char _ptemp[128];
798
799 self = self;
800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetDate",_kwnames,&_argo0))
801 return NULL;
802 if (_argo0) {
803 if (_argo0 == Py_None) { _arg0 = NULL; }
804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) {
805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetDate. Expected _wxCalendarEvent_p.");
806 return NULL;
807 }
808 }
809 {
810 wxPy_BEGIN_ALLOW_THREADS;
811 const wxDateTime & _result_ref = wxCalendarEvent_GetDate(_arg0);
812 _result = (wxDateTime *) &_result_ref;
813
814 wxPy_END_ALLOW_THREADS;
815 } if (_result) {
816 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p");
817 _resultobj = Py_BuildValue("s",_ptemp);
818 } else {
819 Py_INCREF(Py_None);
820 _resultobj = Py_None;
821 }
822 return _resultobj;
823 }
824
825 #define wxCalendarEvent_GetWeekDay(_swigobj) (_swigobj->GetWeekDay())
826 static PyObject *_wrap_wxCalendarEvent_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
827 PyObject * _resultobj;
828 wxDateTime::WeekDay _result;
829 wxCalendarEvent * _arg0;
830 PyObject * _argo0 = 0;
831 char *_kwnames[] = { "self", NULL };
832
833 self = self;
834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetWeekDay",_kwnames,&_argo0))
835 return NULL;
836 if (_argo0) {
837 if (_argo0 == Py_None) { _arg0 = NULL; }
838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) {
839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetWeekDay. Expected _wxCalendarEvent_p.");
840 return NULL;
841 }
842 }
843 {
844 wxPy_BEGIN_ALLOW_THREADS;
845 _result = (wxDateTime::WeekDay )wxCalendarEvent_GetWeekDay(_arg0);
846
847 wxPy_END_ALLOW_THREADS;
848 } _resultobj = Py_BuildValue("i",_result);
849 return _resultobj;
850 }
851
852 static void *SwigwxCalendarCtrlTowxControl(void *ptr) {
853 wxCalendarCtrl *src;
854 wxControl *dest;
855 src = (wxCalendarCtrl *) ptr;
856 dest = (wxControl *) src;
857 return (void *) dest;
858 }
859
860 static void *SwigwxCalendarCtrlTowxWindow(void *ptr) {
861 wxCalendarCtrl *src;
862 wxWindow *dest;
863 src = (wxCalendarCtrl *) ptr;
864 dest = (wxWindow *) src;
865 return (void *) dest;
866 }
867
868 static void *SwigwxCalendarCtrlTowxEvtHandler(void *ptr) {
869 wxCalendarCtrl *src;
870 wxEvtHandler *dest;
871 src = (wxCalendarCtrl *) ptr;
872 dest = (wxEvtHandler *) src;
873 return (void *) dest;
874 }
875
876 #define new_wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
877 static PyObject *_wrap_new_wxCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
878 PyObject * _resultobj;
879 wxCalendarCtrl * _result;
880 wxWindow * _arg0;
881 wxWindowID _arg1;
882 wxDateTime * _arg2 = (wxDateTime *) &wxDefaultDateTime;
883 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
884 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
885 long _arg5 = (long ) (wxCAL_SHOW_HOLIDAYS);
886 char * _arg6 = (char *) "calendar";
887 PyObject * _argo0 = 0;
888 PyObject * _argo2 = 0;
889 wxPoint temp;
890 PyObject * _obj3 = 0;
891 wxSize temp0;
892 PyObject * _obj4 = 0;
893 char *_kwnames[] = { "parent","id","date","pos","size","style","name", NULL };
894 char _ptemp[128];
895
896 self = self;
897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOls:new_wxCalendarCtrl",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6))
898 return NULL;
899 if (_argo0) {
900 if (_argo0 == Py_None) { _arg0 = NULL; }
901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarCtrl. Expected _wxWindow_p.");
903 return NULL;
904 }
905 }
906 if (_argo2) {
907 if (_argo2 == Py_None) { _arg2 = NULL; }
908 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) {
909 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxCalendarCtrl. Expected _wxDateTime_p.");
910 return NULL;
911 }
912 }
913 if (_obj3)
914 {
915 _arg3 = &temp;
916 if (! wxPoint_helper(_obj3, &_arg3))
917 return NULL;
918 }
919 if (_obj4)
920 {
921 _arg4 = &temp0;
922 if (! wxSize_helper(_obj4, &_arg4))
923 return NULL;
924 }
925 {
926 wxPy_BEGIN_ALLOW_THREADS;
927 _result = (wxCalendarCtrl *)new_wxCalendarCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
928
929 wxPy_END_ALLOW_THREADS;
930 } if (_result) {
931 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p");
932 _resultobj = Py_BuildValue("s",_ptemp);
933 } else {
934 Py_INCREF(Py_None);
935 _resultobj = Py_None;
936 }
937 return _resultobj;
938 }
939
940 #define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0))
941 static PyObject *_wrap_wxCalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
942 PyObject * _resultobj;
943 wxCalendarCtrl * _arg0;
944 wxDateTime * _arg1;
945 PyObject * _argo0 = 0;
946 PyObject * _argo1 = 0;
947 char *_kwnames[] = { "self","date", NULL };
948
949 self = self;
950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarCtrl_SetDate",_kwnames,&_argo0,&_argo1))
951 return NULL;
952 if (_argo0) {
953 if (_argo0 == Py_None) { _arg0 = NULL; }
954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p.");
956 return NULL;
957 }
958 }
959 if (_argo1) {
960 if (_argo1 == Py_None) { _arg1 = NULL; }
961 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) {
962 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p.");
963 return NULL;
964 }
965 }
966 {
967 wxPy_BEGIN_ALLOW_THREADS;
968 wxCalendarCtrl_SetDate(_arg0,*_arg1);
969
970 wxPy_END_ALLOW_THREADS;
971 } Py_INCREF(Py_None);
972 _resultobj = Py_None;
973 return _resultobj;
974 }
975
976 #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate())
977 static PyObject *_wrap_wxCalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
978 PyObject * _resultobj;
979 wxDateTime * _result;
980 wxCalendarCtrl * _arg0;
981 PyObject * _argo0 = 0;
982 char *_kwnames[] = { "self", NULL };
983 char _ptemp[128];
984
985 self = self;
986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetDate",_kwnames,&_argo0))
987 return NULL;
988 if (_argo0) {
989 if (_argo0 == Py_None) { _arg0 = NULL; }
990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p.");
992 return NULL;
993 }
994 }
995 {
996 wxPy_BEGIN_ALLOW_THREADS;
997 const wxDateTime & _result_ref = wxCalendarCtrl_GetDate(_arg0);
998 _result = (wxDateTime *) &_result_ref;
999
1000 wxPy_END_ALLOW_THREADS;
1001 } if (_result) {
1002 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p");
1003 _resultobj = Py_BuildValue("s",_ptemp);
1004 } else {
1005 Py_INCREF(Py_None);
1006 _resultobj = Py_None;
1007 }
1008 return _resultobj;
1009 }
1010
1011 #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0))
1012 static PyObject *_wrap_wxCalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1013 PyObject * _resultobj;
1014 wxCalendarCtrl * _arg0;
1015 bool _arg1 = (bool ) TRUE;
1016 PyObject * _argo0 = 0;
1017 int tempbool1 = (int) TRUE;
1018 char *_kwnames[] = { "self","enable", NULL };
1019
1020 self = self;
1021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames,&_argo0,&tempbool1))
1022 return NULL;
1023 if (_argo0) {
1024 if (_argo0 == Py_None) { _arg0 = NULL; }
1025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p.");
1027 return NULL;
1028 }
1029 }
1030 _arg1 = (bool ) tempbool1;
1031 {
1032 wxPy_BEGIN_ALLOW_THREADS;
1033 wxCalendarCtrl_EnableYearChange(_arg0,_arg1);
1034
1035 wxPy_END_ALLOW_THREADS;
1036 } Py_INCREF(Py_None);
1037 _resultobj = Py_None;
1038 return _resultobj;
1039 }
1040
1041 #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0))
1042 static PyObject *_wrap_wxCalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1043 PyObject * _resultobj;
1044 wxCalendarCtrl * _arg0;
1045 bool _arg1 = (bool ) TRUE;
1046 PyObject * _argo0 = 0;
1047 int tempbool1 = (int) TRUE;
1048 char *_kwnames[] = { "self","enable", NULL };
1049
1050 self = self;
1051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames,&_argo0,&tempbool1))
1052 return NULL;
1053 if (_argo0) {
1054 if (_argo0 == Py_None) { _arg0 = NULL; }
1055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p.");
1057 return NULL;
1058 }
1059 }
1060 _arg1 = (bool ) tempbool1;
1061 {
1062 wxPy_BEGIN_ALLOW_THREADS;
1063 wxCalendarCtrl_EnableMonthChange(_arg0,_arg1);
1064
1065 wxPy_END_ALLOW_THREADS;
1066 } Py_INCREF(Py_None);
1067 _resultobj = Py_None;
1068 return _resultobj;
1069 }
1070
1071 #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0))
1072 static PyObject *_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
1073 PyObject * _resultobj;
1074 wxCalendarCtrl * _arg0;
1075 bool _arg1 = (bool ) TRUE;
1076 PyObject * _argo0 = 0;
1077 int tempbool1 = (int) TRUE;
1078 char *_kwnames[] = { "self","display", NULL };
1079
1080 self = self;
1081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames,&_argo0,&tempbool1))
1082 return NULL;
1083 if (_argo0) {
1084 if (_argo0 == Py_None) { _arg0 = NULL; }
1085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p.");
1087 return NULL;
1088 }
1089 }
1090 _arg1 = (bool ) tempbool1;
1091 {
1092 wxPy_BEGIN_ALLOW_THREADS;
1093 wxCalendarCtrl_EnableHolidayDisplay(_arg0,_arg1);
1094
1095 wxPy_END_ALLOW_THREADS;
1096 } Py_INCREF(Py_None);
1097 _resultobj = Py_None;
1098 return _resultobj;
1099 }
1100
1101 #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1))
1102 static PyObject *_wrap_wxCalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1103 PyObject * _resultobj;
1104 wxCalendarCtrl * _arg0;
1105 wxColour * _arg1;
1106 wxColour * _arg2;
1107 PyObject * _argo0 = 0;
1108 wxColour temp;
1109 PyObject * _obj1 = 0;
1110 wxColour temp0;
1111 PyObject * _obj2 = 0;
1112 char *_kwnames[] = { "self","colFg","colBg", NULL };
1113
1114 self = self;
1115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames,&_argo0,&_obj1,&_obj2))
1116 return NULL;
1117 if (_argo0) {
1118 if (_argo0 == Py_None) { _arg0 = NULL; }
1119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p.");
1121 return NULL;
1122 }
1123 }
1124 {
1125 _arg1 = &temp;
1126 if (! wxColour_helper(_obj1, &_arg1))
1127 return NULL;
1128 }
1129 {
1130 _arg2 = &temp0;
1131 if (! wxColour_helper(_obj2, &_arg2))
1132 return NULL;
1133 }
1134 {
1135 wxPy_BEGIN_ALLOW_THREADS;
1136 wxCalendarCtrl_SetHeaderColours(_arg0,*_arg1,*_arg2);
1137
1138 wxPy_END_ALLOW_THREADS;
1139 } Py_INCREF(Py_None);
1140 _resultobj = Py_None;
1141 return _resultobj;
1142 }
1143
1144 #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg())
1145 static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject * _resultobj;
1147 wxColour * _result;
1148 wxCalendarCtrl * _arg0;
1149 PyObject * _argo0 = 0;
1150 char *_kwnames[] = { "self", NULL };
1151 char _ptemp[128];
1152
1153 self = self;
1154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames,&_argo0))
1155 return NULL;
1156 if (_argo0) {
1157 if (_argo0 == Py_None) { _arg0 = NULL; }
1158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p.");
1160 return NULL;
1161 }
1162 }
1163 {
1164 wxPy_BEGIN_ALLOW_THREADS;
1165 const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourFg(_arg0);
1166 _result = (wxColour *) &_result_ref;
1167
1168 wxPy_END_ALLOW_THREADS;
1169 } if (_result) {
1170 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1171 _resultobj = Py_BuildValue("s",_ptemp);
1172 } else {
1173 Py_INCREF(Py_None);
1174 _resultobj = Py_None;
1175 }
1176 return _resultobj;
1177 }
1178
1179 #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg())
1180 static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1181 PyObject * _resultobj;
1182 wxColour * _result;
1183 wxCalendarCtrl * _arg0;
1184 PyObject * _argo0 = 0;
1185 char *_kwnames[] = { "self", NULL };
1186 char _ptemp[128];
1187
1188 self = self;
1189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames,&_argo0))
1190 return NULL;
1191 if (_argo0) {
1192 if (_argo0 == Py_None) { _arg0 = NULL; }
1193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p.");
1195 return NULL;
1196 }
1197 }
1198 {
1199 wxPy_BEGIN_ALLOW_THREADS;
1200 const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourBg(_arg0);
1201 _result = (wxColour *) &_result_ref;
1202
1203 wxPy_END_ALLOW_THREADS;
1204 } if (_result) {
1205 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1206 _resultobj = Py_BuildValue("s",_ptemp);
1207 } else {
1208 Py_INCREF(Py_None);
1209 _resultobj = Py_None;
1210 }
1211 return _resultobj;
1212 }
1213
1214 #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1))
1215 static PyObject *_wrap_wxCalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1216 PyObject * _resultobj;
1217 wxCalendarCtrl * _arg0;
1218 wxColour * _arg1;
1219 wxColour * _arg2;
1220 PyObject * _argo0 = 0;
1221 wxColour temp;
1222 PyObject * _obj1 = 0;
1223 wxColour temp0;
1224 PyObject * _obj2 = 0;
1225 char *_kwnames[] = { "self","colFg","colBg", NULL };
1226
1227 self = self;
1228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames,&_argo0,&_obj1,&_obj2))
1229 return NULL;
1230 if (_argo0) {
1231 if (_argo0 == Py_None) { _arg0 = NULL; }
1232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p.");
1234 return NULL;
1235 }
1236 }
1237 {
1238 _arg1 = &temp;
1239 if (! wxColour_helper(_obj1, &_arg1))
1240 return NULL;
1241 }
1242 {
1243 _arg2 = &temp0;
1244 if (! wxColour_helper(_obj2, &_arg2))
1245 return NULL;
1246 }
1247 {
1248 wxPy_BEGIN_ALLOW_THREADS;
1249 wxCalendarCtrl_SetHighlightColours(_arg0,*_arg1,*_arg2);
1250
1251 wxPy_END_ALLOW_THREADS;
1252 } Py_INCREF(Py_None);
1253 _resultobj = Py_None;
1254 return _resultobj;
1255 }
1256
1257 #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg())
1258 static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1259 PyObject * _resultobj;
1260 wxColour * _result;
1261 wxCalendarCtrl * _arg0;
1262 PyObject * _argo0 = 0;
1263 char *_kwnames[] = { "self", NULL };
1264 char _ptemp[128];
1265
1266 self = self;
1267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames,&_argo0))
1268 return NULL;
1269 if (_argo0) {
1270 if (_argo0 == Py_None) { _arg0 = NULL; }
1271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p.");
1273 return NULL;
1274 }
1275 }
1276 {
1277 wxPy_BEGIN_ALLOW_THREADS;
1278 const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourFg(_arg0);
1279 _result = (wxColour *) &_result_ref;
1280
1281 wxPy_END_ALLOW_THREADS;
1282 } if (_result) {
1283 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1284 _resultobj = Py_BuildValue("s",_ptemp);
1285 } else {
1286 Py_INCREF(Py_None);
1287 _resultobj = Py_None;
1288 }
1289 return _resultobj;
1290 }
1291
1292 #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg())
1293 static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1294 PyObject * _resultobj;
1295 wxColour * _result;
1296 wxCalendarCtrl * _arg0;
1297 PyObject * _argo0 = 0;
1298 char *_kwnames[] = { "self", NULL };
1299 char _ptemp[128];
1300
1301 self = self;
1302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames,&_argo0))
1303 return NULL;
1304 if (_argo0) {
1305 if (_argo0 == Py_None) { _arg0 = NULL; }
1306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p.");
1308 return NULL;
1309 }
1310 }
1311 {
1312 wxPy_BEGIN_ALLOW_THREADS;
1313 const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourBg(_arg0);
1314 _result = (wxColour *) &_result_ref;
1315
1316 wxPy_END_ALLOW_THREADS;
1317 } if (_result) {
1318 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1319 _resultobj = Py_BuildValue("s",_ptemp);
1320 } else {
1321 Py_INCREF(Py_None);
1322 _resultobj = Py_None;
1323 }
1324 return _resultobj;
1325 }
1326
1327 #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1))
1328 static PyObject *_wrap_wxCalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1329 PyObject * _resultobj;
1330 wxCalendarCtrl * _arg0;
1331 wxColour * _arg1;
1332 wxColour * _arg2;
1333 PyObject * _argo0 = 0;
1334 wxColour temp;
1335 PyObject * _obj1 = 0;
1336 wxColour temp0;
1337 PyObject * _obj2 = 0;
1338 char *_kwnames[] = { "self","colFg","colBg", NULL };
1339
1340 self = self;
1341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames,&_argo0,&_obj1,&_obj2))
1342 return NULL;
1343 if (_argo0) {
1344 if (_argo0 == Py_None) { _arg0 = NULL; }
1345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p.");
1347 return NULL;
1348 }
1349 }
1350 {
1351 _arg1 = &temp;
1352 if (! wxColour_helper(_obj1, &_arg1))
1353 return NULL;
1354 }
1355 {
1356 _arg2 = &temp0;
1357 if (! wxColour_helper(_obj2, &_arg2))
1358 return NULL;
1359 }
1360 {
1361 wxPy_BEGIN_ALLOW_THREADS;
1362 wxCalendarCtrl_SetHolidayColours(_arg0,*_arg1,*_arg2);
1363
1364 wxPy_END_ALLOW_THREADS;
1365 } Py_INCREF(Py_None);
1366 _resultobj = Py_None;
1367 return _resultobj;
1368 }
1369
1370 #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg())
1371 static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1372 PyObject * _resultobj;
1373 wxColour * _result;
1374 wxCalendarCtrl * _arg0;
1375 PyObject * _argo0 = 0;
1376 char *_kwnames[] = { "self", NULL };
1377 char _ptemp[128];
1378
1379 self = self;
1380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames,&_argo0))
1381 return NULL;
1382 if (_argo0) {
1383 if (_argo0 == Py_None) { _arg0 = NULL; }
1384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourFg. Expected _wxCalendarCtrl_p.");
1386 return NULL;
1387 }
1388 }
1389 {
1390 wxPy_BEGIN_ALLOW_THREADS;
1391 const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourFg(_arg0);
1392 _result = (wxColour *) &_result_ref;
1393
1394 wxPy_END_ALLOW_THREADS;
1395 } if (_result) {
1396 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1397 _resultobj = Py_BuildValue("s",_ptemp);
1398 } else {
1399 Py_INCREF(Py_None);
1400 _resultobj = Py_None;
1401 }
1402 return _resultobj;
1403 }
1404
1405 #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg())
1406 static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1407 PyObject * _resultobj;
1408 wxColour * _result;
1409 wxCalendarCtrl * _arg0;
1410 PyObject * _argo0 = 0;
1411 char *_kwnames[] = { "self", NULL };
1412 char _ptemp[128];
1413
1414 self = self;
1415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames,&_argo0))
1416 return NULL;
1417 if (_argo0) {
1418 if (_argo0 == Py_None) { _arg0 = NULL; }
1419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p.");
1421 return NULL;
1422 }
1423 }
1424 {
1425 wxPy_BEGIN_ALLOW_THREADS;
1426 const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourBg(_arg0);
1427 _result = (wxColour *) &_result_ref;
1428
1429 wxPy_END_ALLOW_THREADS;
1430 } if (_result) {
1431 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1432 _resultobj = Py_BuildValue("s",_ptemp);
1433 } else {
1434 Py_INCREF(Py_None);
1435 _resultobj = Py_None;
1436 }
1437 return _resultobj;
1438 }
1439
1440 #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0))
1441 static PyObject *_wrap_wxCalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1442 PyObject * _resultobj;
1443 wxCalendarDateAttr * _result;
1444 wxCalendarCtrl * _arg0;
1445 size_t _arg1;
1446 PyObject * _argo0 = 0;
1447 char *_kwnames[] = { "self","day", NULL };
1448 char _ptemp[128];
1449
1450 self = self;
1451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_GetAttr",_kwnames,&_argo0,&_arg1))
1452 return NULL;
1453 if (_argo0) {
1454 if (_argo0 == Py_None) { _arg0 = NULL; }
1455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p.");
1457 return NULL;
1458 }
1459 }
1460 {
1461 wxPy_BEGIN_ALLOW_THREADS;
1462 _result = (wxCalendarDateAttr *)wxCalendarCtrl_GetAttr(_arg0,_arg1);
1463
1464 wxPy_END_ALLOW_THREADS;
1465 } if (_result) {
1466 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p");
1467 _resultobj = Py_BuildValue("s",_ptemp);
1468 } else {
1469 Py_INCREF(Py_None);
1470 _resultobj = Py_None;
1471 }
1472 return _resultobj;
1473 }
1474
1475 #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1))
1476 static PyObject *_wrap_wxCalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1477 PyObject * _resultobj;
1478 wxCalendarCtrl * _arg0;
1479 size_t _arg1;
1480 wxCalendarDateAttr * _arg2;
1481 PyObject * _argo0 = 0;
1482 PyObject * _argo2 = 0;
1483 char *_kwnames[] = { "self","day","attr", NULL };
1484
1485 self = self;
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxCalendarCtrl_SetAttr",_kwnames,&_argo0,&_arg1,&_argo2))
1487 return NULL;
1488 if (_argo0) {
1489 if (_argo0 == Py_None) { _arg0 = NULL; }
1490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p.");
1492 return NULL;
1493 }
1494 }
1495 if (_argo2) {
1496 if (_argo2 == Py_None) { _arg2 = NULL; }
1497 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCalendarDateAttr_p")) {
1498 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p.");
1499 return NULL;
1500 }
1501 }
1502 {
1503 wxPy_BEGIN_ALLOW_THREADS;
1504 wxCalendarCtrl_SetAttr(_arg0,_arg1,_arg2);
1505
1506 wxPy_END_ALLOW_THREADS;
1507 } Py_INCREF(Py_None);
1508 _resultobj = Py_None;
1509 return _resultobj;
1510 }
1511
1512 #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0))
1513 static PyObject *_wrap_wxCalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
1514 PyObject * _resultobj;
1515 wxCalendarCtrl * _arg0;
1516 size_t _arg1;
1517 PyObject * _argo0 = 0;
1518 char *_kwnames[] = { "self","day", NULL };
1519
1520 self = self;
1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_SetHoliday",_kwnames,&_argo0,&_arg1))
1522 return NULL;
1523 if (_argo0) {
1524 if (_argo0 == Py_None) { _arg0 = NULL; }
1525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p.");
1527 return NULL;
1528 }
1529 }
1530 {
1531 wxPy_BEGIN_ALLOW_THREADS;
1532 wxCalendarCtrl_SetHoliday(_arg0,_arg1);
1533
1534 wxPy_END_ALLOW_THREADS;
1535 } Py_INCREF(Py_None);
1536 _resultobj = Py_None;
1537 return _resultobj;
1538 }
1539
1540 #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0))
1541 static PyObject *_wrap_wxCalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1542 PyObject * _resultobj;
1543 wxCalendarCtrl * _arg0;
1544 size_t _arg1;
1545 PyObject * _argo0 = 0;
1546 char *_kwnames[] = { "self","day", NULL };
1547
1548 self = self;
1549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_ResetAttr",_kwnames,&_argo0,&_arg1))
1550 return NULL;
1551 if (_argo0) {
1552 if (_argo0 == Py_None) { _arg0 = NULL; }
1553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_ResetAttr. Expected _wxCalendarCtrl_p.");
1555 return NULL;
1556 }
1557 }
1558 {
1559 wxPy_BEGIN_ALLOW_THREADS;
1560 wxCalendarCtrl_ResetAttr(_arg0,_arg1);
1561
1562 wxPy_END_ALLOW_THREADS;
1563 } Py_INCREF(Py_None);
1564 _resultobj = Py_None;
1565 return _resultobj;
1566 }
1567
1568 #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2))
1569 static PyObject *_wrap_wxCalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
1570 PyObject * _resultobj;
1571 wxCalendarHitTestResult _result;
1572 wxCalendarCtrl * _arg0;
1573 wxPoint * _arg1;
1574 wxDateTime * _arg2 = (wxDateTime *) NULL;
1575 wxDateTime::WeekDay * _arg3 = (wxDateTime::WeekDay *) NULL;
1576 PyObject * _argo0 = 0;
1577 wxPoint temp;
1578 PyObject * _obj1 = 0;
1579 PyObject * _argo2 = 0;
1580 PyObject * _argo3 = 0;
1581 char *_kwnames[] = { "self","pos","date","wd", NULL };
1582
1583 self = self;
1584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxCalendarCtrl_HitTest",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
1585 return NULL;
1586 if (_argo0) {
1587 if (_argo0 == Py_None) { _arg0 = NULL; }
1588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) {
1589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p.");
1590 return NULL;
1591 }
1592 }
1593 {
1594 _arg1 = &temp;
1595 if (! wxPoint_helper(_obj1, &_arg1))
1596 return NULL;
1597 }
1598 if (_argo2) {
1599 if (_argo2 == Py_None) { _arg2 = NULL; }
1600 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) {
1601 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p.");
1602 return NULL;
1603 }
1604 }
1605 if (_argo3) {
1606 if (_argo3 == Py_None) { _arg3 = NULL; }
1607 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime::WeekDay_p")) {
1608 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p.");
1609 return NULL;
1610 }
1611 }
1612 {
1613 wxPy_BEGIN_ALLOW_THREADS;
1614 _result = (wxCalendarHitTestResult )wxCalendarCtrl_HitTest(_arg0,*_arg1,_arg2,_arg3);
1615
1616 wxPy_END_ALLOW_THREADS;
1617 } _resultobj = Py_BuildValue("i",_result);
1618 return _resultobj;
1619 }
1620
1621 static PyMethodDef calendarcMethods[] = {
1622 { "wxCalendarCtrl_HitTest", (PyCFunction) _wrap_wxCalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
1623 { "wxCalendarCtrl_ResetAttr", (PyCFunction) _wrap_wxCalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS },
1624 { "wxCalendarCtrl_SetHoliday", (PyCFunction) _wrap_wxCalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS },
1625 { "wxCalendarCtrl_SetAttr", (PyCFunction) _wrap_wxCalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS },
1626 { "wxCalendarCtrl_GetAttr", (PyCFunction) _wrap_wxCalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS },
1627 { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS },
1628 { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS },
1629 { "wxCalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS },
1630 { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS },
1631 { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS },
1632 { "wxCalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS },
1633 { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS },
1634 { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS },
1635 { "wxCalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS },
1636 { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_wxCalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS },
1637 { "wxCalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS },
1638 { "wxCalendarCtrl_EnableYearChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS },
1639 { "wxCalendarCtrl_GetDate", (PyCFunction) _wrap_wxCalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS },
1640 { "wxCalendarCtrl_SetDate", (PyCFunction) _wrap_wxCalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS },
1641 { "new_wxCalendarCtrl", (PyCFunction) _wrap_new_wxCalendarCtrl, METH_VARARGS | METH_KEYWORDS },
1642 { "wxCalendarEvent_GetWeekDay", (PyCFunction) _wrap_wxCalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
1643 { "wxCalendarEvent_GetDate", (PyCFunction) _wrap_wxCalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS },
1644 { "new_wxCalendarEvent", (PyCFunction) _wrap_new_wxCalendarEvent, METH_VARARGS | METH_KEYWORDS },
1645 { "wxCalendarDateAttr_GetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS },
1646 { "wxCalendarDateAttr_GetFont", (PyCFunction) _wrap_wxCalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
1647 { "wxCalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS },
1648 { "wxCalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1649 { "wxCalendarDateAttr_GetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
1650 { "wxCalendarDateAttr_IsHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS },
1651 { "wxCalendarDateAttr_HasBorder", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS },
1652 { "wxCalendarDateAttr_HasFont", (PyCFunction) _wrap_wxCalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
1653 { "wxCalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS },
1654 { "wxCalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1655 { "wxCalendarDateAttr_HasTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
1656 { "wxCalendarDateAttr_SetHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS },
1657 { "wxCalendarDateAttr_SetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS },
1658 { "wxCalendarDateAttr_SetFont", (PyCFunction) _wrap_wxCalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
1659 { "wxCalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS },
1660 { "wxCalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
1661 { "wxCalendarDateAttr_SetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
1662 { "new_wxCalendarDateAttrBorder", (PyCFunction) _wrap_new_wxCalendarDateAttrBorder, METH_VARARGS | METH_KEYWORDS },
1663 { "new_wxCalendarDateAttr", (PyCFunction) _wrap_new_wxCalendarDateAttr, METH_VARARGS | METH_KEYWORDS },
1664 { NULL, NULL }
1665 };
1666 #ifdef __cplusplus
1667 }
1668 #endif
1669 /*
1670 * This table is used by the pointer type-checker
1671 */
1672 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1673 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1674 { "_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1675 { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1676 { "_wxEvent","_class_wxEvent",0},
1677 { "_class_wxActivateEvent","_wxActivateEvent",0},
1678 { "_signed_long","_long",0},
1679 { "_wxMenuEvent","_class_wxMenuEvent",0},
1680 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
1681 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
1682 { "_class_wxPyCommandEvent","_wxPyCommandEvent",0},
1683 { "_class_wxDateTime","_wxDateTime",0},
1684 { "_wxPrintQuality","_wxCoord",0},
1685 { "_wxPrintQuality","_int",0},
1686 { "_wxPrintQuality","_signed_int",0},
1687 { "_wxPrintQuality","_unsigned_int",0},
1688 { "_wxPrintQuality","_wxWindowID",0},
1689 { "_wxPrintQuality","_uint",0},
1690 { "_wxPrintQuality","_EBool",0},
1691 { "_wxPrintQuality","_size_t",0},
1692 { "_wxPrintQuality","_time_t",0},
1693 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
1694 { "_wxSpinCtrl","_class_wxSpinCtrl",0},
1695 { "_class_wxRegionIterator","_wxRegionIterator",0},
1696 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
1697 { "_class_wxMenuBar","_wxMenuBar",0},
1698 { "_class_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
1699 { "_class_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
1700 { "_class_wxEvtHandler","_wxEvtHandler",0},
1701 { "_wxPaintEvent","_class_wxPaintEvent",0},
1702 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1703 { "_wxCursor","_class_wxCursor",0},
1704 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
1705 { "_wxMask","_class_wxMask",0},
1706 { "_wxPen","_class_wxPen",0},
1707 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
1708 { "_byte","_unsigned_char",0},
1709 { "_wxDataObject","_class_wxDataObject",0},
1710 { "_wxStaticBox","_class_wxStaticBox",0},
1711 { "_wxColourDatabase","_class_wxColourDatabase",0},
1712 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
1713 { "_wxPyDropSource","_class_wxPyDropSource",0},
1714 { "_wxChoice","_class_wxChoice",0},
1715 { "_wxSlider","_class_wxSlider",0},
1716 { "_long","_unsigned_long",0},
1717 { "_long","_signed_long",0},
1718 { "_wxImageList","_class_wxImageList",0},
1719 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
1720 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
1721 { "_wxBitmapButton","_class_wxBitmapButton",0},
1722 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1723 { "_class_wxClipboard","_wxClipboard",0},
1724 { "_class_wxGauge","_wxGauge",0},
1725 { "_wxDC","_class_wxDC",0},
1726 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
1727 { "_wxSpinEvent","_class_wxSpinEvent",0},
1728 { "_size_t","_wxCoord",0},
1729 { "_size_t","_wxPrintQuality",0},
1730 { "_size_t","_time_t",0},
1731 { "_size_t","_unsigned_int",0},
1732 { "_size_t","_int",0},
1733 { "_size_t","_wxWindowID",0},
1734 { "_size_t","_uint",0},
1735 { "_class_wxRealPoint","_wxRealPoint",0},
1736 { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0},
1737 { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0},
1738 { "_class_wxMenuItem","_wxMenuItem",0},
1739 { "_class_wxPaintEvent","_wxPaintEvent",0},
1740 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
1741 { "_wxPanel","_class_wxPanel",0},
1742 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
1743 { "_wxCheckBox","_class_wxCheckBox",0},
1744 { "_wxPyEvent","_class_wxPyEvent",0},
1745 { "_wxTextCtrl","_class_wxTextCtrl",0},
1746 { "_class_wxMask","_wxMask",0},
1747 { "_wxTextDataObject","_class_wxTextDataObject",0},
1748 { "_class_wxKeyEvent","_wxKeyEvent",0},
1749 { "_wxFileConfig","_class_wxFileConfig",0},
1750 { "_wxColour","_class_wxColour",0},
1751 { "_class_wxDialog","_wxDialog",0},
1752 { "_class_wxFileDataObject","_wxFileDataObject",0},
1753 { "_wxIdleEvent","_class_wxIdleEvent",0},
1754 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
1755 { "_class_wxDataObject","_wxDataObject",0},
1756 { "_wxStaticLine","_class_wxStaticLine",0},
1757 { "_wxBrush","_class_wxBrush",0},
1758 { "_wxToggleButton","_class_wxToggleButton",0},
1759 { "_wxDataFormat","_class_wxDataFormat",0},
1760 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
1761 { "_wxShowEvent","_class_wxShowEvent",0},
1762 { "_uint","_wxCoord",0},
1763 { "_uint","_wxPrintQuality",0},
1764 { "_uint","_time_t",0},
1765 { "_uint","_size_t",0},
1766 { "_uint","_unsigned_int",0},
1767 { "_uint","_int",0},
1768 { "_uint","_wxWindowID",0},
1769 { "_wxChar","_char",0},
1770 { "_wxPyValidator","_class_wxPyValidator",0},
1771 { "_class_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1772 { "_class_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
1773 { "_class_wxEvent","_wxEvent",0},
1774 { "_wxCheckListBox","_class_wxCheckListBox",0},
1775 { "_wxRect","_class_wxRect",0},
1776 { "_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
1777 { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
1778 { "_wxCommandEvent","_class_wxCommandEvent",0},
1779 { "_wxSizeEvent","_class_wxSizeEvent",0},
1780 { "_wxPoint","_class_wxPoint",0},
1781 { "_class_wxButton","_wxButton",0},
1782 { "_wxRadioBox","_class_wxRadioBox",0},
1783 { "_class_wxSpinCtrl","_wxSpinCtrl",0},
1784 { "_char","_wxChar",0},
1785 { "_wxBitmap","_class_wxBitmap",0},
1786 { "_wxPenList","_class_wxPenList",0},
1787 { "_wxWindowDC","_class_wxWindowDC",0},
1788 { "_wxTimerEvent","_class_wxTimerEvent",0},
1789 { "_wxScrollBar","_class_wxScrollBar",0},
1790 { "_wxSpinButton","_class_wxSpinButton",0},
1791 { "_wxCalendarEvent","_class_wxCalendarEvent",0},
1792 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1793 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
1794 { "_class_wxValidator","_wxValidator",0},
1795 { "_class_wxPyEvent","_wxPyEvent",0},
1796 { "_wxConfig","_class_wxConfig",0},
1797 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
1798 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
1799 { "_class_wxFileConfig","_wxFileConfig",0},
1800 { "_wxDropTarget","_class_wxDropTarget",0},
1801 { "_class_wxStaticLine","_wxStaticLine",0},
1802 { "_class_wxColourDatabase","_wxColourDatabase",0},
1803 { "_wxScrollEvent","_class_wxScrollEvent",0},
1804 { "_EBool","_wxCoord",0},
1805 { "_EBool","_wxPrintQuality",0},
1806 { "_EBool","_signed_int",0},
1807 { "_EBool","_int",0},
1808 { "_EBool","_wxWindowID",0},
1809 { "_class_wxRegion","_wxRegion",0},
1810 { "_class_wxDataFormat","_wxDataFormat",0},
1811 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
1812 { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0},
1813 { "_wxStaticText","_class_wxStaticText",0},
1814 { "_wxFont","_class_wxFont",0},
1815 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
1816 { "_wxCloseEvent","_class_wxCloseEvent",0},
1817 { "_unsigned_long","_long",0},
1818 { "_class_wxRect","_wxRect",0},
1819 { "_class_wxDC","_wxDC",0},
1820 { "_wxScrollWinEvent","_class_wxScrollWinEvent",0},
1821 { "_class_wxBrushList","_wxBrushList",0},
1822 { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0},
1823 { "_class_wxPenList","_wxPenList",0},
1824 { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0},
1825 { "_wxTimeSpan","_class_wxTimeSpan",0},
1826 { "_wxFocusEvent","_class_wxFocusEvent",0},
1827 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
1828 { "_class_wxTimerEvent","_wxTimerEvent",0},
1829 { "_class_wxSpinButton","_wxSpinButton",0},
1830 { "_class_wxCalendarEvent","_wxCalendarEvent",0},
1831 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1832 { "_class_wxPanel","_wxPanel",0},
1833 { "_class_wxCheckBox","_wxCheckBox",0},
1834 { "_wxComboBox","_class_wxComboBox",0},
1835 { "_wxRadioButton","_class_wxRadioButton",0},
1836 { "_signed_int","_wxCoord",0},
1837 { "_signed_int","_wxPrintQuality",0},
1838 { "_signed_int","_EBool",0},
1839 { "_signed_int","_wxWindowID",0},
1840 { "_signed_int","_int",0},
1841 { "_class_wxTextCtrl","_wxTextCtrl",0},
1842 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1843 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
1844 { "_class_wxTextDataObject","_wxTextDataObject",0},
1845 { "_wxMenu","_class_wxMenu",0},
1846 { "_class_wxMoveEvent","_wxMoveEvent",0},
1847 { "_wxListBox","_class_wxListBox",0},
1848 { "_wxScreenDC","_class_wxScreenDC",0},
1849 { "_class_wxCalendarCtrl","_wxCalendarCtrl",0},
1850 { "_WXTYPE","_wxDateTime_t",0},
1851 { "_WXTYPE","_short",0},
1852 { "_WXTYPE","_signed_short",0},
1853 { "_WXTYPE","_unsigned_short",0},
1854 { "_class_wxDropTarget","_wxDropTarget",0},
1855 { "_class_wxBrush","_wxBrush",0},
1856 { "_unsigned_short","_wxDateTime_t",0},
1857 { "_unsigned_short","_WXTYPE",0},
1858 { "_unsigned_short","_short",0},
1859 { "_class_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
1860 { "_class_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
1861 { "_class_wxWindow","_wxWindow",0},
1862 { "_wxDateSpan","_class_wxDateSpan",0},
1863 { "_class_wxStaticText","_wxStaticText",0},
1864 { "_class_wxFont","_wxFont",0},
1865 { "_wxClipboard","_class_wxClipboard",0},
1866 { "_class_wxPyValidator","_wxPyValidator",0},
1867 { "_class_wxCloseEvent","_wxCloseEvent",0},
1868 { "_wxBusyInfo","_class_wxBusyInfo",0},
1869 { "_wxFontList","_class_wxFontList",0},
1870 { "_class_wxMenuEvent","_wxMenuEvent",0},
1871 { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
1872 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
1873 { "_wxClientDC","_class_wxClientDC",0},
1874 { "_wxMouseEvent","_class_wxMouseEvent",0},
1875 { "_class_wxPoint","_wxPoint",0},
1876 { "_wxRealPoint","_class_wxRealPoint",0},
1877 { "_class_wxRadioBox","_wxRadioBox",0},
1878 { "_signed_short","_WXTYPE",0},
1879 { "_signed_short","_short",0},
1880 { "_wxMemoryDC","_class_wxMemoryDC",0},
1881 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
1882 { "_wxPaintDC","_class_wxPaintDC",0},
1883 { "_class_wxWindowDC","_wxWindowDC",0},
1884 { "_class_wxFocusEvent","_wxFocusEvent",0},
1885 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
1886 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1887 { "_class_wxCursor","_wxCursor",0},
1888 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
1889 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
1890 { "_wxCalendarDateAttr","_class_wxCalendarDateAttr",0},
1891 { "_unsigned_char","_byte",0},
1892 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
1893 { "_class_wxMenu","_wxMenu",0},
1894 { "_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
1895 { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
1896 { "_wxControl","_class_wxControl",0},
1897 { "_class_wxListBox","_wxListBox",0},
1898 { "_unsigned_int","_wxCoord",0},
1899 { "_unsigned_int","_wxPrintQuality",0},
1900 { "_unsigned_int","_time_t",0},
1901 { "_unsigned_int","_size_t",0},
1902 { "_unsigned_int","_uint",0},
1903 { "_unsigned_int","_wxWindowID",0},
1904 { "_unsigned_int","_int",0},
1905 { "_wxIcon","_class_wxIcon",0},
1906 { "_wxDialog","_class_wxDialog",0},
1907 { "_class_wxPen","_wxPen",0},
1908 { "_wxConfigBase","_class_wxConfigBase",0},
1909 { "_short","_wxDateTime_t",0},
1910 { "_short","_WXTYPE",0},
1911 { "_short","_unsigned_short",0},
1912 { "_short","_signed_short",0},
1913 { "_class_wxStaticBox","_wxStaticBox",0},
1914 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
1915 { "_class_wxPyDropSource","_wxPyDropSource",0},
1916 { "_class_wxScrollEvent","_wxScrollEvent",0},
1917 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
1918 { "_class_wxChoice","_wxChoice",0},
1919 { "_class_wxSlider","_wxSlider",0},
1920 { "_class_wxImageList","_wxImageList",0},
1921 { "_class_wxBitmapButton","_wxBitmapButton",0},
1922 { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0},
1923 { "_wxWindowID","_wxCoord",0},
1924 { "_wxWindowID","_wxPrintQuality",0},
1925 { "_wxWindowID","_time_t",0},
1926 { "_wxWindowID","_size_t",0},
1927 { "_wxWindowID","_EBool",0},
1928 { "_wxWindowID","_uint",0},
1929 { "_wxWindowID","_int",0},
1930 { "_wxWindowID","_signed_int",0},
1931 { "_wxWindowID","_unsigned_int",0},
1932 { "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
1933 { "_int","_wxCoord",0},
1934 { "_int","_wxPrintQuality",0},
1935 { "_int","_time_t",0},
1936 { "_int","_size_t",0},
1937 { "_int","_EBool",0},
1938 { "_int","_uint",0},
1939 { "_int","_wxWindowID",0},
1940 { "_int","_unsigned_int",0},
1941 { "_int","_signed_int",0},
1942 { "_class_wxMouseEvent","_wxMouseEvent",0},
1943 { "_wxPyCommandEvent","_class_wxPyCommandEvent",0},
1944 { "_wxDateTime_t","_unsigned_short",0},
1945 { "_wxDateTime_t","_short",0},
1946 { "_wxDateTime_t","_WXTYPE",0},
1947 { "_class_wxSpinEvent","_wxSpinEvent",0},
1948 { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0},
1949 { "_wxDateTime","_class_wxDateTime",0},
1950 { "_time_t","_wxCoord",0},
1951 { "_time_t","_wxPrintQuality",0},
1952 { "_time_t","_unsigned_int",0},
1953 { "_time_t","_int",0},
1954 { "_time_t","_wxWindowID",0},
1955 { "_time_t","_uint",0},
1956 { "_time_t","_size_t",0},
1957 { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0},
1958 { "_wxButton","_class_wxButton",0},
1959 { "_wxSize","_class_wxSize",0},
1960 { "_wxRegionIterator","_class_wxRegionIterator",0},
1961 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
1962 { "_class_wxTimeSpan","_wxTimeSpan",0},
1963 { "_class_wxPaintDC","_wxPaintDC",0},
1964 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
1965 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
1966 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
1967 { "_class_wxComboBox","_wxComboBox",0},
1968 { "_class_wxRadioButton","_wxRadioButton",0},
1969 { "_wxValidator","_class_wxValidator",0},
1970 { "_class_wxCalendarDateAttr","_wxCalendarDateAttr",0},
1971 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1972 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
1973 { "_class_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
1974 { "_class_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
1975 { "_class_wxControl","_wxControl",0},
1976 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
1977 { "_class_wxIcon","_wxIcon",0},
1978 { "_class_wxColour","_wxColour",0},
1979 { "_class_wxScreenDC","_wxScreenDC",0},
1980 { "_wxPalette","_class_wxPalette",0},
1981 { "_class_wxIdleEvent","_wxIdleEvent",0},
1982 { "_class_wxConfigBase","_wxConfigBase",0},
1983 { "_wxCoord","_int",0},
1984 { "_wxCoord","_signed_int",0},
1985 { "_wxCoord","_unsigned_int",0},
1986 { "_wxCoord","_wxWindowID",0},
1987 { "_wxCoord","_uint",0},
1988 { "_wxCoord","_EBool",0},
1989 { "_wxCoord","_size_t",0},
1990 { "_wxCoord","_time_t",0},
1991 { "_wxCoord","_wxPrintQuality",0},
1992 { "_wxEraseEvent","_class_wxEraseEvent",0},
1993 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
1994 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
1995 { "_class_wxToggleButton","_wxToggleButton",0},
1996 { "_wxRegion","_class_wxRegion",0},
1997 { "_class_wxDateSpan","_wxDateSpan",0},
1998 { "_class_wxShowEvent","_wxShowEvent",0},
1999 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
2000 { "_wxActivateEvent","_class_wxActivateEvent",0},
2001 { "_wxGauge","_class_wxGauge",0},
2002 { "_class_wxCheckListBox","_wxCheckListBox",0},
2003 { "_class_wxBusyInfo","_wxBusyInfo",0},
2004 { "_class_wxFontList","_wxFontList",0},
2005 { "_class_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
2006 { "_class_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
2007 { "_class_wxCommandEvent","_wxCommandEvent",0},
2008 { "_class_wxClientDC","_wxClientDC",0},
2009 { "_class_wxSizeEvent","_wxSizeEvent",0},
2010 { "_wxBrushList","_class_wxBrushList",0},
2011 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
2012 { "_class_wxSize","_wxSize",0},
2013 { "_class_wxBitmap","_wxBitmap",0},
2014 { "_class_wxMemoryDC","_wxMemoryDC",0},
2015 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
2016 { "_wxMenuBar","_class_wxMenuBar",0},
2017 { "_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
2018 { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
2019 { "_wxEvtHandler","_class_wxEvtHandler",0},
2020 { "_wxMenuItem","_class_wxMenuItem",0},
2021 { "_class_wxScrollBar","_wxScrollBar",0},
2022 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
2023 { "_class_wxConfig","_wxConfig",0},
2024 { "_wxKeyEvent","_class_wxKeyEvent",0},
2025 { "_wxMoveEvent","_class_wxMoveEvent",0},
2026 { "_wxCalendarCtrl","_class_wxCalendarCtrl",0},
2027 { "_class_wxPalette","_wxPalette",0},
2028 { "_wxFileDataObject","_class_wxFileDataObject",0},
2029 { "_class_wxEraseEvent","_wxEraseEvent",0},
2030 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
2031 { "_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
2032 { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
2033 { "_wxWindow","_class_wxWindow",0},
2034 { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0},
2035 {0,0,0}};
2036
2037 static PyObject *SWIG_globals;
2038 #ifdef __cplusplus
2039 extern "C"
2040 #endif
2041 SWIGEXPORT(void) initcalendarc() {
2042 PyObject *m, *d;
2043 SWIG_globals = SWIG_newvarlink();
2044 m = Py_InitModule("calendarc", calendarcMethods);
2045 d = PyModule_GetDict(m);
2046 PyDict_SetItemString(d,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST));
2047 PyDict_SetItemString(d,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST));
2048 PyDict_SetItemString(d,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS));
2049 PyDict_SetItemString(d,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE));
2050 PyDict_SetItemString(d,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE));
2051 PyDict_SetItemString(d,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE));
2052 PyDict_SetItemString(d,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER));
2053 PyDict_SetItemString(d,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY));
2054 PyDict_SetItemString(d,"wxCAL_BORDER_NONE", PyInt_FromLong((long) wxCAL_BORDER_NONE));
2055 PyDict_SetItemString(d,"wxCAL_BORDER_SQUARE", PyInt_FromLong((long) wxCAL_BORDER_SQUARE));
2056 PyDict_SetItemString(d,"wxCAL_BORDER_ROUND", PyInt_FromLong((long) wxCAL_BORDER_ROUND));
2057 PyDict_SetItemString(d,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED));
2058 PyDict_SetItemString(d,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED));
2059 PyDict_SetItemString(d,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED));
2060 PyDict_SetItemString(d,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED));
2061 PyDict_SetItemString(d,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED));
2062 PyDict_SetItemString(d,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED));
2063
2064 wxClassInfo::CleanUpClasses();
2065 wxClassInfo::InitializeClasses();
2066 {
2067 int i;
2068 for (i = 0; _swig_mapping[i].n1; i++)
2069 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2070 }
2071 }