]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
cc6dd355 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
d14a1e28 RD |
50 | |
51 | /*********************************************************************** | |
52 | * common.swg for wxPython | |
53 | * | |
54 | * Include only the function prototypes and such from SWIG's common.swg, | |
55 | * but not the runtime functions themselves. This helps keep the | |
56 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
57 | * anyway. | |
58 | * | |
59 | ************************************************************************/ | |
60 | ||
61 | #include <string.h> | |
62 | ||
cc6dd355 RD |
63 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
64 | # if defined(_MSC_VER) || defined(__GNUC__) | |
65 | # if defined(STATIC_LINKED) | |
66 | # define SWIGEXPORT(a) a | |
67 | # define SWIGIMPORT(a) extern a | |
68 | # else | |
69 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
70 | # define SWIGIMPORT(a) extern a | |
71 | # endif | |
72 | # else | |
73 | # if defined(__BORLANDC__) | |
74 | # define SWIGEXPORT(a) a _export | |
75 | # define SWIGIMPORT(a) a _export | |
76 | # else | |
77 | # define SWIGEXPORT(a) a | |
78 | # define SWIGIMPORT(a) a | |
79 | # endif | |
80 | # endif | |
d14a1e28 | 81 | #else |
cc6dd355 RD |
82 | # define SWIGEXPORT(a) a |
83 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
84 | #endif |
85 | ||
86 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 87 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 88 | #else |
cc6dd355 | 89 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
90 | #endif |
91 | ||
d14a1e28 RD |
92 | #ifdef __cplusplus |
93 | extern "C" { | |
94 | #endif | |
95 | ||
96 | typedef void *(*swig_converter_func)(void *); | |
97 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
98 | ||
99 | typedef struct swig_type_info { | |
cc6dd355 | 100 | const char *name; |
d14a1e28 RD |
101 | swig_converter_func converter; |
102 | const char *str; | |
cc6dd355 | 103 | void *clientdata; |
d14a1e28 RD |
104 | swig_dycast_func dcast; |
105 | struct swig_type_info *next; | |
106 | struct swig_type_info *prev; | |
107 | } swig_type_info; | |
108 | ||
109 | ||
110 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
112 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
114 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
116 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
117 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
118 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
119 | |
120 | ||
121 | #ifdef __cplusplus | |
122 | } | |
9d1d5697 | 123 | |
d14a1e28 RD |
124 | #endif |
125 | ||
cc6dd355 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | ||
cc6dd355 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | ||
199 | /* Contract support */ | |
200 | ||
9d1d5697 | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
208 | ||
209 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
210 | ||
211 | #define SWIGTYPE_p_wxDateTime__WeekDay swig_types[0] | |
212 | #define SWIGTYPE_p_wxColour swig_types[1] | |
213 | #define SWIGTYPE_p_wxObject swig_types[2] | |
214 | #define SWIGTYPE_p_wxCalendarEvent swig_types[3] | |
215 | #define SWIGTYPE_p_wxCalendarDateAttr swig_types[4] | |
216 | #define SWIGTYPE_p_wxWindow swig_types[5] | |
217 | #define SWIGTYPE_p_wxCommandEvent swig_types[6] | |
218 | #define SWIGTYPE_p_wxString swig_types[7] | |
219 | #define SWIGTYPE_p_wxEvtHandler swig_types[8] | |
220 | #define SWIGTYPE_p_wxFont swig_types[9] | |
221 | #define SWIGTYPE_p_wxDateTime swig_types[10] | |
222 | #define SWIGTYPE_p_wxControl swig_types[11] | |
223 | #define SWIGTYPE_p_wxCalendarCtrl swig_types[12] | |
224 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
225 | static swig_type_info *swig_types[15]; | |
226 | ||
227 | /* -------- TYPES TABLE (END) -------- */ | |
228 | ||
229 | ||
230 | /*----------------------------------------------- | |
231 | @(target):= _calendar.so | |
232 | ------------------------------------------------*/ | |
233 | #define SWIG_init init_calendar | |
234 | ||
235 | #define SWIG_name "_calendar" | |
236 | ||
237 | #include "wx/wxPython/wxPython.h" | |
238 | #include "wx/wxPython/pyclasses.h" | |
239 | ||
240 | #include <wx/calctrl.h> | |
241 | ||
242 | ||
243 | DECLARE_DEF_STRING(CalendarNameStr); | |
244 | ||
245 | #ifdef __cplusplus | |
246 | extern "C" { | |
247 | #endif | |
248 | static PyObject *_wrap_new_CalendarDateAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
249 | PyObject *resultobj; | |
250 | wxColour *arg1 = 0 ; | |
251 | wxColour const &arg2_defvalue = wxNullColour ; | |
252 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
253 | wxColour const &arg3_defvalue = wxNullColour ; | |
254 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
255 | wxFont const &arg4_defvalue = wxNullFont ; | |
256 | wxFont *arg4 = (wxFont *) &arg4_defvalue ; | |
257 | int arg5 = (int) wxCAL_BORDER_NONE ; | |
258 | wxCalendarDateAttr *result; | |
259 | wxColour temp1 ; | |
260 | wxColour temp2 ; | |
261 | wxColour temp3 ; | |
262 | PyObject * obj0 = 0 ; | |
263 | PyObject * obj1 = 0 ; | |
264 | PyObject * obj2 = 0 ; | |
265 | PyObject * obj3 = 0 ; | |
266 | char *kwnames[] = { | |
267 | (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL | |
268 | }; | |
269 | ||
270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOi:new_CalendarDateAttr",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
271 | { | |
272 | arg1 = &temp1; | |
273 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
274 | } | |
275 | if (obj1) { | |
276 | { | |
277 | arg2 = &temp2; | |
278 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
279 | } | |
280 | } | |
281 | if (obj2) { | |
282 | { | |
283 | arg3 = &temp3; | |
284 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
285 | } | |
286 | } | |
287 | if (obj3) { | |
288 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
289 | if (arg4 == NULL) { | |
290 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
291 | } | |
292 | } | |
293 | { | |
294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
295 | result = (wxCalendarDateAttr *)new wxCalendarDateAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxColour const &)*arg3,(wxFont const &)*arg4,(wxCalendarDateBorder )arg5); | |
296 | ||
297 | wxPyEndAllowThreads(__tstate); | |
298 | if (PyErr_Occurred()) SWIG_fail; | |
299 | } | |
300 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 1); | |
301 | return resultobj; | |
302 | fail: | |
303 | return NULL; | |
304 | } | |
305 | ||
306 | ||
307 | static PyObject *_wrap_new_CalendarDateAttrBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
308 | PyObject *resultobj; | |
309 | int arg1 ; | |
310 | wxColour const &arg2_defvalue = wxNullColour ; | |
311 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
312 | wxCalendarDateAttr *result; | |
313 | wxColour temp2 ; | |
314 | PyObject * obj1 = 0 ; | |
315 | char *kwnames[] = { | |
316 | (char *) "border",(char *) "colBorder", NULL | |
317 | }; | |
318 | ||
319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|O:new_CalendarDateAttrBorder",kwnames,&arg1,&obj1)) goto fail; | |
320 | if (obj1) { | |
321 | { | |
322 | arg2 = &temp2; | |
323 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
324 | } | |
325 | } | |
326 | { | |
327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328 | result = (wxCalendarDateAttr *)new wxCalendarDateAttr((wxCalendarDateBorder )arg1,(wxColour const &)*arg2); | |
329 | ||
330 | wxPyEndAllowThreads(__tstate); | |
331 | if (PyErr_Occurred()) SWIG_fail; | |
332 | } | |
333 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 1); | |
334 | return resultobj; | |
335 | fail: | |
336 | return NULL; | |
337 | } | |
338 | ||
339 | ||
340 | static PyObject *_wrap_CalendarDateAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
341 | PyObject *resultobj; | |
342 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
343 | wxColour *arg2 = 0 ; | |
344 | wxColour temp2 ; | |
345 | PyObject * obj0 = 0 ; | |
346 | PyObject * obj1 = 0 ; | |
347 | char *kwnames[] = { | |
348 | (char *) "self",(char *) "colText", NULL | |
349 | }; | |
350 | ||
351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
353 | { | |
354 | arg2 = &temp2; | |
355 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
356 | } | |
357 | { | |
358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
359 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
360 | ||
361 | wxPyEndAllowThreads(__tstate); | |
362 | if (PyErr_Occurred()) SWIG_fail; | |
363 | } | |
364 | Py_INCREF(Py_None); resultobj = Py_None; | |
365 | return resultobj; | |
366 | fail: | |
367 | return NULL; | |
368 | } | |
369 | ||
370 | ||
371 | static PyObject *_wrap_CalendarDateAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
372 | PyObject *resultobj; | |
373 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
374 | wxColour *arg2 = 0 ; | |
375 | wxColour temp2 ; | |
376 | PyObject * obj0 = 0 ; | |
377 | PyObject * obj1 = 0 ; | |
378 | char *kwnames[] = { | |
379 | (char *) "self",(char *) "colBack", NULL | |
380 | }; | |
381 | ||
382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
384 | { | |
385 | arg2 = &temp2; | |
386 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
387 | } | |
388 | { | |
389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
390 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
391 | ||
392 | wxPyEndAllowThreads(__tstate); | |
393 | if (PyErr_Occurred()) SWIG_fail; | |
394 | } | |
395 | Py_INCREF(Py_None); resultobj = Py_None; | |
396 | return resultobj; | |
397 | fail: | |
398 | return NULL; | |
399 | } | |
400 | ||
401 | ||
402 | static PyObject *_wrap_CalendarDateAttr_SetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
403 | PyObject *resultobj; | |
404 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
405 | wxColour *arg2 = 0 ; | |
406 | wxColour temp2 ; | |
407 | PyObject * obj0 = 0 ; | |
408 | PyObject * obj1 = 0 ; | |
409 | char *kwnames[] = { | |
410 | (char *) "self",(char *) "col", NULL | |
411 | }; | |
412 | ||
413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorderColour",kwnames,&obj0,&obj1)) goto fail; | |
414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
415 | { | |
416 | arg2 = &temp2; | |
417 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
418 | } | |
419 | { | |
420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
421 | (arg1)->SetBorderColour((wxColour const &)*arg2); | |
422 | ||
423 | wxPyEndAllowThreads(__tstate); | |
424 | if (PyErr_Occurred()) SWIG_fail; | |
425 | } | |
426 | Py_INCREF(Py_None); resultobj = Py_None; | |
427 | return resultobj; | |
428 | fail: | |
429 | return NULL; | |
430 | } | |
431 | ||
432 | ||
433 | static PyObject *_wrap_CalendarDateAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
434 | PyObject *resultobj; | |
435 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
436 | wxFont *arg2 = 0 ; | |
437 | PyObject * obj0 = 0 ; | |
438 | PyObject * obj1 = 0 ; | |
439 | char *kwnames[] = { | |
440 | (char *) "self",(char *) "font", NULL | |
441 | }; | |
442 | ||
443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
445 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
446 | if (arg2 == NULL) { | |
447 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
448 | } | |
449 | { | |
450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
451 | (arg1)->SetFont((wxFont const &)*arg2); | |
452 | ||
453 | wxPyEndAllowThreads(__tstate); | |
454 | if (PyErr_Occurred()) SWIG_fail; | |
455 | } | |
456 | Py_INCREF(Py_None); resultobj = Py_None; | |
457 | return resultobj; | |
458 | fail: | |
459 | return NULL; | |
460 | } | |
461 | ||
462 | ||
463 | static PyObject *_wrap_CalendarDateAttr_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
464 | PyObject *resultobj; | |
465 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
466 | int arg2 ; | |
467 | PyObject * obj0 = 0 ; | |
468 | char *kwnames[] = { | |
469 | (char *) "self",(char *) "border", NULL | |
470 | }; | |
471 | ||
472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CalendarDateAttr_SetBorder",kwnames,&obj0,&arg2)) goto fail; | |
473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
474 | { | |
475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
476 | (arg1)->SetBorder((wxCalendarDateBorder )arg2); | |
477 | ||
478 | wxPyEndAllowThreads(__tstate); | |
479 | if (PyErr_Occurred()) SWIG_fail; | |
480 | } | |
481 | Py_INCREF(Py_None); resultobj = Py_None; | |
482 | return resultobj; | |
483 | fail: | |
484 | return NULL; | |
485 | } | |
486 | ||
487 | ||
488 | static PyObject *_wrap_CalendarDateAttr_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
489 | PyObject *resultobj; | |
490 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
491 | bool arg2 ; | |
492 | PyObject * obj0 = 0 ; | |
493 | PyObject * obj1 = 0 ; | |
494 | char *kwnames[] = { | |
495 | (char *) "self",(char *) "holiday", NULL | |
496 | }; | |
497 | ||
498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetHoliday",kwnames,&obj0,&obj1)) goto fail; | |
499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
500 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
501 | if (PyErr_Occurred()) SWIG_fail; | |
502 | { | |
503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
504 | (arg1)->SetHoliday(arg2); | |
505 | ||
506 | wxPyEndAllowThreads(__tstate); | |
507 | if (PyErr_Occurred()) SWIG_fail; | |
508 | } | |
509 | Py_INCREF(Py_None); resultobj = Py_None; | |
510 | return resultobj; | |
511 | fail: | |
512 | return NULL; | |
513 | } | |
514 | ||
515 | ||
516 | static PyObject *_wrap_CalendarDateAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
517 | PyObject *resultobj; | |
518 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
519 | bool result; | |
520 | PyObject * obj0 = 0 ; | |
521 | char *kwnames[] = { | |
522 | (char *) "self", NULL | |
523 | }; | |
524 | ||
525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
527 | { | |
528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
529 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasTextColour(); | |
530 | ||
531 | wxPyEndAllowThreads(__tstate); | |
532 | if (PyErr_Occurred()) SWIG_fail; | |
533 | } | |
534 | resultobj = PyInt_FromLong((long)result); | |
535 | return resultobj; | |
536 | fail: | |
537 | return NULL; | |
538 | } | |
539 | ||
540 | ||
541 | static PyObject *_wrap_CalendarDateAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
542 | PyObject *resultobj; | |
543 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
544 | bool result; | |
545 | PyObject * obj0 = 0 ; | |
546 | char *kwnames[] = { | |
547 | (char *) "self", NULL | |
548 | }; | |
549 | ||
550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
552 | { | |
553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
554 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasBackgroundColour(); | |
555 | ||
556 | wxPyEndAllowThreads(__tstate); | |
557 | if (PyErr_Occurred()) SWIG_fail; | |
558 | } | |
559 | resultobj = PyInt_FromLong((long)result); | |
560 | return resultobj; | |
561 | fail: | |
562 | return NULL; | |
563 | } | |
564 | ||
565 | ||
566 | static PyObject *_wrap_CalendarDateAttr_HasBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
567 | PyObject *resultobj; | |
568 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
569 | bool result; | |
570 | PyObject * obj0 = 0 ; | |
571 | char *kwnames[] = { | |
572 | (char *) "self", NULL | |
573 | }; | |
574 | ||
575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorderColour",kwnames,&obj0)) goto fail; | |
576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
577 | { | |
578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
579 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorderColour(); | |
580 | ||
581 | wxPyEndAllowThreads(__tstate); | |
582 | if (PyErr_Occurred()) SWIG_fail; | |
583 | } | |
584 | resultobj = PyInt_FromLong((long)result); | |
585 | return resultobj; | |
586 | fail: | |
587 | return NULL; | |
588 | } | |
589 | ||
590 | ||
591 | static PyObject *_wrap_CalendarDateAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
592 | PyObject *resultobj; | |
593 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
594 | bool result; | |
595 | PyObject * obj0 = 0 ; | |
596 | char *kwnames[] = { | |
597 | (char *) "self", NULL | |
598 | }; | |
599 | ||
600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasFont",kwnames,&obj0)) goto fail; | |
601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
602 | { | |
603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
604 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasFont(); | |
605 | ||
606 | wxPyEndAllowThreads(__tstate); | |
607 | if (PyErr_Occurred()) SWIG_fail; | |
608 | } | |
609 | resultobj = PyInt_FromLong((long)result); | |
610 | return resultobj; | |
611 | fail: | |
612 | return NULL; | |
613 | } | |
614 | ||
615 | ||
616 | static PyObject *_wrap_CalendarDateAttr_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
617 | PyObject *resultobj; | |
618 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
619 | bool result; | |
620 | PyObject * obj0 = 0 ; | |
621 | char *kwnames[] = { | |
622 | (char *) "self", NULL | |
623 | }; | |
624 | ||
625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorder",kwnames,&obj0)) goto fail; | |
626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
627 | { | |
628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
629 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorder(); | |
630 | ||
631 | wxPyEndAllowThreads(__tstate); | |
632 | if (PyErr_Occurred()) SWIG_fail; | |
633 | } | |
634 | resultobj = PyInt_FromLong((long)result); | |
635 | return resultobj; | |
636 | fail: | |
637 | return NULL; | |
638 | } | |
639 | ||
640 | ||
641 | static PyObject *_wrap_CalendarDateAttr_IsHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
642 | PyObject *resultobj; | |
643 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
644 | bool result; | |
645 | PyObject * obj0 = 0 ; | |
646 | char *kwnames[] = { | |
647 | (char *) "self", NULL | |
648 | }; | |
649 | ||
650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_IsHoliday",kwnames,&obj0)) goto fail; | |
651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
652 | { | |
653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
654 | result = (bool)((wxCalendarDateAttr const *)arg1)->IsHoliday(); | |
655 | ||
656 | wxPyEndAllowThreads(__tstate); | |
657 | if (PyErr_Occurred()) SWIG_fail; | |
658 | } | |
659 | resultobj = PyInt_FromLong((long)result); | |
660 | return resultobj; | |
661 | fail: | |
662 | return NULL; | |
663 | } | |
664 | ||
665 | ||
666 | static PyObject *_wrap_CalendarDateAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
667 | PyObject *resultobj; | |
668 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
669 | wxColour result; | |
670 | PyObject * obj0 = 0 ; | |
671 | char *kwnames[] = { | |
672 | (char *) "self", NULL | |
673 | }; | |
674 | ||
675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
677 | { | |
678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
679 | result = ((wxCalendarDateAttr const *)arg1)->GetTextColour(); | |
680 | ||
681 | wxPyEndAllowThreads(__tstate); | |
682 | if (PyErr_Occurred()) SWIG_fail; | |
683 | } | |
684 | { | |
685 | wxColour * resultptr; | |
686 | resultptr = new wxColour((wxColour &) result); | |
687 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
688 | } | |
689 | return resultobj; | |
690 | fail: | |
691 | return NULL; | |
692 | } | |
693 | ||
694 | ||
695 | static PyObject *_wrap_CalendarDateAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
696 | PyObject *resultobj; | |
697 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
698 | wxColour result; | |
699 | PyObject * obj0 = 0 ; | |
700 | char *kwnames[] = { | |
701 | (char *) "self", NULL | |
702 | }; | |
703 | ||
704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
706 | { | |
707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
708 | result = ((wxCalendarDateAttr const *)arg1)->GetBackgroundColour(); | |
709 | ||
710 | wxPyEndAllowThreads(__tstate); | |
711 | if (PyErr_Occurred()) SWIG_fail; | |
712 | } | |
713 | { | |
714 | wxColour * resultptr; | |
715 | resultptr = new wxColour((wxColour &) result); | |
716 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
717 | } | |
718 | return resultobj; | |
719 | fail: | |
720 | return NULL; | |
721 | } | |
722 | ||
723 | ||
724 | static PyObject *_wrap_CalendarDateAttr_GetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
725 | PyObject *resultobj; | |
726 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
727 | wxColour result; | |
728 | PyObject * obj0 = 0 ; | |
729 | char *kwnames[] = { | |
730 | (char *) "self", NULL | |
731 | }; | |
732 | ||
733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorderColour",kwnames,&obj0)) goto fail; | |
734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
735 | { | |
736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
737 | result = ((wxCalendarDateAttr const *)arg1)->GetBorderColour(); | |
738 | ||
739 | wxPyEndAllowThreads(__tstate); | |
740 | if (PyErr_Occurred()) SWIG_fail; | |
741 | } | |
742 | { | |
743 | wxColour * resultptr; | |
744 | resultptr = new wxColour((wxColour &) result); | |
745 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
746 | } | |
747 | return resultobj; | |
748 | fail: | |
749 | return NULL; | |
750 | } | |
751 | ||
752 | ||
753 | static PyObject *_wrap_CalendarDateAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
754 | PyObject *resultobj; | |
755 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
756 | wxFont result; | |
757 | PyObject * obj0 = 0 ; | |
758 | char *kwnames[] = { | |
759 | (char *) "self", NULL | |
760 | }; | |
761 | ||
762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetFont",kwnames,&obj0)) goto fail; | |
763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
764 | { | |
765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
766 | result = ((wxCalendarDateAttr const *)arg1)->GetFont(); | |
767 | ||
768 | wxPyEndAllowThreads(__tstate); | |
769 | if (PyErr_Occurred()) SWIG_fail; | |
770 | } | |
771 | { | |
772 | wxFont * resultptr; | |
773 | resultptr = new wxFont((wxFont &) result); | |
774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
775 | } | |
776 | return resultobj; | |
777 | fail: | |
778 | return NULL; | |
779 | } | |
780 | ||
781 | ||
782 | static PyObject *_wrap_CalendarDateAttr_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
783 | PyObject *resultobj; | |
784 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
785 | int result; | |
786 | PyObject * obj0 = 0 ; | |
787 | char *kwnames[] = { | |
788 | (char *) "self", NULL | |
789 | }; | |
790 | ||
791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorder",kwnames,&obj0)) goto fail; | |
792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
793 | { | |
794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
795 | result = (int)((wxCalendarDateAttr const *)arg1)->GetBorder(); | |
796 | ||
797 | wxPyEndAllowThreads(__tstate); | |
798 | if (PyErr_Occurred()) SWIG_fail; | |
799 | } | |
800 | resultobj = PyInt_FromLong((long)result); | |
801 | return resultobj; | |
802 | fail: | |
803 | return NULL; | |
804 | } | |
805 | ||
806 | ||
807 | static PyObject * CalendarDateAttr_swigregister(PyObject *self, PyObject *args) { | |
808 | PyObject *obj; | |
809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
810 | SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr, obj); | |
811 | Py_INCREF(obj); | |
812 | return Py_BuildValue((char *)""); | |
813 | } | |
814 | static PyObject *_wrap_new_CalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
815 | PyObject *resultobj; | |
816 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
817 | wxEventType arg2 ; | |
818 | wxCalendarEvent *result; | |
819 | PyObject * obj0 = 0 ; | |
820 | char *kwnames[] = { | |
821 | (char *) "cal",(char *) "type", NULL | |
822 | }; | |
823 | ||
824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:new_CalendarEvent",kwnames,&obj0,&arg2)) goto fail; | |
825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
826 | { | |
827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
828 | result = (wxCalendarEvent *)new wxCalendarEvent(arg1,arg2); | |
829 | ||
830 | wxPyEndAllowThreads(__tstate); | |
831 | if (PyErr_Occurred()) SWIG_fail; | |
832 | } | |
833 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarEvent, 1); | |
834 | return resultobj; | |
835 | fail: | |
836 | return NULL; | |
837 | } | |
838 | ||
839 | ||
840 | static PyObject *_wrap_CalendarEvent_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
841 | PyObject *resultobj; | |
842 | wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ; | |
843 | wxDateTime *result; | |
844 | PyObject * obj0 = 0 ; | |
845 | char *kwnames[] = { | |
846 | (char *) "self", NULL | |
847 | }; | |
848 | ||
849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetDate",kwnames,&obj0)) goto fail; | |
850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
851 | { | |
852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
853 | { | |
854 | wxDateTime const &_result_ref = ((wxCalendarEvent const *)arg1)->GetDate(); | |
855 | result = (wxDateTime *) &_result_ref; | |
856 | } | |
857 | ||
858 | wxPyEndAllowThreads(__tstate); | |
859 | if (PyErr_Occurred()) SWIG_fail; | |
860 | } | |
861 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
862 | return resultobj; | |
863 | fail: | |
864 | return NULL; | |
865 | } | |
866 | ||
867 | ||
868 | static PyObject *_wrap_CalendarEvent_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
869 | PyObject *resultobj; | |
870 | wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ; | |
871 | int result; | |
872 | PyObject * obj0 = 0 ; | |
873 | char *kwnames[] = { | |
874 | (char *) "self", NULL | |
875 | }; | |
876 | ||
877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetWeekDay",kwnames,&obj0)) goto fail; | |
878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
879 | { | |
880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
881 | result = (int)((wxCalendarEvent const *)arg1)->GetWeekDay(); | |
882 | ||
883 | wxPyEndAllowThreads(__tstate); | |
884 | if (PyErr_Occurred()) SWIG_fail; | |
885 | } | |
886 | resultobj = PyInt_FromLong((long)result); | |
887 | return resultobj; | |
888 | fail: | |
889 | return NULL; | |
890 | } | |
891 | ||
892 | ||
893 | static PyObject * CalendarEvent_swigregister(PyObject *self, PyObject *args) { | |
894 | PyObject *obj; | |
895 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
896 | SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent, obj); | |
897 | Py_INCREF(obj); | |
898 | return Py_BuildValue((char *)""); | |
899 | } | |
900 | static PyObject *_wrap_new_CalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
901 | PyObject *resultobj; | |
902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 903 | int arg2 ; |
d14a1e28 RD |
904 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; |
905 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
906 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
907 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
908 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
909 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
910 | long arg6 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ; | |
911 | wxString const &arg7_defvalue = wxPyCalendarNameStr ; | |
912 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
913 | wxCalendarCtrl *result; | |
914 | wxPoint temp4 ; | |
915 | wxSize temp5 ; | |
e811c8ce | 916 | bool temp7 = False ; |
d14a1e28 RD |
917 | PyObject * obj0 = 0 ; |
918 | PyObject * obj2 = 0 ; | |
919 | PyObject * obj3 = 0 ; | |
920 | PyObject * obj4 = 0 ; | |
921 | PyObject * obj6 = 0 ; | |
922 | char *kwnames[] = { | |
923 | (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
924 | }; | |
925 | ||
926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlO:new_CalendarCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
928 | if (obj2) { | |
929 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
930 | if (arg3 == NULL) { | |
931 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
932 | } | |
933 | } | |
934 | if (obj3) { | |
935 | { | |
936 | arg4 = &temp4; | |
937 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
938 | } | |
939 | } | |
940 | if (obj4) { | |
941 | { | |
942 | arg5 = &temp5; | |
943 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
944 | } | |
945 | } | |
946 | if (obj6) { | |
947 | { | |
948 | arg7 = wxString_in_helper(obj6); | |
949 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 950 | temp7 = True; |
d14a1e28 RD |
951 | } |
952 | } | |
953 | { | |
954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
955 | result = (wxCalendarCtrl *)new wxCalendarCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
956 | ||
957 | wxPyEndAllowThreads(__tstate); | |
958 | if (PyErr_Occurred()) SWIG_fail; | |
959 | } | |
960 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarCtrl, 1); | |
961 | { | |
962 | if (temp7) | |
963 | delete arg7; | |
964 | } | |
965 | return resultobj; | |
966 | fail: | |
967 | { | |
968 | if (temp7) | |
969 | delete arg7; | |
970 | } | |
971 | return NULL; | |
972 | } | |
973 | ||
974 | ||
975 | static PyObject *_wrap_new_PreCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
976 | PyObject *resultobj; | |
977 | wxCalendarCtrl *result; | |
978 | char *kwnames[] = { | |
979 | NULL | |
980 | }; | |
981 | ||
982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCalendarCtrl",kwnames)) goto fail; | |
983 | { | |
984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
985 | result = (wxCalendarCtrl *)new wxCalendarCtrl(); | |
986 | ||
987 | wxPyEndAllowThreads(__tstate); | |
988 | if (PyErr_Occurred()) SWIG_fail; | |
989 | } | |
990 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarCtrl, 1); | |
991 | return resultobj; | |
992 | fail: | |
993 | return NULL; | |
994 | } | |
995 | ||
996 | ||
997 | static PyObject *_wrap_CalendarCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
998 | PyObject *resultobj; | |
999 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1000 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1001 | int arg3 ; |
d14a1e28 RD |
1002 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; |
1003 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
1004 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1005 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1006 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1007 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1008 | long arg7 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ; | |
1009 | wxString const &arg8_defvalue = wxPyCalendarNameStr ; | |
1010 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1011 | bool result; | |
1012 | wxPoint temp5 ; | |
1013 | wxSize temp6 ; | |
e811c8ce | 1014 | bool temp8 = False ; |
d14a1e28 RD |
1015 | PyObject * obj0 = 0 ; |
1016 | PyObject * obj1 = 0 ; | |
1017 | PyObject * obj3 = 0 ; | |
1018 | PyObject * obj4 = 0 ; | |
1019 | PyObject * obj5 = 0 ; | |
1020 | PyObject * obj7 = 0 ; | |
1021 | char *kwnames[] = { | |
1022 | (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1023 | }; | |
1024 | ||
1025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlO:CalendarCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
1026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1027 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1028 | if (obj3) { | |
1029 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1030 | if (arg4 == NULL) { | |
1031 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1032 | } | |
1033 | } | |
1034 | if (obj4) { | |
1035 | { | |
1036 | arg5 = &temp5; | |
1037 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1038 | } | |
1039 | } | |
1040 | if (obj5) { | |
1041 | { | |
1042 | arg6 = &temp6; | |
1043 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1044 | } | |
1045 | } | |
1046 | if (obj7) { | |
1047 | { | |
1048 | arg8 = wxString_in_helper(obj7); | |
1049 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1050 | temp8 = True; |
d14a1e28 RD |
1051 | } |
1052 | } | |
1053 | { | |
1054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1055 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
1056 | ||
1057 | wxPyEndAllowThreads(__tstate); | |
1058 | if (PyErr_Occurred()) SWIG_fail; | |
1059 | } | |
1060 | resultobj = PyInt_FromLong((long)result); | |
1061 | { | |
1062 | if (temp8) | |
1063 | delete arg8; | |
1064 | } | |
1065 | return resultobj; | |
1066 | fail: | |
1067 | { | |
1068 | if (temp8) | |
1069 | delete arg8; | |
1070 | } | |
1071 | return NULL; | |
1072 | } | |
1073 | ||
1074 | ||
1075 | static PyObject *_wrap_CalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1076 | PyObject *resultobj; | |
1077 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1078 | wxDateTime *arg2 = 0 ; | |
1079 | PyObject * obj0 = 0 ; | |
1080 | PyObject * obj1 = 0 ; | |
1081 | char *kwnames[] = { | |
1082 | (char *) "self",(char *) "date", NULL | |
1083 | }; | |
1084 | ||
1085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetDate",kwnames,&obj0,&obj1)) goto fail; | |
1086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1087 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1088 | if (arg2 == NULL) { | |
1089 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1090 | } | |
1091 | { | |
1092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1093 | (arg1)->SetDate((wxDateTime const &)*arg2); | |
1094 | ||
1095 | wxPyEndAllowThreads(__tstate); | |
1096 | if (PyErr_Occurred()) SWIG_fail; | |
1097 | } | |
1098 | Py_INCREF(Py_None); resultobj = Py_None; | |
1099 | return resultobj; | |
1100 | fail: | |
1101 | return NULL; | |
1102 | } | |
1103 | ||
1104 | ||
1105 | static PyObject *_wrap_CalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1106 | PyObject *resultobj; | |
1107 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1108 | wxDateTime *result; | |
1109 | PyObject * obj0 = 0 ; | |
1110 | char *kwnames[] = { | |
1111 | (char *) "self", NULL | |
1112 | }; | |
1113 | ||
1114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetDate",kwnames,&obj0)) goto fail; | |
1115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1116 | { | |
1117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1118 | { | |
1119 | wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetDate(); | |
1120 | result = (wxDateTime *) &_result_ref; | |
1121 | } | |
1122 | ||
1123 | wxPyEndAllowThreads(__tstate); | |
1124 | if (PyErr_Occurred()) SWIG_fail; | |
1125 | } | |
1126 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
1127 | return resultobj; | |
1128 | fail: | |
1129 | return NULL; | |
1130 | } | |
1131 | ||
1132 | ||
1133 | static PyObject *_wrap_CalendarCtrl_SetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1134 | PyObject *resultobj; | |
1135 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1136 | wxDateTime const &arg2_defvalue = wxDefaultDateTime ; | |
1137 | wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ; | |
1138 | bool result; | |
1139 | PyObject * obj0 = 0 ; | |
1140 | PyObject * obj1 = 0 ; | |
1141 | char *kwnames[] = { | |
1142 | (char *) "self",(char *) "date", NULL | |
1143 | }; | |
1144 | ||
1145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames,&obj0,&obj1)) goto fail; | |
1146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1147 | if (obj1) { | |
1148 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1149 | if (arg2 == NULL) { | |
1150 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1151 | } | |
1152 | } | |
1153 | { | |
1154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1155 | result = (bool)(arg1)->SetLowerDateLimit((wxDateTime const &)*arg2); | |
1156 | ||
1157 | wxPyEndAllowThreads(__tstate); | |
1158 | if (PyErr_Occurred()) SWIG_fail; | |
1159 | } | |
1160 | resultobj = PyInt_FromLong((long)result); | |
1161 | return resultobj; | |
1162 | fail: | |
1163 | return NULL; | |
1164 | } | |
1165 | ||
1166 | ||
1167 | static PyObject *_wrap_CalendarCtrl_GetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1168 | PyObject *resultobj; | |
1169 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1170 | wxDateTime *result; | |
1171 | PyObject * obj0 = 0 ; | |
1172 | char *kwnames[] = { | |
1173 | (char *) "self", NULL | |
1174 | }; | |
1175 | ||
1176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames,&obj0)) goto fail; | |
1177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1178 | { | |
1179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1180 | { | |
1181 | wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetLowerDateLimit(); | |
1182 | result = (wxDateTime *) &_result_ref; | |
1183 | } | |
1184 | ||
1185 | wxPyEndAllowThreads(__tstate); | |
1186 | if (PyErr_Occurred()) SWIG_fail; | |
1187 | } | |
1188 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
1189 | return resultobj; | |
1190 | fail: | |
1191 | return NULL; | |
1192 | } | |
1193 | ||
1194 | ||
1195 | static PyObject *_wrap_CalendarCtrl_SetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1196 | PyObject *resultobj; | |
1197 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1198 | wxDateTime const &arg2_defvalue = wxDefaultDateTime ; | |
1199 | wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ; | |
1200 | bool result; | |
1201 | PyObject * obj0 = 0 ; | |
1202 | PyObject * obj1 = 0 ; | |
1203 | char *kwnames[] = { | |
1204 | (char *) "self",(char *) "date", NULL | |
1205 | }; | |
1206 | ||
1207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames,&obj0,&obj1)) goto fail; | |
1208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1209 | if (obj1) { | |
1210 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1211 | if (arg2 == NULL) { | |
1212 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1213 | } | |
1214 | } | |
1215 | { | |
1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1217 | result = (bool)(arg1)->SetUpperDateLimit((wxDateTime const &)*arg2); | |
1218 | ||
1219 | wxPyEndAllowThreads(__tstate); | |
1220 | if (PyErr_Occurred()) SWIG_fail; | |
1221 | } | |
1222 | resultobj = PyInt_FromLong((long)result); | |
1223 | return resultobj; | |
1224 | fail: | |
1225 | return NULL; | |
1226 | } | |
1227 | ||
1228 | ||
1229 | static PyObject *_wrap_CalendarCtrl_GetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1230 | PyObject *resultobj; | |
1231 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1232 | wxDateTime *result; | |
1233 | PyObject * obj0 = 0 ; | |
1234 | char *kwnames[] = { | |
1235 | (char *) "self", NULL | |
1236 | }; | |
1237 | ||
1238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames,&obj0)) goto fail; | |
1239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1240 | { | |
1241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1242 | { | |
1243 | wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetUpperDateLimit(); | |
1244 | result = (wxDateTime *) &_result_ref; | |
1245 | } | |
1246 | ||
1247 | wxPyEndAllowThreads(__tstate); | |
1248 | if (PyErr_Occurred()) SWIG_fail; | |
1249 | } | |
1250 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
1251 | return resultobj; | |
1252 | fail: | |
1253 | return NULL; | |
1254 | } | |
1255 | ||
1256 | ||
1257 | static PyObject *_wrap_CalendarCtrl_SetDateRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1258 | PyObject *resultobj; | |
1259 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1260 | wxDateTime const &arg2_defvalue = wxDefaultDateTime ; | |
1261 | wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ; | |
1262 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
1263 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
1264 | bool result; | |
1265 | PyObject * obj0 = 0 ; | |
1266 | PyObject * obj1 = 0 ; | |
1267 | PyObject * obj2 = 0 ; | |
1268 | char *kwnames[] = { | |
1269 | (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL | |
1270 | }; | |
1271 | ||
1272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1274 | if (obj1) { | |
1275 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1276 | if (arg2 == NULL) { | |
1277 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1278 | } | |
1279 | } | |
1280 | if (obj2) { | |
1281 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1282 | if (arg3 == NULL) { | |
1283 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1284 | } | |
1285 | } | |
1286 | { | |
1287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1288 | result = (bool)(arg1)->SetDateRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
1289 | ||
1290 | wxPyEndAllowThreads(__tstate); | |
1291 | if (PyErr_Occurred()) SWIG_fail; | |
1292 | } | |
1293 | resultobj = PyInt_FromLong((long)result); | |
1294 | return resultobj; | |
1295 | fail: | |
1296 | return NULL; | |
1297 | } | |
1298 | ||
1299 | ||
1300 | static PyObject *_wrap_CalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1301 | PyObject *resultobj; | |
1302 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
e811c8ce | 1303 | bool arg2 = (bool) True ; |
d14a1e28 RD |
1304 | PyObject * obj0 = 0 ; |
1305 | PyObject * obj1 = 0 ; | |
1306 | char *kwnames[] = { | |
1307 | (char *) "self",(char *) "enable", NULL | |
1308 | }; | |
1309 | ||
1310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames,&obj0,&obj1)) goto fail; | |
1311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1312 | if (obj1) { | |
1313 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1314 | if (PyErr_Occurred()) SWIG_fail; | |
1315 | } | |
1316 | { | |
1317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1318 | (arg1)->EnableYearChange(arg2); | |
1319 | ||
1320 | wxPyEndAllowThreads(__tstate); | |
1321 | if (PyErr_Occurred()) SWIG_fail; | |
1322 | } | |
1323 | Py_INCREF(Py_None); resultobj = Py_None; | |
1324 | return resultobj; | |
1325 | fail: | |
1326 | return NULL; | |
1327 | } | |
1328 | ||
1329 | ||
1330 | static PyObject *_wrap_CalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1331 | PyObject *resultobj; | |
1332 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
e811c8ce | 1333 | bool arg2 = (bool) True ; |
d14a1e28 RD |
1334 | PyObject * obj0 = 0 ; |
1335 | PyObject * obj1 = 0 ; | |
1336 | char *kwnames[] = { | |
1337 | (char *) "self",(char *) "enable", NULL | |
1338 | }; | |
1339 | ||
1340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames,&obj0,&obj1)) goto fail; | |
1341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1342 | if (obj1) { | |
1343 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1344 | if (PyErr_Occurred()) SWIG_fail; | |
1345 | } | |
1346 | { | |
1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1348 | (arg1)->EnableMonthChange(arg2); | |
1349 | ||
1350 | wxPyEndAllowThreads(__tstate); | |
1351 | if (PyErr_Occurred()) SWIG_fail; | |
1352 | } | |
1353 | Py_INCREF(Py_None); resultobj = Py_None; | |
1354 | return resultobj; | |
1355 | fail: | |
1356 | return NULL; | |
1357 | } | |
1358 | ||
1359 | ||
1360 | static PyObject *_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1361 | PyObject *resultobj; | |
1362 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
e811c8ce | 1363 | bool arg2 = (bool) True ; |
d14a1e28 RD |
1364 | PyObject * obj0 = 0 ; |
1365 | PyObject * obj1 = 0 ; | |
1366 | char *kwnames[] = { | |
1367 | (char *) "self",(char *) "display", NULL | |
1368 | }; | |
1369 | ||
1370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames,&obj0,&obj1)) goto fail; | |
1371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1372 | if (obj1) { | |
1373 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1374 | if (PyErr_Occurred()) SWIG_fail; | |
1375 | } | |
1376 | { | |
1377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1378 | (arg1)->EnableHolidayDisplay(arg2); | |
1379 | ||
1380 | wxPyEndAllowThreads(__tstate); | |
1381 | if (PyErr_Occurred()) SWIG_fail; | |
1382 | } | |
1383 | Py_INCREF(Py_None); resultobj = Py_None; | |
1384 | return resultobj; | |
1385 | fail: | |
1386 | return NULL; | |
1387 | } | |
1388 | ||
1389 | ||
1390 | static PyObject *_wrap_CalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject *resultobj; | |
1392 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1393 | wxColour *arg2 = 0 ; | |
1394 | wxColour *arg3 = 0 ; | |
1395 | wxColour temp2 ; | |
1396 | wxColour temp3 ; | |
1397 | PyObject * obj0 = 0 ; | |
1398 | PyObject * obj1 = 0 ; | |
1399 | PyObject * obj2 = 0 ; | |
1400 | char *kwnames[] = { | |
1401 | (char *) "self",(char *) "colFg",(char *) "colBg", NULL | |
1402 | }; | |
1403 | ||
1404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1406 | { | |
1407 | arg2 = &temp2; | |
1408 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1409 | } | |
1410 | { | |
1411 | arg3 = &temp3; | |
1412 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
1413 | } | |
1414 | { | |
1415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1416 | (arg1)->SetHeaderColours((wxColour const &)*arg2,(wxColour const &)*arg3); | |
1417 | ||
1418 | wxPyEndAllowThreads(__tstate); | |
1419 | if (PyErr_Occurred()) SWIG_fail; | |
1420 | } | |
1421 | Py_INCREF(Py_None); resultobj = Py_None; | |
1422 | return resultobj; | |
1423 | fail: | |
1424 | return NULL; | |
1425 | } | |
1426 | ||
1427 | ||
1428 | static PyObject *_wrap_CalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1429 | PyObject *resultobj; | |
1430 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1431 | wxColour result; | |
1432 | PyObject * obj0 = 0 ; | |
1433 | char *kwnames[] = { | |
1434 | (char *) "self", NULL | |
1435 | }; | |
1436 | ||
1437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames,&obj0)) goto fail; | |
1438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1439 | { | |
1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1441 | result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourFg(); | |
1442 | ||
1443 | wxPyEndAllowThreads(__tstate); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
1446 | { | |
1447 | wxColour * resultptr; | |
1448 | resultptr = new wxColour((wxColour &) result); | |
1449 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1450 | } | |
1451 | return resultobj; | |
1452 | fail: | |
1453 | return NULL; | |
1454 | } | |
1455 | ||
1456 | ||
1457 | static PyObject *_wrap_CalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject *resultobj; | |
1459 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1460 | wxColour result; | |
1461 | PyObject * obj0 = 0 ; | |
1462 | char *kwnames[] = { | |
1463 | (char *) "self", NULL | |
1464 | }; | |
1465 | ||
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames,&obj0)) goto fail; | |
1467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1468 | { | |
1469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1470 | result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourBg(); | |
1471 | ||
1472 | wxPyEndAllowThreads(__tstate); | |
1473 | if (PyErr_Occurred()) SWIG_fail; | |
1474 | } | |
1475 | { | |
1476 | wxColour * resultptr; | |
1477 | resultptr = new wxColour((wxColour &) result); | |
1478 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1479 | } | |
1480 | return resultobj; | |
1481 | fail: | |
1482 | return NULL; | |
1483 | } | |
1484 | ||
1485 | ||
1486 | static PyObject *_wrap_CalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1487 | PyObject *resultobj; | |
1488 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1489 | wxColour *arg2 = 0 ; | |
1490 | wxColour *arg3 = 0 ; | |
1491 | wxColour temp2 ; | |
1492 | wxColour temp3 ; | |
1493 | PyObject * obj0 = 0 ; | |
1494 | PyObject * obj1 = 0 ; | |
1495 | PyObject * obj2 = 0 ; | |
1496 | char *kwnames[] = { | |
1497 | (char *) "self",(char *) "colFg",(char *) "colBg", NULL | |
1498 | }; | |
1499 | ||
1500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1502 | { | |
1503 | arg2 = &temp2; | |
1504 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1505 | } | |
1506 | { | |
1507 | arg3 = &temp3; | |
1508 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
1509 | } | |
1510 | { | |
1511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1512 | (arg1)->SetHighlightColours((wxColour const &)*arg2,(wxColour const &)*arg3); | |
1513 | ||
1514 | wxPyEndAllowThreads(__tstate); | |
1515 | if (PyErr_Occurred()) SWIG_fail; | |
1516 | } | |
1517 | Py_INCREF(Py_None); resultobj = Py_None; | |
1518 | return resultobj; | |
1519 | fail: | |
1520 | return NULL; | |
1521 | } | |
1522 | ||
1523 | ||
1524 | static PyObject *_wrap_CalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1525 | PyObject *resultobj; | |
1526 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1527 | wxColour result; | |
1528 | PyObject * obj0 = 0 ; | |
1529 | char *kwnames[] = { | |
1530 | (char *) "self", NULL | |
1531 | }; | |
1532 | ||
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames,&obj0)) goto fail; | |
1534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1535 | { | |
1536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1537 | result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourFg(); | |
1538 | ||
1539 | wxPyEndAllowThreads(__tstate); | |
1540 | if (PyErr_Occurred()) SWIG_fail; | |
1541 | } | |
1542 | { | |
1543 | wxColour * resultptr; | |
1544 | resultptr = new wxColour((wxColour &) result); | |
1545 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1546 | } | |
1547 | return resultobj; | |
1548 | fail: | |
1549 | return NULL; | |
1550 | } | |
1551 | ||
1552 | ||
1553 | static PyObject *_wrap_CalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1554 | PyObject *resultobj; | |
1555 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1556 | wxColour result; | |
1557 | PyObject * obj0 = 0 ; | |
1558 | char *kwnames[] = { | |
1559 | (char *) "self", NULL | |
1560 | }; | |
1561 | ||
1562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames,&obj0)) goto fail; | |
1563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1564 | { | |
1565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1566 | result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourBg(); | |
1567 | ||
1568 | wxPyEndAllowThreads(__tstate); | |
1569 | if (PyErr_Occurred()) SWIG_fail; | |
1570 | } | |
1571 | { | |
1572 | wxColour * resultptr; | |
1573 | resultptr = new wxColour((wxColour &) result); | |
1574 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1575 | } | |
1576 | return resultobj; | |
1577 | fail: | |
1578 | return NULL; | |
1579 | } | |
1580 | ||
1581 | ||
1582 | static PyObject *_wrap_CalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1583 | PyObject *resultobj; | |
1584 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1585 | wxColour *arg2 = 0 ; | |
1586 | wxColour *arg3 = 0 ; | |
1587 | wxColour temp2 ; | |
1588 | wxColour temp3 ; | |
1589 | PyObject * obj0 = 0 ; | |
1590 | PyObject * obj1 = 0 ; | |
1591 | PyObject * obj2 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "self",(char *) "colFg",(char *) "colBg", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1598 | { | |
1599 | arg2 = &temp2; | |
1600 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1601 | } | |
1602 | { | |
1603 | arg3 = &temp3; | |
1604 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
1605 | } | |
1606 | { | |
1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1608 | (arg1)->SetHolidayColours((wxColour const &)*arg2,(wxColour const &)*arg3); | |
1609 | ||
1610 | wxPyEndAllowThreads(__tstate); | |
1611 | if (PyErr_Occurred()) SWIG_fail; | |
1612 | } | |
1613 | Py_INCREF(Py_None); resultobj = Py_None; | |
1614 | return resultobj; | |
1615 | fail: | |
1616 | return NULL; | |
1617 | } | |
1618 | ||
1619 | ||
1620 | static PyObject *_wrap_CalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject *resultobj; | |
1622 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1623 | wxColour result; | |
1624 | PyObject * obj0 = 0 ; | |
1625 | char *kwnames[] = { | |
1626 | (char *) "self", NULL | |
1627 | }; | |
1628 | ||
1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames,&obj0)) goto fail; | |
1630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1631 | { | |
1632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1633 | result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourFg(); | |
1634 | ||
1635 | wxPyEndAllowThreads(__tstate); | |
1636 | if (PyErr_Occurred()) SWIG_fail; | |
1637 | } | |
1638 | { | |
1639 | wxColour * resultptr; | |
1640 | resultptr = new wxColour((wxColour &) result); | |
1641 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1642 | } | |
1643 | return resultobj; | |
1644 | fail: | |
1645 | return NULL; | |
1646 | } | |
1647 | ||
1648 | ||
1649 | static PyObject *_wrap_CalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject *resultobj; | |
1651 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1652 | wxColour result; | |
1653 | PyObject * obj0 = 0 ; | |
1654 | char *kwnames[] = { | |
1655 | (char *) "self", NULL | |
1656 | }; | |
1657 | ||
1658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames,&obj0)) goto fail; | |
1659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1660 | { | |
1661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1662 | result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourBg(); | |
1663 | ||
1664 | wxPyEndAllowThreads(__tstate); | |
1665 | if (PyErr_Occurred()) SWIG_fail; | |
1666 | } | |
1667 | { | |
1668 | wxColour * resultptr; | |
1669 | resultptr = new wxColour((wxColour &) result); | |
1670 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1671 | } | |
1672 | return resultobj; | |
1673 | fail: | |
1674 | return NULL; | |
1675 | } | |
1676 | ||
1677 | ||
1678 | static PyObject *_wrap_CalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1679 | PyObject *resultobj; | |
1680 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1681 | size_t arg2 ; | |
1682 | wxCalendarDateAttr *result; | |
1683 | PyObject * obj0 = 0 ; | |
1684 | PyObject * obj1 = 0 ; | |
1685 | char *kwnames[] = { | |
1686 | (char *) "self",(char *) "day", NULL | |
1687 | }; | |
1688 | ||
1689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_GetAttr",kwnames,&obj0,&obj1)) goto fail; | |
1690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1691 | arg2 = (size_t) PyInt_AsLong(obj1); | |
1692 | if (PyErr_Occurred()) SWIG_fail; | |
1693 | { | |
1694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1695 | result = (wxCalendarDateAttr *)((wxCalendarCtrl const *)arg1)->GetAttr(arg2); | |
1696 | ||
1697 | wxPyEndAllowThreads(__tstate); | |
1698 | if (PyErr_Occurred()) SWIG_fail; | |
1699 | } | |
1700 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 0); | |
1701 | return resultobj; | |
1702 | fail: | |
1703 | return NULL; | |
1704 | } | |
1705 | ||
1706 | ||
1707 | static PyObject *_wrap_CalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject *resultobj; | |
1709 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1710 | size_t arg2 ; | |
1711 | wxCalendarDateAttr *arg3 = (wxCalendarDateAttr *) 0 ; | |
1712 | PyObject * obj0 = 0 ; | |
1713 | PyObject * obj1 = 0 ; | |
1714 | PyObject * obj2 = 0 ; | |
1715 | char *kwnames[] = { | |
1716 | (char *) "self",(char *) "day",(char *) "attr", NULL | |
1717 | }; | |
1718 | ||
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1721 | arg2 = (size_t) PyInt_AsLong(obj1); | |
1722 | if (PyErr_Occurred()) SWIG_fail; | |
1723 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1724 | { | |
1725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1726 | (arg1)->SetAttr(arg2,arg3); | |
1727 | ||
1728 | wxPyEndAllowThreads(__tstate); | |
1729 | if (PyErr_Occurred()) SWIG_fail; | |
1730 | } | |
1731 | Py_INCREF(Py_None); resultobj = Py_None; | |
1732 | return resultobj; | |
1733 | fail: | |
1734 | return NULL; | |
1735 | } | |
1736 | ||
1737 | ||
1738 | static PyObject *_wrap_CalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1739 | PyObject *resultobj; | |
1740 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1741 | size_t arg2 ; | |
1742 | PyObject * obj0 = 0 ; | |
1743 | PyObject * obj1 = 0 ; | |
1744 | char *kwnames[] = { | |
1745 | (char *) "self",(char *) "day", NULL | |
1746 | }; | |
1747 | ||
1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetHoliday",kwnames,&obj0,&obj1)) goto fail; | |
1749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1750 | arg2 = (size_t) PyInt_AsLong(obj1); | |
1751 | if (PyErr_Occurred()) SWIG_fail; | |
1752 | { | |
1753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1754 | (arg1)->SetHoliday(arg2); | |
1755 | ||
1756 | wxPyEndAllowThreads(__tstate); | |
1757 | if (PyErr_Occurred()) SWIG_fail; | |
1758 | } | |
1759 | Py_INCREF(Py_None); resultobj = Py_None; | |
1760 | return resultobj; | |
1761 | fail: | |
1762 | return NULL; | |
1763 | } | |
1764 | ||
1765 | ||
1766 | static PyObject *_wrap_CalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1767 | PyObject *resultobj; | |
1768 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1769 | size_t arg2 ; | |
1770 | PyObject * obj0 = 0 ; | |
1771 | PyObject * obj1 = 0 ; | |
1772 | char *kwnames[] = { | |
1773 | (char *) "self",(char *) "day", NULL | |
1774 | }; | |
1775 | ||
1776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_ResetAttr",kwnames,&obj0,&obj1)) goto fail; | |
1777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1778 | arg2 = (size_t) PyInt_AsLong(obj1); | |
1779 | if (PyErr_Occurred()) SWIG_fail; | |
1780 | { | |
1781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1782 | (arg1)->ResetAttr(arg2); | |
1783 | ||
1784 | wxPyEndAllowThreads(__tstate); | |
1785 | if (PyErr_Occurred()) SWIG_fail; | |
1786 | } | |
1787 | Py_INCREF(Py_None); resultobj = Py_None; | |
1788 | return resultobj; | |
1789 | fail: | |
1790 | return NULL; | |
1791 | } | |
1792 | ||
1793 | ||
1794 | static PyObject *_wrap_CalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1795 | PyObject *resultobj; | |
1796 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
1797 | wxPoint *arg2 = 0 ; | |
1798 | wxDateTime *arg3 = (wxDateTime *) NULL ; | |
1799 | wxDateTime::WeekDay *arg4 = (wxDateTime::WeekDay *) NULL ; | |
1800 | int result; | |
1801 | wxPoint temp2 ; | |
1802 | PyObject * obj0 = 0 ; | |
1803 | PyObject * obj1 = 0 ; | |
1804 | PyObject * obj2 = 0 ; | |
1805 | PyObject * obj3 = 0 ; | |
1806 | char *kwnames[] = { | |
1807 | (char *) "self",(char *) "pos",(char *) "date",(char *) "wd", NULL | |
1808 | }; | |
1809 | ||
1810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:CalendarCtrl_HitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1812 | { | |
1813 | arg2 = &temp2; | |
1814 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
1815 | } | |
1816 | if (obj2) { | |
1817 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1818 | } | |
1819 | if (obj3) { | |
1820 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime__WeekDay,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1821 | } | |
1822 | { | |
1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1824 | result = (int)(arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
1825 | ||
1826 | wxPyEndAllowThreads(__tstate); | |
1827 | if (PyErr_Occurred()) SWIG_fail; | |
1828 | } | |
1829 | resultobj = PyInt_FromLong((long)result); | |
1830 | return resultobj; | |
1831 | fail: | |
1832 | return NULL; | |
1833 | } | |
1834 | ||
1835 | ||
1836 | static PyObject *_wrap_CalendarCtrl_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1837 | PyObject *resultobj; | |
1838 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
e811c8ce | 1839 | bool arg2 = (bool) True ; |
d14a1e28 RD |
1840 | bool result; |
1841 | PyObject * obj0 = 0 ; | |
1842 | PyObject * obj1 = 0 ; | |
1843 | char *kwnames[] = { | |
1844 | (char *) "self",(char *) "enable", NULL | |
1845 | }; | |
1846 | ||
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_Enable",kwnames,&obj0,&obj1)) goto fail; | |
1848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1849 | if (obj1) { | |
1850 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1851 | if (PyErr_Occurred()) SWIG_fail; | |
1852 | } | |
1853 | { | |
1854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1855 | result = (bool)(arg1)->Enable(arg2); | |
1856 | ||
1857 | wxPyEndAllowThreads(__tstate); | |
1858 | if (PyErr_Occurred()) SWIG_fail; | |
1859 | } | |
1860 | resultobj = PyInt_FromLong((long)result); | |
1861 | return resultobj; | |
1862 | fail: | |
1863 | return NULL; | |
1864 | } | |
1865 | ||
1866 | ||
1867 | static PyObject *_wrap_CalendarCtrl_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject *resultobj; | |
1869 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
e811c8ce | 1870 | bool arg2 = (bool) True ; |
d14a1e28 RD |
1871 | bool result; |
1872 | PyObject * obj0 = 0 ; | |
1873 | PyObject * obj1 = 0 ; | |
1874 | char *kwnames[] = { | |
1875 | (char *) "self",(char *) "show", NULL | |
1876 | }; | |
1877 | ||
1878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_Show",kwnames,&obj0,&obj1)) goto fail; | |
1879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1880 | if (obj1) { | |
1881 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1882 | if (PyErr_Occurred()) SWIG_fail; | |
1883 | } | |
1884 | { | |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1886 | result = (bool)(arg1)->Show(arg2); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | } | |
1891 | resultobj = PyInt_FromLong((long)result); | |
1892 | return resultobj; | |
1893 | fail: | |
1894 | return NULL; | |
1895 | } | |
1896 | ||
1897 | ||
1898 | static PyObject * CalendarCtrl_swigregister(PyObject *self, PyObject *args) { | |
1899 | PyObject *obj; | |
1900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1901 | SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl, obj); | |
1902 | Py_INCREF(obj); | |
1903 | return Py_BuildValue((char *)""); | |
1904 | } | |
1905 | static PyMethodDef SwigMethods[] = { | |
1906 | { (char *)"new_CalendarDateAttr", (PyCFunction) _wrap_new_CalendarDateAttr, METH_VARARGS | METH_KEYWORDS }, | |
1907 | { (char *)"new_CalendarDateAttrBorder", (PyCFunction) _wrap_new_CalendarDateAttrBorder, METH_VARARGS | METH_KEYWORDS }, | |
1908 | { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction) _wrap_CalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1909 | { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1910 | { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1911 | { (char *)"CalendarDateAttr_SetFont", (PyCFunction) _wrap_CalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1912 | { (char *)"CalendarDateAttr_SetBorder", (PyCFunction) _wrap_CalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
1913 | { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction) _wrap_CalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1914 | { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction) _wrap_CalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1915 | { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1916 | { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_CalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1917 | { (char *)"CalendarDateAttr_HasFont", (PyCFunction) _wrap_CalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
1918 | { (char *)"CalendarDateAttr_HasBorder", (PyCFunction) _wrap_CalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
1919 | { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction) _wrap_CalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1920 | { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction) _wrap_CalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1921 | { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1922 | { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1923 | { (char *)"CalendarDateAttr_GetFont", (PyCFunction) _wrap_CalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1924 | { (char *)"CalendarDateAttr_GetBorder", (PyCFunction) _wrap_CalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
1925 | { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister, METH_VARARGS }, | |
1926 | { (char *)"new_CalendarEvent", (PyCFunction) _wrap_new_CalendarEvent, METH_VARARGS | METH_KEYWORDS }, | |
1927 | { (char *)"CalendarEvent_GetDate", (PyCFunction) _wrap_CalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1928 | { (char *)"CalendarEvent_GetWeekDay", (PyCFunction) _wrap_CalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
1929 | { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister, METH_VARARGS }, | |
1930 | { (char *)"new_CalendarCtrl", (PyCFunction) _wrap_new_CalendarCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1931 | { (char *)"new_PreCalendarCtrl", (PyCFunction) _wrap_new_PreCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1932 | { (char *)"CalendarCtrl_Create", (PyCFunction) _wrap_CalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
1933 | { (char *)"CalendarCtrl_SetDate", (PyCFunction) _wrap_CalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS }, | |
1934 | { (char *)"CalendarCtrl_GetDate", (PyCFunction) _wrap_CalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1935 | { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1936 | { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1937 | { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1938 | { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS }, | |
1939 | { (char *)"CalendarCtrl_SetDateRange", (PyCFunction) _wrap_CalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS }, | |
1940 | { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction) _wrap_CalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS }, | |
1941 | { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_CalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS }, | |
1942 | { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_CalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS }, | |
1943 | { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_CalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS }, | |
1944 | { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1945 | { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1946 | { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_CalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS }, | |
1947 | { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1948 | { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1949 | { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_CalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS }, | |
1950 | { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1951 | { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1952 | { (char *)"CalendarCtrl_GetAttr", (PyCFunction) _wrap_CalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1953 | { (char *)"CalendarCtrl_SetAttr", (PyCFunction) _wrap_CalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1954 | { (char *)"CalendarCtrl_SetHoliday", (PyCFunction) _wrap_CalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1955 | { (char *)"CalendarCtrl_ResetAttr", (PyCFunction) _wrap_CalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1956 | { (char *)"CalendarCtrl_HitTest", (PyCFunction) _wrap_CalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
1957 | { (char *)"CalendarCtrl_Enable", (PyCFunction) _wrap_CalendarCtrl_Enable, METH_VARARGS | METH_KEYWORDS }, | |
1958 | { (char *)"CalendarCtrl_Show", (PyCFunction) _wrap_CalendarCtrl_Show, METH_VARARGS | METH_KEYWORDS }, | |
1959 | { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister, METH_VARARGS }, | |
1960 | { NULL, NULL } | |
1961 | }; | |
1962 | ||
1963 | ||
1964 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
1965 | ||
1966 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
1967 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
1968 | } | |
1969 | static void *_p_wxCalendarCtrlTo_p_wxObject(void *x) { | |
1970 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCalendarCtrl *) x)); | |
1971 | } | |
1972 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
1973 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
1974 | } | |
1975 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
1976 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
1977 | } | |
1978 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
1979 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
1980 | } | |
1981 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
1982 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
1983 | } | |
1984 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
1985 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
1986 | } | |
1987 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
1988 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
1989 | } | |
1990 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
1991 | return (void *)((wxObject *) ((wxSizer *) x)); | |
1992 | } | |
1993 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
1994 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
1995 | } | |
1996 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
1997 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
1998 | } | |
1999 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
2000 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2001 | } | |
2002 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
2003 | return (void *)((wxObject *) ((wxEvent *) x)); | |
2004 | } | |
2005 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
2006 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
2007 | } | |
2008 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
2009 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
2010 | } | |
2011 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
2012 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
2013 | } | |
2014 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
2015 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
2016 | } | |
2017 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
2018 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
2019 | } | |
2020 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
2021 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
2022 | } | |
2023 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
2024 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
2025 | } | |
2026 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
2027 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
2028 | } | |
2029 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
2030 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
2031 | } | |
2032 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
2033 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
2034 | } | |
2035 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
2036 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
2037 | } | |
2038 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
2039 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
2040 | } | |
2041 | static void *_p_wxCalendarEventTo_p_wxObject(void *x) { | |
2042 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCalendarEvent *) x)); | |
2043 | } | |
2044 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
2045 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
2046 | } | |
2047 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
2048 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
2049 | } | |
2050 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
2051 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
2052 | } | |
2053 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
2054 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
2055 | } | |
2056 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
2057 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2058 | } | |
2059 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
2060 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
2061 | } | |
2062 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
2063 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
2064 | } | |
2065 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
2066 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
2067 | } | |
2068 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
2069 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
2070 | } | |
2071 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
2072 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2073 | } | |
2074 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
2075 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
2076 | } | |
2077 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
2078 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
2079 | } | |
2080 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
2081 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
2082 | } | |
2083 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
2084 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
2085 | } | |
2086 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
2087 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
2088 | } | |
2089 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
2090 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
2091 | } | |
2092 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
2093 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
2094 | } | |
2095 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
2096 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
2097 | } | |
2098 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
2099 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
2100 | } | |
2101 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
2102 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
2103 | } | |
2104 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
2105 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
2106 | } | |
2107 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
2108 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
2109 | } | |
2110 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
2111 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
2112 | } | |
2113 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
2114 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
2115 | } | |
2116 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
2117 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
2118 | } | |
2119 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
2120 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
2121 | } | |
2122 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
2123 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
2124 | } | |
2125 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
2126 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
2127 | } | |
2128 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
2129 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
2130 | } | |
0df68c9f RD |
2131 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
2132 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
2133 | } | |
d14a1e28 RD |
2134 | static void *_p_wxImageTo_p_wxObject(void *x) { |
2135 | return (void *)((wxObject *) ((wxImage *) x)); | |
2136 | } | |
2137 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
2138 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
2139 | } | |
2140 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
2141 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
2142 | } | |
2143 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
2144 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
2145 | } | |
2146 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
2147 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2148 | } | |
2149 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
2150 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
2151 | } | |
2152 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
2153 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
2154 | } | |
2155 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
2156 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
2157 | } | |
2158 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
2159 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
2160 | } | |
2161 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
2162 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
2163 | } | |
2164 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
2165 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
2166 | } | |
2167 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
2168 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
2169 | } | |
2170 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
2171 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2172 | } | |
2173 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
2174 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
2175 | } | |
2176 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
2177 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
2178 | } | |
2179 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
2180 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
2181 | } | |
2182 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
2183 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
2184 | } | |
2185 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
2186 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
2187 | } | |
2188 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
2189 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
2190 | } | |
2191 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
2192 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
2193 | } | |
2194 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
2195 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
2196 | } | |
2197 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
2198 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
2199 | } | |
2200 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
2201 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
2202 | } | |
2203 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
2204 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
2205 | } | |
2206 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
2207 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
2208 | } | |
2209 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
2210 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
2211 | } | |
2212 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
2213 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
2214 | } | |
2215 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
2216 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
2217 | } | |
2218 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
2219 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
2220 | } | |
2221 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
2222 | return (void *)((wxWindow *) ((wxControl *) x)); | |
2223 | } | |
2224 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
2225 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
2226 | } | |
2227 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
2228 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
2229 | } | |
2230 | static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x) { | |
2231 | return (void *)((wxWindow *) (wxControl *) ((wxCalendarCtrl *) x)); | |
2232 | } | |
2233 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
2234 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
2235 | } | |
2236 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
2237 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
2238 | } | |
2239 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
2240 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2241 | } | |
2242 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
2243 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2244 | } | |
2245 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
2246 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2247 | } | |
2248 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
2249 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2250 | } | |
2251 | static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x) { | |
2252 | return (void *)((wxCommandEvent *) ((wxCalendarEvent *) x)); | |
2253 | } | |
2254 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
2255 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2256 | } | |
2257 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
2258 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
2259 | } | |
2260 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
2261 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
2262 | } | |
2263 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
2264 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
2265 | } | |
2266 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
2267 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
2268 | } | |
2269 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
2270 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
2271 | } | |
2272 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
2273 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
2274 | } | |
2275 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
2276 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
2277 | } | |
2278 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
2279 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
2280 | } | |
2281 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
2282 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
2283 | } | |
2284 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
2285 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
2286 | } | |
2287 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
2288 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
2289 | } | |
2290 | static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x) { | |
2291 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCalendarCtrl *) x)); | |
2292 | } | |
2293 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
2294 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
2295 | } | |
2296 | static void *_p_wxCalendarCtrlTo_p_wxControl(void *x) { | |
2297 | return (void *)((wxControl *) ((wxCalendarCtrl *) x)); | |
2298 | } | |
2299 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
2300 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2301 | } | |
2302 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
2303 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
2304 | } | |
2305 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
2306 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
2307 | } | |
2308 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
2309 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
2310 | } | |
2311 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
2312 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
2313 | } | |
2314 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
2315 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
2316 | } | |
2317 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
2318 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
2319 | } | |
2320 | static void *_p_wxCalendarEventTo_p_wxEvent(void *x) { | |
2321 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxCalendarEvent *) x)); | |
2322 | } | |
2323 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
2324 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
2325 | } | |
2326 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
2327 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
2328 | } | |
2329 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
2330 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
2331 | } | |
2332 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
2333 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2334 | } | |
2335 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
2336 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
2337 | } | |
2338 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
2339 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
2340 | } | |
2341 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
2342 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2343 | } | |
2344 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
2345 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
2346 | } | |
2347 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
2348 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
2349 | } | |
2350 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
2351 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
2352 | } | |
2353 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
2354 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
2355 | } | |
2356 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
2357 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
2358 | } | |
2359 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
2360 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
2361 | } | |
2362 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
2363 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
2364 | } | |
2365 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
2366 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
2367 | } | |
2368 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
2369 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2370 | } | |
2371 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
2372 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
2373 | } | |
2374 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
2375 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
2376 | } | |
2377 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
2378 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
2379 | } | |
2380 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
2381 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
2382 | } | |
2383 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
2384 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
2385 | } | |
2386 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
2387 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
2388 | } | |
2389 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
2390 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
2391 | } | |
2392 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
2393 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
2394 | } | |
2395 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
2396 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
2397 | } | |
2398 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
2399 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
2400 | } | |
2401 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
2402 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
2403 | } | |
2404 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
2405 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2406 | } | |
2407 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
2408 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
2409 | } | |
2410 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
2411 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
2412 | } | |
2413 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
2414 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
2415 | } | |
2416 | static swig_type_info _swigt__p_wxDateTime__WeekDay[] = {{"_p_wxDateTime__WeekDay", 0, "wxDateTime::WeekDay *", 0},{"_p_wxDateTime__WeekDay"},{0}}; | |
2417 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
0df68c9f | 2418 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject},{0}}; |
d14a1e28 RD |
2419 | static swig_type_info _swigt__p_wxCalendarEvent[] = {{"_p_wxCalendarEvent", 0, "wxCalendarEvent *", 0},{"_p_wxCalendarEvent"},{0}}; |
2420 | static swig_type_info _swigt__p_wxCalendarDateAttr[] = {{"_p_wxCalendarDateAttr", 0, "wxCalendarDateAttr *", 0},{"_p_wxCalendarDateAttr"},{0}}; | |
2421 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxWindow},{0}}; | |
2422 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}}; | |
2423 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
2424 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxEvtHandler},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler},{0}}; | |
2425 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
2426 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
2427 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxControl},{0}}; | |
2428 | static swig_type_info _swigt__p_wxCalendarCtrl[] = {{"_p_wxCalendarCtrl", 0, "wxCalendarCtrl *", 0},{"_p_wxCalendarCtrl"},{0}}; | |
2429 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; | |
2430 | ||
2431 | static swig_type_info *swig_types_initial[] = { | |
2432 | _swigt__p_wxDateTime__WeekDay, | |
2433 | _swigt__p_wxColour, | |
2434 | _swigt__p_wxObject, | |
2435 | _swigt__p_wxCalendarEvent, | |
2436 | _swigt__p_wxCalendarDateAttr, | |
2437 | _swigt__p_wxWindow, | |
2438 | _swigt__p_wxCommandEvent, | |
2439 | _swigt__p_wxString, | |
2440 | _swigt__p_wxEvtHandler, | |
2441 | _swigt__p_wxFont, | |
2442 | _swigt__p_wxDateTime, | |
2443 | _swigt__p_wxControl, | |
2444 | _swigt__p_wxCalendarCtrl, | |
2445 | _swigt__p_wxEvent, | |
2446 | 0 | |
2447 | }; | |
2448 | ||
2449 | ||
2450 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
2451 | ||
2452 | static swig_const_info swig_const_table[] = { | |
2453 | { SWIG_PY_INT, (char *)"CAL_SUNDAY_FIRST", (long) wxCAL_SUNDAY_FIRST, 0, 0, 0}, | |
2454 | { SWIG_PY_INT, (char *)"CAL_MONDAY_FIRST", (long) wxCAL_MONDAY_FIRST, 0, 0, 0}, | |
2455 | { SWIG_PY_INT, (char *)"CAL_SHOW_HOLIDAYS", (long) wxCAL_SHOW_HOLIDAYS, 0, 0, 0}, | |
2456 | { SWIG_PY_INT, (char *)"CAL_NO_YEAR_CHANGE", (long) wxCAL_NO_YEAR_CHANGE, 0, 0, 0}, | |
2457 | { SWIG_PY_INT, (char *)"CAL_NO_MONTH_CHANGE", (long) wxCAL_NO_MONTH_CHANGE, 0, 0, 0}, | |
2458 | { SWIG_PY_INT, (char *)"CAL_SEQUENTIAL_MONTH_SELECTION", (long) wxCAL_SEQUENTIAL_MONTH_SELECTION, 0, 0, 0}, | |
2459 | { SWIG_PY_INT, (char *)"CAL_SHOW_SURROUNDING_WEEKS", (long) wxCAL_SHOW_SURROUNDING_WEEKS, 0, 0, 0}, | |
2460 | { SWIG_PY_INT, (char *)"CAL_HITTEST_NOWHERE", (long) wxCAL_HITTEST_NOWHERE, 0, 0, 0}, | |
2461 | { SWIG_PY_INT, (char *)"CAL_HITTEST_HEADER", (long) wxCAL_HITTEST_HEADER, 0, 0, 0}, | |
2462 | { SWIG_PY_INT, (char *)"CAL_HITTEST_DAY", (long) wxCAL_HITTEST_DAY, 0, 0, 0}, | |
2463 | { SWIG_PY_INT, (char *)"CAL_HITTEST_INCMONTH", (long) wxCAL_HITTEST_INCMONTH, 0, 0, 0}, | |
2464 | { SWIG_PY_INT, (char *)"CAL_HITTEST_DECMONTH", (long) wxCAL_HITTEST_DECMONTH, 0, 0, 0}, | |
2465 | { SWIG_PY_INT, (char *)"CAL_HITTEST_SURROUNDING_WEEK", (long) wxCAL_HITTEST_SURROUNDING_WEEK, 0, 0, 0}, | |
2466 | { SWIG_PY_INT, (char *)"CAL_BORDER_NONE", (long) wxCAL_BORDER_NONE, 0, 0, 0}, | |
2467 | { SWIG_PY_INT, (char *)"CAL_BORDER_SQUARE", (long) wxCAL_BORDER_SQUARE, 0, 0, 0}, | |
2468 | { SWIG_PY_INT, (char *)"CAL_BORDER_ROUND", (long) wxCAL_BORDER_ROUND, 0, 0, 0}, | |
2469 | { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_DOUBLECLICKED", (long) wxEVT_CALENDAR_DOUBLECLICKED, 0, 0, 0}, | |
2470 | { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_SEL_CHANGED", (long) wxEVT_CALENDAR_SEL_CHANGED, 0, 0, 0}, | |
2471 | { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_DAY_CHANGED", (long) wxEVT_CALENDAR_DAY_CHANGED, 0, 0, 0}, | |
2472 | { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_MONTH_CHANGED", (long) wxEVT_CALENDAR_MONTH_CHANGED, 0, 0, 0}, | |
2473 | { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_YEAR_CHANGED", (long) wxEVT_CALENDAR_YEAR_CHANGED, 0, 0, 0}, | |
2474 | { SWIG_PY_INT, (char *)"wxEVT_CALENDAR_WEEKDAY_CLICKED", (long) wxEVT_CALENDAR_WEEKDAY_CLICKED, 0, 0, 0}, | |
2475 | {0}}; | |
2476 | ||
2477 | #ifdef __cplusplus | |
2478 | } | |
2479 | #endif | |
2480 | ||
2481 | #ifdef __cplusplus | |
2482 | extern "C" | |
2483 | #endif | |
2484 | SWIGEXPORT(void) SWIG_init(void) { | |
2485 | static PyObject *SWIG_globals = 0; | |
2486 | static int typeinit = 0; | |
2487 | PyObject *m, *d; | |
2488 | int i; | |
2489 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
2490 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
2491 | d = PyModule_GetDict(m); | |
2492 | ||
2493 | if (!typeinit) { | |
2494 | for (i = 0; swig_types_initial[i]; i++) { | |
2495 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
2496 | } | |
2497 | typeinit = 1; | |
2498 | } | |
2499 | SWIG_InstallConstants(d,swig_const_table); | |
2500 | ||
2501 | PyDict_SetItemString(d, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED)); | |
2502 | PyDict_SetItemString(d, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED)); | |
2503 | PyDict_SetItemString(d, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED)); | |
2504 | PyDict_SetItemString(d, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED)); | |
2505 | PyDict_SetItemString(d, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED)); | |
2506 | PyDict_SetItemString(d, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED)); | |
2507 | ||
2508 | ||
2509 | } | |
2510 |