]>
Commit | Line | Data |
---|---|---|
f6bcfd97 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/calendar.cpp |
f6bcfd97 BP |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
f6bcfd97 BP |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
f6bcfd97 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
f6bcfd97 BP |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
f6bcfd97 BP |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcalendarc | |
55 | ||
56 | #define SWIG_name "calendarc" | |
57 | ||
1e7ecb7b | 58 | #include "export.h" |
f6bcfd97 BP |
59 | #include <wx/calctrl.h> |
60 | ||
f6bcfd97 BP |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
e0672e2f | 66 | if (!target) { |
f6bcfd97 | 67 | target = o; |
e0672e2f | 68 | } else if (target == Py_None) { |
f6bcfd97 BP |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
e0672e2f | 71 | } else { |
f6bcfd97 BP |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
e0672e2f RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
f6bcfd97 BP |
79 | |
80 | o2 = target; | |
e0672e2f RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
f6bcfd97 BP |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
794c5cb1 RD |
88 | #if PYTHON_API_VERSION >= 1009 |
89 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
90 | #else | |
0122b7e3 | 91 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 92 | #endif |
f6bcfd97 BP |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
f6bcfd97 BP |
96 | static void *SwigwxCalendarEventTowxCommandEvent(void *ptr) { |
97 | wxCalendarEvent *src; | |
98 | wxCommandEvent *dest; | |
99 | src = (wxCalendarEvent *) ptr; | |
100 | dest = (wxCommandEvent *) src; | |
101 | return (void *) dest; | |
102 | } | |
103 | ||
104 | static void *SwigwxCalendarEventTowxEvent(void *ptr) { | |
105 | wxCalendarEvent *src; | |
106 | wxEvent *dest; | |
107 | src = (wxCalendarEvent *) ptr; | |
108 | dest = (wxEvent *) src; | |
109 | return (void *) dest; | |
110 | } | |
111 | ||
9416aa89 RD |
112 | static void *SwigwxCalendarEventTowxObject(void *ptr) { |
113 | wxCalendarEvent *src; | |
114 | wxObject *dest; | |
115 | src = (wxCalendarEvent *) ptr; | |
116 | dest = (wxObject *) src; | |
117 | return (void *) dest; | |
118 | } | |
119 | ||
f6bcfd97 BP |
120 | #define new_wxCalendarEvent(_swigarg0,_swigarg1) (new wxCalendarEvent(_swigarg0,_swigarg1)) |
121 | static PyObject *_wrap_new_wxCalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
122 | PyObject * _resultobj; | |
123 | wxCalendarEvent * _result; | |
124 | wxCalendarCtrl * _arg0; | |
125 | wxEventType _arg1; | |
126 | PyObject * _argo0 = 0; | |
127 | char *_kwnames[] = { "cal","type", NULL }; | |
128 | char _ptemp[128]; | |
129 | ||
130 | self = self; | |
131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxCalendarEvent",_kwnames,&_argo0,&_arg1)) | |
132 | return NULL; | |
133 | if (_argo0) { | |
134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarEvent. Expected _wxCalendarCtrl_p."); | |
137 | return NULL; | |
138 | } | |
139 | } | |
140 | { | |
141 | wxPy_BEGIN_ALLOW_THREADS; | |
142 | _result = (wxCalendarEvent *)new_wxCalendarEvent(_arg0,_arg1); | |
143 | ||
144 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 145 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
146 | } if (_result) { |
147 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarEvent_p"); | |
148 | _resultobj = Py_BuildValue("s",_ptemp); | |
149 | } else { | |
150 | Py_INCREF(Py_None); | |
151 | _resultobj = Py_None; | |
152 | } | |
153 | return _resultobj; | |
154 | } | |
155 | ||
156 | #define wxCalendarEvent_GetDate(_swigobj) (_swigobj->GetDate()) | |
157 | static PyObject *_wrap_wxCalendarEvent_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
158 | PyObject * _resultobj; | |
159 | wxDateTime * _result; | |
160 | wxCalendarEvent * _arg0; | |
161 | PyObject * _argo0 = 0; | |
162 | char *_kwnames[] = { "self", NULL }; | |
163 | char _ptemp[128]; | |
164 | ||
165 | self = self; | |
166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetDate",_kwnames,&_argo0)) | |
167 | return NULL; | |
168 | if (_argo0) { | |
169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) { | |
171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetDate. Expected _wxCalendarEvent_p."); | |
172 | return NULL; | |
173 | } | |
174 | } | |
175 | { | |
176 | wxPy_BEGIN_ALLOW_THREADS; | |
177 | const wxDateTime & _result_ref = wxCalendarEvent_GetDate(_arg0); | |
178 | _result = (wxDateTime *) &_result_ref; | |
179 | ||
180 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 181 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
182 | } if (_result) { |
183 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
184 | _resultobj = Py_BuildValue("s",_ptemp); | |
185 | } else { | |
186 | Py_INCREF(Py_None); | |
187 | _resultobj = Py_None; | |
188 | } | |
189 | return _resultobj; | |
190 | } | |
191 | ||
192 | #define wxCalendarEvent_GetWeekDay(_swigobj) (_swigobj->GetWeekDay()) | |
193 | static PyObject *_wrap_wxCalendarEvent_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
194 | PyObject * _resultobj; | |
195 | wxDateTime::WeekDay _result; | |
196 | wxCalendarEvent * _arg0; | |
197 | PyObject * _argo0 = 0; | |
198 | char *_kwnames[] = { "self", NULL }; | |
199 | ||
200 | self = self; | |
201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetWeekDay",_kwnames,&_argo0)) | |
202 | return NULL; | |
203 | if (_argo0) { | |
204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) { | |
206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetWeekDay. Expected _wxCalendarEvent_p."); | |
207 | return NULL; | |
208 | } | |
209 | } | |
210 | { | |
211 | wxPy_BEGIN_ALLOW_THREADS; | |
212 | _result = (wxDateTime::WeekDay )wxCalendarEvent_GetWeekDay(_arg0); | |
213 | ||
214 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 215 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
216 | } _resultobj = Py_BuildValue("i",_result); |
217 | return _resultobj; | |
218 | } | |
219 | ||
220 | static void *SwigwxCalendarCtrlTowxControl(void *ptr) { | |
221 | wxCalendarCtrl *src; | |
222 | wxControl *dest; | |
223 | src = (wxCalendarCtrl *) ptr; | |
224 | dest = (wxControl *) src; | |
225 | return (void *) dest; | |
226 | } | |
227 | ||
228 | static void *SwigwxCalendarCtrlTowxWindow(void *ptr) { | |
229 | wxCalendarCtrl *src; | |
230 | wxWindow *dest; | |
231 | src = (wxCalendarCtrl *) ptr; | |
232 | dest = (wxWindow *) src; | |
233 | return (void *) dest; | |
234 | } | |
235 | ||
236 | static void *SwigwxCalendarCtrlTowxEvtHandler(void *ptr) { | |
237 | wxCalendarCtrl *src; | |
238 | wxEvtHandler *dest; | |
239 | src = (wxCalendarCtrl *) ptr; | |
240 | dest = (wxEvtHandler *) src; | |
241 | return (void *) dest; | |
242 | } | |
243 | ||
9416aa89 RD |
244 | static void *SwigwxCalendarCtrlTowxObject(void *ptr) { |
245 | wxCalendarCtrl *src; | |
246 | wxObject *dest; | |
247 | src = (wxCalendarCtrl *) ptr; | |
248 | dest = (wxObject *) src; | |
249 | return (void *) dest; | |
250 | } | |
251 | ||
f6bcfd97 BP |
252 | #define new_wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
253 | static PyObject *_wrap_new_wxCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
254 | PyObject * _resultobj; | |
255 | wxCalendarCtrl * _result; | |
256 | wxWindow * _arg0; | |
257 | wxWindowID _arg1; | |
258 | wxDateTime * _arg2 = (wxDateTime *) &wxDefaultDateTime; | |
259 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
260 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
bae17009 | 261 | long _arg5 = (long ) (wxCAL_SHOW_HOLIDAYS)|wxWANTS_CHARS; |
f6bcfd97 BP |
262 | char * _arg6 = (char *) "calendar"; |
263 | PyObject * _argo0 = 0; | |
264 | PyObject * _argo2 = 0; | |
265 | wxPoint temp; | |
266 | PyObject * _obj3 = 0; | |
267 | wxSize temp0; | |
268 | PyObject * _obj4 = 0; | |
269 | char *_kwnames[] = { "parent","id","date","pos","size","style","name", NULL }; | |
270 | char _ptemp[128]; | |
271 | ||
272 | self = self; | |
273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOls:new_wxCalendarCtrl",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
274 | return NULL; | |
275 | if (_argo0) { | |
276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarCtrl. Expected _wxWindow_p."); | |
279 | return NULL; | |
280 | } | |
281 | } | |
282 | if (_argo2) { | |
283 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
284 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxCalendarCtrl. Expected _wxDateTime_p."); | |
286 | return NULL; | |
287 | } | |
288 | } | |
289 | if (_obj3) | |
290 | { | |
291 | _arg3 = &temp; | |
292 | if (! wxPoint_helper(_obj3, &_arg3)) | |
293 | return NULL; | |
294 | } | |
295 | if (_obj4) | |
296 | { | |
297 | _arg4 = &temp0; | |
298 | if (! wxSize_helper(_obj4, &_arg4)) | |
299 | return NULL; | |
300 | } | |
301 | { | |
302 | wxPy_BEGIN_ALLOW_THREADS; | |
303 | _result = (wxCalendarCtrl *)new_wxCalendarCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
304 | ||
305 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 306 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
307 | } if (_result) { |
308 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p"); | |
309 | _resultobj = Py_BuildValue("s",_ptemp); | |
310 | } else { | |
311 | Py_INCREF(Py_None); | |
312 | _resultobj = Py_None; | |
313 | } | |
314 | return _resultobj; | |
315 | } | |
316 | ||
09f3d4e6 RD |
317 | #define new_wxPreCalendarCtrl() (new wxCalendarCtrl()) |
318 | static PyObject *_wrap_new_wxPreCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
319 | PyObject * _resultobj; | |
320 | wxCalendarCtrl * _result; | |
321 | char *_kwnames[] = { NULL }; | |
322 | char _ptemp[128]; | |
323 | ||
324 | self = self; | |
325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCalendarCtrl",_kwnames)) | |
326 | return NULL; | |
327 | { | |
328 | wxPy_BEGIN_ALLOW_THREADS; | |
329 | _result = (wxCalendarCtrl *)new_wxPreCalendarCtrl(); | |
330 | ||
331 | wxPy_END_ALLOW_THREADS; | |
332 | if (PyErr_Occurred()) return NULL; | |
333 | } if (_result) { | |
334 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p"); | |
335 | _resultobj = Py_BuildValue("s",_ptemp); | |
336 | } else { | |
337 | Py_INCREF(Py_None); | |
338 | _resultobj = Py_None; | |
339 | } | |
340 | return _resultobj; | |
341 | } | |
342 | ||
343 | #define wxCalendarCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
344 | static PyObject *_wrap_wxCalendarCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
345 | PyObject * _resultobj; | |
346 | bool _result; | |
347 | wxCalendarCtrl * _arg0; | |
348 | wxWindow * _arg1; | |
349 | wxWindowID _arg2; | |
350 | wxDateTime * _arg3 = (wxDateTime *) &wxDefaultDateTime; | |
351 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
352 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
bae17009 | 353 | long _arg6 = (long ) (wxCAL_SHOW_HOLIDAYS)|wxWANTS_CHARS; |
09f3d4e6 RD |
354 | char * _arg7 = (char *) "calendar"; |
355 | PyObject * _argo0 = 0; | |
356 | PyObject * _argo1 = 0; | |
357 | PyObject * _argo3 = 0; | |
358 | wxPoint temp; | |
359 | PyObject * _obj4 = 0; | |
360 | wxSize temp0; | |
361 | PyObject * _obj5 = 0; | |
362 | char *_kwnames[] = { "self","parent","id","date","pos","size","style","name", NULL }; | |
363 | ||
364 | self = self; | |
365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOls:wxCalendarCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
366 | return NULL; | |
367 | if (_argo0) { | |
368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_Create. Expected _wxCalendarCtrl_p."); | |
371 | return NULL; | |
372 | } | |
373 | } | |
374 | if (_argo1) { | |
375 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
376 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_Create. Expected _wxWindow_p."); | |
378 | return NULL; | |
379 | } | |
380 | } | |
381 | if (_argo3) { | |
382 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
383 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime_p")) { | |
384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_Create. Expected _wxDateTime_p."); | |
385 | return NULL; | |
386 | } | |
387 | } | |
388 | if (_obj4) | |
389 | { | |
390 | _arg4 = &temp; | |
391 | if (! wxPoint_helper(_obj4, &_arg4)) | |
392 | return NULL; | |
393 | } | |
394 | if (_obj5) | |
395 | { | |
396 | _arg5 = &temp0; | |
397 | if (! wxSize_helper(_obj5, &_arg5)) | |
398 | return NULL; | |
399 | } | |
400 | { | |
401 | wxPy_BEGIN_ALLOW_THREADS; | |
402 | _result = (bool )wxCalendarCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
403 | ||
404 | wxPy_END_ALLOW_THREADS; | |
405 | if (PyErr_Occurred()) return NULL; | |
406 | } _resultobj = Py_BuildValue("i",_result); | |
407 | return _resultobj; | |
408 | } | |
409 | ||
f6bcfd97 BP |
410 | #define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0)) |
411 | static PyObject *_wrap_wxCalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
412 | PyObject * _resultobj; | |
413 | wxCalendarCtrl * _arg0; | |
414 | wxDateTime * _arg1; | |
415 | PyObject * _argo0 = 0; | |
416 | PyObject * _argo1 = 0; | |
417 | char *_kwnames[] = { "self","date", NULL }; | |
418 | ||
419 | self = self; | |
420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarCtrl_SetDate",_kwnames,&_argo0,&_argo1)) | |
421 | return NULL; | |
422 | if (_argo0) { | |
423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p."); | |
426 | return NULL; | |
427 | } | |
428 | } | |
429 | if (_argo1) { | |
430 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
431 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p."); | |
433 | return NULL; | |
434 | } | |
435 | } | |
436 | { | |
437 | wxPy_BEGIN_ALLOW_THREADS; | |
438 | wxCalendarCtrl_SetDate(_arg0,*_arg1); | |
439 | ||
440 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 441 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
442 | } Py_INCREF(Py_None); |
443 | _resultobj = Py_None; | |
444 | return _resultobj; | |
445 | } | |
446 | ||
447 | #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate()) | |
448 | static PyObject *_wrap_wxCalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
449 | PyObject * _resultobj; | |
450 | wxDateTime * _result; | |
451 | wxCalendarCtrl * _arg0; | |
452 | PyObject * _argo0 = 0; | |
453 | char *_kwnames[] = { "self", NULL }; | |
454 | char _ptemp[128]; | |
455 | ||
456 | self = self; | |
457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetDate",_kwnames,&_argo0)) | |
458 | return NULL; | |
459 | if (_argo0) { | |
460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p."); | |
463 | return NULL; | |
464 | } | |
465 | } | |
466 | { | |
467 | wxPy_BEGIN_ALLOW_THREADS; | |
468 | const wxDateTime & _result_ref = wxCalendarCtrl_GetDate(_arg0); | |
469 | _result = (wxDateTime *) &_result_ref; | |
470 | ||
471 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 472 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
473 | } if (_result) { |
474 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
475 | _resultobj = Py_BuildValue("s",_ptemp); | |
476 | } else { | |
477 | Py_INCREF(Py_None); | |
478 | _resultobj = Py_None; | |
479 | } | |
480 | return _resultobj; | |
481 | } | |
482 | ||
ab11ebfa RD |
483 | #define wxCalendarCtrl_SetLowerDateLimit(_swigobj,_swigarg0) (_swigobj->SetLowerDateLimit(_swigarg0)) |
484 | static PyObject *_wrap_wxCalendarCtrl_SetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
485 | PyObject * _resultobj; | |
486 | bool _result; | |
487 | wxCalendarCtrl * _arg0; | |
488 | wxDateTime * _arg1 = (wxDateTime *) &wxDefaultDateTime; | |
489 | PyObject * _argo0 = 0; | |
490 | PyObject * _argo1 = 0; | |
491 | char *_kwnames[] = { "self","date", NULL }; | |
492 | ||
493 | self = self; | |
494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxCalendarCtrl_SetLowerDateLimit",_kwnames,&_argo0,&_argo1)) | |
495 | return NULL; | |
496 | if (_argo0) { | |
497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetLowerDateLimit. Expected _wxCalendarCtrl_p."); | |
500 | return NULL; | |
501 | } | |
502 | } | |
503 | if (_argo1) { | |
504 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
505 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetLowerDateLimit. Expected _wxDateTime_p."); | |
507 | return NULL; | |
508 | } | |
509 | } | |
510 | { | |
511 | wxPy_BEGIN_ALLOW_THREADS; | |
512 | _result = (bool )wxCalendarCtrl_SetLowerDateLimit(_arg0,*_arg1); | |
513 | ||
514 | wxPy_END_ALLOW_THREADS; | |
515 | if (PyErr_Occurred()) return NULL; | |
516 | } _resultobj = Py_BuildValue("i",_result); | |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | #define wxCalendarCtrl_GetLowerDateLimit(_swigobj) (_swigobj->GetLowerDateLimit()) | |
521 | static PyObject *_wrap_wxCalendarCtrl_GetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
522 | PyObject * _resultobj; | |
523 | wxDateTime * _result; | |
524 | wxCalendarCtrl * _arg0; | |
525 | PyObject * _argo0 = 0; | |
526 | char *_kwnames[] = { "self", NULL }; | |
527 | char _ptemp[128]; | |
528 | ||
529 | self = self; | |
530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetLowerDateLimit",_kwnames,&_argo0)) | |
531 | return NULL; | |
532 | if (_argo0) { | |
533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetLowerDateLimit. Expected _wxCalendarCtrl_p."); | |
536 | return NULL; | |
537 | } | |
538 | } | |
539 | { | |
540 | wxPy_BEGIN_ALLOW_THREADS; | |
541 | const wxDateTime & _result_ref = wxCalendarCtrl_GetLowerDateLimit(_arg0); | |
542 | _result = (wxDateTime *) &_result_ref; | |
543 | ||
544 | wxPy_END_ALLOW_THREADS; | |
545 | if (PyErr_Occurred()) return NULL; | |
546 | } if (_result) { | |
547 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
548 | _resultobj = Py_BuildValue("s",_ptemp); | |
549 | } else { | |
550 | Py_INCREF(Py_None); | |
551 | _resultobj = Py_None; | |
552 | } | |
553 | return _resultobj; | |
554 | } | |
555 | ||
556 | #define wxCalendarCtrl_SetUpperDateLimit(_swigobj,_swigarg0) (_swigobj->SetUpperDateLimit(_swigarg0)) | |
557 | static PyObject *_wrap_wxCalendarCtrl_SetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
558 | PyObject * _resultobj; | |
559 | bool _result; | |
560 | wxCalendarCtrl * _arg0; | |
561 | wxDateTime * _arg1 = (wxDateTime *) &wxDefaultDateTime; | |
562 | PyObject * _argo0 = 0; | |
563 | PyObject * _argo1 = 0; | |
564 | char *_kwnames[] = { "self","date", NULL }; | |
565 | ||
566 | self = self; | |
567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxCalendarCtrl_SetUpperDateLimit",_kwnames,&_argo0,&_argo1)) | |
568 | return NULL; | |
569 | if (_argo0) { | |
570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetUpperDateLimit. Expected _wxCalendarCtrl_p."); | |
573 | return NULL; | |
574 | } | |
575 | } | |
576 | if (_argo1) { | |
577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetUpperDateLimit. Expected _wxDateTime_p."); | |
580 | return NULL; | |
581 | } | |
582 | } | |
583 | { | |
584 | wxPy_BEGIN_ALLOW_THREADS; | |
585 | _result = (bool )wxCalendarCtrl_SetUpperDateLimit(_arg0,*_arg1); | |
586 | ||
587 | wxPy_END_ALLOW_THREADS; | |
588 | if (PyErr_Occurred()) return NULL; | |
589 | } _resultobj = Py_BuildValue("i",_result); | |
590 | return _resultobj; | |
591 | } | |
592 | ||
593 | #define wxCalendarCtrl_GetUpperDateLimit(_swigobj) (_swigobj->GetUpperDateLimit()) | |
594 | static PyObject *_wrap_wxCalendarCtrl_GetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
595 | PyObject * _resultobj; | |
596 | wxDateTime * _result; | |
597 | wxCalendarCtrl * _arg0; | |
598 | PyObject * _argo0 = 0; | |
599 | char *_kwnames[] = { "self", NULL }; | |
600 | char _ptemp[128]; | |
601 | ||
602 | self = self; | |
603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetUpperDateLimit",_kwnames,&_argo0)) | |
604 | return NULL; | |
605 | if (_argo0) { | |
606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetUpperDateLimit. Expected _wxCalendarCtrl_p."); | |
609 | return NULL; | |
610 | } | |
611 | } | |
612 | { | |
613 | wxPy_BEGIN_ALLOW_THREADS; | |
614 | const wxDateTime & _result_ref = wxCalendarCtrl_GetUpperDateLimit(_arg0); | |
615 | _result = (wxDateTime *) &_result_ref; | |
616 | ||
617 | wxPy_END_ALLOW_THREADS; | |
618 | if (PyErr_Occurred()) return NULL; | |
619 | } if (_result) { | |
620 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
621 | _resultobj = Py_BuildValue("s",_ptemp); | |
622 | } else { | |
623 | Py_INCREF(Py_None); | |
624 | _resultobj = Py_None; | |
625 | } | |
626 | return _resultobj; | |
627 | } | |
628 | ||
629 | #define wxCalendarCtrl_SetDateRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDateRange(_swigarg0,_swigarg1)) | |
630 | static PyObject *_wrap_wxCalendarCtrl_SetDateRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
631 | PyObject * _resultobj; | |
632 | bool _result; | |
633 | wxCalendarCtrl * _arg0; | |
634 | wxDateTime * _arg1 = (wxDateTime *) &wxDefaultDateTime; | |
635 | wxDateTime * _arg2 = (wxDateTime *) &wxDefaultDateTime; | |
636 | PyObject * _argo0 = 0; | |
637 | PyObject * _argo1 = 0; | |
638 | PyObject * _argo2 = 0; | |
639 | char *_kwnames[] = { "self","lowerdate","upperdate", NULL }; | |
640 | ||
641 | self = self; | |
642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxCalendarCtrl_SetDateRange",_kwnames,&_argo0,&_argo1,&_argo2)) | |
643 | return NULL; | |
644 | if (_argo0) { | |
645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDateRange. Expected _wxCalendarCtrl_p."); | |
648 | return NULL; | |
649 | } | |
650 | } | |
651 | if (_argo1) { | |
652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDateRange. Expected _wxDateTime_p."); | |
655 | return NULL; | |
656 | } | |
657 | } | |
658 | if (_argo2) { | |
659 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
660 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetDateRange. Expected _wxDateTime_p."); | |
662 | return NULL; | |
663 | } | |
664 | } | |
665 | { | |
666 | wxPy_BEGIN_ALLOW_THREADS; | |
667 | _result = (bool )wxCalendarCtrl_SetDateRange(_arg0,*_arg1,*_arg2); | |
668 | ||
669 | wxPy_END_ALLOW_THREADS; | |
670 | if (PyErr_Occurred()) return NULL; | |
671 | } _resultobj = Py_BuildValue("i",_result); | |
672 | return _resultobj; | |
673 | } | |
674 | ||
f6bcfd97 BP |
675 | #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0)) |
676 | static PyObject *_wrap_wxCalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
677 | PyObject * _resultobj; | |
678 | wxCalendarCtrl * _arg0; | |
679 | bool _arg1 = (bool ) TRUE; | |
680 | PyObject * _argo0 = 0; | |
681 | int tempbool1 = (int) TRUE; | |
682 | char *_kwnames[] = { "self","enable", NULL }; | |
683 | ||
684 | self = self; | |
685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames,&_argo0,&tempbool1)) | |
686 | return NULL; | |
687 | if (_argo0) { | |
688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p."); | |
691 | return NULL; | |
692 | } | |
693 | } | |
694 | _arg1 = (bool ) tempbool1; | |
695 | { | |
696 | wxPy_BEGIN_ALLOW_THREADS; | |
697 | wxCalendarCtrl_EnableYearChange(_arg0,_arg1); | |
698 | ||
699 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 700 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
701 | } Py_INCREF(Py_None); |
702 | _resultobj = Py_None; | |
703 | return _resultobj; | |
704 | } | |
705 | ||
706 | #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0)) | |
707 | static PyObject *_wrap_wxCalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
708 | PyObject * _resultobj; | |
709 | wxCalendarCtrl * _arg0; | |
710 | bool _arg1 = (bool ) TRUE; | |
711 | PyObject * _argo0 = 0; | |
712 | int tempbool1 = (int) TRUE; | |
713 | char *_kwnames[] = { "self","enable", NULL }; | |
714 | ||
715 | self = self; | |
716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames,&_argo0,&tempbool1)) | |
717 | return NULL; | |
718 | if (_argo0) { | |
719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p."); | |
722 | return NULL; | |
723 | } | |
724 | } | |
725 | _arg1 = (bool ) tempbool1; | |
726 | { | |
727 | wxPy_BEGIN_ALLOW_THREADS; | |
728 | wxCalendarCtrl_EnableMonthChange(_arg0,_arg1); | |
729 | ||
730 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 731 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
732 | } Py_INCREF(Py_None); |
733 | _resultobj = Py_None; | |
734 | return _resultobj; | |
735 | } | |
736 | ||
737 | #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0)) | |
738 | static PyObject *_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
739 | PyObject * _resultobj; | |
740 | wxCalendarCtrl * _arg0; | |
741 | bool _arg1 = (bool ) TRUE; | |
742 | PyObject * _argo0 = 0; | |
743 | int tempbool1 = (int) TRUE; | |
744 | char *_kwnames[] = { "self","display", NULL }; | |
745 | ||
746 | self = self; | |
747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames,&_argo0,&tempbool1)) | |
748 | return NULL; | |
749 | if (_argo0) { | |
750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p."); | |
753 | return NULL; | |
754 | } | |
755 | } | |
756 | _arg1 = (bool ) tempbool1; | |
757 | { | |
758 | wxPy_BEGIN_ALLOW_THREADS; | |
759 | wxCalendarCtrl_EnableHolidayDisplay(_arg0,_arg1); | |
760 | ||
761 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 762 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
763 | } Py_INCREF(Py_None); |
764 | _resultobj = Py_None; | |
765 | return _resultobj; | |
766 | } | |
767 | ||
768 | #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1)) | |
769 | static PyObject *_wrap_wxCalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
770 | PyObject * _resultobj; | |
771 | wxCalendarCtrl * _arg0; | |
772 | wxColour * _arg1; | |
773 | wxColour * _arg2; | |
774 | PyObject * _argo0 = 0; | |
775 | wxColour temp; | |
776 | PyObject * _obj1 = 0; | |
777 | wxColour temp0; | |
778 | PyObject * _obj2 = 0; | |
779 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
780 | ||
781 | self = self; | |
782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
783 | return NULL; | |
784 | if (_argo0) { | |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p."); | |
788 | return NULL; | |
789 | } | |
790 | } | |
791 | { | |
792 | _arg1 = &temp; | |
793 | if (! wxColour_helper(_obj1, &_arg1)) | |
794 | return NULL; | |
795 | } | |
796 | { | |
797 | _arg2 = &temp0; | |
798 | if (! wxColour_helper(_obj2, &_arg2)) | |
799 | return NULL; | |
800 | } | |
801 | { | |
802 | wxPy_BEGIN_ALLOW_THREADS; | |
803 | wxCalendarCtrl_SetHeaderColours(_arg0,*_arg1,*_arg2); | |
804 | ||
805 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 806 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
807 | } Py_INCREF(Py_None); |
808 | _resultobj = Py_None; | |
809 | return _resultobj; | |
810 | } | |
811 | ||
812 | #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg()) | |
813 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
814 | PyObject * _resultobj; | |
815 | wxColour * _result; | |
816 | wxCalendarCtrl * _arg0; | |
817 | PyObject * _argo0 = 0; | |
818 | char *_kwnames[] = { "self", NULL }; | |
819 | char _ptemp[128]; | |
820 | ||
821 | self = self; | |
822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames,&_argo0)) | |
823 | return NULL; | |
824 | if (_argo0) { | |
825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p."); | |
828 | return NULL; | |
829 | } | |
830 | } | |
831 | { | |
832 | wxPy_BEGIN_ALLOW_THREADS; | |
833 | const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourFg(_arg0); | |
834 | _result = (wxColour *) &_result_ref; | |
835 | ||
836 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 837 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
838 | } if (_result) { |
839 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
840 | _resultobj = Py_BuildValue("s",_ptemp); | |
841 | } else { | |
842 | Py_INCREF(Py_None); | |
843 | _resultobj = Py_None; | |
844 | } | |
845 | return _resultobj; | |
846 | } | |
847 | ||
848 | #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg()) | |
849 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
850 | PyObject * _resultobj; | |
851 | wxColour * _result; | |
852 | wxCalendarCtrl * _arg0; | |
853 | PyObject * _argo0 = 0; | |
854 | char *_kwnames[] = { "self", NULL }; | |
855 | char _ptemp[128]; | |
856 | ||
857 | self = self; | |
858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames,&_argo0)) | |
859 | return NULL; | |
860 | if (_argo0) { | |
861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p."); | |
864 | return NULL; | |
865 | } | |
866 | } | |
867 | { | |
868 | wxPy_BEGIN_ALLOW_THREADS; | |
869 | const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourBg(_arg0); | |
870 | _result = (wxColour *) &_result_ref; | |
871 | ||
872 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 873 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
874 | } if (_result) { |
875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
876 | _resultobj = Py_BuildValue("s",_ptemp); | |
877 | } else { | |
878 | Py_INCREF(Py_None); | |
879 | _resultobj = Py_None; | |
880 | } | |
881 | return _resultobj; | |
882 | } | |
883 | ||
884 | #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1)) | |
885 | static PyObject *_wrap_wxCalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
886 | PyObject * _resultobj; | |
887 | wxCalendarCtrl * _arg0; | |
888 | wxColour * _arg1; | |
889 | wxColour * _arg2; | |
890 | PyObject * _argo0 = 0; | |
891 | wxColour temp; | |
892 | PyObject * _obj1 = 0; | |
893 | wxColour temp0; | |
894 | PyObject * _obj2 = 0; | |
895 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
896 | ||
897 | self = self; | |
898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
899 | return NULL; | |
900 | if (_argo0) { | |
901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p."); | |
904 | return NULL; | |
905 | } | |
906 | } | |
907 | { | |
908 | _arg1 = &temp; | |
909 | if (! wxColour_helper(_obj1, &_arg1)) | |
910 | return NULL; | |
911 | } | |
912 | { | |
913 | _arg2 = &temp0; | |
914 | if (! wxColour_helper(_obj2, &_arg2)) | |
915 | return NULL; | |
916 | } | |
917 | { | |
918 | wxPy_BEGIN_ALLOW_THREADS; | |
919 | wxCalendarCtrl_SetHighlightColours(_arg0,*_arg1,*_arg2); | |
920 | ||
921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 922 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
923 | } Py_INCREF(Py_None); |
924 | _resultobj = Py_None; | |
925 | return _resultobj; | |
926 | } | |
927 | ||
928 | #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg()) | |
929 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
930 | PyObject * _resultobj; | |
931 | wxColour * _result; | |
932 | wxCalendarCtrl * _arg0; | |
933 | PyObject * _argo0 = 0; | |
934 | char *_kwnames[] = { "self", NULL }; | |
935 | char _ptemp[128]; | |
936 | ||
937 | self = self; | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames,&_argo0)) | |
939 | return NULL; | |
940 | if (_argo0) { | |
941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p."); | |
944 | return NULL; | |
945 | } | |
946 | } | |
947 | { | |
948 | wxPy_BEGIN_ALLOW_THREADS; | |
949 | const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourFg(_arg0); | |
950 | _result = (wxColour *) &_result_ref; | |
951 | ||
952 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 953 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
954 | } if (_result) { |
955 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
956 | _resultobj = Py_BuildValue("s",_ptemp); | |
957 | } else { | |
958 | Py_INCREF(Py_None); | |
959 | _resultobj = Py_None; | |
960 | } | |
961 | return _resultobj; | |
962 | } | |
963 | ||
964 | #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg()) | |
965 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
966 | PyObject * _resultobj; | |
967 | wxColour * _result; | |
968 | wxCalendarCtrl * _arg0; | |
969 | PyObject * _argo0 = 0; | |
970 | char *_kwnames[] = { "self", NULL }; | |
971 | char _ptemp[128]; | |
972 | ||
973 | self = self; | |
974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames,&_argo0)) | |
975 | return NULL; | |
976 | if (_argo0) { | |
977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p."); | |
980 | return NULL; | |
981 | } | |
982 | } | |
983 | { | |
984 | wxPy_BEGIN_ALLOW_THREADS; | |
985 | const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourBg(_arg0); | |
986 | _result = (wxColour *) &_result_ref; | |
987 | ||
988 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 989 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
990 | } if (_result) { |
991 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
992 | _resultobj = Py_BuildValue("s",_ptemp); | |
993 | } else { | |
994 | Py_INCREF(Py_None); | |
995 | _resultobj = Py_None; | |
996 | } | |
997 | return _resultobj; | |
998 | } | |
999 | ||
1000 | #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1)) | |
1001 | static PyObject *_wrap_wxCalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1002 | PyObject * _resultobj; | |
1003 | wxCalendarCtrl * _arg0; | |
1004 | wxColour * _arg1; | |
1005 | wxColour * _arg2; | |
1006 | PyObject * _argo0 = 0; | |
1007 | wxColour temp; | |
1008 | PyObject * _obj1 = 0; | |
1009 | wxColour temp0; | |
1010 | PyObject * _obj2 = 0; | |
1011 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1012 | ||
1013 | self = self; | |
1014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1015 | return NULL; | |
1016 | if (_argo0) { | |
1017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p."); | |
1020 | return NULL; | |
1021 | } | |
1022 | } | |
1023 | { | |
1024 | _arg1 = &temp; | |
1025 | if (! wxColour_helper(_obj1, &_arg1)) | |
1026 | return NULL; | |
1027 | } | |
1028 | { | |
1029 | _arg2 = &temp0; | |
1030 | if (! wxColour_helper(_obj2, &_arg2)) | |
1031 | return NULL; | |
1032 | } | |
1033 | { | |
1034 | wxPy_BEGIN_ALLOW_THREADS; | |
1035 | wxCalendarCtrl_SetHolidayColours(_arg0,*_arg1,*_arg2); | |
1036 | ||
1037 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1038 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1039 | } Py_INCREF(Py_None); |
1040 | _resultobj = Py_None; | |
1041 | return _resultobj; | |
1042 | } | |
1043 | ||
1044 | #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg()) | |
1045 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1046 | PyObject * _resultobj; | |
1047 | wxColour * _result; | |
1048 | wxCalendarCtrl * _arg0; | |
1049 | PyObject * _argo0 = 0; | |
1050 | char *_kwnames[] = { "self", NULL }; | |
1051 | char _ptemp[128]; | |
1052 | ||
1053 | self = self; | |
1054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames,&_argo0)) | |
1055 | return NULL; | |
1056 | if (_argo0) { | |
1057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourFg. Expected _wxCalendarCtrl_p."); | |
1060 | return NULL; | |
1061 | } | |
1062 | } | |
1063 | { | |
1064 | wxPy_BEGIN_ALLOW_THREADS; | |
1065 | const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourFg(_arg0); | |
1066 | _result = (wxColour *) &_result_ref; | |
1067 | ||
1068 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1069 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1070 | } if (_result) { |
1071 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1072 | _resultobj = Py_BuildValue("s",_ptemp); | |
1073 | } else { | |
1074 | Py_INCREF(Py_None); | |
1075 | _resultobj = Py_None; | |
1076 | } | |
1077 | return _resultobj; | |
1078 | } | |
1079 | ||
1080 | #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg()) | |
1081 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1082 | PyObject * _resultobj; | |
1083 | wxColour * _result; | |
1084 | wxCalendarCtrl * _arg0; | |
1085 | PyObject * _argo0 = 0; | |
1086 | char *_kwnames[] = { "self", NULL }; | |
1087 | char _ptemp[128]; | |
1088 | ||
1089 | self = self; | |
1090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames,&_argo0)) | |
1091 | return NULL; | |
1092 | if (_argo0) { | |
1093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p."); | |
1096 | return NULL; | |
1097 | } | |
1098 | } | |
1099 | { | |
1100 | wxPy_BEGIN_ALLOW_THREADS; | |
1101 | const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourBg(_arg0); | |
1102 | _result = (wxColour *) &_result_ref; | |
1103 | ||
1104 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1105 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1106 | } if (_result) { |
1107 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1108 | _resultobj = Py_BuildValue("s",_ptemp); | |
1109 | } else { | |
1110 | Py_INCREF(Py_None); | |
1111 | _resultobj = Py_None; | |
1112 | } | |
1113 | return _resultobj; | |
1114 | } | |
1115 | ||
1116 | #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0)) | |
1117 | static PyObject *_wrap_wxCalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1118 | PyObject * _resultobj; | |
1119 | wxCalendarDateAttr * _result; | |
1120 | wxCalendarCtrl * _arg0; | |
1121 | size_t _arg1; | |
1122 | PyObject * _argo0 = 0; | |
1123 | char *_kwnames[] = { "self","day", NULL }; | |
1124 | char _ptemp[128]; | |
1125 | ||
1126 | self = self; | |
1127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_GetAttr",_kwnames,&_argo0,&_arg1)) | |
1128 | return NULL; | |
1129 | if (_argo0) { | |
1130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p."); | |
1133 | return NULL; | |
1134 | } | |
1135 | } | |
1136 | { | |
1137 | wxPy_BEGIN_ALLOW_THREADS; | |
1138 | _result = (wxCalendarDateAttr *)wxCalendarCtrl_GetAttr(_arg0,_arg1); | |
1139 | ||
1140 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1141 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1142 | } if (_result) { |
1143 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
1144 | _resultobj = Py_BuildValue("s",_ptemp); | |
1145 | } else { | |
1146 | Py_INCREF(Py_None); | |
1147 | _resultobj = Py_None; | |
1148 | } | |
1149 | return _resultobj; | |
1150 | } | |
1151 | ||
1152 | #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1)) | |
1153 | static PyObject *_wrap_wxCalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1154 | PyObject * _resultobj; | |
1155 | wxCalendarCtrl * _arg0; | |
1156 | size_t _arg1; | |
1157 | wxCalendarDateAttr * _arg2; | |
1158 | PyObject * _argo0 = 0; | |
1159 | PyObject * _argo2 = 0; | |
1160 | char *_kwnames[] = { "self","day","attr", NULL }; | |
1161 | ||
1162 | self = self; | |
1163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxCalendarCtrl_SetAttr",_kwnames,&_argo0,&_arg1,&_argo2)) | |
1164 | return NULL; | |
1165 | if (_argo0) { | |
1166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p."); | |
1169 | return NULL; | |
1170 | } | |
1171 | } | |
1172 | if (_argo2) { | |
1173 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1174 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCalendarDateAttr_p")) { | |
1175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p."); | |
1176 | return NULL; | |
1177 | } | |
1178 | } | |
1179 | { | |
1180 | wxPy_BEGIN_ALLOW_THREADS; | |
1181 | wxCalendarCtrl_SetAttr(_arg0,_arg1,_arg2); | |
1182 | ||
1183 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1184 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1185 | } Py_INCREF(Py_None); |
1186 | _resultobj = Py_None; | |
1187 | return _resultobj; | |
1188 | } | |
1189 | ||
1190 | #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0)) | |
1191 | static PyObject *_wrap_wxCalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1192 | PyObject * _resultobj; | |
1193 | wxCalendarCtrl * _arg0; | |
1194 | size_t _arg1; | |
1195 | PyObject * _argo0 = 0; | |
1196 | char *_kwnames[] = { "self","day", NULL }; | |
1197 | ||
1198 | self = self; | |
1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_SetHoliday",_kwnames,&_argo0,&_arg1)) | |
1200 | return NULL; | |
1201 | if (_argo0) { | |
1202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p."); | |
1205 | return NULL; | |
1206 | } | |
1207 | } | |
1208 | { | |
1209 | wxPy_BEGIN_ALLOW_THREADS; | |
1210 | wxCalendarCtrl_SetHoliday(_arg0,_arg1); | |
1211 | ||
1212 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1213 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1214 | } Py_INCREF(Py_None); |
1215 | _resultobj = Py_None; | |
1216 | return _resultobj; | |
1217 | } | |
1218 | ||
1219 | #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0)) | |
1220 | static PyObject *_wrap_wxCalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1221 | PyObject * _resultobj; | |
1222 | wxCalendarCtrl * _arg0; | |
1223 | size_t _arg1; | |
1224 | PyObject * _argo0 = 0; | |
1225 | char *_kwnames[] = { "self","day", NULL }; | |
1226 | ||
1227 | self = self; | |
1228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_ResetAttr",_kwnames,&_argo0,&_arg1)) | |
1229 | return NULL; | |
1230 | if (_argo0) { | |
1231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_ResetAttr. Expected _wxCalendarCtrl_p."); | |
1234 | return NULL; | |
1235 | } | |
1236 | } | |
1237 | { | |
1238 | wxPy_BEGIN_ALLOW_THREADS; | |
1239 | wxCalendarCtrl_ResetAttr(_arg0,_arg1); | |
1240 | ||
1241 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1242 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1243 | } Py_INCREF(Py_None); |
1244 | _resultobj = Py_None; | |
1245 | return _resultobj; | |
1246 | } | |
1247 | ||
1248 | #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2)) | |
1249 | static PyObject *_wrap_wxCalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1250 | PyObject * _resultobj; | |
ab11ebfa | 1251 | wxCalendarHitTestResult * _result; |
f6bcfd97 BP |
1252 | wxCalendarCtrl * _arg0; |
1253 | wxPoint * _arg1; | |
1254 | wxDateTime * _arg2 = (wxDateTime *) NULL; | |
1255 | wxDateTime::WeekDay * _arg3 = (wxDateTime::WeekDay *) NULL; | |
1256 | PyObject * _argo0 = 0; | |
1257 | wxPoint temp; | |
1258 | PyObject * _obj1 = 0; | |
1259 | PyObject * _argo2 = 0; | |
1260 | PyObject * _argo3 = 0; | |
1261 | char *_kwnames[] = { "self","pos","date","wd", NULL }; | |
ab11ebfa | 1262 | char _ptemp[128]; |
f6bcfd97 BP |
1263 | |
1264 | self = self; | |
1265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxCalendarCtrl_HitTest",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
1266 | return NULL; | |
1267 | if (_argo0) { | |
1268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p."); | |
1271 | return NULL; | |
1272 | } | |
1273 | } | |
1274 | { | |
1275 | _arg1 = &temp; | |
1276 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1277 | return NULL; | |
1278 | } | |
1279 | if (_argo2) { | |
1280 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1281 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
1282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p."); | |
1283 | return NULL; | |
1284 | } | |
1285 | } | |
1286 | if (_argo3) { | |
1287 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1288 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime::WeekDay_p")) { | |
1289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p."); | |
1290 | return NULL; | |
1291 | } | |
1292 | } | |
1293 | { | |
1294 | wxPy_BEGIN_ALLOW_THREADS; | |
ab11ebfa RD |
1295 | _result = new wxCalendarHitTestResult (wxCalendarCtrl_HitTest(_arg0,*_arg1,_arg2,_arg3)); |
1296 | ||
1297 | wxPy_END_ALLOW_THREADS; | |
1298 | if (PyErr_Occurred()) return NULL; | |
1299 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxCalendarHitTestResult_p"); | |
1300 | _resultobj = Py_BuildValue("s",_ptemp); | |
1301 | return _resultobj; | |
1302 | } | |
1303 | ||
1304 | #define wxCalendarCtrl_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1305 | static PyObject *_wrap_wxCalendarCtrl_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1306 | PyObject * _resultobj; | |
1307 | bool _result; | |
1308 | wxCalendarCtrl * _arg0; | |
1309 | bool _arg1 = (bool ) TRUE; | |
1310 | PyObject * _argo0 = 0; | |
1311 | int tempbool1 = (int) TRUE; | |
1312 | char *_kwnames[] = { "self","enable", NULL }; | |
1313 | ||
1314 | self = self; | |
1315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_Enable",_kwnames,&_argo0,&tempbool1)) | |
1316 | return NULL; | |
1317 | if (_argo0) { | |
1318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_Enable. Expected _wxCalendarCtrl_p."); | |
1321 | return NULL; | |
1322 | } | |
1323 | } | |
1324 | _arg1 = (bool ) tempbool1; | |
1325 | { | |
1326 | wxPy_BEGIN_ALLOW_THREADS; | |
1327 | _result = (bool )wxCalendarCtrl_Enable(_arg0,_arg1); | |
1328 | ||
1329 | wxPy_END_ALLOW_THREADS; | |
1330 | if (PyErr_Occurred()) return NULL; | |
1331 | } _resultobj = Py_BuildValue("i",_result); | |
1332 | return _resultobj; | |
1333 | } | |
1334 | ||
1335 | #define wxCalendarCtrl_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
1336 | static PyObject *_wrap_wxCalendarCtrl_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1337 | PyObject * _resultobj; | |
1338 | bool _result; | |
1339 | wxCalendarCtrl * _arg0; | |
1340 | bool _arg1 = (bool ) TRUE; | |
1341 | PyObject * _argo0 = 0; | |
1342 | int tempbool1 = (int) TRUE; | |
1343 | char *_kwnames[] = { "self","show", NULL }; | |
1344 | ||
1345 | self = self; | |
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_Show",_kwnames,&_argo0,&tempbool1)) | |
1347 | return NULL; | |
1348 | if (_argo0) { | |
1349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_Show. Expected _wxCalendarCtrl_p."); | |
1352 | return NULL; | |
1353 | } | |
1354 | } | |
1355 | _arg1 = (bool ) tempbool1; | |
1356 | { | |
1357 | wxPy_BEGIN_ALLOW_THREADS; | |
1358 | _result = (bool )wxCalendarCtrl_Show(_arg0,_arg1); | |
f6bcfd97 BP |
1359 | |
1360 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1361 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1362 | } _resultobj = Py_BuildValue("i",_result); |
1363 | return _resultobj; | |
1364 | } | |
1365 | ||
1366 | static PyMethodDef calendarcMethods[] = { | |
ab11ebfa RD |
1367 | { "wxCalendarCtrl_Show", (PyCFunction) _wrap_wxCalendarCtrl_Show, METH_VARARGS | METH_KEYWORDS }, |
1368 | { "wxCalendarCtrl_Enable", (PyCFunction) _wrap_wxCalendarCtrl_Enable, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1369 | { "wxCalendarCtrl_HitTest", (PyCFunction) _wrap_wxCalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
1370 | { "wxCalendarCtrl_ResetAttr", (PyCFunction) _wrap_wxCalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1371 | { "wxCalendarCtrl_SetHoliday", (PyCFunction) _wrap_wxCalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1372 | { "wxCalendarCtrl_SetAttr", (PyCFunction) _wrap_wxCalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1373 | { "wxCalendarCtrl_GetAttr", (PyCFunction) _wrap_wxCalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1374 | { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1375 | { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1376 | { "wxCalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS }, | |
1377 | { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1378 | { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1379 | { "wxCalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS }, | |
1380 | { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1381 | { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1382 | { "wxCalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS }, | |
1383 | { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_wxCalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS }, | |
1384 | { "wxCalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS }, | |
1385 | { "wxCalendarCtrl_EnableYearChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS }, | |
ab11ebfa RD |
1386 | { "wxCalendarCtrl_SetDateRange", (PyCFunction) _wrap_wxCalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS }, |
1387 | { "wxCalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1388 | { "wxCalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1389 | { "wxCalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1390 | { "wxCalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1391 | { "wxCalendarCtrl_GetDate", (PyCFunction) _wrap_wxCalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS }, |
1392 | { "wxCalendarCtrl_SetDate", (PyCFunction) _wrap_wxCalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
1393 | { "wxCalendarCtrl_Create", (PyCFunction) _wrap_wxCalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
1394 | { "new_wxPreCalendarCtrl", (PyCFunction) _wrap_new_wxPreCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1395 | { "new_wxCalendarCtrl", (PyCFunction) _wrap_new_wxCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, |
1396 | { "wxCalendarEvent_GetWeekDay", (PyCFunction) _wrap_wxCalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
1397 | { "wxCalendarEvent_GetDate", (PyCFunction) _wrap_wxCalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1398 | { "new_wxCalendarEvent", (PyCFunction) _wrap_new_wxCalendarEvent, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1399 | { NULL, NULL } |
1400 | }; | |
1401 | #ifdef __cplusplus | |
1402 | } | |
1403 | #endif | |
1404 | /* | |
1405 | * This table is used by the pointer type-checker | |
1406 | */ | |
1407 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
f6bcfd97 | 1408 | { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent}, |
f6bcfd97 | 1409 | { "_signed_long","_long",0}, |
f6bcfd97 BP |
1410 | { "_wxPrintQuality","_wxCoord",0}, |
1411 | { "_wxPrintQuality","_int",0}, | |
1412 | { "_wxPrintQuality","_signed_int",0}, | |
1413 | { "_wxPrintQuality","_unsigned_int",0}, | |
1414 | { "_wxPrintQuality","_wxWindowID",0}, | |
1415 | { "_wxPrintQuality","_uint",0}, | |
1416 | { "_wxPrintQuality","_EBool",0}, | |
1417 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 1418 | { "_wxPrintQuality","_time_t",0}, |
f6bcfd97 | 1419 | { "_byte","_unsigned_char",0}, |
f6bcfd97 BP |
1420 | { "_long","_unsigned_long",0}, |
1421 | { "_long","_signed_long",0}, | |
f6bcfd97 BP |
1422 | { "_size_t","_wxCoord",0}, |
1423 | { "_size_t","_wxPrintQuality",0}, | |
c368d904 | 1424 | { "_size_t","_time_t",0}, |
f6bcfd97 BP |
1425 | { "_size_t","_unsigned_int",0}, |
1426 | { "_size_t","_int",0}, | |
1427 | { "_size_t","_wxWindowID",0}, | |
1428 | { "_size_t","_uint",0}, | |
f6bcfd97 BP |
1429 | { "_uint","_wxCoord",0}, |
1430 | { "_uint","_wxPrintQuality",0}, | |
c368d904 | 1431 | { "_uint","_time_t",0}, |
f6bcfd97 BP |
1432 | { "_uint","_size_t",0}, |
1433 | { "_uint","_unsigned_int",0}, | |
1434 | { "_uint","_int",0}, | |
1435 | { "_uint","_wxWindowID",0}, | |
1436 | { "_wxChar","_char",0}, | |
f6bcfd97 | 1437 | { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent}, |
f6bcfd97 | 1438 | { "_char","_wxChar",0}, |
cdf14688 | 1439 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
f6bcfd97 BP |
1440 | { "_EBool","_wxCoord",0}, |
1441 | { "_EBool","_wxPrintQuality",0}, | |
1442 | { "_EBool","_signed_int",0}, | |
1443 | { "_EBool","_int",0}, | |
1444 | { "_EBool","_wxWindowID",0}, | |
f6bcfd97 | 1445 | { "_unsigned_long","_long",0}, |
cdf14688 | 1446 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
f6bcfd97 BP |
1447 | { "_signed_int","_wxCoord",0}, |
1448 | { "_signed_int","_wxPrintQuality",0}, | |
1449 | { "_signed_int","_EBool",0}, | |
1450 | { "_signed_int","_wxWindowID",0}, | |
1451 | { "_signed_int","_int",0}, | |
f6bcfd97 BP |
1452 | { "_WXTYPE","_wxDateTime_t",0}, |
1453 | { "_WXTYPE","_short",0}, | |
1454 | { "_WXTYPE","_signed_short",0}, | |
1455 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 BP |
1456 | { "_unsigned_short","_wxDateTime_t",0}, |
1457 | { "_unsigned_short","_WXTYPE",0}, | |
1458 | { "_unsigned_short","_short",0}, | |
9416aa89 | 1459 | { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject}, |
9416aa89 | 1460 | { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject}, |
f6bcfd97 BP |
1461 | { "_signed_short","_WXTYPE",0}, |
1462 | { "_signed_short","_short",0}, | |
f6bcfd97 | 1463 | { "_unsigned_char","_byte",0}, |
f6bcfd97 | 1464 | { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl}, |
f6bcfd97 BP |
1465 | { "_unsigned_int","_wxCoord",0}, |
1466 | { "_unsigned_int","_wxPrintQuality",0}, | |
c368d904 | 1467 | { "_unsigned_int","_time_t",0}, |
f6bcfd97 BP |
1468 | { "_unsigned_int","_size_t",0}, |
1469 | { "_unsigned_int","_uint",0}, | |
1470 | { "_unsigned_int","_wxWindowID",0}, | |
1471 | { "_unsigned_int","_int",0}, | |
f6bcfd97 BP |
1472 | { "_short","_wxDateTime_t",0}, |
1473 | { "_short","_WXTYPE",0}, | |
1474 | { "_short","_unsigned_short",0}, | |
1475 | { "_short","_signed_short",0}, | |
f6bcfd97 BP |
1476 | { "_wxWindowID","_wxCoord",0}, |
1477 | { "_wxWindowID","_wxPrintQuality",0}, | |
c368d904 | 1478 | { "_wxWindowID","_time_t",0}, |
f6bcfd97 BP |
1479 | { "_wxWindowID","_size_t",0}, |
1480 | { "_wxWindowID","_EBool",0}, | |
1481 | { "_wxWindowID","_uint",0}, | |
1482 | { "_wxWindowID","_int",0}, | |
1483 | { "_wxWindowID","_signed_int",0}, | |
1484 | { "_wxWindowID","_unsigned_int",0}, | |
f6bcfd97 BP |
1485 | { "_int","_wxCoord",0}, |
1486 | { "_int","_wxPrintQuality",0}, | |
c368d904 | 1487 | { "_int","_time_t",0}, |
f6bcfd97 BP |
1488 | { "_int","_size_t",0}, |
1489 | { "_int","_EBool",0}, | |
1490 | { "_int","_uint",0}, | |
1491 | { "_int","_wxWindowID",0}, | |
1492 | { "_int","_unsigned_int",0}, | |
1493 | { "_int","_signed_int",0}, | |
f6bcfd97 BP |
1494 | { "_wxDateTime_t","_unsigned_short",0}, |
1495 | { "_wxDateTime_t","_short",0}, | |
1496 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
1497 | { "_time_t","_wxCoord",0}, |
1498 | { "_time_t","_wxPrintQuality",0}, | |
1499 | { "_time_t","_unsigned_int",0}, | |
1500 | { "_time_t","_int",0}, | |
1501 | { "_time_t","_wxWindowID",0}, | |
1502 | { "_time_t","_uint",0}, | |
1503 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
1504 | { "_wxCoord","_int",0}, |
1505 | { "_wxCoord","_signed_int",0}, | |
1506 | { "_wxCoord","_unsigned_int",0}, | |
1507 | { "_wxCoord","_wxWindowID",0}, | |
1508 | { "_wxCoord","_uint",0}, | |
1509 | { "_wxCoord","_EBool",0}, | |
1510 | { "_wxCoord","_size_t",0}, | |
c368d904 | 1511 | { "_wxCoord","_time_t",0}, |
f6bcfd97 | 1512 | { "_wxCoord","_wxPrintQuality",0}, |
f6bcfd97 | 1513 | { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler}, |
f6bcfd97 | 1514 | { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow}, |
f6bcfd97 BP |
1515 | {0,0,0}}; |
1516 | ||
1517 | static PyObject *SWIG_globals; | |
1518 | #ifdef __cplusplus | |
1519 | extern "C" | |
1520 | #endif | |
1521 | SWIGEXPORT(void) initcalendarc() { | |
1522 | PyObject *m, *d; | |
1523 | SWIG_globals = SWIG_newvarlink(); | |
1524 | m = Py_InitModule("calendarc", calendarcMethods); | |
1525 | d = PyModule_GetDict(m); | |
1526 | PyDict_SetItemString(d,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST)); | |
1527 | PyDict_SetItemString(d,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST)); | |
1528 | PyDict_SetItemString(d,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS)); | |
1529 | PyDict_SetItemString(d,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE)); | |
1530 | PyDict_SetItemString(d,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE)); | |
ab11ebfa RD |
1531 | PyDict_SetItemString(d,"wxCAL_SEQUENTIAL_MONTH_SELECTION", PyInt_FromLong((long) wxCAL_SEQUENTIAL_MONTH_SELECTION)); |
1532 | PyDict_SetItemString(d,"wxCAL_SHOW_SURROUNDING_WEEKS", PyInt_FromLong((long) wxCAL_SHOW_SURROUNDING_WEEKS)); | |
f6bcfd97 BP |
1533 | PyDict_SetItemString(d,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE)); |
1534 | PyDict_SetItemString(d,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER)); | |
1535 | PyDict_SetItemString(d,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY)); | |
f6bcfd97 BP |
1536 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED)); |
1537 | PyDict_SetItemString(d,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED)); | |
1538 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED)); | |
1539 | PyDict_SetItemString(d,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED)); | |
1540 | PyDict_SetItemString(d,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED)); | |
1541 | PyDict_SetItemString(d,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED)); | |
e508a2b6 RD |
1542 | |
1543 | wxClassInfo::CleanUpClasses(); | |
1544 | wxClassInfo::InitializeClasses(); | |
f6bcfd97 BP |
1545 | { |
1546 | int i; | |
1547 | for (i = 0; _swig_mapping[i].n1; i++) | |
1548 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1549 | } | |
1550 | } |