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