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