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