]>
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 | } | |
f6bcfd97 BP |
87 | #ifdef __cplusplus |
88 | extern "C" { | |
89 | #endif | |
eedf876b RD |
90 | #define new_wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
91 | static PyObject *_wrap_new_wxCalendarDateAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
92 | PyObject * _resultobj; | |
93 | wxCalendarDateAttr * _result; | |
94 | wxColour * _arg0; | |
95 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
96 | wxColour * _arg2 = (wxColour *) &wxNullColour; | |
97 | wxFont * _arg3 = (wxFont *) &wxNullFont; | |
98 | wxCalendarDateBorder _arg4 = (wxCalendarDateBorder ) (wxCAL_BORDER_NONE); | |
99 | wxColour temp; | |
100 | PyObject * _obj0 = 0; | |
101 | wxColour temp0; | |
102 | PyObject * _obj1 = 0; | |
103 | wxColour temp1; | |
104 | PyObject * _obj2 = 0; | |
105 | PyObject * _argo3 = 0; | |
106 | char *_kwnames[] = { "colText","colBack","colBorder","font","border", NULL }; | |
107 | char _ptemp[128]; | |
108 | ||
109 | self = self; | |
110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOi:new_wxCalendarDateAttr",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4)) | |
111 | return NULL; | |
112 | { | |
113 | _arg0 = &temp; | |
114 | if (! wxColour_helper(_obj0, &_arg0)) | |
115 | return NULL; | |
116 | } | |
117 | if (_obj1) | |
118 | { | |
119 | _arg1 = &temp0; | |
120 | if (! wxColour_helper(_obj1, &_arg1)) | |
121 | return NULL; | |
122 | } | |
123 | if (_obj2) | |
124 | { | |
125 | _arg2 = &temp1; | |
126 | if (! wxColour_helper(_obj2, &_arg2)) | |
127 | return NULL; | |
128 | } | |
129 | if (_argo3) { | |
130 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
131 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxFont_p")) { | |
132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxCalendarDateAttr. Expected _wxFont_p."); | |
133 | return NULL; | |
134 | } | |
135 | } | |
136 | { | |
4268f798 | 137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 138 | _result = (wxCalendarDateAttr *)new_wxCalendarDateAttr(*_arg0,*_arg1,*_arg2,*_arg3,_arg4); |
eedf876b | 139 | |
4268f798 | 140 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
141 | if (PyErr_Occurred()) return NULL; |
142 | } if (_result) { | |
143 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
144 | _resultobj = Py_BuildValue("s",_ptemp); | |
145 | } else { | |
146 | Py_INCREF(Py_None); | |
147 | _resultobj = Py_None; | |
148 | } | |
149 | return _resultobj; | |
150 | } | |
151 | ||
152 | #define new_wxCalendarDateAttrBorder(_swigarg0,_swigarg1) (new wxCalendarDateAttr(_swigarg0,_swigarg1)) | |
153 | static PyObject *_wrap_new_wxCalendarDateAttrBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
154 | PyObject * _resultobj; | |
155 | wxCalendarDateAttr * _result; | |
156 | wxCalendarDateBorder _arg0; | |
157 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
158 | wxColour temp; | |
159 | PyObject * _obj1 = 0; | |
160 | char *_kwnames[] = { "border","colBorder", NULL }; | |
161 | char _ptemp[128]; | |
162 | ||
163 | self = self; | |
164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|O:new_wxCalendarDateAttrBorder",_kwnames,&_arg0,&_obj1)) | |
165 | return NULL; | |
166 | if (_obj1) | |
167 | { | |
168 | _arg1 = &temp; | |
169 | if (! wxColour_helper(_obj1, &_arg1)) | |
170 | return NULL; | |
171 | } | |
172 | { | |
4268f798 | 173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 174 | _result = (wxCalendarDateAttr *)new_wxCalendarDateAttrBorder(_arg0,*_arg1); |
eedf876b | 175 | |
4268f798 | 176 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
177 | if (PyErr_Occurred()) return NULL; |
178 | } if (_result) { | |
179 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
180 | _resultobj = Py_BuildValue("s",_ptemp); | |
181 | } else { | |
182 | Py_INCREF(Py_None); | |
183 | _resultobj = Py_None; | |
184 | } | |
185 | return _resultobj; | |
186 | } | |
187 | ||
188 | #define wxCalendarDateAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
189 | static PyObject *_wrap_wxCalendarDateAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
190 | PyObject * _resultobj; | |
191 | wxCalendarDateAttr * _arg0; | |
192 | wxColour * _arg1; | |
193 | PyObject * _argo0 = 0; | |
194 | wxColour temp; | |
195 | PyObject * _obj1 = 0; | |
196 | char *_kwnames[] = { "self","colText", NULL }; | |
197 | ||
198 | self = self; | |
199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
200 | return NULL; | |
201 | if (_argo0) { | |
202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetTextColour. Expected _wxCalendarDateAttr_p."); | |
205 | return NULL; | |
206 | } | |
207 | } | |
208 | { | |
209 | _arg1 = &temp; | |
210 | if (! wxColour_helper(_obj1, &_arg1)) | |
211 | return NULL; | |
212 | } | |
213 | { | |
4268f798 | 214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 215 | wxCalendarDateAttr_SetTextColour(_arg0,*_arg1); |
eedf876b | 216 | |
4268f798 | 217 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
218 | if (PyErr_Occurred()) return NULL; |
219 | } Py_INCREF(Py_None); | |
220 | _resultobj = Py_None; | |
221 | return _resultobj; | |
222 | } | |
223 | ||
224 | #define wxCalendarDateAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
225 | static PyObject *_wrap_wxCalendarDateAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
226 | PyObject * _resultobj; | |
227 | wxCalendarDateAttr * _arg0; | |
228 | wxColour * _arg1; | |
229 | PyObject * _argo0 = 0; | |
230 | wxColour temp; | |
231 | PyObject * _obj1 = 0; | |
232 | char *_kwnames[] = { "self","colBack", NULL }; | |
233 | ||
234 | self = self; | |
235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
236 | return NULL; | |
237 | if (_argo0) { | |
238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBackgroundColour. Expected _wxCalendarDateAttr_p."); | |
241 | return NULL; | |
242 | } | |
243 | } | |
244 | { | |
245 | _arg1 = &temp; | |
246 | if (! wxColour_helper(_obj1, &_arg1)) | |
247 | return NULL; | |
248 | } | |
249 | { | |
4268f798 | 250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 251 | wxCalendarDateAttr_SetBackgroundColour(_arg0,*_arg1); |
eedf876b | 252 | |
4268f798 | 253 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
254 | if (PyErr_Occurred()) return NULL; |
255 | } Py_INCREF(Py_None); | |
256 | _resultobj = Py_None; | |
257 | return _resultobj; | |
258 | } | |
259 | ||
260 | #define wxCalendarDateAttr_SetBorderColour(_swigobj,_swigarg0) (_swigobj->SetBorderColour(_swigarg0)) | |
261 | static PyObject *_wrap_wxCalendarDateAttr_SetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
262 | PyObject * _resultobj; | |
263 | wxCalendarDateAttr * _arg0; | |
264 | wxColour * _arg1; | |
265 | PyObject * _argo0 = 0; | |
266 | wxColour temp; | |
267 | PyObject * _obj1 = 0; | |
268 | char *_kwnames[] = { "self","col", NULL }; | |
269 | ||
270 | self = self; | |
271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetBorderColour",_kwnames,&_argo0,&_obj1)) | |
272 | return NULL; | |
273 | if (_argo0) { | |
274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBorderColour. Expected _wxCalendarDateAttr_p."); | |
277 | return NULL; | |
278 | } | |
279 | } | |
280 | { | |
281 | _arg1 = &temp; | |
282 | if (! wxColour_helper(_obj1, &_arg1)) | |
283 | return NULL; | |
284 | } | |
285 | { | |
4268f798 | 286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 287 | wxCalendarDateAttr_SetBorderColour(_arg0,*_arg1); |
eedf876b | 288 | |
4268f798 | 289 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
290 | if (PyErr_Occurred()) return NULL; |
291 | } Py_INCREF(Py_None); | |
292 | _resultobj = Py_None; | |
293 | return _resultobj; | |
294 | } | |
295 | ||
296 | #define wxCalendarDateAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
297 | static PyObject *_wrap_wxCalendarDateAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
298 | PyObject * _resultobj; | |
299 | wxCalendarDateAttr * _arg0; | |
300 | wxFont * _arg1; | |
301 | PyObject * _argo0 = 0; | |
302 | PyObject * _argo1 = 0; | |
303 | char *_kwnames[] = { "self","font", NULL }; | |
304 | ||
305 | self = self; | |
306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
307 | return NULL; | |
308 | if (_argo0) { | |
309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetFont. Expected _wxCalendarDateAttr_p."); | |
312 | return NULL; | |
313 | } | |
314 | } | |
315 | if (_argo1) { | |
316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
317 | else 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 | { | |
4268f798 | 323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 324 | wxCalendarDateAttr_SetFont(_arg0,*_arg1); |
eedf876b | 325 | |
4268f798 | 326 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 353 | wxCalendarDateAttr_SetBorder(_arg0,_arg1); |
eedf876b | 354 | |
4268f798 | 355 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 384 | wxCalendarDateAttr_SetHoliday(_arg0,_arg1); |
eedf876b | 385 | |
4268f798 | 386 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 413 | _result = (bool )wxCalendarDateAttr_HasTextColour(_arg0); |
eedf876b | 414 | |
4268f798 | 415 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 441 | _result = (bool )wxCalendarDateAttr_HasBackgroundColour(_arg0); |
eedf876b | 442 | |
4268f798 | 443 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 469 | _result = (bool )wxCalendarDateAttr_HasBorderColour(_arg0); |
eedf876b | 470 | |
4268f798 | 471 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 497 | _result = (bool )wxCalendarDateAttr_HasFont(_arg0); |
eedf876b | 498 | |
4268f798 | 499 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 525 | _result = (bool )wxCalendarDateAttr_HasBorder(_arg0); |
eedf876b | 526 | |
4268f798 | 527 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 553 | _result = (bool )wxCalendarDateAttr_IsHoliday(_arg0); |
eedf876b | 554 | |
4268f798 | 555 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
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 | { | |
4268f798 | 581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 582 | _result = new wxColour (wxCalendarDateAttr_GetTextColour(_arg0)); |
eedf876b | 583 | |
4268f798 | 584 | wxPyEndAllowThreads(__tstate); |
eedf876b | 585 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
586 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
587 | _resultobj = Py_BuildValue("s",_ptemp); | |
eedf876b RD |
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 | { | |
4268f798 | 611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 612 | _result = new wxColour (wxCalendarDateAttr_GetBackgroundColour(_arg0)); |
eedf876b | 613 | |
4268f798 | 614 | wxPyEndAllowThreads(__tstate); |
eedf876b | 615 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
616 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
617 | _resultobj = Py_BuildValue("s",_ptemp); | |
eedf876b RD |
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 | { | |
4268f798 | 641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 642 | _result = new wxColour (wxCalendarDateAttr_GetBorderColour(_arg0)); |
eedf876b | 643 | |
4268f798 | 644 | wxPyEndAllowThreads(__tstate); |
eedf876b | 645 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
646 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
647 | _resultobj = Py_BuildValue("s",_ptemp); | |
eedf876b RD |
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 | { | |
4268f798 | 671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 672 | _result = new wxFont (wxCalendarDateAttr_GetFont(_arg0)); |
eedf876b | 673 | |
4268f798 | 674 | wxPyEndAllowThreads(__tstate); |
eedf876b | 675 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
676 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
677 | _resultobj = Py_BuildValue("s",_ptemp); | |
eedf876b RD |
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 | { | |
4268f798 | 700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 701 | _result = (wxCalendarDateBorder )wxCalendarDateAttr_GetBorder(_arg0); |
eedf876b | 702 | |
4268f798 | 703 | wxPyEndAllowThreads(__tstate); |
eedf876b RD |
704 | if (PyErr_Occurred()) return NULL; |
705 | } _resultobj = Py_BuildValue("i",_result); | |
706 | return _resultobj; | |
707 | } | |
708 | ||
f6bcfd97 BP |
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 | ||
9416aa89 RD |
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 | ||
f6bcfd97 BP |
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 | { | |
4268f798 | 754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 755 | _result = (wxCalendarEvent *)new_wxCalendarEvent(_arg0,_arg1); |
f6bcfd97 | 756 | |
4268f798 | 757 | wxPyEndAllowThreads(__tstate); |
493f1553 | 758 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
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 | { | |
4268f798 | 789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 790 | const wxDateTime & _result_ref = wxCalendarEvent_GetDate(_arg0); |
f6bcfd97 BP |
791 | _result = (wxDateTime *) &_result_ref; |
792 | ||
4268f798 | 793 | wxPyEndAllowThreads(__tstate); |
493f1553 | 794 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
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 | { | |
4268f798 | 824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 825 | _result = (wxDateTime::WeekDay )wxCalendarEvent_GetWeekDay(_arg0); |
f6bcfd97 | 826 | |
4268f798 | 827 | wxPyEndAllowThreads(__tstate); |
493f1553 | 828 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
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 | ||
9416aa89 RD |
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 | ||
f6bcfd97 BP |
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; | |
bae17009 | 874 | long _arg5 = (long ) (wxCAL_SHOW_HOLIDAYS)|wxWANTS_CHARS; |
f6bcfd97 BP |
875 | char * _arg6 = (char *) "calendar"; |
876 | PyObject * _argo0 = 0; | |
877 | PyObject * _argo2 = 0; | |
878 | wxPoint temp; | |
879 | PyObject * _obj3 = 0; | |
880 | wxSize temp0; | |
881 | PyObject * _obj4 = 0; | |
882 | char *_kwnames[] = { "parent","id","date","pos","size","style","name", NULL }; | |
883 | char _ptemp[128]; | |
884 | ||
885 | self = self; | |
886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOls:new_wxCalendarCtrl",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
887 | return NULL; | |
888 | if (_argo0) { | |
889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarCtrl. Expected _wxWindow_p."); | |
892 | return NULL; | |
893 | } | |
894 | } | |
895 | if (_argo2) { | |
896 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
897 | else 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 | { | |
4268f798 | 915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 916 | _result = (wxCalendarCtrl *)new_wxCalendarCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
f6bcfd97 | 917 | |
4268f798 | 918 | wxPyEndAllowThreads(__tstate); |
493f1553 | 919 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
920 | } if (_result) { |
921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p"); | |
922 | _resultobj = Py_BuildValue("s",_ptemp); | |
923 | } else { | |
924 | Py_INCREF(Py_None); | |
925 | _resultobj = Py_None; | |
926 | } | |
927 | return _resultobj; | |
928 | } | |
929 | ||
09f3d4e6 RD |
930 | #define new_wxPreCalendarCtrl() (new wxCalendarCtrl()) |
931 | static PyObject *_wrap_new_wxPreCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
932 | PyObject * _resultobj; | |
933 | wxCalendarCtrl * _result; | |
934 | char *_kwnames[] = { NULL }; | |
935 | char _ptemp[128]; | |
936 | ||
937 | self = self; | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCalendarCtrl",_kwnames)) | |
939 | return NULL; | |
940 | { | |
4268f798 | 941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 942 | _result = (wxCalendarCtrl *)new_wxPreCalendarCtrl(); |
09f3d4e6 | 943 | |
4268f798 | 944 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
945 | if (PyErr_Occurred()) return NULL; |
946 | } if (_result) { | |
947 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p"); | |
948 | _resultobj = Py_BuildValue("s",_ptemp); | |
949 | } else { | |
950 | Py_INCREF(Py_None); | |
951 | _resultobj = Py_None; | |
952 | } | |
953 | return _resultobj; | |
954 | } | |
955 | ||
956 | #define wxCalendarCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
957 | static PyObject *_wrap_wxCalendarCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
958 | PyObject * _resultobj; | |
959 | bool _result; | |
960 | wxCalendarCtrl * _arg0; | |
961 | wxWindow * _arg1; | |
962 | wxWindowID _arg2; | |
963 | wxDateTime * _arg3 = (wxDateTime *) &wxDefaultDateTime; | |
964 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
965 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
bae17009 | 966 | long _arg6 = (long ) (wxCAL_SHOW_HOLIDAYS)|wxWANTS_CHARS; |
09f3d4e6 RD |
967 | char * _arg7 = (char *) "calendar"; |
968 | PyObject * _argo0 = 0; | |
969 | PyObject * _argo1 = 0; | |
970 | PyObject * _argo3 = 0; | |
971 | wxPoint temp; | |
972 | PyObject * _obj4 = 0; | |
973 | wxSize temp0; | |
974 | PyObject * _obj5 = 0; | |
975 | char *_kwnames[] = { "self","parent","id","date","pos","size","style","name", NULL }; | |
976 | ||
977 | self = self; | |
978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOls:wxCalendarCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
979 | return NULL; | |
980 | if (_argo0) { | |
981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_Create. Expected _wxCalendarCtrl_p."); | |
984 | return NULL; | |
985 | } | |
986 | } | |
987 | if (_argo1) { | |
988 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
989 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_Create. Expected _wxWindow_p."); | |
991 | return NULL; | |
992 | } | |
993 | } | |
994 | if (_argo3) { | |
995 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
996 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime_p")) { | |
997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_Create. Expected _wxDateTime_p."); | |
998 | return NULL; | |
999 | } | |
1000 | } | |
1001 | if (_obj4) | |
1002 | { | |
1003 | _arg4 = &temp; | |
1004 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1005 | return NULL; | |
1006 | } | |
1007 | if (_obj5) | |
1008 | { | |
1009 | _arg5 = &temp0; | |
1010 | if (! wxSize_helper(_obj5, &_arg5)) | |
1011 | return NULL; | |
1012 | } | |
1013 | { | |
4268f798 | 1014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1015 | _result = (bool )wxCalendarCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
09f3d4e6 | 1016 | |
4268f798 | 1017 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1018 | if (PyErr_Occurred()) return NULL; |
1019 | } _resultobj = Py_BuildValue("i",_result); | |
1020 | return _resultobj; | |
1021 | } | |
1022 | ||
f6bcfd97 BP |
1023 | #define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0)) |
1024 | static PyObject *_wrap_wxCalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1025 | PyObject * _resultobj; | |
1026 | wxCalendarCtrl * _arg0; | |
1027 | wxDateTime * _arg1; | |
1028 | PyObject * _argo0 = 0; | |
1029 | PyObject * _argo1 = 0; | |
1030 | char *_kwnames[] = { "self","date", NULL }; | |
1031 | ||
1032 | self = self; | |
1033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarCtrl_SetDate",_kwnames,&_argo0,&_argo1)) | |
1034 | return NULL; | |
1035 | if (_argo0) { | |
1036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p."); | |
1039 | return NULL; | |
1040 | } | |
1041 | } | |
1042 | if (_argo1) { | |
1043 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1044 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
1045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p."); | |
1046 | return NULL; | |
1047 | } | |
1048 | } | |
1049 | { | |
4268f798 | 1050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1051 | wxCalendarCtrl_SetDate(_arg0,*_arg1); |
f6bcfd97 | 1052 | |
4268f798 | 1053 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1054 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1055 | } Py_INCREF(Py_None); |
1056 | _resultobj = Py_None; | |
1057 | return _resultobj; | |
1058 | } | |
1059 | ||
1060 | #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate()) | |
1061 | static PyObject *_wrap_wxCalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1062 | PyObject * _resultobj; | |
1063 | wxDateTime * _result; | |
1064 | wxCalendarCtrl * _arg0; | |
1065 | PyObject * _argo0 = 0; | |
1066 | char *_kwnames[] = { "self", NULL }; | |
1067 | char _ptemp[128]; | |
1068 | ||
1069 | self = self; | |
1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetDate",_kwnames,&_argo0)) | |
1071 | return NULL; | |
1072 | if (_argo0) { | |
1073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p."); | |
1076 | return NULL; | |
1077 | } | |
1078 | } | |
1079 | { | |
4268f798 | 1080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1081 | const wxDateTime & _result_ref = wxCalendarCtrl_GetDate(_arg0); |
f6bcfd97 BP |
1082 | _result = (wxDateTime *) &_result_ref; |
1083 | ||
4268f798 | 1084 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1085 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1086 | } if (_result) { |
1087 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
1088 | _resultobj = Py_BuildValue("s",_ptemp); | |
1089 | } else { | |
1090 | Py_INCREF(Py_None); | |
1091 | _resultobj = Py_None; | |
1092 | } | |
1093 | return _resultobj; | |
1094 | } | |
1095 | ||
ab11ebfa RD |
1096 | #define wxCalendarCtrl_SetLowerDateLimit(_swigobj,_swigarg0) (_swigobj->SetLowerDateLimit(_swigarg0)) |
1097 | static PyObject *_wrap_wxCalendarCtrl_SetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1098 | PyObject * _resultobj; | |
1099 | bool _result; | |
1100 | wxCalendarCtrl * _arg0; | |
1101 | wxDateTime * _arg1 = (wxDateTime *) &wxDefaultDateTime; | |
1102 | PyObject * _argo0 = 0; | |
1103 | PyObject * _argo1 = 0; | |
1104 | char *_kwnames[] = { "self","date", NULL }; | |
1105 | ||
1106 | self = self; | |
1107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxCalendarCtrl_SetLowerDateLimit",_kwnames,&_argo0,&_argo1)) | |
1108 | return NULL; | |
1109 | if (_argo0) { | |
1110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetLowerDateLimit. Expected _wxCalendarCtrl_p."); | |
1113 | return NULL; | |
1114 | } | |
1115 | } | |
1116 | if (_argo1) { | |
1117 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1118 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
1119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetLowerDateLimit. Expected _wxDateTime_p."); | |
1120 | return NULL; | |
1121 | } | |
1122 | } | |
1123 | { | |
4268f798 | 1124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1125 | _result = (bool )wxCalendarCtrl_SetLowerDateLimit(_arg0,*_arg1); |
ab11ebfa | 1126 | |
4268f798 | 1127 | wxPyEndAllowThreads(__tstate); |
ab11ebfa RD |
1128 | if (PyErr_Occurred()) return NULL; |
1129 | } _resultobj = Py_BuildValue("i",_result); | |
1130 | return _resultobj; | |
1131 | } | |
1132 | ||
1133 | #define wxCalendarCtrl_GetLowerDateLimit(_swigobj) (_swigobj->GetLowerDateLimit()) | |
1134 | static PyObject *_wrap_wxCalendarCtrl_GetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1135 | PyObject * _resultobj; | |
1136 | wxDateTime * _result; | |
1137 | wxCalendarCtrl * _arg0; | |
1138 | PyObject * _argo0 = 0; | |
1139 | char *_kwnames[] = { "self", NULL }; | |
1140 | char _ptemp[128]; | |
1141 | ||
1142 | self = self; | |
1143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetLowerDateLimit",_kwnames,&_argo0)) | |
1144 | return NULL; | |
1145 | if (_argo0) { | |
1146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetLowerDateLimit. Expected _wxCalendarCtrl_p."); | |
1149 | return NULL; | |
1150 | } | |
1151 | } | |
1152 | { | |
4268f798 | 1153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1154 | const wxDateTime & _result_ref = wxCalendarCtrl_GetLowerDateLimit(_arg0); |
ab11ebfa RD |
1155 | _result = (wxDateTime *) &_result_ref; |
1156 | ||
4268f798 | 1157 | wxPyEndAllowThreads(__tstate); |
ab11ebfa RD |
1158 | if (PyErr_Occurred()) return NULL; |
1159 | } if (_result) { | |
1160 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
1161 | _resultobj = Py_BuildValue("s",_ptemp); | |
1162 | } else { | |
1163 | Py_INCREF(Py_None); | |
1164 | _resultobj = Py_None; | |
1165 | } | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
1169 | #define wxCalendarCtrl_SetUpperDateLimit(_swigobj,_swigarg0) (_swigobj->SetUpperDateLimit(_swigarg0)) | |
1170 | static PyObject *_wrap_wxCalendarCtrl_SetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject * _resultobj; | |
1172 | bool _result; | |
1173 | wxCalendarCtrl * _arg0; | |
1174 | wxDateTime * _arg1 = (wxDateTime *) &wxDefaultDateTime; | |
1175 | PyObject * _argo0 = 0; | |
1176 | PyObject * _argo1 = 0; | |
1177 | char *_kwnames[] = { "self","date", NULL }; | |
1178 | ||
1179 | self = self; | |
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxCalendarCtrl_SetUpperDateLimit",_kwnames,&_argo0,&_argo1)) | |
1181 | return NULL; | |
1182 | if (_argo0) { | |
1183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetUpperDateLimit. Expected _wxCalendarCtrl_p."); | |
1186 | return NULL; | |
1187 | } | |
1188 | } | |
1189 | if (_argo1) { | |
1190 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1191 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
1192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetUpperDateLimit. Expected _wxDateTime_p."); | |
1193 | return NULL; | |
1194 | } | |
1195 | } | |
1196 | { | |
4268f798 | 1197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1198 | _result = (bool )wxCalendarCtrl_SetUpperDateLimit(_arg0,*_arg1); |
ab11ebfa | 1199 | |
4268f798 | 1200 | wxPyEndAllowThreads(__tstate); |
ab11ebfa RD |
1201 | if (PyErr_Occurred()) return NULL; |
1202 | } _resultobj = Py_BuildValue("i",_result); | |
1203 | return _resultobj; | |
1204 | } | |
1205 | ||
1206 | #define wxCalendarCtrl_GetUpperDateLimit(_swigobj) (_swigobj->GetUpperDateLimit()) | |
1207 | static PyObject *_wrap_wxCalendarCtrl_GetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1208 | PyObject * _resultobj; | |
1209 | wxDateTime * _result; | |
1210 | wxCalendarCtrl * _arg0; | |
1211 | PyObject * _argo0 = 0; | |
1212 | char *_kwnames[] = { "self", NULL }; | |
1213 | char _ptemp[128]; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetUpperDateLimit",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetUpperDateLimit. Expected _wxCalendarCtrl_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
4268f798 | 1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1227 | const wxDateTime & _result_ref = wxCalendarCtrl_GetUpperDateLimit(_arg0); |
ab11ebfa RD |
1228 | _result = (wxDateTime *) &_result_ref; |
1229 | ||
4268f798 | 1230 | wxPyEndAllowThreads(__tstate); |
ab11ebfa RD |
1231 | if (PyErr_Occurred()) return NULL; |
1232 | } if (_result) { | |
1233 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
1234 | _resultobj = Py_BuildValue("s",_ptemp); | |
1235 | } else { | |
1236 | Py_INCREF(Py_None); | |
1237 | _resultobj = Py_None; | |
1238 | } | |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxCalendarCtrl_SetDateRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDateRange(_swigarg0,_swigarg1)) | |
1243 | static PyObject *_wrap_wxCalendarCtrl_SetDateRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | bool _result; | |
1246 | wxCalendarCtrl * _arg0; | |
1247 | wxDateTime * _arg1 = (wxDateTime *) &wxDefaultDateTime; | |
1248 | wxDateTime * _arg2 = (wxDateTime *) &wxDefaultDateTime; | |
1249 | PyObject * _argo0 = 0; | |
1250 | PyObject * _argo1 = 0; | |
1251 | PyObject * _argo2 = 0; | |
1252 | char *_kwnames[] = { "self","lowerdate","upperdate", NULL }; | |
1253 | ||
1254 | self = self; | |
1255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxCalendarCtrl_SetDateRange",_kwnames,&_argo0,&_argo1,&_argo2)) | |
1256 | return NULL; | |
1257 | if (_argo0) { | |
1258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDateRange. Expected _wxCalendarCtrl_p."); | |
1261 | return NULL; | |
1262 | } | |
1263 | } | |
1264 | if (_argo1) { | |
1265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
1267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDateRange. Expected _wxDateTime_p."); | |
1268 | return NULL; | |
1269 | } | |
1270 | } | |
1271 | if (_argo2) { | |
1272 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1273 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
1274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetDateRange. Expected _wxDateTime_p."); | |
1275 | return NULL; | |
1276 | } | |
1277 | } | |
1278 | { | |
4268f798 | 1279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1280 | _result = (bool )wxCalendarCtrl_SetDateRange(_arg0,*_arg1,*_arg2); |
ab11ebfa | 1281 | |
4268f798 | 1282 | wxPyEndAllowThreads(__tstate); |
ab11ebfa RD |
1283 | if (PyErr_Occurred()) return NULL; |
1284 | } _resultobj = Py_BuildValue("i",_result); | |
1285 | return _resultobj; | |
1286 | } | |
1287 | ||
f6bcfd97 BP |
1288 | #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0)) |
1289 | static PyObject *_wrap_wxCalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1290 | PyObject * _resultobj; | |
1291 | wxCalendarCtrl * _arg0; | |
1292 | bool _arg1 = (bool ) TRUE; | |
1293 | PyObject * _argo0 = 0; | |
1294 | int tempbool1 = (int) TRUE; | |
1295 | char *_kwnames[] = { "self","enable", NULL }; | |
1296 | ||
1297 | self = self; | |
1298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames,&_argo0,&tempbool1)) | |
1299 | return NULL; | |
1300 | if (_argo0) { | |
1301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p."); | |
1304 | return NULL; | |
1305 | } | |
1306 | } | |
1307 | _arg1 = (bool ) tempbool1; | |
1308 | { | |
4268f798 | 1309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1310 | wxCalendarCtrl_EnableYearChange(_arg0,_arg1); |
f6bcfd97 | 1311 | |
4268f798 | 1312 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1313 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1314 | } Py_INCREF(Py_None); |
1315 | _resultobj = Py_None; | |
1316 | return _resultobj; | |
1317 | } | |
1318 | ||
1319 | #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0)) | |
1320 | static PyObject *_wrap_wxCalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1321 | PyObject * _resultobj; | |
1322 | wxCalendarCtrl * _arg0; | |
1323 | bool _arg1 = (bool ) TRUE; | |
1324 | PyObject * _argo0 = 0; | |
1325 | int tempbool1 = (int) TRUE; | |
1326 | char *_kwnames[] = { "self","enable", NULL }; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames,&_argo0,&tempbool1)) | |
1330 | return NULL; | |
1331 | if (_argo0) { | |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | _arg1 = (bool ) tempbool1; | |
1339 | { | |
4268f798 | 1340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1341 | wxCalendarCtrl_EnableMonthChange(_arg0,_arg1); |
f6bcfd97 | 1342 | |
4268f798 | 1343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1344 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1345 | } Py_INCREF(Py_None); |
1346 | _resultobj = Py_None; | |
1347 | return _resultobj; | |
1348 | } | |
1349 | ||
1350 | #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0)) | |
1351 | static PyObject *_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1352 | PyObject * _resultobj; | |
1353 | wxCalendarCtrl * _arg0; | |
1354 | bool _arg1 = (bool ) TRUE; | |
1355 | PyObject * _argo0 = 0; | |
1356 | int tempbool1 = (int) TRUE; | |
1357 | char *_kwnames[] = { "self","display", NULL }; | |
1358 | ||
1359 | self = self; | |
1360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames,&_argo0,&tempbool1)) | |
1361 | return NULL; | |
1362 | if (_argo0) { | |
1363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p."); | |
1366 | return NULL; | |
1367 | } | |
1368 | } | |
1369 | _arg1 = (bool ) tempbool1; | |
1370 | { | |
4268f798 | 1371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1372 | wxCalendarCtrl_EnableHolidayDisplay(_arg0,_arg1); |
f6bcfd97 | 1373 | |
4268f798 | 1374 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1375 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1376 | } Py_INCREF(Py_None); |
1377 | _resultobj = Py_None; | |
1378 | return _resultobj; | |
1379 | } | |
1380 | ||
1381 | #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1)) | |
1382 | static PyObject *_wrap_wxCalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1383 | PyObject * _resultobj; | |
1384 | wxCalendarCtrl * _arg0; | |
1385 | wxColour * _arg1; | |
1386 | wxColour * _arg2; | |
1387 | PyObject * _argo0 = 0; | |
1388 | wxColour temp; | |
1389 | PyObject * _obj1 = 0; | |
1390 | wxColour temp0; | |
1391 | PyObject * _obj2 = 0; | |
1392 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1393 | ||
1394 | self = self; | |
1395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1396 | return NULL; | |
1397 | if (_argo0) { | |
1398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p."); | |
1401 | return NULL; | |
1402 | } | |
1403 | } | |
1404 | { | |
1405 | _arg1 = &temp; | |
1406 | if (! wxColour_helper(_obj1, &_arg1)) | |
1407 | return NULL; | |
1408 | } | |
1409 | { | |
1410 | _arg2 = &temp0; | |
1411 | if (! wxColour_helper(_obj2, &_arg2)) | |
1412 | return NULL; | |
1413 | } | |
1414 | { | |
4268f798 | 1415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1416 | wxCalendarCtrl_SetHeaderColours(_arg0,*_arg1,*_arg2); |
f6bcfd97 | 1417 | |
4268f798 | 1418 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1419 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1420 | } Py_INCREF(Py_None); |
1421 | _resultobj = Py_None; | |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
1425 | #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg()) | |
1426 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1427 | PyObject * _resultobj; | |
1428 | wxColour * _result; | |
1429 | wxCalendarCtrl * _arg0; | |
1430 | PyObject * _argo0 = 0; | |
1431 | char *_kwnames[] = { "self", NULL }; | |
1432 | char _ptemp[128]; | |
1433 | ||
1434 | self = self; | |
1435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames,&_argo0)) | |
1436 | return NULL; | |
1437 | if (_argo0) { | |
1438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p."); | |
1441 | return NULL; | |
1442 | } | |
1443 | } | |
1444 | { | |
4268f798 | 1445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1446 | _result = new wxColour (wxCalendarCtrl_GetHeaderColourFg(_arg0)); |
f6bcfd97 | 1447 | |
4268f798 | 1448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1449 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1450 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1451 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
1452 | return _resultobj; |
1453 | } | |
1454 | ||
1455 | #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg()) | |
1456 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1457 | PyObject * _resultobj; | |
1458 | wxColour * _result; | |
1459 | wxCalendarCtrl * _arg0; | |
1460 | PyObject * _argo0 = 0; | |
1461 | char *_kwnames[] = { "self", NULL }; | |
1462 | char _ptemp[128]; | |
1463 | ||
1464 | self = self; | |
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames,&_argo0)) | |
1466 | return NULL; | |
1467 | if (_argo0) { | |
1468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p."); | |
1471 | return NULL; | |
1472 | } | |
1473 | } | |
1474 | { | |
4268f798 | 1475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1476 | _result = new wxColour (wxCalendarCtrl_GetHeaderColourBg(_arg0)); |
f6bcfd97 | 1477 | |
4268f798 | 1478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1479 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1480 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1481 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
1482 | return _resultobj; |
1483 | } | |
1484 | ||
1485 | #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1)) | |
1486 | static PyObject *_wrap_wxCalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1487 | PyObject * _resultobj; | |
1488 | wxCalendarCtrl * _arg0; | |
1489 | wxColour * _arg1; | |
1490 | wxColour * _arg2; | |
1491 | PyObject * _argo0 = 0; | |
1492 | wxColour temp; | |
1493 | PyObject * _obj1 = 0; | |
1494 | wxColour temp0; | |
1495 | PyObject * _obj2 = 0; | |
1496 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1497 | ||
1498 | self = self; | |
1499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1500 | return NULL; | |
1501 | if (_argo0) { | |
1502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p."); | |
1505 | return NULL; | |
1506 | } | |
1507 | } | |
1508 | { | |
1509 | _arg1 = &temp; | |
1510 | if (! wxColour_helper(_obj1, &_arg1)) | |
1511 | return NULL; | |
1512 | } | |
1513 | { | |
1514 | _arg2 = &temp0; | |
1515 | if (! wxColour_helper(_obj2, &_arg2)) | |
1516 | return NULL; | |
1517 | } | |
1518 | { | |
4268f798 | 1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1520 | wxCalendarCtrl_SetHighlightColours(_arg0,*_arg1,*_arg2); |
f6bcfd97 | 1521 | |
4268f798 | 1522 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1523 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1524 | } Py_INCREF(Py_None); |
1525 | _resultobj = Py_None; | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg()) | |
1530 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | wxColour * _result; | |
1533 | wxCalendarCtrl * _arg0; | |
1534 | PyObject * _argo0 = 0; | |
1535 | char *_kwnames[] = { "self", NULL }; | |
1536 | char _ptemp[128]; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames,&_argo0)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
4268f798 | 1549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1550 | _result = new wxColour (wxCalendarCtrl_GetHighlightColourFg(_arg0)); |
f6bcfd97 | 1551 | |
4268f798 | 1552 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1553 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1554 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1555 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
1556 | return _resultobj; |
1557 | } | |
1558 | ||
1559 | #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg()) | |
1560 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1561 | PyObject * _resultobj; | |
1562 | wxColour * _result; | |
1563 | wxCalendarCtrl * _arg0; | |
1564 | PyObject * _argo0 = 0; | |
1565 | char *_kwnames[] = { "self", NULL }; | |
1566 | char _ptemp[128]; | |
1567 | ||
1568 | self = self; | |
1569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames,&_argo0)) | |
1570 | return NULL; | |
1571 | if (_argo0) { | |
1572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p."); | |
1575 | return NULL; | |
1576 | } | |
1577 | } | |
1578 | { | |
4268f798 | 1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1580 | _result = new wxColour (wxCalendarCtrl_GetHighlightColourBg(_arg0)); |
f6bcfd97 | 1581 | |
4268f798 | 1582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1583 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1584 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1585 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
1586 | return _resultobj; |
1587 | } | |
1588 | ||
1589 | #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1)) | |
1590 | static PyObject *_wrap_wxCalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1591 | PyObject * _resultobj; | |
1592 | wxCalendarCtrl * _arg0; | |
1593 | wxColour * _arg1; | |
1594 | wxColour * _arg2; | |
1595 | PyObject * _argo0 = 0; | |
1596 | wxColour temp; | |
1597 | PyObject * _obj1 = 0; | |
1598 | wxColour temp0; | |
1599 | PyObject * _obj2 = 0; | |
1600 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1601 | ||
1602 | self = self; | |
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1604 | return NULL; | |
1605 | if (_argo0) { | |
1606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p."); | |
1609 | return NULL; | |
1610 | } | |
1611 | } | |
1612 | { | |
1613 | _arg1 = &temp; | |
1614 | if (! wxColour_helper(_obj1, &_arg1)) | |
1615 | return NULL; | |
1616 | } | |
1617 | { | |
1618 | _arg2 = &temp0; | |
1619 | if (! wxColour_helper(_obj2, &_arg2)) | |
1620 | return NULL; | |
1621 | } | |
1622 | { | |
4268f798 | 1623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1624 | wxCalendarCtrl_SetHolidayColours(_arg0,*_arg1,*_arg2); |
f6bcfd97 | 1625 | |
4268f798 | 1626 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1627 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1628 | } Py_INCREF(Py_None); |
1629 | _resultobj = Py_None; | |
1630 | return _resultobj; | |
1631 | } | |
1632 | ||
1633 | #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg()) | |
1634 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1635 | PyObject * _resultobj; | |
1636 | wxColour * _result; | |
1637 | wxCalendarCtrl * _arg0; | |
1638 | PyObject * _argo0 = 0; | |
1639 | char *_kwnames[] = { "self", NULL }; | |
1640 | char _ptemp[128]; | |
1641 | ||
1642 | self = self; | |
1643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames,&_argo0)) | |
1644 | return NULL; | |
1645 | if (_argo0) { | |
1646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourFg. Expected _wxCalendarCtrl_p."); | |
1649 | return NULL; | |
1650 | } | |
1651 | } | |
1652 | { | |
4268f798 | 1653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1654 | _result = new wxColour (wxCalendarCtrl_GetHolidayColourFg(_arg0)); |
f6bcfd97 | 1655 | |
4268f798 | 1656 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1657 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1658 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1659 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
1660 | return _resultobj; |
1661 | } | |
1662 | ||
1663 | #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg()) | |
1664 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1665 | PyObject * _resultobj; | |
1666 | wxColour * _result; | |
1667 | wxCalendarCtrl * _arg0; | |
1668 | PyObject * _argo0 = 0; | |
1669 | char *_kwnames[] = { "self", NULL }; | |
1670 | char _ptemp[128]; | |
1671 | ||
1672 | self = self; | |
1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames,&_argo0)) | |
1674 | return NULL; | |
1675 | if (_argo0) { | |
1676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p."); | |
1679 | return NULL; | |
1680 | } | |
1681 | } | |
1682 | { | |
4268f798 | 1683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1684 | _result = new wxColour (wxCalendarCtrl_GetHolidayColourBg(_arg0)); |
f6bcfd97 | 1685 | |
4268f798 | 1686 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1687 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1688 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1689 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
1690 | return _resultobj; |
1691 | } | |
1692 | ||
1693 | #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0)) | |
1694 | static PyObject *_wrap_wxCalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1695 | PyObject * _resultobj; | |
1696 | wxCalendarDateAttr * _result; | |
1697 | wxCalendarCtrl * _arg0; | |
1698 | size_t _arg1; | |
1699 | PyObject * _argo0 = 0; | |
1700 | char *_kwnames[] = { "self","day", NULL }; | |
1701 | char _ptemp[128]; | |
1702 | ||
1703 | self = self; | |
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_GetAttr",_kwnames,&_argo0,&_arg1)) | |
1705 | return NULL; | |
1706 | if (_argo0) { | |
1707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p."); | |
1710 | return NULL; | |
1711 | } | |
1712 | } | |
1713 | { | |
4268f798 | 1714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1715 | _result = (wxCalendarDateAttr *)wxCalendarCtrl_GetAttr(_arg0,_arg1); |
f6bcfd97 | 1716 | |
4268f798 | 1717 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1718 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1719 | } if (_result) { |
1720 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
1721 | _resultobj = Py_BuildValue("s",_ptemp); | |
1722 | } else { | |
1723 | Py_INCREF(Py_None); | |
1724 | _resultobj = Py_None; | |
1725 | } | |
1726 | return _resultobj; | |
1727 | } | |
1728 | ||
1729 | #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1)) | |
1730 | static PyObject *_wrap_wxCalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1731 | PyObject * _resultobj; | |
1732 | wxCalendarCtrl * _arg0; | |
1733 | size_t _arg1; | |
1734 | wxCalendarDateAttr * _arg2; | |
1735 | PyObject * _argo0 = 0; | |
1736 | PyObject * _argo2 = 0; | |
1737 | char *_kwnames[] = { "self","day","attr", NULL }; | |
1738 | ||
1739 | self = self; | |
1740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxCalendarCtrl_SetAttr",_kwnames,&_argo0,&_arg1,&_argo2)) | |
1741 | return NULL; | |
1742 | if (_argo0) { | |
1743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p."); | |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
1749 | if (_argo2) { | |
1750 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1751 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCalendarDateAttr_p")) { | |
1752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p."); | |
1753 | return NULL; | |
1754 | } | |
1755 | } | |
1756 | { | |
4268f798 | 1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1758 | wxCalendarCtrl_SetAttr(_arg0,_arg1,_arg2); |
f6bcfd97 | 1759 | |
4268f798 | 1760 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1761 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1762 | } Py_INCREF(Py_None); |
1763 | _resultobj = Py_None; | |
1764 | return _resultobj; | |
1765 | } | |
1766 | ||
1767 | #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0)) | |
1768 | static PyObject *_wrap_wxCalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1769 | PyObject * _resultobj; | |
1770 | wxCalendarCtrl * _arg0; | |
1771 | size_t _arg1; | |
1772 | PyObject * _argo0 = 0; | |
1773 | char *_kwnames[] = { "self","day", NULL }; | |
1774 | ||
1775 | self = self; | |
1776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_SetHoliday",_kwnames,&_argo0,&_arg1)) | |
1777 | return NULL; | |
1778 | if (_argo0) { | |
1779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p."); | |
1782 | return NULL; | |
1783 | } | |
1784 | } | |
1785 | { | |
4268f798 | 1786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1787 | wxCalendarCtrl_SetHoliday(_arg0,_arg1); |
f6bcfd97 | 1788 | |
4268f798 | 1789 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1790 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1791 | } Py_INCREF(Py_None); |
1792 | _resultobj = Py_None; | |
1793 | return _resultobj; | |
1794 | } | |
1795 | ||
1796 | #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0)) | |
1797 | static PyObject *_wrap_wxCalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject * _resultobj; | |
1799 | wxCalendarCtrl * _arg0; | |
1800 | size_t _arg1; | |
1801 | PyObject * _argo0 = 0; | |
1802 | char *_kwnames[] = { "self","day", NULL }; | |
1803 | ||
1804 | self = self; | |
1805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_ResetAttr",_kwnames,&_argo0,&_arg1)) | |
1806 | return NULL; | |
1807 | if (_argo0) { | |
1808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_ResetAttr. Expected _wxCalendarCtrl_p."); | |
1811 | return NULL; | |
1812 | } | |
1813 | } | |
1814 | { | |
4268f798 | 1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1816 | wxCalendarCtrl_ResetAttr(_arg0,_arg1); |
f6bcfd97 | 1817 | |
4268f798 | 1818 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1819 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1820 | } Py_INCREF(Py_None); |
1821 | _resultobj = Py_None; | |
1822 | return _resultobj; | |
1823 | } | |
1824 | ||
1825 | #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2)) | |
1826 | static PyObject *_wrap_wxCalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1827 | PyObject * _resultobj; | |
eedf876b | 1828 | wxCalendarHitTestResult _result; |
f6bcfd97 BP |
1829 | wxCalendarCtrl * _arg0; |
1830 | wxPoint * _arg1; | |
1831 | wxDateTime * _arg2 = (wxDateTime *) NULL; | |
1832 | wxDateTime::WeekDay * _arg3 = (wxDateTime::WeekDay *) NULL; | |
1833 | PyObject * _argo0 = 0; | |
1834 | wxPoint temp; | |
1835 | PyObject * _obj1 = 0; | |
1836 | PyObject * _argo2 = 0; | |
1837 | PyObject * _argo3 = 0; | |
1838 | char *_kwnames[] = { "self","pos","date","wd", NULL }; | |
1839 | ||
1840 | self = self; | |
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxCalendarCtrl_HitTest",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
1842 | return NULL; | |
1843 | if (_argo0) { | |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p."); | |
1847 | return NULL; | |
1848 | } | |
1849 | } | |
1850 | { | |
1851 | _arg1 = &temp; | |
1852 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1853 | return NULL; | |
1854 | } | |
1855 | if (_argo2) { | |
1856 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1857 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
1858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p."); | |
1859 | return NULL; | |
1860 | } | |
1861 | } | |
1862 | if (_argo3) { | |
1863 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1864 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime::WeekDay_p")) { | |
1865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p."); | |
1866 | return NULL; | |
1867 | } | |
1868 | } | |
1869 | { | |
4268f798 | 1870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1871 | _result = (wxCalendarHitTestResult )wxCalendarCtrl_HitTest(_arg0,*_arg1,_arg2,_arg3); |
ab11ebfa | 1872 | |
4268f798 | 1873 | wxPyEndAllowThreads(__tstate); |
ab11ebfa | 1874 | if (PyErr_Occurred()) return NULL; |
eedf876b | 1875 | } _resultobj = Py_BuildValue("i",_result); |
ab11ebfa RD |
1876 | return _resultobj; |
1877 | } | |
1878 | ||
1879 | #define wxCalendarCtrl_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1880 | static PyObject *_wrap_wxCalendarCtrl_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1881 | PyObject * _resultobj; | |
1882 | bool _result; | |
1883 | wxCalendarCtrl * _arg0; | |
1884 | bool _arg1 = (bool ) TRUE; | |
1885 | PyObject * _argo0 = 0; | |
1886 | int tempbool1 = (int) TRUE; | |
1887 | char *_kwnames[] = { "self","enable", NULL }; | |
1888 | ||
1889 | self = self; | |
1890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_Enable",_kwnames,&_argo0,&tempbool1)) | |
1891 | return NULL; | |
1892 | if (_argo0) { | |
1893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_Enable. Expected _wxCalendarCtrl_p."); | |
1896 | return NULL; | |
1897 | } | |
1898 | } | |
1899 | _arg1 = (bool ) tempbool1; | |
1900 | { | |
4268f798 | 1901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1902 | _result = (bool )wxCalendarCtrl_Enable(_arg0,_arg1); |
ab11ebfa | 1903 | |
4268f798 | 1904 | wxPyEndAllowThreads(__tstate); |
ab11ebfa RD |
1905 | if (PyErr_Occurred()) return NULL; |
1906 | } _resultobj = Py_BuildValue("i",_result); | |
1907 | return _resultobj; | |
1908 | } | |
1909 | ||
1910 | #define wxCalendarCtrl_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
1911 | static PyObject *_wrap_wxCalendarCtrl_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1912 | PyObject * _resultobj; | |
1913 | bool _result; | |
1914 | wxCalendarCtrl * _arg0; | |
1915 | bool _arg1 = (bool ) TRUE; | |
1916 | PyObject * _argo0 = 0; | |
1917 | int tempbool1 = (int) TRUE; | |
1918 | char *_kwnames[] = { "self","show", NULL }; | |
1919 | ||
1920 | self = self; | |
1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_Show",_kwnames,&_argo0,&tempbool1)) | |
1922 | return NULL; | |
1923 | if (_argo0) { | |
1924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_Show. Expected _wxCalendarCtrl_p."); | |
1927 | return NULL; | |
1928 | } | |
1929 | } | |
1930 | _arg1 = (bool ) tempbool1; | |
1931 | { | |
4268f798 | 1932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1933 | _result = (bool )wxCalendarCtrl_Show(_arg0,_arg1); |
f6bcfd97 | 1934 | |
4268f798 | 1935 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1936 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1937 | } _resultobj = Py_BuildValue("i",_result); |
1938 | return _resultobj; | |
1939 | } | |
1940 | ||
1941 | static PyMethodDef calendarcMethods[] = { | |
ab11ebfa RD |
1942 | { "wxCalendarCtrl_Show", (PyCFunction) _wrap_wxCalendarCtrl_Show, METH_VARARGS | METH_KEYWORDS }, |
1943 | { "wxCalendarCtrl_Enable", (PyCFunction) _wrap_wxCalendarCtrl_Enable, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1944 | { "wxCalendarCtrl_HitTest", (PyCFunction) _wrap_wxCalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
1945 | { "wxCalendarCtrl_ResetAttr", (PyCFunction) _wrap_wxCalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1946 | { "wxCalendarCtrl_SetHoliday", (PyCFunction) _wrap_wxCalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1947 | { "wxCalendarCtrl_SetAttr", (PyCFunction) _wrap_wxCalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1948 | { "wxCalendarCtrl_GetAttr", (PyCFunction) _wrap_wxCalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1949 | { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1950 | { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1951 | { "wxCalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS }, | |
1952 | { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1953 | { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1954 | { "wxCalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS }, | |
1955 | { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1956 | { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1957 | { "wxCalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS }, | |
1958 | { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_wxCalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS }, | |
1959 | { "wxCalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS }, | |
1960 | { "wxCalendarCtrl_EnableYearChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS }, | |
ab11ebfa RD |
1961 | { "wxCalendarCtrl_SetDateRange", (PyCFunction) _wrap_wxCalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS }, |
1962 | { "wxCalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1963 | { "wxCalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1964 | { "wxCalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1965 | { "wxCalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_wxCalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1966 | { "wxCalendarCtrl_GetDate", (PyCFunction) _wrap_wxCalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS }, |
1967 | { "wxCalendarCtrl_SetDate", (PyCFunction) _wrap_wxCalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
1968 | { "wxCalendarCtrl_Create", (PyCFunction) _wrap_wxCalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
1969 | { "new_wxPreCalendarCtrl", (PyCFunction) _wrap_new_wxPreCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1970 | { "new_wxCalendarCtrl", (PyCFunction) _wrap_new_wxCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, |
1971 | { "wxCalendarEvent_GetWeekDay", (PyCFunction) _wrap_wxCalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
1972 | { "wxCalendarEvent_GetDate", (PyCFunction) _wrap_wxCalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1973 | { "new_wxCalendarEvent", (PyCFunction) _wrap_new_wxCalendarEvent, METH_VARARGS | METH_KEYWORDS }, | |
eedf876b RD |
1974 | { "wxCalendarDateAttr_GetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
1975 | { "wxCalendarDateAttr_GetFont", (PyCFunction) _wrap_wxCalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1976 | { "wxCalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1977 | { "wxCalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1978 | { "wxCalendarDateAttr_GetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1979 | { "wxCalendarDateAttr_IsHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1980 | { "wxCalendarDateAttr_HasBorder", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
1981 | { "wxCalendarDateAttr_HasFont", (PyCFunction) _wrap_wxCalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
1982 | { "wxCalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1983 | { "wxCalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1984 | { "wxCalendarDateAttr_HasTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1985 | { "wxCalendarDateAttr_SetHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1986 | { "wxCalendarDateAttr_SetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
1987 | { "wxCalendarDateAttr_SetFont", (PyCFunction) _wrap_wxCalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1988 | { "wxCalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1989 | { "wxCalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1990 | { "wxCalendarDateAttr_SetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1991 | { "new_wxCalendarDateAttrBorder", (PyCFunction) _wrap_new_wxCalendarDateAttrBorder, METH_VARARGS | METH_KEYWORDS }, | |
1992 | { "new_wxCalendarDateAttr", (PyCFunction) _wrap_new_wxCalendarDateAttr, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1993 | { NULL, NULL } |
1994 | }; | |
1995 | #ifdef __cplusplus | |
1996 | } | |
1997 | #endif | |
1998 | /* | |
1999 | * This table is used by the pointer type-checker | |
2000 | */ | |
2001 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
f6bcfd97 | 2002 | { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent}, |
f6bcfd97 | 2003 | { "_signed_long","_long",0}, |
f6bcfd97 BP |
2004 | { "_wxPrintQuality","_wxCoord",0}, |
2005 | { "_wxPrintQuality","_int",0}, | |
2006 | { "_wxPrintQuality","_signed_int",0}, | |
2007 | { "_wxPrintQuality","_unsigned_int",0}, | |
2008 | { "_wxPrintQuality","_wxWindowID",0}, | |
2009 | { "_wxPrintQuality","_uint",0}, | |
2010 | { "_wxPrintQuality","_EBool",0}, | |
2011 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 2012 | { "_wxPrintQuality","_time_t",0}, |
f6bcfd97 | 2013 | { "_byte","_unsigned_char",0}, |
f6bcfd97 BP |
2014 | { "_long","_unsigned_long",0}, |
2015 | { "_long","_signed_long",0}, | |
f6bcfd97 BP |
2016 | { "_size_t","_wxCoord",0}, |
2017 | { "_size_t","_wxPrintQuality",0}, | |
c368d904 | 2018 | { "_size_t","_time_t",0}, |
f6bcfd97 BP |
2019 | { "_size_t","_unsigned_int",0}, |
2020 | { "_size_t","_int",0}, | |
2021 | { "_size_t","_wxWindowID",0}, | |
2022 | { "_size_t","_uint",0}, | |
f6bcfd97 BP |
2023 | { "_uint","_wxCoord",0}, |
2024 | { "_uint","_wxPrintQuality",0}, | |
c368d904 | 2025 | { "_uint","_time_t",0}, |
f6bcfd97 BP |
2026 | { "_uint","_size_t",0}, |
2027 | { "_uint","_unsigned_int",0}, | |
2028 | { "_uint","_int",0}, | |
2029 | { "_uint","_wxWindowID",0}, | |
2030 | { "_wxChar","_char",0}, | |
f6bcfd97 | 2031 | { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent}, |
f6bcfd97 | 2032 | { "_char","_wxChar",0}, |
cdf14688 | 2033 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
f6bcfd97 BP |
2034 | { "_EBool","_wxCoord",0}, |
2035 | { "_EBool","_wxPrintQuality",0}, | |
2036 | { "_EBool","_signed_int",0}, | |
2037 | { "_EBool","_int",0}, | |
2038 | { "_EBool","_wxWindowID",0}, | |
f6bcfd97 | 2039 | { "_unsigned_long","_long",0}, |
cdf14688 | 2040 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
f6bcfd97 BP |
2041 | { "_signed_int","_wxCoord",0}, |
2042 | { "_signed_int","_wxPrintQuality",0}, | |
2043 | { "_signed_int","_EBool",0}, | |
2044 | { "_signed_int","_wxWindowID",0}, | |
2045 | { "_signed_int","_int",0}, | |
f6bcfd97 BP |
2046 | { "_WXTYPE","_wxDateTime_t",0}, |
2047 | { "_WXTYPE","_short",0}, | |
2048 | { "_WXTYPE","_signed_short",0}, | |
2049 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 BP |
2050 | { "_unsigned_short","_wxDateTime_t",0}, |
2051 | { "_unsigned_short","_WXTYPE",0}, | |
2052 | { "_unsigned_short","_short",0}, | |
9416aa89 | 2053 | { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject}, |
9416aa89 | 2054 | { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject}, |
f6bcfd97 BP |
2055 | { "_signed_short","_WXTYPE",0}, |
2056 | { "_signed_short","_short",0}, | |
f6bcfd97 | 2057 | { "_unsigned_char","_byte",0}, |
f6bcfd97 | 2058 | { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl}, |
f6bcfd97 BP |
2059 | { "_unsigned_int","_wxCoord",0}, |
2060 | { "_unsigned_int","_wxPrintQuality",0}, | |
c368d904 | 2061 | { "_unsigned_int","_time_t",0}, |
f6bcfd97 BP |
2062 | { "_unsigned_int","_size_t",0}, |
2063 | { "_unsigned_int","_uint",0}, | |
2064 | { "_unsigned_int","_wxWindowID",0}, | |
2065 | { "_unsigned_int","_int",0}, | |
f6bcfd97 BP |
2066 | { "_short","_wxDateTime_t",0}, |
2067 | { "_short","_WXTYPE",0}, | |
2068 | { "_short","_unsigned_short",0}, | |
2069 | { "_short","_signed_short",0}, | |
f6bcfd97 BP |
2070 | { "_wxWindowID","_wxCoord",0}, |
2071 | { "_wxWindowID","_wxPrintQuality",0}, | |
c368d904 | 2072 | { "_wxWindowID","_time_t",0}, |
f6bcfd97 BP |
2073 | { "_wxWindowID","_size_t",0}, |
2074 | { "_wxWindowID","_EBool",0}, | |
2075 | { "_wxWindowID","_uint",0}, | |
2076 | { "_wxWindowID","_int",0}, | |
2077 | { "_wxWindowID","_signed_int",0}, | |
2078 | { "_wxWindowID","_unsigned_int",0}, | |
f6bcfd97 BP |
2079 | { "_int","_wxCoord",0}, |
2080 | { "_int","_wxPrintQuality",0}, | |
c368d904 | 2081 | { "_int","_time_t",0}, |
f6bcfd97 BP |
2082 | { "_int","_size_t",0}, |
2083 | { "_int","_EBool",0}, | |
2084 | { "_int","_uint",0}, | |
2085 | { "_int","_wxWindowID",0}, | |
2086 | { "_int","_unsigned_int",0}, | |
2087 | { "_int","_signed_int",0}, | |
f6bcfd97 BP |
2088 | { "_wxDateTime_t","_unsigned_short",0}, |
2089 | { "_wxDateTime_t","_short",0}, | |
2090 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
2091 | { "_time_t","_wxCoord",0}, |
2092 | { "_time_t","_wxPrintQuality",0}, | |
2093 | { "_time_t","_unsigned_int",0}, | |
2094 | { "_time_t","_int",0}, | |
2095 | { "_time_t","_wxWindowID",0}, | |
2096 | { "_time_t","_uint",0}, | |
2097 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
2098 | { "_wxCoord","_int",0}, |
2099 | { "_wxCoord","_signed_int",0}, | |
2100 | { "_wxCoord","_unsigned_int",0}, | |
2101 | { "_wxCoord","_wxWindowID",0}, | |
2102 | { "_wxCoord","_uint",0}, | |
2103 | { "_wxCoord","_EBool",0}, | |
2104 | { "_wxCoord","_size_t",0}, | |
c368d904 | 2105 | { "_wxCoord","_time_t",0}, |
f6bcfd97 | 2106 | { "_wxCoord","_wxPrintQuality",0}, |
f6bcfd97 | 2107 | { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler}, |
f6bcfd97 | 2108 | { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow}, |
f6bcfd97 BP |
2109 | {0,0,0}}; |
2110 | ||
2111 | static PyObject *SWIG_globals; | |
2112 | #ifdef __cplusplus | |
2113 | extern "C" | |
2114 | #endif | |
2115 | SWIGEXPORT(void) initcalendarc() { | |
2116 | PyObject *m, *d; | |
2117 | SWIG_globals = SWIG_newvarlink(); | |
2118 | m = Py_InitModule("calendarc", calendarcMethods); | |
2119 | d = PyModule_GetDict(m); | |
2120 | PyDict_SetItemString(d,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST)); | |
2121 | PyDict_SetItemString(d,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST)); | |
2122 | PyDict_SetItemString(d,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS)); | |
2123 | PyDict_SetItemString(d,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE)); | |
2124 | PyDict_SetItemString(d,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE)); | |
ab11ebfa RD |
2125 | PyDict_SetItemString(d,"wxCAL_SEQUENTIAL_MONTH_SELECTION", PyInt_FromLong((long) wxCAL_SEQUENTIAL_MONTH_SELECTION)); |
2126 | PyDict_SetItemString(d,"wxCAL_SHOW_SURROUNDING_WEEKS", PyInt_FromLong((long) wxCAL_SHOW_SURROUNDING_WEEKS)); | |
f6bcfd97 BP |
2127 | PyDict_SetItemString(d,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE)); |
2128 | PyDict_SetItemString(d,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER)); | |
2129 | PyDict_SetItemString(d,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY)); | |
eedf876b RD |
2130 | PyDict_SetItemString(d,"wxCAL_HITTEST_INCMONTH", PyInt_FromLong((long) wxCAL_HITTEST_INCMONTH)); |
2131 | PyDict_SetItemString(d,"wxCAL_HITTEST_DECMONTH", PyInt_FromLong((long) wxCAL_HITTEST_DECMONTH)); | |
2132 | PyDict_SetItemString(d,"wxCAL_HITTEST_SURROUNDING_WEEK", PyInt_FromLong((long) wxCAL_HITTEST_SURROUNDING_WEEK)); | |
2133 | PyDict_SetItemString(d,"wxCAL_BORDER_NONE", PyInt_FromLong((long) wxCAL_BORDER_NONE)); | |
2134 | PyDict_SetItemString(d,"wxCAL_BORDER_SQUARE", PyInt_FromLong((long) wxCAL_BORDER_SQUARE)); | |
2135 | PyDict_SetItemString(d,"wxCAL_BORDER_ROUND", PyInt_FromLong((long) wxCAL_BORDER_ROUND)); | |
f6bcfd97 BP |
2136 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED)); |
2137 | PyDict_SetItemString(d,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED)); | |
2138 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED)); | |
2139 | PyDict_SetItemString(d,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED)); | |
2140 | PyDict_SetItemString(d,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED)); | |
2141 | PyDict_SetItemString(d,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED)); | |
e508a2b6 RD |
2142 | |
2143 | wxClassInfo::CleanUpClasses(); | |
2144 | wxClassInfo::InitializeClasses(); | |
f6bcfd97 BP |
2145 | { |
2146 | int i; | |
2147 | for (i = 0; _swig_mapping[i].n1; i++) | |
2148 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2149 | } | |
2150 | } |