]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/calendar.cpp
forgot to check-in wxGTK wxDC changes
[wxWidgets.git] / wxPython / src / msw / calendar.cpp
CommitLineData
f6bcfd97 1/*
c368d904 2 * FILE : src/msw/calendar.cpp
f6bcfd97
BP
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
185d7c3e 6 * Version 1.1 (Build 883)
f6bcfd97
BP
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__)
c368d904 30# define SWIGEXPORT(a) a _export
f6bcfd97 31# else
c368d904 32# define SWIGEXPORT(a) a
f6bcfd97
BP
33# endif
34# endif
35#else
c368d904 36# define SWIGEXPORT(a) a
f6bcfd97
BP
37#endif
38
c368d904
RD
39#include "Python.h"
40
f6bcfd97
BP
41#ifdef __cplusplus
42extern "C" {
43#endif
185d7c3e 44
f6bcfd97
BP
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initcalendarc
55
56#define SWIG_name "calendarc"
57
1e7ecb7b 58#include "export.h"
f6bcfd97
BP
59#include <wx/calctrl.h>
60
f6bcfd97
BP
61
62static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
e0672e2f 66 if (!target) {
f6bcfd97 67 target = o;
e0672e2f 68 } else if (target == Py_None) {
f6bcfd97
BP
69 Py_DECREF(Py_None);
70 target = o;
e0672e2f 71 } else {
f6bcfd97
BP
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
e0672e2f
RD
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
f6bcfd97
BP
79
80 o2 = target;
e0672e2f
RD
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
f6bcfd97
BP
83 Py_DECREF(o3);
84 }
85 return target;
86}
137b5242
RD
87
88 // Put some wx default wxChar* values into wxStrings.
89 DECLARE_DEF_STRING(CalendarNameStr);
f6bcfd97
BP
90#ifdef __cplusplus
91extern "C" {
92#endif
eedf876b
RD
93#define new_wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
94static 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{
4268f798 140 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 141 _result = (wxCalendarDateAttr *)new_wxCalendarDateAttr(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
eedf876b 142
4268f798 143 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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))
156static 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{
4268f798 176 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 177 _result = (wxCalendarDateAttr *)new_wxCalendarDateAttrBorder(_arg0,*_arg1);
eedf876b 178
4268f798 179 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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))
192static 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{
4268f798 217 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 218 wxCalendarDateAttr_SetTextColour(_arg0,*_arg1);
eedf876b 219
4268f798 220 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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))
228static 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{
4268f798 253 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 254 wxCalendarDateAttr_SetBackgroundColour(_arg0,*_arg1);
eedf876b 255
4268f798 256 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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))
264static 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{
4268f798 289 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 290 wxCalendarDateAttr_SetBorderColour(_arg0,*_arg1);
eedf876b 291
4268f798 292 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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))
300static 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{
4268f798 326 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 327 wxCalendarDateAttr_SetFont(_arg0,*_arg1);
eedf876b 328
4268f798 329 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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))
337static 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{
4268f798 355 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 356 wxCalendarDateAttr_SetBorder(_arg0,_arg1);
eedf876b 357
4268f798 358 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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))
366static 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{
4268f798 386 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 387 wxCalendarDateAttr_SetHoliday(_arg0,_arg1);
eedf876b 388
4268f798 389 wxPyEndAllowThreads(__tstate);
eedf876b
RD
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())
397static 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{
4268f798 415 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 416 _result = (bool )wxCalendarDateAttr_HasTextColour(_arg0);
eedf876b 417
4268f798 418 wxPyEndAllowThreads(__tstate);
eedf876b
RD
419 if (PyErr_Occurred()) return NULL;
420} _resultobj = Py_BuildValue("i",_result);
421 return _resultobj;
422}
423
424#define wxCalendarDateAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
425static 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{
4268f798 443 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 444 _result = (bool )wxCalendarDateAttr_HasBackgroundColour(_arg0);
eedf876b 445
4268f798 446 wxPyEndAllowThreads(__tstate);
eedf876b
RD
447 if (PyErr_Occurred()) return NULL;
448} _resultobj = Py_BuildValue("i",_result);
449 return _resultobj;
450}
451
452#define wxCalendarDateAttr_HasBorderColour(_swigobj) (_swigobj->HasBorderColour())
453static 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{
4268f798 471 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 472 _result = (bool )wxCalendarDateAttr_HasBorderColour(_arg0);
eedf876b 473
4268f798 474 wxPyEndAllowThreads(__tstate);
eedf876b
RD
475 if (PyErr_Occurred()) return NULL;
476} _resultobj = Py_BuildValue("i",_result);
477 return _resultobj;
478}
479
480#define wxCalendarDateAttr_HasFont(_swigobj) (_swigobj->HasFont())
481static 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{
4268f798 499 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 500 _result = (bool )wxCalendarDateAttr_HasFont(_arg0);
eedf876b 501
4268f798 502 wxPyEndAllowThreads(__tstate);
eedf876b
RD
503 if (PyErr_Occurred()) return NULL;
504} _resultobj = Py_BuildValue("i",_result);
505 return _resultobj;
506}
507
508#define wxCalendarDateAttr_HasBorder(_swigobj) (_swigobj->HasBorder())
509static 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{
4268f798 527 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 528 _result = (bool )wxCalendarDateAttr_HasBorder(_arg0);
eedf876b 529
4268f798 530 wxPyEndAllowThreads(__tstate);
eedf876b
RD
531 if (PyErr_Occurred()) return NULL;
532} _resultobj = Py_BuildValue("i",_result);
533 return _resultobj;
534}
535
536#define wxCalendarDateAttr_IsHoliday(_swigobj) (_swigobj->IsHoliday())
537static 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{
4268f798 555 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 556 _result = (bool )wxCalendarDateAttr_IsHoliday(_arg0);
eedf876b 557
4268f798 558 wxPyEndAllowThreads(__tstate);
eedf876b
RD
559 if (PyErr_Occurred()) return NULL;
560} _resultobj = Py_BuildValue("i",_result);
561 return _resultobj;
562}
563
564#define wxCalendarDateAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
565static 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{
4268f798 584 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 585 _result = new wxColour (wxCalendarDateAttr_GetTextColour(_arg0));
eedf876b 586
4268f798 587 wxPyEndAllowThreads(__tstate);
eedf876b 588 if (PyErr_Occurred()) return NULL;
c5943253
RD
589} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
590 _resultobj = Py_BuildValue("s",_ptemp);
eedf876b
RD
591 return _resultobj;
592}
593
594#define wxCalendarDateAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
595static 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{
4268f798 614 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 615 _result = new wxColour (wxCalendarDateAttr_GetBackgroundColour(_arg0));
eedf876b 616
4268f798 617 wxPyEndAllowThreads(__tstate);
eedf876b 618 if (PyErr_Occurred()) return NULL;
c5943253
RD
619} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
620 _resultobj = Py_BuildValue("s",_ptemp);
eedf876b
RD
621 return _resultobj;
622}
623
624#define wxCalendarDateAttr_GetBorderColour(_swigobj) (_swigobj->GetBorderColour())
625static 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{
4268f798 644 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 645 _result = new wxColour (wxCalendarDateAttr_GetBorderColour(_arg0));
eedf876b 646
4268f798 647 wxPyEndAllowThreads(__tstate);
eedf876b 648 if (PyErr_Occurred()) return NULL;
c5943253
RD
649} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
650 _resultobj = Py_BuildValue("s",_ptemp);
eedf876b
RD
651 return _resultobj;
652}
653
654#define wxCalendarDateAttr_GetFont(_swigobj) (_swigobj->GetFont())
655static 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{
4268f798 674 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 675 _result = new wxFont (wxCalendarDateAttr_GetFont(_arg0));
eedf876b 676
4268f798 677 wxPyEndAllowThreads(__tstate);
eedf876b 678 if (PyErr_Occurred()) return NULL;
c5943253
RD
679} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
680 _resultobj = Py_BuildValue("s",_ptemp);
eedf876b
RD
681 return _resultobj;
682}
683
684#define wxCalendarDateAttr_GetBorder(_swigobj) (_swigobj->GetBorder())
685static 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{
4268f798 703 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 704 _result = (wxCalendarDateBorder )wxCalendarDateAttr_GetBorder(_arg0);
eedf876b 705
4268f798 706 wxPyEndAllowThreads(__tstate);
eedf876b
RD
707 if (PyErr_Occurred()) return NULL;
708} _resultobj = Py_BuildValue("i",_result);
709 return _resultobj;
710}
711
f6bcfd97
BP
712static void *SwigwxCalendarEventTowxCommandEvent(void *ptr) {
713 wxCalendarEvent *src;
714 wxCommandEvent *dest;
715 src = (wxCalendarEvent *) ptr;
716 dest = (wxCommandEvent *) src;
717 return (void *) dest;
718}
719
720static void *SwigwxCalendarEventTowxEvent(void *ptr) {
721 wxCalendarEvent *src;
722 wxEvent *dest;
723 src = (wxCalendarEvent *) ptr;
724 dest = (wxEvent *) src;
725 return (void *) dest;
726}
727
9416aa89
RD
728static void *SwigwxCalendarEventTowxObject(void *ptr) {
729 wxCalendarEvent *src;
730 wxObject *dest;
731 src = (wxCalendarEvent *) ptr;
732 dest = (wxObject *) src;
733 return (void *) dest;
734}
735
f6bcfd97
BP
736#define new_wxCalendarEvent(_swigarg0,_swigarg1) (new wxCalendarEvent(_swigarg0,_swigarg1))
737static 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{
4268f798 757 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 758 _result = (wxCalendarEvent *)new_wxCalendarEvent(_arg0,_arg1);
f6bcfd97 759
4268f798 760 wxPyEndAllowThreads(__tstate);
493f1553 761 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
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())
773static 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{
4268f798 792 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 793 const wxDateTime & _result_ref = wxCalendarEvent_GetDate(_arg0);
f6bcfd97
BP
794 _result = (wxDateTime *) &_result_ref;
795
4268f798 796 wxPyEndAllowThreads(__tstate);
493f1553 797 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
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())
809static 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{
4268f798 827 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 828 _result = (wxDateTime::WeekDay )wxCalendarEvent_GetWeekDay(_arg0);
f6bcfd97 829
4268f798 830 wxPyEndAllowThreads(__tstate);
493f1553 831 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
832} _resultobj = Py_BuildValue("i",_result);
833 return _resultobj;
834}
835
836static void *SwigwxCalendarCtrlTowxControl(void *ptr) {
837 wxCalendarCtrl *src;
838 wxControl *dest;
839 src = (wxCalendarCtrl *) ptr;
840 dest = (wxControl *) src;
841 return (void *) dest;
842}
843
844static void *SwigwxCalendarCtrlTowxWindow(void *ptr) {
845 wxCalendarCtrl *src;
846 wxWindow *dest;
847 src = (wxCalendarCtrl *) ptr;
848 dest = (wxWindow *) src;
849 return (void *) dest;
850}
851
852static void *SwigwxCalendarCtrlTowxEvtHandler(void *ptr) {
853 wxCalendarCtrl *src;
854 wxEvtHandler *dest;
855 src = (wxCalendarCtrl *) ptr;
856 dest = (wxEvtHandler *) src;
857 return (void *) dest;
858}
859
9416aa89
RD
860static void *SwigwxCalendarCtrlTowxObject(void *ptr) {
861 wxCalendarCtrl *src;
862 wxObject *dest;
863 src = (wxCalendarCtrl *) ptr;
864 dest = (wxObject *) src;
865 return (void *) dest;
866}
867
f6bcfd97
BP
868#define new_wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
869static 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;
bae17009 877 long _arg5 = (long ) (wxCAL_SHOW_HOLIDAYS)|wxWANTS_CHARS;
137b5242 878 wxString * _arg6 = (wxString *) &wxPyCalendarNameStr;
f6bcfd97
BP
879 PyObject * _argo0 = 0;
880 PyObject * _argo2 = 0;
881 wxPoint temp;
882 PyObject * _obj3 = 0;
883 wxSize temp0;
884 PyObject * _obj4 = 0;
137b5242 885 PyObject * _obj6 = 0;
f6bcfd97
BP
886 char *_kwnames[] = { "parent","id","date","pos","size","style","name", NULL };
887 char _ptemp[128];
888
889 self = self;
137b5242 890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlO:new_wxCalendarCtrl",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6))
f6bcfd97
BP
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;
137b5242
RD
917}
918 if (_obj6)
919{
920 _arg6 = wxString_in_helper(_obj6);
921 if (_arg6 == NULL)
922 return NULL;
f6bcfd97
BP
923}
924{
4268f798 925 PyThreadState* __tstate = wxPyBeginAllowThreads();
137b5242 926 _result = (wxCalendarCtrl *)new_wxCalendarCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
f6bcfd97 927
4268f798 928 wxPyEndAllowThreads(__tstate);
493f1553 929 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
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 }
137b5242
RD
937{
938 if (_obj6)
939 delete _arg6;
940}
f6bcfd97
BP
941 return _resultobj;
942}
943
09f3d4e6
RD
944#define new_wxPreCalendarCtrl() (new wxCalendarCtrl())
945static 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{
4268f798 955 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 956 _result = (wxCalendarCtrl *)new_wxPreCalendarCtrl();
09f3d4e6 957
4268f798 958 wxPyEndAllowThreads(__tstate);
09f3d4e6
RD
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))
971static 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;
bae17009 980 long _arg6 = (long ) (wxCAL_SHOW_HOLIDAYS)|wxWANTS_CHARS;
137b5242 981 wxString * _arg7 = (wxString *) &wxPyCalendarNameStr;
09f3d4e6
RD
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;
137b5242 989 PyObject * _obj7 = 0;
09f3d4e6
RD
990 char *_kwnames[] = { "self","parent","id","date","pos","size","style","name", NULL };
991
992 self = self;
137b5242 993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlO:wxCalendarCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_obj7))
09f3d4e6
RD
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;
137b5242
RD
1027}
1028 if (_obj7)
1029{
1030 _arg7 = wxString_in_helper(_obj7);
1031 if (_arg7 == NULL)
1032 return NULL;
09f3d4e6
RD
1033}
1034{
4268f798 1035 PyThreadState* __tstate = wxPyBeginAllowThreads();
137b5242 1036 _result = (bool )wxCalendarCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7);
09f3d4e6 1037
4268f798 1038 wxPyEndAllowThreads(__tstate);
09f3d4e6
RD
1039 if (PyErr_Occurred()) return NULL;
1040} _resultobj = Py_BuildValue("i",_result);
137b5242
RD
1041{
1042 if (_obj7)
1043 delete _arg7;
1044}
09f3d4e6
RD
1045 return _resultobj;
1046}
1047
f6bcfd97
BP
1048#define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0))
1049static 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{
4268f798 1075 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1076 wxCalendarCtrl_SetDate(_arg0,*_arg1);
f6bcfd97 1077
4268f798 1078 wxPyEndAllowThreads(__tstate);
493f1553 1079 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1080} Py_INCREF(Py_None);
1081 _resultobj = Py_None;
1082 return _resultobj;
1083}
1084
1085#define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate())
1086static 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{
4268f798 1105 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1106 const wxDateTime & _result_ref = wxCalendarCtrl_GetDate(_arg0);
f6bcfd97
BP
1107 _result = (wxDateTime *) &_result_ref;
1108
4268f798 1109 wxPyEndAllowThreads(__tstate);
493f1553 1110 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
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
ab11ebfa
RD
1121#define wxCalendarCtrl_SetLowerDateLimit(_swigobj,_swigarg0) (_swigobj->SetLowerDateLimit(_swigarg0))
1122static 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{
4268f798 1149 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1150 _result = (bool )wxCalendarCtrl_SetLowerDateLimit(_arg0,*_arg1);
ab11ebfa 1151
4268f798 1152 wxPyEndAllowThreads(__tstate);
ab11ebfa
RD
1153 if (PyErr_Occurred()) return NULL;
1154} _resultobj = Py_BuildValue("i",_result);
1155 return _resultobj;
1156}
1157
1158#define wxCalendarCtrl_GetLowerDateLimit(_swigobj) (_swigobj->GetLowerDateLimit())
1159static 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{
4268f798 1178 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1179 const wxDateTime & _result_ref = wxCalendarCtrl_GetLowerDateLimit(_arg0);
ab11ebfa
RD
1180 _result = (wxDateTime *) &_result_ref;
1181
4268f798 1182 wxPyEndAllowThreads(__tstate);
ab11ebfa
RD
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))
1195static 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{
4268f798 1222 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1223 _result = (bool )wxCalendarCtrl_SetUpperDateLimit(_arg0,*_arg1);
ab11ebfa 1224
4268f798 1225 wxPyEndAllowThreads(__tstate);
ab11ebfa
RD
1226 if (PyErr_Occurred()) return NULL;
1227} _resultobj = Py_BuildValue("i",_result);
1228 return _resultobj;
1229}
1230
1231#define wxCalendarCtrl_GetUpperDateLimit(_swigobj) (_swigobj->GetUpperDateLimit())
1232static 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{
4268f798 1251 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1252 const wxDateTime & _result_ref = wxCalendarCtrl_GetUpperDateLimit(_arg0);
ab11ebfa
RD
1253 _result = (wxDateTime *) &_result_ref;
1254
4268f798 1255 wxPyEndAllowThreads(__tstate);
ab11ebfa
RD
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))
1268static 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{
4268f798 1304 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1305 _result = (bool )wxCalendarCtrl_SetDateRange(_arg0,*_arg1,*_arg2);
ab11ebfa 1306
4268f798 1307 wxPyEndAllowThreads(__tstate);
ab11ebfa
RD
1308 if (PyErr_Occurred()) return NULL;
1309} _resultobj = Py_BuildValue("i",_result);
1310 return _resultobj;
1311}
1312
f6bcfd97
BP
1313#define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0))
1314static 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{
4268f798 1334 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1335 wxCalendarCtrl_EnableYearChange(_arg0,_arg1);
f6bcfd97 1336
4268f798 1337 wxPyEndAllowThreads(__tstate);
493f1553 1338 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1339} Py_INCREF(Py_None);
1340 _resultobj = Py_None;
1341 return _resultobj;
1342}
1343
1344#define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0))
1345static 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{
4268f798 1365 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1366 wxCalendarCtrl_EnableMonthChange(_arg0,_arg1);
f6bcfd97 1367
4268f798 1368 wxPyEndAllowThreads(__tstate);
493f1553 1369 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1370} Py_INCREF(Py_None);
1371 _resultobj = Py_None;
1372 return _resultobj;
1373}
1374
1375#define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0))
1376static 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{
4268f798 1396 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1397 wxCalendarCtrl_EnableHolidayDisplay(_arg0,_arg1);
f6bcfd97 1398
4268f798 1399 wxPyEndAllowThreads(__tstate);
493f1553 1400 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
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))
1407static 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{
4268f798 1440 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1441 wxCalendarCtrl_SetHeaderColours(_arg0,*_arg1,*_arg2);
f6bcfd97 1442
4268f798 1443 wxPyEndAllowThreads(__tstate);
493f1553 1444 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1445} Py_INCREF(Py_None);
1446 _resultobj = Py_None;
1447 return _resultobj;
1448}
1449
1450#define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg())
1451static 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{
4268f798 1470 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1471 _result = new wxColour (wxCalendarCtrl_GetHeaderColourFg(_arg0));
f6bcfd97 1472
4268f798 1473 wxPyEndAllowThreads(__tstate);
493f1553 1474 if (PyErr_Occurred()) return NULL;
c5943253
RD
1475} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1476 _resultobj = Py_BuildValue("s",_ptemp);
f6bcfd97
BP
1477 return _resultobj;
1478}
1479
1480#define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg())
1481static 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{
4268f798 1500 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1501 _result = new wxColour (wxCalendarCtrl_GetHeaderColourBg(_arg0));
f6bcfd97 1502
4268f798 1503 wxPyEndAllowThreads(__tstate);
493f1553 1504 if (PyErr_Occurred()) return NULL;
c5943253
RD
1505} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1506 _resultobj = Py_BuildValue("s",_ptemp);
f6bcfd97
BP
1507 return _resultobj;
1508}
1509
1510#define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1))
1511static 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{
4268f798 1544 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1545 wxCalendarCtrl_SetHighlightColours(_arg0,*_arg1,*_arg2);
f6bcfd97 1546
4268f798 1547 wxPyEndAllowThreads(__tstate);
493f1553 1548 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1549} Py_INCREF(Py_None);
1550 _resultobj = Py_None;
1551 return _resultobj;
1552}
1553
1554#define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg())
1555static 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{
4268f798 1574 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1575 _result = new wxColour (wxCalendarCtrl_GetHighlightColourFg(_arg0));
f6bcfd97 1576
4268f798 1577 wxPyEndAllowThreads(__tstate);
493f1553 1578 if (PyErr_Occurred()) return NULL;
c5943253
RD
1579} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1580 _resultobj = Py_BuildValue("s",_ptemp);
f6bcfd97
BP
1581 return _resultobj;
1582}
1583
1584#define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg())
1585static 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{
4268f798 1604 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1605 _result = new wxColour (wxCalendarCtrl_GetHighlightColourBg(_arg0));
f6bcfd97 1606
4268f798 1607 wxPyEndAllowThreads(__tstate);
493f1553 1608 if (PyErr_Occurred()) return NULL;
c5943253
RD
1609} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1610 _resultobj = Py_BuildValue("s",_ptemp);
f6bcfd97
BP
1611 return _resultobj;
1612}
1613
1614#define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1))
1615static 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{
4268f798 1648 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1649 wxCalendarCtrl_SetHolidayColours(_arg0,*_arg1,*_arg2);
f6bcfd97 1650
4268f798 1651 wxPyEndAllowThreads(__tstate);
493f1553 1652 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1653} Py_INCREF(Py_None);
1654 _resultobj = Py_None;
1655 return _resultobj;
1656}
1657
1658#define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg())
1659static 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{
4268f798 1678 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1679 _result = new wxColour (wxCalendarCtrl_GetHolidayColourFg(_arg0));
f6bcfd97 1680
4268f798 1681 wxPyEndAllowThreads(__tstate);
493f1553 1682 if (PyErr_Occurred()) return NULL;
c5943253
RD
1683} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1684 _resultobj = Py_BuildValue("s",_ptemp);
f6bcfd97
BP
1685 return _resultobj;
1686}
1687
1688#define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg())
1689static 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{
4268f798 1708 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1709 _result = new wxColour (wxCalendarCtrl_GetHolidayColourBg(_arg0));
f6bcfd97 1710
4268f798 1711 wxPyEndAllowThreads(__tstate);
493f1553 1712 if (PyErr_Occurred()) return NULL;
c5943253
RD
1713} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1714 _resultobj = Py_BuildValue("s",_ptemp);
f6bcfd97
BP
1715 return _resultobj;
1716}
1717
1718#define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0))
1719static 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{
4268f798 1739 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1740 _result = (wxCalendarDateAttr *)wxCalendarCtrl_GetAttr(_arg0,_arg1);
f6bcfd97 1741
4268f798 1742 wxPyEndAllowThreads(__tstate);
493f1553 1743 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
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))
1755static 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{
4268f798 1782 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1783 wxCalendarCtrl_SetAttr(_arg0,_arg1,_arg2);
f6bcfd97 1784
4268f798 1785 wxPyEndAllowThreads(__tstate);
493f1553 1786 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1787} Py_INCREF(Py_None);
1788 _resultobj = Py_None;
1789 return _resultobj;
1790}
1791
1792#define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0))
1793static 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{
4268f798 1811 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1812 wxCalendarCtrl_SetHoliday(_arg0,_arg1);
f6bcfd97 1813
4268f798 1814 wxPyEndAllowThreads(__tstate);
493f1553 1815 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1816} Py_INCREF(Py_None);
1817 _resultobj = Py_None;
1818 return _resultobj;
1819}
1820
1821#define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0))
1822static 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{
4268f798 1840 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1841 wxCalendarCtrl_ResetAttr(_arg0,_arg1);
f6bcfd97 1842
4268f798 1843 wxPyEndAllowThreads(__tstate);
493f1553 1844 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
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))
1851static PyObject *_wrap_wxCalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
1852 PyObject * _resultobj;
eedf876b 1853 wxCalendarHitTestResult _result;
f6bcfd97
BP
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{
4268f798 1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1896 _result = (wxCalendarHitTestResult )wxCalendarCtrl_HitTest(_arg0,*_arg1,_arg2,_arg3);
ab11ebfa 1897
4268f798 1898 wxPyEndAllowThreads(__tstate);
ab11ebfa 1899 if (PyErr_Occurred()) return NULL;
eedf876b 1900} _resultobj = Py_BuildValue("i",_result);
ab11ebfa
RD
1901 return _resultobj;
1902}
1903
1904#define wxCalendarCtrl_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1905static 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{
4268f798 1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1927 _result = (bool )wxCalendarCtrl_Enable(_arg0,_arg1);
ab11ebfa 1928
4268f798 1929 wxPyEndAllowThreads(__tstate);
ab11ebfa
RD
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))
1936static 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{
4268f798 1957 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1958 _result = (bool )wxCalendarCtrl_Show(_arg0,_arg1);
f6bcfd97 1959
4268f798 1960 wxPyEndAllowThreads(__tstate);
493f1553 1961 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1962} _resultobj = Py_BuildValue("i",_result);
1963 return _resultobj;
1964}
1965
1966static PyMethodDef calendarcMethods[] = {
ab11ebfa
RD
1967 { "wxCalendarCtrl_Show", (PyCFunction) _wrap_wxCalendarCtrl_Show, METH_VARARGS | METH_KEYWORDS },
1968 { "wxCalendarCtrl_Enable", (PyCFunction) _wrap_wxCalendarCtrl_Enable, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
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 },
ab11ebfa
RD
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 },
f6bcfd97
BP
1991 { "wxCalendarCtrl_GetDate", (PyCFunction) _wrap_wxCalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS },
1992 { "wxCalendarCtrl_SetDate", (PyCFunction) _wrap_wxCalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS },
09f3d4e6
RD
1993 { "wxCalendarCtrl_Create", (PyCFunction) _wrap_wxCalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS },
1994 { "new_wxPreCalendarCtrl", (PyCFunction) _wrap_new_wxPreCalendarCtrl, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
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 },
eedf876b
RD
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 },
f6bcfd97
BP
2018 { NULL, NULL }
2019};
2020#ifdef __cplusplus
2021}
2022#endif
2023/*
2024 * This table is used by the pointer type-checker
2025 */
2026static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
f6bcfd97 2027 { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent},
f6bcfd97 2028 { "_signed_long","_long",0},
f6bcfd97
BP
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},
c368d904 2037 { "_wxPrintQuality","_time_t",0},
f6bcfd97 2038 { "_byte","_unsigned_char",0},
f6bcfd97
BP
2039 { "_long","_unsigned_long",0},
2040 { "_long","_signed_long",0},
f6bcfd97
BP
2041 { "_size_t","_wxCoord",0},
2042 { "_size_t","_wxPrintQuality",0},
c368d904 2043 { "_size_t","_time_t",0},
f6bcfd97
BP
2044 { "_size_t","_unsigned_int",0},
2045 { "_size_t","_int",0},
2046 { "_size_t","_wxWindowID",0},
2047 { "_size_t","_uint",0},
f6bcfd97
BP
2048 { "_uint","_wxCoord",0},
2049 { "_uint","_wxPrintQuality",0},
c368d904 2050 { "_uint","_time_t",0},
f6bcfd97
BP
2051 { "_uint","_size_t",0},
2052 { "_uint","_unsigned_int",0},
2053 { "_uint","_int",0},
2054 { "_uint","_wxWindowID",0},
2055 { "_wxChar","_char",0},
f6bcfd97 2056 { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent},
f6bcfd97 2057 { "_char","_wxChar",0},
cdf14688 2058 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
f6bcfd97
BP
2059 { "_EBool","_wxCoord",0},
2060 { "_EBool","_wxPrintQuality",0},
2061 { "_EBool","_signed_int",0},
2062 { "_EBool","_int",0},
2063 { "_EBool","_wxWindowID",0},
f6bcfd97 2064 { "_unsigned_long","_long",0},
cdf14688 2065 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
f6bcfd97
BP
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},
f6bcfd97
BP
2071 { "_WXTYPE","_wxDateTime_t",0},
2072 { "_WXTYPE","_short",0},
2073 { "_WXTYPE","_signed_short",0},
2074 { "_WXTYPE","_unsigned_short",0},
f6bcfd97
BP
2075 { "_unsigned_short","_wxDateTime_t",0},
2076 { "_unsigned_short","_WXTYPE",0},
2077 { "_unsigned_short","_short",0},
9416aa89 2078 { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
9416aa89 2079 { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject},
f6bcfd97
BP
2080 { "_signed_short","_WXTYPE",0},
2081 { "_signed_short","_short",0},
f6bcfd97 2082 { "_unsigned_char","_byte",0},
f6bcfd97 2083 { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl},
f6bcfd97
BP
2084 { "_unsigned_int","_wxCoord",0},
2085 { "_unsigned_int","_wxPrintQuality",0},
c368d904 2086 { "_unsigned_int","_time_t",0},
f6bcfd97
BP
2087 { "_unsigned_int","_size_t",0},
2088 { "_unsigned_int","_uint",0},
2089 { "_unsigned_int","_wxWindowID",0},
2090 { "_unsigned_int","_int",0},
f6bcfd97
BP
2091 { "_short","_wxDateTime_t",0},
2092 { "_short","_WXTYPE",0},
2093 { "_short","_unsigned_short",0},
2094 { "_short","_signed_short",0},
f6bcfd97
BP
2095 { "_wxWindowID","_wxCoord",0},
2096 { "_wxWindowID","_wxPrintQuality",0},
c368d904 2097 { "_wxWindowID","_time_t",0},
f6bcfd97
BP
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},
f6bcfd97
BP
2104 { "_int","_wxCoord",0},
2105 { "_int","_wxPrintQuality",0},
c368d904 2106 { "_int","_time_t",0},
f6bcfd97
BP
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},
f6bcfd97
BP
2113 { "_wxDateTime_t","_unsigned_short",0},
2114 { "_wxDateTime_t","_short",0},
2115 { "_wxDateTime_t","_WXTYPE",0},
c368d904
RD
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},
f6bcfd97
BP
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},
c368d904 2130 { "_wxCoord","_time_t",0},
f6bcfd97 2131 { "_wxCoord","_wxPrintQuality",0},
f6bcfd97 2132 { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler},
f6bcfd97 2133 { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow},
f6bcfd97
BP
2134{0,0,0}};
2135
2136static PyObject *SWIG_globals;
2137#ifdef __cplusplus
2138extern "C"
2139#endif
2140SWIGEXPORT(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));
ab11ebfa
RD
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));
f6bcfd97
BP
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));
eedf876b
RD
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));
f6bcfd97
BP
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));
e508a2b6
RD
2167
2168 wxClassInfo::CleanUpClasses();
2169 wxClassInfo::InitializeClasses();
f6bcfd97
BP
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}