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