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