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