2 * FILE : src/msw/calendar.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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);
54 #define SWIG_init initcalendarc
56 #define SWIG_name "calendarc"
59 #include <wx/calctrl.h>
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
88 #if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg
= "String or Unicode type required";
91 static char* wxStringErrorMsg
= "string type is required for parameter";
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
;
101 wxColour
* _arg1
= (wxColour
*) &wxNullColour
;
102 wxColour
* _arg2
= (wxColour
*) &wxNullColour
;
103 wxFont
* _arg3
= (wxFont
*) &wxNullFont
;
104 wxCalendarDateBorder _arg4
= (wxCalendarDateBorder
) (wxCAL_BORDER_NONE
);
106 PyObject
* _obj0
= 0;
108 PyObject
* _obj1
= 0;
110 PyObject
* _obj2
= 0;
111 PyObject
* _argo3
= 0;
112 char *_kwnames
[] = { "colText","colBack","colBorder","font","border", NULL
};
116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OOOi:new_wxCalendarDateAttr",_kwnames
,&_obj0
,&_obj1
,&_obj2
,&_argo3
,&_arg4
))
120 if (! wxColour_helper(_obj0
, &_arg0
))
126 if (! wxColour_helper(_obj1
, &_arg1
))
132 if (! wxColour_helper(_obj2
, &_arg2
))
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.");
143 wxPy_BEGIN_ALLOW_THREADS
;
144 _result
= (wxCalendarDateAttr
*)new_wxCalendarDateAttr(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
146 wxPy_END_ALLOW_THREADS
;
147 if (PyErr_Occurred()) return NULL
;
149 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCalendarDateAttr_p");
150 _resultobj
= Py_BuildValue("s",_ptemp
);
153 _resultobj
= Py_None
;
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
;
165 PyObject
* _obj1
= 0;
166 char *_kwnames
[] = { "border","colBorder", NULL
};
170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i|O:new_wxCalendarDateAttrBorder",_kwnames
,&_arg0
,&_obj1
))
175 if (! wxColour_helper(_obj1
, &_arg1
))
179 wxPy_BEGIN_ALLOW_THREADS
;
180 _result
= (wxCalendarDateAttr
*)new_wxCalendarDateAttrBorder(_arg0
,*_arg1
);
182 wxPy_END_ALLOW_THREADS
;
183 if (PyErr_Occurred()) return NULL
;
185 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCalendarDateAttr_p");
186 _resultobj
= Py_BuildValue("s",_ptemp
);
189 _resultobj
= Py_None
;
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
;
199 PyObject
* _argo0
= 0;
201 PyObject
* _obj1
= 0;
202 char *_kwnames
[] = { "self","colText", NULL
};
205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCalendarDateAttr_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
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.");
216 if (! wxColour_helper(_obj1
, &_arg1
))
220 wxPy_BEGIN_ALLOW_THREADS
;
221 wxCalendarDateAttr_SetTextColour(_arg0
,*_arg1
);
223 wxPy_END_ALLOW_THREADS
;
224 if (PyErr_Occurred()) return NULL
;
225 } Py_INCREF(Py_None
);
226 _resultobj
= Py_None
;
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
;
235 PyObject
* _argo0
= 0;
237 PyObject
* _obj1
= 0;
238 char *_kwnames
[] = { "self","colBack", NULL
};
241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCalendarDateAttr_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
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.");
252 if (! wxColour_helper(_obj1
, &_arg1
))
256 wxPy_BEGIN_ALLOW_THREADS
;
257 wxCalendarDateAttr_SetBackgroundColour(_arg0
,*_arg1
);
259 wxPy_END_ALLOW_THREADS
;
260 if (PyErr_Occurred()) return NULL
;
261 } Py_INCREF(Py_None
);
262 _resultobj
= Py_None
;
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
;
271 PyObject
* _argo0
= 0;
273 PyObject
* _obj1
= 0;
274 char *_kwnames
[] = { "self","col", NULL
};
277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCalendarDateAttr_SetBorderColour",_kwnames
,&_argo0
,&_obj1
))
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.");
288 if (! wxColour_helper(_obj1
, &_arg1
))
292 wxPy_BEGIN_ALLOW_THREADS
;
293 wxCalendarDateAttr_SetBorderColour(_arg0
,*_arg1
);
295 wxPy_END_ALLOW_THREADS
;
296 if (PyErr_Occurred()) return NULL
;
297 } Py_INCREF(Py_None
);
298 _resultobj
= Py_None
;
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
;
307 PyObject
* _argo0
= 0;
308 PyObject
* _argo1
= 0;
309 char *_kwnames
[] = { "self","font", NULL
};
312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCalendarDateAttr_SetFont",_kwnames
,&_argo0
,&_argo1
))
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.");
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.");
329 wxPy_BEGIN_ALLOW_THREADS
;
330 wxCalendarDateAttr_SetFont(_arg0
,*_arg1
);
332 wxPy_END_ALLOW_THREADS
;
333 if (PyErr_Occurred()) return NULL
;
334 } Py_INCREF(Py_None
);
335 _resultobj
= Py_None
;
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
};
348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarDateAttr_SetBorder",_kwnames
,&_argo0
,&_arg1
))
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.");
358 wxPy_BEGIN_ALLOW_THREADS
;
359 wxCalendarDateAttr_SetBorder(_arg0
,_arg1
);
361 wxPy_END_ALLOW_THREADS
;
362 if (PyErr_Occurred()) return NULL
;
363 } Py_INCREF(Py_None
);
364 _resultobj
= Py_None
;
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
;
373 PyObject
* _argo0
= 0;
375 char *_kwnames
[] = { "self","holiday", NULL
};
378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarDateAttr_SetHoliday",_kwnames
,&_argo0
,&tempbool1
))
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.");
387 _arg1
= (bool ) tempbool1
;
389 wxPy_BEGIN_ALLOW_THREADS
;
390 wxCalendarDateAttr_SetHoliday(_arg0
,_arg1
);
392 wxPy_END_ALLOW_THREADS
;
393 if (PyErr_Occurred()) return NULL
;
394 } Py_INCREF(Py_None
);
395 _resultobj
= Py_None
;
399 #define wxCalendarDateAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
400 static PyObject
*_wrap_wxCalendarDateAttr_HasTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
401 PyObject
* _resultobj
;
403 wxCalendarDateAttr
* _arg0
;
404 PyObject
* _argo0
= 0;
405 char *_kwnames
[] = { "self", NULL
};
408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_HasTextColour",_kwnames
,&_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.");
418 wxPy_BEGIN_ALLOW_THREADS
;
419 _result
= (bool )wxCalendarDateAttr_HasTextColour(_arg0
);
421 wxPy_END_ALLOW_THREADS
;
422 if (PyErr_Occurred()) return NULL
;
423 } _resultobj
= Py_BuildValue("i",_result
);
427 #define wxCalendarDateAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
428 static PyObject
*_wrap_wxCalendarDateAttr_HasBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
429 PyObject
* _resultobj
;
431 wxCalendarDateAttr
* _arg0
;
432 PyObject
* _argo0
= 0;
433 char *_kwnames
[] = { "self", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_HasBackgroundColour",_kwnames
,&_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.");
446 wxPy_BEGIN_ALLOW_THREADS
;
447 _result
= (bool )wxCalendarDateAttr_HasBackgroundColour(_arg0
);
449 wxPy_END_ALLOW_THREADS
;
450 if (PyErr_Occurred()) return NULL
;
451 } _resultobj
= Py_BuildValue("i",_result
);
455 #define wxCalendarDateAttr_HasBorderColour(_swigobj) (_swigobj->HasBorderColour())
456 static PyObject
*_wrap_wxCalendarDateAttr_HasBorderColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
457 PyObject
* _resultobj
;
459 wxCalendarDateAttr
* _arg0
;
460 PyObject
* _argo0
= 0;
461 char *_kwnames
[] = { "self", NULL
};
464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_HasBorderColour",_kwnames
,&_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.");
474 wxPy_BEGIN_ALLOW_THREADS
;
475 _result
= (bool )wxCalendarDateAttr_HasBorderColour(_arg0
);
477 wxPy_END_ALLOW_THREADS
;
478 if (PyErr_Occurred()) return NULL
;
479 } _resultobj
= Py_BuildValue("i",_result
);
483 #define wxCalendarDateAttr_HasFont(_swigobj) (_swigobj->HasFont())
484 static PyObject
*_wrap_wxCalendarDateAttr_HasFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
487 wxCalendarDateAttr
* _arg0
;
488 PyObject
* _argo0
= 0;
489 char *_kwnames
[] = { "self", NULL
};
492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_HasFont",_kwnames
,&_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.");
502 wxPy_BEGIN_ALLOW_THREADS
;
503 _result
= (bool )wxCalendarDateAttr_HasFont(_arg0
);
505 wxPy_END_ALLOW_THREADS
;
506 if (PyErr_Occurred()) return NULL
;
507 } _resultobj
= Py_BuildValue("i",_result
);
511 #define wxCalendarDateAttr_HasBorder(_swigobj) (_swigobj->HasBorder())
512 static PyObject
*_wrap_wxCalendarDateAttr_HasBorder(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
513 PyObject
* _resultobj
;
515 wxCalendarDateAttr
* _arg0
;
516 PyObject
* _argo0
= 0;
517 char *_kwnames
[] = { "self", NULL
};
520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_HasBorder",_kwnames
,&_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.");
530 wxPy_BEGIN_ALLOW_THREADS
;
531 _result
= (bool )wxCalendarDateAttr_HasBorder(_arg0
);
533 wxPy_END_ALLOW_THREADS
;
534 if (PyErr_Occurred()) return NULL
;
535 } _resultobj
= Py_BuildValue("i",_result
);
539 #define wxCalendarDateAttr_IsHoliday(_swigobj) (_swigobj->IsHoliday())
540 static PyObject
*_wrap_wxCalendarDateAttr_IsHoliday(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
541 PyObject
* _resultobj
;
543 wxCalendarDateAttr
* _arg0
;
544 PyObject
* _argo0
= 0;
545 char *_kwnames
[] = { "self", NULL
};
548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_IsHoliday",_kwnames
,&_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.");
558 wxPy_BEGIN_ALLOW_THREADS
;
559 _result
= (bool )wxCalendarDateAttr_IsHoliday(_arg0
);
561 wxPy_END_ALLOW_THREADS
;
562 if (PyErr_Occurred()) return NULL
;
563 } _resultobj
= Py_BuildValue("i",_result
);
567 #define wxCalendarDateAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
568 static PyObject
*_wrap_wxCalendarDateAttr_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
569 PyObject
* _resultobj
;
571 wxCalendarDateAttr
* _arg0
;
572 PyObject
* _argo0
= 0;
573 char *_kwnames
[] = { "self", NULL
};
577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_GetTextColour",_kwnames
,&_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.");
587 wxPy_BEGIN_ALLOW_THREADS
;
588 const wxColour
& _result_ref
= wxCalendarDateAttr_GetTextColour(_arg0
);
589 _result
= (wxColour
*) &_result_ref
;
591 wxPy_END_ALLOW_THREADS
;
592 if (PyErr_Occurred()) return NULL
;
594 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
595 _resultobj
= Py_BuildValue("s",_ptemp
);
598 _resultobj
= Py_None
;
603 #define wxCalendarDateAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
604 static PyObject
*_wrap_wxCalendarDateAttr_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
607 wxCalendarDateAttr
* _arg0
;
608 PyObject
* _argo0
= 0;
609 char *_kwnames
[] = { "self", NULL
};
613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_GetBackgroundColour",_kwnames
,&_argo0
))
616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarDateAttr_p")) {
618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarDateAttr_GetBackgroundColour. Expected _wxCalendarDateAttr_p.");
623 wxPy_BEGIN_ALLOW_THREADS
;
624 const wxColour
& _result_ref
= wxCalendarDateAttr_GetBackgroundColour(_arg0
);
625 _result
= (wxColour
*) &_result_ref
;
627 wxPy_END_ALLOW_THREADS
;
628 if (PyErr_Occurred()) return NULL
;
630 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
631 _resultobj
= Py_BuildValue("s",_ptemp
);
634 _resultobj
= Py_None
;
639 #define wxCalendarDateAttr_GetBorderColour(_swigobj) (_swigobj->GetBorderColour())
640 static PyObject
*_wrap_wxCalendarDateAttr_GetBorderColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
641 PyObject
* _resultobj
;
643 wxCalendarDateAttr
* _arg0
;
644 PyObject
* _argo0
= 0;
645 char *_kwnames
[] = { "self", NULL
};
649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_GetBorderColour",_kwnames
,&_argo0
))
652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarDateAttr_p")) {
654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarDateAttr_GetBorderColour. Expected _wxCalendarDateAttr_p.");
659 wxPy_BEGIN_ALLOW_THREADS
;
660 const wxColour
& _result_ref
= wxCalendarDateAttr_GetBorderColour(_arg0
);
661 _result
= (wxColour
*) &_result_ref
;
663 wxPy_END_ALLOW_THREADS
;
664 if (PyErr_Occurred()) return NULL
;
666 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
667 _resultobj
= Py_BuildValue("s",_ptemp
);
670 _resultobj
= Py_None
;
675 #define wxCalendarDateAttr_GetFont(_swigobj) (_swigobj->GetFont())
676 static PyObject
*_wrap_wxCalendarDateAttr_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
677 PyObject
* _resultobj
;
679 wxCalendarDateAttr
* _arg0
;
680 PyObject
* _argo0
= 0;
681 char *_kwnames
[] = { "self", NULL
};
685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_GetFont",_kwnames
,&_argo0
))
688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarDateAttr_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarDateAttr_GetFont. Expected _wxCalendarDateAttr_p.");
695 wxPy_BEGIN_ALLOW_THREADS
;
696 const wxFont
& _result_ref
= wxCalendarDateAttr_GetFont(_arg0
);
697 _result
= (wxFont
*) &_result_ref
;
699 wxPy_END_ALLOW_THREADS
;
700 if (PyErr_Occurred()) return NULL
;
702 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
703 _resultobj
= Py_BuildValue("s",_ptemp
);
706 _resultobj
= Py_None
;
711 #define wxCalendarDateAttr_GetBorder(_swigobj) (_swigobj->GetBorder())
712 static PyObject
*_wrap_wxCalendarDateAttr_GetBorder(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
713 PyObject
* _resultobj
;
714 wxCalendarDateBorder _result
;
715 wxCalendarDateAttr
* _arg0
;
716 PyObject
* _argo0
= 0;
717 char *_kwnames
[] = { "self", NULL
};
720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarDateAttr_GetBorder",_kwnames
,&_argo0
))
723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarDateAttr_p")) {
725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarDateAttr_GetBorder. Expected _wxCalendarDateAttr_p.");
730 wxPy_BEGIN_ALLOW_THREADS
;
731 _result
= (wxCalendarDateBorder
)wxCalendarDateAttr_GetBorder(_arg0
);
733 wxPy_END_ALLOW_THREADS
;
734 if (PyErr_Occurred()) return NULL
;
735 } _resultobj
= Py_BuildValue("i",_result
);
739 static void *SwigwxCalendarEventTowxCommandEvent(void *ptr
) {
740 wxCalendarEvent
*src
;
741 wxCommandEvent
*dest
;
742 src
= (wxCalendarEvent
*) ptr
;
743 dest
= (wxCommandEvent
*) src
;
744 return (void *) dest
;
747 static void *SwigwxCalendarEventTowxEvent(void *ptr
) {
748 wxCalendarEvent
*src
;
750 src
= (wxCalendarEvent
*) ptr
;
751 dest
= (wxEvent
*) src
;
752 return (void *) dest
;
755 static void *SwigwxCalendarEventTowxObject(void *ptr
) {
756 wxCalendarEvent
*src
;
758 src
= (wxCalendarEvent
*) ptr
;
759 dest
= (wxObject
*) src
;
760 return (void *) dest
;
763 #define new_wxCalendarEvent(_swigarg0,_swigarg1) (new wxCalendarEvent(_swigarg0,_swigarg1))
764 static PyObject
*_wrap_new_wxCalendarEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
765 PyObject
* _resultobj
;
766 wxCalendarEvent
* _result
;
767 wxCalendarCtrl
* _arg0
;
769 PyObject
* _argo0
= 0;
770 char *_kwnames
[] = { "cal","type", NULL
};
774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxCalendarEvent",_kwnames
,&_argo0
,&_arg1
))
777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCalendarEvent. Expected _wxCalendarCtrl_p.");
784 wxPy_BEGIN_ALLOW_THREADS
;
785 _result
= (wxCalendarEvent
*)new_wxCalendarEvent(_arg0
,_arg1
);
787 wxPy_END_ALLOW_THREADS
;
788 if (PyErr_Occurred()) return NULL
;
790 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCalendarEvent_p");
791 _resultobj
= Py_BuildValue("s",_ptemp
);
794 _resultobj
= Py_None
;
799 #define wxCalendarEvent_GetDate(_swigobj) (_swigobj->GetDate())
800 static PyObject
*_wrap_wxCalendarEvent_GetDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
801 PyObject
* _resultobj
;
802 wxDateTime
* _result
;
803 wxCalendarEvent
* _arg0
;
804 PyObject
* _argo0
= 0;
805 char *_kwnames
[] = { "self", NULL
};
809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarEvent_GetDate",_kwnames
,&_argo0
))
812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarEvent_p")) {
814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarEvent_GetDate. Expected _wxCalendarEvent_p.");
819 wxPy_BEGIN_ALLOW_THREADS
;
820 const wxDateTime
& _result_ref
= wxCalendarEvent_GetDate(_arg0
);
821 _result
= (wxDateTime
*) &_result_ref
;
823 wxPy_END_ALLOW_THREADS
;
824 if (PyErr_Occurred()) return NULL
;
826 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
827 _resultobj
= Py_BuildValue("s",_ptemp
);
830 _resultobj
= Py_None
;
835 #define wxCalendarEvent_GetWeekDay(_swigobj) (_swigobj->GetWeekDay())
836 static PyObject
*_wrap_wxCalendarEvent_GetWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
837 PyObject
* _resultobj
;
838 wxDateTime::WeekDay _result
;
839 wxCalendarEvent
* _arg0
;
840 PyObject
* _argo0
= 0;
841 char *_kwnames
[] = { "self", NULL
};
844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarEvent_GetWeekDay",_kwnames
,&_argo0
))
847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarEvent_p")) {
849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarEvent_GetWeekDay. Expected _wxCalendarEvent_p.");
854 wxPy_BEGIN_ALLOW_THREADS
;
855 _result
= (wxDateTime::WeekDay
)wxCalendarEvent_GetWeekDay(_arg0
);
857 wxPy_END_ALLOW_THREADS
;
858 if (PyErr_Occurred()) return NULL
;
859 } _resultobj
= Py_BuildValue("i",_result
);
863 static void *SwigwxCalendarCtrlTowxControl(void *ptr
) {
866 src
= (wxCalendarCtrl
*) ptr
;
867 dest
= (wxControl
*) src
;
868 return (void *) dest
;
871 static void *SwigwxCalendarCtrlTowxWindow(void *ptr
) {
874 src
= (wxCalendarCtrl
*) ptr
;
875 dest
= (wxWindow
*) src
;
876 return (void *) dest
;
879 static void *SwigwxCalendarCtrlTowxEvtHandler(void *ptr
) {
882 src
= (wxCalendarCtrl
*) ptr
;
883 dest
= (wxEvtHandler
*) src
;
884 return (void *) dest
;
887 static void *SwigwxCalendarCtrlTowxObject(void *ptr
) {
890 src
= (wxCalendarCtrl
*) ptr
;
891 dest
= (wxObject
*) src
;
892 return (void *) dest
;
895 #define new_wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
896 static PyObject
*_wrap_new_wxCalendarCtrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
897 PyObject
* _resultobj
;
898 wxCalendarCtrl
* _result
;
901 wxDateTime
* _arg2
= (wxDateTime
*) &wxDefaultDateTime
;
902 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
903 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
904 long _arg5
= (long ) (wxCAL_SHOW_HOLIDAYS
)|wxWANTS_CHARS
;
905 char * _arg6
= (char *) "calendar";
906 PyObject
* _argo0
= 0;
907 PyObject
* _argo2
= 0;
909 PyObject
* _obj3
= 0;
911 PyObject
* _obj4
= 0;
912 char *_kwnames
[] = { "parent","id","date","pos","size","style","name", NULL
};
916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOOls:new_wxCalendarCtrl",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCalendarCtrl. Expected _wxWindow_p.");
926 if (_argo2
== Py_None
) { _arg2
= NULL
; }
927 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDateTime_p")) {
928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxCalendarCtrl. Expected _wxDateTime_p.");
935 if (! wxPoint_helper(_obj3
, &_arg3
))
941 if (! wxSize_helper(_obj4
, &_arg4
))
945 wxPy_BEGIN_ALLOW_THREADS
;
946 _result
= (wxCalendarCtrl
*)new_wxCalendarCtrl(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
948 wxPy_END_ALLOW_THREADS
;
949 if (PyErr_Occurred()) return NULL
;
951 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCalendarCtrl_p");
952 _resultobj
= Py_BuildValue("s",_ptemp
);
955 _resultobj
= Py_None
;
960 #define new_wxPreCalendarCtrl() (new wxCalendarCtrl())
961 static PyObject
*_wrap_new_wxPreCalendarCtrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
962 PyObject
* _resultobj
;
963 wxCalendarCtrl
* _result
;
964 char *_kwnames
[] = { NULL
};
968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreCalendarCtrl",_kwnames
))
971 wxPy_BEGIN_ALLOW_THREADS
;
972 _result
= (wxCalendarCtrl
*)new_wxPreCalendarCtrl();
974 wxPy_END_ALLOW_THREADS
;
975 if (PyErr_Occurred()) return NULL
;
977 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCalendarCtrl_p");
978 _resultobj
= Py_BuildValue("s",_ptemp
);
981 _resultobj
= Py_None
;
986 #define wxCalendarCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
987 static PyObject
*_wrap_wxCalendarCtrl_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
988 PyObject
* _resultobj
;
990 wxCalendarCtrl
* _arg0
;
993 wxDateTime
* _arg3
= (wxDateTime
*) &wxDefaultDateTime
;
994 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
995 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
996 long _arg6
= (long ) (wxCAL_SHOW_HOLIDAYS
)|wxWANTS_CHARS
;
997 char * _arg7
= (char *) "calendar";
998 PyObject
* _argo0
= 0;
999 PyObject
* _argo1
= 0;
1000 PyObject
* _argo3
= 0;
1002 PyObject
* _obj4
= 0;
1004 PyObject
* _obj5
= 0;
1005 char *_kwnames
[] = { "self","parent","id","date","pos","size","style","name", NULL
};
1008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOOls:wxCalendarCtrl_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
1011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_Create. Expected _wxCalendarCtrl_p.");
1018 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1019 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxCalendarCtrl_Create. Expected _wxWindow_p.");
1025 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1026 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxDateTime_p")) {
1027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxCalendarCtrl_Create. Expected _wxDateTime_p.");
1034 if (! wxPoint_helper(_obj4
, &_arg4
))
1040 if (! wxSize_helper(_obj5
, &_arg5
))
1044 wxPy_BEGIN_ALLOW_THREADS
;
1045 _result
= (bool )wxCalendarCtrl_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
1047 wxPy_END_ALLOW_THREADS
;
1048 if (PyErr_Occurred()) return NULL
;
1049 } _resultobj
= Py_BuildValue("i",_result
);
1053 #define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0))
1054 static PyObject
*_wrap_wxCalendarCtrl_SetDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1055 PyObject
* _resultobj
;
1056 wxCalendarCtrl
* _arg0
;
1058 PyObject
* _argo0
= 0;
1059 PyObject
* _argo1
= 0;
1060 char *_kwnames
[] = { "self","date", NULL
};
1063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCalendarCtrl_SetDate",_kwnames
,&_argo0
,&_argo1
))
1066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p.");
1073 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1074 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
1075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p.");
1080 wxPy_BEGIN_ALLOW_THREADS
;
1081 wxCalendarCtrl_SetDate(_arg0
,*_arg1
);
1083 wxPy_END_ALLOW_THREADS
;
1084 if (PyErr_Occurred()) return NULL
;
1085 } Py_INCREF(Py_None
);
1086 _resultobj
= Py_None
;
1090 #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate())
1091 static PyObject
*_wrap_wxCalendarCtrl_GetDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1092 PyObject
* _resultobj
;
1093 wxDateTime
* _result
;
1094 wxCalendarCtrl
* _arg0
;
1095 PyObject
* _argo0
= 0;
1096 char *_kwnames
[] = { "self", NULL
};
1100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetDate",_kwnames
,&_argo0
))
1103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p.");
1110 wxPy_BEGIN_ALLOW_THREADS
;
1111 const wxDateTime
& _result_ref
= wxCalendarCtrl_GetDate(_arg0
);
1112 _result
= (wxDateTime
*) &_result_ref
;
1114 wxPy_END_ALLOW_THREADS
;
1115 if (PyErr_Occurred()) return NULL
;
1117 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
1118 _resultobj
= Py_BuildValue("s",_ptemp
);
1121 _resultobj
= Py_None
;
1126 #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0))
1127 static PyObject
*_wrap_wxCalendarCtrl_EnableYearChange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1128 PyObject
* _resultobj
;
1129 wxCalendarCtrl
* _arg0
;
1130 bool _arg1
= (bool ) TRUE
;
1131 PyObject
* _argo0
= 0;
1132 int tempbool1
= (int) TRUE
;
1133 char *_kwnames
[] = { "self","enable", NULL
};
1136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames
,&_argo0
,&tempbool1
))
1139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p.");
1145 _arg1
= (bool ) tempbool1
;
1147 wxPy_BEGIN_ALLOW_THREADS
;
1148 wxCalendarCtrl_EnableYearChange(_arg0
,_arg1
);
1150 wxPy_END_ALLOW_THREADS
;
1151 if (PyErr_Occurred()) return NULL
;
1152 } Py_INCREF(Py_None
);
1153 _resultobj
= Py_None
;
1157 #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0))
1158 static PyObject
*_wrap_wxCalendarCtrl_EnableMonthChange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1159 PyObject
* _resultobj
;
1160 wxCalendarCtrl
* _arg0
;
1161 bool _arg1
= (bool ) TRUE
;
1162 PyObject
* _argo0
= 0;
1163 int tempbool1
= (int) TRUE
;
1164 char *_kwnames
[] = { "self","enable", NULL
};
1167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames
,&_argo0
,&tempbool1
))
1170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p.");
1176 _arg1
= (bool ) tempbool1
;
1178 wxPy_BEGIN_ALLOW_THREADS
;
1179 wxCalendarCtrl_EnableMonthChange(_arg0
,_arg1
);
1181 wxPy_END_ALLOW_THREADS
;
1182 if (PyErr_Occurred()) return NULL
;
1183 } Py_INCREF(Py_None
);
1184 _resultobj
= Py_None
;
1188 #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0))
1189 static PyObject
*_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1190 PyObject
* _resultobj
;
1191 wxCalendarCtrl
* _arg0
;
1192 bool _arg1
= (bool ) TRUE
;
1193 PyObject
* _argo0
= 0;
1194 int tempbool1
= (int) TRUE
;
1195 char *_kwnames
[] = { "self","display", NULL
};
1198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames
,&_argo0
,&tempbool1
))
1201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p.");
1207 _arg1
= (bool ) tempbool1
;
1209 wxPy_BEGIN_ALLOW_THREADS
;
1210 wxCalendarCtrl_EnableHolidayDisplay(_arg0
,_arg1
);
1212 wxPy_END_ALLOW_THREADS
;
1213 if (PyErr_Occurred()) return NULL
;
1214 } Py_INCREF(Py_None
);
1215 _resultobj
= Py_None
;
1219 #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1))
1220 static PyObject
*_wrap_wxCalendarCtrl_SetHeaderColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1221 PyObject
* _resultobj
;
1222 wxCalendarCtrl
* _arg0
;
1225 PyObject
* _argo0
= 0;
1227 PyObject
* _obj1
= 0;
1229 PyObject
* _obj2
= 0;
1230 char *_kwnames
[] = { "self","colFg","colBg", NULL
};
1233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p.");
1244 if (! wxColour_helper(_obj1
, &_arg1
))
1249 if (! wxColour_helper(_obj2
, &_arg2
))
1253 wxPy_BEGIN_ALLOW_THREADS
;
1254 wxCalendarCtrl_SetHeaderColours(_arg0
,*_arg1
,*_arg2
);
1256 wxPy_END_ALLOW_THREADS
;
1257 if (PyErr_Occurred()) return NULL
;
1258 } Py_INCREF(Py_None
);
1259 _resultobj
= Py_None
;
1263 #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg())
1264 static PyObject
*_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1265 PyObject
* _resultobj
;
1267 wxCalendarCtrl
* _arg0
;
1268 PyObject
* _argo0
= 0;
1269 char *_kwnames
[] = { "self", NULL
};
1273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames
,&_argo0
))
1276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p.");
1283 wxPy_BEGIN_ALLOW_THREADS
;
1284 const wxColour
& _result_ref
= wxCalendarCtrl_GetHeaderColourFg(_arg0
);
1285 _result
= (wxColour
*) &_result_ref
;
1287 wxPy_END_ALLOW_THREADS
;
1288 if (PyErr_Occurred()) return NULL
;
1290 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1291 _resultobj
= Py_BuildValue("s",_ptemp
);
1294 _resultobj
= Py_None
;
1299 #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg())
1300 static PyObject
*_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1301 PyObject
* _resultobj
;
1303 wxCalendarCtrl
* _arg0
;
1304 PyObject
* _argo0
= 0;
1305 char *_kwnames
[] = { "self", NULL
};
1309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames
,&_argo0
))
1312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p.");
1319 wxPy_BEGIN_ALLOW_THREADS
;
1320 const wxColour
& _result_ref
= wxCalendarCtrl_GetHeaderColourBg(_arg0
);
1321 _result
= (wxColour
*) &_result_ref
;
1323 wxPy_END_ALLOW_THREADS
;
1324 if (PyErr_Occurred()) return NULL
;
1326 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1327 _resultobj
= Py_BuildValue("s",_ptemp
);
1330 _resultobj
= Py_None
;
1335 #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1))
1336 static PyObject
*_wrap_wxCalendarCtrl_SetHighlightColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1337 PyObject
* _resultobj
;
1338 wxCalendarCtrl
* _arg0
;
1341 PyObject
* _argo0
= 0;
1343 PyObject
* _obj1
= 0;
1345 PyObject
* _obj2
= 0;
1346 char *_kwnames
[] = { "self","colFg","colBg", NULL
};
1349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p.");
1360 if (! wxColour_helper(_obj1
, &_arg1
))
1365 if (! wxColour_helper(_obj2
, &_arg2
))
1369 wxPy_BEGIN_ALLOW_THREADS
;
1370 wxCalendarCtrl_SetHighlightColours(_arg0
,*_arg1
,*_arg2
);
1372 wxPy_END_ALLOW_THREADS
;
1373 if (PyErr_Occurred()) return NULL
;
1374 } Py_INCREF(Py_None
);
1375 _resultobj
= Py_None
;
1379 #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg())
1380 static PyObject
*_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1381 PyObject
* _resultobj
;
1383 wxCalendarCtrl
* _arg0
;
1384 PyObject
* _argo0
= 0;
1385 char *_kwnames
[] = { "self", NULL
};
1389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames
,&_argo0
))
1392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p.");
1399 wxPy_BEGIN_ALLOW_THREADS
;
1400 const wxColour
& _result_ref
= wxCalendarCtrl_GetHighlightColourFg(_arg0
);
1401 _result
= (wxColour
*) &_result_ref
;
1403 wxPy_END_ALLOW_THREADS
;
1404 if (PyErr_Occurred()) return NULL
;
1406 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1407 _resultobj
= Py_BuildValue("s",_ptemp
);
1410 _resultobj
= Py_None
;
1415 #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg())
1416 static PyObject
*_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1417 PyObject
* _resultobj
;
1419 wxCalendarCtrl
* _arg0
;
1420 PyObject
* _argo0
= 0;
1421 char *_kwnames
[] = { "self", NULL
};
1425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames
,&_argo0
))
1428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p.");
1435 wxPy_BEGIN_ALLOW_THREADS
;
1436 const wxColour
& _result_ref
= wxCalendarCtrl_GetHighlightColourBg(_arg0
);
1437 _result
= (wxColour
*) &_result_ref
;
1439 wxPy_END_ALLOW_THREADS
;
1440 if (PyErr_Occurred()) return NULL
;
1442 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1443 _resultobj
= Py_BuildValue("s",_ptemp
);
1446 _resultobj
= Py_None
;
1451 #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1))
1452 static PyObject
*_wrap_wxCalendarCtrl_SetHolidayColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1453 PyObject
* _resultobj
;
1454 wxCalendarCtrl
* _arg0
;
1457 PyObject
* _argo0
= 0;
1459 PyObject
* _obj1
= 0;
1461 PyObject
* _obj2
= 0;
1462 char *_kwnames
[] = { "self","colFg","colBg", NULL
};
1465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p.");
1476 if (! wxColour_helper(_obj1
, &_arg1
))
1481 if (! wxColour_helper(_obj2
, &_arg2
))
1485 wxPy_BEGIN_ALLOW_THREADS
;
1486 wxCalendarCtrl_SetHolidayColours(_arg0
,*_arg1
,*_arg2
);
1488 wxPy_END_ALLOW_THREADS
;
1489 if (PyErr_Occurred()) return NULL
;
1490 } Py_INCREF(Py_None
);
1491 _resultobj
= Py_None
;
1495 #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg())
1496 static PyObject
*_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1497 PyObject
* _resultobj
;
1499 wxCalendarCtrl
* _arg0
;
1500 PyObject
* _argo0
= 0;
1501 char *_kwnames
[] = { "self", NULL
};
1505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames
,&_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_GetHolidayColourFg. Expected _wxCalendarCtrl_p.");
1515 wxPy_BEGIN_ALLOW_THREADS
;
1516 const wxColour
& _result_ref
= wxCalendarCtrl_GetHolidayColourFg(_arg0
);
1517 _result
= (wxColour
*) &_result_ref
;
1519 wxPy_END_ALLOW_THREADS
;
1520 if (PyErr_Occurred()) return NULL
;
1522 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1523 _resultobj
= Py_BuildValue("s",_ptemp
);
1526 _resultobj
= Py_None
;
1531 #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg())
1532 static PyObject
*_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1533 PyObject
* _resultobj
;
1535 wxCalendarCtrl
* _arg0
;
1536 PyObject
* _argo0
= 0;
1537 char *_kwnames
[] = { "self", NULL
};
1541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames
,&_argo0
))
1544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p.");
1551 wxPy_BEGIN_ALLOW_THREADS
;
1552 const wxColour
& _result_ref
= wxCalendarCtrl_GetHolidayColourBg(_arg0
);
1553 _result
= (wxColour
*) &_result_ref
;
1555 wxPy_END_ALLOW_THREADS
;
1556 if (PyErr_Occurred()) return NULL
;
1558 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1559 _resultobj
= Py_BuildValue("s",_ptemp
);
1562 _resultobj
= Py_None
;
1567 #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0))
1568 static PyObject
*_wrap_wxCalendarCtrl_GetAttr(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1569 PyObject
* _resultobj
;
1570 wxCalendarDateAttr
* _result
;
1571 wxCalendarCtrl
* _arg0
;
1573 PyObject
* _argo0
= 0;
1574 char *_kwnames
[] = { "self","day", NULL
};
1578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarCtrl_GetAttr",_kwnames
,&_argo0
,&_arg1
))
1581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p.");
1588 wxPy_BEGIN_ALLOW_THREADS
;
1589 _result
= (wxCalendarDateAttr
*)wxCalendarCtrl_GetAttr(_arg0
,_arg1
);
1591 wxPy_END_ALLOW_THREADS
;
1592 if (PyErr_Occurred()) return NULL
;
1594 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCalendarDateAttr_p");
1595 _resultobj
= Py_BuildValue("s",_ptemp
);
1598 _resultobj
= Py_None
;
1603 #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1))
1604 static PyObject
*_wrap_wxCalendarCtrl_SetAttr(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1605 PyObject
* _resultobj
;
1606 wxCalendarCtrl
* _arg0
;
1608 wxCalendarDateAttr
* _arg2
;
1609 PyObject
* _argo0
= 0;
1610 PyObject
* _argo2
= 0;
1611 char *_kwnames
[] = { "self","day","attr", NULL
};
1614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxCalendarCtrl_SetAttr",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p.");
1624 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1625 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCalendarDateAttr_p")) {
1626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p.");
1631 wxPy_BEGIN_ALLOW_THREADS
;
1632 wxCalendarCtrl_SetAttr(_arg0
,_arg1
,_arg2
);
1634 wxPy_END_ALLOW_THREADS
;
1635 if (PyErr_Occurred()) return NULL
;
1636 } Py_INCREF(Py_None
);
1637 _resultobj
= Py_None
;
1641 #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0))
1642 static PyObject
*_wrap_wxCalendarCtrl_SetHoliday(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1643 PyObject
* _resultobj
;
1644 wxCalendarCtrl
* _arg0
;
1646 PyObject
* _argo0
= 0;
1647 char *_kwnames
[] = { "self","day", NULL
};
1650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarCtrl_SetHoliday",_kwnames
,&_argo0
,&_arg1
))
1653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p.");
1660 wxPy_BEGIN_ALLOW_THREADS
;
1661 wxCalendarCtrl_SetHoliday(_arg0
,_arg1
);
1663 wxPy_END_ALLOW_THREADS
;
1664 if (PyErr_Occurred()) return NULL
;
1665 } Py_INCREF(Py_None
);
1666 _resultobj
= Py_None
;
1670 #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0))
1671 static PyObject
*_wrap_wxCalendarCtrl_ResetAttr(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1672 PyObject
* _resultobj
;
1673 wxCalendarCtrl
* _arg0
;
1675 PyObject
* _argo0
= 0;
1676 char *_kwnames
[] = { "self","day", NULL
};
1679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarCtrl_ResetAttr",_kwnames
,&_argo0
,&_arg1
))
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_ResetAttr. Expected _wxCalendarCtrl_p.");
1689 wxPy_BEGIN_ALLOW_THREADS
;
1690 wxCalendarCtrl_ResetAttr(_arg0
,_arg1
);
1692 wxPy_END_ALLOW_THREADS
;
1693 if (PyErr_Occurred()) return NULL
;
1694 } Py_INCREF(Py_None
);
1695 _resultobj
= Py_None
;
1699 #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2))
1700 static PyObject
*_wrap_wxCalendarCtrl_HitTest(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1701 PyObject
* _resultobj
;
1702 wxCalendarHitTestResult _result
;
1703 wxCalendarCtrl
* _arg0
;
1705 wxDateTime
* _arg2
= (wxDateTime
*) NULL
;
1706 wxDateTime::WeekDay
* _arg3
= (wxDateTime::WeekDay
*) NULL
;
1707 PyObject
* _argo0
= 0;
1709 PyObject
* _obj1
= 0;
1710 PyObject
* _argo2
= 0;
1711 PyObject
* _argo3
= 0;
1712 char *_kwnames
[] = { "self","pos","date","wd", NULL
};
1715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|OO:wxCalendarCtrl_HitTest",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
1718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p.");
1726 if (! wxPoint_helper(_obj1
, &_arg1
))
1730 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1731 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDateTime_p")) {
1732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p.");
1737 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1738 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxDateTime::WeekDay_p")) {
1739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p.");
1744 wxPy_BEGIN_ALLOW_THREADS
;
1745 _result
= (wxCalendarHitTestResult
)wxCalendarCtrl_HitTest(_arg0
,*_arg1
,_arg2
,_arg3
);
1747 wxPy_END_ALLOW_THREADS
;
1748 if (PyErr_Occurred()) return NULL
;
1749 } _resultobj
= Py_BuildValue("i",_result
);
1753 static PyMethodDef calendarcMethods
[] = {
1754 { "wxCalendarCtrl_HitTest", (PyCFunction
) _wrap_wxCalendarCtrl_HitTest
, METH_VARARGS
| METH_KEYWORDS
},
1755 { "wxCalendarCtrl_ResetAttr", (PyCFunction
) _wrap_wxCalendarCtrl_ResetAttr
, METH_VARARGS
| METH_KEYWORDS
},
1756 { "wxCalendarCtrl_SetHoliday", (PyCFunction
) _wrap_wxCalendarCtrl_SetHoliday
, METH_VARARGS
| METH_KEYWORDS
},
1757 { "wxCalendarCtrl_SetAttr", (PyCFunction
) _wrap_wxCalendarCtrl_SetAttr
, METH_VARARGS
| METH_KEYWORDS
},
1758 { "wxCalendarCtrl_GetAttr", (PyCFunction
) _wrap_wxCalendarCtrl_GetAttr
, METH_VARARGS
| METH_KEYWORDS
},
1759 { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHolidayColourBg
, METH_VARARGS
| METH_KEYWORDS
},
1760 { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHolidayColourFg
, METH_VARARGS
| METH_KEYWORDS
},
1761 { "wxCalendarCtrl_SetHolidayColours", (PyCFunction
) _wrap_wxCalendarCtrl_SetHolidayColours
, METH_VARARGS
| METH_KEYWORDS
},
1762 { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHighlightColourBg
, METH_VARARGS
| METH_KEYWORDS
},
1763 { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHighlightColourFg
, METH_VARARGS
| METH_KEYWORDS
},
1764 { "wxCalendarCtrl_SetHighlightColours", (PyCFunction
) _wrap_wxCalendarCtrl_SetHighlightColours
, METH_VARARGS
| METH_KEYWORDS
},
1765 { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHeaderColourBg
, METH_VARARGS
| METH_KEYWORDS
},
1766 { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHeaderColourFg
, METH_VARARGS
| METH_KEYWORDS
},
1767 { "wxCalendarCtrl_SetHeaderColours", (PyCFunction
) _wrap_wxCalendarCtrl_SetHeaderColours
, METH_VARARGS
| METH_KEYWORDS
},
1768 { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction
) _wrap_wxCalendarCtrl_EnableHolidayDisplay
, METH_VARARGS
| METH_KEYWORDS
},
1769 { "wxCalendarCtrl_EnableMonthChange", (PyCFunction
) _wrap_wxCalendarCtrl_EnableMonthChange
, METH_VARARGS
| METH_KEYWORDS
},
1770 { "wxCalendarCtrl_EnableYearChange", (PyCFunction
) _wrap_wxCalendarCtrl_EnableYearChange
, METH_VARARGS
| METH_KEYWORDS
},
1771 { "wxCalendarCtrl_GetDate", (PyCFunction
) _wrap_wxCalendarCtrl_GetDate
, METH_VARARGS
| METH_KEYWORDS
},
1772 { "wxCalendarCtrl_SetDate", (PyCFunction
) _wrap_wxCalendarCtrl_SetDate
, METH_VARARGS
| METH_KEYWORDS
},
1773 { "wxCalendarCtrl_Create", (PyCFunction
) _wrap_wxCalendarCtrl_Create
, METH_VARARGS
| METH_KEYWORDS
},
1774 { "new_wxPreCalendarCtrl", (PyCFunction
) _wrap_new_wxPreCalendarCtrl
, METH_VARARGS
| METH_KEYWORDS
},
1775 { "new_wxCalendarCtrl", (PyCFunction
) _wrap_new_wxCalendarCtrl
, METH_VARARGS
| METH_KEYWORDS
},
1776 { "wxCalendarEvent_GetWeekDay", (PyCFunction
) _wrap_wxCalendarEvent_GetWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
1777 { "wxCalendarEvent_GetDate", (PyCFunction
) _wrap_wxCalendarEvent_GetDate
, METH_VARARGS
| METH_KEYWORDS
},
1778 { "new_wxCalendarEvent", (PyCFunction
) _wrap_new_wxCalendarEvent
, METH_VARARGS
| METH_KEYWORDS
},
1779 { "wxCalendarDateAttr_GetBorder", (PyCFunction
) _wrap_wxCalendarDateAttr_GetBorder
, METH_VARARGS
| METH_KEYWORDS
},
1780 { "wxCalendarDateAttr_GetFont", (PyCFunction
) _wrap_wxCalendarDateAttr_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
1781 { "wxCalendarDateAttr_GetBorderColour", (PyCFunction
) _wrap_wxCalendarDateAttr_GetBorderColour
, METH_VARARGS
| METH_KEYWORDS
},
1782 { "wxCalendarDateAttr_GetBackgroundColour", (PyCFunction
) _wrap_wxCalendarDateAttr_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
1783 { "wxCalendarDateAttr_GetTextColour", (PyCFunction
) _wrap_wxCalendarDateAttr_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
1784 { "wxCalendarDateAttr_IsHoliday", (PyCFunction
) _wrap_wxCalendarDateAttr_IsHoliday
, METH_VARARGS
| METH_KEYWORDS
},
1785 { "wxCalendarDateAttr_HasBorder", (PyCFunction
) _wrap_wxCalendarDateAttr_HasBorder
, METH_VARARGS
| METH_KEYWORDS
},
1786 { "wxCalendarDateAttr_HasFont", (PyCFunction
) _wrap_wxCalendarDateAttr_HasFont
, METH_VARARGS
| METH_KEYWORDS
},
1787 { "wxCalendarDateAttr_HasBorderColour", (PyCFunction
) _wrap_wxCalendarDateAttr_HasBorderColour
, METH_VARARGS
| METH_KEYWORDS
},
1788 { "wxCalendarDateAttr_HasBackgroundColour", (PyCFunction
) _wrap_wxCalendarDateAttr_HasBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
1789 { "wxCalendarDateAttr_HasTextColour", (PyCFunction
) _wrap_wxCalendarDateAttr_HasTextColour
, METH_VARARGS
| METH_KEYWORDS
},
1790 { "wxCalendarDateAttr_SetHoliday", (PyCFunction
) _wrap_wxCalendarDateAttr_SetHoliday
, METH_VARARGS
| METH_KEYWORDS
},
1791 { "wxCalendarDateAttr_SetBorder", (PyCFunction
) _wrap_wxCalendarDateAttr_SetBorder
, METH_VARARGS
| METH_KEYWORDS
},
1792 { "wxCalendarDateAttr_SetFont", (PyCFunction
) _wrap_wxCalendarDateAttr_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
1793 { "wxCalendarDateAttr_SetBorderColour", (PyCFunction
) _wrap_wxCalendarDateAttr_SetBorderColour
, METH_VARARGS
| METH_KEYWORDS
},
1794 { "wxCalendarDateAttr_SetBackgroundColour", (PyCFunction
) _wrap_wxCalendarDateAttr_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
1795 { "wxCalendarDateAttr_SetTextColour", (PyCFunction
) _wrap_wxCalendarDateAttr_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
1796 { "new_wxCalendarDateAttrBorder", (PyCFunction
) _wrap_new_wxCalendarDateAttrBorder
, METH_VARARGS
| METH_KEYWORDS
},
1797 { "new_wxCalendarDateAttr", (PyCFunction
) _wrap_new_wxCalendarDateAttr
, METH_VARARGS
| METH_KEYWORDS
},
1804 * This table is used by the pointer type-checker
1806 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1807 { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent
},
1808 { "_signed_long","_long",0},
1809 { "_wxPrintQuality","_wxCoord",0},
1810 { "_wxPrintQuality","_int",0},
1811 { "_wxPrintQuality","_signed_int",0},
1812 { "_wxPrintQuality","_unsigned_int",0},
1813 { "_wxPrintQuality","_wxWindowID",0},
1814 { "_wxPrintQuality","_uint",0},
1815 { "_wxPrintQuality","_EBool",0},
1816 { "_wxPrintQuality","_size_t",0},
1817 { "_wxPrintQuality","_time_t",0},
1818 { "_byte","_unsigned_char",0},
1819 { "_long","_unsigned_long",0},
1820 { "_long","_signed_long",0},
1821 { "_size_t","_wxCoord",0},
1822 { "_size_t","_wxPrintQuality",0},
1823 { "_size_t","_time_t",0},
1824 { "_size_t","_unsigned_int",0},
1825 { "_size_t","_int",0},
1826 { "_size_t","_wxWindowID",0},
1827 { "_size_t","_uint",0},
1828 { "_uint","_wxCoord",0},
1829 { "_uint","_wxPrintQuality",0},
1830 { "_uint","_time_t",0},
1831 { "_uint","_size_t",0},
1832 { "_uint","_unsigned_int",0},
1833 { "_uint","_int",0},
1834 { "_uint","_wxWindowID",0},
1835 { "_wxChar","_char",0},
1836 { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent
},
1837 { "_char","_wxChar",0},
1838 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1839 { "_EBool","_wxCoord",0},
1840 { "_EBool","_wxPrintQuality",0},
1841 { "_EBool","_signed_int",0},
1842 { "_EBool","_int",0},
1843 { "_EBool","_wxWindowID",0},
1844 { "_unsigned_long","_long",0},
1845 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1846 { "_signed_int","_wxCoord",0},
1847 { "_signed_int","_wxPrintQuality",0},
1848 { "_signed_int","_EBool",0},
1849 { "_signed_int","_wxWindowID",0},
1850 { "_signed_int","_int",0},
1851 { "_WXTYPE","_wxDateTime_t",0},
1852 { "_WXTYPE","_short",0},
1853 { "_WXTYPE","_signed_short",0},
1854 { "_WXTYPE","_unsigned_short",0},
1855 { "_unsigned_short","_wxDateTime_t",0},
1856 { "_unsigned_short","_WXTYPE",0},
1857 { "_unsigned_short","_short",0},
1858 { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject
},
1859 { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject
},
1860 { "_signed_short","_WXTYPE",0},
1861 { "_signed_short","_short",0},
1862 { "_unsigned_char","_byte",0},
1863 { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl
},
1864 { "_unsigned_int","_wxCoord",0},
1865 { "_unsigned_int","_wxPrintQuality",0},
1866 { "_unsigned_int","_time_t",0},
1867 { "_unsigned_int","_size_t",0},
1868 { "_unsigned_int","_uint",0},
1869 { "_unsigned_int","_wxWindowID",0},
1870 { "_unsigned_int","_int",0},
1871 { "_short","_wxDateTime_t",0},
1872 { "_short","_WXTYPE",0},
1873 { "_short","_unsigned_short",0},
1874 { "_short","_signed_short",0},
1875 { "_wxWindowID","_wxCoord",0},
1876 { "_wxWindowID","_wxPrintQuality",0},
1877 { "_wxWindowID","_time_t",0},
1878 { "_wxWindowID","_size_t",0},
1879 { "_wxWindowID","_EBool",0},
1880 { "_wxWindowID","_uint",0},
1881 { "_wxWindowID","_int",0},
1882 { "_wxWindowID","_signed_int",0},
1883 { "_wxWindowID","_unsigned_int",0},
1884 { "_int","_wxCoord",0},
1885 { "_int","_wxPrintQuality",0},
1886 { "_int","_time_t",0},
1887 { "_int","_size_t",0},
1888 { "_int","_EBool",0},
1889 { "_int","_uint",0},
1890 { "_int","_wxWindowID",0},
1891 { "_int","_unsigned_int",0},
1892 { "_int","_signed_int",0},
1893 { "_wxDateTime_t","_unsigned_short",0},
1894 { "_wxDateTime_t","_short",0},
1895 { "_wxDateTime_t","_WXTYPE",0},
1896 { "_time_t","_wxCoord",0},
1897 { "_time_t","_wxPrintQuality",0},
1898 { "_time_t","_unsigned_int",0},
1899 { "_time_t","_int",0},
1900 { "_time_t","_wxWindowID",0},
1901 { "_time_t","_uint",0},
1902 { "_time_t","_size_t",0},
1903 { "_wxCoord","_int",0},
1904 { "_wxCoord","_signed_int",0},
1905 { "_wxCoord","_unsigned_int",0},
1906 { "_wxCoord","_wxWindowID",0},
1907 { "_wxCoord","_uint",0},
1908 { "_wxCoord","_EBool",0},
1909 { "_wxCoord","_size_t",0},
1910 { "_wxCoord","_time_t",0},
1911 { "_wxCoord","_wxPrintQuality",0},
1912 { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler
},
1913 { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow
},
1916 static PyObject
*SWIG_globals
;
1920 SWIGEXPORT(void) initcalendarc() {
1922 SWIG_globals
= SWIG_newvarlink();
1923 m
= Py_InitModule("calendarc", calendarcMethods
);
1924 d
= PyModule_GetDict(m
);
1925 PyDict_SetItemString(d
,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST
));
1926 PyDict_SetItemString(d
,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST
));
1927 PyDict_SetItemString(d
,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS
));
1928 PyDict_SetItemString(d
,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE
));
1929 PyDict_SetItemString(d
,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE
));
1930 PyDict_SetItemString(d
,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE
));
1931 PyDict_SetItemString(d
,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER
));
1932 PyDict_SetItemString(d
,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY
));
1933 PyDict_SetItemString(d
,"wxCAL_BORDER_NONE", PyInt_FromLong((long) wxCAL_BORDER_NONE
));
1934 PyDict_SetItemString(d
,"wxCAL_BORDER_SQUARE", PyInt_FromLong((long) wxCAL_BORDER_SQUARE
));
1935 PyDict_SetItemString(d
,"wxCAL_BORDER_ROUND", PyInt_FromLong((long) wxCAL_BORDER_ROUND
));
1936 PyDict_SetItemString(d
,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED
));
1937 PyDict_SetItemString(d
,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED
));
1938 PyDict_SetItemString(d
,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED
));
1939 PyDict_SetItemString(d
,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED
));
1940 PyDict_SetItemString(d
,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED
));
1941 PyDict_SetItemString(d
,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED
));
1943 wxClassInfo::CleanUpClasses();
1944 wxClassInfo::InitializeClasses();
1947 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1948 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);