2 * FILE : src/gtk/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
);
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 wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0))
961 static PyObject
*_wrap_wxCalendarCtrl_SetDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
962 PyObject
* _resultobj
;
963 wxCalendarCtrl
* _arg0
;
965 PyObject
* _argo0
= 0;
966 PyObject
* _argo1
= 0;
967 char *_kwnames
[] = { "self","date", NULL
};
970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCalendarCtrl_SetDate",_kwnames
,&_argo0
,&_argo1
))
973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p.");
980 if (_argo1
== Py_None
) { _arg1
= NULL
; }
981 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p.");
987 wxPy_BEGIN_ALLOW_THREADS
;
988 wxCalendarCtrl_SetDate(_arg0
,*_arg1
);
990 wxPy_END_ALLOW_THREADS
;
991 if (PyErr_Occurred()) return NULL
;
992 } Py_INCREF(Py_None
);
993 _resultobj
= Py_None
;
997 #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate())
998 static PyObject
*_wrap_wxCalendarCtrl_GetDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
999 PyObject
* _resultobj
;
1000 wxDateTime
* _result
;
1001 wxCalendarCtrl
* _arg0
;
1002 PyObject
* _argo0
= 0;
1003 char *_kwnames
[] = { "self", NULL
};
1007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetDate",_kwnames
,&_argo0
))
1010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p.");
1017 wxPy_BEGIN_ALLOW_THREADS
;
1018 const wxDateTime
& _result_ref
= wxCalendarCtrl_GetDate(_arg0
);
1019 _result
= (wxDateTime
*) &_result_ref
;
1021 wxPy_END_ALLOW_THREADS
;
1022 if (PyErr_Occurred()) return NULL
;
1024 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
1025 _resultobj
= Py_BuildValue("s",_ptemp
);
1028 _resultobj
= Py_None
;
1033 #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0))
1034 static PyObject
*_wrap_wxCalendarCtrl_EnableYearChange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1035 PyObject
* _resultobj
;
1036 wxCalendarCtrl
* _arg0
;
1037 bool _arg1
= (bool ) TRUE
;
1038 PyObject
* _argo0
= 0;
1039 int tempbool1
= (int) TRUE
;
1040 char *_kwnames
[] = { "self","enable", NULL
};
1043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames
,&_argo0
,&tempbool1
))
1046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p.");
1052 _arg1
= (bool ) tempbool1
;
1054 wxPy_BEGIN_ALLOW_THREADS
;
1055 wxCalendarCtrl_EnableYearChange(_arg0
,_arg1
);
1057 wxPy_END_ALLOW_THREADS
;
1058 if (PyErr_Occurred()) return NULL
;
1059 } Py_INCREF(Py_None
);
1060 _resultobj
= Py_None
;
1064 #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0))
1065 static PyObject
*_wrap_wxCalendarCtrl_EnableMonthChange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1066 PyObject
* _resultobj
;
1067 wxCalendarCtrl
* _arg0
;
1068 bool _arg1
= (bool ) TRUE
;
1069 PyObject
* _argo0
= 0;
1070 int tempbool1
= (int) TRUE
;
1071 char *_kwnames
[] = { "self","enable", NULL
};
1074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames
,&_argo0
,&tempbool1
))
1077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p.");
1083 _arg1
= (bool ) tempbool1
;
1085 wxPy_BEGIN_ALLOW_THREADS
;
1086 wxCalendarCtrl_EnableMonthChange(_arg0
,_arg1
);
1088 wxPy_END_ALLOW_THREADS
;
1089 if (PyErr_Occurred()) return NULL
;
1090 } Py_INCREF(Py_None
);
1091 _resultobj
= Py_None
;
1095 #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0))
1096 static PyObject
*_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1097 PyObject
* _resultobj
;
1098 wxCalendarCtrl
* _arg0
;
1099 bool _arg1
= (bool ) TRUE
;
1100 PyObject
* _argo0
= 0;
1101 int tempbool1
= (int) TRUE
;
1102 char *_kwnames
[] = { "self","display", NULL
};
1105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames
,&_argo0
,&tempbool1
))
1108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p.");
1114 _arg1
= (bool ) tempbool1
;
1116 wxPy_BEGIN_ALLOW_THREADS
;
1117 wxCalendarCtrl_EnableHolidayDisplay(_arg0
,_arg1
);
1119 wxPy_END_ALLOW_THREADS
;
1120 if (PyErr_Occurred()) return NULL
;
1121 } Py_INCREF(Py_None
);
1122 _resultobj
= Py_None
;
1126 #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1))
1127 static PyObject
*_wrap_wxCalendarCtrl_SetHeaderColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1128 PyObject
* _resultobj
;
1129 wxCalendarCtrl
* _arg0
;
1132 PyObject
* _argo0
= 0;
1134 PyObject
* _obj1
= 0;
1136 PyObject
* _obj2
= 0;
1137 char *_kwnames
[] = { "self","colFg","colBg", NULL
};
1140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p.");
1151 if (! wxColour_helper(_obj1
, &_arg1
))
1156 if (! wxColour_helper(_obj2
, &_arg2
))
1160 wxPy_BEGIN_ALLOW_THREADS
;
1161 wxCalendarCtrl_SetHeaderColours(_arg0
,*_arg1
,*_arg2
);
1163 wxPy_END_ALLOW_THREADS
;
1164 if (PyErr_Occurred()) return NULL
;
1165 } Py_INCREF(Py_None
);
1166 _resultobj
= Py_None
;
1170 #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg())
1171 static PyObject
*_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1172 PyObject
* _resultobj
;
1174 wxCalendarCtrl
* _arg0
;
1175 PyObject
* _argo0
= 0;
1176 char *_kwnames
[] = { "self", NULL
};
1180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames
,&_argo0
))
1183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p.");
1190 wxPy_BEGIN_ALLOW_THREADS
;
1191 const wxColour
& _result_ref
= wxCalendarCtrl_GetHeaderColourFg(_arg0
);
1192 _result
= (wxColour
*) &_result_ref
;
1194 wxPy_END_ALLOW_THREADS
;
1195 if (PyErr_Occurred()) return NULL
;
1197 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1198 _resultobj
= Py_BuildValue("s",_ptemp
);
1201 _resultobj
= Py_None
;
1206 #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg())
1207 static PyObject
*_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1208 PyObject
* _resultobj
;
1210 wxCalendarCtrl
* _arg0
;
1211 PyObject
* _argo0
= 0;
1212 char *_kwnames
[] = { "self", NULL
};
1216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames
,&_argo0
))
1219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p.");
1226 wxPy_BEGIN_ALLOW_THREADS
;
1227 const wxColour
& _result_ref
= wxCalendarCtrl_GetHeaderColourBg(_arg0
);
1228 _result
= (wxColour
*) &_result_ref
;
1230 wxPy_END_ALLOW_THREADS
;
1231 if (PyErr_Occurred()) return NULL
;
1233 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1234 _resultobj
= Py_BuildValue("s",_ptemp
);
1237 _resultobj
= Py_None
;
1242 #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1))
1243 static PyObject
*_wrap_wxCalendarCtrl_SetHighlightColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1244 PyObject
* _resultobj
;
1245 wxCalendarCtrl
* _arg0
;
1248 PyObject
* _argo0
= 0;
1250 PyObject
* _obj1
= 0;
1252 PyObject
* _obj2
= 0;
1253 char *_kwnames
[] = { "self","colFg","colBg", NULL
};
1256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p.");
1267 if (! wxColour_helper(_obj1
, &_arg1
))
1272 if (! wxColour_helper(_obj2
, &_arg2
))
1276 wxPy_BEGIN_ALLOW_THREADS
;
1277 wxCalendarCtrl_SetHighlightColours(_arg0
,*_arg1
,*_arg2
);
1279 wxPy_END_ALLOW_THREADS
;
1280 if (PyErr_Occurred()) return NULL
;
1281 } Py_INCREF(Py_None
);
1282 _resultobj
= Py_None
;
1286 #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg())
1287 static PyObject
*_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1288 PyObject
* _resultobj
;
1290 wxCalendarCtrl
* _arg0
;
1291 PyObject
* _argo0
= 0;
1292 char *_kwnames
[] = { "self", NULL
};
1296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames
,&_argo0
))
1299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p.");
1306 wxPy_BEGIN_ALLOW_THREADS
;
1307 const wxColour
& _result_ref
= wxCalendarCtrl_GetHighlightColourFg(_arg0
);
1308 _result
= (wxColour
*) &_result_ref
;
1310 wxPy_END_ALLOW_THREADS
;
1311 if (PyErr_Occurred()) return NULL
;
1313 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1314 _resultobj
= Py_BuildValue("s",_ptemp
);
1317 _resultobj
= Py_None
;
1322 #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg())
1323 static PyObject
*_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1324 PyObject
* _resultobj
;
1326 wxCalendarCtrl
* _arg0
;
1327 PyObject
* _argo0
= 0;
1328 char *_kwnames
[] = { "self", NULL
};
1332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames
,&_argo0
))
1335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p.");
1342 wxPy_BEGIN_ALLOW_THREADS
;
1343 const wxColour
& _result_ref
= wxCalendarCtrl_GetHighlightColourBg(_arg0
);
1344 _result
= (wxColour
*) &_result_ref
;
1346 wxPy_END_ALLOW_THREADS
;
1347 if (PyErr_Occurred()) return NULL
;
1349 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1350 _resultobj
= Py_BuildValue("s",_ptemp
);
1353 _resultobj
= Py_None
;
1358 #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1))
1359 static PyObject
*_wrap_wxCalendarCtrl_SetHolidayColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1360 PyObject
* _resultobj
;
1361 wxCalendarCtrl
* _arg0
;
1364 PyObject
* _argo0
= 0;
1366 PyObject
* _obj1
= 0;
1368 PyObject
* _obj2
= 0;
1369 char *_kwnames
[] = { "self","colFg","colBg", NULL
};
1372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p.");
1383 if (! wxColour_helper(_obj1
, &_arg1
))
1388 if (! wxColour_helper(_obj2
, &_arg2
))
1392 wxPy_BEGIN_ALLOW_THREADS
;
1393 wxCalendarCtrl_SetHolidayColours(_arg0
,*_arg1
,*_arg2
);
1395 wxPy_END_ALLOW_THREADS
;
1396 if (PyErr_Occurred()) return NULL
;
1397 } Py_INCREF(Py_None
);
1398 _resultobj
= Py_None
;
1402 #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg())
1403 static PyObject
*_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1404 PyObject
* _resultobj
;
1406 wxCalendarCtrl
* _arg0
;
1407 PyObject
* _argo0
= 0;
1408 char *_kwnames
[] = { "self", NULL
};
1412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames
,&_argo0
))
1415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourFg. Expected _wxCalendarCtrl_p.");
1422 wxPy_BEGIN_ALLOW_THREADS
;
1423 const wxColour
& _result_ref
= wxCalendarCtrl_GetHolidayColourFg(_arg0
);
1424 _result
= (wxColour
*) &_result_ref
;
1426 wxPy_END_ALLOW_THREADS
;
1427 if (PyErr_Occurred()) return NULL
;
1429 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1430 _resultobj
= Py_BuildValue("s",_ptemp
);
1433 _resultobj
= Py_None
;
1438 #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg())
1439 static PyObject
*_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1440 PyObject
* _resultobj
;
1442 wxCalendarCtrl
* _arg0
;
1443 PyObject
* _argo0
= 0;
1444 char *_kwnames
[] = { "self", NULL
};
1448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames
,&_argo0
))
1451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p.");
1458 wxPy_BEGIN_ALLOW_THREADS
;
1459 const wxColour
& _result_ref
= wxCalendarCtrl_GetHolidayColourBg(_arg0
);
1460 _result
= (wxColour
*) &_result_ref
;
1462 wxPy_END_ALLOW_THREADS
;
1463 if (PyErr_Occurred()) return NULL
;
1465 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
1466 _resultobj
= Py_BuildValue("s",_ptemp
);
1469 _resultobj
= Py_None
;
1474 #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0))
1475 static PyObject
*_wrap_wxCalendarCtrl_GetAttr(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1476 PyObject
* _resultobj
;
1477 wxCalendarDateAttr
* _result
;
1478 wxCalendarCtrl
* _arg0
;
1480 PyObject
* _argo0
= 0;
1481 char *_kwnames
[] = { "self","day", NULL
};
1485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarCtrl_GetAttr",_kwnames
,&_argo0
,&_arg1
))
1488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p.");
1495 wxPy_BEGIN_ALLOW_THREADS
;
1496 _result
= (wxCalendarDateAttr
*)wxCalendarCtrl_GetAttr(_arg0
,_arg1
);
1498 wxPy_END_ALLOW_THREADS
;
1499 if (PyErr_Occurred()) return NULL
;
1501 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCalendarDateAttr_p");
1502 _resultobj
= Py_BuildValue("s",_ptemp
);
1505 _resultobj
= Py_None
;
1510 #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1))
1511 static PyObject
*_wrap_wxCalendarCtrl_SetAttr(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1512 PyObject
* _resultobj
;
1513 wxCalendarCtrl
* _arg0
;
1515 wxCalendarDateAttr
* _arg2
;
1516 PyObject
* _argo0
= 0;
1517 PyObject
* _argo2
= 0;
1518 char *_kwnames
[] = { "self","day","attr", NULL
};
1521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxCalendarCtrl_SetAttr",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p.");
1531 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1532 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCalendarDateAttr_p")) {
1533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p.");
1538 wxPy_BEGIN_ALLOW_THREADS
;
1539 wxCalendarCtrl_SetAttr(_arg0
,_arg1
,_arg2
);
1541 wxPy_END_ALLOW_THREADS
;
1542 if (PyErr_Occurred()) return NULL
;
1543 } Py_INCREF(Py_None
);
1544 _resultobj
= Py_None
;
1548 #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0))
1549 static PyObject
*_wrap_wxCalendarCtrl_SetHoliday(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1550 PyObject
* _resultobj
;
1551 wxCalendarCtrl
* _arg0
;
1553 PyObject
* _argo0
= 0;
1554 char *_kwnames
[] = { "self","day", NULL
};
1557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarCtrl_SetHoliday",_kwnames
,&_argo0
,&_arg1
))
1560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p.");
1567 wxPy_BEGIN_ALLOW_THREADS
;
1568 wxCalendarCtrl_SetHoliday(_arg0
,_arg1
);
1570 wxPy_END_ALLOW_THREADS
;
1571 if (PyErr_Occurred()) return NULL
;
1572 } Py_INCREF(Py_None
);
1573 _resultobj
= Py_None
;
1577 #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0))
1578 static PyObject
*_wrap_wxCalendarCtrl_ResetAttr(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1579 PyObject
* _resultobj
;
1580 wxCalendarCtrl
* _arg0
;
1582 PyObject
* _argo0
= 0;
1583 char *_kwnames
[] = { "self","day", NULL
};
1586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCalendarCtrl_ResetAttr",_kwnames
,&_argo0
,&_arg1
))
1589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_ResetAttr. Expected _wxCalendarCtrl_p.");
1596 wxPy_BEGIN_ALLOW_THREADS
;
1597 wxCalendarCtrl_ResetAttr(_arg0
,_arg1
);
1599 wxPy_END_ALLOW_THREADS
;
1600 if (PyErr_Occurred()) return NULL
;
1601 } Py_INCREF(Py_None
);
1602 _resultobj
= Py_None
;
1606 #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2))
1607 static PyObject
*_wrap_wxCalendarCtrl_HitTest(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1608 PyObject
* _resultobj
;
1609 wxCalendarHitTestResult _result
;
1610 wxCalendarCtrl
* _arg0
;
1612 wxDateTime
* _arg2
= (wxDateTime
*) NULL
;
1613 wxDateTime::WeekDay
* _arg3
= (wxDateTime::WeekDay
*) NULL
;
1614 PyObject
* _argo0
= 0;
1616 PyObject
* _obj1
= 0;
1617 PyObject
* _argo2
= 0;
1618 PyObject
* _argo3
= 0;
1619 char *_kwnames
[] = { "self","pos","date","wd", NULL
};
1622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|OO:wxCalendarCtrl_HitTest",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
1625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCalendarCtrl_p")) {
1627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p.");
1633 if (! wxPoint_helper(_obj1
, &_arg1
))
1637 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1638 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDateTime_p")) {
1639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p.");
1644 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1645 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxDateTime::WeekDay_p")) {
1646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p.");
1651 wxPy_BEGIN_ALLOW_THREADS
;
1652 _result
= (wxCalendarHitTestResult
)wxCalendarCtrl_HitTest(_arg0
,*_arg1
,_arg2
,_arg3
);
1654 wxPy_END_ALLOW_THREADS
;
1655 if (PyErr_Occurred()) return NULL
;
1656 } _resultobj
= Py_BuildValue("i",_result
);
1660 static PyMethodDef calendarcMethods
[] = {
1661 { "wxCalendarCtrl_HitTest", (PyCFunction
) _wrap_wxCalendarCtrl_HitTest
, METH_VARARGS
| METH_KEYWORDS
},
1662 { "wxCalendarCtrl_ResetAttr", (PyCFunction
) _wrap_wxCalendarCtrl_ResetAttr
, METH_VARARGS
| METH_KEYWORDS
},
1663 { "wxCalendarCtrl_SetHoliday", (PyCFunction
) _wrap_wxCalendarCtrl_SetHoliday
, METH_VARARGS
| METH_KEYWORDS
},
1664 { "wxCalendarCtrl_SetAttr", (PyCFunction
) _wrap_wxCalendarCtrl_SetAttr
, METH_VARARGS
| METH_KEYWORDS
},
1665 { "wxCalendarCtrl_GetAttr", (PyCFunction
) _wrap_wxCalendarCtrl_GetAttr
, METH_VARARGS
| METH_KEYWORDS
},
1666 { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHolidayColourBg
, METH_VARARGS
| METH_KEYWORDS
},
1667 { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHolidayColourFg
, METH_VARARGS
| METH_KEYWORDS
},
1668 { "wxCalendarCtrl_SetHolidayColours", (PyCFunction
) _wrap_wxCalendarCtrl_SetHolidayColours
, METH_VARARGS
| METH_KEYWORDS
},
1669 { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHighlightColourBg
, METH_VARARGS
| METH_KEYWORDS
},
1670 { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHighlightColourFg
, METH_VARARGS
| METH_KEYWORDS
},
1671 { "wxCalendarCtrl_SetHighlightColours", (PyCFunction
) _wrap_wxCalendarCtrl_SetHighlightColours
, METH_VARARGS
| METH_KEYWORDS
},
1672 { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHeaderColourBg
, METH_VARARGS
| METH_KEYWORDS
},
1673 { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction
) _wrap_wxCalendarCtrl_GetHeaderColourFg
, METH_VARARGS
| METH_KEYWORDS
},
1674 { "wxCalendarCtrl_SetHeaderColours", (PyCFunction
) _wrap_wxCalendarCtrl_SetHeaderColours
, METH_VARARGS
| METH_KEYWORDS
},
1675 { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction
) _wrap_wxCalendarCtrl_EnableHolidayDisplay
, METH_VARARGS
| METH_KEYWORDS
},
1676 { "wxCalendarCtrl_EnableMonthChange", (PyCFunction
) _wrap_wxCalendarCtrl_EnableMonthChange
, METH_VARARGS
| METH_KEYWORDS
},
1677 { "wxCalendarCtrl_EnableYearChange", (PyCFunction
) _wrap_wxCalendarCtrl_EnableYearChange
, METH_VARARGS
| METH_KEYWORDS
},
1678 { "wxCalendarCtrl_GetDate", (PyCFunction
) _wrap_wxCalendarCtrl_GetDate
, METH_VARARGS
| METH_KEYWORDS
},
1679 { "wxCalendarCtrl_SetDate", (PyCFunction
) _wrap_wxCalendarCtrl_SetDate
, METH_VARARGS
| METH_KEYWORDS
},
1680 { "new_wxCalendarCtrl", (PyCFunction
) _wrap_new_wxCalendarCtrl
, METH_VARARGS
| METH_KEYWORDS
},
1681 { "wxCalendarEvent_GetWeekDay", (PyCFunction
) _wrap_wxCalendarEvent_GetWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
1682 { "wxCalendarEvent_GetDate", (PyCFunction
) _wrap_wxCalendarEvent_GetDate
, METH_VARARGS
| METH_KEYWORDS
},
1683 { "new_wxCalendarEvent", (PyCFunction
) _wrap_new_wxCalendarEvent
, METH_VARARGS
| METH_KEYWORDS
},
1684 { "wxCalendarDateAttr_GetBorder", (PyCFunction
) _wrap_wxCalendarDateAttr_GetBorder
, METH_VARARGS
| METH_KEYWORDS
},
1685 { "wxCalendarDateAttr_GetFont", (PyCFunction
) _wrap_wxCalendarDateAttr_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
1686 { "wxCalendarDateAttr_GetBorderColour", (PyCFunction
) _wrap_wxCalendarDateAttr_GetBorderColour
, METH_VARARGS
| METH_KEYWORDS
},
1687 { "wxCalendarDateAttr_GetBackgroundColour", (PyCFunction
) _wrap_wxCalendarDateAttr_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
1688 { "wxCalendarDateAttr_GetTextColour", (PyCFunction
) _wrap_wxCalendarDateAttr_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
1689 { "wxCalendarDateAttr_IsHoliday", (PyCFunction
) _wrap_wxCalendarDateAttr_IsHoliday
, METH_VARARGS
| METH_KEYWORDS
},
1690 { "wxCalendarDateAttr_HasBorder", (PyCFunction
) _wrap_wxCalendarDateAttr_HasBorder
, METH_VARARGS
| METH_KEYWORDS
},
1691 { "wxCalendarDateAttr_HasFont", (PyCFunction
) _wrap_wxCalendarDateAttr_HasFont
, METH_VARARGS
| METH_KEYWORDS
},
1692 { "wxCalendarDateAttr_HasBorderColour", (PyCFunction
) _wrap_wxCalendarDateAttr_HasBorderColour
, METH_VARARGS
| METH_KEYWORDS
},
1693 { "wxCalendarDateAttr_HasBackgroundColour", (PyCFunction
) _wrap_wxCalendarDateAttr_HasBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
1694 { "wxCalendarDateAttr_HasTextColour", (PyCFunction
) _wrap_wxCalendarDateAttr_HasTextColour
, METH_VARARGS
| METH_KEYWORDS
},
1695 { "wxCalendarDateAttr_SetHoliday", (PyCFunction
) _wrap_wxCalendarDateAttr_SetHoliday
, METH_VARARGS
| METH_KEYWORDS
},
1696 { "wxCalendarDateAttr_SetBorder", (PyCFunction
) _wrap_wxCalendarDateAttr_SetBorder
, METH_VARARGS
| METH_KEYWORDS
},
1697 { "wxCalendarDateAttr_SetFont", (PyCFunction
) _wrap_wxCalendarDateAttr_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
1698 { "wxCalendarDateAttr_SetBorderColour", (PyCFunction
) _wrap_wxCalendarDateAttr_SetBorderColour
, METH_VARARGS
| METH_KEYWORDS
},
1699 { "wxCalendarDateAttr_SetBackgroundColour", (PyCFunction
) _wrap_wxCalendarDateAttr_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
1700 { "wxCalendarDateAttr_SetTextColour", (PyCFunction
) _wrap_wxCalendarDateAttr_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
1701 { "new_wxCalendarDateAttrBorder", (PyCFunction
) _wrap_new_wxCalendarDateAttrBorder
, METH_VARARGS
| METH_KEYWORDS
},
1702 { "new_wxCalendarDateAttr", (PyCFunction
) _wrap_new_wxCalendarDateAttr
, METH_VARARGS
| METH_KEYWORDS
},
1709 * This table is used by the pointer type-checker
1711 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1712 { "_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent
},
1713 { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent
},
1714 { "_signed_long","_long",0},
1715 { "_wxPrintQuality","_wxCoord",0},
1716 { "_wxPrintQuality","_int",0},
1717 { "_wxPrintQuality","_signed_int",0},
1718 { "_wxPrintQuality","_unsigned_int",0},
1719 { "_wxPrintQuality","_wxWindowID",0},
1720 { "_wxPrintQuality","_uint",0},
1721 { "_wxPrintQuality","_EBool",0},
1722 { "_wxPrintQuality","_size_t",0},
1723 { "_wxPrintQuality","_time_t",0},
1724 { "_class_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler
},
1725 { "_class_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler
},
1726 { "_byte","_unsigned_char",0},
1727 { "_long","_unsigned_long",0},
1728 { "_long","_signed_long",0},
1729 { "_class_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject
},
1730 { "_class_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject
},
1731 { "_class_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject
},
1732 { "_class_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject
},
1733 { "_size_t","_wxCoord",0},
1734 { "_size_t","_wxPrintQuality",0},
1735 { "_size_t","_time_t",0},
1736 { "_size_t","_unsigned_int",0},
1737 { "_size_t","_int",0},
1738 { "_size_t","_wxWindowID",0},
1739 { "_size_t","_uint",0},
1740 { "_uint","_wxCoord",0},
1741 { "_uint","_wxPrintQuality",0},
1742 { "_uint","_time_t",0},
1743 { "_uint","_size_t",0},
1744 { "_uint","_unsigned_int",0},
1745 { "_uint","_int",0},
1746 { "_uint","_wxWindowID",0},
1747 { "_wxChar","_char",0},
1748 { "_class_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent
},
1749 { "_class_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent
},
1750 { "_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent
},
1751 { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent
},
1752 { "_char","_wxChar",0},
1753 { "_EBool","_wxCoord",0},
1754 { "_EBool","_wxPrintQuality",0},
1755 { "_EBool","_signed_int",0},
1756 { "_EBool","_int",0},
1757 { "_EBool","_wxWindowID",0},
1758 { "_unsigned_long","_long",0},
1759 { "_signed_int","_wxCoord",0},
1760 { "_signed_int","_wxPrintQuality",0},
1761 { "_signed_int","_EBool",0},
1762 { "_signed_int","_wxWindowID",0},
1763 { "_signed_int","_int",0},
1764 { "_WXTYPE","_wxDateTime_t",0},
1765 { "_WXTYPE","_short",0},
1766 { "_WXTYPE","_signed_short",0},
1767 { "_WXTYPE","_unsigned_short",0},
1768 { "_unsigned_short","_wxDateTime_t",0},
1769 { "_unsigned_short","_WXTYPE",0},
1770 { "_unsigned_short","_short",0},
1771 { "_class_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow
},
1772 { "_class_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow
},
1773 { "_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject
},
1774 { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject
},
1775 { "_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject
},
1776 { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject
},
1777 { "_signed_short","_WXTYPE",0},
1778 { "_signed_short","_short",0},
1779 { "_unsigned_char","_byte",0},
1780 { "_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl
},
1781 { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl
},
1782 { "_unsigned_int","_wxCoord",0},
1783 { "_unsigned_int","_wxPrintQuality",0},
1784 { "_unsigned_int","_time_t",0},
1785 { "_unsigned_int","_size_t",0},
1786 { "_unsigned_int","_uint",0},
1787 { "_unsigned_int","_wxWindowID",0},
1788 { "_unsigned_int","_int",0},
1789 { "_short","_wxDateTime_t",0},
1790 { "_short","_WXTYPE",0},
1791 { "_short","_unsigned_short",0},
1792 { "_short","_signed_short",0},
1793 { "_wxWindowID","_wxCoord",0},
1794 { "_wxWindowID","_wxPrintQuality",0},
1795 { "_wxWindowID","_time_t",0},
1796 { "_wxWindowID","_size_t",0},
1797 { "_wxWindowID","_EBool",0},
1798 { "_wxWindowID","_uint",0},
1799 { "_wxWindowID","_int",0},
1800 { "_wxWindowID","_signed_int",0},
1801 { "_wxWindowID","_unsigned_int",0},
1802 { "_int","_wxCoord",0},
1803 { "_int","_wxPrintQuality",0},
1804 { "_int","_time_t",0},
1805 { "_int","_size_t",0},
1806 { "_int","_EBool",0},
1807 { "_int","_uint",0},
1808 { "_int","_wxWindowID",0},
1809 { "_int","_unsigned_int",0},
1810 { "_int","_signed_int",0},
1811 { "_wxDateTime_t","_unsigned_short",0},
1812 { "_wxDateTime_t","_short",0},
1813 { "_wxDateTime_t","_WXTYPE",0},
1814 { "_time_t","_wxCoord",0},
1815 { "_time_t","_wxPrintQuality",0},
1816 { "_time_t","_unsigned_int",0},
1817 { "_time_t","_int",0},
1818 { "_time_t","_wxWindowID",0},
1819 { "_time_t","_uint",0},
1820 { "_time_t","_size_t",0},
1821 { "_class_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl
},
1822 { "_class_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl
},
1823 { "_wxCoord","_int",0},
1824 { "_wxCoord","_signed_int",0},
1825 { "_wxCoord","_unsigned_int",0},
1826 { "_wxCoord","_wxWindowID",0},
1827 { "_wxCoord","_uint",0},
1828 { "_wxCoord","_EBool",0},
1829 { "_wxCoord","_size_t",0},
1830 { "_wxCoord","_time_t",0},
1831 { "_wxCoord","_wxPrintQuality",0},
1832 { "_class_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent
},
1833 { "_class_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent
},
1834 { "_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler
},
1835 { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler
},
1836 { "_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow
},
1837 { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow
},
1840 static PyObject
*SWIG_globals
;
1844 SWIGEXPORT(void) initcalendarc() {
1846 SWIG_globals
= SWIG_newvarlink();
1847 m
= Py_InitModule("calendarc", calendarcMethods
);
1848 d
= PyModule_GetDict(m
);
1849 PyDict_SetItemString(d
,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST
));
1850 PyDict_SetItemString(d
,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST
));
1851 PyDict_SetItemString(d
,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS
));
1852 PyDict_SetItemString(d
,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE
));
1853 PyDict_SetItemString(d
,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE
));
1854 PyDict_SetItemString(d
,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE
));
1855 PyDict_SetItemString(d
,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER
));
1856 PyDict_SetItemString(d
,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY
));
1857 PyDict_SetItemString(d
,"wxCAL_BORDER_NONE", PyInt_FromLong((long) wxCAL_BORDER_NONE
));
1858 PyDict_SetItemString(d
,"wxCAL_BORDER_SQUARE", PyInt_FromLong((long) wxCAL_BORDER_SQUARE
));
1859 PyDict_SetItemString(d
,"wxCAL_BORDER_ROUND", PyInt_FromLong((long) wxCAL_BORDER_ROUND
));
1860 PyDict_SetItemString(d
,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED
));
1861 PyDict_SetItemString(d
,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED
));
1862 PyDict_SetItemString(d
,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED
));
1863 PyDict_SetItemString(d
,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED
));
1864 PyDict_SetItemString(d
,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED
));
1865 PyDict_SetItemString(d
,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED
));
1867 wxClassInfo::CleanUpClasses();
1868 wxClassInfo::InitializeClasses();
1871 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1872 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);