]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_misc_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.27
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_VERSION 0x010327
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 *
32 * This section contains generic SWIG labels for method/variable
33 * declarations/attributes, and other compiler dependent labels.
34 *
35 ************************************************************************/
36
37 /* template workaround for compilers that cannot correctly implement the C++ standard */
38 #ifndef SWIGTEMPLATEDISAMBIGUATOR
39 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # else
42 # define SWIGTEMPLATEDISAMBIGUATOR
43 # endif
44 #endif
45
46 /* inline attribute */
47 #ifndef SWIGINLINE
48 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
49 # define SWIGINLINE inline
50 # else
51 # define SWIGINLINE
52 # endif
53 #endif
54
55 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 #ifndef SWIGUNUSED
57 # if defined(__GNUC__) || defined(__ICC)
58 # define SWIGUNUSED __attribute__ ((unused))
59 # else
60 # define SWIGUNUSED
61 # endif
62 #endif
63
64 /* internal SWIG method */
65 #ifndef SWIGINTERN
66 # define SWIGINTERN static SWIGUNUSED
67 #endif
68
69 /* internal inline SWIG method */
70 #ifndef SWIGINTERNINLINE
71 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
72 #endif
73
74 /* exporting methods for Windows DLLs */
75 #ifndef SWIGEXPORT
76 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
77 # if defined(STATIC_LINKED)
78 # define SWIGEXPORT
79 # else
80 # define SWIGEXPORT __declspec(dllexport)
81 # endif
82 # else
83 # define SWIGEXPORT
84 # endif
85 #endif
86
87 /* calling conventions for Windows */
88 #ifndef SWIGSTDCALL
89 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90 # define SWIGSTDCALL __stdcall
91 # else
92 # define SWIGSTDCALL
93 # endif
94 #endif
95
96
97
98 #include <Python.h>
99
100 /***********************************************************************
101 * swigrun.swg
102 *
103 * This file contains generic CAPI SWIG runtime support for pointer
104 * type checking.
105 *
106 ************************************************************************/
107
108 /* This should only be incremented when either the layout of swig_type_info changes,
109 or for whatever reason, the runtime changes incompatibly */
110 #define SWIG_RUNTIME_VERSION "2"
111
112 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
113 #ifdef SWIG_TYPE_TABLE
114 # define SWIG_QUOTE_STRING(x) #x
115 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
116 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
117 #else
118 # define SWIG_TYPE_TABLE_NAME
119 #endif
120
121 /*
122 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
123 creating a static or dynamic library from the swig runtime code.
124 In 99.9% of the cases, swig just needs to declare them as 'static'.
125
126 But only do this if is strictly necessary, ie, if you have problems
127 with your compiler or so.
128 */
129
130 #ifndef SWIGRUNTIME
131 # define SWIGRUNTIME SWIGINTERN
132 #endif
133
134 #ifndef SWIGRUNTIMEINLINE
135 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
136 #endif
137
138 #include <string.h>
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 typedef void *(*swig_converter_func)(void *);
145 typedef struct swig_type_info *(*swig_dycast_func)(void **);
146
147 /* Structure to store inforomation on one type */
148 typedef struct swig_type_info {
149 const char *name; /* mangled name of this type */
150 const char *str; /* human readable name of this type */
151 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
152 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
153 void *clientdata; /* language specific type data */
154 } swig_type_info;
155
156 /* Structure to store a type and conversion function used for casting */
157 typedef struct swig_cast_info {
158 swig_type_info *type; /* pointer to type that is equivalent to this type */
159 swig_converter_func converter; /* function to cast the void pointers */
160 struct swig_cast_info *next; /* pointer to next cast in linked list */
161 struct swig_cast_info *prev; /* pointer to the previous cast */
162 } swig_cast_info;
163
164 /* Structure used to store module information
165 * Each module generates one structure like this, and the runtime collects
166 * all of these structures and stores them in a circularly linked list.*/
167 typedef struct swig_module_info {
168 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
169 size_t size; /* Number of types in this module */
170 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
171 swig_type_info **type_initial; /* Array of initially generated type structures */
172 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
173 void *clientdata; /* Language specific module data */
174 } swig_module_info;
175
176
177 /*
178 Compare two type names skipping the space characters, therefore
179 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180
181 Return 0 when the two name types are equivalent, as in
182 strncmp, but skipping ' '.
183 */
184 SWIGRUNTIME int
185 SWIG_TypeNameComp(const char *f1, const char *l1,
186 const char *f2, const char *l2) {
187 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
188 while ((*f1 == ' ') && (f1 != l1)) ++f1;
189 while ((*f2 == ' ') && (f2 != l2)) ++f2;
190 if (*f1 != *f2) return (int)(*f1 - *f2);
191 }
192 return (l1 - f1) - (l2 - f2);
193 }
194
195 /*
196 Check type equivalence in a name list like <name1>|<name2>|...
197 Return 0 if not equal, 1 if equal
198 */
199 SWIGRUNTIME int
200 SWIG_TypeEquiv(const char *nb, const char *tb) {
201 int equiv = 0;
202 const char* te = tb + strlen(tb);
203 const char* ne = nb;
204 while (!equiv && *ne) {
205 for (nb = ne; *ne; ++ne) {
206 if (*ne == '|') break;
207 }
208 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
209 if (*ne) ++ne;
210 }
211 return equiv;
212 }
213
214 /*
215 Check type equivalence in a name list like <name1>|<name2>|...
216 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
217 */
218 SWIGRUNTIME int
219 SWIG_TypeCompare(const char *nb, const char *tb) {
220 int equiv = 0;
221 const char* te = tb + strlen(tb);
222 const char* ne = nb;
223 while (!equiv && *ne) {
224 for (nb = ne; *ne; ++ne) {
225 if (*ne == '|') break;
226 }
227 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
228 if (*ne) ++ne;
229 }
230 return equiv;
231 }
232
233
234 /* think of this as a c++ template<> or a scheme macro */
235 #define SWIG_TypeCheck_Template(comparison, ty) \
236 if (ty) { \
237 swig_cast_info *iter = ty->cast; \
238 while (iter) { \
239 if (comparison) { \
240 if (iter == ty->cast) return iter; \
241 /* Move iter to the top of the linked list */ \
242 iter->prev->next = iter->next; \
243 if (iter->next) \
244 iter->next->prev = iter->prev; \
245 iter->next = ty->cast; \
246 iter->prev = 0; \
247 if (ty->cast) ty->cast->prev = iter; \
248 ty->cast = iter; \
249 return iter; \
250 } \
251 iter = iter->next; \
252 } \
253 } \
254 return 0
255
256 /*
257 Check the typename
258 */
259 SWIGRUNTIME swig_cast_info *
260 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
261 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
262 }
263
264 /* Same as previous function, except strcmp is replaced with a pointer comparison */
265 SWIGRUNTIME swig_cast_info *
266 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
267 SWIG_TypeCheck_Template(iter->type == from, into);
268 }
269
270 /*
271 Cast a pointer up an inheritance hierarchy
272 */
273 SWIGRUNTIMEINLINE void *
274 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
275 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
276 }
277
278 /*
279 Dynamic pointer casting. Down an inheritance hierarchy
280 */
281 SWIGRUNTIME swig_type_info *
282 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
283 swig_type_info *lastty = ty;
284 if (!ty || !ty->dcast) return ty;
285 while (ty && (ty->dcast)) {
286 ty = (*ty->dcast)(ptr);
287 if (ty) lastty = ty;
288 }
289 return lastty;
290 }
291
292 /*
293 Return the name associated with this type
294 */
295 SWIGRUNTIMEINLINE const char *
296 SWIG_TypeName(const swig_type_info *ty) {
297 return ty->name;
298 }
299
300 /*
301 Return the pretty name associated with this type,
302 that is an unmangled type name in a form presentable to the user.
303 */
304 SWIGRUNTIME const char *
305 SWIG_TypePrettyName(const swig_type_info *type) {
306 /* The "str" field contains the equivalent pretty names of the
307 type, separated by vertical-bar characters. We choose
308 to print the last name, as it is often (?) the most
309 specific. */
310 if (type->str != NULL) {
311 const char *last_name = type->str;
312 const char *s;
313 for (s = type->str; *s; s++)
314 if (*s == '|') last_name = s+1;
315 return last_name;
316 }
317 else
318 return type->name;
319 }
320
321 /*
322 Set the clientdata field for a type
323 */
324 SWIGRUNTIME void
325 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
326 swig_cast_info *cast = ti->cast;
327 /* if (ti->clientdata == clientdata) return; */
328 ti->clientdata = clientdata;
329
330 while (cast) {
331 if (!cast->converter) {
332 swig_type_info *tc = cast->type;
333 if (!tc->clientdata) {
334 SWIG_TypeClientData(tc, clientdata);
335 }
336 }
337 cast = cast->next;
338 }
339 }
340
341 /*
342 Search for a swig_type_info structure only by mangled name
343 Search is a O(log #types)
344
345 We start searching at module start, and finish searching when start == end.
346 Note: if start == end at the beginning of the function, we go all the way around
347 the circular list.
348 */
349 SWIGRUNTIME swig_type_info *
350 SWIG_MangledTypeQueryModule(swig_module_info *start,
351 swig_module_info *end,
352 const char *name) {
353 swig_module_info *iter = start;
354 do {
355 if (iter->size) {
356 register size_t l = 0;
357 register size_t r = iter->size - 1;
358 do {
359 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
360 register size_t i = (l + r) >> 1;
361 const char *iname = iter->types[i]->name;
362 if (iname) {
363 register int compare = strcmp(name, iname);
364 if (compare == 0) {
365 return iter->types[i];
366 } else if (compare < 0) {
367 if (i) {
368 r = i - 1;
369 } else {
370 break;
371 }
372 } else if (compare > 0) {
373 l = i + 1;
374 }
375 } else {
376 break; /* should never happen */
377 }
378 } while (l <= r);
379 }
380 iter = iter->next;
381 } while (iter != end);
382 return 0;
383 }
384
385 /*
386 Search for a swig_type_info structure for either a mangled name or a human readable name.
387 It first searches the mangled names of the types, which is a O(log #types)
388 If a type is not found it then searches the human readable names, which is O(#types).
389
390 We start searching at module start, and finish searching when start == end.
391 Note: if start == end at the beginning of the function, we go all the way around
392 the circular list.
393 */
394 SWIGRUNTIME swig_type_info *
395 SWIG_TypeQueryModule(swig_module_info *start,
396 swig_module_info *end,
397 const char *name) {
398 /* STEP 1: Search the name field using binary search */
399 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
400 if (ret) {
401 return ret;
402 } else {
403 /* STEP 2: If the type hasn't been found, do a complete search
404 of the str field (the human readable name) */
405 swig_module_info *iter = start;
406 do {
407 register size_t i = 0;
408 for (; i < iter->size; ++i) {
409 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
410 return iter->types[i];
411 }
412 iter = iter->next;
413 } while (iter != end);
414 }
415
416 /* neither found a match */
417 return 0;
418 }
419
420
421 /*
422 Pack binary data into a string
423 */
424 SWIGRUNTIME char *
425 SWIG_PackData(char *c, void *ptr, size_t sz) {
426 static const char hex[17] = "0123456789abcdef";
427 register const unsigned char *u = (unsigned char *) ptr;
428 register const unsigned char *eu = u + sz;
429 for (; u != eu; ++u) {
430 register unsigned char uu = *u;
431 *(c++) = hex[(uu & 0xf0) >> 4];
432 *(c++) = hex[uu & 0xf];
433 }
434 return c;
435 }
436
437 /*
438 Unpack binary data from a string
439 */
440 SWIGRUNTIME const char *
441 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
442 register unsigned char *u = (unsigned char *) ptr;
443 register const unsigned char *eu = u + sz;
444 for (; u != eu; ++u) {
445 register char d = *(c++);
446 register unsigned char uu = 0;
447 if ((d >= '0') && (d <= '9'))
448 uu = ((d - '0') << 4);
449 else if ((d >= 'a') && (d <= 'f'))
450 uu = ((d - ('a'-10)) << 4);
451 else
452 return (char *) 0;
453 d = *(c++);
454 if ((d >= '0') && (d <= '9'))
455 uu |= (d - '0');
456 else if ((d >= 'a') && (d <= 'f'))
457 uu |= (d - ('a'-10));
458 else
459 return (char *) 0;
460 *u = uu;
461 }
462 return c;
463 }
464
465 /*
466 Pack 'void *' into a string buffer.
467 */
468 SWIGRUNTIME char *
469 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
470 char *r = buff;
471 if ((2*sizeof(void *) + 2) > bsz) return 0;
472 *(r++) = '_';
473 r = SWIG_PackData(r,&ptr,sizeof(void *));
474 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
475 strcpy(r,name);
476 return buff;
477 }
478
479 SWIGRUNTIME const char *
480 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
481 if (*c != '_') {
482 if (strcmp(c,"NULL") == 0) {
483 *ptr = (void *) 0;
484 return name;
485 } else {
486 return 0;
487 }
488 }
489 return SWIG_UnpackData(++c,ptr,sizeof(void *));
490 }
491
492 SWIGRUNTIME char *
493 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
494 char *r = buff;
495 size_t lname = (name ? strlen(name) : 0);
496 if ((2*sz + 2 + lname) > bsz) return 0;
497 *(r++) = '_';
498 r = SWIG_PackData(r,ptr,sz);
499 if (lname) {
500 strncpy(r,name,lname+1);
501 } else {
502 *r = 0;
503 }
504 return buff;
505 }
506
507 SWIGRUNTIME const char *
508 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
509 if (*c != '_') {
510 if (strcmp(c,"NULL") == 0) {
511 memset(ptr,0,sz);
512 return name;
513 } else {
514 return 0;
515 }
516 }
517 return SWIG_UnpackData(++c,ptr,sz);
518 }
519
520 #ifdef __cplusplus
521 }
522 #endif
523
524 /* -----------------------------------------------------------------------------
525 * SWIG API. Portion that goes into the runtime
526 * ----------------------------------------------------------------------------- */
527
528 #ifdef __cplusplus
529 extern "C" {
530 #endif
531
532 /* -----------------------------------------------------------------------------
533 * for internal method declarations
534 * ----------------------------------------------------------------------------- */
535
536 #ifndef SWIGINTERN
537 # define SWIGINTERN static SWIGUNUSED
538 #endif
539
540 #ifndef SWIGINTERNINLINE
541 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
542 #endif
543
544 /*
545 Exception handling in wrappers
546 */
547 #define SWIG_fail goto fail
548 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
549 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
550 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
551 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
552 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
553
554 /*
555 Contract support
556 */
557 #define SWIG_contract_assert(expr, msg) \
558 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559
560 /* -----------------------------------------------------------------------------
561 * Constant declarations
562 * ----------------------------------------------------------------------------- */
563
564 /* Constant Types */
565 #define SWIG_PY_INT 1
566 #define SWIG_PY_FLOAT 2
567 #define SWIG_PY_STRING 3
568 #define SWIG_PY_POINTER 4
569 #define SWIG_PY_BINARY 5
570
571 /* Constant information structure */
572 typedef struct swig_const_info {
573 int type;
574 char *name;
575 long lvalue;
576 double dvalue;
577 void *pvalue;
578 swig_type_info **ptype;
579 } swig_const_info;
580
581
582 /* -----------------------------------------------------------------------------
583 * Alloc. memory flags
584 * ----------------------------------------------------------------------------- */
585 #define SWIG_OLDOBJ 1
586 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
587 #define SWIG_PYSTR SWIG_NEWOBJ + 1
588
589 #ifdef __cplusplus
590 }
591 #endif
592
593
594 /***********************************************************************
595 * pyrun.swg
596 *
597 * This file contains the runtime support for Python modules
598 * and includes code for managing global variables and pointer
599 * type checking.
600 *
601 * Author : David Beazley (beazley@cs.uchicago.edu)
602 ************************************************************************/
603
604 /* Common SWIG API */
605 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
606 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
607 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
608
609
610 /* Python-specific SWIG API */
611 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
612 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
613
614 /* Runtime API */
615 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
616 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617
618 /* -----------------------------------------------------------------------------
619 * Pointer declarations
620 * ----------------------------------------------------------------------------- */
621 /*
622 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
623 C/C++ pointers in the python side. Very useful for debugging, but
624 not always safe.
625 */
626 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
627 # define SWIG_COBJECT_TYPES
628 #endif
629
630 /* Flags for pointer conversion */
631 #define SWIG_POINTER_EXCEPTION 0x1
632 #define SWIG_POINTER_DISOWN 0x2
633
634
635 /* Add PyOS_snprintf for old Pythons */
636 #if PY_VERSION_HEX < 0x02020000
637 #define PyOS_snprintf snprintf
638 #endif
639
640 #ifdef __cplusplus
641 extern "C" {
642 #endif
643
644 /* -----------------------------------------------------------------------------
645 * Create a new pointer string
646 * ----------------------------------------------------------------------------- */
647 #ifndef SWIG_BUFFER_SIZE
648 #define SWIG_BUFFER_SIZE 1024
649 #endif
650
651 /* A crude PyString_FromFormat implementation for old Pythons */
652 #if PY_VERSION_HEX < 0x02020000
653 static PyObject *
654 PyString_FromFormat(const char *fmt, ...) {
655 va_list ap;
656 char buf[SWIG_BUFFER_SIZE * 2];
657 int res;
658 va_start(ap, fmt);
659 res = vsnprintf(buf, sizeof(buf), fmt, ap);
660 va_end(ap);
661 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
662 }
663 #endif
664
665 #if PY_VERSION_HEX < 0x01060000
666 #define PyObject_Del(op) PyMem_DEL((op))
667 #endif
668
669 #if defined(SWIG_COBJECT_TYPES)
670 #if !defined(SWIG_COBJECT_PYTHON)
671 /* -----------------------------------------------------------------------------
672 * Implements a simple Swig Object type, and use it instead of PyCObject
673 * ----------------------------------------------------------------------------- */
674
675 typedef struct {
676 PyObject_HEAD
677 void *ptr;
678 const char *desc;
679 } PySwigObject;
680
681 /* Declarations for objects of type PySwigObject */
682
683 SWIGRUNTIME int
684 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
685 {
686 char result[SWIG_BUFFER_SIZE];
687 flags = flags;
688 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
689 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
690 return 0;
691 } else {
692 return 1;
693 }
694 }
695
696 SWIGRUNTIME PyObject *
697 PySwigObject_repr(PySwigObject *v)
698 {
699 char result[SWIG_BUFFER_SIZE];
700 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
701 PyString_FromFormat("<Swig Object at %s>", result) : 0;
702 }
703
704 SWIGRUNTIME PyObject *
705 PySwigObject_str(PySwigObject *v)
706 {
707 char result[SWIG_BUFFER_SIZE];
708 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
709 PyString_FromString(result) : 0;
710 }
711
712 SWIGRUNTIME PyObject *
713 PySwigObject_long(PySwigObject *v)
714 {
715 return PyLong_FromVoidPtr(v->ptr);
716 }
717
718 SWIGRUNTIME PyObject *
719 PySwigObject_format(const char* fmt, PySwigObject *v)
720 {
721 PyObject *res = NULL;
722 PyObject *args = PyTuple_New(1);
723 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
724 PyObject *ofmt = PyString_FromString(fmt);
725 if (ofmt) {
726 res = PyString_Format(ofmt,args);
727 Py_DECREF(ofmt);
728 }
729 Py_DECREF(args);
730 }
731 return res;
732 }
733
734 SWIGRUNTIME PyObject *
735 PySwigObject_oct(PySwigObject *v)
736 {
737 return PySwigObject_format("%o",v);
738 }
739
740 SWIGRUNTIME PyObject *
741 PySwigObject_hex(PySwigObject *v)
742 {
743 return PySwigObject_format("%x",v);
744 }
745
746 SWIGRUNTIME int
747 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
748 {
749 int c = strcmp(v->desc, w->desc);
750 if (c) {
751 return (c > 0) ? 1 : -1;
752 } else {
753 void *i = v->ptr;
754 void *j = w->ptr;
755 return (i < j) ? -1 : ((i > j) ? 1 : 0);
756 }
757 }
758
759 SWIGRUNTIME void
760 PySwigObject_dealloc(PySwigObject *self)
761 {
762 PyObject_Del(self);
763 }
764
765 SWIGRUNTIME PyTypeObject*
766 PySwigObject_type(void) {
767 static char pyswigobject_type__doc__[] =
768 "Swig object carries a C/C++ instance pointer";
769
770 static PyNumberMethods PySwigObject_as_number = {
771 (binaryfunc)0, /*nb_add*/
772 (binaryfunc)0, /*nb_subtract*/
773 (binaryfunc)0, /*nb_multiply*/
774 (binaryfunc)0, /*nb_divide*/
775 (binaryfunc)0, /*nb_remainder*/
776 (binaryfunc)0, /*nb_divmod*/
777 (ternaryfunc)0,/*nb_power*/
778 (unaryfunc)0, /*nb_negative*/
779 (unaryfunc)0, /*nb_positive*/
780 (unaryfunc)0, /*nb_absolute*/
781 (inquiry)0, /*nb_nonzero*/
782 0, /*nb_invert*/
783 0, /*nb_lshift*/
784 0, /*nb_rshift*/
785 0, /*nb_and*/
786 0, /*nb_xor*/
787 0, /*nb_or*/
788 (coercion)0, /*nb_coerce*/
789 (unaryfunc)PySwigObject_long, /*nb_int*/
790 (unaryfunc)PySwigObject_long, /*nb_long*/
791 (unaryfunc)0, /*nb_float*/
792 (unaryfunc)PySwigObject_oct, /*nb_oct*/
793 (unaryfunc)PySwigObject_hex, /*nb_hex*/
794 #if PY_VERSION_HEX >= 0x02020000
795 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
796 #elif PY_VERSION_HEX >= 0x02000000
797 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
798 #endif
799 };
800
801 static PyTypeObject pyswigobject_type
802 #if !defined(__cplusplus)
803 ;
804 static int type_init = 0;
805 if (!type_init) {
806 PyTypeObject tmp
807 #endif
808 = {
809 PyObject_HEAD_INIT(&PyType_Type)
810 0, /*ob_size*/
811 (char *)"PySwigObject", /*tp_name*/
812 sizeof(PySwigObject), /*tp_basicsize*/
813 0, /*tp_itemsize*/
814 /* methods */
815 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
816 (printfunc)PySwigObject_print, /*tp_print*/
817 (getattrfunc)0, /*tp_getattr*/
818 (setattrfunc)0, /*tp_setattr*/
819 (cmpfunc)PySwigObject_compare, /*tp_compare*/
820 (reprfunc)PySwigObject_repr, /*tp_repr*/
821 &PySwigObject_as_number, /*tp_as_number*/
822 0, /*tp_as_sequence*/
823 0, /*tp_as_mapping*/
824 (hashfunc)0, /*tp_hash*/
825 (ternaryfunc)0, /*tp_call*/
826 (reprfunc)PySwigObject_str, /*tp_str*/
827 /* Space for future expansion */
828 0,0,0,0,
829 pyswigobject_type__doc__, /* Documentation string */
830 #if PY_VERSION_HEX >= 0x02000000
831 0, /* tp_traverse */
832 0, /* tp_clear */
833 #endif
834 #if PY_VERSION_HEX >= 0x02010000
835 0, /* tp_richcompare */
836 0, /* tp_weaklistoffset */
837 #endif
838 #if PY_VERSION_HEX >= 0x02020000
839 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
840 #endif
841 #if PY_VERSION_HEX >= 0x02030000
842 0, /* tp_del */
843 #endif
844 #ifdef COUNT_ALLOCS
845 0,0,0,0 /* tp_alloc -> tp_next */
846 #endif
847 };
848 #if !defined(__cplusplus)
849 pyswigobject_type = tmp;
850 type_init = 1;
851 }
852 #endif
853 return &pyswigobject_type;
854 }
855
856 SWIGRUNTIME PyObject *
857 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
858 {
859 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
860 if (self) {
861 self->ptr = ptr;
862 self->desc = desc;
863 }
864 return (PyObject *)self;
865 }
866
867 SWIGRUNTIMEINLINE void *
868 PySwigObject_AsVoidPtr(PyObject *self)
869 {
870 return ((PySwigObject *)self)->ptr;
871 }
872
873 SWIGRUNTIMEINLINE const char *
874 PySwigObject_GetDesc(PyObject *self)
875 {
876 return ((PySwigObject *)self)->desc;
877 }
878
879 SWIGRUNTIMEINLINE int
880 PySwigObject_Check(PyObject *op) {
881 return ((op)->ob_type == PySwigObject_type())
882 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
883 }
884
885 /* -----------------------------------------------------------------------------
886 * Implements a simple Swig Packed type, and use it instead of string
887 * ----------------------------------------------------------------------------- */
888
889 typedef struct {
890 PyObject_HEAD
891 void *pack;
892 const char *desc;
893 size_t size;
894 } PySwigPacked;
895
896 SWIGRUNTIME int
897 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
898 {
899 char result[SWIG_BUFFER_SIZE];
900 flags = flags;
901 fputs("<Swig Packed ", fp);
902 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
903 fputs("at ", fp);
904 fputs(result, fp);
905 }
906 fputs(v->desc,fp);
907 fputs(">", fp);
908 return 0;
909 }
910
911 SWIGRUNTIME PyObject *
912 PySwigPacked_repr(PySwigPacked *v)
913 {
914 char result[SWIG_BUFFER_SIZE];
915 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
916 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
917 } else {
918 return PyString_FromFormat("<Swig Packed %s>", v->desc);
919 }
920 }
921
922 SWIGRUNTIME PyObject *
923 PySwigPacked_str(PySwigPacked *v)
924 {
925 char result[SWIG_BUFFER_SIZE];
926 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
927 return PyString_FromFormat("%s%s", result, v->desc);
928 } else {
929 return PyString_FromString(v->desc);
930 }
931 }
932
933 SWIGRUNTIME int
934 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
935 {
936 int c = strcmp(v->desc, w->desc);
937 if (c) {
938 return (c > 0) ? 1 : -1;
939 } else {
940 size_t i = v->size;
941 size_t j = w->size;
942 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
943 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
944 }
945 }
946
947 SWIGRUNTIME void
948 PySwigPacked_dealloc(PySwigPacked *self)
949 {
950 free(self->pack);
951 PyObject_Del(self);
952 }
953
954 SWIGRUNTIME PyTypeObject*
955 PySwigPacked_type(void) {
956 static char pyswigpacked_type__doc__[] =
957 "Swig object carries a C/C++ instance pointer";
958 static PyTypeObject pyswigpacked_type
959 #if !defined(__cplusplus)
960 ;
961 static int type_init = 0;
962 if (!type_init) {
963 PyTypeObject tmp
964 #endif
965 = {
966 PyObject_HEAD_INIT(&PyType_Type)
967 0, /*ob_size*/
968 (char *)"PySwigPacked", /*tp_name*/
969 sizeof(PySwigPacked), /*tp_basicsize*/
970 0, /*tp_itemsize*/
971 /* methods */
972 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
973 (printfunc)PySwigPacked_print, /*tp_print*/
974 (getattrfunc)0, /*tp_getattr*/
975 (setattrfunc)0, /*tp_setattr*/
976 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
977 (reprfunc)PySwigPacked_repr, /*tp_repr*/
978 0, /*tp_as_number*/
979 0, /*tp_as_sequence*/
980 0, /*tp_as_mapping*/
981 (hashfunc)0, /*tp_hash*/
982 (ternaryfunc)0, /*tp_call*/
983 (reprfunc)PySwigPacked_str, /*tp_str*/
984 /* Space for future expansion */
985 0,0,0,0,
986 pyswigpacked_type__doc__, /* Documentation string */
987 #if PY_VERSION_HEX >= 0x02000000
988 0, /* tp_traverse */
989 0, /* tp_clear */
990 #endif
991 #if PY_VERSION_HEX >= 0x02010000
992 0, /* tp_richcompare */
993 0, /* tp_weaklistoffset */
994 #endif
995 #if PY_VERSION_HEX >= 0x02020000
996 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
997 #endif
998 #if PY_VERSION_HEX >= 0x02030000
999 0, /* tp_del */
1000 #endif
1001 #ifdef COUNT_ALLOCS
1002 0,0,0,0 /* tp_alloc -> tp_next */
1003 #endif
1004 };
1005 #if !defined(__cplusplus)
1006 pyswigpacked_type = tmp;
1007 type_init = 1;
1008 }
1009 #endif
1010 return &pyswigpacked_type;
1011 }
1012
1013 SWIGRUNTIME PyObject *
1014 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1015 {
1016 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1017 if (self == NULL) {
1018 return NULL;
1019 } else {
1020 void *pack = malloc(size);
1021 if (pack) {
1022 memcpy(pack, ptr, size);
1023 self->pack = pack;
1024 self->desc = desc;
1025 self->size = size;
1026 return (PyObject *) self;
1027 }
1028 return NULL;
1029 }
1030 }
1031
1032 SWIGRUNTIMEINLINE const char *
1033 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1034 {
1035 PySwigPacked *self = (PySwigPacked *)obj;
1036 if (self->size != size) return 0;
1037 memcpy(ptr, self->pack, size);
1038 return self->desc;
1039 }
1040
1041 SWIGRUNTIMEINLINE const char *
1042 PySwigPacked_GetDesc(PyObject *self)
1043 {
1044 return ((PySwigPacked *)self)->desc;
1045 }
1046
1047 SWIGRUNTIMEINLINE int
1048 PySwigPacked_Check(PyObject *op) {
1049 return ((op)->ob_type == PySwigPacked_type())
1050 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1051 }
1052
1053 #else
1054 /* -----------------------------------------------------------------------------
1055 * Use the old Python PyCObject instead of PySwigObject
1056 * ----------------------------------------------------------------------------- */
1057
1058 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1059 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1060 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1061 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1062
1063 #endif
1064
1065 #endif
1066
1067 /* -----------------------------------------------------------------------------
1068 * errors manipulation
1069 * ----------------------------------------------------------------------------- */
1070
1071 SWIGRUNTIME void
1072 SWIG_Python_TypeError(const char *type, PyObject *obj)
1073 {
1074 if (type) {
1075 #if defined(SWIG_COBJECT_TYPES)
1076 if (obj && PySwigObject_Check(obj)) {
1077 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1078 if (otype) {
1079 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1080 type, otype);
1081 return;
1082 }
1083 } else
1084 #endif
1085 {
1086 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1087 if (otype) {
1088 PyObject *str = PyObject_Str(obj);
1089 const char *cstr = str ? PyString_AsString(str) : 0;
1090 if (cstr) {
1091 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1092 type, otype, cstr);
1093 } else {
1094 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1095 type, otype);
1096 }
1097 Py_XDECREF(str);
1098 return;
1099 }
1100 }
1101 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1102 } else {
1103 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1104 }
1105 }
1106
1107 SWIGRUNTIMEINLINE void
1108 SWIG_Python_NullRef(const char *type)
1109 {
1110 if (type) {
1111 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1112 } else {
1113 PyErr_Format(PyExc_TypeError, "null reference was received");
1114 }
1115 }
1116
1117 SWIGRUNTIME int
1118 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1119 {
1120 if (PyErr_Occurred()) {
1121 PyObject *type = 0;
1122 PyObject *value = 0;
1123 PyObject *traceback = 0;
1124 PyErr_Fetch(&type, &value, &traceback);
1125 if (value) {
1126 PyObject *old_str = PyObject_Str(value);
1127 Py_XINCREF(type);
1128 PyErr_Clear();
1129 if (infront) {
1130 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1131 } else {
1132 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1133 }
1134 Py_DECREF(old_str);
1135 }
1136 return 1;
1137 } else {
1138 return 0;
1139 }
1140 }
1141
1142 SWIGRUNTIME int
1143 SWIG_Python_ArgFail(int argnum)
1144 {
1145 if (PyErr_Occurred()) {
1146 /* add information about failing argument */
1147 char mesg[256];
1148 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1149 return SWIG_Python_AddErrMesg(mesg, 1);
1150 } else {
1151 return 0;
1152 }
1153 }
1154
1155
1156 /* -----------------------------------------------------------------------------
1157 * pointers/data manipulation
1158 * ----------------------------------------------------------------------------- */
1159
1160 /* Convert a pointer value */
1161 SWIGRUNTIME int
1162 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1163 swig_cast_info *tc;
1164 const char *c = 0;
1165 static PyObject *SWIG_this = 0;
1166 int newref = 0;
1167 PyObject *pyobj = 0;
1168 void *vptr;
1169
1170 if (!obj) return 0;
1171 if (obj == Py_None) {
1172 *ptr = 0;
1173 return 0;
1174 }
1175
1176 #ifdef SWIG_COBJECT_TYPES
1177 if (!(PySwigObject_Check(obj))) {
1178 if (!SWIG_this)
1179 SWIG_this = PyString_FromString("this");
1180 pyobj = obj;
1181 obj = PyObject_GetAttr(obj,SWIG_this);
1182 newref = 1;
1183 if (!obj) goto type_error;
1184 if (!PySwigObject_Check(obj)) {
1185 Py_DECREF(obj);
1186 goto type_error;
1187 }
1188 }
1189 vptr = PySwigObject_AsVoidPtr(obj);
1190 c = (const char *) PySwigObject_GetDesc(obj);
1191 if (newref) { Py_DECREF(obj); }
1192 goto type_check;
1193 #else
1194 if (!(PyString_Check(obj))) {
1195 if (!SWIG_this)
1196 SWIG_this = PyString_FromString("this");
1197 pyobj = obj;
1198 obj = PyObject_GetAttr(obj,SWIG_this);
1199 newref = 1;
1200 if (!obj) goto type_error;
1201 if (!PyString_Check(obj)) {
1202 Py_DECREF(obj);
1203 goto type_error;
1204 }
1205 }
1206 c = PyString_AsString(obj);
1207 /* Pointer values must start with leading underscore */
1208 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1209 if (newref) { Py_DECREF(obj); }
1210 if (!c) goto type_error;
1211 #endif
1212
1213 type_check:
1214 if (ty) {
1215 tc = SWIG_TypeCheck(c,ty);
1216 if (!tc) goto type_error;
1217 *ptr = SWIG_TypeCast(tc,vptr);
1218 } else {
1219 *ptr = vptr;
1220 }
1221 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1222 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1223 }
1224 return 0;
1225
1226 type_error:
1227 PyErr_Clear();
1228 if (pyobj && !obj) {
1229 obj = pyobj;
1230 if (PyCFunction_Check(obj)) {
1231 /* here we get the method pointer for callbacks */
1232 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1233 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1234 if (c) {
1235 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1236 if (!c) goto type_error;
1237 goto type_check;
1238 }
1239 }
1240 }
1241 if (flags & SWIG_POINTER_EXCEPTION) {
1242 if (ty) {
1243 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1244 } else {
1245 SWIG_Python_TypeError("C/C++ pointer", obj);
1246 }
1247 }
1248 return -1;
1249 }
1250
1251 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIGRUNTIME void *
1253 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1254 void *result;
1255 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1256 PyErr_Clear();
1257 if (flags & SWIG_POINTER_EXCEPTION) {
1258 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1259 SWIG_Python_ArgFail(argnum);
1260 }
1261 }
1262 return result;
1263 }
1264
1265 /* Convert a packed value value */
1266 SWIGRUNTIME int
1267 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1268 swig_cast_info *tc;
1269 const char *c = 0;
1270
1271 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1272 c = PySwigPacked_UnpackData(obj, ptr, sz);
1273 #else
1274 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1275 c = PyString_AsString(obj);
1276 /* Pointer values must start with leading underscore */
1277 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1278 #endif
1279 if (!c) goto type_error;
1280 if (ty) {
1281 tc = SWIG_TypeCheck(c,ty);
1282 if (!tc) goto type_error;
1283 }
1284 return 0;
1285
1286 type_error:
1287 PyErr_Clear();
1288 if (flags & SWIG_POINTER_EXCEPTION) {
1289 if (ty) {
1290 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1291 } else {
1292 SWIG_Python_TypeError("C/C++ packed data", obj);
1293 }
1294 }
1295 return -1;
1296 }
1297
1298 /* Create a new array object */
1299 SWIGRUNTIME PyObject *
1300 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1301 PyObject *robj = 0;
1302 if (!type) {
1303 if (!PyErr_Occurred()) {
1304 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1305 }
1306 return robj;
1307 }
1308 if (!ptr) {
1309 Py_INCREF(Py_None);
1310 return Py_None;
1311 }
1312 #ifdef SWIG_COBJECT_TYPES
1313 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1314 #else
1315 {
1316 char result[SWIG_BUFFER_SIZE];
1317 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1318 PyString_FromString(result) : 0;
1319 }
1320 #endif
1321 if (!robj || (robj == Py_None)) return robj;
1322 if (type->clientdata) {
1323 PyObject *inst;
1324 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1325 Py_DECREF(robj);
1326 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1327 Py_DECREF(args);
1328 if (inst) {
1329 if (own) {
1330 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1331 }
1332 robj = inst;
1333 }
1334 }
1335 return robj;
1336 }
1337
1338 SWIGRUNTIME PyObject *
1339 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1340 PyObject *robj = 0;
1341 if (!ptr) {
1342 Py_INCREF(Py_None);
1343 return Py_None;
1344 }
1345 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1346 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1347 #else
1348 {
1349 char result[SWIG_BUFFER_SIZE];
1350 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1351 PyString_FromString(result) : 0;
1352 }
1353 #endif
1354 return robj;
1355 }
1356
1357 /* -----------------------------------------------------------------------------*
1358 * Get type list
1359 * -----------------------------------------------------------------------------*/
1360
1361 #ifdef SWIG_LINK_RUNTIME
1362 void *SWIG_ReturnGlobalTypeList(void *);
1363 #endif
1364
1365 SWIGRUNTIME swig_module_info *
1366 SWIG_Python_GetModule(void) {
1367 static void *type_pointer = (void *)0;
1368 /* first check if module already created */
1369 if (!type_pointer) {
1370 #ifdef SWIG_LINK_RUNTIME
1371 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1372 #else
1373 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1374 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1375 if (PyErr_Occurred()) {
1376 PyErr_Clear();
1377 type_pointer = (void *)0;
1378 }
1379 #endif
1380 }
1381 return (swig_module_info *) type_pointer;
1382 }
1383
1384 #if PY_MAJOR_VERSION < 2
1385 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1386 is copied out of Python/modsupport.c in python version 2.3.4 */
1387 SWIGINTERN int
1388 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1389 {
1390 PyObject *dict;
1391 if (!PyModule_Check(m)) {
1392 PyErr_SetString(PyExc_TypeError,
1393 "PyModule_AddObject() needs module as first arg");
1394 return -1;
1395 }
1396 if (!o) {
1397 PyErr_SetString(PyExc_TypeError,
1398 "PyModule_AddObject() needs non-NULL value");
1399 return -1;
1400 }
1401
1402 dict = PyModule_GetDict(m);
1403 if (dict == NULL) {
1404 /* Internal error -- modules must have a dict! */
1405 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1406 PyModule_GetName(m));
1407 return -1;
1408 }
1409 if (PyDict_SetItemString(dict, name, o))
1410 return -1;
1411 Py_DECREF(o);
1412 return 0;
1413 }
1414 #endif
1415
1416 SWIGRUNTIME void
1417 SWIG_Python_SetModule(swig_module_info *swig_module) {
1418 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1419
1420 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1421 swig_empty_runtime_method_table);
1422 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1423 if (pointer && module) {
1424 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1425 }
1426 }
1427
1428 #ifdef __cplusplus
1429 }
1430 #endif
1431
1432
1433 /* -------- TYPES TABLE (BEGIN) -------- */
1434
1435 #define SWIGTYPE_p_char swig_types[0]
1436 #define SWIGTYPE_p_form_ops_t swig_types[1]
1437 #define SWIGTYPE_p_int swig_types[2]
1438 #define SWIGTYPE_p_unsigned_char swig_types[3]
1439 #define SWIGTYPE_p_unsigned_int swig_types[4]
1440 #define SWIGTYPE_p_unsigned_long swig_types[5]
1441 #define SWIGTYPE_p_void swig_types[6]
1442 #define SWIGTYPE_p_wxANIHandler swig_types[7]
1443 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
1444 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
1445 #define SWIGTYPE_p_wxArrayString swig_types[10]
1446 #define SWIGTYPE_p_wxBMPHandler swig_types[11]
1447 #define SWIGTYPE_p_wxBitmap swig_types[12]
1448 #define SWIGTYPE_p_wxBitmapDataObject swig_types[13]
1449 #define SWIGTYPE_p_wxBoxSizer swig_types[14]
1450 #define SWIGTYPE_p_wxBusyCursor swig_types[15]
1451 #define SWIGTYPE_p_wxBusyInfo swig_types[16]
1452 #define SWIGTYPE_p_wxCURHandler swig_types[17]
1453 #define SWIGTYPE_p_wxCaret swig_types[18]
1454 #define SWIGTYPE_p_wxChar swig_types[19]
1455 #define SWIGTYPE_p_wxChildFocusEvent swig_types[20]
1456 #define SWIGTYPE_p_wxClipboard swig_types[21]
1457 #define SWIGTYPE_p_wxClipboardLocker swig_types[22]
1458 #define SWIGTYPE_p_wxCloseEvent swig_types[23]
1459 #define SWIGTYPE_p_wxColour swig_types[24]
1460 #define SWIGTYPE_p_wxCommandEvent swig_types[25]
1461 #define SWIGTYPE_p_wxConfig swig_types[26]
1462 #define SWIGTYPE_p_wxConfigBase swig_types[27]
1463 #define SWIGTYPE_p_wxConfigPathChanger swig_types[28]
1464 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
1465 #define SWIGTYPE_p_wxControl swig_types[30]
1466 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
1467 #define SWIGTYPE_p_wxCursor swig_types[32]
1468 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
1469 #define SWIGTYPE_p_wxDC swig_types[34]
1470 #define SWIGTYPE_p_wxDataFormat swig_types[35]
1471 #define SWIGTYPE_p_wxDataObject swig_types[36]
1472 #define SWIGTYPE_p_wxDataObjectComposite swig_types[37]
1473 #define SWIGTYPE_p_wxDataObjectSimple swig_types[38]
1474 #define SWIGTYPE_p_wxDateEvent swig_types[39]
1475 #define SWIGTYPE_p_wxDateSpan swig_types[40]
1476 #define SWIGTYPE_p_wxDateTime swig_types[41]
1477 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[42]
1478 #define SWIGTYPE_p_wxDisplay swig_types[43]
1479 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
1480 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
1481 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
1482 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
1483 #define SWIGTYPE_p_wxEvent swig_types[48]
1484 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
1485 #define SWIGTYPE_p_wxFSFile swig_types[50]
1486 #define SWIGTYPE_p_wxFileConfig swig_types[51]
1487 #define SWIGTYPE_p_wxFileDataObject swig_types[52]
1488 #define SWIGTYPE_p_wxFileHistory swig_types[53]
1489 #define SWIGTYPE_p_wxFileSystem swig_types[54]
1490 #define SWIGTYPE_p_wxFileType swig_types[55]
1491 #define SWIGTYPE_p_wxFileTypeInfo swig_types[56]
1492 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
1493 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
1494 #define SWIGTYPE_p_wxFont swig_types[59]
1495 #define SWIGTYPE_p_wxFrame swig_types[60]
1496 #define SWIGTYPE_p_wxGBSizerItem swig_types[61]
1497 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
1498 #define SWIGTYPE_p_wxGridBagSizer swig_types[63]
1499 #define SWIGTYPE_p_wxGridSizer swig_types[64]
1500 #define SWIGTYPE_p_wxICOHandler swig_types[65]
1501 #define SWIGTYPE_p_wxIcon swig_types[66]
1502 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
1503 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
1504 #define SWIGTYPE_p_wxImage swig_types[69]
1505 #define SWIGTYPE_p_wxImageHandler swig_types[70]
1506 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71]
1507 #define SWIGTYPE_p_wxInitDialogEvent swig_types[72]
1508 #define SWIGTYPE_p_wxJPEGHandler swig_types[73]
1509 #define SWIGTYPE_p_wxJoystick swig_types[74]
1510 #define SWIGTYPE_p_wxJoystickEvent swig_types[75]
1511 #define SWIGTYPE_p_wxKeyEvent swig_types[76]
1512 #define SWIGTYPE_p_wxKillError swig_types[77]
1513 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
1514 #define SWIGTYPE_p_wxLog swig_types[79]
1515 #define SWIGTYPE_p_wxLogBuffer swig_types[80]
1516 #define SWIGTYPE_p_wxLogChain swig_types[81]
1517 #define SWIGTYPE_p_wxLogGui swig_types[82]
1518 #define SWIGTYPE_p_wxLogNull swig_types[83]
1519 #define SWIGTYPE_p_wxLogStderr swig_types[84]
1520 #define SWIGTYPE_p_wxLogTextCtrl swig_types[85]
1521 #define SWIGTYPE_p_wxLogWindow swig_types[86]
1522 #define SWIGTYPE_p_wxMaximizeEvent swig_types[87]
1523 #define SWIGTYPE_p_wxMemorySize swig_types[88]
1524 #define SWIGTYPE_p_wxMenu swig_types[89]
1525 #define SWIGTYPE_p_wxMenuBar swig_types[90]
1526 #define SWIGTYPE_p_wxMenuEvent swig_types[91]
1527 #define SWIGTYPE_p_wxMenuItem swig_types[92]
1528 #define SWIGTYPE_p_wxMetafile swig_types[93]
1529 #define SWIGTYPE_p_wxMetafileDataObject swig_types[94]
1530 #define SWIGTYPE_p_wxMimeTypesManager swig_types[95]
1531 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[96]
1532 #define SWIGTYPE_p_wxMouseEvent swig_types[97]
1533 #define SWIGTYPE_p_wxMouseState swig_types[98]
1534 #define SWIGTYPE_p_wxMoveEvent swig_types[99]
1535 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[100]
1536 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[101]
1537 #define SWIGTYPE_p_wxNcPaintEvent swig_types[102]
1538 #define SWIGTYPE_p_wxNotifyEvent swig_types[103]
1539 #define SWIGTYPE_p_wxObject swig_types[104]
1540 #define SWIGTYPE_p_wxOutputStream swig_types[105]
1541 #define SWIGTYPE_p_wxPCXHandler swig_types[106]
1542 #define SWIGTYPE_p_wxPNGHandler swig_types[107]
1543 #define SWIGTYPE_p_wxPNMHandler swig_types[108]
1544 #define SWIGTYPE_p_wxPaintEvent swig_types[109]
1545 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
1546 #define SWIGTYPE_p_wxPaperSize swig_types[111]
1547 #define SWIGTYPE_p_wxPoint swig_types[112]
1548 #define SWIGTYPE_p_wxProcessEvent swig_types[113]
1549 #define SWIGTYPE_p_wxPyApp swig_types[114]
1550 #define SWIGTYPE_p_wxPyArtProvider swig_types[115]
1551 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[116]
1552 #define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
1553 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[118]
1554 #define SWIGTYPE_p_wxPyDropSource swig_types[119]
1555 #define SWIGTYPE_p_wxPyDropTarget swig_types[120]
1556 #define SWIGTYPE_p_wxPyEvent swig_types[121]
1557 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[122]
1558 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
1559 #define SWIGTYPE_p_wxPyLog swig_types[124]
1560 #define SWIGTYPE_p_wxPyProcess swig_types[125]
1561 #define SWIGTYPE_p_wxPySizer swig_types[126]
1562 #define SWIGTYPE_p_wxPyTextDataObject swig_types[127]
1563 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[128]
1564 #define SWIGTYPE_p_wxPyTimer swig_types[129]
1565 #define SWIGTYPE_p_wxPyTipProvider swig_types[130]
1566 #define SWIGTYPE_p_wxPyValidator swig_types[131]
1567 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[132]
1568 #define SWIGTYPE_p_wxRect swig_types[133]
1569 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
1570 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
1571 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
1572 #define SWIGTYPE_p_wxShowEvent swig_types[137]
1573 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[138]
1574 #define SWIGTYPE_p_wxSize swig_types[139]
1575 #define SWIGTYPE_p_wxSizeEvent swig_types[140]
1576 #define SWIGTYPE_p_wxSizer swig_types[141]
1577 #define SWIGTYPE_p_wxSizerItem swig_types[142]
1578 #define SWIGTYPE_p_wxSound swig_types[143]
1579 #define SWIGTYPE_p_wxStandardPaths swig_types[144]
1580 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
1581 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
1582 #define SWIGTYPE_p_wxStopWatch swig_types[147]
1583 #define SWIGTYPE_p_wxString swig_types[148]
1584 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
1585 #define SWIGTYPE_p_wxSystemOptions swig_types[150]
1586 #define SWIGTYPE_p_wxSystemSettings swig_types[151]
1587 #define SWIGTYPE_p_wxTIFFHandler swig_types[152]
1588 #define SWIGTYPE_p_wxTextCtrl swig_types[153]
1589 #define SWIGTYPE_p_wxTextDataObject swig_types[154]
1590 #define SWIGTYPE_p_wxTimeSpan swig_types[155]
1591 #define SWIGTYPE_p_wxTimer swig_types[156]
1592 #define SWIGTYPE_p_wxTimerEvent swig_types[157]
1593 #define SWIGTYPE_p_wxTimerRunner swig_types[158]
1594 #define SWIGTYPE_p_wxTipProvider swig_types[159]
1595 #define SWIGTYPE_p_wxToolTip swig_types[160]
1596 #define SWIGTYPE_p_wxURLDataObject swig_types[161]
1597 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
1598 #define SWIGTYPE_p_wxValidator swig_types[163]
1599 #define SWIGTYPE_p_wxVideoMode swig_types[164]
1600 #define SWIGTYPE_p_wxWindow swig_types[165]
1601 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
1602 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
1603 #define SWIGTYPE_p_wxWindowDisabler swig_types[168]
1604 #define SWIGTYPE_p_wxXPMHandler swig_types[169]
1605 #define SWIGTYPE_ptrdiff_t swig_types[170]
1606 #define SWIGTYPE_std__ptrdiff_t swig_types[171]
1607 #define SWIGTYPE_unsigned_int swig_types[172]
1608 static swig_type_info *swig_types[174];
1609 static swig_module_info swig_module = {swig_types, 173, 0, 0, 0, 0};
1610 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1611 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1612
1613 /* -------- TYPES TABLE (END) -------- */
1614
1615
1616 /*-----------------------------------------------
1617 @(target):= _misc_.so
1618 ------------------------------------------------*/
1619 #define SWIG_init init_misc_
1620
1621 #define SWIG_name "_misc_"
1622
1623 #include "wx/wxPython/wxPython.h"
1624 #include "wx/wxPython/pyclasses.h"
1625 #include "wx/wxPython/pyistream.h"
1626
1627 static const wxString wxPyEmptyString(wxEmptyString);
1628
1629
1630
1631 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1632 #define SWIG_From_int PyInt_FromLong
1633 /*@@*/
1634
1635
1636 #include <limits.h>
1637
1638
1639 SWIGINTERN int
1640 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1641 const char *errmsg)
1642 {
1643 if (value < min_value) {
1644 if (errmsg) {
1645 PyErr_Format(PyExc_OverflowError,
1646 "value %ld is less than '%s' minimum %ld",
1647 value, errmsg, min_value);
1648 }
1649 return 0;
1650 } else if (value > max_value) {
1651 if (errmsg) {
1652 PyErr_Format(PyExc_OverflowError,
1653 "value %ld is greater than '%s' maximum %ld",
1654 value, errmsg, max_value);
1655 }
1656 return 0;
1657 }
1658 return 1;
1659 }
1660
1661
1662 SWIGINTERN int
1663 SWIG_AsVal_long(PyObject* obj, long* val)
1664 {
1665 if (PyNumber_Check(obj)) {
1666 if (val) *val = PyInt_AsLong(obj);
1667 return 1;
1668 }
1669 else {
1670 SWIG_Python_TypeError("number", obj);
1671 }
1672 return 0;
1673 }
1674
1675
1676 #if INT_MAX != LONG_MAX
1677 SWIGINTERN int
1678 SWIG_AsVal_int(PyObject *obj, int *val)
1679 {
1680 const char* errmsg = val ? "int" : (char*)0;
1681 long v;
1682 if (SWIG_AsVal_long(obj, &v)) {
1683 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1684 if (val) *val = static_cast<int >(v);
1685 return 1;
1686 } else {
1687 return 0;
1688 }
1689 } else {
1690 PyErr_Clear();
1691 }
1692 if (val) {
1693 SWIG_type_error(errmsg, obj);
1694 }
1695 return 0;
1696 }
1697 #else
1698 SWIGINTERNINLINE int
1699 SWIG_AsVal_int(PyObject *obj, int *val)
1700 {
1701 return SWIG_AsVal_long(obj,(long*)val);
1702 }
1703 #endif
1704
1705
1706 SWIGINTERNINLINE int
1707 SWIG_As_int(PyObject* obj)
1708 {
1709 int v;
1710 if (!SWIG_AsVal_int(obj, &v)) {
1711 /*
1712 this is needed to make valgrind/purify happier.
1713 */
1714 memset((void*)&v, 0, sizeof(int));
1715 }
1716 return v;
1717 }
1718
1719
1720 SWIGINTERNINLINE int
1721 SWIG_Check_int(PyObject* obj)
1722 {
1723 return SWIG_AsVal_int(obj, (int*)0);
1724 }
1725
1726 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
1727
1728 #include <wx/stockitem.h>
1729
1730 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
1731 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
1732 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
1733
1734 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1735 #define SWIG_From_long PyInt_FromLong
1736 /*@@*/
1737
1738
1739 SWIGINTERNINLINE long
1740 SWIG_As_long(PyObject* obj)
1741 {
1742 long v;
1743 if (!SWIG_AsVal_long(obj, &v)) {
1744 /*
1745 this is needed to make valgrind/purify happier.
1746 */
1747 memset((void*)&v, 0, sizeof(long));
1748 }
1749 return v;
1750 }
1751
1752
1753 SWIGINTERNINLINE int
1754 SWIG_Check_long(PyObject* obj)
1755 {
1756 return SWIG_AsVal_long(obj, (long*)0);
1757 }
1758
1759
1760 SWIGINTERN int
1761 SWIG_AsVal_bool(PyObject *obj, bool *val)
1762 {
1763 if (obj == Py_True) {
1764 if (val) *val = true;
1765 return 1;
1766 }
1767 if (obj == Py_False) {
1768 if (val) *val = false;
1769 return 1;
1770 }
1771 int res = 0;
1772 if (SWIG_AsVal_int(obj, &res)) {
1773 if (val) *val = res ? true : false;
1774 return 1;
1775 } else {
1776 PyErr_Clear();
1777 }
1778 if (val) {
1779 SWIG_type_error("bool", obj);
1780 }
1781 return 0;
1782 }
1783
1784
1785 SWIGINTERNINLINE bool
1786 SWIG_As_bool(PyObject* obj)
1787 {
1788 bool v;
1789 if (!SWIG_AsVal_bool(obj, &v)) {
1790 /*
1791 this is needed to make valgrind/purify happier.
1792 */
1793 memset((void*)&v, 0, sizeof(bool));
1794 }
1795 return v;
1796 }
1797
1798
1799 SWIGINTERNINLINE int
1800 SWIG_Check_bool(PyObject* obj)
1801 {
1802 return SWIG_AsVal_bool(obj, (bool*)0);
1803 }
1804
1805
1806 static PyObject* t_output_helper(PyObject* result, PyObject* obj)
1807 {
1808 PyObject* o2;
1809 PyObject* o3;
1810 if (!result) {
1811 result = obj;
1812 } else if (result == Py_None) {
1813 Py_DECREF(result);
1814 result = obj;
1815 } else {
1816 if (!PyTuple_Check(result)) {
1817 o2 = result;
1818 result = PyTuple_New(1);
1819 PyTuple_SET_ITEM(result, 0, o2);
1820 }
1821 o3 = PyTuple_New(1);
1822 PyTuple_SetItem(o3, 0, obj);
1823 o2 = result;
1824 result = PySequence_Concat(o2, o3);
1825 Py_DECREF(o2);
1826 Py_DECREF(o3);
1827 }
1828 return result;
1829 }
1830
1831
1832
1833 SWIGINTERN int
1834 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1835 {
1836 long v = 0;
1837 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1838 SWIG_Python_TypeError("unsigned number", obj);
1839 }
1840 else if (val)
1841 *val = (unsigned long)v;
1842 return 1;
1843 }
1844
1845
1846 SWIGINTERNINLINE unsigned long
1847 SWIG_As_unsigned_SS_long(PyObject* obj)
1848 {
1849 unsigned long v;
1850 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1851 /*
1852 this is needed to make valgrind/purify happier.
1853 */
1854 memset((void*)&v, 0, sizeof(unsigned long));
1855 }
1856 return v;
1857 }
1858
1859
1860 SWIGINTERNINLINE int
1861 SWIG_Check_unsigned_SS_long(PyObject* obj)
1862 {
1863 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1864 }
1865
1866
1867 SWIGINTERNINLINE PyObject*
1868 SWIG_From_unsigned_SS_long(unsigned long value)
1869 {
1870 return (value > LONG_MAX) ?
1871 PyLong_FromUnsignedLong(value)
1872 : PyInt_FromLong(static_cast<long >(value));
1873 }
1874
1875
1876 void* wxGetXDisplay()
1877 {
1878 #ifdef __WXGTK__
1879 return wxGetDisplay();
1880 #else
1881 return NULL;
1882 #endif
1883 }
1884
1885
1886 wxWindow* FindWindowAtPointer() {
1887 wxPoint unused;
1888 return wxFindWindowAtPointer(unused);
1889 }
1890
1891
1892 bool wxThread_IsMain() {
1893 #ifdef WXP_WITH_THREAD
1894 return wxThread::IsMain();
1895 #else
1896 return true;
1897 #endif
1898 }
1899
1900 static void wxCaret_Destroy(wxCaret *self){
1901 delete self;
1902 }
1903
1904 #include <wx/snglinst.h>
1905
1906
1907 #ifdef __WXMSW__
1908 #include <wx/msw/private.h>
1909 #include <wx/dynload.h>
1910 #endif
1911
1912
1913
1914 bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc
1915 #if 0
1916 , int method
1917 #endif
1918 )
1919 {
1920 #ifdef __WXMSW__
1921 #if 0
1922 switch (method)
1923 {
1924 case 1:
1925 // This one only partially works. Appears to be an undocumented
1926 // "standard" convention that not all widgets adhear to. For
1927 // example, for some widgets backgrounds or non-client areas may
1928 // not be painted.
1929 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
1930 break;
1931
1932 case 2:
1933 #endif
1934 // This one works much better, nearly all widgets and their
1935 // children are captured correctly[**]. Prior to the big
1936 // background erase changes that Vadim did in 2004-2005 this
1937 // method failed badly on XP with Themes activated, most native
1938 // widgets draw only partially, if at all. Without themes it
1939 // worked just like on Win2k. After those changes this method
1940 // works very well.
1941 //
1942 // ** For example the radio buttons in a wxRadioBox are not its
1943 // children by default, but you can capture it via the panel
1944 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
1945 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
1946 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
1947 PRF_ERASEBKGND | PRF_OWNED );
1948 return true;
1949 #if 0
1950 break;
1951
1952 case 3:
1953 // This one is only defined in the latest SDK and is only
1954 // available on XP. MSDN says it is similar to sending WM_PRINT
1955 // so I expect that it will work similar to the above. Since it
1956 // is avaialble only on XP, it can't be compiled like this and
1957 // will have to be loaded dynamically.
1958 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
1959
1960 // fall through
1961
1962 case 4:
1963 // Use PrintWindow if available, or fallback to WM_PRINT
1964 // otherwise. Unfortunately using PrintWindow is even worse than
1965 // WM_PRINT. For most native widgets nothing is drawn to the dc
1966 // at all, with or without Themes.
1967 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
1968 static bool s_triedToLoad = false;
1969 static PrintWindow_t pfnPrintWindow = NULL;
1970 if ( !s_triedToLoad )
1971 {
1972
1973 s_triedToLoad = true;
1974 wxDynamicLibrary dllUser32(_T("user32.dll"));
1975 if ( dllUser32.IsLoaded() )
1976 {
1977 wxLogNull nolog; // Don't report errors here
1978 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
1979 }
1980 }
1981 if (pfnPrintWindow)
1982 {
1983 //printf("Using PrintWindow\n");
1984 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
1985 }
1986 else
1987 {
1988 //printf("Using WM_PRINT\n");
1989 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
1990 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
1991 PRF_ERASEBKGND | PRF_OWNED );
1992 }
1993 }
1994 #endif // 0
1995 #else
1996 return false;
1997 #endif // __WXMSW__
1998 }
1999
2000
2001
2002 #include <wx/tipdlg.h>
2003
2004
2005 class wxPyTipProvider : public wxTipProvider {
2006 public:
2007 wxPyTipProvider(size_t currentTip)
2008 : wxTipProvider(currentTip) {}
2009
2010 DEC_PYCALLBACK_STRING__pure(GetTip);
2011 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
2012 PYPRIVATE;
2013 };
2014
2015 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
2016 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
2017
2018
2019 IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
2020
2021 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
2022
2023 wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id)
2024 : wxTimer(owner, id)
2025 {
2026 if (owner == NULL) SetOwner(this);
2027 }
2028
2029
2030 SWIGINTERN PyObject *
2031 SWIG_FromCharPtr(const char* cptr)
2032 {
2033 if (cptr) {
2034 size_t size = strlen(cptr);
2035 if (size > INT_MAX) {
2036 return SWIG_NewPointerObj(const_cast<char* >(cptr),
2037 SWIG_TypeQuery("char *"), 0);
2038 } else {
2039 if (size != 0) {
2040 return PyString_FromStringAndSize(cptr, size);
2041 } else {
2042 return PyString_FromString(cptr);
2043 }
2044 }
2045 }
2046 Py_INCREF(Py_None);
2047 return Py_None;
2048 }
2049
2050
2051 SWIGINTERNINLINE int
2052 SWIG_CheckUnsignedLongInRange(unsigned long value,
2053 unsigned long max_value,
2054 const char *errmsg)
2055 {
2056 if (value > max_value) {
2057 if (errmsg) {
2058 PyErr_Format(PyExc_OverflowError,
2059 "value %lu is greater than '%s' minimum %lu",
2060 value, errmsg, max_value);
2061 }
2062 return 0;
2063 }
2064 return 1;
2065 }
2066
2067
2068 #if UINT_MAX != ULONG_MAX
2069 SWIGINTERN int
2070 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2071 {
2072 const char* errmsg = val ? "unsigned int" : (char*)0;
2073 unsigned long v;
2074 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
2075 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
2076 if (val) *val = static_cast<unsigned int >(v);
2077 return 1;
2078 }
2079 } else {
2080 PyErr_Clear();
2081 }
2082 if (val) {
2083 SWIG_type_error(errmsg, obj);
2084 }
2085 return 0;
2086 }
2087 #else
2088 SWIGINTERNINLINE unsigned int
2089 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2090 {
2091 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
2092 }
2093 #endif
2094
2095
2096 SWIGINTERNINLINE unsigned int
2097 SWIG_As_unsigned_SS_int(PyObject* obj)
2098 {
2099 unsigned int v;
2100 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
2101 /*
2102 this is needed to make valgrind/purify happier.
2103 */
2104 memset((void*)&v, 0, sizeof(unsigned int));
2105 }
2106 return v;
2107 }
2108
2109
2110 SWIGINTERNINLINE int
2111 SWIG_Check_unsigned_SS_int(PyObject* obj)
2112 {
2113 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
2114 }
2115
2116 static wxString wxLog_TimeStamp(){
2117 wxString msg;
2118 wxLog::TimeStamp(&msg);
2119 return msg;
2120 }
2121 static void wxLog_Destroy(wxLog *self){ delete self; }
2122 // Make some wrappers that double any % signs so they are 'escaped'
2123 void wxPyLogFatalError(const wxString& msg)
2124 {
2125 wxString m(msg);
2126 m.Replace(wxT("%"), wxT("%%"));
2127 wxLogFatalError(m);
2128 }
2129
2130 void wxPyLogError(const wxString& msg)
2131 {
2132 wxString m(msg);
2133 m.Replace(wxT("%"), wxT("%%"));
2134 wxLogError(m);
2135 }
2136
2137 void wxPyLogWarning(const wxString& msg)
2138 {
2139 wxString m(msg);
2140 m.Replace(wxT("%"), wxT("%%"));
2141 wxLogWarning(m);
2142 }
2143
2144 void wxPyLogMessage(const wxString& msg)
2145 {
2146 wxString m(msg);
2147 m.Replace(wxT("%"), wxT("%%"));
2148 wxLogMessage(m);
2149 }
2150
2151 void wxPyLogInfo(const wxString& msg)
2152 {
2153 wxString m(msg);
2154 m.Replace(wxT("%"), wxT("%%"));
2155 wxLogInfo(m);
2156 }
2157
2158 void wxPyLogDebug(const wxString& msg)
2159 {
2160 wxString m(msg);
2161 m.Replace(wxT("%"), wxT("%%"));
2162 wxLogDebug(m);
2163 }
2164
2165 void wxPyLogVerbose(const wxString& msg)
2166 {
2167 wxString m(msg);
2168 m.Replace(wxT("%"), wxT("%%"));
2169 wxLogVerbose(m);
2170 }
2171
2172 void wxPyLogStatus(const wxString& msg)
2173 {
2174 wxString m(msg);
2175 m.Replace(wxT("%"), wxT("%%"));
2176 wxLogStatus(m);
2177 }
2178
2179 void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg)
2180 {
2181 wxString m(msg);
2182 m.Replace(wxT("%"), wxT("%%"));
2183 wxLogStatus(pFrame, m);
2184 }
2185
2186 void wxPyLogSysError(const wxString& msg)
2187 {
2188 wxString m(msg);
2189 m.Replace(wxT("%"), wxT("%%"));
2190 wxLogSysError(m);
2191 }
2192
2193 void wxPyLogGeneric(unsigned long level, const wxString& msg)
2194 {
2195 wxString m(msg);
2196 m.Replace(wxT("%"), wxT("%%"));
2197 wxLogGeneric(level, m);
2198 }
2199
2200 void wxPyLogTrace(unsigned long mask, const wxString& msg)
2201 {
2202 wxString m(msg);
2203 m.Replace(wxT("%"), wxT("%%"));
2204 wxLogTrace(mask, m);
2205 }
2206
2207 void wxPyLogTrace(const wxString& mask, const wxString& msg)
2208 {
2209 wxString m(msg);
2210 m.Replace(wxT("%"), wxT("%%"));
2211 wxLogTrace(mask, m);
2212 }
2213
2214
2215
2216 // A wxLog class that can be derived from in wxPython
2217 class wxPyLog : public wxLog {
2218 public:
2219 wxPyLog() : wxLog() {}
2220
2221 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
2222 bool found;
2223 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2224 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
2225 PyObject* s = wx2PyString(szString);
2226 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
2227 Py_DECREF(s);
2228 }
2229 wxPyEndBlockThreads(blocked);
2230 if (! found)
2231 wxLog::DoLog(level, szString, t);
2232 }
2233
2234 virtual void DoLogString(const wxChar *szString, time_t t) {
2235 bool found;
2236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2237 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
2238 PyObject* s = wx2PyString(szString);
2239 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
2240 Py_DECREF(s);
2241 }
2242 wxPyEndBlockThreads(blocked);
2243 if (! found)
2244 wxLog::DoLogString(szString, t);
2245 }
2246
2247 DEC_PYCALLBACK_VOID_(Flush);
2248 PYPRIVATE;
2249 };
2250 IMP_PYCALLBACK_VOID_(wxPyLog, wxLog, Flush);
2251
2252
2253
2254
2255 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
2256
2257
2258 #include <wx/joystick.h>
2259
2260
2261 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
2262 // A C++ stub class for wxJoystick for platforms that don't have it.
2263 class wxJoystick : public wxObject {
2264 public:
2265 wxJoystick(int joystick = wxJOYSTICK1) {
2266 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2267 PyErr_SetString(PyExc_NotImplementedError,
2268 "wxJoystick is not available on this platform.");
2269 wxPyEndBlockThreads(blocked);
2270 }
2271 wxPoint GetPosition() { return wxPoint(-1,-1); }
2272 int GetZPosition() { return -1; }
2273 int GetButtonState() { return -1; }
2274 int GetPOVPosition() { return -1; }
2275 int GetPOVCTSPosition() { return -1; }
2276 int GetRudderPosition() { return -1; }
2277 int GetUPosition() { return -1; }
2278 int GetVPosition() { return -1; }
2279 int GetMovementThreshold() { return -1; }
2280 void SetMovementThreshold(int threshold) {}
2281
2282 bool IsOk(void) { return false; }
2283 int GetNumberJoysticks() { return -1; }
2284 int GetManufacturerId() { return -1; }
2285 int GetProductId() { return -1; }
2286 wxString GetProductName() { return wxEmptyString; }
2287 int GetXMin() { return -1; }
2288 int GetYMin() { return -1; }
2289 int GetZMin() { return -1; }
2290 int GetXMax() { return -1; }
2291 int GetYMax() { return -1; }
2292 int GetZMax() { return -1; }
2293 int GetNumberButtons() { return -1; }
2294 int GetNumberAxes() { return -1; }
2295 int GetMaxButtons() { return -1; }
2296 int GetMaxAxes() { return -1; }
2297 int GetPollingMin() { return -1; }
2298 int GetPollingMax() { return -1; }
2299 int GetRudderMin() { return -1; }
2300 int GetRudderMax() { return -1; }
2301 int GetUMin() { return -1; }
2302 int GetUMax() { return -1; }
2303 int GetVMin() { return -1; }
2304 int GetVMax() { return -1; }
2305
2306 bool HasRudder() { return false; }
2307 bool HasZ() { return false; }
2308 bool HasU() { return false; }
2309 bool HasV() { return false; }
2310 bool HasPOV() { return false; }
2311 bool HasPOV4Dir() { return false; }
2312 bool HasPOVCTS() { return false; }
2313
2314 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
2315 bool ReleaseCapture() { return false; }
2316 };
2317 #endif
2318
2319
2320 #include <wx/sound.h>
2321
2322
2323 #if !wxUSE_SOUND
2324 // A C++ stub class for wxWave for platforms that don't have it.
2325 class wxSound : public wxObject
2326 {
2327 public:
2328 wxSound() {
2329 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2330 PyErr_SetString(PyExc_NotImplementedError,
2331 "wxSound is not available on this platform.");
2332 wxPyEndBlockThreads(blocked);
2333 }
2334 wxSound(const wxString&/*, bool*/) {
2335 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2336 PyErr_SetString(PyExc_NotImplementedError,
2337 "wxSound is not available on this platform.");
2338 wxPyEndBlockThreads(blocked);
2339 }
2340 wxSound(int, const wxByte*) {
2341 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2342 PyErr_SetString(PyExc_NotImplementedError,
2343 "wxSound is not available on this platform.");
2344 wxPyEndBlockThreads(blocked);
2345 }
2346
2347 ~wxSound() {};
2348
2349 bool Create(const wxString&/*, bool*/) { return false; }
2350 bool Create(int, const wxByte*) { return false; };
2351 bool IsOk() { return false; };
2352 bool Play(unsigned) const { return false; }
2353 static bool Play(const wxString&, unsigned) { return false; }
2354 static void Stop() {}
2355 };
2356
2357 #endif
2358
2359 static wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){
2360 if (fileName.Length() == 0)
2361 return new wxSound;
2362 else
2363 return new wxSound(fileName);
2364 }
2365 static wxSound *new_wxSound(PyObject *data){
2366 unsigned char* buffer; int size;
2367 wxSound *sound = NULL;
2368
2369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2370 if (!PyArg_Parse(data, "t#", &buffer, &size))
2371 goto done;
2372 sound = new wxSound(size, buffer);
2373 done:
2374 wxPyEndBlockThreads(blocked);
2375 return sound;
2376 }
2377 static bool wxSound_CreateFromData(wxSound *self,PyObject *data){
2378 #ifndef __WXMAC__
2379 unsigned char* buffer;
2380 int size;
2381 bool rv = false;
2382
2383 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2384 if (!PyArg_Parse(data, "t#", &buffer, &size))
2385 goto done;
2386 rv = self->Create(size, buffer);
2387 done:
2388 wxPyEndBlockThreads(blocked);
2389 return rv;
2390 #else
2391 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2392 PyErr_SetString(PyExc_NotImplementedError,
2393 "Create from data is not available on this platform.");
2394 wxPyEndBlockThreads(blocked);
2395 return false;
2396 #endif
2397 }
2398
2399 #include <wx/mimetype.h>
2400
2401 static PyObject *wxFileType_GetMimeType(wxFileType *self){
2402 wxString str;
2403 if (self->GetMimeType(&str))
2404 return wx2PyString(str);
2405 else
2406 RETURN_NONE();
2407 }
2408 static PyObject *wxFileType_GetMimeTypes(wxFileType *self){
2409 wxArrayString arr;
2410 if (self->GetMimeTypes(arr))
2411 return wxArrayString2PyList_helper(arr);
2412 else
2413 RETURN_NONE();
2414 }
2415 static PyObject *wxFileType_GetExtensions(wxFileType *self){
2416 wxArrayString arr;
2417 if (self->GetExtensions(arr))
2418 return wxArrayString2PyList_helper(arr);
2419 else
2420 RETURN_NONE();
2421 }
2422 static wxIcon *wxFileType_GetIcon(wxFileType *self){
2423 wxIconLocation loc;
2424 if (self->GetIcon(&loc))
2425 return new wxIcon(loc);
2426 else
2427 return NULL;
2428 }
2429 static PyObject *wxFileType_GetIconInfo(wxFileType *self){
2430 wxIconLocation loc;
2431 if (self->GetIcon(&loc)) {
2432 wxString iconFile = loc.GetFileName();
2433 int iconIndex = -1;
2434
2435
2436
2437 // Make a tuple and put the values in it
2438 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2439 PyObject* tuple = PyTuple_New(3);
2440 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
2441 wxT("wxIcon"), true));
2442 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
2443 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
2444 wxPyEndBlockThreads(blocked);
2445 return tuple;
2446 }
2447 else
2448 RETURN_NONE();
2449 }
2450 static PyObject *wxFileType_GetDescription(wxFileType *self){
2451 wxString str;
2452 if (self->GetDescription(&str))
2453 return wx2PyString(str);
2454 else
2455 RETURN_NONE();
2456 }
2457 static PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2458 wxString str;
2459 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
2460 return wx2PyString(str);
2461 else
2462 RETURN_NONE();
2463 }
2464 static PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2465 wxString str;
2466 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
2467 return wx2PyString(str);
2468 else
2469 RETURN_NONE();
2470 }
2471 static PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2472 wxArrayString verbs;
2473 wxArrayString commands;
2474 if (self->GetAllCommands(&verbs, &commands,
2475 wxFileType::MessageParameters(filename, mimetype))) {
2476 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2477 PyObject* tuple = PyTuple_New(2);
2478 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
2479 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
2480 wxPyEndBlockThreads(blocked);
2481 return tuple;
2482 }
2483 else
2484 RETURN_NONE();
2485 }
2486 static wxString wxFileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2487 return wxFileType::ExpandCommand(command,
2488 wxFileType::MessageParameters(filename, mimetype));
2489 }
2490 static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
2491 wxArrayString arr;
2492 self->EnumAllFileTypes(arr);
2493 return wxArrayString2PyList_helper(arr);
2494 }
2495
2496 #include <wx/artprov.h>
2497
2498 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
2499 static const wxString wxPyART_MENU(wxART_MENU);
2500 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
2501 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
2502 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
2503 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
2504 static const wxString wxPyART_BUTTON(wxART_BUTTON);
2505 static const wxString wxPyART_OTHER(wxART_OTHER);
2506 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
2507 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
2508 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
2509 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
2510 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
2511 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
2512 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
2513 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
2514 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
2515 static const wxString wxPyART_GO_UP(wxART_GO_UP);
2516 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
2517 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
2518 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
2519 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
2520 static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE);
2521 static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS);
2522 static const wxString wxPyART_PRINT(wxART_PRINT);
2523 static const wxString wxPyART_HELP(wxART_HELP);
2524 static const wxString wxPyART_TIP(wxART_TIP);
2525 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
2526 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
2527 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
2528 static const wxString wxPyART_HARDDISK(wxART_HARDDISK);
2529 static const wxString wxPyART_FLOPPY(wxART_FLOPPY);
2530 static const wxString wxPyART_CDROM(wxART_CDROM);
2531 static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE);
2532 static const wxString wxPyART_FOLDER(wxART_FOLDER);
2533 static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN);
2534 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
2535 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
2536 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
2537 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
2538 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
2539 static const wxString wxPyART_ERROR(wxART_ERROR);
2540 static const wxString wxPyART_QUESTION(wxART_QUESTION);
2541 static const wxString wxPyART_WARNING(wxART_WARNING);
2542 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
2543 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
2544 static const wxString wxPyART_COPY(wxART_COPY);
2545 static const wxString wxPyART_CUT(wxART_CUT);
2546 static const wxString wxPyART_PASTE(wxART_PASTE);
2547 static const wxString wxPyART_DELETE(wxART_DELETE);
2548 static const wxString wxPyART_NEW(wxART_NEW);
2549 static const wxString wxPyART_UNDO(wxART_UNDO);
2550 static const wxString wxPyART_REDO(wxART_REDO);
2551 static const wxString wxPyART_QUIT(wxART_QUIT);
2552 static const wxString wxPyART_FIND(wxART_FIND);
2553 static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE);
2554 // Python aware wxArtProvider
2555 class wxPyArtProvider : public wxArtProvider {
2556 public:
2557
2558 virtual wxBitmap CreateBitmap(const wxArtID& id,
2559 const wxArtClient& client,
2560 const wxSize& size) {
2561 wxBitmap rval = wxNullBitmap;
2562 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2563 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
2564 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
2565 PyObject* ro;
2566 wxBitmap* ptr;
2567 PyObject* s1, *s2;
2568 s1 = wx2PyString(id);
2569 s2 = wx2PyString(client);
2570 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
2571 Py_DECREF(so);
2572 Py_DECREF(s1);
2573 Py_DECREF(s2);
2574 if (ro) {
2575 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
2576 rval = *ptr;
2577 Py_DECREF(ro);
2578 }
2579 }
2580 wxPyEndBlockThreads(blocked);
2581 return rval;
2582 }
2583
2584 PYPRIVATE;
2585 };
2586
2587 static void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
2588
2589
2590
2591 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
2592 PyObject* ret = PyTuple_New(3);
2593 if (ret) {
2594 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
2595 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
2596 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
2597 }
2598 return ret;
2599 }
2600
2601 static PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
2602 bool cont;
2603 long index = 0;
2604 wxString value;
2605
2606 cont = self->GetFirstGroup(value, index);
2607 return __EnumerationHelper(cont, value, index);
2608 }
2609 static PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
2610 bool cont;
2611 wxString value;
2612
2613 cont = self->GetNextGroup(value, index);
2614 return __EnumerationHelper(cont, value, index);
2615 }
2616 static PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
2617 bool cont;
2618 long index = 0;
2619 wxString value;
2620
2621 cont = self->GetFirstEntry(value, index);
2622 return __EnumerationHelper(cont, value, index);
2623 }
2624 static PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
2625 bool cont;
2626 wxString value;
2627
2628 cont = self->GetNextEntry(value, index);
2629 return __EnumerationHelper(cont, value, index);
2630 }
2631 static long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){
2632 long rv;
2633 self->Read(key, &rv, defaultVal);
2634 return rv;
2635 }
2636
2637 SWIGINTERN int
2638 SWIG_AsVal_double(PyObject *obj, double* val)
2639 {
2640 if (PyNumber_Check(obj)) {
2641 if (val) *val = PyFloat_AsDouble(obj);
2642 return 1;
2643 }
2644 else {
2645 SWIG_Python_TypeError("number", obj);
2646 }
2647 return 0;
2648 }
2649
2650
2651 SWIGINTERNINLINE double
2652 SWIG_As_double(PyObject* obj)
2653 {
2654 double v;
2655 if (!SWIG_AsVal_double(obj, &v)) {
2656 /*
2657 this is needed to make valgrind/purify happier.
2658 */
2659 memset((void*)&v, 0, sizeof(double));
2660 }
2661 return v;
2662 }
2663
2664
2665 SWIGINTERNINLINE int
2666 SWIG_Check_double(PyObject* obj)
2667 {
2668 return SWIG_AsVal_double(obj, (double*)0);
2669 }
2670
2671 static double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){
2672 double rv;
2673 self->Read(key, &rv, defaultVal);
2674 return rv;
2675 }
2676
2677 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2678 #define SWIG_From_double PyFloat_FromDouble
2679 /*@@*/
2680
2681 static bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){
2682 bool rv;
2683 self->Read(key, &rv, defaultVal);
2684 return rv;
2685 }
2686
2687 #include <wx/datetime.h>
2688
2689 static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat);
2690 static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat);
2691
2692 #define LOCAL_TZ wxDateTime::Local
2693
2694 static PyObject *wxDateTime_GetAmPmStrings(){
2695 wxString am;
2696 wxString pm;
2697 wxDateTime::GetAmPmStrings(&am, &pm);
2698 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2699 PyObject* tup = PyTuple_New(2);
2700 PyTuple_SET_ITEM(tup, 0, wx2PyString(am));
2701 PyTuple_SET_ITEM(tup, 1, wx2PyString(pm));
2702 wxPyEndBlockThreads(blocked);
2703 return tup;
2704 }
2705
2706 #if UINT_MAX < LONG_MAX
2707 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2708 #define SWIG_From_unsigned_SS_int SWIG_From_long
2709 /*@@*/
2710 #else
2711 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2712 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
2713 /*@@*/
2714 #endif
2715
2716 static wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
2717 static wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
2718 static wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
2719 static wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
2720 static wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
2721 static bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
2722 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
2723 return (*self < *other);
2724 }
2725 static bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
2726 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
2727 return (*self <= *other);
2728 }
2729 static bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
2730 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
2731 return (*self > *other);
2732 }
2733 static bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
2734 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
2735 return (*self >= *other);
2736 }
2737 static bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
2738 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
2739 return (*self == *other);
2740 }
2741 static bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
2742 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
2743 return (*self != *other);
2744 }
2745 static int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
2746 const wxChar* rv;
2747 const wxChar* _date = date;
2748 rv = self->ParseRfc822Date(_date);
2749 if (rv == NULL) return -1;
2750 return rv - _date;
2751 }
2752 static int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){
2753 const wxChar* rv;
2754 const wxChar* _date = date;
2755 rv = self->ParseFormat(_date, format, dateDef);
2756 if (rv == NULL) return -1;
2757 return rv - _date;
2758 }
2759 static int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
2760 const wxChar* rv;
2761 const wxChar* _datetime = datetime;
2762 rv = self->ParseDateTime(_datetime);
2763 if (rv == NULL) return -1;
2764 return rv - _datetime;
2765 }
2766 static int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
2767 const wxChar* rv;
2768 const wxChar* _date = date;
2769 rv = self->ParseDate(_date);
2770 if (rv == NULL) return -1;
2771 return rv - _date;
2772 }
2773 static int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
2774 const wxChar* rv;
2775 const wxChar* _time = time;
2776 rv = self->ParseTime(_time);
2777 if (rv == NULL) return -1;
2778 return rv - _time;
2779 }
2780 static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
2781 static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
2782 static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
2783 static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
2784 static bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
2785 static bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
2786 static bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
2787 static bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
2788 static bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
2789 static bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
2790 static wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
2791 static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
2792 static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
2793 static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
2794 static bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
2795 static bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
2796
2797 #include <wx/dataobj.h>
2798
2799 static PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){
2800 size_t count = self->GetFormatCount(dir);
2801 wxDataFormat* formats = new wxDataFormat[count];
2802 self->GetAllFormats(formats, dir);
2803
2804 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2805 PyObject* list = PyList_New(count);
2806 for (size_t i=0; i<count; i++) {
2807 wxDataFormat* format = new wxDataFormat(formats[i]);
2808 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
2809 PyList_SET_ITEM(list, i, obj); // PyList_SET_ITEM steals a reference
2810 }
2811 wxPyEndBlockThreads(blocked);
2812 delete [] formats;
2813 return list;
2814 }
2815 static PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
2816 PyObject* rval = NULL;
2817 size_t size = self->GetDataSize(format);
2818 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2819 if (size) {
2820 char* buf = new char[size];
2821 if (self->GetDataHere(format, buf))
2822 rval = PyString_FromStringAndSize(buf, size);
2823 delete [] buf;
2824 }
2825 if (! rval) {
2826 rval = Py_None;
2827 Py_INCREF(rval);
2828 }
2829 wxPyEndBlockThreads(blocked);
2830 return rval;
2831 }
2832 static bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
2833 bool rval;
2834 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2835 if (PyString_Check(data)) {
2836 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
2837 }
2838 else {
2839 // raise a TypeError if not a string
2840 PyErr_SetString(PyExc_TypeError, "String expected.");
2841 rval = false;
2842 }
2843 wxPyEndBlockThreads(blocked);
2844 return rval;
2845 }
2846 static PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
2847 PyObject* rval = NULL;
2848 size_t size = self->GetDataSize();
2849 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2850 if (size) {
2851 char* buf = new char[size];
2852 if (self->GetDataHere(buf))
2853 rval = PyString_FromStringAndSize(buf, size);
2854 delete [] buf;
2855 }
2856 if (! rval) {
2857 rval = Py_None;
2858 Py_INCREF(rval);
2859 }
2860 wxPyEndBlockThreads(blocked);
2861 return rval;
2862 }
2863 static bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
2864 bool rval;
2865 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2866 if (PyString_Check(data)) {
2867 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
2868 }
2869 else {
2870 // raise a TypeError if not a string
2871 PyErr_SetString(PyExc_TypeError, "String expected.");
2872 rval = false;
2873 }
2874 wxPyEndBlockThreads(blocked);
2875 return rval;
2876 }
2877 // Create a new class for wxPython to use
2878 class wxPyDataObjectSimple : public wxDataObjectSimple {
2879 public:
2880 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
2881 : wxDataObjectSimple(format) {}
2882
2883 DEC_PYCALLBACK_SIZET__const(GetDataSize);
2884 bool GetDataHere(void *buf) const;
2885 bool SetData(size_t len, const void *buf) const;
2886 PYPRIVATE;
2887 };
2888
2889 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
2890
2891 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
2892 // We need to get the data for this object and write it to buf. I think
2893 // the best way to do this for wxPython is to have the Python method
2894 // return either a string or None and then act appropriately with the
2895 // C++ version.
2896
2897 bool rval = false;
2898 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2899 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
2900 PyObject* ro;
2901 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
2902 if (ro) {
2903 rval = (ro != Py_None && PyString_Check(ro));
2904 if (rval)
2905 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
2906 Py_DECREF(ro);
2907 }
2908 }
2909 wxPyEndBlockThreads(blocked);
2910 return rval;
2911 }
2912
2913 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
2914 // For this one we simply need to make a string from buf and len
2915 // and send it to the Python method.
2916 bool rval = false;
2917 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2918 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
2919 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
2920 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
2921 Py_DECREF(data);
2922 }
2923 wxPyEndBlockThreads(blocked);
2924 return rval;
2925 }
2926
2927 // Create a new class for wxPython to use
2928 class wxPyTextDataObject : public wxTextDataObject {
2929 public:
2930 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
2931 : wxTextDataObject(text) {}
2932
2933 DEC_PYCALLBACK_SIZET__const(GetTextLength);
2934 DEC_PYCALLBACK_STRING__const(GetText);
2935 DEC_PYCALLBACK__STRING(SetText);
2936 PYPRIVATE;
2937 };
2938
2939 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
2940 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
2941 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
2942
2943
2944 // Create a new class for wxPython to use
2945 class wxPyBitmapDataObject : public wxBitmapDataObject {
2946 public:
2947 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
2948 : wxBitmapDataObject(bitmap) {}
2949
2950 wxBitmap GetBitmap() const;
2951 void SetBitmap(const wxBitmap& bitmap);
2952 PYPRIVATE;
2953 };
2954
2955 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
2956 wxBitmap* rval = &wxNullBitmap;
2957 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2958 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
2959 PyObject* ro;
2960 wxBitmap* ptr;
2961 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
2962 if (ro) {
2963 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
2964 rval = ptr;
2965 Py_DECREF(ro);
2966 }
2967 }
2968 wxPyEndBlockThreads(blocked);
2969 return *rval;
2970 }
2971
2972 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
2973 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2974 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
2975 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
2976 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
2977 Py_DECREF(bo);
2978 }
2979 wxPyEndBlockThreads(blocked);
2980 }
2981
2982 static wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){
2983 return new wxCustomDataObject(wxDataFormat(formatName));
2984 }
2985 static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
2986 bool rval;
2987 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2988 if (PyString_Check(data)) {
2989 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
2990 }
2991 else {
2992 // raise a TypeError if not a string
2993 PyErr_SetString(PyExc_TypeError, "String expected.");
2994 rval = false;
2995 }
2996 wxPyEndBlockThreads(blocked);
2997 return rval;
2998 }
2999 static PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
3000 PyObject* obj;
3001 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3002 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
3003 wxPyEndBlockThreads(blocked);
3004 return obj;
3005 }
3006
3007 #include <wx/metafile.h>
3008
3009
3010 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
3011
3012
3013 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
3014 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
3015 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
3016 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
3017 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
3018
3019
3020 class wxPyTextDropTarget : public wxTextDropTarget {
3021 public:
3022 wxPyTextDropTarget() {}
3023
3024 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
3025
3026 DEC_PYCALLBACK__(OnLeave);
3027 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3028 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3029 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3030 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3031
3032 PYPRIVATE;
3033 };
3034
3035 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
3036 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
3037 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
3038 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
3039 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
3040 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
3041
3042
3043
3044 class wxPyFileDropTarget : public wxFileDropTarget {
3045 public:
3046 wxPyFileDropTarget() {}
3047
3048 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
3049
3050 DEC_PYCALLBACK__(OnLeave);
3051 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3052 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3053 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3054 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3055
3056 PYPRIVATE;
3057 };
3058
3059 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
3060 const wxArrayString& filenames) {
3061 bool rval = false;
3062 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3063 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
3064 PyObject* list = wxArrayString2PyList_helper(filenames);
3065 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
3066 Py_DECREF(list);
3067 }
3068 wxPyEndBlockThreads(blocked);
3069 return rval;
3070 }
3071
3072
3073
3074 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
3075 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
3076 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
3077 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
3078 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
3079
3080
3081
3082
3083 static bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
3084
3085 #include <wx/display.h>
3086
3087 static bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
3088 static bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
3089
3090 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
3091 #if !wxUSE_DISPLAY
3092 #include <wx/dynarray.h>
3093 #include <wx/vidmode.h>
3094
3095 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
3096 #include "wx/arrimpl.cpp"
3097 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
3098 const wxVideoMode wxDefaultVideoMode;
3099
3100 class wxDisplay
3101 {
3102 public:
3103 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
3104 ~wxDisplay() {}
3105
3106 static size_t GetCount()
3107 { wxPyRaiseNotImplemented(); return 0; }
3108
3109 static int GetFromPoint(const wxPoint& pt)
3110 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3111 static int GetFromWindow(wxWindow *window)
3112 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3113
3114 virtual bool IsOk() const { return false; }
3115 virtual wxRect GetGeometry() const { wxRect r; return r; }
3116 virtual wxString GetName() const { return wxEmptyString; }
3117 bool IsPrimary() const { return false; }
3118
3119 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
3120 { wxArrayVideoModes a; return a; }
3121
3122 virtual wxVideoMode GetCurrentMode() const
3123 { return wxDefaultVideoMode; }
3124
3125 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
3126 { return false; }
3127
3128 void ResetMode() {}
3129 };
3130 #endif
3131
3132 static int wxDisplay_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3133 static PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){
3134 PyObject* pyList = NULL;
3135 wxArrayVideoModes arr = self->GetModes(mode);
3136 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3137 pyList = PyList_New(0);
3138 for (int i=0; i < arr.GetCount(); i++) {
3139 wxVideoMode* m = new wxVideoMode(arr.Item(i));
3140 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
3141 PyList_Append(pyList, pyObj);
3142 Py_DECREF(pyObj);
3143 }
3144 wxPyEndBlockThreads(blocked);
3145 return pyList;
3146 }
3147
3148 #include <wx/stdpaths.h>
3149
3150 static wxStandardPaths *wxStandardPaths_Get(){
3151 return (wxStandardPaths*) &wxStandardPaths::Get();
3152 }
3153 static void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){}
3154 static wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; }
3155 #ifdef __cplusplus
3156 extern "C" {
3157 #endif
3158 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3159 PyObject *resultobj = NULL;
3160 wxSystemColour arg1 ;
3161 wxColour result;
3162 PyObject * obj0 = 0 ;
3163 char *kwnames[] = {
3164 (char *) "index", NULL
3165 };
3166
3167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
3168 {
3169 arg1 = static_cast<wxSystemColour >(SWIG_As_int(obj0));
3170 if (SWIG_arg_fail(1)) SWIG_fail;
3171 }
3172 {
3173 if (!wxPyCheckForApp()) SWIG_fail;
3174 PyThreadState* __tstate = wxPyBeginAllowThreads();
3175 result = wxSystemSettings::GetColour(arg1);
3176
3177 wxPyEndAllowThreads(__tstate);
3178 if (PyErr_Occurred()) SWIG_fail;
3179 }
3180 {
3181 wxColour * resultptr;
3182 resultptr = new wxColour(static_cast<wxColour & >(result));
3183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3184 }
3185 return resultobj;
3186 fail:
3187 return NULL;
3188 }
3189
3190
3191 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
3192 PyObject *resultobj = NULL;
3193 wxSystemFont arg1 ;
3194 wxFont result;
3195 PyObject * obj0 = 0 ;
3196 char *kwnames[] = {
3197 (char *) "index", NULL
3198 };
3199
3200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
3201 {
3202 arg1 = static_cast<wxSystemFont >(SWIG_As_int(obj0));
3203 if (SWIG_arg_fail(1)) SWIG_fail;
3204 }
3205 {
3206 if (!wxPyCheckForApp()) SWIG_fail;
3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
3208 result = wxSystemSettings::GetFont(arg1);
3209
3210 wxPyEndAllowThreads(__tstate);
3211 if (PyErr_Occurred()) SWIG_fail;
3212 }
3213 {
3214 wxFont * resultptr;
3215 resultptr = new wxFont(static_cast<wxFont & >(result));
3216 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
3217 }
3218 return resultobj;
3219 fail:
3220 return NULL;
3221 }
3222
3223
3224 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
3225 PyObject *resultobj = NULL;
3226 wxSystemMetric arg1 ;
3227 wxWindow *arg2 = (wxWindow *) NULL ;
3228 int result;
3229 PyObject * obj0 = 0 ;
3230 PyObject * obj1 = 0 ;
3231 char *kwnames[] = {
3232 (char *) "index",(char *) "win", NULL
3233 };
3234
3235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) goto fail;
3236 {
3237 arg1 = static_cast<wxSystemMetric >(SWIG_As_int(obj0));
3238 if (SWIG_arg_fail(1)) SWIG_fail;
3239 }
3240 if (obj1) {
3241 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
3242 if (SWIG_arg_fail(2)) SWIG_fail;
3243 }
3244 {
3245 if (!wxPyCheckForApp()) SWIG_fail;
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 result = (int)wxSystemSettings::GetMetric(arg1,arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 {
3253 resultobj = SWIG_From_int(static_cast<int >(result));
3254 }
3255 return resultobj;
3256 fail:
3257 return NULL;
3258 }
3259
3260
3261 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
3262 PyObject *resultobj = NULL;
3263 wxSystemFeature arg1 ;
3264 bool result;
3265 PyObject * obj0 = 0 ;
3266 char *kwnames[] = {
3267 (char *) "index", NULL
3268 };
3269
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
3271 {
3272 arg1 = static_cast<wxSystemFeature >(SWIG_As_int(obj0));
3273 if (SWIG_arg_fail(1)) SWIG_fail;
3274 }
3275 {
3276 if (!wxPyCheckForApp()) SWIG_fail;
3277 PyThreadState* __tstate = wxPyBeginAllowThreads();
3278 result = (bool)wxSystemSettings::HasFeature(arg1);
3279
3280 wxPyEndAllowThreads(__tstate);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 }
3283 {
3284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3285 }
3286 return resultobj;
3287 fail:
3288 return NULL;
3289 }
3290
3291
3292 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
3293 PyObject *resultobj = NULL;
3294 wxSystemScreenType result;
3295 char *kwnames[] = {
3296 NULL
3297 };
3298
3299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
3300 {
3301 if (!wxPyCheckForApp()) SWIG_fail;
3302 PyThreadState* __tstate = wxPyBeginAllowThreads();
3303 result = (wxSystemScreenType)wxSystemSettings::GetScreenType();
3304
3305 wxPyEndAllowThreads(__tstate);
3306 if (PyErr_Occurred()) SWIG_fail;
3307 }
3308 resultobj = SWIG_From_int((result));
3309 return resultobj;
3310 fail:
3311 return NULL;
3312 }
3313
3314
3315 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
3316 PyObject *resultobj = NULL;
3317 wxSystemScreenType arg1 ;
3318 PyObject * obj0 = 0 ;
3319 char *kwnames[] = {
3320 (char *) "screen", NULL
3321 };
3322
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
3324 {
3325 arg1 = static_cast<wxSystemScreenType >(SWIG_As_int(obj0));
3326 if (SWIG_arg_fail(1)) SWIG_fail;
3327 }
3328 {
3329 if (!wxPyCheckForApp()) SWIG_fail;
3330 PyThreadState* __tstate = wxPyBeginAllowThreads();
3331 wxSystemSettings::SetScreenType(arg1);
3332
3333 wxPyEndAllowThreads(__tstate);
3334 if (PyErr_Occurred()) SWIG_fail;
3335 }
3336 Py_INCREF(Py_None); resultobj = Py_None;
3337 return resultobj;
3338 fail:
3339 return NULL;
3340 }
3341
3342
3343 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
3344 PyObject *obj;
3345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3346 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
3347 Py_INCREF(obj);
3348 return Py_BuildValue((char *)"");
3349 }
3350 static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) {
3351 PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
3352 return 1;
3353 }
3354
3355
3356 static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get(void) {
3357 PyObject *pyobj = NULL;
3358
3359 {
3360 #if wxUSE_UNICODE
3361 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
3362 #else
3363 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
3364 #endif
3365 }
3366 return pyobj;
3367 }
3368
3369
3370 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
3371 PyObject *resultobj = NULL;
3372 wxSystemOptions *result;
3373 char *kwnames[] = {
3374 NULL
3375 };
3376
3377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
3378 {
3379 PyThreadState* __tstate = wxPyBeginAllowThreads();
3380 result = (wxSystemOptions *)new wxSystemOptions();
3381
3382 wxPyEndAllowThreads(__tstate);
3383 if (PyErr_Occurred()) SWIG_fail;
3384 }
3385 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
3386 return resultobj;
3387 fail:
3388 return NULL;
3389 }
3390
3391
3392 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
3393 PyObject *resultobj = NULL;
3394 wxString *arg1 = 0 ;
3395 wxString *arg2 = 0 ;
3396 bool temp1 = false ;
3397 bool temp2 = false ;
3398 PyObject * obj0 = 0 ;
3399 PyObject * obj1 = 0 ;
3400 char *kwnames[] = {
3401 (char *) "name",(char *) "value", NULL
3402 };
3403
3404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
3405 {
3406 arg1 = wxString_in_helper(obj0);
3407 if (arg1 == NULL) SWIG_fail;
3408 temp1 = true;
3409 }
3410 {
3411 arg2 = wxString_in_helper(obj1);
3412 if (arg2 == NULL) SWIG_fail;
3413 temp2 = true;
3414 }
3415 {
3416 PyThreadState* __tstate = wxPyBeginAllowThreads();
3417 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
3418
3419 wxPyEndAllowThreads(__tstate);
3420 if (PyErr_Occurred()) SWIG_fail;
3421 }
3422 Py_INCREF(Py_None); resultobj = Py_None;
3423 {
3424 if (temp1)
3425 delete arg1;
3426 }
3427 {
3428 if (temp2)
3429 delete arg2;
3430 }
3431 return resultobj;
3432 fail:
3433 {
3434 if (temp1)
3435 delete arg1;
3436 }
3437 {
3438 if (temp2)
3439 delete arg2;
3440 }
3441 return NULL;
3442 }
3443
3444
3445 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
3446 PyObject *resultobj = NULL;
3447 wxString *arg1 = 0 ;
3448 int arg2 ;
3449 bool temp1 = false ;
3450 PyObject * obj0 = 0 ;
3451 PyObject * obj1 = 0 ;
3452 char *kwnames[] = {
3453 (char *) "name",(char *) "value", NULL
3454 };
3455
3456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
3457 {
3458 arg1 = wxString_in_helper(obj0);
3459 if (arg1 == NULL) SWIG_fail;
3460 temp1 = true;
3461 }
3462 {
3463 arg2 = static_cast<int >(SWIG_As_int(obj1));
3464 if (SWIG_arg_fail(2)) SWIG_fail;
3465 }
3466 {
3467 PyThreadState* __tstate = wxPyBeginAllowThreads();
3468 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
3469
3470 wxPyEndAllowThreads(__tstate);
3471 if (PyErr_Occurred()) SWIG_fail;
3472 }
3473 Py_INCREF(Py_None); resultobj = Py_None;
3474 {
3475 if (temp1)
3476 delete arg1;
3477 }
3478 return resultobj;
3479 fail:
3480 {
3481 if (temp1)
3482 delete arg1;
3483 }
3484 return NULL;
3485 }
3486
3487
3488 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
3489 PyObject *resultobj = NULL;
3490 wxString *arg1 = 0 ;
3491 wxString result;
3492 bool temp1 = false ;
3493 PyObject * obj0 = 0 ;
3494 char *kwnames[] = {
3495 (char *) "name", NULL
3496 };
3497
3498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
3499 {
3500 arg1 = wxString_in_helper(obj0);
3501 if (arg1 == NULL) SWIG_fail;
3502 temp1 = true;
3503 }
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = wxSystemOptions::GetOption((wxString const &)*arg1);
3507
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 {
3512 #if wxUSE_UNICODE
3513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3514 #else
3515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3516 #endif
3517 }
3518 {
3519 if (temp1)
3520 delete arg1;
3521 }
3522 return resultobj;
3523 fail:
3524 {
3525 if (temp1)
3526 delete arg1;
3527 }
3528 return NULL;
3529 }
3530
3531
3532 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
3533 PyObject *resultobj = NULL;
3534 wxString *arg1 = 0 ;
3535 int result;
3536 bool temp1 = false ;
3537 PyObject * obj0 = 0 ;
3538 char *kwnames[] = {
3539 (char *) "name", NULL
3540 };
3541
3542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
3543 {
3544 arg1 = wxString_in_helper(obj0);
3545 if (arg1 == NULL) SWIG_fail;
3546 temp1 = true;
3547 }
3548 {
3549 PyThreadState* __tstate = wxPyBeginAllowThreads();
3550 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
3551
3552 wxPyEndAllowThreads(__tstate);
3553 if (PyErr_Occurred()) SWIG_fail;
3554 }
3555 {
3556 resultobj = SWIG_From_int(static_cast<int >(result));
3557 }
3558 {
3559 if (temp1)
3560 delete arg1;
3561 }
3562 return resultobj;
3563 fail:
3564 {
3565 if (temp1)
3566 delete arg1;
3567 }
3568 return NULL;
3569 }
3570
3571
3572 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
3573 PyObject *resultobj = NULL;
3574 wxString *arg1 = 0 ;
3575 bool result;
3576 bool temp1 = false ;
3577 PyObject * obj0 = 0 ;
3578 char *kwnames[] = {
3579 (char *) "name", NULL
3580 };
3581
3582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
3583 {
3584 arg1 = wxString_in_helper(obj0);
3585 if (arg1 == NULL) SWIG_fail;
3586 temp1 = true;
3587 }
3588 {
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
3591
3592 wxPyEndAllowThreads(__tstate);
3593 if (PyErr_Occurred()) SWIG_fail;
3594 }
3595 {
3596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3597 }
3598 {
3599 if (temp1)
3600 delete arg1;
3601 }
3602 return resultobj;
3603 fail:
3604 {
3605 if (temp1)
3606 delete arg1;
3607 }
3608 return NULL;
3609 }
3610
3611
3612 static PyObject *_wrap_SystemOptions_IsFalse(PyObject *, PyObject *args, PyObject *kwargs) {
3613 PyObject *resultobj = NULL;
3614 wxString *arg1 = 0 ;
3615 bool result;
3616 bool temp1 = false ;
3617 PyObject * obj0 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "name", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) goto fail;
3623 {
3624 arg1 = wxString_in_helper(obj0);
3625 if (arg1 == NULL) SWIG_fail;
3626 temp1 = true;
3627 }
3628 {
3629 PyThreadState* __tstate = wxPyBeginAllowThreads();
3630 result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1);
3631
3632 wxPyEndAllowThreads(__tstate);
3633 if (PyErr_Occurred()) SWIG_fail;
3634 }
3635 {
3636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3637 }
3638 {
3639 if (temp1)
3640 delete arg1;
3641 }
3642 return resultobj;
3643 fail:
3644 {
3645 if (temp1)
3646 delete arg1;
3647 }
3648 return NULL;
3649 }
3650
3651
3652 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
3653 PyObject *obj;
3654 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3655 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
3656 Py_INCREF(obj);
3657 return Py_BuildValue((char *)"");
3658 }
3659 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
3660 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
3661 return 1;
3662 }
3663
3664
3665 static PyObject *_wrap_FileSelectorPromptStr_get(void) {
3666 PyObject *pyobj = NULL;
3667
3668 {
3669 #if wxUSE_UNICODE
3670 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
3671 #else
3672 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
3673 #endif
3674 }
3675 return pyobj;
3676 }
3677
3678
3679 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
3680 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
3681 return 1;
3682 }
3683
3684
3685 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get(void) {
3686 PyObject *pyobj = NULL;
3687
3688 {
3689 #if wxUSE_UNICODE
3690 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
3691 #else
3692 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
3693 #endif
3694 }
3695 return pyobj;
3696 }
3697
3698
3699 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
3700 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
3701 return 1;
3702 }
3703
3704
3705 static PyObject *_wrap_DirSelectorPromptStr_get(void) {
3706 PyObject *pyobj = NULL;
3707
3708 {
3709 #if wxUSE_UNICODE
3710 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
3711 #else
3712 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
3713 #endif
3714 }
3715 return pyobj;
3716 }
3717
3718
3719 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
3720 PyObject *resultobj = NULL;
3721 long result;
3722 char *kwnames[] = {
3723 NULL
3724 };
3725
3726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (long)wxNewId();
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 {
3735 resultobj = SWIG_From_long(static_cast<long >(result));
3736 }
3737 return resultobj;
3738 fail:
3739 return NULL;
3740 }
3741
3742
3743 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
3744 PyObject *resultobj = NULL;
3745 long arg1 ;
3746 PyObject * obj0 = 0 ;
3747 char *kwnames[] = {
3748 (char *) "id", NULL
3749 };
3750
3751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
3752 {
3753 arg1 = static_cast<long >(SWIG_As_long(obj0));
3754 if (SWIG_arg_fail(1)) SWIG_fail;
3755 }
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 wxRegisterId(arg1);
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 Py_INCREF(Py_None); resultobj = Py_None;
3764 return resultobj;
3765 fail:
3766 return NULL;
3767 }
3768
3769
3770 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
3771 PyObject *resultobj = NULL;
3772 long result;
3773 char *kwnames[] = {
3774 NULL
3775 };
3776
3777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
3778 {
3779 PyThreadState* __tstate = wxPyBeginAllowThreads();
3780 result = (long)wxGetCurrentId();
3781
3782 wxPyEndAllowThreads(__tstate);
3783 if (PyErr_Occurred()) SWIG_fail;
3784 }
3785 {
3786 resultobj = SWIG_From_long(static_cast<long >(result));
3787 }
3788 return resultobj;
3789 fail:
3790 return NULL;
3791 }
3792
3793
3794 static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
3795 PyObject *resultobj = NULL;
3796 int arg1 ;
3797 bool result;
3798 PyObject * obj0 = 0 ;
3799 char *kwnames[] = {
3800 (char *) "id", NULL
3801 };
3802
3803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
3804 {
3805 arg1 = static_cast<int >(SWIG_As_int(obj0));
3806 if (SWIG_arg_fail(1)) SWIG_fail;
3807 }
3808 {
3809 PyThreadState* __tstate = wxPyBeginAllowThreads();
3810 result = (bool)wxIsStockID(arg1);
3811
3812 wxPyEndAllowThreads(__tstate);
3813 if (PyErr_Occurred()) SWIG_fail;
3814 }
3815 {
3816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3817 }
3818 return resultobj;
3819 fail:
3820 return NULL;
3821 }
3822
3823
3824 static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj = NULL;
3826 int arg1 ;
3827 wxString *arg2 = 0 ;
3828 bool result;
3829 bool temp2 = false ;
3830 PyObject * obj0 = 0 ;
3831 PyObject * obj1 = 0 ;
3832 char *kwnames[] = {
3833 (char *) "id",(char *) "label", NULL
3834 };
3835
3836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
3837 {
3838 arg1 = static_cast<int >(SWIG_As_int(obj0));
3839 if (SWIG_arg_fail(1)) SWIG_fail;
3840 }
3841 {
3842 arg2 = wxString_in_helper(obj1);
3843 if (arg2 == NULL) SWIG_fail;
3844 temp2 = true;
3845 }
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
3849
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 {
3854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3855 }
3856 {
3857 if (temp2)
3858 delete arg2;
3859 }
3860 return resultobj;
3861 fail:
3862 {
3863 if (temp2)
3864 delete arg2;
3865 }
3866 return NULL;
3867 }
3868
3869
3870 static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
3871 PyObject *resultobj = NULL;
3872 int arg1 ;
3873 bool arg2 = (bool) true ;
3874 wxString arg3 = (wxString) wxPyEmptyString ;
3875 wxString result;
3876 PyObject * obj0 = 0 ;
3877 PyObject * obj1 = 0 ;
3878 PyObject * obj2 = 0 ;
3879 char *kwnames[] = {
3880 (char *) "id",(char *) "withCodes",(char *) "accelerator", NULL
3881 };
3882
3883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
3884 {
3885 arg1 = static_cast<int >(SWIG_As_int(obj0));
3886 if (SWIG_arg_fail(1)) SWIG_fail;
3887 }
3888 if (obj1) {
3889 {
3890 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
3891 if (SWIG_arg_fail(2)) SWIG_fail;
3892 }
3893 }
3894 if (obj2) {
3895 {
3896 wxString* sptr = wxString_in_helper(obj2);
3897 if (sptr == NULL) SWIG_fail;
3898 arg3 = *sptr;
3899 delete sptr;
3900 }
3901 }
3902 {
3903 PyThreadState* __tstate = wxPyBeginAllowThreads();
3904 result = wxGetStockLabel(arg1,arg2,arg3);
3905
3906 wxPyEndAllowThreads(__tstate);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 {
3910 #if wxUSE_UNICODE
3911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3912 #else
3913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3914 #endif
3915 }
3916 return resultobj;
3917 fail:
3918 return NULL;
3919 }
3920
3921
3922 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
3923 PyObject *resultobj = NULL;
3924 char *kwnames[] = {
3925 NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
3929 {
3930 if (!wxPyCheckForApp()) SWIG_fail;
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 wxBell();
3933
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 Py_INCREF(Py_None); resultobj = Py_None;
3938 return resultobj;
3939 fail:
3940 return NULL;
3941 }
3942
3943
3944 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3945 PyObject *resultobj = NULL;
3946 char *kwnames[] = {
3947 NULL
3948 };
3949
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
3951 {
3952 if (!wxPyCheckForApp()) SWIG_fail;
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 wxEndBusyCursor();
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 Py_INCREF(Py_None); resultobj = Py_None;
3960 return resultobj;
3961 fail:
3962 return NULL;
3963 }
3964
3965
3966 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
3967 PyObject *resultobj = NULL;
3968 bool arg1 = (bool) true ;
3969 long result;
3970 PyObject * obj0 = 0 ;
3971 char *kwnames[] = {
3972 (char *) "resetTimer", NULL
3973 };
3974
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
3976 if (obj0) {
3977 {
3978 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
3979 if (SWIG_arg_fail(1)) SWIG_fail;
3980 }
3981 }
3982 {
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 result = (long)wxGetElapsedTime(arg1);
3985
3986 wxPyEndAllowThreads(__tstate);
3987 if (PyErr_Occurred()) SWIG_fail;
3988 }
3989 {
3990 resultobj = SWIG_From_long(static_cast<long >(result));
3991 }
3992 return resultobj;
3993 fail:
3994 return NULL;
3995 }
3996
3997
3998 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
3999 PyObject *resultobj = NULL;
4000 bool result;
4001 char *kwnames[] = {
4002 NULL
4003 };
4004
4005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 result = (bool)wxIsBusy();
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 {
4014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4015 }
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj = NULL;
4024 wxString result;
4025 char *kwnames[] = {
4026 NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 result = wxNow();
4033
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 {
4038 #if wxUSE_UNICODE
4039 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4040 #else
4041 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4042 #endif
4043 }
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj = NULL;
4052 wxString const &arg1_defvalue = wxPyEmptyString ;
4053 wxString *arg1 = (wxString *) &arg1_defvalue ;
4054 bool result;
4055 bool temp1 = false ;
4056 PyObject * obj0 = 0 ;
4057 char *kwnames[] = {
4058 (char *) "command", NULL
4059 };
4060
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
4062 if (obj0) {
4063 {
4064 arg1 = wxString_in_helper(obj0);
4065 if (arg1 == NULL) SWIG_fail;
4066 temp1 = true;
4067 }
4068 }
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 result = (bool)wxShell((wxString const &)*arg1);
4072
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 {
4077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4078 }
4079 {
4080 if (temp1)
4081 delete arg1;
4082 }
4083 return resultobj;
4084 fail:
4085 {
4086 if (temp1)
4087 delete arg1;
4088 }
4089 return NULL;
4090 }
4091
4092
4093 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj = NULL;
4095 char *kwnames[] = {
4096 NULL
4097 };
4098
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
4100 {
4101 PyThreadState* __tstate = wxPyBeginAllowThreads();
4102 wxStartTimer();
4103
4104 wxPyEndAllowThreads(__tstate);
4105 if (PyErr_Occurred()) SWIG_fail;
4106 }
4107 Py_INCREF(Py_None); resultobj = Py_None;
4108 return resultobj;
4109 fail:
4110 return NULL;
4111 }
4112
4113
4114 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
4115 PyObject *resultobj = NULL;
4116 int *arg1 = (int *) 0 ;
4117 int *arg2 = (int *) 0 ;
4118 int result;
4119 int temp1 ;
4120 int res1 = 0 ;
4121 int temp2 ;
4122 int res2 = 0 ;
4123 char *kwnames[] = {
4124 NULL
4125 };
4126
4127 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4128 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
4130 {
4131 PyThreadState* __tstate = wxPyBeginAllowThreads();
4132 result = (int)wxGetOsVersion(arg1,arg2);
4133
4134 wxPyEndAllowThreads(__tstate);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 {
4138 resultobj = SWIG_From_int(static_cast<int >(result));
4139 }
4140 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4141 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4142 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4143 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4144 return resultobj;
4145 fail:
4146 return NULL;
4147 }
4148
4149
4150 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
4151 PyObject *resultobj = NULL;
4152 wxString result;
4153 char *kwnames[] = {
4154 NULL
4155 };
4156
4157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
4158 {
4159 PyThreadState* __tstate = wxPyBeginAllowThreads();
4160 result = wxGetOsDescription();
4161
4162 wxPyEndAllowThreads(__tstate);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 {
4166 #if wxUSE_UNICODE
4167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4168 #else
4169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4170 #endif
4171 }
4172 return resultobj;
4173 fail:
4174 return NULL;
4175 }
4176
4177
4178 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
4179 PyObject *resultobj = NULL;
4180 wxMemorySize result;
4181 char *kwnames[] = {
4182 NULL
4183 };
4184
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 result = wxGetFreeMemory();
4189
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 {
4194 wxMemorySize * resultptr;
4195 resultptr = new wxMemorySize(static_cast<wxMemorySize & >(result));
4196 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMemorySize, 1);
4197 }
4198 return resultobj;
4199 fail:
4200 return NULL;
4201 }
4202
4203
4204 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
4205 PyObject *resultobj = NULL;
4206 wxShutdownFlags arg1 ;
4207 bool result;
4208 PyObject * obj0 = 0 ;
4209 char *kwnames[] = {
4210 (char *) "wFlags", NULL
4211 };
4212
4213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
4214 {
4215 arg1 = static_cast<wxShutdownFlags >(SWIG_As_int(obj0));
4216 if (SWIG_arg_fail(1)) SWIG_fail;
4217 }
4218 {
4219 if (!wxPyCheckForApp()) SWIG_fail;
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 result = (bool)wxShutdown(arg1);
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 {
4227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4228 }
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj = NULL;
4237 int arg1 ;
4238 PyObject * obj0 = 0 ;
4239 char *kwnames[] = {
4240 (char *) "secs", NULL
4241 };
4242
4243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
4244 {
4245 arg1 = static_cast<int >(SWIG_As_int(obj0));
4246 if (SWIG_arg_fail(1)) SWIG_fail;
4247 }
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 wxSleep(arg1);
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 Py_INCREF(Py_None); resultobj = Py_None;
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj = NULL;
4264 unsigned long arg1 ;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "milliseconds", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
4271 {
4272 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
4273 if (SWIG_arg_fail(1)) SWIG_fail;
4274 }
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 wxMilliSleep(arg1);
4278
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 Py_INCREF(Py_None); resultobj = Py_None;
4283 return resultobj;
4284 fail:
4285 return NULL;
4286 }
4287
4288
4289 static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj = NULL;
4291 unsigned long arg1 ;
4292 PyObject * obj0 = 0 ;
4293 char *kwnames[] = {
4294 (char *) "microseconds", NULL
4295 };
4296
4297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
4298 {
4299 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
4300 if (SWIG_arg_fail(1)) SWIG_fail;
4301 }
4302 {
4303 PyThreadState* __tstate = wxPyBeginAllowThreads();
4304 wxMicroSleep(arg1);
4305
4306 wxPyEndAllowThreads(__tstate);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
4309 Py_INCREF(Py_None); resultobj = Py_None;
4310 return resultobj;
4311 fail:
4312 return NULL;
4313 }
4314
4315
4316 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj = NULL;
4318 bool arg1 ;
4319 PyObject * obj0 = 0 ;
4320 char *kwnames[] = {
4321 (char *) "enable", NULL
4322 };
4323
4324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
4325 {
4326 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
4327 if (SWIG_arg_fail(1)) SWIG_fail;
4328 }
4329 {
4330 PyThreadState* __tstate = wxPyBeginAllowThreads();
4331 wxEnableTopLevelWindows(arg1);
4332
4333 wxPyEndAllowThreads(__tstate);
4334 if (PyErr_Occurred()) SWIG_fail;
4335 }
4336 Py_INCREF(Py_None); resultobj = Py_None;
4337 return resultobj;
4338 fail:
4339 return NULL;
4340 }
4341
4342
4343 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
4344 PyObject *resultobj = NULL;
4345 wxString *arg1 = 0 ;
4346 wxString result;
4347 bool temp1 = false ;
4348 PyObject * obj0 = 0 ;
4349 char *kwnames[] = {
4350 (char *) "in", NULL
4351 };
4352
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
4354 {
4355 arg1 = wxString_in_helper(obj0);
4356 if (arg1 == NULL) SWIG_fail;
4357 temp1 = true;
4358 }
4359 {
4360 PyThreadState* __tstate = wxPyBeginAllowThreads();
4361 result = wxStripMenuCodes((wxString const &)*arg1);
4362
4363 wxPyEndAllowThreads(__tstate);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 {
4367 #if wxUSE_UNICODE
4368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4369 #else
4370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4371 #endif
4372 }
4373 {
4374 if (temp1)
4375 delete arg1;
4376 }
4377 return resultobj;
4378 fail:
4379 {
4380 if (temp1)
4381 delete arg1;
4382 }
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj = NULL;
4389 wxString result;
4390 char *kwnames[] = {
4391 NULL
4392 };
4393
4394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
4397 result = wxGetEmailAddress();
4398
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 {
4403 #if wxUSE_UNICODE
4404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4405 #else
4406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4407 #endif
4408 }
4409 return resultobj;
4410 fail:
4411 return NULL;
4412 }
4413
4414
4415 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
4416 PyObject *resultobj = NULL;
4417 wxString result;
4418 char *kwnames[] = {
4419 NULL
4420 };
4421
4422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 result = wxGetHostName();
4426
4427 wxPyEndAllowThreads(__tstate);
4428 if (PyErr_Occurred()) SWIG_fail;
4429 }
4430 {
4431 #if wxUSE_UNICODE
4432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4433 #else
4434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4435 #endif
4436 }
4437 return resultobj;
4438 fail:
4439 return NULL;
4440 }
4441
4442
4443 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
4444 PyObject *resultobj = NULL;
4445 wxString result;
4446 char *kwnames[] = {
4447 NULL
4448 };
4449
4450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = wxGetFullHostName();
4454
4455 wxPyEndAllowThreads(__tstate);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 {
4459 #if wxUSE_UNICODE
4460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4461 #else
4462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4463 #endif
4464 }
4465 return resultobj;
4466 fail:
4467 return NULL;
4468 }
4469
4470
4471 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj = NULL;
4473 wxString result;
4474 char *kwnames[] = {
4475 NULL
4476 };
4477
4478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = wxGetUserId();
4482
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 {
4487 #if wxUSE_UNICODE
4488 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4489 #else
4490 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4491 #endif
4492 }
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj = NULL;
4501 wxString result;
4502 char *kwnames[] = {
4503 NULL
4504 };
4505
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = wxGetUserName();
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 {
4515 #if wxUSE_UNICODE
4516 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4517 #else
4518 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4519 #endif
4520 }
4521 return resultobj;
4522 fail:
4523 return NULL;
4524 }
4525
4526
4527 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
4528 PyObject *resultobj = NULL;
4529 wxString result;
4530 char *kwnames[] = {
4531 NULL
4532 };
4533
4534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
4535 {
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 result = wxGetHomeDir();
4538
4539 wxPyEndAllowThreads(__tstate);
4540 if (PyErr_Occurred()) SWIG_fail;
4541 }
4542 {
4543 #if wxUSE_UNICODE
4544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4545 #else
4546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4547 #endif
4548 }
4549 return resultobj;
4550 fail:
4551 return NULL;
4552 }
4553
4554
4555 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
4556 PyObject *resultobj = NULL;
4557 wxString const &arg1_defvalue = wxPyEmptyString ;
4558 wxString *arg1 = (wxString *) &arg1_defvalue ;
4559 wxString result;
4560 bool temp1 = false ;
4561 PyObject * obj0 = 0 ;
4562 char *kwnames[] = {
4563 (char *) "user", NULL
4564 };
4565
4566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
4567 if (obj0) {
4568 {
4569 arg1 = wxString_in_helper(obj0);
4570 if (arg1 == NULL) SWIG_fail;
4571 temp1 = true;
4572 }
4573 }
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 result = wxGetUserHome((wxString const &)*arg1);
4577
4578 wxPyEndAllowThreads(__tstate);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 {
4582 #if wxUSE_UNICODE
4583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4584 #else
4585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4586 #endif
4587 }
4588 {
4589 if (temp1)
4590 delete arg1;
4591 }
4592 return resultobj;
4593 fail:
4594 {
4595 if (temp1)
4596 delete arg1;
4597 }
4598 return NULL;
4599 }
4600
4601
4602 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
4603 PyObject *resultobj = NULL;
4604 unsigned long result;
4605 char *kwnames[] = {
4606 NULL
4607 };
4608
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
4610 {
4611 PyThreadState* __tstate = wxPyBeginAllowThreads();
4612 result = (unsigned long)wxGetProcessId();
4613
4614 wxPyEndAllowThreads(__tstate);
4615 if (PyErr_Occurred()) SWIG_fail;
4616 }
4617 {
4618 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
4619 }
4620 return resultobj;
4621 fail:
4622 return NULL;
4623 }
4624
4625
4626 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj = NULL;
4628 char *kwnames[] = {
4629 NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 wxTrap();
4636
4637 wxPyEndAllowThreads(__tstate);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 }
4640 Py_INCREF(Py_None); resultobj = Py_None;
4641 return resultobj;
4642 fail:
4643 return NULL;
4644 }
4645
4646
4647 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj = NULL;
4649 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
4650 wxString *arg1 = (wxString *) &arg1_defvalue ;
4651 wxString const &arg2_defvalue = wxPyEmptyString ;
4652 wxString *arg2 = (wxString *) &arg2_defvalue ;
4653 wxString const &arg3_defvalue = wxPyEmptyString ;
4654 wxString *arg3 = (wxString *) &arg3_defvalue ;
4655 wxString const &arg4_defvalue = wxPyEmptyString ;
4656 wxString *arg4 = (wxString *) &arg4_defvalue ;
4657 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
4658 wxString *arg5 = (wxString *) &arg5_defvalue ;
4659 int arg6 = (int) 0 ;
4660 wxWindow *arg7 = (wxWindow *) NULL ;
4661 int arg8 = (int) -1 ;
4662 int arg9 = (int) -1 ;
4663 wxString result;
4664 bool temp1 = false ;
4665 bool temp2 = false ;
4666 bool temp3 = false ;
4667 bool temp4 = false ;
4668 bool temp5 = false ;
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 PyObject * obj2 = 0 ;
4672 PyObject * obj3 = 0 ;
4673 PyObject * obj4 = 0 ;
4674 PyObject * obj5 = 0 ;
4675 PyObject * obj6 = 0 ;
4676 PyObject * obj7 = 0 ;
4677 PyObject * obj8 = 0 ;
4678 char *kwnames[] = {
4679 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
4680 };
4681
4682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4683 if (obj0) {
4684 {
4685 arg1 = wxString_in_helper(obj0);
4686 if (arg1 == NULL) SWIG_fail;
4687 temp1 = true;
4688 }
4689 }
4690 if (obj1) {
4691 {
4692 arg2 = wxString_in_helper(obj1);
4693 if (arg2 == NULL) SWIG_fail;
4694 temp2 = true;
4695 }
4696 }
4697 if (obj2) {
4698 {
4699 arg3 = wxString_in_helper(obj2);
4700 if (arg3 == NULL) SWIG_fail;
4701 temp3 = true;
4702 }
4703 }
4704 if (obj3) {
4705 {
4706 arg4 = wxString_in_helper(obj3);
4707 if (arg4 == NULL) SWIG_fail;
4708 temp4 = true;
4709 }
4710 }
4711 if (obj4) {
4712 {
4713 arg5 = wxString_in_helper(obj4);
4714 if (arg5 == NULL) SWIG_fail;
4715 temp5 = true;
4716 }
4717 }
4718 if (obj5) {
4719 {
4720 arg6 = static_cast<int >(SWIG_As_int(obj5));
4721 if (SWIG_arg_fail(6)) SWIG_fail;
4722 }
4723 }
4724 if (obj6) {
4725 SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4726 if (SWIG_arg_fail(7)) SWIG_fail;
4727 }
4728 if (obj7) {
4729 {
4730 arg8 = static_cast<int >(SWIG_As_int(obj7));
4731 if (SWIG_arg_fail(8)) SWIG_fail;
4732 }
4733 }
4734 if (obj8) {
4735 {
4736 arg9 = static_cast<int >(SWIG_As_int(obj8));
4737 if (SWIG_arg_fail(9)) SWIG_fail;
4738 }
4739 }
4740 {
4741 if (!wxPyCheckForApp()) SWIG_fail;
4742 PyThreadState* __tstate = wxPyBeginAllowThreads();
4743 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
4744
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 {
4749 #if wxUSE_UNICODE
4750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4751 #else
4752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4753 #endif
4754 }
4755 {
4756 if (temp1)
4757 delete arg1;
4758 }
4759 {
4760 if (temp2)
4761 delete arg2;
4762 }
4763 {
4764 if (temp3)
4765 delete arg3;
4766 }
4767 {
4768 if (temp4)
4769 delete arg4;
4770 }
4771 {
4772 if (temp5)
4773 delete arg5;
4774 }
4775 return resultobj;
4776 fail:
4777 {
4778 if (temp1)
4779 delete arg1;
4780 }
4781 {
4782 if (temp2)
4783 delete arg2;
4784 }
4785 {
4786 if (temp3)
4787 delete arg3;
4788 }
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp5)
4795 delete arg5;
4796 }
4797 return NULL;
4798 }
4799
4800
4801 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj = NULL;
4803 wxString *arg1 = 0 ;
4804 wxString *arg2 = 0 ;
4805 wxString const &arg3_defvalue = wxPyEmptyString ;
4806 wxString *arg3 = (wxString *) &arg3_defvalue ;
4807 wxWindow *arg4 = (wxWindow *) NULL ;
4808 wxString result;
4809 bool temp1 = false ;
4810 bool temp2 = false ;
4811 bool temp3 = false ;
4812 PyObject * obj0 = 0 ;
4813 PyObject * obj1 = 0 ;
4814 PyObject * obj2 = 0 ;
4815 PyObject * obj3 = 0 ;
4816 char *kwnames[] = {
4817 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
4818 };
4819
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4821 {
4822 arg1 = wxString_in_helper(obj0);
4823 if (arg1 == NULL) SWIG_fail;
4824 temp1 = true;
4825 }
4826 {
4827 arg2 = wxString_in_helper(obj1);
4828 if (arg2 == NULL) SWIG_fail;
4829 temp2 = true;
4830 }
4831 if (obj2) {
4832 {
4833 arg3 = wxString_in_helper(obj2);
4834 if (arg3 == NULL) SWIG_fail;
4835 temp3 = true;
4836 }
4837 }
4838 if (obj3) {
4839 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4840 if (SWIG_arg_fail(4)) SWIG_fail;
4841 }
4842 {
4843 if (!wxPyCheckForApp()) SWIG_fail;
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
4846
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 {
4851 #if wxUSE_UNICODE
4852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4853 #else
4854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4855 #endif
4856 }
4857 {
4858 if (temp1)
4859 delete arg1;
4860 }
4861 {
4862 if (temp2)
4863 delete arg2;
4864 }
4865 {
4866 if (temp3)
4867 delete arg3;
4868 }
4869 return resultobj;
4870 fail:
4871 {
4872 if (temp1)
4873 delete arg1;
4874 }
4875 {
4876 if (temp2)
4877 delete arg2;
4878 }
4879 {
4880 if (temp3)
4881 delete arg3;
4882 }
4883 return NULL;
4884 }
4885
4886
4887 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj = NULL;
4889 wxString *arg1 = 0 ;
4890 wxString *arg2 = 0 ;
4891 wxString const &arg3_defvalue = wxPyEmptyString ;
4892 wxString *arg3 = (wxString *) &arg3_defvalue ;
4893 wxWindow *arg4 = (wxWindow *) NULL ;
4894 wxString result;
4895 bool temp1 = false ;
4896 bool temp2 = false ;
4897 bool temp3 = false ;
4898 PyObject * obj0 = 0 ;
4899 PyObject * obj1 = 0 ;
4900 PyObject * obj2 = 0 ;
4901 PyObject * obj3 = 0 ;
4902 char *kwnames[] = {
4903 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
4904 };
4905
4906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4907 {
4908 arg1 = wxString_in_helper(obj0);
4909 if (arg1 == NULL) SWIG_fail;
4910 temp1 = true;
4911 }
4912 {
4913 arg2 = wxString_in_helper(obj1);
4914 if (arg2 == NULL) SWIG_fail;
4915 temp2 = true;
4916 }
4917 if (obj2) {
4918 {
4919 arg3 = wxString_in_helper(obj2);
4920 if (arg3 == NULL) SWIG_fail;
4921 temp3 = true;
4922 }
4923 }
4924 if (obj3) {
4925 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4926 if (SWIG_arg_fail(4)) SWIG_fail;
4927 }
4928 {
4929 if (!wxPyCheckForApp()) SWIG_fail;
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 {
4937 #if wxUSE_UNICODE
4938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4939 #else
4940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4941 #endif
4942 }
4943 {
4944 if (temp1)
4945 delete arg1;
4946 }
4947 {
4948 if (temp2)
4949 delete arg2;
4950 }
4951 {
4952 if (temp3)
4953 delete arg3;
4954 }
4955 return resultobj;
4956 fail:
4957 {
4958 if (temp1)
4959 delete arg1;
4960 }
4961 {
4962 if (temp2)
4963 delete arg2;
4964 }
4965 {
4966 if (temp3)
4967 delete arg3;
4968 }
4969 return NULL;
4970 }
4971
4972
4973 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj = NULL;
4975 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
4976 wxString *arg1 = (wxString *) &arg1_defvalue ;
4977 wxString const &arg2_defvalue = wxPyEmptyString ;
4978 wxString *arg2 = (wxString *) &arg2_defvalue ;
4979 long arg3 = (long) wxDD_DEFAULT_STYLE ;
4980 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4981 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4982 wxWindow *arg5 = (wxWindow *) NULL ;
4983 wxString result;
4984 bool temp1 = false ;
4985 bool temp2 = false ;
4986 wxPoint temp4 ;
4987 PyObject * obj0 = 0 ;
4988 PyObject * obj1 = 0 ;
4989 PyObject * obj2 = 0 ;
4990 PyObject * obj3 = 0 ;
4991 PyObject * obj4 = 0 ;
4992 char *kwnames[] = {
4993 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
4994 };
4995
4996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4997 if (obj0) {
4998 {
4999 arg1 = wxString_in_helper(obj0);
5000 if (arg1 == NULL) SWIG_fail;
5001 temp1 = true;
5002 }
5003 }
5004 if (obj1) {
5005 {
5006 arg2 = wxString_in_helper(obj1);
5007 if (arg2 == NULL) SWIG_fail;
5008 temp2 = true;
5009 }
5010 }
5011 if (obj2) {
5012 {
5013 arg3 = static_cast<long >(SWIG_As_long(obj2));
5014 if (SWIG_arg_fail(3)) SWIG_fail;
5015 }
5016 }
5017 if (obj3) {
5018 {
5019 arg4 = &temp4;
5020 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5021 }
5022 }
5023 if (obj4) {
5024 SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5025 if (SWIG_arg_fail(5)) SWIG_fail;
5026 }
5027 {
5028 if (!wxPyCheckForApp()) SWIG_fail;
5029 PyThreadState* __tstate = wxPyBeginAllowThreads();
5030 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
5031
5032 wxPyEndAllowThreads(__tstate);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 {
5036 #if wxUSE_UNICODE
5037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5038 #else
5039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5040 #endif
5041 }
5042 {
5043 if (temp1)
5044 delete arg1;
5045 }
5046 {
5047 if (temp2)
5048 delete arg2;
5049 }
5050 return resultobj;
5051 fail:
5052 {
5053 if (temp1)
5054 delete arg1;
5055 }
5056 {
5057 if (temp2)
5058 delete arg2;
5059 }
5060 return NULL;
5061 }
5062
5063
5064 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
5065 PyObject *resultobj = NULL;
5066 wxString *arg1 = 0 ;
5067 wxString const &arg2_defvalue = wxPyEmptyString ;
5068 wxString *arg2 = (wxString *) &arg2_defvalue ;
5069 wxString const &arg3_defvalue = wxPyEmptyString ;
5070 wxString *arg3 = (wxString *) &arg3_defvalue ;
5071 wxWindow *arg4 = (wxWindow *) NULL ;
5072 int arg5 = (int) -1 ;
5073 int arg6 = (int) -1 ;
5074 bool arg7 = (bool) true ;
5075 wxString result;
5076 bool temp1 = false ;
5077 bool temp2 = false ;
5078 bool temp3 = false ;
5079 PyObject * obj0 = 0 ;
5080 PyObject * obj1 = 0 ;
5081 PyObject * obj2 = 0 ;
5082 PyObject * obj3 = 0 ;
5083 PyObject * obj4 = 0 ;
5084 PyObject * obj5 = 0 ;
5085 PyObject * obj6 = 0 ;
5086 char *kwnames[] = {
5087 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
5088 };
5089
5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5091 {
5092 arg1 = wxString_in_helper(obj0);
5093 if (arg1 == NULL) SWIG_fail;
5094 temp1 = true;
5095 }
5096 if (obj1) {
5097 {
5098 arg2 = wxString_in_helper(obj1);
5099 if (arg2 == NULL) SWIG_fail;
5100 temp2 = true;
5101 }
5102 }
5103 if (obj2) {
5104 {
5105 arg3 = wxString_in_helper(obj2);
5106 if (arg3 == NULL) SWIG_fail;
5107 temp3 = true;
5108 }
5109 }
5110 if (obj3) {
5111 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5112 if (SWIG_arg_fail(4)) SWIG_fail;
5113 }
5114 if (obj4) {
5115 {
5116 arg5 = static_cast<int >(SWIG_As_int(obj4));
5117 if (SWIG_arg_fail(5)) SWIG_fail;
5118 }
5119 }
5120 if (obj5) {
5121 {
5122 arg6 = static_cast<int >(SWIG_As_int(obj5));
5123 if (SWIG_arg_fail(6)) SWIG_fail;
5124 }
5125 }
5126 if (obj6) {
5127 {
5128 arg7 = static_cast<bool >(SWIG_As_bool(obj6));
5129 if (SWIG_arg_fail(7)) SWIG_fail;
5130 }
5131 }
5132 {
5133 if (!wxPyCheckForApp()) SWIG_fail;
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
5136
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 {
5141 #if wxUSE_UNICODE
5142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5143 #else
5144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5145 #endif
5146 }
5147 {
5148 if (temp1)
5149 delete arg1;
5150 }
5151 {
5152 if (temp2)
5153 delete arg2;
5154 }
5155 {
5156 if (temp3)
5157 delete arg3;
5158 }
5159 return resultobj;
5160 fail:
5161 {
5162 if (temp1)
5163 delete arg1;
5164 }
5165 {
5166 if (temp2)
5167 delete arg2;
5168 }
5169 {
5170 if (temp3)
5171 delete arg3;
5172 }
5173 return NULL;
5174 }
5175
5176
5177 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
5178 PyObject *resultobj = NULL;
5179 wxString *arg1 = 0 ;
5180 wxString const &arg2_defvalue = wxPyEmptyString ;
5181 wxString *arg2 = (wxString *) &arg2_defvalue ;
5182 wxString const &arg3_defvalue = wxPyEmptyString ;
5183 wxString *arg3 = (wxString *) &arg3_defvalue ;
5184 wxWindow *arg4 = (wxWindow *) NULL ;
5185 wxString result;
5186 bool temp1 = false ;
5187 bool temp2 = false ;
5188 bool temp3 = false ;
5189 PyObject * obj0 = 0 ;
5190 PyObject * obj1 = 0 ;
5191 PyObject * obj2 = 0 ;
5192 PyObject * obj3 = 0 ;
5193 char *kwnames[] = {
5194 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
5195 };
5196
5197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5198 {
5199 arg1 = wxString_in_helper(obj0);
5200 if (arg1 == NULL) SWIG_fail;
5201 temp1 = true;
5202 }
5203 if (obj1) {
5204 {
5205 arg2 = wxString_in_helper(obj1);
5206 if (arg2 == NULL) SWIG_fail;
5207 temp2 = true;
5208 }
5209 }
5210 if (obj2) {
5211 {
5212 arg3 = wxString_in_helper(obj2);
5213 if (arg3 == NULL) SWIG_fail;
5214 temp3 = true;
5215 }
5216 }
5217 if (obj3) {
5218 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5219 if (SWIG_arg_fail(4)) SWIG_fail;
5220 }
5221 {
5222 if (!wxPyCheckForApp()) SWIG_fail;
5223 PyThreadState* __tstate = wxPyBeginAllowThreads();
5224 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
5225
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 {
5230 #if wxUSE_UNICODE
5231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5232 #else
5233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5234 #endif
5235 }
5236 {
5237 if (temp1)
5238 delete arg1;
5239 }
5240 {
5241 if (temp2)
5242 delete arg2;
5243 }
5244 {
5245 if (temp3)
5246 delete arg3;
5247 }
5248 return resultobj;
5249 fail:
5250 {
5251 if (temp1)
5252 delete arg1;
5253 }
5254 {
5255 if (temp2)
5256 delete arg2;
5257 }
5258 {
5259 if (temp3)
5260 delete arg3;
5261 }
5262 return NULL;
5263 }
5264
5265
5266 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
5267 PyObject *resultobj = NULL;
5268 wxString *arg1 = 0 ;
5269 wxString *arg2 = 0 ;
5270 int arg3 ;
5271 wxString *arg4 = (wxString *) 0 ;
5272 wxWindow *arg5 = (wxWindow *) NULL ;
5273 int arg6 = (int) -1 ;
5274 int arg7 = (int) -1 ;
5275 bool arg8 = (bool) true ;
5276 int arg9 = (int) 150 ;
5277 int arg10 = (int) 200 ;
5278 wxString result;
5279 bool temp1 = false ;
5280 bool temp2 = false ;
5281 PyObject * obj0 = 0 ;
5282 PyObject * obj1 = 0 ;
5283 PyObject * obj2 = 0 ;
5284 PyObject * obj3 = 0 ;
5285 PyObject * obj4 = 0 ;
5286 PyObject * obj5 = 0 ;
5287 PyObject * obj6 = 0 ;
5288 PyObject * obj7 = 0 ;
5289 PyObject * obj8 = 0 ;
5290 char *kwnames[] = {
5291 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
5292 };
5293
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5295 {
5296 arg1 = wxString_in_helper(obj0);
5297 if (arg1 == NULL) SWIG_fail;
5298 temp1 = true;
5299 }
5300 {
5301 arg2 = wxString_in_helper(obj1);
5302 if (arg2 == NULL) SWIG_fail;
5303 temp2 = true;
5304 }
5305 {
5306 arg3 = PyList_Size(obj2);
5307 arg4 = wxString_LIST_helper(obj2);
5308 if (arg4 == NULL) SWIG_fail;
5309 }
5310 if (obj3) {
5311 SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5312 if (SWIG_arg_fail(5)) SWIG_fail;
5313 }
5314 if (obj4) {
5315 {
5316 arg6 = static_cast<int >(SWIG_As_int(obj4));
5317 if (SWIG_arg_fail(6)) SWIG_fail;
5318 }
5319 }
5320 if (obj5) {
5321 {
5322 arg7 = static_cast<int >(SWIG_As_int(obj5));
5323 if (SWIG_arg_fail(7)) SWIG_fail;
5324 }
5325 }
5326 if (obj6) {
5327 {
5328 arg8 = static_cast<bool >(SWIG_As_bool(obj6));
5329 if (SWIG_arg_fail(8)) SWIG_fail;
5330 }
5331 }
5332 if (obj7) {
5333 {
5334 arg9 = static_cast<int >(SWIG_As_int(obj7));
5335 if (SWIG_arg_fail(9)) SWIG_fail;
5336 }
5337 }
5338 if (obj8) {
5339 {
5340 arg10 = static_cast<int >(SWIG_As_int(obj8));
5341 if (SWIG_arg_fail(10)) SWIG_fail;
5342 }
5343 }
5344 {
5345 if (!wxPyCheckForApp()) SWIG_fail;
5346 PyThreadState* __tstate = wxPyBeginAllowThreads();
5347 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5348
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 {
5353 #if wxUSE_UNICODE
5354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5355 #else
5356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5357 #endif
5358 }
5359 {
5360 if (temp1)
5361 delete arg1;
5362 }
5363 {
5364 if (temp2)
5365 delete arg2;
5366 }
5367 {
5368 if (arg4) delete [] arg4;
5369 }
5370 return resultobj;
5371 fail:
5372 {
5373 if (temp1)
5374 delete arg1;
5375 }
5376 {
5377 if (temp2)
5378 delete arg2;
5379 }
5380 {
5381 if (arg4) delete [] arg4;
5382 }
5383 return NULL;
5384 }
5385
5386
5387 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = NULL;
5389 wxString *arg1 = 0 ;
5390 wxString *arg2 = 0 ;
5391 int arg3 ;
5392 wxString *arg4 = (wxString *) 0 ;
5393 wxWindow *arg5 = (wxWindow *) NULL ;
5394 int arg6 = (int) -1 ;
5395 int arg7 = (int) -1 ;
5396 bool arg8 = (bool) true ;
5397 int arg9 = (int) 150 ;
5398 int arg10 = (int) 200 ;
5399 int result;
5400 bool temp1 = false ;
5401 bool temp2 = false ;
5402 PyObject * obj0 = 0 ;
5403 PyObject * obj1 = 0 ;
5404 PyObject * obj2 = 0 ;
5405 PyObject * obj3 = 0 ;
5406 PyObject * obj4 = 0 ;
5407 PyObject * obj5 = 0 ;
5408 PyObject * obj6 = 0 ;
5409 PyObject * obj7 = 0 ;
5410 PyObject * obj8 = 0 ;
5411 char *kwnames[] = {
5412 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
5413 };
5414
5415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5416 {
5417 arg1 = wxString_in_helper(obj0);
5418 if (arg1 == NULL) SWIG_fail;
5419 temp1 = true;
5420 }
5421 {
5422 arg2 = wxString_in_helper(obj1);
5423 if (arg2 == NULL) SWIG_fail;
5424 temp2 = true;
5425 }
5426 {
5427 arg3 = PyList_Size(obj2);
5428 arg4 = wxString_LIST_helper(obj2);
5429 if (arg4 == NULL) SWIG_fail;
5430 }
5431 if (obj3) {
5432 SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5433 if (SWIG_arg_fail(5)) SWIG_fail;
5434 }
5435 if (obj4) {
5436 {
5437 arg6 = static_cast<int >(SWIG_As_int(obj4));
5438 if (SWIG_arg_fail(6)) SWIG_fail;
5439 }
5440 }
5441 if (obj5) {
5442 {
5443 arg7 = static_cast<int >(SWIG_As_int(obj5));
5444 if (SWIG_arg_fail(7)) SWIG_fail;
5445 }
5446 }
5447 if (obj6) {
5448 {
5449 arg8 = static_cast<bool >(SWIG_As_bool(obj6));
5450 if (SWIG_arg_fail(8)) SWIG_fail;
5451 }
5452 }
5453 if (obj7) {
5454 {
5455 arg9 = static_cast<int >(SWIG_As_int(obj7));
5456 if (SWIG_arg_fail(9)) SWIG_fail;
5457 }
5458 }
5459 if (obj8) {
5460 {
5461 arg10 = static_cast<int >(SWIG_As_int(obj8));
5462 if (SWIG_arg_fail(10)) SWIG_fail;
5463 }
5464 }
5465 {
5466 if (!wxPyCheckForApp()) SWIG_fail;
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 {
5474 resultobj = SWIG_From_int(static_cast<int >(result));
5475 }
5476 {
5477 if (temp1)
5478 delete arg1;
5479 }
5480 {
5481 if (temp2)
5482 delete arg2;
5483 }
5484 {
5485 if (arg4) delete [] arg4;
5486 }
5487 return resultobj;
5488 fail:
5489 {
5490 if (temp1)
5491 delete arg1;
5492 }
5493 {
5494 if (temp2)
5495 delete arg2;
5496 }
5497 {
5498 if (arg4) delete [] arg4;
5499 }
5500 return NULL;
5501 }
5502
5503
5504 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj = NULL;
5506 wxString *arg1 = 0 ;
5507 wxString const &arg2_defvalue = wxPyEmptyString ;
5508 wxString *arg2 = (wxString *) &arg2_defvalue ;
5509 int arg3 = (int) wxOK|wxCENTRE ;
5510 wxWindow *arg4 = (wxWindow *) NULL ;
5511 int arg5 = (int) -1 ;
5512 int arg6 = (int) -1 ;
5513 int result;
5514 bool temp1 = false ;
5515 bool temp2 = false ;
5516 PyObject * obj0 = 0 ;
5517 PyObject * obj1 = 0 ;
5518 PyObject * obj2 = 0 ;
5519 PyObject * obj3 = 0 ;
5520 PyObject * obj4 = 0 ;
5521 PyObject * obj5 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5527 {
5528 arg1 = wxString_in_helper(obj0);
5529 if (arg1 == NULL) SWIG_fail;
5530 temp1 = true;
5531 }
5532 if (obj1) {
5533 {
5534 arg2 = wxString_in_helper(obj1);
5535 if (arg2 == NULL) SWIG_fail;
5536 temp2 = true;
5537 }
5538 }
5539 if (obj2) {
5540 {
5541 arg3 = static_cast<int >(SWIG_As_int(obj2));
5542 if (SWIG_arg_fail(3)) SWIG_fail;
5543 }
5544 }
5545 if (obj3) {
5546 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5547 if (SWIG_arg_fail(4)) SWIG_fail;
5548 }
5549 if (obj4) {
5550 {
5551 arg5 = static_cast<int >(SWIG_As_int(obj4));
5552 if (SWIG_arg_fail(5)) SWIG_fail;
5553 }
5554 }
5555 if (obj5) {
5556 {
5557 arg6 = static_cast<int >(SWIG_As_int(obj5));
5558 if (SWIG_arg_fail(6)) SWIG_fail;
5559 }
5560 }
5561 {
5562 if (!wxPyCheckForApp()) SWIG_fail;
5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
5564 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
5565
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 {
5570 resultobj = SWIG_From_int(static_cast<int >(result));
5571 }
5572 {
5573 if (temp1)
5574 delete arg1;
5575 }
5576 {
5577 if (temp2)
5578 delete arg2;
5579 }
5580 return resultobj;
5581 fail:
5582 {
5583 if (temp1)
5584 delete arg1;
5585 }
5586 {
5587 if (temp2)
5588 delete arg2;
5589 }
5590 return NULL;
5591 }
5592
5593
5594 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
5595 PyObject *resultobj = NULL;
5596 bool result;
5597 char *kwnames[] = {
5598 NULL
5599 };
5600
5601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
5602 {
5603 if (!wxPyCheckForApp()) SWIG_fail;
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 result = (bool)wxColourDisplay();
5606
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 {
5611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5612 }
5613 return resultobj;
5614 fail:
5615 return NULL;
5616 }
5617
5618
5619 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5620 PyObject *resultobj = NULL;
5621 int result;
5622 char *kwnames[] = {
5623 NULL
5624 };
5625
5626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
5627 {
5628 if (!wxPyCheckForApp()) SWIG_fail;
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (int)wxDisplayDepth();
5631
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 }
5635 {
5636 resultobj = SWIG_From_int(static_cast<int >(result));
5637 }
5638 return resultobj;
5639 fail:
5640 return NULL;
5641 }
5642
5643
5644 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5645 PyObject *resultobj = NULL;
5646 int result;
5647 char *kwnames[] = {
5648 NULL
5649 };
5650
5651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
5652 {
5653 if (!wxPyCheckForApp()) SWIG_fail;
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 result = (int)wxGetDisplayDepth();
5656
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 {
5661 resultobj = SWIG_From_int(static_cast<int >(result));
5662 }
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
5670 PyObject *resultobj = NULL;
5671 int *arg1 = (int *) 0 ;
5672 int *arg2 = (int *) 0 ;
5673 int temp1 ;
5674 int res1 = 0 ;
5675 int temp2 ;
5676 int res2 = 0 ;
5677 char *kwnames[] = {
5678 NULL
5679 };
5680
5681 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5682 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
5684 {
5685 if (!wxPyCheckForApp()) SWIG_fail;
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 wxDisplaySize(arg1,arg2);
5688
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 Py_INCREF(Py_None); resultobj = Py_None;
5693 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5694 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5695 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5696 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5697 return resultobj;
5698 fail:
5699 return NULL;
5700 }
5701
5702
5703 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
5704 PyObject *resultobj = NULL;
5705 wxSize result;
5706 char *kwnames[] = {
5707 NULL
5708 };
5709
5710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
5711 {
5712 if (!wxPyCheckForApp()) SWIG_fail;
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = wxGetDisplaySize();
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 {
5720 wxSize * resultptr;
5721 resultptr = new wxSize(static_cast<wxSize & >(result));
5722 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5723 }
5724 return resultobj;
5725 fail:
5726 return NULL;
5727 }
5728
5729
5730 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj = NULL;
5732 int *arg1 = (int *) 0 ;
5733 int *arg2 = (int *) 0 ;
5734 int temp1 ;
5735 int res1 = 0 ;
5736 int temp2 ;
5737 int res2 = 0 ;
5738 char *kwnames[] = {
5739 NULL
5740 };
5741
5742 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5743 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
5745 {
5746 if (!wxPyCheckForApp()) SWIG_fail;
5747 PyThreadState* __tstate = wxPyBeginAllowThreads();
5748 wxDisplaySizeMM(arg1,arg2);
5749
5750 wxPyEndAllowThreads(__tstate);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 }
5753 Py_INCREF(Py_None); resultobj = Py_None;
5754 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5755 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5756 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5757 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5758 return resultobj;
5759 fail:
5760 return NULL;
5761 }
5762
5763
5764 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
5765 PyObject *resultobj = NULL;
5766 wxSize result;
5767 char *kwnames[] = {
5768 NULL
5769 };
5770
5771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
5772 {
5773 if (!wxPyCheckForApp()) SWIG_fail;
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 result = wxGetDisplaySizeMM();
5776
5777 wxPyEndAllowThreads(__tstate);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
5780 {
5781 wxSize * resultptr;
5782 resultptr = new wxSize(static_cast<wxSize & >(result));
5783 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5784 }
5785 return resultobj;
5786 fail:
5787 return NULL;
5788 }
5789
5790
5791 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
5792 PyObject *resultobj = NULL;
5793 int *arg1 = (int *) 0 ;
5794 int *arg2 = (int *) 0 ;
5795 int *arg3 = (int *) 0 ;
5796 int *arg4 = (int *) 0 ;
5797 int temp1 ;
5798 int res1 = 0 ;
5799 int temp2 ;
5800 int res2 = 0 ;
5801 int temp3 ;
5802 int res3 = 0 ;
5803 int temp4 ;
5804 int res4 = 0 ;
5805 char *kwnames[] = {
5806 NULL
5807 };
5808
5809 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5810 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5811 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5812 arg4 = &temp4; res4 = SWIG_NEWOBJ;
5813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
5814 {
5815 if (!wxPyCheckForApp()) SWIG_fail;
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 wxClientDisplayRect(arg1,arg2,arg3,arg4);
5818
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 Py_INCREF(Py_None); resultobj = Py_None;
5823 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5824 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5825 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5826 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5827 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5828 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5829 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
5830 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
5831 return resultobj;
5832 fail:
5833 return NULL;
5834 }
5835
5836
5837 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
5838 PyObject *resultobj = NULL;
5839 wxRect result;
5840 char *kwnames[] = {
5841 NULL
5842 };
5843
5844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
5845 {
5846 if (!wxPyCheckForApp()) SWIG_fail;
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 result = wxGetClientDisplayRect();
5849
5850 wxPyEndAllowThreads(__tstate);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 }
5853 {
5854 wxRect * resultptr;
5855 resultptr = new wxRect(static_cast<wxRect & >(result));
5856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5857 }
5858 return resultobj;
5859 fail:
5860 return NULL;
5861 }
5862
5863
5864 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj = NULL;
5866 wxCursor *arg1 = 0 ;
5867 PyObject * obj0 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "cursor", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
5873 {
5874 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5875 if (SWIG_arg_fail(1)) SWIG_fail;
5876 if (arg1 == NULL) {
5877 SWIG_null_ref("wxCursor");
5878 }
5879 if (SWIG_arg_fail(1)) SWIG_fail;
5880 }
5881 {
5882 if (!wxPyCheckForApp()) SWIG_fail;
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 wxSetCursor(*arg1);
5885
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 Py_INCREF(Py_None); resultobj = Py_None;
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 static PyObject *_wrap_GetXDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
5897 PyObject *resultobj = NULL;
5898 void *result;
5899 char *kwnames[] = {
5900 NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetXDisplay",kwnames)) goto fail;
5904 {
5905 if (!wxPyCheckForApp()) SWIG_fail;
5906 PyThreadState* __tstate = wxPyBeginAllowThreads();
5907 result = (void *)wxGetXDisplay();
5908
5909 wxPyEndAllowThreads(__tstate);
5910 if (PyErr_Occurred()) SWIG_fail;
5911 }
5912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
5913 return resultobj;
5914 fail:
5915 return NULL;
5916 }
5917
5918
5919 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5920 PyObject *resultobj = NULL;
5921 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5922 PyObject * obj0 = 0 ;
5923 char *kwnames[] = {
5924 (char *) "cursor", NULL
5925 };
5926
5927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
5928 if (obj0) {
5929 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5930 if (SWIG_arg_fail(1)) SWIG_fail;
5931 }
5932 {
5933 if (!wxPyCheckForApp()) SWIG_fail;
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 wxBeginBusyCursor(arg1);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 Py_INCREF(Py_None); resultobj = Py_None;
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj = NULL;
5949 wxPoint result;
5950 char *kwnames[] = {
5951 NULL
5952 };
5953
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
5955 {
5956 if (!wxPyCheckForApp()) SWIG_fail;
5957 PyThreadState* __tstate = wxPyBeginAllowThreads();
5958 result = wxGetMousePosition();
5959
5960 wxPyEndAllowThreads(__tstate);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 }
5963 {
5964 wxPoint * resultptr;
5965 resultptr = new wxPoint(static_cast<wxPoint & >(result));
5966 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5967 }
5968 return resultobj;
5969 fail:
5970 return NULL;
5971 }
5972
5973
5974 static PyObject *_wrap_FindWindowAtPointer(PyObject *, PyObject *args, PyObject *kwargs) {
5975 PyObject *resultobj = NULL;
5976 wxWindow *result;
5977 char *kwnames[] = {
5978 NULL
5979 };
5980
5981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FindWindowAtPointer",kwnames)) goto fail;
5982 {
5983 if (!wxPyCheckForApp()) SWIG_fail;
5984 PyThreadState* __tstate = wxPyBeginAllowThreads();
5985 result = (wxWindow *)FindWindowAtPointer();
5986
5987 wxPyEndAllowThreads(__tstate);
5988 if (PyErr_Occurred()) SWIG_fail;
5989 }
5990 {
5991 resultobj = wxPyMake_wxObject(result, 0);
5992 }
5993 return resultobj;
5994 fail:
5995 return NULL;
5996 }
5997
5998
5999 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
6000 PyObject *resultobj = NULL;
6001 wxWindow *result;
6002 char *kwnames[] = {
6003 NULL
6004 };
6005
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
6007 {
6008 if (!wxPyCheckForApp()) SWIG_fail;
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (wxWindow *)wxGetActiveWindow();
6011
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 {
6016 resultobj = wxPyMake_wxObject(result, 0);
6017 }
6018 return resultobj;
6019 fail:
6020 return NULL;
6021 }
6022
6023
6024 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6025 PyObject *resultobj = NULL;
6026 wxPoint *arg1 = 0 ;
6027 wxWindow *result;
6028 wxPoint temp1 ;
6029 PyObject * obj0 = 0 ;
6030 char *kwnames[] = {
6031 (char *) "pt", NULL
6032 };
6033
6034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
6035 {
6036 arg1 = &temp1;
6037 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6038 }
6039 {
6040 if (!wxPyCheckForApp()) SWIG_fail;
6041 PyThreadState* __tstate = wxPyBeginAllowThreads();
6042 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
6043
6044 wxPyEndAllowThreads(__tstate);
6045 if (PyErr_Occurred()) SWIG_fail;
6046 }
6047 {
6048 resultobj = wxPyMake_wxObject(result, 0);
6049 }
6050 return resultobj;
6051 fail:
6052 return NULL;
6053 }
6054
6055
6056 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6057 PyObject *resultobj = NULL;
6058 wxPoint *arg1 = 0 ;
6059 wxWindow *result;
6060 wxPoint temp1 ;
6061 PyObject * obj0 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "pt", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
6067 {
6068 arg1 = &temp1;
6069 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6070 }
6071 {
6072 if (!wxPyCheckForApp()) SWIG_fail;
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
6075
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 {
6080 resultobj = wxPyMake_wxObject(result, 0);
6081 }
6082 return resultobj;
6083 fail:
6084 return NULL;
6085 }
6086
6087
6088 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
6089 PyObject *resultobj = NULL;
6090 wxWindow *arg1 = (wxWindow *) 0 ;
6091 wxWindow *result;
6092 PyObject * obj0 = 0 ;
6093 char *kwnames[] = {
6094 (char *) "win", NULL
6095 };
6096
6097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
6098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
6099 if (SWIG_arg_fail(1)) SWIG_fail;
6100 {
6101 if (!wxPyCheckForApp()) SWIG_fail;
6102 PyThreadState* __tstate = wxPyBeginAllowThreads();
6103 result = (wxWindow *)wxGetTopLevelParent(arg1);
6104
6105 wxPyEndAllowThreads(__tstate);
6106 if (PyErr_Occurred()) SWIG_fail;
6107 }
6108 {
6109 resultobj = wxPyMake_wxObject(result, 0);
6110 }
6111 return resultobj;
6112 fail:
6113 return NULL;
6114 }
6115
6116
6117 static PyObject *_wrap_LaunchDefaultBrowser(PyObject *, PyObject *args, PyObject *kwargs) {
6118 PyObject *resultobj = NULL;
6119 wxString *arg1 = 0 ;
6120 bool result;
6121 bool temp1 = false ;
6122 PyObject * obj0 = 0 ;
6123 char *kwnames[] = {
6124 (char *) "url", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) goto fail;
6128 {
6129 arg1 = wxString_in_helper(obj0);
6130 if (arg1 == NULL) SWIG_fail;
6131 temp1 = true;
6132 }
6133 {
6134 PyThreadState* __tstate = wxPyBeginAllowThreads();
6135 result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1);
6136
6137 wxPyEndAllowThreads(__tstate);
6138 if (PyErr_Occurred()) SWIG_fail;
6139 }
6140 {
6141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6142 }
6143 {
6144 if (temp1)
6145 delete arg1;
6146 }
6147 return resultobj;
6148 fail:
6149 {
6150 if (temp1)
6151 delete arg1;
6152 }
6153 return NULL;
6154 }
6155
6156
6157 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj = NULL;
6159 wxKeyCode arg1 ;
6160 bool result;
6161 PyObject * obj0 = 0 ;
6162 char *kwnames[] = {
6163 (char *) "key", NULL
6164 };
6165
6166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
6167 {
6168 arg1 = static_cast<wxKeyCode >(SWIG_As_int(obj0));
6169 if (SWIG_arg_fail(1)) SWIG_fail;
6170 }
6171 {
6172 if (!wxPyCheckForApp()) SWIG_fail;
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 result = (bool)wxGetKeyState(arg1);
6175
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 {
6180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6181 }
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 static PyObject *_wrap_new_MouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj = NULL;
6190 wxMouseState *result;
6191 char *kwnames[] = {
6192 NULL
6193 };
6194
6195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MouseState",kwnames)) goto fail;
6196 {
6197 PyThreadState* __tstate = wxPyBeginAllowThreads();
6198 result = (wxMouseState *)new wxMouseState();
6199
6200 wxPyEndAllowThreads(__tstate);
6201 if (PyErr_Occurred()) SWIG_fail;
6202 }
6203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseState, 1);
6204 return resultobj;
6205 fail:
6206 return NULL;
6207 }
6208
6209
6210 static PyObject *_wrap_delete_MouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6211 PyObject *resultobj = NULL;
6212 wxMouseState *arg1 = (wxMouseState *) 0 ;
6213 PyObject * obj0 = 0 ;
6214 char *kwnames[] = {
6215 (char *) "self", NULL
6216 };
6217
6218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MouseState",kwnames,&obj0)) goto fail;
6219 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6220 if (SWIG_arg_fail(1)) SWIG_fail;
6221 {
6222 PyThreadState* __tstate = wxPyBeginAllowThreads();
6223 delete arg1;
6224
6225 wxPyEndAllowThreads(__tstate);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 Py_INCREF(Py_None); resultobj = Py_None;
6229 return resultobj;
6230 fail:
6231 return NULL;
6232 }
6233
6234
6235 static PyObject *_wrap_MouseState_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
6236 PyObject *resultobj = NULL;
6237 wxMouseState *arg1 = (wxMouseState *) 0 ;
6238 int result;
6239 PyObject * obj0 = 0 ;
6240 char *kwnames[] = {
6241 (char *) "self", NULL
6242 };
6243
6244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetX",kwnames,&obj0)) goto fail;
6245 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6246 if (SWIG_arg_fail(1)) SWIG_fail;
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (int)(arg1)->GetX();
6250
6251 wxPyEndAllowThreads(__tstate);
6252 if (PyErr_Occurred()) SWIG_fail;
6253 }
6254 {
6255 resultobj = SWIG_From_int(static_cast<int >(result));
6256 }
6257 return resultobj;
6258 fail:
6259 return NULL;
6260 }
6261
6262
6263 static PyObject *_wrap_MouseState_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj = NULL;
6265 wxMouseState *arg1 = (wxMouseState *) 0 ;
6266 int result;
6267 PyObject * obj0 = 0 ;
6268 char *kwnames[] = {
6269 (char *) "self", NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetY",kwnames,&obj0)) goto fail;
6273 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6274 if (SWIG_arg_fail(1)) SWIG_fail;
6275 {
6276 PyThreadState* __tstate = wxPyBeginAllowThreads();
6277 result = (int)(arg1)->GetY();
6278
6279 wxPyEndAllowThreads(__tstate);
6280 if (PyErr_Occurred()) SWIG_fail;
6281 }
6282 {
6283 resultobj = SWIG_From_int(static_cast<int >(result));
6284 }
6285 return resultobj;
6286 fail:
6287 return NULL;
6288 }
6289
6290
6291 static PyObject *_wrap_MouseState_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6292 PyObject *resultobj = NULL;
6293 wxMouseState *arg1 = (wxMouseState *) 0 ;
6294 bool result;
6295 PyObject * obj0 = 0 ;
6296 char *kwnames[] = {
6297 (char *) "self", NULL
6298 };
6299
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_LeftDown",kwnames,&obj0)) goto fail;
6301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6302 if (SWIG_arg_fail(1)) SWIG_fail;
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 result = (bool)(arg1)->LeftDown();
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 {
6311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6312 }
6313 return resultobj;
6314 fail:
6315 return NULL;
6316 }
6317
6318
6319 static PyObject *_wrap_MouseState_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
6320 PyObject *resultobj = NULL;
6321 wxMouseState *arg1 = (wxMouseState *) 0 ;
6322 bool result;
6323 PyObject * obj0 = 0 ;
6324 char *kwnames[] = {
6325 (char *) "self", NULL
6326 };
6327
6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MiddleDown",kwnames,&obj0)) goto fail;
6329 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6330 if (SWIG_arg_fail(1)) SWIG_fail;
6331 {
6332 PyThreadState* __tstate = wxPyBeginAllowThreads();
6333 result = (bool)(arg1)->MiddleDown();
6334
6335 wxPyEndAllowThreads(__tstate);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 {
6339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6340 }
6341 return resultobj;
6342 fail:
6343 return NULL;
6344 }
6345
6346
6347 static PyObject *_wrap_MouseState_RightDown(PyObject *, PyObject *args, PyObject *kwargs) {
6348 PyObject *resultobj = NULL;
6349 wxMouseState *arg1 = (wxMouseState *) 0 ;
6350 bool result;
6351 PyObject * obj0 = 0 ;
6352 char *kwnames[] = {
6353 (char *) "self", NULL
6354 };
6355
6356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_RightDown",kwnames,&obj0)) goto fail;
6357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6358 if (SWIG_arg_fail(1)) SWIG_fail;
6359 {
6360 PyThreadState* __tstate = wxPyBeginAllowThreads();
6361 result = (bool)(arg1)->RightDown();
6362
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 {
6367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6368 }
6369 return resultobj;
6370 fail:
6371 return NULL;
6372 }
6373
6374
6375 static PyObject *_wrap_MouseState_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
6376 PyObject *resultobj = NULL;
6377 wxMouseState *arg1 = (wxMouseState *) 0 ;
6378 bool result;
6379 PyObject * obj0 = 0 ;
6380 char *kwnames[] = {
6381 (char *) "self", NULL
6382 };
6383
6384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ControlDown",kwnames,&obj0)) goto fail;
6385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6386 if (SWIG_arg_fail(1)) SWIG_fail;
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 result = (bool)(arg1)->ControlDown();
6390
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 {
6395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6396 }
6397 return resultobj;
6398 fail:
6399 return NULL;
6400 }
6401
6402
6403 static PyObject *_wrap_MouseState_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6404 PyObject *resultobj = NULL;
6405 wxMouseState *arg1 = (wxMouseState *) 0 ;
6406 bool result;
6407 PyObject * obj0 = 0 ;
6408 char *kwnames[] = {
6409 (char *) "self", NULL
6410 };
6411
6412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ShiftDown",kwnames,&obj0)) goto fail;
6413 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6414 if (SWIG_arg_fail(1)) SWIG_fail;
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = (bool)(arg1)->ShiftDown();
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6424 }
6425 return resultobj;
6426 fail:
6427 return NULL;
6428 }
6429
6430
6431 static PyObject *_wrap_MouseState_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
6432 PyObject *resultobj = NULL;
6433 wxMouseState *arg1 = (wxMouseState *) 0 ;
6434 bool result;
6435 PyObject * obj0 = 0 ;
6436 char *kwnames[] = {
6437 (char *) "self", NULL
6438 };
6439
6440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_AltDown",kwnames,&obj0)) goto fail;
6441 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6442 if (SWIG_arg_fail(1)) SWIG_fail;
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (bool)(arg1)->AltDown();
6446
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 {
6451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6452 }
6453 return resultobj;
6454 fail:
6455 return NULL;
6456 }
6457
6458
6459 static PyObject *_wrap_MouseState_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
6460 PyObject *resultobj = NULL;
6461 wxMouseState *arg1 = (wxMouseState *) 0 ;
6462 bool result;
6463 PyObject * obj0 = 0 ;
6464 char *kwnames[] = {
6465 (char *) "self", NULL
6466 };
6467
6468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MetaDown",kwnames,&obj0)) goto fail;
6469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6470 if (SWIG_arg_fail(1)) SWIG_fail;
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 result = (bool)(arg1)->MetaDown();
6474
6475 wxPyEndAllowThreads(__tstate);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 {
6479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6480 }
6481 return resultobj;
6482 fail:
6483 return NULL;
6484 }
6485
6486
6487 static PyObject *_wrap_MouseState_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
6488 PyObject *resultobj = NULL;
6489 wxMouseState *arg1 = (wxMouseState *) 0 ;
6490 bool result;
6491 PyObject * obj0 = 0 ;
6492 char *kwnames[] = {
6493 (char *) "self", NULL
6494 };
6495
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_CmdDown",kwnames,&obj0)) goto fail;
6497 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6498 if (SWIG_arg_fail(1)) SWIG_fail;
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = (bool)(arg1)->CmdDown();
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 {
6507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6508 }
6509 return resultobj;
6510 fail:
6511 return NULL;
6512 }
6513
6514
6515 static PyObject *_wrap_MouseState_SetX(PyObject *, PyObject *args, PyObject *kwargs) {
6516 PyObject *resultobj = NULL;
6517 wxMouseState *arg1 = (wxMouseState *) 0 ;
6518 int arg2 ;
6519 PyObject * obj0 = 0 ;
6520 PyObject * obj1 = 0 ;
6521 char *kwnames[] = {
6522 (char *) "self",(char *) "x", NULL
6523 };
6524
6525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetX",kwnames,&obj0,&obj1)) goto fail;
6526 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6527 if (SWIG_arg_fail(1)) SWIG_fail;
6528 {
6529 arg2 = static_cast<int >(SWIG_As_int(obj1));
6530 if (SWIG_arg_fail(2)) SWIG_fail;
6531 }
6532 {
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 (arg1)->SetX(arg2);
6535
6536 wxPyEndAllowThreads(__tstate);
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 Py_INCREF(Py_None); resultobj = Py_None;
6540 return resultobj;
6541 fail:
6542 return NULL;
6543 }
6544
6545
6546 static PyObject *_wrap_MouseState_SetY(PyObject *, PyObject *args, PyObject *kwargs) {
6547 PyObject *resultobj = NULL;
6548 wxMouseState *arg1 = (wxMouseState *) 0 ;
6549 int arg2 ;
6550 PyObject * obj0 = 0 ;
6551 PyObject * obj1 = 0 ;
6552 char *kwnames[] = {
6553 (char *) "self",(char *) "y", NULL
6554 };
6555
6556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetY",kwnames,&obj0,&obj1)) goto fail;
6557 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6558 if (SWIG_arg_fail(1)) SWIG_fail;
6559 {
6560 arg2 = static_cast<int >(SWIG_As_int(obj1));
6561 if (SWIG_arg_fail(2)) SWIG_fail;
6562 }
6563 {
6564 PyThreadState* __tstate = wxPyBeginAllowThreads();
6565 (arg1)->SetY(arg2);
6566
6567 wxPyEndAllowThreads(__tstate);
6568 if (PyErr_Occurred()) SWIG_fail;
6569 }
6570 Py_INCREF(Py_None); resultobj = Py_None;
6571 return resultobj;
6572 fail:
6573 return NULL;
6574 }
6575
6576
6577 static PyObject *_wrap_MouseState_SetLeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6578 PyObject *resultobj = NULL;
6579 wxMouseState *arg1 = (wxMouseState *) 0 ;
6580 bool arg2 ;
6581 PyObject * obj0 = 0 ;
6582 PyObject * obj1 = 0 ;
6583 char *kwnames[] = {
6584 (char *) "self",(char *) "down", NULL
6585 };
6586
6587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetLeftDown",kwnames,&obj0,&obj1)) goto fail;
6588 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6589 if (SWIG_arg_fail(1)) SWIG_fail;
6590 {
6591 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6592 if (SWIG_arg_fail(2)) SWIG_fail;
6593 }
6594 {
6595 PyThreadState* __tstate = wxPyBeginAllowThreads();
6596 (arg1)->SetLeftDown(arg2);
6597
6598 wxPyEndAllowThreads(__tstate);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 Py_INCREF(Py_None); resultobj = Py_None;
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 static PyObject *_wrap_MouseState_SetMiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = NULL;
6610 wxMouseState *arg1 = (wxMouseState *) 0 ;
6611 bool arg2 ;
6612 PyObject * obj0 = 0 ;
6613 PyObject * obj1 = 0 ;
6614 char *kwnames[] = {
6615 (char *) "self",(char *) "down", NULL
6616 };
6617
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMiddleDown",kwnames,&obj0,&obj1)) goto fail;
6619 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6620 if (SWIG_arg_fail(1)) SWIG_fail;
6621 {
6622 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6623 if (SWIG_arg_fail(2)) SWIG_fail;
6624 }
6625 {
6626 PyThreadState* __tstate = wxPyBeginAllowThreads();
6627 (arg1)->SetMiddleDown(arg2);
6628
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 Py_INCREF(Py_None); resultobj = Py_None;
6633 return resultobj;
6634 fail:
6635 return NULL;
6636 }
6637
6638
6639 static PyObject *_wrap_MouseState_SetRightDown(PyObject *, PyObject *args, PyObject *kwargs) {
6640 PyObject *resultobj = NULL;
6641 wxMouseState *arg1 = (wxMouseState *) 0 ;
6642 bool arg2 ;
6643 PyObject * obj0 = 0 ;
6644 PyObject * obj1 = 0 ;
6645 char *kwnames[] = {
6646 (char *) "self",(char *) "down", NULL
6647 };
6648
6649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetRightDown",kwnames,&obj0,&obj1)) goto fail;
6650 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6651 if (SWIG_arg_fail(1)) SWIG_fail;
6652 {
6653 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6654 if (SWIG_arg_fail(2)) SWIG_fail;
6655 }
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 (arg1)->SetRightDown(arg2);
6659
6660 wxPyEndAllowThreads(__tstate);
6661 if (PyErr_Occurred()) SWIG_fail;
6662 }
6663 Py_INCREF(Py_None); resultobj = Py_None;
6664 return resultobj;
6665 fail:
6666 return NULL;
6667 }
6668
6669
6670 static PyObject *_wrap_MouseState_SetControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
6671 PyObject *resultobj = NULL;
6672 wxMouseState *arg1 = (wxMouseState *) 0 ;
6673 bool arg2 ;
6674 PyObject * obj0 = 0 ;
6675 PyObject * obj1 = 0 ;
6676 char *kwnames[] = {
6677 (char *) "self",(char *) "down", NULL
6678 };
6679
6680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetControlDown",kwnames,&obj0,&obj1)) goto fail;
6681 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6682 if (SWIG_arg_fail(1)) SWIG_fail;
6683 {
6684 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6685 if (SWIG_arg_fail(2)) SWIG_fail;
6686 }
6687 {
6688 PyThreadState* __tstate = wxPyBeginAllowThreads();
6689 (arg1)->SetControlDown(arg2);
6690
6691 wxPyEndAllowThreads(__tstate);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 }
6694 Py_INCREF(Py_None); resultobj = Py_None;
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 static PyObject *_wrap_MouseState_SetShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6702 PyObject *resultobj = NULL;
6703 wxMouseState *arg1 = (wxMouseState *) 0 ;
6704 bool arg2 ;
6705 PyObject * obj0 = 0 ;
6706 PyObject * obj1 = 0 ;
6707 char *kwnames[] = {
6708 (char *) "self",(char *) "down", NULL
6709 };
6710
6711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetShiftDown",kwnames,&obj0,&obj1)) goto fail;
6712 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6713 if (SWIG_arg_fail(1)) SWIG_fail;
6714 {
6715 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6716 if (SWIG_arg_fail(2)) SWIG_fail;
6717 }
6718 {
6719 PyThreadState* __tstate = wxPyBeginAllowThreads();
6720 (arg1)->SetShiftDown(arg2);
6721
6722 wxPyEndAllowThreads(__tstate);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 Py_INCREF(Py_None); resultobj = Py_None;
6726 return resultobj;
6727 fail:
6728 return NULL;
6729 }
6730
6731
6732 static PyObject *_wrap_MouseState_SetAltDown(PyObject *, PyObject *args, PyObject *kwargs) {
6733 PyObject *resultobj = NULL;
6734 wxMouseState *arg1 = (wxMouseState *) 0 ;
6735 bool arg2 ;
6736 PyObject * obj0 = 0 ;
6737 PyObject * obj1 = 0 ;
6738 char *kwnames[] = {
6739 (char *) "self",(char *) "down", NULL
6740 };
6741
6742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetAltDown",kwnames,&obj0,&obj1)) goto fail;
6743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6744 if (SWIG_arg_fail(1)) SWIG_fail;
6745 {
6746 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6747 if (SWIG_arg_fail(2)) SWIG_fail;
6748 }
6749 {
6750 PyThreadState* __tstate = wxPyBeginAllowThreads();
6751 (arg1)->SetAltDown(arg2);
6752
6753 wxPyEndAllowThreads(__tstate);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 Py_INCREF(Py_None); resultobj = Py_None;
6757 return resultobj;
6758 fail:
6759 return NULL;
6760 }
6761
6762
6763 static PyObject *_wrap_MouseState_SetMetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
6764 PyObject *resultobj = NULL;
6765 wxMouseState *arg1 = (wxMouseState *) 0 ;
6766 bool arg2 ;
6767 PyObject * obj0 = 0 ;
6768 PyObject * obj1 = 0 ;
6769 char *kwnames[] = {
6770 (char *) "self",(char *) "down", NULL
6771 };
6772
6773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMetaDown",kwnames,&obj0,&obj1)) goto fail;
6774 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6775 if (SWIG_arg_fail(1)) SWIG_fail;
6776 {
6777 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6778 if (SWIG_arg_fail(2)) SWIG_fail;
6779 }
6780 {
6781 PyThreadState* __tstate = wxPyBeginAllowThreads();
6782 (arg1)->SetMetaDown(arg2);
6783
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 }
6787 Py_INCREF(Py_None); resultobj = Py_None;
6788 return resultobj;
6789 fail:
6790 return NULL;
6791 }
6792
6793
6794 static PyObject * MouseState_swigregister(PyObject *, PyObject *args) {
6795 PyObject *obj;
6796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6797 SWIG_TypeClientData(SWIGTYPE_p_wxMouseState, obj);
6798 Py_INCREF(obj);
6799 return Py_BuildValue((char *)"");
6800 }
6801 static PyObject *_wrap_GetMouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6802 PyObject *resultobj = NULL;
6803 wxMouseState result;
6804 char *kwnames[] = {
6805 NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMouseState",kwnames)) goto fail;
6809 {
6810 PyThreadState* __tstate = wxPyBeginAllowThreads();
6811 result = wxGetMouseState();
6812
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 {
6817 wxMouseState * resultptr;
6818 resultptr = new wxMouseState(static_cast<wxMouseState & >(result));
6819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMouseState, 1);
6820 }
6821 return resultobj;
6822 fail:
6823 return NULL;
6824 }
6825
6826
6827 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
6828 PyObject *resultobj = NULL;
6829 char *kwnames[] = {
6830 NULL
6831 };
6832
6833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
6834 {
6835 if (!wxPyCheckForApp()) SWIG_fail;
6836 PyThreadState* __tstate = wxPyBeginAllowThreads();
6837 wxWakeUpMainThread();
6838
6839 wxPyEndAllowThreads(__tstate);
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 Py_INCREF(Py_None); resultobj = Py_None;
6843 return resultobj;
6844 fail:
6845 return NULL;
6846 }
6847
6848
6849 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj = NULL;
6851 char *kwnames[] = {
6852 NULL
6853 };
6854
6855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
6856 {
6857 if (!wxPyCheckForApp()) SWIG_fail;
6858 PyThreadState* __tstate = wxPyBeginAllowThreads();
6859 wxMutexGuiEnter();
6860
6861 wxPyEndAllowThreads(__tstate);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 Py_INCREF(Py_None); resultobj = Py_None;
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj = NULL;
6873 char *kwnames[] = {
6874 NULL
6875 };
6876
6877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
6878 {
6879 if (!wxPyCheckForApp()) SWIG_fail;
6880 PyThreadState* __tstate = wxPyBeginAllowThreads();
6881 wxMutexGuiLeave();
6882
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 Py_INCREF(Py_None); resultobj = Py_None;
6887 return resultobj;
6888 fail:
6889 return NULL;
6890 }
6891
6892
6893 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj = NULL;
6895 wxMutexGuiLocker *result;
6896 char *kwnames[] = {
6897 NULL
6898 };
6899
6900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
6901 {
6902 if (!wxPyCheckForApp()) SWIG_fail;
6903 PyThreadState* __tstate = wxPyBeginAllowThreads();
6904 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
6905
6906 wxPyEndAllowThreads(__tstate);
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
6910 return resultobj;
6911 fail:
6912 return NULL;
6913 }
6914
6915
6916 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
6917 PyObject *resultobj = NULL;
6918 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
6919 PyObject * obj0 = 0 ;
6920 char *kwnames[] = {
6921 (char *) "self", NULL
6922 };
6923
6924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
6925 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_EXCEPTION | 0);
6926 if (SWIG_arg_fail(1)) SWIG_fail;
6927 {
6928 PyThreadState* __tstate = wxPyBeginAllowThreads();
6929 delete arg1;
6930
6931 wxPyEndAllowThreads(__tstate);
6932 if (PyErr_Occurred()) SWIG_fail;
6933 }
6934 Py_INCREF(Py_None); resultobj = Py_None;
6935 return resultobj;
6936 fail:
6937 return NULL;
6938 }
6939
6940
6941 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
6942 PyObject *obj;
6943 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6944 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
6945 Py_INCREF(obj);
6946 return Py_BuildValue((char *)"");
6947 }
6948 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
6949 PyObject *resultobj = NULL;
6950 bool result;
6951 char *kwnames[] = {
6952 NULL
6953 };
6954
6955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
6956 {
6957 PyThreadState* __tstate = wxPyBeginAllowThreads();
6958 result = (bool)wxThread_IsMain();
6959
6960 wxPyEndAllowThreads(__tstate);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 {
6964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6965 }
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
6973 PyObject *resultobj = NULL;
6974 wxString *arg1 = 0 ;
6975 wxToolTip *result;
6976 bool temp1 = false ;
6977 PyObject * obj0 = 0 ;
6978 char *kwnames[] = {
6979 (char *) "tip", NULL
6980 };
6981
6982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
6983 {
6984 arg1 = wxString_in_helper(obj0);
6985 if (arg1 == NULL) SWIG_fail;
6986 temp1 = true;
6987 }
6988 {
6989 if (!wxPyCheckForApp()) SWIG_fail;
6990 PyThreadState* __tstate = wxPyBeginAllowThreads();
6991 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
6992
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolTip, 1);
6997 {
6998 if (temp1)
6999 delete arg1;
7000 }
7001 return resultobj;
7002 fail:
7003 {
7004 if (temp1)
7005 delete arg1;
7006 }
7007 return NULL;
7008 }
7009
7010
7011 static PyObject *_wrap_delete_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
7012 PyObject *resultobj = NULL;
7013 wxToolTip *arg1 = (wxToolTip *) 0 ;
7014 PyObject * obj0 = 0 ;
7015 char *kwnames[] = {
7016 (char *) "self", NULL
7017 };
7018
7019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ToolTip",kwnames,&obj0)) goto fail;
7020 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7021 if (SWIG_arg_fail(1)) SWIG_fail;
7022 {
7023 PyThreadState* __tstate = wxPyBeginAllowThreads();
7024 delete arg1;
7025
7026 wxPyEndAllowThreads(__tstate);
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 Py_INCREF(Py_None); resultobj = Py_None;
7030 return resultobj;
7031 fail:
7032 return NULL;
7033 }
7034
7035
7036 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
7037 PyObject *resultobj = NULL;
7038 wxToolTip *arg1 = (wxToolTip *) 0 ;
7039 wxString *arg2 = 0 ;
7040 bool temp2 = false ;
7041 PyObject * obj0 = 0 ;
7042 PyObject * obj1 = 0 ;
7043 char *kwnames[] = {
7044 (char *) "self",(char *) "tip", NULL
7045 };
7046
7047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
7048 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7049 if (SWIG_arg_fail(1)) SWIG_fail;
7050 {
7051 arg2 = wxString_in_helper(obj1);
7052 if (arg2 == NULL) SWIG_fail;
7053 temp2 = true;
7054 }
7055 {
7056 PyThreadState* __tstate = wxPyBeginAllowThreads();
7057 (arg1)->SetTip((wxString const &)*arg2);
7058
7059 wxPyEndAllowThreads(__tstate);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 }
7062 Py_INCREF(Py_None); resultobj = Py_None;
7063 {
7064 if (temp2)
7065 delete arg2;
7066 }
7067 return resultobj;
7068 fail:
7069 {
7070 if (temp2)
7071 delete arg2;
7072 }
7073 return NULL;
7074 }
7075
7076
7077 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj = NULL;
7079 wxToolTip *arg1 = (wxToolTip *) 0 ;
7080 wxString result;
7081 PyObject * obj0 = 0 ;
7082 char *kwnames[] = {
7083 (char *) "self", NULL
7084 };
7085
7086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
7087 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7088 if (SWIG_arg_fail(1)) SWIG_fail;
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 result = (arg1)->GetTip();
7092
7093 wxPyEndAllowThreads(__tstate);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 {
7097 #if wxUSE_UNICODE
7098 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7099 #else
7100 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7101 #endif
7102 }
7103 return resultobj;
7104 fail:
7105 return NULL;
7106 }
7107
7108
7109 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7110 PyObject *resultobj = NULL;
7111 wxToolTip *arg1 = (wxToolTip *) 0 ;
7112 wxWindow *result;
7113 PyObject * obj0 = 0 ;
7114 char *kwnames[] = {
7115 (char *) "self", NULL
7116 };
7117
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
7119 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7120 if (SWIG_arg_fail(1)) SWIG_fail;
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 result = (wxWindow *)(arg1)->GetWindow();
7124
7125 wxPyEndAllowThreads(__tstate);
7126 if (PyErr_Occurred()) SWIG_fail;
7127 }
7128 {
7129 resultobj = wxPyMake_wxObject(result, 0);
7130 }
7131 return resultobj;
7132 fail:
7133 return NULL;
7134 }
7135
7136
7137 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
7138 PyObject *resultobj = NULL;
7139 bool arg1 ;
7140 PyObject * obj0 = 0 ;
7141 char *kwnames[] = {
7142 (char *) "flag", NULL
7143 };
7144
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
7146 {
7147 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
7148 if (SWIG_arg_fail(1)) SWIG_fail;
7149 }
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 wxToolTip::Enable(arg1);
7153
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 Py_INCREF(Py_None); resultobj = Py_None;
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
7165 PyObject *resultobj = NULL;
7166 long arg1 ;
7167 PyObject * obj0 = 0 ;
7168 char *kwnames[] = {
7169 (char *) "milliseconds", NULL
7170 };
7171
7172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
7173 {
7174 arg1 = static_cast<long >(SWIG_As_long(obj0));
7175 if (SWIG_arg_fail(1)) SWIG_fail;
7176 }
7177 {
7178 PyThreadState* __tstate = wxPyBeginAllowThreads();
7179 wxToolTip::SetDelay(arg1);
7180
7181 wxPyEndAllowThreads(__tstate);
7182 if (PyErr_Occurred()) SWIG_fail;
7183 }
7184 Py_INCREF(Py_None); resultobj = Py_None;
7185 return resultobj;
7186 fail:
7187 return NULL;
7188 }
7189
7190
7191 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
7192 PyObject *obj;
7193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7194 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
7195 Py_INCREF(obj);
7196 return Py_BuildValue((char *)"");
7197 }
7198 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj = NULL;
7200 wxWindow *arg1 = (wxWindow *) 0 ;
7201 wxSize *arg2 = 0 ;
7202 wxCaret *result;
7203 wxSize temp2 ;
7204 PyObject * obj0 = 0 ;
7205 PyObject * obj1 = 0 ;
7206 char *kwnames[] = {
7207 (char *) "window",(char *) "size", NULL
7208 };
7209
7210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
7211 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
7212 if (SWIG_arg_fail(1)) SWIG_fail;
7213 {
7214 arg2 = &temp2;
7215 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7216 }
7217 {
7218 if (!wxPyCheckForApp()) SWIG_fail;
7219 PyThreadState* __tstate = wxPyBeginAllowThreads();
7220 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
7221
7222 wxPyEndAllowThreads(__tstate);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
7233 PyObject *resultobj = NULL;
7234 wxCaret *arg1 = (wxCaret *) 0 ;
7235 PyObject * obj0 = 0 ;
7236 char *kwnames[] = {
7237 (char *) "self", NULL
7238 };
7239
7240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
7241 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7242 if (SWIG_arg_fail(1)) SWIG_fail;
7243 {
7244 PyThreadState* __tstate = wxPyBeginAllowThreads();
7245 delete arg1;
7246
7247 wxPyEndAllowThreads(__tstate);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 Py_INCREF(Py_None); resultobj = Py_None;
7251 return resultobj;
7252 fail:
7253 return NULL;
7254 }
7255
7256
7257 static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
7258 PyObject *resultobj = NULL;
7259 wxCaret *arg1 = (wxCaret *) 0 ;
7260 PyObject * obj0 = 0 ;
7261 char *kwnames[] = {
7262 (char *) "self", NULL
7263 };
7264
7265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Destroy",kwnames,&obj0)) goto fail;
7266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7267 if (SWIG_arg_fail(1)) SWIG_fail;
7268 {
7269 PyThreadState* __tstate = wxPyBeginAllowThreads();
7270 wxCaret_Destroy(arg1);
7271
7272 wxPyEndAllowThreads(__tstate);
7273 if (PyErr_Occurred()) SWIG_fail;
7274 }
7275 Py_INCREF(Py_None); resultobj = Py_None;
7276 return resultobj;
7277 fail:
7278 return NULL;
7279 }
7280
7281
7282 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
7283 PyObject *resultobj = NULL;
7284 wxCaret *arg1 = (wxCaret *) 0 ;
7285 bool result;
7286 PyObject * obj0 = 0 ;
7287 char *kwnames[] = {
7288 (char *) "self", NULL
7289 };
7290
7291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
7292 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7293 if (SWIG_arg_fail(1)) SWIG_fail;
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 result = (bool)(arg1)->IsOk();
7297
7298 wxPyEndAllowThreads(__tstate);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 {
7302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7303 }
7304 return resultobj;
7305 fail:
7306 return NULL;
7307 }
7308
7309
7310 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
7311 PyObject *resultobj = NULL;
7312 wxCaret *arg1 = (wxCaret *) 0 ;
7313 bool result;
7314 PyObject * obj0 = 0 ;
7315 char *kwnames[] = {
7316 (char *) "self", NULL
7317 };
7318
7319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
7320 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7321 if (SWIG_arg_fail(1)) SWIG_fail;
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 result = (bool)(arg1)->IsVisible();
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 {
7330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7331 }
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj = NULL;
7340 wxCaret *arg1 = (wxCaret *) 0 ;
7341 wxPoint result;
7342 PyObject * obj0 = 0 ;
7343 char *kwnames[] = {
7344 (char *) "self", NULL
7345 };
7346
7347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
7348 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7349 if (SWIG_arg_fail(1)) SWIG_fail;
7350 {
7351 PyThreadState* __tstate = wxPyBeginAllowThreads();
7352 result = (arg1)->GetPosition();
7353
7354 wxPyEndAllowThreads(__tstate);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 {
7358 wxPoint * resultptr;
7359 resultptr = new wxPoint(static_cast<wxPoint & >(result));
7360 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
7361 }
7362 return resultobj;
7363 fail:
7364 return NULL;
7365 }
7366
7367
7368 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
7369 PyObject *resultobj = NULL;
7370 wxCaret *arg1 = (wxCaret *) 0 ;
7371 int *arg2 = (int *) 0 ;
7372 int *arg3 = (int *) 0 ;
7373 int temp2 ;
7374 int res2 = 0 ;
7375 int temp3 ;
7376 int res3 = 0 ;
7377 PyObject * obj0 = 0 ;
7378 char *kwnames[] = {
7379 (char *) "self", NULL
7380 };
7381
7382 arg2 = &temp2; res2 = SWIG_NEWOBJ;
7383 arg3 = &temp3; res3 = SWIG_NEWOBJ;
7384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
7385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7386 if (SWIG_arg_fail(1)) SWIG_fail;
7387 {
7388 PyThreadState* __tstate = wxPyBeginAllowThreads();
7389 (arg1)->GetPosition(arg2,arg3);
7390
7391 wxPyEndAllowThreads(__tstate);
7392 if (PyErr_Occurred()) SWIG_fail;
7393 }
7394 Py_INCREF(Py_None); resultobj = Py_None;
7395 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
7396 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
7397 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
7398 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
7399 return resultobj;
7400 fail:
7401 return NULL;
7402 }
7403
7404
7405 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
7406 PyObject *resultobj = NULL;
7407 wxCaret *arg1 = (wxCaret *) 0 ;
7408 wxSize result;
7409 PyObject * obj0 = 0 ;
7410 char *kwnames[] = {
7411 (char *) "self", NULL
7412 };
7413
7414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
7415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7416 if (SWIG_arg_fail(1)) SWIG_fail;
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 result = (arg1)->GetSize();
7420
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 {
7425 wxSize * resultptr;
7426 resultptr = new wxSize(static_cast<wxSize & >(result));
7427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
7428 }
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj = NULL;
7437 wxCaret *arg1 = (wxCaret *) 0 ;
7438 int *arg2 = (int *) 0 ;
7439 int *arg3 = (int *) 0 ;
7440 int temp2 ;
7441 int res2 = 0 ;
7442 int temp3 ;
7443 int res3 = 0 ;
7444 PyObject * obj0 = 0 ;
7445 char *kwnames[] = {
7446 (char *) "self", NULL
7447 };
7448
7449 arg2 = &temp2; res2 = SWIG_NEWOBJ;
7450 arg3 = &temp3; res3 = SWIG_NEWOBJ;
7451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
7452 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7453 if (SWIG_arg_fail(1)) SWIG_fail;
7454 {
7455 PyThreadState* __tstate = wxPyBeginAllowThreads();
7456 (arg1)->GetSize(arg2,arg3);
7457
7458 wxPyEndAllowThreads(__tstate);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 Py_INCREF(Py_None); resultobj = Py_None;
7462 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
7463 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
7464 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
7465 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
7466 return resultobj;
7467 fail:
7468 return NULL;
7469 }
7470
7471
7472 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7473 PyObject *resultobj = NULL;
7474 wxCaret *arg1 = (wxCaret *) 0 ;
7475 wxWindow *result;
7476 PyObject * obj0 = 0 ;
7477 char *kwnames[] = {
7478 (char *) "self", NULL
7479 };
7480
7481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
7482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7483 if (SWIG_arg_fail(1)) SWIG_fail;
7484 {
7485 PyThreadState* __tstate = wxPyBeginAllowThreads();
7486 result = (wxWindow *)(arg1)->GetWindow();
7487
7488 wxPyEndAllowThreads(__tstate);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 {
7492 resultobj = wxPyMake_wxObject(result, 0);
7493 }
7494 return resultobj;
7495 fail:
7496 return NULL;
7497 }
7498
7499
7500 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
7501 PyObject *resultobj = NULL;
7502 wxCaret *arg1 = (wxCaret *) 0 ;
7503 int arg2 ;
7504 int arg3 ;
7505 PyObject * obj0 = 0 ;
7506 PyObject * obj1 = 0 ;
7507 PyObject * obj2 = 0 ;
7508 char *kwnames[] = {
7509 (char *) "self",(char *) "x",(char *) "y", NULL
7510 };
7511
7512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7514 if (SWIG_arg_fail(1)) SWIG_fail;
7515 {
7516 arg2 = static_cast<int >(SWIG_As_int(obj1));
7517 if (SWIG_arg_fail(2)) SWIG_fail;
7518 }
7519 {
7520 arg3 = static_cast<int >(SWIG_As_int(obj2));
7521 if (SWIG_arg_fail(3)) SWIG_fail;
7522 }
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 (arg1)->Move(arg2,arg3);
7526
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 Py_INCREF(Py_None); resultobj = Py_None;
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj = NULL;
7539 wxCaret *arg1 = (wxCaret *) 0 ;
7540 wxPoint *arg2 = 0 ;
7541 wxPoint temp2 ;
7542 PyObject * obj0 = 0 ;
7543 PyObject * obj1 = 0 ;
7544 char *kwnames[] = {
7545 (char *) "self",(char *) "pt", NULL
7546 };
7547
7548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
7549 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7550 if (SWIG_arg_fail(1)) SWIG_fail;
7551 {
7552 arg2 = &temp2;
7553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7554 }
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 (arg1)->Move((wxPoint const &)*arg2);
7558
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 Py_INCREF(Py_None); resultobj = Py_None;
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj = NULL;
7571 wxCaret *arg1 = (wxCaret *) 0 ;
7572 int arg2 ;
7573 int arg3 ;
7574 PyObject * obj0 = 0 ;
7575 PyObject * obj1 = 0 ;
7576 PyObject * obj2 = 0 ;
7577 char *kwnames[] = {
7578 (char *) "self",(char *) "width",(char *) "height", NULL
7579 };
7580
7581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
7582 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7583 if (SWIG_arg_fail(1)) SWIG_fail;
7584 {
7585 arg2 = static_cast<int >(SWIG_As_int(obj1));
7586 if (SWIG_arg_fail(2)) SWIG_fail;
7587 }
7588 {
7589 arg3 = static_cast<int >(SWIG_As_int(obj2));
7590 if (SWIG_arg_fail(3)) SWIG_fail;
7591 }
7592 {
7593 PyThreadState* __tstate = wxPyBeginAllowThreads();
7594 (arg1)->SetSize(arg2,arg3);
7595
7596 wxPyEndAllowThreads(__tstate);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 Py_INCREF(Py_None); resultobj = Py_None;
7600 return resultobj;
7601 fail:
7602 return NULL;
7603 }
7604
7605
7606 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
7607 PyObject *resultobj = NULL;
7608 wxCaret *arg1 = (wxCaret *) 0 ;
7609 wxSize *arg2 = 0 ;
7610 wxSize temp2 ;
7611 PyObject * obj0 = 0 ;
7612 PyObject * obj1 = 0 ;
7613 char *kwnames[] = {
7614 (char *) "self",(char *) "size", NULL
7615 };
7616
7617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
7618 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7619 if (SWIG_arg_fail(1)) SWIG_fail;
7620 {
7621 arg2 = &temp2;
7622 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7623 }
7624 {
7625 PyThreadState* __tstate = wxPyBeginAllowThreads();
7626 (arg1)->SetSize((wxSize const &)*arg2);
7627
7628 wxPyEndAllowThreads(__tstate);
7629 if (PyErr_Occurred()) SWIG_fail;
7630 }
7631 Py_INCREF(Py_None); resultobj = Py_None;
7632 return resultobj;
7633 fail:
7634 return NULL;
7635 }
7636
7637
7638 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
7639 PyObject *resultobj = NULL;
7640 wxCaret *arg1 = (wxCaret *) 0 ;
7641 int arg2 = (int) true ;
7642 PyObject * obj0 = 0 ;
7643 PyObject * obj1 = 0 ;
7644 char *kwnames[] = {
7645 (char *) "self",(char *) "show", NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
7649 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7650 if (SWIG_arg_fail(1)) SWIG_fail;
7651 if (obj1) {
7652 {
7653 arg2 = static_cast<int >(SWIG_As_int(obj1));
7654 if (SWIG_arg_fail(2)) SWIG_fail;
7655 }
7656 }
7657 {
7658 PyThreadState* __tstate = wxPyBeginAllowThreads();
7659 (arg1)->Show(arg2);
7660
7661 wxPyEndAllowThreads(__tstate);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 Py_INCREF(Py_None); resultobj = Py_None;
7665 return resultobj;
7666 fail:
7667 return NULL;
7668 }
7669
7670
7671 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
7672 PyObject *resultobj = NULL;
7673 wxCaret *arg1 = (wxCaret *) 0 ;
7674 PyObject * obj0 = 0 ;
7675 char *kwnames[] = {
7676 (char *) "self", NULL
7677 };
7678
7679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
7680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7681 if (SWIG_arg_fail(1)) SWIG_fail;
7682 {
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 (arg1)->Hide();
7685
7686 wxPyEndAllowThreads(__tstate);
7687 if (PyErr_Occurred()) SWIG_fail;
7688 }
7689 Py_INCREF(Py_None); resultobj = Py_None;
7690 return resultobj;
7691 fail:
7692 return NULL;
7693 }
7694
7695
7696 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
7697 PyObject *resultobj = NULL;
7698 int result;
7699 char *kwnames[] = {
7700 NULL
7701 };
7702
7703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
7704 {
7705 PyThreadState* __tstate = wxPyBeginAllowThreads();
7706 result = (int)wxCaret::GetBlinkTime();
7707
7708 wxPyEndAllowThreads(__tstate);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 {
7712 resultobj = SWIG_From_int(static_cast<int >(result));
7713 }
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
7721 PyObject *resultobj = NULL;
7722 int arg1 ;
7723 PyObject * obj0 = 0 ;
7724 char *kwnames[] = {
7725 (char *) "milliseconds", NULL
7726 };
7727
7728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
7729 {
7730 arg1 = static_cast<int >(SWIG_As_int(obj0));
7731 if (SWIG_arg_fail(1)) SWIG_fail;
7732 }
7733 {
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 wxCaret::SetBlinkTime(arg1);
7736
7737 wxPyEndAllowThreads(__tstate);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 Py_INCREF(Py_None); resultobj = Py_None;
7741 return resultobj;
7742 fail:
7743 return NULL;
7744 }
7745
7746
7747 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
7748 PyObject *obj;
7749 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7750 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
7751 Py_INCREF(obj);
7752 return Py_BuildValue((char *)"");
7753 }
7754 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
7755 PyObject *resultobj = NULL;
7756 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
7757 wxBusyCursor *result;
7758 PyObject * obj0 = 0 ;
7759 char *kwnames[] = {
7760 (char *) "cursor", NULL
7761 };
7762
7763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
7764 if (obj0) {
7765 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
7766 if (SWIG_arg_fail(1)) SWIG_fail;
7767 }
7768 {
7769 if (!wxPyCheckForApp()) SWIG_fail;
7770 PyThreadState* __tstate = wxPyBeginAllowThreads();
7771 result = (wxBusyCursor *)new wxBusyCursor(arg1);
7772
7773 wxPyEndAllowThreads(__tstate);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
7777 return resultobj;
7778 fail:
7779 return NULL;
7780 }
7781
7782
7783 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj = NULL;
7785 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
7786 PyObject * obj0 = 0 ;
7787 char *kwnames[] = {
7788 (char *) "self", NULL
7789 };
7790
7791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
7792 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_EXCEPTION | 0);
7793 if (SWIG_arg_fail(1)) SWIG_fail;
7794 {
7795 PyThreadState* __tstate = wxPyBeginAllowThreads();
7796 delete arg1;
7797
7798 wxPyEndAllowThreads(__tstate);
7799 if (PyErr_Occurred()) SWIG_fail;
7800 }
7801 Py_INCREF(Py_None); resultobj = Py_None;
7802 return resultobj;
7803 fail:
7804 return NULL;
7805 }
7806
7807
7808 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
7809 PyObject *obj;
7810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7811 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
7812 Py_INCREF(obj);
7813 return Py_BuildValue((char *)"");
7814 }
7815 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
7816 PyObject *resultobj = NULL;
7817 wxWindow *arg1 = (wxWindow *) NULL ;
7818 wxWindowDisabler *result;
7819 PyObject * obj0 = 0 ;
7820 char *kwnames[] = {
7821 (char *) "winToSkip", NULL
7822 };
7823
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
7825 if (obj0) {
7826 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
7827 if (SWIG_arg_fail(1)) SWIG_fail;
7828 }
7829 {
7830 if (!wxPyCheckForApp()) SWIG_fail;
7831 PyThreadState* __tstate = wxPyBeginAllowThreads();
7832 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
7833
7834 wxPyEndAllowThreads(__tstate);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
7838 return resultobj;
7839 fail:
7840 return NULL;
7841 }
7842
7843
7844 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
7845 PyObject *resultobj = NULL;
7846 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
7847 PyObject * obj0 = 0 ;
7848 char *kwnames[] = {
7849 (char *) "self", NULL
7850 };
7851
7852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
7853 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_EXCEPTION | 0);
7854 if (SWIG_arg_fail(1)) SWIG_fail;
7855 {
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 delete arg1;
7858
7859 wxPyEndAllowThreads(__tstate);
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 Py_INCREF(Py_None); resultobj = Py_None;
7863 return resultobj;
7864 fail:
7865 return NULL;
7866 }
7867
7868
7869 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
7870 PyObject *obj;
7871 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7872 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
7873 Py_INCREF(obj);
7874 return Py_BuildValue((char *)"");
7875 }
7876 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7877 PyObject *resultobj = NULL;
7878 wxString *arg1 = 0 ;
7879 wxBusyInfo *result;
7880 bool temp1 = false ;
7881 PyObject * obj0 = 0 ;
7882 char *kwnames[] = {
7883 (char *) "message", NULL
7884 };
7885
7886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
7887 {
7888 arg1 = wxString_in_helper(obj0);
7889 if (arg1 == NULL) SWIG_fail;
7890 temp1 = true;
7891 }
7892 {
7893 if (!wxPyCheckForApp()) SWIG_fail;
7894 PyThreadState* __tstate = wxPyBeginAllowThreads();
7895 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
7896
7897 wxPyEndAllowThreads(__tstate);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
7901 {
7902 if (temp1)
7903 delete arg1;
7904 }
7905 return resultobj;
7906 fail:
7907 {
7908 if (temp1)
7909 delete arg1;
7910 }
7911 return NULL;
7912 }
7913
7914
7915 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj = NULL;
7917 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
7918 PyObject * obj0 = 0 ;
7919 char *kwnames[] = {
7920 (char *) "self", NULL
7921 };
7922
7923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
7924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_EXCEPTION | 0);
7925 if (SWIG_arg_fail(1)) SWIG_fail;
7926 {
7927 PyThreadState* __tstate = wxPyBeginAllowThreads();
7928 delete arg1;
7929
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 Py_INCREF(Py_None); resultobj = Py_None;
7934 return resultobj;
7935 fail:
7936 return NULL;
7937 }
7938
7939
7940 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
7941 PyObject *obj;
7942 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7943 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
7944 Py_INCREF(obj);
7945 return Py_BuildValue((char *)"");
7946 }
7947 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
7948 PyObject *resultobj = NULL;
7949 wxStopWatch *result;
7950 char *kwnames[] = {
7951 NULL
7952 };
7953
7954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
7955 {
7956 PyThreadState* __tstate = wxPyBeginAllowThreads();
7957 result = (wxStopWatch *)new wxStopWatch();
7958
7959 wxPyEndAllowThreads(__tstate);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7970 PyObject *resultobj = NULL;
7971 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
7972 long arg2 = (long) 0 ;
7973 PyObject * obj0 = 0 ;
7974 PyObject * obj1 = 0 ;
7975 char *kwnames[] = {
7976 (char *) "self",(char *) "t0", NULL
7977 };
7978
7979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
7980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
7981 if (SWIG_arg_fail(1)) SWIG_fail;
7982 if (obj1) {
7983 {
7984 arg2 = static_cast<long >(SWIG_As_long(obj1));
7985 if (SWIG_arg_fail(2)) SWIG_fail;
7986 }
7987 }
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 (arg1)->Start(arg2);
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 Py_INCREF(Py_None); resultobj = Py_None;
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj = NULL;
8004 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
8005 PyObject * obj0 = 0 ;
8006 char *kwnames[] = {
8007 (char *) "self", NULL
8008 };
8009
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
8011 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8012 if (SWIG_arg_fail(1)) SWIG_fail;
8013 {
8014 PyThreadState* __tstate = wxPyBeginAllowThreads();
8015 (arg1)->Pause();
8016
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 Py_INCREF(Py_None); resultobj = Py_None;
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
8028 PyObject *resultobj = NULL;
8029 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
8030 PyObject * obj0 = 0 ;
8031 char *kwnames[] = {
8032 (char *) "self", NULL
8033 };
8034
8035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
8036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8037 if (SWIG_arg_fail(1)) SWIG_fail;
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 (arg1)->Resume();
8041
8042 wxPyEndAllowThreads(__tstate);
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 Py_INCREF(Py_None); resultobj = Py_None;
8046 return resultobj;
8047 fail:
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj = NULL;
8054 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
8055 long result;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
8062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8063 if (SWIG_arg_fail(1)) SWIG_fail;
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = (long)((wxStopWatch const *)arg1)->Time();
8067
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 {
8072 resultobj = SWIG_From_long(static_cast<long >(result));
8073 }
8074 return resultobj;
8075 fail:
8076 return NULL;
8077 }
8078
8079
8080 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
8081 PyObject *obj;
8082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8083 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
8084 Py_INCREF(obj);
8085 return Py_BuildValue((char *)"");
8086 }
8087 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj = NULL;
8089 int arg1 = (int) 9 ;
8090 int arg2 = (int) wxID_FILE1 ;
8091 wxFileHistory *result;
8092 PyObject * obj0 = 0 ;
8093 PyObject * obj1 = 0 ;
8094 char *kwnames[] = {
8095 (char *) "maxFiles",(char *) "idBase", NULL
8096 };
8097
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
8099 if (obj0) {
8100 {
8101 arg1 = static_cast<int >(SWIG_As_int(obj0));
8102 if (SWIG_arg_fail(1)) SWIG_fail;
8103 }
8104 }
8105 if (obj1) {
8106 {
8107 arg2 = static_cast<int >(SWIG_As_int(obj1));
8108 if (SWIG_arg_fail(2)) SWIG_fail;
8109 }
8110 }
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
8114
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) SWIG_fail;
8117 }
8118 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
8119 return resultobj;
8120 fail:
8121 return NULL;
8122 }
8123
8124
8125 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8126 PyObject *resultobj = NULL;
8127 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8128 PyObject * obj0 = 0 ;
8129 char *kwnames[] = {
8130 (char *) "self", NULL
8131 };
8132
8133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
8134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8135 if (SWIG_arg_fail(1)) SWIG_fail;
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 delete arg1;
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 Py_INCREF(Py_None); resultobj = Py_None;
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj = NULL;
8152 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8153 wxString *arg2 = 0 ;
8154 bool temp2 = false ;
8155 PyObject * obj0 = 0 ;
8156 PyObject * obj1 = 0 ;
8157 char *kwnames[] = {
8158 (char *) "self",(char *) "file", NULL
8159 };
8160
8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
8162 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8163 if (SWIG_arg_fail(1)) SWIG_fail;
8164 {
8165 arg2 = wxString_in_helper(obj1);
8166 if (arg2 == NULL) SWIG_fail;
8167 temp2 = true;
8168 }
8169 {
8170 PyThreadState* __tstate = wxPyBeginAllowThreads();
8171 (arg1)->AddFileToHistory((wxString const &)*arg2);
8172
8173 wxPyEndAllowThreads(__tstate);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 Py_INCREF(Py_None); resultobj = Py_None;
8177 {
8178 if (temp2)
8179 delete arg2;
8180 }
8181 return resultobj;
8182 fail:
8183 {
8184 if (temp2)
8185 delete arg2;
8186 }
8187 return NULL;
8188 }
8189
8190
8191 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8192 PyObject *resultobj = NULL;
8193 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8194 int arg2 ;
8195 PyObject * obj0 = 0 ;
8196 PyObject * obj1 = 0 ;
8197 char *kwnames[] = {
8198 (char *) "self",(char *) "i", NULL
8199 };
8200
8201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
8202 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8203 if (SWIG_arg_fail(1)) SWIG_fail;
8204 {
8205 arg2 = static_cast<int >(SWIG_As_int(obj1));
8206 if (SWIG_arg_fail(2)) SWIG_fail;
8207 }
8208 {
8209 PyThreadState* __tstate = wxPyBeginAllowThreads();
8210 (arg1)->RemoveFileFromHistory(arg2);
8211
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 Py_INCREF(Py_None); resultobj = Py_None;
8216 return resultobj;
8217 fail:
8218 return NULL;
8219 }
8220
8221
8222 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj = NULL;
8224 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8225 int result;
8226 PyObject * obj0 = 0 ;
8227 char *kwnames[] = {
8228 (char *) "self", NULL
8229 };
8230
8231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
8232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8233 if (SWIG_arg_fail(1)) SWIG_fail;
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 resultobj = SWIG_From_int(static_cast<int >(result));
8243 }
8244 return resultobj;
8245 fail:
8246 return NULL;
8247 }
8248
8249
8250 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8251 PyObject *resultobj = NULL;
8252 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8253 wxMenu *arg2 = (wxMenu *) 0 ;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 char *kwnames[] = {
8257 (char *) "self",(char *) "menu", NULL
8258 };
8259
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
8261 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8262 if (SWIG_arg_fail(1)) SWIG_fail;
8263 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8264 if (SWIG_arg_fail(2)) SWIG_fail;
8265 {
8266 PyThreadState* __tstate = wxPyBeginAllowThreads();
8267 (arg1)->UseMenu(arg2);
8268
8269 wxPyEndAllowThreads(__tstate);
8270 if (PyErr_Occurred()) SWIG_fail;
8271 }
8272 Py_INCREF(Py_None); resultobj = Py_None;
8273 return resultobj;
8274 fail:
8275 return NULL;
8276 }
8277
8278
8279 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8280 PyObject *resultobj = NULL;
8281 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8282 wxMenu *arg2 = (wxMenu *) 0 ;
8283 PyObject * obj0 = 0 ;
8284 PyObject * obj1 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "self",(char *) "menu", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
8290 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8291 if (SWIG_arg_fail(1)) SWIG_fail;
8292 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8293 if (SWIG_arg_fail(2)) SWIG_fail;
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 (arg1)->RemoveMenu(arg2);
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 Py_INCREF(Py_None); resultobj = Py_None;
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj = NULL;
8310 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8311 wxConfigBase *arg2 = 0 ;
8312 PyObject * obj0 = 0 ;
8313 PyObject * obj1 = 0 ;
8314 char *kwnames[] = {
8315 (char *) "self",(char *) "config", NULL
8316 };
8317
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
8319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8320 if (SWIG_arg_fail(1)) SWIG_fail;
8321 {
8322 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
8323 if (SWIG_arg_fail(2)) SWIG_fail;
8324 if (arg2 == NULL) {
8325 SWIG_null_ref("wxConfigBase");
8326 }
8327 if (SWIG_arg_fail(2)) SWIG_fail;
8328 }
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 (arg1)->Load(*arg2);
8332
8333 wxPyEndAllowThreads(__tstate);
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 Py_INCREF(Py_None); resultobj = Py_None;
8337 return resultobj;
8338 fail:
8339 return NULL;
8340 }
8341
8342
8343 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
8344 PyObject *resultobj = NULL;
8345 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8346 wxConfigBase *arg2 = 0 ;
8347 PyObject * obj0 = 0 ;
8348 PyObject * obj1 = 0 ;
8349 char *kwnames[] = {
8350 (char *) "self",(char *) "config", NULL
8351 };
8352
8353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
8354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8355 if (SWIG_arg_fail(1)) SWIG_fail;
8356 {
8357 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
8358 if (SWIG_arg_fail(2)) SWIG_fail;
8359 if (arg2 == NULL) {
8360 SWIG_null_ref("wxConfigBase");
8361 }
8362 if (SWIG_arg_fail(2)) SWIG_fail;
8363 }
8364 {
8365 PyThreadState* __tstate = wxPyBeginAllowThreads();
8366 (arg1)->Save(*arg2);
8367
8368 wxPyEndAllowThreads(__tstate);
8369 if (PyErr_Occurred()) SWIG_fail;
8370 }
8371 Py_INCREF(Py_None); resultobj = Py_None;
8372 return resultobj;
8373 fail:
8374 return NULL;
8375 }
8376
8377
8378 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj = NULL;
8380 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8381 PyObject * obj0 = 0 ;
8382 char *kwnames[] = {
8383 (char *) "self", NULL
8384 };
8385
8386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
8387 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8388 if (SWIG_arg_fail(1)) SWIG_fail;
8389 {
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 (arg1)->AddFilesToMenu();
8392
8393 wxPyEndAllowThreads(__tstate);
8394 if (PyErr_Occurred()) SWIG_fail;
8395 }
8396 Py_INCREF(Py_None); resultobj = Py_None;
8397 return resultobj;
8398 fail:
8399 return NULL;
8400 }
8401
8402
8403 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8404 PyObject *resultobj = NULL;
8405 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8406 wxMenu *arg2 = (wxMenu *) 0 ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 char *kwnames[] = {
8410 (char *) "self",(char *) "menu", NULL
8411 };
8412
8413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
8414 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8415 if (SWIG_arg_fail(1)) SWIG_fail;
8416 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8417 if (SWIG_arg_fail(2)) SWIG_fail;
8418 {
8419 PyThreadState* __tstate = wxPyBeginAllowThreads();
8420 (arg1)->AddFilesToMenu(arg2);
8421
8422 wxPyEndAllowThreads(__tstate);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 Py_INCREF(Py_None); resultobj = Py_None;
8426 return resultobj;
8427 fail:
8428 return NULL;
8429 }
8430
8431
8432 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
8433 PyObject *resultobj = NULL;
8434 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8435 int arg2 ;
8436 wxString result;
8437 PyObject * obj0 = 0 ;
8438 PyObject * obj1 = 0 ;
8439 char *kwnames[] = {
8440 (char *) "self",(char *) "i", NULL
8441 };
8442
8443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
8444 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8445 if (SWIG_arg_fail(1)) SWIG_fail;
8446 {
8447 arg2 = static_cast<int >(SWIG_As_int(obj1));
8448 if (SWIG_arg_fail(2)) SWIG_fail;
8449 }
8450 {
8451 PyThreadState* __tstate = wxPyBeginAllowThreads();
8452 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
8453
8454 wxPyEndAllowThreads(__tstate);
8455 if (PyErr_Occurred()) SWIG_fail;
8456 }
8457 {
8458 #if wxUSE_UNICODE
8459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8460 #else
8461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8462 #endif
8463 }
8464 return resultobj;
8465 fail:
8466 return NULL;
8467 }
8468
8469
8470 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
8471 PyObject *resultobj = NULL;
8472 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8473 int result;
8474 PyObject * obj0 = 0 ;
8475 char *kwnames[] = {
8476 (char *) "self", NULL
8477 };
8478
8479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
8480 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8481 if (SWIG_arg_fail(1)) SWIG_fail;
8482 {
8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
8484 result = (int)((wxFileHistory const *)arg1)->GetCount();
8485
8486 wxPyEndAllowThreads(__tstate);
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 {
8490 resultobj = SWIG_From_int(static_cast<int >(result));
8491 }
8492 return resultobj;
8493 fail:
8494 return NULL;
8495 }
8496
8497
8498 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
8499 PyObject *obj;
8500 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8501 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
8502 Py_INCREF(obj);
8503 return Py_BuildValue((char *)"");
8504 }
8505 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8506 PyObject *resultobj = NULL;
8507 wxString *arg1 = 0 ;
8508 wxString const &arg2_defvalue = wxPyEmptyString ;
8509 wxString *arg2 = (wxString *) &arg2_defvalue ;
8510 wxSingleInstanceChecker *result;
8511 bool temp1 = false ;
8512 bool temp2 = false ;
8513 PyObject * obj0 = 0 ;
8514 PyObject * obj1 = 0 ;
8515 char *kwnames[] = {
8516 (char *) "name",(char *) "path", NULL
8517 };
8518
8519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
8520 {
8521 arg1 = wxString_in_helper(obj0);
8522 if (arg1 == NULL) SWIG_fail;
8523 temp1 = true;
8524 }
8525 if (obj1) {
8526 {
8527 arg2 = wxString_in_helper(obj1);
8528 if (arg2 == NULL) SWIG_fail;
8529 temp2 = true;
8530 }
8531 }
8532 {
8533 PyThreadState* __tstate = wxPyBeginAllowThreads();
8534 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
8535
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
8540 {
8541 if (temp1)
8542 delete arg1;
8543 }
8544 {
8545 if (temp2)
8546 delete arg2;
8547 }
8548 return resultobj;
8549 fail:
8550 {
8551 if (temp1)
8552 delete arg1;
8553 }
8554 {
8555 if (temp2)
8556 delete arg2;
8557 }
8558 return NULL;
8559 }
8560
8561
8562 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj = NULL;
8564 wxSingleInstanceChecker *result;
8565 char *kwnames[] = {
8566 NULL
8567 };
8568
8569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
8570 {
8571 PyThreadState* __tstate = wxPyBeginAllowThreads();
8572 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
8573
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
8578 return resultobj;
8579 fail:
8580 return NULL;
8581 }
8582
8583
8584 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8585 PyObject *resultobj = NULL;
8586 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8587 PyObject * obj0 = 0 ;
8588 char *kwnames[] = {
8589 (char *) "self", NULL
8590 };
8591
8592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
8593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8594 if (SWIG_arg_fail(1)) SWIG_fail;
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 delete arg1;
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) SWIG_fail;
8601 }
8602 Py_INCREF(Py_None); resultobj = Py_None;
8603 return resultobj;
8604 fail:
8605 return NULL;
8606 }
8607
8608
8609 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8610 PyObject *resultobj = NULL;
8611 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8612 wxString *arg2 = 0 ;
8613 wxString const &arg3_defvalue = wxPyEmptyString ;
8614 wxString *arg3 = (wxString *) &arg3_defvalue ;
8615 bool result;
8616 bool temp2 = false ;
8617 bool temp3 = false ;
8618 PyObject * obj0 = 0 ;
8619 PyObject * obj1 = 0 ;
8620 PyObject * obj2 = 0 ;
8621 char *kwnames[] = {
8622 (char *) "self",(char *) "name",(char *) "path", NULL
8623 };
8624
8625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8626 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8627 if (SWIG_arg_fail(1)) SWIG_fail;
8628 {
8629 arg2 = wxString_in_helper(obj1);
8630 if (arg2 == NULL) SWIG_fail;
8631 temp2 = true;
8632 }
8633 if (obj2) {
8634 {
8635 arg3 = wxString_in_helper(obj2);
8636 if (arg3 == NULL) SWIG_fail;
8637 temp3 = true;
8638 }
8639 }
8640 {
8641 PyThreadState* __tstate = wxPyBeginAllowThreads();
8642 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
8643
8644 wxPyEndAllowThreads(__tstate);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 {
8648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8649 }
8650 {
8651 if (temp2)
8652 delete arg2;
8653 }
8654 {
8655 if (temp3)
8656 delete arg3;
8657 }
8658 return resultobj;
8659 fail:
8660 {
8661 if (temp2)
8662 delete arg2;
8663 }
8664 {
8665 if (temp3)
8666 delete arg3;
8667 }
8668 return NULL;
8669 }
8670
8671
8672 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
8673 PyObject *resultobj = NULL;
8674 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8675 bool result;
8676 PyObject * obj0 = 0 ;
8677 char *kwnames[] = {
8678 (char *) "self", NULL
8679 };
8680
8681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
8682 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8683 if (SWIG_arg_fail(1)) SWIG_fail;
8684 {
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
8687
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) SWIG_fail;
8690 }
8691 {
8692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8693 }
8694 return resultobj;
8695 fail:
8696 return NULL;
8697 }
8698
8699
8700 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
8701 PyObject *obj;
8702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8703 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
8704 Py_INCREF(obj);
8705 return Py_BuildValue((char *)"");
8706 }
8707 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj = NULL;
8709 wxWindow *arg1 = (wxWindow *) 0 ;
8710 wxDC *arg2 = 0 ;
8711 bool result;
8712 PyObject * obj0 = 0 ;
8713 PyObject * obj1 = 0 ;
8714 char *kwnames[] = {
8715 (char *) "window",(char *) "dc", NULL
8716 };
8717
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) goto fail;
8719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
8720 if (SWIG_arg_fail(1)) SWIG_fail;
8721 {
8722 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
8723 if (SWIG_arg_fail(2)) SWIG_fail;
8724 if (arg2 == NULL) {
8725 SWIG_null_ref("wxDC");
8726 }
8727 if (SWIG_arg_fail(2)) SWIG_fail;
8728 }
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2);
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 {
8737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8738 }
8739 return resultobj;
8740 fail:
8741 return NULL;
8742 }
8743
8744
8745 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8746 PyObject *resultobj = NULL;
8747 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8748 PyObject * obj0 = 0 ;
8749 char *kwnames[] = {
8750 (char *) "self", NULL
8751 };
8752
8753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
8754 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8755 if (SWIG_arg_fail(1)) SWIG_fail;
8756 {
8757 PyThreadState* __tstate = wxPyBeginAllowThreads();
8758 delete arg1;
8759
8760 wxPyEndAllowThreads(__tstate);
8761 if (PyErr_Occurred()) SWIG_fail;
8762 }
8763 Py_INCREF(Py_None); resultobj = Py_None;
8764 return resultobj;
8765 fail:
8766 return NULL;
8767 }
8768
8769
8770 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
8771 PyObject *resultobj = NULL;
8772 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8773 wxString result;
8774 PyObject * obj0 = 0 ;
8775 char *kwnames[] = {
8776 (char *) "self", NULL
8777 };
8778
8779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
8780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8781 if (SWIG_arg_fail(1)) SWIG_fail;
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 result = (arg1)->GetTip();
8785
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 {
8790 #if wxUSE_UNICODE
8791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8792 #else
8793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8794 #endif
8795 }
8796 return resultobj;
8797 fail:
8798 return NULL;
8799 }
8800
8801
8802 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
8803 PyObject *resultobj = NULL;
8804 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8805 size_t result;
8806 PyObject * obj0 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
8812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8813 if (SWIG_arg_fail(1)) SWIG_fail;
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 result = (size_t)(arg1)->GetCurrentTip();
8817
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 {
8822 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
8823 }
8824 return resultobj;
8825 fail:
8826 return NULL;
8827 }
8828
8829
8830 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
8831 PyObject *resultobj = NULL;
8832 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8833 wxString *arg2 = 0 ;
8834 wxString result;
8835 bool temp2 = false ;
8836 PyObject * obj0 = 0 ;
8837 PyObject * obj1 = 0 ;
8838 char *kwnames[] = {
8839 (char *) "self",(char *) "tip", NULL
8840 };
8841
8842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
8843 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8844 if (SWIG_arg_fail(1)) SWIG_fail;
8845 {
8846 arg2 = wxString_in_helper(obj1);
8847 if (arg2 == NULL) SWIG_fail;
8848 temp2 = true;
8849 }
8850 {
8851 PyThreadState* __tstate = wxPyBeginAllowThreads();
8852 result = (arg1)->PreprocessTip((wxString const &)*arg2);
8853
8854 wxPyEndAllowThreads(__tstate);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 {
8858 #if wxUSE_UNICODE
8859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8860 #else
8861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8862 #endif
8863 }
8864 {
8865 if (temp2)
8866 delete arg2;
8867 }
8868 return resultobj;
8869 fail:
8870 {
8871 if (temp2)
8872 delete arg2;
8873 }
8874 return NULL;
8875 }
8876
8877
8878 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
8879 PyObject *obj;
8880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8881 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
8882 Py_INCREF(obj);
8883 return Py_BuildValue((char *)"");
8884 }
8885 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8886 PyObject *resultobj = NULL;
8887 size_t arg1 ;
8888 wxPyTipProvider *result;
8889 PyObject * obj0 = 0 ;
8890 char *kwnames[] = {
8891 (char *) "currentTip", NULL
8892 };
8893
8894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
8895 {
8896 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
8897 if (SWIG_arg_fail(1)) SWIG_fail;
8898 }
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj = NULL;
8915 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
8916 PyObject *arg2 = (PyObject *) 0 ;
8917 PyObject *arg3 = (PyObject *) 0 ;
8918 PyObject * obj0 = 0 ;
8919 PyObject * obj1 = 0 ;
8920 PyObject * obj2 = 0 ;
8921 char *kwnames[] = {
8922 (char *) "self",(char *) "self",(char *) "_class", NULL
8923 };
8924
8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_EXCEPTION | 0);
8927 if (SWIG_arg_fail(1)) SWIG_fail;
8928 arg2 = obj1;
8929 arg3 = obj2;
8930 {
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 (arg1)->_setCallbackInfo(arg2,arg3);
8933
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 Py_INCREF(Py_None); resultobj = Py_None;
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
8945 PyObject *obj;
8946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8947 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
8948 Py_INCREF(obj);
8949 return Py_BuildValue((char *)"");
8950 }
8951 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
8952 PyObject *resultobj = NULL;
8953 wxWindow *arg1 = (wxWindow *) 0 ;
8954 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
8955 bool arg3 = (bool) true ;
8956 bool result;
8957 PyObject * obj0 = 0 ;
8958 PyObject * obj1 = 0 ;
8959 PyObject * obj2 = 0 ;
8960 char *kwnames[] = {
8961 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
8965 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
8966 if (SWIG_arg_fail(1)) SWIG_fail;
8967 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8968 if (SWIG_arg_fail(2)) SWIG_fail;
8969 if (obj2) {
8970 {
8971 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
8972 if (SWIG_arg_fail(3)) SWIG_fail;
8973 }
8974 }
8975 {
8976 if (!wxPyCheckForApp()) SWIG_fail;
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = (bool)wxShowTip(arg1,arg2,arg3);
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 {
8984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8985 }
8986 return resultobj;
8987 fail:
8988 return NULL;
8989 }
8990
8991
8992 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8993 PyObject *resultobj = NULL;
8994 wxString *arg1 = 0 ;
8995 size_t arg2 ;
8996 wxTipProvider *result;
8997 bool temp1 = false ;
8998 PyObject * obj0 = 0 ;
8999 PyObject * obj1 = 0 ;
9000 char *kwnames[] = {
9001 (char *) "filename",(char *) "currentTip", NULL
9002 };
9003
9004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
9005 {
9006 arg1 = wxString_in_helper(obj0);
9007 if (arg1 == NULL) SWIG_fail;
9008 temp1 = true;
9009 }
9010 {
9011 arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1));
9012 if (SWIG_arg_fail(2)) SWIG_fail;
9013 }
9014 {
9015 if (!wxPyCheckForApp()) SWIG_fail;
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
9018
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
9023 {
9024 if (temp1)
9025 delete arg1;
9026 }
9027 return resultobj;
9028 fail:
9029 {
9030 if (temp1)
9031 delete arg1;
9032 }
9033 return NULL;
9034 }
9035
9036
9037 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
9038 PyObject *resultobj = NULL;
9039 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9040 int arg2 = (int) -1 ;
9041 wxPyTimer *result;
9042 PyObject * obj0 = 0 ;
9043 PyObject * obj1 = 0 ;
9044 char *kwnames[] = {
9045 (char *) "owner",(char *) "id", NULL
9046 };
9047
9048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
9049 if (obj0) {
9050 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
9051 if (SWIG_arg_fail(1)) SWIG_fail;
9052 }
9053 if (obj1) {
9054 {
9055 arg2 = static_cast<int >(SWIG_As_int(obj1));
9056 if (SWIG_arg_fail(2)) SWIG_fail;
9057 }
9058 }
9059 {
9060 if (!wxPyCheckForApp()) SWIG_fail;
9061 PyThreadState* __tstate = wxPyBeginAllowThreads();
9062 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
9063
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
9068 return resultobj;
9069 fail:
9070 return NULL;
9071 }
9072
9073
9074 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
9075 PyObject *resultobj = NULL;
9076 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9077 PyObject * obj0 = 0 ;
9078 char *kwnames[] = {
9079 (char *) "self", NULL
9080 };
9081
9082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
9083 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9084 if (SWIG_arg_fail(1)) SWIG_fail;
9085 {
9086 PyThreadState* __tstate = wxPyBeginAllowThreads();
9087 delete arg1;
9088
9089 wxPyEndAllowThreads(__tstate);
9090 if (PyErr_Occurred()) SWIG_fail;
9091 }
9092 Py_INCREF(Py_None); resultobj = Py_None;
9093 return resultobj;
9094 fail:
9095 return NULL;
9096 }
9097
9098
9099 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj = NULL;
9101 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9102 PyObject *arg2 = (PyObject *) 0 ;
9103 PyObject *arg3 = (PyObject *) 0 ;
9104 int arg4 = (int) 1 ;
9105 PyObject * obj0 = 0 ;
9106 PyObject * obj1 = 0 ;
9107 PyObject * obj2 = 0 ;
9108 PyObject * obj3 = 0 ;
9109 char *kwnames[] = {
9110 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9111 };
9112
9113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9114 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9115 if (SWIG_arg_fail(1)) SWIG_fail;
9116 arg2 = obj1;
9117 arg3 = obj2;
9118 if (obj3) {
9119 {
9120 arg4 = static_cast<int >(SWIG_As_int(obj3));
9121 if (SWIG_arg_fail(4)) SWIG_fail;
9122 }
9123 }
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9127
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 Py_INCREF(Py_None); resultobj = Py_None;
9132 return resultobj;
9133 fail:
9134 return NULL;
9135 }
9136
9137
9138 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
9139 PyObject *resultobj = NULL;
9140 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9141 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
9142 int arg3 = (int) -1 ;
9143 PyObject * obj0 = 0 ;
9144 PyObject * obj1 = 0 ;
9145 PyObject * obj2 = 0 ;
9146 char *kwnames[] = {
9147 (char *) "self",(char *) "owner",(char *) "id", NULL
9148 };
9149
9150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
9151 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9152 if (SWIG_arg_fail(1)) SWIG_fail;
9153 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
9154 if (SWIG_arg_fail(2)) SWIG_fail;
9155 if (obj2) {
9156 {
9157 arg3 = static_cast<int >(SWIG_As_int(obj2));
9158 if (SWIG_arg_fail(3)) SWIG_fail;
9159 }
9160 }
9161 {
9162 PyThreadState* __tstate = wxPyBeginAllowThreads();
9163 (arg1)->SetOwner(arg2,arg3);
9164
9165 wxPyEndAllowThreads(__tstate);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 Py_INCREF(Py_None); resultobj = Py_None;
9169 return resultobj;
9170 fail:
9171 return NULL;
9172 }
9173
9174
9175 static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj = NULL;
9177 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9178 wxEvtHandler *result;
9179 PyObject * obj0 = 0 ;
9180 char *kwnames[] = {
9181 (char *) "self", NULL
9182 };
9183
9184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
9185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9186 if (SWIG_arg_fail(1)) SWIG_fail;
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 result = (wxEvtHandler *)(arg1)->GetOwner();
9190
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 {
9195 resultobj = wxPyMake_wxObject(result, 0);
9196 }
9197 return resultobj;
9198 fail:
9199 return NULL;
9200 }
9201
9202
9203 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
9204 PyObject *resultobj = NULL;
9205 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9206 int arg2 = (int) -1 ;
9207 bool arg3 = (bool) false ;
9208 bool result;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 PyObject * obj2 = 0 ;
9212 char *kwnames[] = {
9213 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
9214 };
9215
9216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
9217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9218 if (SWIG_arg_fail(1)) SWIG_fail;
9219 if (obj1) {
9220 {
9221 arg2 = static_cast<int >(SWIG_As_int(obj1));
9222 if (SWIG_arg_fail(2)) SWIG_fail;
9223 }
9224 }
9225 if (obj2) {
9226 {
9227 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9228 if (SWIG_arg_fail(3)) SWIG_fail;
9229 }
9230 }
9231 {
9232 PyThreadState* __tstate = wxPyBeginAllowThreads();
9233 result = (bool)(arg1)->Start(arg2,arg3);
9234
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 {
9239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9240 }
9241 return resultobj;
9242 fail:
9243 return NULL;
9244 }
9245
9246
9247 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj = NULL;
9249 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9250 PyObject * obj0 = 0 ;
9251 char *kwnames[] = {
9252 (char *) "self", NULL
9253 };
9254
9255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
9256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9257 if (SWIG_arg_fail(1)) SWIG_fail;
9258 {
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 (arg1)->Stop();
9261
9262 wxPyEndAllowThreads(__tstate);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 }
9265 Py_INCREF(Py_None); resultobj = Py_None;
9266 return resultobj;
9267 fail:
9268 return NULL;
9269 }
9270
9271
9272 static PyObject *_wrap_Timer_Notify(PyObject *, PyObject *args, PyObject *kwargs) {
9273 PyObject *resultobj = NULL;
9274 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9275 PyObject * obj0 = 0 ;
9276 char *kwnames[] = {
9277 (char *) "self", NULL
9278 };
9279
9280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Notify",kwnames,&obj0)) goto fail;
9281 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9282 if (SWIG_arg_fail(1)) SWIG_fail;
9283 {
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 (arg1)->Notify();
9286
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 Py_INCREF(Py_None); resultobj = Py_None;
9291 return resultobj;
9292 fail:
9293 return NULL;
9294 }
9295
9296
9297 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
9298 PyObject *resultobj = NULL;
9299 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9300 bool result;
9301 PyObject * obj0 = 0 ;
9302 char *kwnames[] = {
9303 (char *) "self", NULL
9304 };
9305
9306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
9307 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9308 if (SWIG_arg_fail(1)) SWIG_fail;
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 {
9317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9318 }
9319 return resultobj;
9320 fail:
9321 return NULL;
9322 }
9323
9324
9325 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
9326 PyObject *resultobj = NULL;
9327 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9328 int result;
9329 PyObject * obj0 = 0 ;
9330 char *kwnames[] = {
9331 (char *) "self", NULL
9332 };
9333
9334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
9335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9336 if (SWIG_arg_fail(1)) SWIG_fail;
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 result = (int)((wxPyTimer const *)arg1)->GetInterval();
9340
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 {
9345 resultobj = SWIG_From_int(static_cast<int >(result));
9346 }
9347 return resultobj;
9348 fail:
9349 return NULL;
9350 }
9351
9352
9353 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj = NULL;
9355 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9356 bool result;
9357 PyObject * obj0 = 0 ;
9358 char *kwnames[] = {
9359 (char *) "self", NULL
9360 };
9361
9362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
9363 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9364 if (SWIG_arg_fail(1)) SWIG_fail;
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
9368
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 {
9373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9374 }
9375 return resultobj;
9376 fail:
9377 return NULL;
9378 }
9379
9380
9381 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
9382 PyObject *resultobj = NULL;
9383 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9384 int result;
9385 PyObject * obj0 = 0 ;
9386 char *kwnames[] = {
9387 (char *) "self", NULL
9388 };
9389
9390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
9391 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9392 if (SWIG_arg_fail(1)) SWIG_fail;
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 result = (int)((wxPyTimer const *)arg1)->GetId();
9396
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 {
9401 resultobj = SWIG_From_int(static_cast<int >(result));
9402 }
9403 return resultobj;
9404 fail:
9405 return NULL;
9406 }
9407
9408
9409 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
9410 PyObject *obj;
9411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9412 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
9413 Py_INCREF(obj);
9414 return Py_BuildValue((char *)"");
9415 }
9416 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj = NULL;
9418 int arg1 = (int) 0 ;
9419 int arg2 = (int) 0 ;
9420 wxTimerEvent *result;
9421 PyObject * obj0 = 0 ;
9422 PyObject * obj1 = 0 ;
9423 char *kwnames[] = {
9424 (char *) "timerid",(char *) "interval", NULL
9425 };
9426
9427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
9428 if (obj0) {
9429 {
9430 arg1 = static_cast<int >(SWIG_As_int(obj0));
9431 if (SWIG_arg_fail(1)) SWIG_fail;
9432 }
9433 }
9434 if (obj1) {
9435 {
9436 arg2 = static_cast<int >(SWIG_As_int(obj1));
9437 if (SWIG_arg_fail(2)) SWIG_fail;
9438 }
9439 }
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
9448 return resultobj;
9449 fail:
9450 return NULL;
9451 }
9452
9453
9454 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj = NULL;
9456 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
9457 int result;
9458 PyObject * obj0 = 0 ;
9459 char *kwnames[] = {
9460 (char *) "self", NULL
9461 };
9462
9463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
9464 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_EXCEPTION | 0);
9465 if (SWIG_arg_fail(1)) SWIG_fail;
9466 {
9467 PyThreadState* __tstate = wxPyBeginAllowThreads();
9468 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
9469
9470 wxPyEndAllowThreads(__tstate);
9471 if (PyErr_Occurred()) SWIG_fail;
9472 }
9473 {
9474 resultobj = SWIG_From_int(static_cast<int >(result));
9475 }
9476 return resultobj;
9477 fail:
9478 return NULL;
9479 }
9480
9481
9482 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
9483 PyObject *obj;
9484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9485 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
9486 Py_INCREF(obj);
9487 return Py_BuildValue((char *)"");
9488 }
9489 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
9490 PyObject *resultobj = NULL;
9491 wxTimer *arg1 = 0 ;
9492 wxTimerRunner *result;
9493 PyObject * obj0 = 0 ;
9494
9495 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
9496 {
9497 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
9498 if (SWIG_arg_fail(1)) SWIG_fail;
9499 if (arg1 == NULL) {
9500 SWIG_null_ref("wxTimer");
9501 }
9502 if (SWIG_arg_fail(1)) SWIG_fail;
9503 }
9504 {
9505 if (!wxPyCheckForApp()) SWIG_fail;
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
9508
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
9513 return resultobj;
9514 fail:
9515 return NULL;
9516 }
9517
9518
9519 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
9520 PyObject *resultobj = NULL;
9521 wxTimer *arg1 = 0 ;
9522 int arg2 ;
9523 bool arg3 = (bool) false ;
9524 wxTimerRunner *result;
9525 PyObject * obj0 = 0 ;
9526 PyObject * obj1 = 0 ;
9527 PyObject * obj2 = 0 ;
9528
9529 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
9530 {
9531 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
9532 if (SWIG_arg_fail(1)) SWIG_fail;
9533 if (arg1 == NULL) {
9534 SWIG_null_ref("wxTimer");
9535 }
9536 if (SWIG_arg_fail(1)) SWIG_fail;
9537 }
9538 {
9539 arg2 = static_cast<int >(SWIG_As_int(obj1));
9540 if (SWIG_arg_fail(2)) SWIG_fail;
9541 }
9542 if (obj2) {
9543 {
9544 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9545 if (SWIG_arg_fail(3)) SWIG_fail;
9546 }
9547 }
9548 {
9549 if (!wxPyCheckForApp()) SWIG_fail;
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
9564 int argc;
9565 PyObject *argv[4];
9566 int ii;
9567
9568 argc = PyObject_Length(args);
9569 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9570 argv[ii] = PyTuple_GetItem(args,ii);
9571 }
9572 if (argc == 1) {
9573 int _v;
9574 {
9575 void *ptr = 0;
9576 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
9577 _v = 0;
9578 PyErr_Clear();
9579 } else {
9580 _v = (ptr != 0);
9581 }
9582 }
9583 if (_v) {
9584 return _wrap_new_TimerRunner__SWIG_0(self,args);
9585 }
9586 }
9587 if ((argc >= 2) && (argc <= 3)) {
9588 int _v;
9589 {
9590 void *ptr = 0;
9591 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
9592 _v = 0;
9593 PyErr_Clear();
9594 } else {
9595 _v = (ptr != 0);
9596 }
9597 }
9598 if (_v) {
9599 _v = SWIG_Check_int(argv[1]);
9600 if (_v) {
9601 if (argc <= 2) {
9602 return _wrap_new_TimerRunner__SWIG_1(self,args);
9603 }
9604 _v = SWIG_Check_bool(argv[2]);
9605 if (_v) {
9606 return _wrap_new_TimerRunner__SWIG_1(self,args);
9607 }
9608 }
9609 }
9610 }
9611
9612 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'");
9613 return NULL;
9614 }
9615
9616
9617 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
9618 PyObject *resultobj = NULL;
9619 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
9620 PyObject * obj0 = 0 ;
9621 char *kwnames[] = {
9622 (char *) "self", NULL
9623 };
9624
9625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
9626 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0);
9627 if (SWIG_arg_fail(1)) SWIG_fail;
9628 {
9629 PyThreadState* __tstate = wxPyBeginAllowThreads();
9630 delete arg1;
9631
9632 wxPyEndAllowThreads(__tstate);
9633 if (PyErr_Occurred()) SWIG_fail;
9634 }
9635 Py_INCREF(Py_None); resultobj = Py_None;
9636 return resultobj;
9637 fail:
9638 return NULL;
9639 }
9640
9641
9642 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj = NULL;
9644 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
9645 int arg2 ;
9646 bool arg3 = (bool) false ;
9647 PyObject * obj0 = 0 ;
9648 PyObject * obj1 = 0 ;
9649 PyObject * obj2 = 0 ;
9650 char *kwnames[] = {
9651 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
9652 };
9653
9654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
9655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0);
9656 if (SWIG_arg_fail(1)) SWIG_fail;
9657 {
9658 arg2 = static_cast<int >(SWIG_As_int(obj1));
9659 if (SWIG_arg_fail(2)) SWIG_fail;
9660 }
9661 if (obj2) {
9662 {
9663 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9664 if (SWIG_arg_fail(3)) SWIG_fail;
9665 }
9666 }
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 (arg1)->Start(arg2,arg3);
9670
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 Py_INCREF(Py_None); resultobj = Py_None;
9675 return resultobj;
9676 fail:
9677 return NULL;
9678 }
9679
9680
9681 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
9682 PyObject *obj;
9683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9684 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
9685 Py_INCREF(obj);
9686 return Py_BuildValue((char *)"");
9687 }
9688 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj = NULL;
9690 wxLog *result;
9691 char *kwnames[] = {
9692 NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (wxLog *)new wxLog();
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
9704 return resultobj;
9705 fail:
9706 return NULL;
9707 }
9708
9709
9710 static PyObject *_wrap_delete_Log(PyObject *, PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj = NULL;
9712 wxLog *arg1 = (wxLog *) 0 ;
9713 PyObject * obj0 = 0 ;
9714 char *kwnames[] = {
9715 (char *) "self", NULL
9716 };
9717
9718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Log",kwnames,&obj0)) goto fail;
9719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
9720 if (SWIG_arg_fail(1)) SWIG_fail;
9721 {
9722 PyThreadState* __tstate = wxPyBeginAllowThreads();
9723 delete arg1;
9724
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 Py_INCREF(Py_None); resultobj = Py_None;
9729 return resultobj;
9730 fail:
9731 return NULL;
9732 }
9733
9734
9735 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = NULL;
9737 bool result;
9738 char *kwnames[] = {
9739 NULL
9740 };
9741
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
9743 {
9744 PyThreadState* __tstate = wxPyBeginAllowThreads();
9745 result = (bool)wxLog::IsEnabled();
9746
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 {
9751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9752 }
9753 return resultobj;
9754 fail:
9755 return NULL;
9756 }
9757
9758
9759 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj = NULL;
9761 bool arg1 = (bool) true ;
9762 bool result;
9763 PyObject * obj0 = 0 ;
9764 char *kwnames[] = {
9765 (char *) "doIt", NULL
9766 };
9767
9768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
9769 if (obj0) {
9770 {
9771 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
9772 if (SWIG_arg_fail(1)) SWIG_fail;
9773 }
9774 }
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 result = (bool)wxLog::EnableLogging(arg1);
9778
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 {
9783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9784 }
9785 return resultobj;
9786 fail:
9787 return NULL;
9788 }
9789
9790
9791 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
9792 PyObject *resultobj = NULL;
9793 wxLogLevel arg1 ;
9794 wxChar *arg2 = (wxChar *) 0 ;
9795 time_t arg3 ;
9796 PyObject * obj0 = 0 ;
9797 PyObject * obj1 = 0 ;
9798 PyObject * obj2 = 0 ;
9799 char *kwnames[] = {
9800 (char *) "level",(char *) "szString",(char *) "t", NULL
9801 };
9802
9803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
9804 {
9805 arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0));
9806 if (SWIG_arg_fail(1)) SWIG_fail;
9807 }
9808 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
9809 if (SWIG_arg_fail(2)) SWIG_fail;
9810 {
9811 arg3 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj2));
9812 if (SWIG_arg_fail(3)) SWIG_fail;
9813 }
9814 {
9815 PyThreadState* __tstate = wxPyBeginAllowThreads();
9816 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
9817
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 Py_INCREF(Py_None); resultobj = Py_None;
9822 return resultobj;
9823 fail:
9824 return NULL;
9825 }
9826
9827
9828 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj = NULL;
9830 wxLog *arg1 = (wxLog *) 0 ;
9831 PyObject * obj0 = 0 ;
9832 char *kwnames[] = {
9833 (char *) "self", NULL
9834 };
9835
9836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
9837 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
9838 if (SWIG_arg_fail(1)) SWIG_fail;
9839 {
9840 PyThreadState* __tstate = wxPyBeginAllowThreads();
9841 (arg1)->Flush();
9842
9843 wxPyEndAllowThreads(__tstate);
9844 if (PyErr_Occurred()) SWIG_fail;
9845 }
9846 Py_INCREF(Py_None); resultobj = Py_None;
9847 return resultobj;
9848 fail:
9849 return NULL;
9850 }
9851
9852
9853 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
9854 PyObject *resultobj = NULL;
9855 char *kwnames[] = {
9856 NULL
9857 };
9858
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 wxLog::FlushActive();
9863
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 Py_INCREF(Py_None); resultobj = Py_None;
9868 return resultobj;
9869 fail:
9870 return NULL;
9871 }
9872
9873
9874 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj = NULL;
9876 wxLog *result;
9877 char *kwnames[] = {
9878 NULL
9879 };
9880
9881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
9882 {
9883 PyThreadState* __tstate = wxPyBeginAllowThreads();
9884 result = (wxLog *)wxLog::GetActiveTarget();
9885
9886 wxPyEndAllowThreads(__tstate);
9887 if (PyErr_Occurred()) SWIG_fail;
9888 }
9889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
9890 return resultobj;
9891 fail:
9892 return NULL;
9893 }
9894
9895
9896 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
9897 PyObject *resultobj = NULL;
9898 wxLog *arg1 = (wxLog *) 0 ;
9899 wxLog *result;
9900 PyObject * obj0 = 0 ;
9901 char *kwnames[] = {
9902 (char *) "pLogger", NULL
9903 };
9904
9905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
9906 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
9907 if (SWIG_arg_fail(1)) SWIG_fail;
9908 {
9909 PyThreadState* __tstate = wxPyBeginAllowThreads();
9910 result = (wxLog *)wxLog::SetActiveTarget(arg1);
9911
9912 wxPyEndAllowThreads(__tstate);
9913 if (PyErr_Occurred()) SWIG_fail;
9914 }
9915 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
9916 return resultobj;
9917 fail:
9918 return NULL;
9919 }
9920
9921
9922 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
9923 PyObject *resultobj = NULL;
9924 char *kwnames[] = {
9925 NULL
9926 };
9927
9928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 wxLog::Suspend();
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 Py_INCREF(Py_None); resultobj = Py_None;
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
9944 PyObject *resultobj = NULL;
9945 char *kwnames[] = {
9946 NULL
9947 };
9948
9949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 wxLog::Resume();
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 Py_INCREF(Py_None); resultobj = Py_None;
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj = NULL;
9966 bool arg1 = (bool) true ;
9967 PyObject * obj0 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "bVerbose", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
9973 if (obj0) {
9974 {
9975 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
9976 if (SWIG_arg_fail(1)) SWIG_fail;
9977 }
9978 }
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 wxLog::SetVerbose(arg1);
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 Py_INCREF(Py_None); resultobj = Py_None;
9987 return resultobj;
9988 fail:
9989 return NULL;
9990 }
9991
9992
9993 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
9994 PyObject *resultobj = NULL;
9995 wxLogLevel arg1 ;
9996 PyObject * obj0 = 0 ;
9997 char *kwnames[] = {
9998 (char *) "logLevel", NULL
9999 };
10000
10001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
10002 {
10003 arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0));
10004 if (SWIG_arg_fail(1)) SWIG_fail;
10005 }
10006 {
10007 PyThreadState* __tstate = wxPyBeginAllowThreads();
10008 wxLog::SetLogLevel(arg1);
10009
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 Py_INCREF(Py_None); resultobj = Py_None;
10014 return resultobj;
10015 fail:
10016 return NULL;
10017 }
10018
10019
10020 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
10021 PyObject *resultobj = NULL;
10022 char *kwnames[] = {
10023 NULL
10024 };
10025
10026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
10027 {
10028 PyThreadState* __tstate = wxPyBeginAllowThreads();
10029 wxLog::DontCreateOnDemand();
10030
10031 wxPyEndAllowThreads(__tstate);
10032 if (PyErr_Occurred()) SWIG_fail;
10033 }
10034 Py_INCREF(Py_None); resultobj = Py_None;
10035 return resultobj;
10036 fail:
10037 return NULL;
10038 }
10039
10040
10041 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10042 PyObject *resultobj = NULL;
10043 wxTraceMask arg1 ;
10044 PyObject * obj0 = 0 ;
10045 char *kwnames[] = {
10046 (char *) "ulMask", NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
10050 {
10051 arg1 = static_cast<wxTraceMask >(SWIG_As_unsigned_SS_long(obj0));
10052 if (SWIG_arg_fail(1)) SWIG_fail;
10053 }
10054 {
10055 PyThreadState* __tstate = wxPyBeginAllowThreads();
10056 wxLog::SetTraceMask(arg1);
10057
10058 wxPyEndAllowThreads(__tstate);
10059 if (PyErr_Occurred()) SWIG_fail;
10060 }
10061 Py_INCREF(Py_None); resultobj = Py_None;
10062 return resultobj;
10063 fail:
10064 return NULL;
10065 }
10066
10067
10068 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10069 PyObject *resultobj = NULL;
10070 wxString *arg1 = 0 ;
10071 bool temp1 = false ;
10072 PyObject * obj0 = 0 ;
10073 char *kwnames[] = {
10074 (char *) "str", NULL
10075 };
10076
10077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
10078 {
10079 arg1 = wxString_in_helper(obj0);
10080 if (arg1 == NULL) SWIG_fail;
10081 temp1 = true;
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 wxLog::AddTraceMask((wxString const &)*arg1);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 Py_INCREF(Py_None); resultobj = Py_None;
10091 {
10092 if (temp1)
10093 delete arg1;
10094 }
10095 return resultobj;
10096 fail:
10097 {
10098 if (temp1)
10099 delete arg1;
10100 }
10101 return NULL;
10102 }
10103
10104
10105 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj = NULL;
10107 wxString *arg1 = 0 ;
10108 bool temp1 = false ;
10109 PyObject * obj0 = 0 ;
10110 char *kwnames[] = {
10111 (char *) "str", NULL
10112 };
10113
10114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
10115 {
10116 arg1 = wxString_in_helper(obj0);
10117 if (arg1 == NULL) SWIG_fail;
10118 temp1 = true;
10119 }
10120 {
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 wxLog::RemoveTraceMask((wxString const &)*arg1);
10123
10124 wxPyEndAllowThreads(__tstate);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 }
10127 Py_INCREF(Py_None); resultobj = Py_None;
10128 {
10129 if (temp1)
10130 delete arg1;
10131 }
10132 return resultobj;
10133 fail:
10134 {
10135 if (temp1)
10136 delete arg1;
10137 }
10138 return NULL;
10139 }
10140
10141
10142 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj = NULL;
10144 char *kwnames[] = {
10145 NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
10151 wxLog::ClearTraceMasks();
10152
10153 wxPyEndAllowThreads(__tstate);
10154 if (PyErr_Occurred()) SWIG_fail;
10155 }
10156 Py_INCREF(Py_None); resultobj = Py_None;
10157 return resultobj;
10158 fail:
10159 return NULL;
10160 }
10161
10162
10163 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
10164 PyObject *resultobj = NULL;
10165 wxArrayString *result;
10166 char *kwnames[] = {
10167 NULL
10168 };
10169
10170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
10171 {
10172 PyThreadState* __tstate = wxPyBeginAllowThreads();
10173 {
10174 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
10175 result = (wxArrayString *) &_result_ref;
10176 }
10177
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 {
10182 resultobj = wxArrayString2PyList_helper(*result);
10183 }
10184 return resultobj;
10185 fail:
10186 return NULL;
10187 }
10188
10189
10190 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
10191 PyObject *resultobj = NULL;
10192 wxChar *arg1 = (wxChar *) 0 ;
10193 PyObject * obj0 = 0 ;
10194 char *kwnames[] = {
10195 (char *) "ts", NULL
10196 };
10197
10198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
10199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
10200 if (SWIG_arg_fail(1)) SWIG_fail;
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 wxLog::SetTimestamp((wxChar const *)arg1);
10204
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 Py_INCREF(Py_None); resultobj = Py_None;
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj = NULL;
10217 bool result;
10218 char *kwnames[] = {
10219 NULL
10220 };
10221
10222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 result = (bool)wxLog::GetVerbose();
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 {
10231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10232 }
10233 return resultobj;
10234 fail:
10235 return NULL;
10236 }
10237
10238
10239 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10240 PyObject *resultobj = NULL;
10241 wxTraceMask result;
10242 char *kwnames[] = {
10243 NULL
10244 };
10245
10246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (wxTraceMask)wxLog::GetTraceMask();
10250
10251 wxPyEndAllowThreads(__tstate);
10252 if (PyErr_Occurred()) SWIG_fail;
10253 }
10254 {
10255 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10256 }
10257 return resultobj;
10258 fail:
10259 return NULL;
10260 }
10261
10262
10263 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10264 PyObject *resultobj = NULL;
10265 wxChar *arg1 = (wxChar *) 0 ;
10266 bool result;
10267 PyObject * obj0 = 0 ;
10268 char *kwnames[] = {
10269 (char *) "mask", NULL
10270 };
10271
10272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
10273 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
10274 if (SWIG_arg_fail(1)) SWIG_fail;
10275 {
10276 PyThreadState* __tstate = wxPyBeginAllowThreads();
10277 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
10278
10279 wxPyEndAllowThreads(__tstate);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 {
10283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10284 }
10285 return resultobj;
10286 fail:
10287 return NULL;
10288 }
10289
10290
10291 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
10292 PyObject *resultobj = NULL;
10293 wxLogLevel result;
10294 char *kwnames[] = {
10295 NULL
10296 };
10297
10298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
10299 {
10300 PyThreadState* __tstate = wxPyBeginAllowThreads();
10301 result = (wxLogLevel)wxLog::GetLogLevel();
10302
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 {
10307 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10308 }
10309 return resultobj;
10310 fail:
10311 return NULL;
10312 }
10313
10314
10315 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
10316 PyObject *resultobj = NULL;
10317 wxChar *result;
10318 char *kwnames[] = {
10319 NULL
10320 };
10321
10322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
10323 {
10324 PyThreadState* __tstate = wxPyBeginAllowThreads();
10325 result = (wxChar *)wxLog::GetTimestamp();
10326
10327 wxPyEndAllowThreads(__tstate);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
10331 return resultobj;
10332 fail:
10333 return NULL;
10334 }
10335
10336
10337 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
10338 PyObject *resultobj = NULL;
10339 wxString result;
10340 char *kwnames[] = {
10341 NULL
10342 };
10343
10344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 result = wxLog_TimeStamp();
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 {
10353 #if wxUSE_UNICODE
10354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10355 #else
10356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10357 #endif
10358 }
10359 return resultobj;
10360 fail:
10361 return NULL;
10362 }
10363
10364
10365 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
10366 PyObject *resultobj = NULL;
10367 wxLog *arg1 = (wxLog *) 0 ;
10368 PyObject * obj0 = 0 ;
10369 char *kwnames[] = {
10370 (char *) "self", NULL
10371 };
10372
10373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
10374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10375 if (SWIG_arg_fail(1)) SWIG_fail;
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 wxLog_Destroy(arg1);
10379
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 Py_INCREF(Py_None); resultobj = Py_None;
10384 return resultobj;
10385 fail:
10386 return NULL;
10387 }
10388
10389
10390 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
10391 PyObject *obj;
10392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10393 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
10394 Py_INCREF(obj);
10395 return Py_BuildValue((char *)"");
10396 }
10397 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
10398 PyObject *resultobj = NULL;
10399 wxLogStderr *result;
10400 char *kwnames[] = {
10401 NULL
10402 };
10403
10404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
10405 {
10406 PyThreadState* __tstate = wxPyBeginAllowThreads();
10407 result = (wxLogStderr *)new wxLogStderr();
10408
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
10413 return resultobj;
10414 fail:
10415 return NULL;
10416 }
10417
10418
10419 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
10420 PyObject *obj;
10421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10422 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
10423 Py_INCREF(obj);
10424 return Py_BuildValue((char *)"");
10425 }
10426 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
10427 PyObject *resultobj = NULL;
10428 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10429 wxLogTextCtrl *result;
10430 PyObject * obj0 = 0 ;
10431 char *kwnames[] = {
10432 (char *) "pTextCtrl", NULL
10433 };
10434
10435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
10436 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0);
10437 if (SWIG_arg_fail(1)) SWIG_fail;
10438 {
10439 PyThreadState* __tstate = wxPyBeginAllowThreads();
10440 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
10441
10442 wxPyEndAllowThreads(__tstate);
10443 if (PyErr_Occurred()) SWIG_fail;
10444 }
10445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
10446 return resultobj;
10447 fail:
10448 return NULL;
10449 }
10450
10451
10452 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
10453 PyObject *obj;
10454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10455 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
10456 Py_INCREF(obj);
10457 return Py_BuildValue((char *)"");
10458 }
10459 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
10460 PyObject *resultobj = NULL;
10461 wxLogGui *result;
10462 char *kwnames[] = {
10463 NULL
10464 };
10465
10466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 result = (wxLogGui *)new wxLogGui();
10470
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
10475 return resultobj;
10476 fail:
10477 return NULL;
10478 }
10479
10480
10481 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
10482 PyObject *obj;
10483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10484 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
10485 Py_INCREF(obj);
10486 return Py_BuildValue((char *)"");
10487 }
10488 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
10489 PyObject *resultobj = NULL;
10490 wxFrame *arg1 = (wxFrame *) 0 ;
10491 wxString *arg2 = 0 ;
10492 bool arg3 = (bool) true ;
10493 bool arg4 = (bool) true ;
10494 wxLogWindow *result;
10495 bool temp2 = false ;
10496 PyObject * obj0 = 0 ;
10497 PyObject * obj1 = 0 ;
10498 PyObject * obj2 = 0 ;
10499 PyObject * obj3 = 0 ;
10500 char *kwnames[] = {
10501 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
10502 };
10503
10504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10505 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
10506 if (SWIG_arg_fail(1)) SWIG_fail;
10507 {
10508 arg2 = wxString_in_helper(obj1);
10509 if (arg2 == NULL) SWIG_fail;
10510 temp2 = true;
10511 }
10512 if (obj2) {
10513 {
10514 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
10515 if (SWIG_arg_fail(3)) SWIG_fail;
10516 }
10517 }
10518 if (obj3) {
10519 {
10520 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
10521 if (SWIG_arg_fail(4)) SWIG_fail;
10522 }
10523 }
10524 {
10525 PyThreadState* __tstate = wxPyBeginAllowThreads();
10526 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
10527
10528 wxPyEndAllowThreads(__tstate);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 }
10531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
10532 {
10533 if (temp2)
10534 delete arg2;
10535 }
10536 return resultobj;
10537 fail:
10538 {
10539 if (temp2)
10540 delete arg2;
10541 }
10542 return NULL;
10543 }
10544
10545
10546 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj = NULL;
10548 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10549 bool arg2 = (bool) true ;
10550 PyObject * obj0 = 0 ;
10551 PyObject * obj1 = 0 ;
10552 char *kwnames[] = {
10553 (char *) "self",(char *) "bShow", NULL
10554 };
10555
10556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
10557 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10558 if (SWIG_arg_fail(1)) SWIG_fail;
10559 if (obj1) {
10560 {
10561 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10562 if (SWIG_arg_fail(2)) SWIG_fail;
10563 }
10564 }
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 (arg1)->Show(arg2);
10568
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 Py_INCREF(Py_None); resultobj = Py_None;
10573 return resultobj;
10574 fail:
10575 return NULL;
10576 }
10577
10578
10579 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = NULL;
10581 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10582 wxFrame *result;
10583 PyObject * obj0 = 0 ;
10584 char *kwnames[] = {
10585 (char *) "self", NULL
10586 };
10587
10588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
10589 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10590 if (SWIG_arg_fail(1)) SWIG_fail;
10591 {
10592 PyThreadState* __tstate = wxPyBeginAllowThreads();
10593 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
10594
10595 wxPyEndAllowThreads(__tstate);
10596 if (PyErr_Occurred()) SWIG_fail;
10597 }
10598 {
10599 resultobj = wxPyMake_wxObject(result, (bool)0);
10600 }
10601 return resultobj;
10602 fail:
10603 return NULL;
10604 }
10605
10606
10607 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
10608 PyObject *resultobj = NULL;
10609 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10610 wxLog *result;
10611 PyObject * obj0 = 0 ;
10612 char *kwnames[] = {
10613 (char *) "self", NULL
10614 };
10615
10616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
10617 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10618 if (SWIG_arg_fail(1)) SWIG_fail;
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
10622
10623 wxPyEndAllowThreads(__tstate);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
10627 return resultobj;
10628 fail:
10629 return NULL;
10630 }
10631
10632
10633 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj = NULL;
10635 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10636 bool result;
10637 PyObject * obj0 = 0 ;
10638 char *kwnames[] = {
10639 (char *) "self", NULL
10640 };
10641
10642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
10643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10644 if (SWIG_arg_fail(1)) SWIG_fail;
10645 {
10646 PyThreadState* __tstate = wxPyBeginAllowThreads();
10647 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
10648
10649 wxPyEndAllowThreads(__tstate);
10650 if (PyErr_Occurred()) SWIG_fail;
10651 }
10652 {
10653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10654 }
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj = NULL;
10663 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10664 bool arg2 ;
10665 PyObject * obj0 = 0 ;
10666 PyObject * obj1 = 0 ;
10667 char *kwnames[] = {
10668 (char *) "self",(char *) "bDoPass", NULL
10669 };
10670
10671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
10672 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10673 if (SWIG_arg_fail(1)) SWIG_fail;
10674 {
10675 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10676 if (SWIG_arg_fail(2)) SWIG_fail;
10677 }
10678 {
10679 PyThreadState* __tstate = wxPyBeginAllowThreads();
10680 (arg1)->PassMessages(arg2);
10681
10682 wxPyEndAllowThreads(__tstate);
10683 if (PyErr_Occurred()) SWIG_fail;
10684 }
10685 Py_INCREF(Py_None); resultobj = Py_None;
10686 return resultobj;
10687 fail:
10688 return NULL;
10689 }
10690
10691
10692 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
10693 PyObject *obj;
10694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10695 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
10696 Py_INCREF(obj);
10697 return Py_BuildValue((char *)"");
10698 }
10699 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
10700 PyObject *resultobj = NULL;
10701 wxLog *arg1 = (wxLog *) 0 ;
10702 wxLogChain *result;
10703 PyObject * obj0 = 0 ;
10704 char *kwnames[] = {
10705 (char *) "logger", NULL
10706 };
10707
10708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
10709 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10710 if (SWIG_arg_fail(1)) SWIG_fail;
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 result = (wxLogChain *)new wxLogChain(arg1);
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj = NULL;
10727 wxLogChain *arg1 = (wxLogChain *) 0 ;
10728 wxLog *arg2 = (wxLog *) 0 ;
10729 PyObject * obj0 = 0 ;
10730 PyObject * obj1 = 0 ;
10731 char *kwnames[] = {
10732 (char *) "self",(char *) "logger", NULL
10733 };
10734
10735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
10736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10737 if (SWIG_arg_fail(1)) SWIG_fail;
10738 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10739 if (SWIG_arg_fail(2)) SWIG_fail;
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 (arg1)->SetLog(arg2);
10743
10744 wxPyEndAllowThreads(__tstate);
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 Py_INCREF(Py_None); resultobj = Py_None;
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10755 PyObject *resultobj = NULL;
10756 wxLogChain *arg1 = (wxLogChain *) 0 ;
10757 bool arg2 ;
10758 PyObject * obj0 = 0 ;
10759 PyObject * obj1 = 0 ;
10760 char *kwnames[] = {
10761 (char *) "self",(char *) "bDoPass", NULL
10762 };
10763
10764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
10765 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10766 if (SWIG_arg_fail(1)) SWIG_fail;
10767 {
10768 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10769 if (SWIG_arg_fail(2)) SWIG_fail;
10770 }
10771 {
10772 PyThreadState* __tstate = wxPyBeginAllowThreads();
10773 (arg1)->PassMessages(arg2);
10774
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 Py_INCREF(Py_None); resultobj = Py_None;
10779 return resultobj;
10780 fail:
10781 return NULL;
10782 }
10783
10784
10785 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj = NULL;
10787 wxLogChain *arg1 = (wxLogChain *) 0 ;
10788 bool result;
10789 PyObject * obj0 = 0 ;
10790 char *kwnames[] = {
10791 (char *) "self", NULL
10792 };
10793
10794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
10795 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10796 if (SWIG_arg_fail(1)) SWIG_fail;
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 result = (bool)(arg1)->IsPassingMessages();
10800
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 {
10805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10806 }
10807 return resultobj;
10808 fail:
10809 return NULL;
10810 }
10811
10812
10813 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj = NULL;
10815 wxLogChain *arg1 = (wxLogChain *) 0 ;
10816 wxLog *result;
10817 PyObject * obj0 = 0 ;
10818 char *kwnames[] = {
10819 (char *) "self", NULL
10820 };
10821
10822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
10823 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10824 if (SWIG_arg_fail(1)) SWIG_fail;
10825 {
10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
10827 result = (wxLog *)(arg1)->GetOldLog();
10828
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
10832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
10833 return resultobj;
10834 fail:
10835 return NULL;
10836 }
10837
10838
10839 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
10840 PyObject *obj;
10841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10842 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
10843 Py_INCREF(obj);
10844 return Py_BuildValue((char *)"");
10845 }
10846 static PyObject *_wrap_new_LogBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj = NULL;
10848 wxLogBuffer *result;
10849 char *kwnames[] = {
10850 NULL
10851 };
10852
10853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogBuffer",kwnames)) goto fail;
10854 {
10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
10856 result = (wxLogBuffer *)new wxLogBuffer();
10857
10858 wxPyEndAllowThreads(__tstate);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 }
10861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogBuffer, 1);
10862 return resultobj;
10863 fail:
10864 return NULL;
10865 }
10866
10867
10868 static PyObject *_wrap_LogBuffer_GetBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj = NULL;
10870 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
10871 wxString *result;
10872 PyObject * obj0 = 0 ;
10873 char *kwnames[] = {
10874 (char *) "self", NULL
10875 };
10876
10877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_GetBuffer",kwnames,&obj0)) goto fail;
10878 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0);
10879 if (SWIG_arg_fail(1)) SWIG_fail;
10880 {
10881 PyThreadState* __tstate = wxPyBeginAllowThreads();
10882 {
10883 wxString const &_result_ref = ((wxLogBuffer const *)arg1)->GetBuffer();
10884 result = (wxString *) &_result_ref;
10885 }
10886
10887 wxPyEndAllowThreads(__tstate);
10888 if (PyErr_Occurred()) SWIG_fail;
10889 }
10890 {
10891 #if wxUSE_UNICODE
10892 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10893 #else
10894 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10895 #endif
10896 }
10897 return resultobj;
10898 fail:
10899 return NULL;
10900 }
10901
10902
10903 static PyObject *_wrap_LogBuffer_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
10904 PyObject *resultobj = NULL;
10905 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
10906 PyObject * obj0 = 0 ;
10907 char *kwnames[] = {
10908 (char *) "self", NULL
10909 };
10910
10911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_Flush",kwnames,&obj0)) goto fail;
10912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0);
10913 if (SWIG_arg_fail(1)) SWIG_fail;
10914 {
10915 PyThreadState* __tstate = wxPyBeginAllowThreads();
10916 (arg1)->Flush();
10917
10918 wxPyEndAllowThreads(__tstate);
10919 if (PyErr_Occurred()) SWIG_fail;
10920 }
10921 Py_INCREF(Py_None); resultobj = Py_None;
10922 return resultobj;
10923 fail:
10924 return NULL;
10925 }
10926
10927
10928 static PyObject * LogBuffer_swigregister(PyObject *, PyObject *args) {
10929 PyObject *obj;
10930 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10931 SWIG_TypeClientData(SWIGTYPE_p_wxLogBuffer, obj);
10932 Py_INCREF(obj);
10933 return Py_BuildValue((char *)"");
10934 }
10935 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
10936 PyObject *resultobj = NULL;
10937 unsigned long result;
10938 char *kwnames[] = {
10939 NULL
10940 };
10941
10942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
10943 {
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (unsigned long)wxSysErrorCode();
10946
10947 wxPyEndAllowThreads(__tstate);
10948 if (PyErr_Occurred()) SWIG_fail;
10949 }
10950 {
10951 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10952 }
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj = NULL;
10961 unsigned long arg1 = (unsigned long) 0 ;
10962 wxString result;
10963 PyObject * obj0 = 0 ;
10964 char *kwnames[] = {
10965 (char *) "nErrCode", NULL
10966 };
10967
10968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
10969 if (obj0) {
10970 {
10971 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
10972 if (SWIG_arg_fail(1)) SWIG_fail;
10973 }
10974 }
10975 {
10976 PyThreadState* __tstate = wxPyBeginAllowThreads();
10977 result = wxSysErrorMsg(arg1);
10978
10979 wxPyEndAllowThreads(__tstate);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 }
10982 {
10983 #if wxUSE_UNICODE
10984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10985 #else
10986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10987 #endif
10988 }
10989 return resultobj;
10990 fail:
10991 return NULL;
10992 }
10993
10994
10995 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
10996 PyObject *resultobj = NULL;
10997 wxString *arg1 = 0 ;
10998 bool temp1 = false ;
10999 PyObject * obj0 = 0 ;
11000 char *kwnames[] = {
11001 (char *) "msg", NULL
11002 };
11003
11004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
11005 {
11006 arg1 = wxString_in_helper(obj0);
11007 if (arg1 == NULL) SWIG_fail;
11008 temp1 = true;
11009 }
11010 {
11011 PyThreadState* __tstate = wxPyBeginAllowThreads();
11012 wxPyLogFatalError((wxString const &)*arg1);
11013
11014 wxPyEndAllowThreads(__tstate);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 Py_INCREF(Py_None); resultobj = Py_None;
11018 {
11019 if (temp1)
11020 delete arg1;
11021 }
11022 return resultobj;
11023 fail:
11024 {
11025 if (temp1)
11026 delete arg1;
11027 }
11028 return NULL;
11029 }
11030
11031
11032 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj = NULL;
11034 wxString *arg1 = 0 ;
11035 bool temp1 = false ;
11036 PyObject * obj0 = 0 ;
11037 char *kwnames[] = {
11038 (char *) "msg", NULL
11039 };
11040
11041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
11042 {
11043 arg1 = wxString_in_helper(obj0);
11044 if (arg1 == NULL) SWIG_fail;
11045 temp1 = true;
11046 }
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 wxPyLogError((wxString const &)*arg1);
11050
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 Py_INCREF(Py_None); resultobj = Py_None;
11055 {
11056 if (temp1)
11057 delete arg1;
11058 }
11059 return resultobj;
11060 fail:
11061 {
11062 if (temp1)
11063 delete arg1;
11064 }
11065 return NULL;
11066 }
11067
11068
11069 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
11070 PyObject *resultobj = NULL;
11071 wxString *arg1 = 0 ;
11072 bool temp1 = false ;
11073 PyObject * obj0 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "msg", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
11079 {
11080 arg1 = wxString_in_helper(obj0);
11081 if (arg1 == NULL) SWIG_fail;
11082 temp1 = true;
11083 }
11084 {
11085 PyThreadState* __tstate = wxPyBeginAllowThreads();
11086 wxPyLogWarning((wxString const &)*arg1);
11087
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 Py_INCREF(Py_None); resultobj = Py_None;
11092 {
11093 if (temp1)
11094 delete arg1;
11095 }
11096 return resultobj;
11097 fail:
11098 {
11099 if (temp1)
11100 delete arg1;
11101 }
11102 return NULL;
11103 }
11104
11105
11106 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj = NULL;
11108 wxString *arg1 = 0 ;
11109 bool temp1 = false ;
11110 PyObject * obj0 = 0 ;
11111 char *kwnames[] = {
11112 (char *) "msg", NULL
11113 };
11114
11115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
11116 {
11117 arg1 = wxString_in_helper(obj0);
11118 if (arg1 == NULL) SWIG_fail;
11119 temp1 = true;
11120 }
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 wxPyLogMessage((wxString const &)*arg1);
11124
11125 wxPyEndAllowThreads(__tstate);
11126 if (PyErr_Occurred()) SWIG_fail;
11127 }
11128 Py_INCREF(Py_None); resultobj = Py_None;
11129 {
11130 if (temp1)
11131 delete arg1;
11132 }
11133 return resultobj;
11134 fail:
11135 {
11136 if (temp1)
11137 delete arg1;
11138 }
11139 return NULL;
11140 }
11141
11142
11143 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = NULL;
11145 wxString *arg1 = 0 ;
11146 bool temp1 = false ;
11147 PyObject * obj0 = 0 ;
11148 char *kwnames[] = {
11149 (char *) "msg", NULL
11150 };
11151
11152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
11153 {
11154 arg1 = wxString_in_helper(obj0);
11155 if (arg1 == NULL) SWIG_fail;
11156 temp1 = true;
11157 }
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 wxPyLogInfo((wxString const &)*arg1);
11161
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 Py_INCREF(Py_None); resultobj = Py_None;
11166 {
11167 if (temp1)
11168 delete arg1;
11169 }
11170 return resultobj;
11171 fail:
11172 {
11173 if (temp1)
11174 delete arg1;
11175 }
11176 return NULL;
11177 }
11178
11179
11180 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
11181 PyObject *resultobj = NULL;
11182 wxString *arg1 = 0 ;
11183 bool temp1 = false ;
11184 PyObject * obj0 = 0 ;
11185 char *kwnames[] = {
11186 (char *) "msg", NULL
11187 };
11188
11189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
11190 {
11191 arg1 = wxString_in_helper(obj0);
11192 if (arg1 == NULL) SWIG_fail;
11193 temp1 = true;
11194 }
11195 {
11196 PyThreadState* __tstate = wxPyBeginAllowThreads();
11197 wxPyLogDebug((wxString const &)*arg1);
11198
11199 wxPyEndAllowThreads(__tstate);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 }
11202 Py_INCREF(Py_None); resultobj = Py_None;
11203 {
11204 if (temp1)
11205 delete arg1;
11206 }
11207 return resultobj;
11208 fail:
11209 {
11210 if (temp1)
11211 delete arg1;
11212 }
11213 return NULL;
11214 }
11215
11216
11217 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
11218 PyObject *resultobj = NULL;
11219 wxString *arg1 = 0 ;
11220 bool temp1 = false ;
11221 PyObject * obj0 = 0 ;
11222 char *kwnames[] = {
11223 (char *) "msg", NULL
11224 };
11225
11226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
11227 {
11228 arg1 = wxString_in_helper(obj0);
11229 if (arg1 == NULL) SWIG_fail;
11230 temp1 = true;
11231 }
11232 {
11233 PyThreadState* __tstate = wxPyBeginAllowThreads();
11234 wxPyLogVerbose((wxString const &)*arg1);
11235
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 Py_INCREF(Py_None); resultobj = Py_None;
11240 {
11241 if (temp1)
11242 delete arg1;
11243 }
11244 return resultobj;
11245 fail:
11246 {
11247 if (temp1)
11248 delete arg1;
11249 }
11250 return NULL;
11251 }
11252
11253
11254 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
11255 PyObject *resultobj = NULL;
11256 wxString *arg1 = 0 ;
11257 bool temp1 = false ;
11258 PyObject * obj0 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "msg", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
11264 {
11265 arg1 = wxString_in_helper(obj0);
11266 if (arg1 == NULL) SWIG_fail;
11267 temp1 = true;
11268 }
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 wxPyLogStatus((wxString const &)*arg1);
11272
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 Py_INCREF(Py_None); resultobj = Py_None;
11277 {
11278 if (temp1)
11279 delete arg1;
11280 }
11281 return resultobj;
11282 fail:
11283 {
11284 if (temp1)
11285 delete arg1;
11286 }
11287 return NULL;
11288 }
11289
11290
11291 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
11292 PyObject *resultobj = NULL;
11293 wxFrame *arg1 = (wxFrame *) 0 ;
11294 wxString *arg2 = 0 ;
11295 bool temp2 = false ;
11296 PyObject * obj0 = 0 ;
11297 PyObject * obj1 = 0 ;
11298 char *kwnames[] = {
11299 (char *) "pFrame",(char *) "msg", NULL
11300 };
11301
11302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
11303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
11304 if (SWIG_arg_fail(1)) SWIG_fail;
11305 {
11306 arg2 = wxString_in_helper(obj1);
11307 if (arg2 == NULL) SWIG_fail;
11308 temp2 = true;
11309 }
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 wxPyLogStatusFrame(arg1,(wxString const &)*arg2);
11313
11314 wxPyEndAllowThreads(__tstate);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 }
11317 Py_INCREF(Py_None); resultobj = Py_None;
11318 {
11319 if (temp2)
11320 delete arg2;
11321 }
11322 return resultobj;
11323 fail:
11324 {
11325 if (temp2)
11326 delete arg2;
11327 }
11328 return NULL;
11329 }
11330
11331
11332 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
11333 PyObject *resultobj = NULL;
11334 wxString *arg1 = 0 ;
11335 bool temp1 = false ;
11336 PyObject * obj0 = 0 ;
11337 char *kwnames[] = {
11338 (char *) "msg", NULL
11339 };
11340
11341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
11342 {
11343 arg1 = wxString_in_helper(obj0);
11344 if (arg1 == NULL) SWIG_fail;
11345 temp1 = true;
11346 }
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 wxPyLogSysError((wxString const &)*arg1);
11350
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 Py_INCREF(Py_None); resultobj = Py_None;
11355 {
11356 if (temp1)
11357 delete arg1;
11358 }
11359 return resultobj;
11360 fail:
11361 {
11362 if (temp1)
11363 delete arg1;
11364 }
11365 return NULL;
11366 }
11367
11368
11369 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
11370 PyObject *resultobj = NULL;
11371 unsigned long arg1 ;
11372 wxString *arg2 = 0 ;
11373 bool temp2 = false ;
11374 PyObject * obj0 = 0 ;
11375 PyObject * obj1 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "level",(char *) "msg", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
11381 {
11382 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
11383 if (SWIG_arg_fail(1)) SWIG_fail;
11384 }
11385 {
11386 arg2 = wxString_in_helper(obj1);
11387 if (arg2 == NULL) SWIG_fail;
11388 temp2 = true;
11389 }
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 wxPyLogGeneric(arg1,(wxString const &)*arg2);
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 Py_INCREF(Py_None); resultobj = Py_None;
11398 {
11399 if (temp2)
11400 delete arg2;
11401 }
11402 return resultobj;
11403 fail:
11404 {
11405 if (temp2)
11406 delete arg2;
11407 }
11408 return NULL;
11409 }
11410
11411
11412 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
11413 PyObject *resultobj = NULL;
11414 unsigned long arg1 ;
11415 wxString *arg2 = 0 ;
11416 bool temp2 = false ;
11417 PyObject * obj0 = 0 ;
11418 PyObject * obj1 = 0 ;
11419
11420 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
11421 {
11422 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
11423 if (SWIG_arg_fail(1)) SWIG_fail;
11424 }
11425 {
11426 arg2 = wxString_in_helper(obj1);
11427 if (arg2 == NULL) SWIG_fail;
11428 temp2 = true;
11429 }
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 wxPyLogTrace(arg1,(wxString const &)*arg2);
11433
11434 wxPyEndAllowThreads(__tstate);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 }
11437 Py_INCREF(Py_None); resultobj = Py_None;
11438 {
11439 if (temp2)
11440 delete arg2;
11441 }
11442 return resultobj;
11443 fail:
11444 {
11445 if (temp2)
11446 delete arg2;
11447 }
11448 return NULL;
11449 }
11450
11451
11452 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
11453 PyObject *resultobj = NULL;
11454 wxString *arg1 = 0 ;
11455 wxString *arg2 = 0 ;
11456 bool temp1 = false ;
11457 bool temp2 = false ;
11458 PyObject * obj0 = 0 ;
11459 PyObject * obj1 = 0 ;
11460
11461 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
11462 {
11463 arg1 = wxString_in_helper(obj0);
11464 if (arg1 == NULL) SWIG_fail;
11465 temp1 = true;
11466 }
11467 {
11468 arg2 = wxString_in_helper(obj1);
11469 if (arg2 == NULL) SWIG_fail;
11470 temp2 = true;
11471 }
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 Py_INCREF(Py_None); resultobj = Py_None;
11480 {
11481 if (temp1)
11482 delete arg1;
11483 }
11484 {
11485 if (temp2)
11486 delete arg2;
11487 }
11488 return resultobj;
11489 fail:
11490 {
11491 if (temp1)
11492 delete arg1;
11493 }
11494 {
11495 if (temp2)
11496 delete arg2;
11497 }
11498 return NULL;
11499 }
11500
11501
11502 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
11503 int argc;
11504 PyObject *argv[3];
11505 int ii;
11506
11507 argc = PyObject_Length(args);
11508 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11509 argv[ii] = PyTuple_GetItem(args,ii);
11510 }
11511 if (argc == 2) {
11512 int _v;
11513 {
11514 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11515 }
11516 if (_v) {
11517 {
11518 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11519 }
11520 if (_v) {
11521 return _wrap_LogTrace__SWIG_1(self,args);
11522 }
11523 }
11524 }
11525 if (argc == 2) {
11526 int _v;
11527 _v = SWIG_Check_unsigned_SS_long(argv[0]);
11528 if (_v) {
11529 {
11530 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11531 }
11532 if (_v) {
11533 return _wrap_LogTrace__SWIG_0(self,args);
11534 }
11535 }
11536 }
11537
11538 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'");
11539 return NULL;
11540 }
11541
11542
11543 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj = NULL;
11545 wxString *arg1 = 0 ;
11546 wxString *arg2 = 0 ;
11547 bool temp1 = false ;
11548 bool temp2 = false ;
11549 PyObject * obj0 = 0 ;
11550 PyObject * obj1 = 0 ;
11551 char *kwnames[] = {
11552 (char *) "title",(char *) "text", NULL
11553 };
11554
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
11556 {
11557 arg1 = wxString_in_helper(obj0);
11558 if (arg1 == NULL) SWIG_fail;
11559 temp1 = true;
11560 }
11561 {
11562 arg2 = wxString_in_helper(obj1);
11563 if (arg2 == NULL) SWIG_fail;
11564 temp2 = true;
11565 }
11566 {
11567 PyThreadState* __tstate = wxPyBeginAllowThreads();
11568 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
11569
11570 wxPyEndAllowThreads(__tstate);
11571 if (PyErr_Occurred()) SWIG_fail;
11572 }
11573 Py_INCREF(Py_None); resultobj = Py_None;
11574 {
11575 if (temp1)
11576 delete arg1;
11577 }
11578 {
11579 if (temp2)
11580 delete arg2;
11581 }
11582 return resultobj;
11583 fail:
11584 {
11585 if (temp1)
11586 delete arg1;
11587 }
11588 {
11589 if (temp2)
11590 delete arg2;
11591 }
11592 return NULL;
11593 }
11594
11595
11596 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
11597 PyObject *resultobj = NULL;
11598 wxLogNull *result;
11599 char *kwnames[] = {
11600 NULL
11601 };
11602
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 result = (wxLogNull *)new wxLogNull();
11607
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
11612 return resultobj;
11613 fail:
11614 return NULL;
11615 }
11616
11617
11618 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
11619 PyObject *resultobj = NULL;
11620 wxLogNull *arg1 = (wxLogNull *) 0 ;
11621 PyObject * obj0 = 0 ;
11622 char *kwnames[] = {
11623 (char *) "self", NULL
11624 };
11625
11626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
11627 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogNull, SWIG_POINTER_EXCEPTION | 0);
11628 if (SWIG_arg_fail(1)) SWIG_fail;
11629 {
11630 PyThreadState* __tstate = wxPyBeginAllowThreads();
11631 delete arg1;
11632
11633 wxPyEndAllowThreads(__tstate);
11634 if (PyErr_Occurred()) SWIG_fail;
11635 }
11636 Py_INCREF(Py_None); resultobj = Py_None;
11637 return resultobj;
11638 fail:
11639 return NULL;
11640 }
11641
11642
11643 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
11644 PyObject *obj;
11645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11646 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
11647 Py_INCREF(obj);
11648 return Py_BuildValue((char *)"");
11649 }
11650 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj = NULL;
11652 wxPyLog *result;
11653 char *kwnames[] = {
11654 NULL
11655 };
11656
11657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
11658 {
11659 PyThreadState* __tstate = wxPyBeginAllowThreads();
11660 result = (wxPyLog *)new wxPyLog();
11661
11662 wxPyEndAllowThreads(__tstate);
11663 if (PyErr_Occurred()) SWIG_fail;
11664 }
11665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
11666 return resultobj;
11667 fail:
11668 return NULL;
11669 }
11670
11671
11672 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11673 PyObject *resultobj = NULL;
11674 wxPyLog *arg1 = (wxPyLog *) 0 ;
11675 PyObject *arg2 = (PyObject *) 0 ;
11676 PyObject *arg3 = (PyObject *) 0 ;
11677 PyObject * obj0 = 0 ;
11678 PyObject * obj1 = 0 ;
11679 PyObject * obj2 = 0 ;
11680 char *kwnames[] = {
11681 (char *) "self",(char *) "self",(char *) "_class", NULL
11682 };
11683
11684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
11685 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyLog, SWIG_POINTER_EXCEPTION | 0);
11686 if (SWIG_arg_fail(1)) SWIG_fail;
11687 arg2 = obj1;
11688 arg3 = obj2;
11689 {
11690 PyThreadState* __tstate = wxPyBeginAllowThreads();
11691 (arg1)->_setCallbackInfo(arg2,arg3);
11692
11693 wxPyEndAllowThreads(__tstate);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 }
11696 Py_INCREF(Py_None); resultobj = Py_None;
11697 return resultobj;
11698 fail:
11699 return NULL;
11700 }
11701
11702
11703 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
11704 PyObject *obj;
11705 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11706 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
11707 Py_INCREF(obj);
11708 return Py_BuildValue((char *)"");
11709 }
11710 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
11711 PyObject *resultobj = NULL;
11712 int arg1 ;
11713 wxSignal arg2 = (wxSignal) wxSIGTERM ;
11714 int arg3 = (int) wxKILL_NOCHILDREN ;
11715 wxKillError result;
11716 PyObject * obj0 = 0 ;
11717 PyObject * obj1 = 0 ;
11718 PyObject * obj2 = 0 ;
11719 char *kwnames[] = {
11720 (char *) "pid",(char *) "sig",(char *) "flags", NULL
11721 };
11722
11723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail;
11724 {
11725 arg1 = static_cast<int >(SWIG_As_int(obj0));
11726 if (SWIG_arg_fail(1)) SWIG_fail;
11727 }
11728 if (obj1) {
11729 {
11730 arg2 = static_cast<wxSignal >(SWIG_As_int(obj1));
11731 if (SWIG_arg_fail(2)) SWIG_fail;
11732 }
11733 }
11734 if (obj2) {
11735 {
11736 arg3 = static_cast<int >(SWIG_As_int(obj2));
11737 if (SWIG_arg_fail(3)) SWIG_fail;
11738 }
11739 }
11740 {
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 result = (wxKillError)wxPyProcess::Kill(arg1,arg2,arg3);
11743
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 resultobj = SWIG_From_int((result));
11748 return resultobj;
11749 fail:
11750 return NULL;
11751 }
11752
11753
11754 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
11755 PyObject *resultobj = NULL;
11756 int arg1 ;
11757 bool result;
11758 PyObject * obj0 = 0 ;
11759 char *kwnames[] = {
11760 (char *) "pid", NULL
11761 };
11762
11763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
11764 {
11765 arg1 = static_cast<int >(SWIG_As_int(obj0));
11766 if (SWIG_arg_fail(1)) SWIG_fail;
11767 }
11768 {
11769 PyThreadState* __tstate = wxPyBeginAllowThreads();
11770 result = (bool)wxPyProcess::Exists(arg1);
11771
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 {
11776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11777 }
11778 return resultobj;
11779 fail:
11780 return NULL;
11781 }
11782
11783
11784 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
11785 PyObject *resultobj = NULL;
11786 wxString *arg1 = 0 ;
11787 int arg2 = (int) wxEXEC_ASYNC ;
11788 wxPyProcess *result;
11789 bool temp1 = false ;
11790 PyObject * obj0 = 0 ;
11791 PyObject * obj1 = 0 ;
11792 char *kwnames[] = {
11793 (char *) "cmd",(char *) "flags", NULL
11794 };
11795
11796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
11797 {
11798 arg1 = wxString_in_helper(obj0);
11799 if (arg1 == NULL) SWIG_fail;
11800 temp1 = true;
11801 }
11802 if (obj1) {
11803 {
11804 arg2 = static_cast<int >(SWIG_As_int(obj1));
11805 if (SWIG_arg_fail(2)) SWIG_fail;
11806 }
11807 }
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
11811
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
11816 {
11817 if (temp1)
11818 delete arg1;
11819 }
11820 return resultobj;
11821 fail:
11822 {
11823 if (temp1)
11824 delete arg1;
11825 }
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj = NULL;
11832 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
11833 int arg2 = (int) -1 ;
11834 wxPyProcess *result;
11835 PyObject * obj0 = 0 ;
11836 PyObject * obj1 = 0 ;
11837 char *kwnames[] = {
11838 (char *) "parent",(char *) "id", NULL
11839 };
11840
11841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
11842 if (obj0) {
11843 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
11844 if (SWIG_arg_fail(1)) SWIG_fail;
11845 }
11846 if (obj1) {
11847 {
11848 arg2 = static_cast<int >(SWIG_As_int(obj1));
11849 if (SWIG_arg_fail(2)) SWIG_fail;
11850 }
11851 }
11852 {
11853 PyThreadState* __tstate = wxPyBeginAllowThreads();
11854 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
11855
11856 wxPyEndAllowThreads(__tstate);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 }
11859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
11860 return resultobj;
11861 fail:
11862 return NULL;
11863 }
11864
11865
11866 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11867 PyObject *resultobj = NULL;
11868 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11869 PyObject *arg2 = (PyObject *) 0 ;
11870 PyObject *arg3 = (PyObject *) 0 ;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11873 PyObject * obj2 = 0 ;
11874 char *kwnames[] = {
11875 (char *) "self",(char *) "self",(char *) "_class", NULL
11876 };
11877
11878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
11879 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11880 if (SWIG_arg_fail(1)) SWIG_fail;
11881 arg2 = obj1;
11882 arg3 = obj2;
11883 {
11884 PyThreadState* __tstate = wxPyBeginAllowThreads();
11885 (arg1)->_setCallbackInfo(arg2,arg3);
11886
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 Py_INCREF(Py_None); resultobj = Py_None;
11891 return resultobj;
11892 fail:
11893 return NULL;
11894 }
11895
11896
11897 static PyObject *_wrap_Process_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj = NULL;
11899 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11900 int arg2 ;
11901 int arg3 ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 PyObject * obj2 = 0 ;
11905 char *kwnames[] = {
11906 (char *) "self",(char *) "pid",(char *) "status", NULL
11907 };
11908
11909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
11910 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11911 if (SWIG_arg_fail(1)) SWIG_fail;
11912 {
11913 arg2 = static_cast<int >(SWIG_As_int(obj1));
11914 if (SWIG_arg_fail(2)) SWIG_fail;
11915 }
11916 {
11917 arg3 = static_cast<int >(SWIG_As_int(obj2));
11918 if (SWIG_arg_fail(3)) SWIG_fail;
11919 }
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 (arg1)->OnTerminate(arg2,arg3);
11923
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 Py_INCREF(Py_None); resultobj = Py_None;
11928 return resultobj;
11929 fail:
11930 return NULL;
11931 }
11932
11933
11934 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
11935 PyObject *resultobj = NULL;
11936 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11937 PyObject * obj0 = 0 ;
11938 char *kwnames[] = {
11939 (char *) "self", NULL
11940 };
11941
11942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
11943 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11944 if (SWIG_arg_fail(1)) SWIG_fail;
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 (arg1)->Redirect();
11948
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 Py_INCREF(Py_None); resultobj = Py_None;
11953 return resultobj;
11954 fail:
11955 return NULL;
11956 }
11957
11958
11959 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
11960 PyObject *resultobj = NULL;
11961 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11962 bool result;
11963 PyObject * obj0 = 0 ;
11964 char *kwnames[] = {
11965 (char *) "self", NULL
11966 };
11967
11968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
11969 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11970 if (SWIG_arg_fail(1)) SWIG_fail;
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 result = (bool)(arg1)->IsRedirected();
11974
11975 wxPyEndAllowThreads(__tstate);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 {
11979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11980 }
11981 return resultobj;
11982 fail:
11983 return NULL;
11984 }
11985
11986
11987 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
11988 PyObject *resultobj = NULL;
11989 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11990 PyObject * obj0 = 0 ;
11991 char *kwnames[] = {
11992 (char *) "self", NULL
11993 };
11994
11995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
11996 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11997 if (SWIG_arg_fail(1)) SWIG_fail;
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 (arg1)->Detach();
12001
12002 wxPyEndAllowThreads(__tstate);
12003 if (PyErr_Occurred()) SWIG_fail;
12004 }
12005 Py_INCREF(Py_None); resultobj = Py_None;
12006 return resultobj;
12007 fail:
12008 return NULL;
12009 }
12010
12011
12012 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
12013 PyObject *resultobj = NULL;
12014 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12015 wxInputStream *result;
12016 PyObject * obj0 = 0 ;
12017 char *kwnames[] = {
12018 (char *) "self", NULL
12019 };
12020
12021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
12022 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12023 if (SWIG_arg_fail(1)) SWIG_fail;
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = (wxInputStream *)(arg1)->GetInputStream();
12027
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 {
12032 wxPyInputStream * _ptr = NULL;
12033
12034 if (result) {
12035 _ptr = new wxPyInputStream(result);
12036 }
12037 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12038 }
12039 return resultobj;
12040 fail:
12041 return NULL;
12042 }
12043
12044
12045 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
12046 PyObject *resultobj = NULL;
12047 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12048 wxInputStream *result;
12049 PyObject * obj0 = 0 ;
12050 char *kwnames[] = {
12051 (char *) "self", NULL
12052 };
12053
12054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
12055 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12056 if (SWIG_arg_fail(1)) SWIG_fail;
12057 {
12058 PyThreadState* __tstate = wxPyBeginAllowThreads();
12059 result = (wxInputStream *)(arg1)->GetErrorStream();
12060
12061 wxPyEndAllowThreads(__tstate);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 {
12065 wxPyInputStream * _ptr = NULL;
12066
12067 if (result) {
12068 _ptr = new wxPyInputStream(result);
12069 }
12070 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12071 }
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
12079 PyObject *resultobj = NULL;
12080 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12081 wxOutputStream *result;
12082 PyObject * obj0 = 0 ;
12083 char *kwnames[] = {
12084 (char *) "self", NULL
12085 };
12086
12087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
12088 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12089 if (SWIG_arg_fail(1)) SWIG_fail;
12090 {
12091 PyThreadState* __tstate = wxPyBeginAllowThreads();
12092 result = (wxOutputStream *)(arg1)->GetOutputStream();
12093
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
12098 return resultobj;
12099 fail:
12100 return NULL;
12101 }
12102
12103
12104 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
12105 PyObject *resultobj = NULL;
12106 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12107 PyObject * obj0 = 0 ;
12108 char *kwnames[] = {
12109 (char *) "self", NULL
12110 };
12111
12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
12113 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12114 if (SWIG_arg_fail(1)) SWIG_fail;
12115 {
12116 PyThreadState* __tstate = wxPyBeginAllowThreads();
12117 (arg1)->CloseOutput();
12118
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 Py_INCREF(Py_None); resultobj = Py_None;
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj = NULL;
12131 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12132 bool result;
12133 PyObject * obj0 = 0 ;
12134 char *kwnames[] = {
12135 (char *) "self", NULL
12136 };
12137
12138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
12139 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12140 if (SWIG_arg_fail(1)) SWIG_fail;
12141 {
12142 PyThreadState* __tstate = wxPyBeginAllowThreads();
12143 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
12144
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 {
12149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12150 }
12151 return resultobj;
12152 fail:
12153 return NULL;
12154 }
12155
12156
12157 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj = NULL;
12159 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12160 bool result;
12161 PyObject * obj0 = 0 ;
12162 char *kwnames[] = {
12163 (char *) "self", NULL
12164 };
12165
12166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
12167 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12168 if (SWIG_arg_fail(1)) SWIG_fail;
12169 {
12170 PyThreadState* __tstate = wxPyBeginAllowThreads();
12171 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
12172
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 {
12177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12178 }
12179 return resultobj;
12180 fail:
12181 return NULL;
12182 }
12183
12184
12185 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
12186 PyObject *resultobj = NULL;
12187 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12188 bool result;
12189 PyObject * obj0 = 0 ;
12190 char *kwnames[] = {
12191 (char *) "self", NULL
12192 };
12193
12194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
12195 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12196 if (SWIG_arg_fail(1)) SWIG_fail;
12197 {
12198 PyThreadState* __tstate = wxPyBeginAllowThreads();
12199 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
12200
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 {
12205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12206 }
12207 return resultobj;
12208 fail:
12209 return NULL;
12210 }
12211
12212
12213 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
12214 PyObject *obj;
12215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12216 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
12217 Py_INCREF(obj);
12218 return Py_BuildValue((char *)"");
12219 }
12220 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
12221 PyObject *resultobj = NULL;
12222 int arg1 = (int) 0 ;
12223 int arg2 = (int) 0 ;
12224 int arg3 = (int) 0 ;
12225 wxProcessEvent *result;
12226 PyObject * obj0 = 0 ;
12227 PyObject * obj1 = 0 ;
12228 PyObject * obj2 = 0 ;
12229 char *kwnames[] = {
12230 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
12231 };
12232
12233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12234 if (obj0) {
12235 {
12236 arg1 = static_cast<int >(SWIG_As_int(obj0));
12237 if (SWIG_arg_fail(1)) SWIG_fail;
12238 }
12239 }
12240 if (obj1) {
12241 {
12242 arg2 = static_cast<int >(SWIG_As_int(obj1));
12243 if (SWIG_arg_fail(2)) SWIG_fail;
12244 }
12245 }
12246 if (obj2) {
12247 {
12248 arg3 = static_cast<int >(SWIG_As_int(obj2));
12249 if (SWIG_arg_fail(3)) SWIG_fail;
12250 }
12251 }
12252 {
12253 PyThreadState* __tstate = wxPyBeginAllowThreads();
12254 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
12255
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
12260 return resultobj;
12261 fail:
12262 return NULL;
12263 }
12264
12265
12266 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
12267 PyObject *resultobj = NULL;
12268 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12269 int result;
12270 PyObject * obj0 = 0 ;
12271 char *kwnames[] = {
12272 (char *) "self", NULL
12273 };
12274
12275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
12276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12277 if (SWIG_arg_fail(1)) SWIG_fail;
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 result = (int)(arg1)->GetPid();
12281
12282 wxPyEndAllowThreads(__tstate);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 {
12286 resultobj = SWIG_From_int(static_cast<int >(result));
12287 }
12288 return resultobj;
12289 fail:
12290 return NULL;
12291 }
12292
12293
12294 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
12295 PyObject *resultobj = NULL;
12296 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12297 int result;
12298 PyObject * obj0 = 0 ;
12299 char *kwnames[] = {
12300 (char *) "self", NULL
12301 };
12302
12303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
12304 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12305 if (SWIG_arg_fail(1)) SWIG_fail;
12306 {
12307 PyThreadState* __tstate = wxPyBeginAllowThreads();
12308 result = (int)(arg1)->GetExitCode();
12309
12310 wxPyEndAllowThreads(__tstate);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 {
12314 resultobj = SWIG_From_int(static_cast<int >(result));
12315 }
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj = NULL;
12324 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12325 int arg2 ;
12326 PyObject * obj0 = 0 ;
12327 PyObject * obj1 = 0 ;
12328 char *kwnames[] = {
12329 (char *) "self",(char *) "m_pid", NULL
12330 };
12331
12332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
12333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12334 if (SWIG_arg_fail(1)) SWIG_fail;
12335 {
12336 arg2 = static_cast<int >(SWIG_As_int(obj1));
12337 if (SWIG_arg_fail(2)) SWIG_fail;
12338 }
12339 if (arg1) (arg1)->m_pid = arg2;
12340
12341 Py_INCREF(Py_None); resultobj = Py_None;
12342 return resultobj;
12343 fail:
12344 return NULL;
12345 }
12346
12347
12348 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
12349 PyObject *resultobj = NULL;
12350 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12351 int result;
12352 PyObject * obj0 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "self", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
12358 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12359 if (SWIG_arg_fail(1)) SWIG_fail;
12360 result = (int) ((arg1)->m_pid);
12361
12362 {
12363 resultobj = SWIG_From_int(static_cast<int >(result));
12364 }
12365 return resultobj;
12366 fail:
12367 return NULL;
12368 }
12369
12370
12371 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj = NULL;
12373 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12374 int arg2 ;
12375 PyObject * obj0 = 0 ;
12376 PyObject * obj1 = 0 ;
12377 char *kwnames[] = {
12378 (char *) "self",(char *) "m_exitcode", NULL
12379 };
12380
12381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
12382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12383 if (SWIG_arg_fail(1)) SWIG_fail;
12384 {
12385 arg2 = static_cast<int >(SWIG_As_int(obj1));
12386 if (SWIG_arg_fail(2)) SWIG_fail;
12387 }
12388 if (arg1) (arg1)->m_exitcode = arg2;
12389
12390 Py_INCREF(Py_None); resultobj = Py_None;
12391 return resultobj;
12392 fail:
12393 return NULL;
12394 }
12395
12396
12397 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = NULL;
12399 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12400 int result;
12401 PyObject * obj0 = 0 ;
12402 char *kwnames[] = {
12403 (char *) "self", NULL
12404 };
12405
12406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
12407 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12408 if (SWIG_arg_fail(1)) SWIG_fail;
12409 result = (int) ((arg1)->m_exitcode);
12410
12411 {
12412 resultobj = SWIG_From_int(static_cast<int >(result));
12413 }
12414 return resultobj;
12415 fail:
12416 return NULL;
12417 }
12418
12419
12420 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
12421 PyObject *obj;
12422 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12423 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
12424 Py_INCREF(obj);
12425 return Py_BuildValue((char *)"");
12426 }
12427 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
12428 PyObject *resultobj = NULL;
12429 wxString *arg1 = 0 ;
12430 int arg2 = (int) wxEXEC_ASYNC ;
12431 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
12432 long result;
12433 bool temp1 = false ;
12434 PyObject * obj0 = 0 ;
12435 PyObject * obj1 = 0 ;
12436 PyObject * obj2 = 0 ;
12437 char *kwnames[] = {
12438 (char *) "command",(char *) "flags",(char *) "process", NULL
12439 };
12440
12441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
12442 {
12443 arg1 = wxString_in_helper(obj0);
12444 if (arg1 == NULL) SWIG_fail;
12445 temp1 = true;
12446 }
12447 if (obj1) {
12448 {
12449 arg2 = static_cast<int >(SWIG_As_int(obj1));
12450 if (SWIG_arg_fail(2)) SWIG_fail;
12451 }
12452 }
12453 if (obj2) {
12454 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12455 if (SWIG_arg_fail(3)) SWIG_fail;
12456 }
12457 {
12458 if (!wxPyCheckForApp()) SWIG_fail;
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
12461
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 {
12466 resultobj = SWIG_From_long(static_cast<long >(result));
12467 }
12468 {
12469 if (temp1)
12470 delete arg1;
12471 }
12472 return resultobj;
12473 fail:
12474 {
12475 if (temp1)
12476 delete arg1;
12477 }
12478 return NULL;
12479 }
12480
12481
12482 static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
12483 PyObject *resultobj = NULL;
12484 long arg1 ;
12485 wxSignal arg2 = (wxSignal) wxSIGTERM ;
12486 wxKillError *arg3 = (wxKillError *) 0 ;
12487 int arg4 = (int) wxKILL_NOCHILDREN ;
12488 int result;
12489 wxKillError temp3 ;
12490 PyObject * obj0 = 0 ;
12491 PyObject * obj1 = 0 ;
12492 PyObject * obj2 = 0 ;
12493 char *kwnames[] = {
12494 (char *) "pid",(char *) "sig",(char *) "flags", NULL
12495 };
12496
12497 {
12498 arg3 = &temp3;
12499 }
12500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail;
12501 {
12502 arg1 = static_cast<long >(SWIG_As_long(obj0));
12503 if (SWIG_arg_fail(1)) SWIG_fail;
12504 }
12505 if (obj1) {
12506 {
12507 arg2 = static_cast<wxSignal >(SWIG_As_int(obj1));
12508 if (SWIG_arg_fail(2)) SWIG_fail;
12509 }
12510 }
12511 if (obj2) {
12512 {
12513 arg4 = static_cast<int >(SWIG_As_int(obj2));
12514 if (SWIG_arg_fail(4)) SWIG_fail;
12515 }
12516 }
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 result = (int)wxKill(arg1,arg2,arg3,arg4);
12520
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 {
12525 resultobj = SWIG_From_int(static_cast<int >(result));
12526 }
12527 {
12528 PyObject* o;
12529 o = PyInt_FromLong((long) (*arg3));
12530
12531 resultobj = t_output_helper(resultobj, o);
12532
12533
12534
12535 }
12536 return resultobj;
12537 fail:
12538 return NULL;
12539 }
12540
12541
12542 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
12543 PyObject *resultobj = NULL;
12544 int arg1 = (int) wxJOYSTICK1 ;
12545 wxJoystick *result;
12546 PyObject * obj0 = 0 ;
12547 char *kwnames[] = {
12548 (char *) "joystick", NULL
12549 };
12550
12551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
12552 if (obj0) {
12553 {
12554 arg1 = static_cast<int >(SWIG_As_int(obj0));
12555 if (SWIG_arg_fail(1)) SWIG_fail;
12556 }
12557 }
12558 {
12559 if (!wxPyCheckForApp()) SWIG_fail;
12560 PyThreadState* __tstate = wxPyBeginAllowThreads();
12561 result = (wxJoystick *)new wxJoystick(arg1);
12562
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
12566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
12567 return resultobj;
12568 fail:
12569 return NULL;
12570 }
12571
12572
12573 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
12574 PyObject *resultobj = NULL;
12575 wxJoystick *arg1 = (wxJoystick *) 0 ;
12576 PyObject * obj0 = 0 ;
12577 char *kwnames[] = {
12578 (char *) "self", NULL
12579 };
12580
12581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
12582 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12583 if (SWIG_arg_fail(1)) SWIG_fail;
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 delete arg1;
12587
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 Py_INCREF(Py_None); resultobj = Py_None;
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj = NULL;
12600 wxJoystick *arg1 = (wxJoystick *) 0 ;
12601 wxPoint result;
12602 PyObject * obj0 = 0 ;
12603 char *kwnames[] = {
12604 (char *) "self", NULL
12605 };
12606
12607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
12608 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12609 if (SWIG_arg_fail(1)) SWIG_fail;
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 result = (arg1)->GetPosition();
12613
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 {
12618 wxPoint * resultptr;
12619 resultptr = new wxPoint(static_cast<wxPoint & >(result));
12620 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
12621 }
12622 return resultobj;
12623 fail:
12624 return NULL;
12625 }
12626
12627
12628 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12629 PyObject *resultobj = NULL;
12630 wxJoystick *arg1 = (wxJoystick *) 0 ;
12631 int result;
12632 PyObject * obj0 = 0 ;
12633 char *kwnames[] = {
12634 (char *) "self", NULL
12635 };
12636
12637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
12638 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12639 if (SWIG_arg_fail(1)) SWIG_fail;
12640 {
12641 PyThreadState* __tstate = wxPyBeginAllowThreads();
12642 result = (int)(arg1)->GetZPosition();
12643
12644 wxPyEndAllowThreads(__tstate);
12645 if (PyErr_Occurred()) SWIG_fail;
12646 }
12647 {
12648 resultobj = SWIG_From_int(static_cast<int >(result));
12649 }
12650 return resultobj;
12651 fail:
12652 return NULL;
12653 }
12654
12655
12656 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
12657 PyObject *resultobj = NULL;
12658 wxJoystick *arg1 = (wxJoystick *) 0 ;
12659 int result;
12660 PyObject * obj0 = 0 ;
12661 char *kwnames[] = {
12662 (char *) "self", NULL
12663 };
12664
12665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
12666 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12667 if (SWIG_arg_fail(1)) SWIG_fail;
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 result = (int)(arg1)->GetButtonState();
12671
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 {
12676 resultobj = SWIG_From_int(static_cast<int >(result));
12677 }
12678 return resultobj;
12679 fail:
12680 return NULL;
12681 }
12682
12683
12684 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj = NULL;
12686 wxJoystick *arg1 = (wxJoystick *) 0 ;
12687 int result;
12688 PyObject * obj0 = 0 ;
12689 char *kwnames[] = {
12690 (char *) "self", NULL
12691 };
12692
12693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
12694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12695 if (SWIG_arg_fail(1)) SWIG_fail;
12696 {
12697 PyThreadState* __tstate = wxPyBeginAllowThreads();
12698 result = (int)(arg1)->GetPOVPosition();
12699
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 {
12704 resultobj = SWIG_From_int(static_cast<int >(result));
12705 }
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj = NULL;
12714 wxJoystick *arg1 = (wxJoystick *) 0 ;
12715 int result;
12716 PyObject * obj0 = 0 ;
12717 char *kwnames[] = {
12718 (char *) "self", NULL
12719 };
12720
12721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
12722 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12723 if (SWIG_arg_fail(1)) SWIG_fail;
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 result = (int)(arg1)->GetPOVCTSPosition();
12727
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 {
12732 resultobj = SWIG_From_int(static_cast<int >(result));
12733 }
12734 return resultobj;
12735 fail:
12736 return NULL;
12737 }
12738
12739
12740 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12741 PyObject *resultobj = NULL;
12742 wxJoystick *arg1 = (wxJoystick *) 0 ;
12743 int result;
12744 PyObject * obj0 = 0 ;
12745 char *kwnames[] = {
12746 (char *) "self", NULL
12747 };
12748
12749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
12750 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12751 if (SWIG_arg_fail(1)) SWIG_fail;
12752 {
12753 PyThreadState* __tstate = wxPyBeginAllowThreads();
12754 result = (int)(arg1)->GetRudderPosition();
12755
12756 wxPyEndAllowThreads(__tstate);
12757 if (PyErr_Occurred()) SWIG_fail;
12758 }
12759 {
12760 resultobj = SWIG_From_int(static_cast<int >(result));
12761 }
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj = NULL;
12770 wxJoystick *arg1 = (wxJoystick *) 0 ;
12771 int result;
12772 PyObject * obj0 = 0 ;
12773 char *kwnames[] = {
12774 (char *) "self", NULL
12775 };
12776
12777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
12778 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12779 if (SWIG_arg_fail(1)) SWIG_fail;
12780 {
12781 PyThreadState* __tstate = wxPyBeginAllowThreads();
12782 result = (int)(arg1)->GetUPosition();
12783
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 {
12788 resultobj = SWIG_From_int(static_cast<int >(result));
12789 }
12790 return resultobj;
12791 fail:
12792 return NULL;
12793 }
12794
12795
12796 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12797 PyObject *resultobj = NULL;
12798 wxJoystick *arg1 = (wxJoystick *) 0 ;
12799 int result;
12800 PyObject * obj0 = 0 ;
12801 char *kwnames[] = {
12802 (char *) "self", NULL
12803 };
12804
12805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
12806 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12807 if (SWIG_arg_fail(1)) SWIG_fail;
12808 {
12809 PyThreadState* __tstate = wxPyBeginAllowThreads();
12810 result = (int)(arg1)->GetVPosition();
12811
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 {
12816 resultobj = SWIG_From_int(static_cast<int >(result));
12817 }
12818 return resultobj;
12819 fail:
12820 return NULL;
12821 }
12822
12823
12824 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
12825 PyObject *resultobj = NULL;
12826 wxJoystick *arg1 = (wxJoystick *) 0 ;
12827 int result;
12828 PyObject * obj0 = 0 ;
12829 char *kwnames[] = {
12830 (char *) "self", NULL
12831 };
12832
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
12834 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12835 if (SWIG_arg_fail(1)) SWIG_fail;
12836 {
12837 PyThreadState* __tstate = wxPyBeginAllowThreads();
12838 result = (int)(arg1)->GetMovementThreshold();
12839
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 {
12844 resultobj = SWIG_From_int(static_cast<int >(result));
12845 }
12846 return resultobj;
12847 fail:
12848 return NULL;
12849 }
12850
12851
12852 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
12853 PyObject *resultobj = NULL;
12854 wxJoystick *arg1 = (wxJoystick *) 0 ;
12855 int arg2 ;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self",(char *) "threshold", NULL
12860 };
12861
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
12863 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12864 if (SWIG_arg_fail(1)) SWIG_fail;
12865 {
12866 arg2 = static_cast<int >(SWIG_As_int(obj1));
12867 if (SWIG_arg_fail(2)) SWIG_fail;
12868 }
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 (arg1)->SetMovementThreshold(arg2);
12872
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 Py_INCREF(Py_None); resultobj = Py_None;
12877 return resultobj;
12878 fail:
12879 return NULL;
12880 }
12881
12882
12883 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj = NULL;
12885 wxJoystick *arg1 = (wxJoystick *) 0 ;
12886 bool result;
12887 PyObject * obj0 = 0 ;
12888 char *kwnames[] = {
12889 (char *) "self", NULL
12890 };
12891
12892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
12893 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12894 if (SWIG_arg_fail(1)) SWIG_fail;
12895 {
12896 PyThreadState* __tstate = wxPyBeginAllowThreads();
12897 result = (bool)(arg1)->IsOk();
12898
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 {
12903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12904 }
12905 return resultobj;
12906 fail:
12907 return NULL;
12908 }
12909
12910
12911 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
12912 PyObject *resultobj = NULL;
12913 wxJoystick *arg1 = (wxJoystick *) 0 ;
12914 int result;
12915 PyObject * obj0 = 0 ;
12916 char *kwnames[] = {
12917 (char *) "self", NULL
12918 };
12919
12920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
12921 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12922 if (SWIG_arg_fail(1)) SWIG_fail;
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 result = (int)(arg1)->GetNumberJoysticks();
12926
12927 wxPyEndAllowThreads(__tstate);
12928 if (PyErr_Occurred()) SWIG_fail;
12929 }
12930 {
12931 resultobj = SWIG_From_int(static_cast<int >(result));
12932 }
12933 return resultobj;
12934 fail:
12935 return NULL;
12936 }
12937
12938
12939 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj = NULL;
12941 wxJoystick *arg1 = (wxJoystick *) 0 ;
12942 int result;
12943 PyObject * obj0 = 0 ;
12944 char *kwnames[] = {
12945 (char *) "self", NULL
12946 };
12947
12948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
12949 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12950 if (SWIG_arg_fail(1)) SWIG_fail;
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (int)(arg1)->GetManufacturerId();
12954
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
12958 {
12959 resultobj = SWIG_From_int(static_cast<int >(result));
12960 }
12961 return resultobj;
12962 fail:
12963 return NULL;
12964 }
12965
12966
12967 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj = NULL;
12969 wxJoystick *arg1 = (wxJoystick *) 0 ;
12970 int result;
12971 PyObject * obj0 = 0 ;
12972 char *kwnames[] = {
12973 (char *) "self", NULL
12974 };
12975
12976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
12977 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12978 if (SWIG_arg_fail(1)) SWIG_fail;
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 result = (int)(arg1)->GetProductId();
12982
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 {
12987 resultobj = SWIG_From_int(static_cast<int >(result));
12988 }
12989 return resultobj;
12990 fail:
12991 return NULL;
12992 }
12993
12994
12995 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
12996 PyObject *resultobj = NULL;
12997 wxJoystick *arg1 = (wxJoystick *) 0 ;
12998 wxString result;
12999 PyObject * obj0 = 0 ;
13000 char *kwnames[] = {
13001 (char *) "self", NULL
13002 };
13003
13004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
13005 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13006 if (SWIG_arg_fail(1)) SWIG_fail;
13007 {
13008 PyThreadState* __tstate = wxPyBeginAllowThreads();
13009 result = (arg1)->GetProductName();
13010
13011 wxPyEndAllowThreads(__tstate);
13012 if (PyErr_Occurred()) SWIG_fail;
13013 }
13014 {
13015 #if wxUSE_UNICODE
13016 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13017 #else
13018 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13019 #endif
13020 }
13021 return resultobj;
13022 fail:
13023 return NULL;
13024 }
13025
13026
13027 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
13028 PyObject *resultobj = NULL;
13029 wxJoystick *arg1 = (wxJoystick *) 0 ;
13030 int result;
13031 PyObject * obj0 = 0 ;
13032 char *kwnames[] = {
13033 (char *) "self", NULL
13034 };
13035
13036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
13037 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13038 if (SWIG_arg_fail(1)) SWIG_fail;
13039 {
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 result = (int)(arg1)->GetXMin();
13042
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 {
13047 resultobj = SWIG_From_int(static_cast<int >(result));
13048 }
13049 return resultobj;
13050 fail:
13051 return NULL;
13052 }
13053
13054
13055 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
13056 PyObject *resultobj = NULL;
13057 wxJoystick *arg1 = (wxJoystick *) 0 ;
13058 int result;
13059 PyObject * obj0 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "self", NULL
13062 };
13063
13064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
13065 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13066 if (SWIG_arg_fail(1)) SWIG_fail;
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 result = (int)(arg1)->GetYMin();
13070
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075 resultobj = SWIG_From_int(static_cast<int >(result));
13076 }
13077 return resultobj;
13078 fail:
13079 return NULL;
13080 }
13081
13082
13083 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj = NULL;
13085 wxJoystick *arg1 = (wxJoystick *) 0 ;
13086 int result;
13087 PyObject * obj0 = 0 ;
13088 char *kwnames[] = {
13089 (char *) "self", NULL
13090 };
13091
13092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
13093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13094 if (SWIG_arg_fail(1)) SWIG_fail;
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = (int)(arg1)->GetZMin();
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 {
13103 resultobj = SWIG_From_int(static_cast<int >(result));
13104 }
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj = NULL;
13113 wxJoystick *arg1 = (wxJoystick *) 0 ;
13114 int result;
13115 PyObject * obj0 = 0 ;
13116 char *kwnames[] = {
13117 (char *) "self", NULL
13118 };
13119
13120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
13121 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13122 if (SWIG_arg_fail(1)) SWIG_fail;
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
13125 result = (int)(arg1)->GetXMax();
13126
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 {
13131 resultobj = SWIG_From_int(static_cast<int >(result));
13132 }
13133 return resultobj;
13134 fail:
13135 return NULL;
13136 }
13137
13138
13139 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj = NULL;
13141 wxJoystick *arg1 = (wxJoystick *) 0 ;
13142 int result;
13143 PyObject * obj0 = 0 ;
13144 char *kwnames[] = {
13145 (char *) "self", NULL
13146 };
13147
13148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
13149 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13150 if (SWIG_arg_fail(1)) SWIG_fail;
13151 {
13152 PyThreadState* __tstate = wxPyBeginAllowThreads();
13153 result = (int)(arg1)->GetYMax();
13154
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 {
13159 resultobj = SWIG_From_int(static_cast<int >(result));
13160 }
13161 return resultobj;
13162 fail:
13163 return NULL;
13164 }
13165
13166
13167 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
13168 PyObject *resultobj = NULL;
13169 wxJoystick *arg1 = (wxJoystick *) 0 ;
13170 int result;
13171 PyObject * obj0 = 0 ;
13172 char *kwnames[] = {
13173 (char *) "self", NULL
13174 };
13175
13176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
13177 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13178 if (SWIG_arg_fail(1)) SWIG_fail;
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 result = (int)(arg1)->GetZMax();
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 {
13187 resultobj = SWIG_From_int(static_cast<int >(result));
13188 }
13189 return resultobj;
13190 fail:
13191 return NULL;
13192 }
13193
13194
13195 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj = NULL;
13197 wxJoystick *arg1 = (wxJoystick *) 0 ;
13198 int result;
13199 PyObject * obj0 = 0 ;
13200 char *kwnames[] = {
13201 (char *) "self", NULL
13202 };
13203
13204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
13205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13206 if (SWIG_arg_fail(1)) SWIG_fail;
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 result = (int)(arg1)->GetNumberButtons();
13210
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 {
13215 resultobj = SWIG_From_int(static_cast<int >(result));
13216 }
13217 return resultobj;
13218 fail:
13219 return NULL;
13220 }
13221
13222
13223 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
13224 PyObject *resultobj = NULL;
13225 wxJoystick *arg1 = (wxJoystick *) 0 ;
13226 int result;
13227 PyObject * obj0 = 0 ;
13228 char *kwnames[] = {
13229 (char *) "self", NULL
13230 };
13231
13232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
13233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13234 if (SWIG_arg_fail(1)) SWIG_fail;
13235 {
13236 PyThreadState* __tstate = wxPyBeginAllowThreads();
13237 result = (int)(arg1)->GetNumberAxes();
13238
13239 wxPyEndAllowThreads(__tstate);
13240 if (PyErr_Occurred()) SWIG_fail;
13241 }
13242 {
13243 resultobj = SWIG_From_int(static_cast<int >(result));
13244 }
13245 return resultobj;
13246 fail:
13247 return NULL;
13248 }
13249
13250
13251 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
13252 PyObject *resultobj = NULL;
13253 wxJoystick *arg1 = (wxJoystick *) 0 ;
13254 int result;
13255 PyObject * obj0 = 0 ;
13256 char *kwnames[] = {
13257 (char *) "self", NULL
13258 };
13259
13260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
13261 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13262 if (SWIG_arg_fail(1)) SWIG_fail;
13263 {
13264 PyThreadState* __tstate = wxPyBeginAllowThreads();
13265 result = (int)(arg1)->GetMaxButtons();
13266
13267 wxPyEndAllowThreads(__tstate);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 }
13270 {
13271 resultobj = SWIG_From_int(static_cast<int >(result));
13272 }
13273 return resultobj;
13274 fail:
13275 return NULL;
13276 }
13277
13278
13279 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
13280 PyObject *resultobj = NULL;
13281 wxJoystick *arg1 = (wxJoystick *) 0 ;
13282 int result;
13283 PyObject * obj0 = 0 ;
13284 char *kwnames[] = {
13285 (char *) "self", NULL
13286 };
13287
13288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
13289 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13290 if (SWIG_arg_fail(1)) SWIG_fail;
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (int)(arg1)->GetMaxAxes();
13294
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 {
13299 resultobj = SWIG_From_int(static_cast<int >(result));
13300 }
13301 return resultobj;
13302 fail:
13303 return NULL;
13304 }
13305
13306
13307 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
13308 PyObject *resultobj = NULL;
13309 wxJoystick *arg1 = (wxJoystick *) 0 ;
13310 int result;
13311 PyObject * obj0 = 0 ;
13312 char *kwnames[] = {
13313 (char *) "self", NULL
13314 };
13315
13316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
13317 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13318 if (SWIG_arg_fail(1)) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (int)(arg1)->GetPollingMin();
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 {
13327 resultobj = SWIG_From_int(static_cast<int >(result));
13328 }
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
13336 PyObject *resultobj = NULL;
13337 wxJoystick *arg1 = (wxJoystick *) 0 ;
13338 int result;
13339 PyObject * obj0 = 0 ;
13340 char *kwnames[] = {
13341 (char *) "self", NULL
13342 };
13343
13344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
13345 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13346 if (SWIG_arg_fail(1)) SWIG_fail;
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = (int)(arg1)->GetPollingMax();
13350
13351 wxPyEndAllowThreads(__tstate);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 }
13354 {
13355 resultobj = SWIG_From_int(static_cast<int >(result));
13356 }
13357 return resultobj;
13358 fail:
13359 return NULL;
13360 }
13361
13362
13363 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj = NULL;
13365 wxJoystick *arg1 = (wxJoystick *) 0 ;
13366 int result;
13367 PyObject * obj0 = 0 ;
13368 char *kwnames[] = {
13369 (char *) "self", NULL
13370 };
13371
13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
13373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13374 if (SWIG_arg_fail(1)) SWIG_fail;
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = (int)(arg1)->GetRudderMin();
13378
13379 wxPyEndAllowThreads(__tstate);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 }
13382 {
13383 resultobj = SWIG_From_int(static_cast<int >(result));
13384 }
13385 return resultobj;
13386 fail:
13387 return NULL;
13388 }
13389
13390
13391 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj = NULL;
13393 wxJoystick *arg1 = (wxJoystick *) 0 ;
13394 int result;
13395 PyObject * obj0 = 0 ;
13396 char *kwnames[] = {
13397 (char *) "self", NULL
13398 };
13399
13400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
13401 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13402 if (SWIG_arg_fail(1)) SWIG_fail;
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 result = (int)(arg1)->GetRudderMax();
13406
13407 wxPyEndAllowThreads(__tstate);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 {
13411 resultobj = SWIG_From_int(static_cast<int >(result));
13412 }
13413 return resultobj;
13414 fail:
13415 return NULL;
13416 }
13417
13418
13419 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
13420 PyObject *resultobj = NULL;
13421 wxJoystick *arg1 = (wxJoystick *) 0 ;
13422 int result;
13423 PyObject * obj0 = 0 ;
13424 char *kwnames[] = {
13425 (char *) "self", NULL
13426 };
13427
13428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
13429 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13430 if (SWIG_arg_fail(1)) SWIG_fail;
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 result = (int)(arg1)->GetUMin();
13434
13435 wxPyEndAllowThreads(__tstate);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 }
13438 {
13439 resultobj = SWIG_From_int(static_cast<int >(result));
13440 }
13441 return resultobj;
13442 fail:
13443 return NULL;
13444 }
13445
13446
13447 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
13448 PyObject *resultobj = NULL;
13449 wxJoystick *arg1 = (wxJoystick *) 0 ;
13450 int result;
13451 PyObject * obj0 = 0 ;
13452 char *kwnames[] = {
13453 (char *) "self", NULL
13454 };
13455
13456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
13457 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13458 if (SWIG_arg_fail(1)) SWIG_fail;
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (int)(arg1)->GetUMax();
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 {
13467 resultobj = SWIG_From_int(static_cast<int >(result));
13468 }
13469 return resultobj;
13470 fail:
13471 return NULL;
13472 }
13473
13474
13475 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
13476 PyObject *resultobj = NULL;
13477 wxJoystick *arg1 = (wxJoystick *) 0 ;
13478 int result;
13479 PyObject * obj0 = 0 ;
13480 char *kwnames[] = {
13481 (char *) "self", NULL
13482 };
13483
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
13485 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13486 if (SWIG_arg_fail(1)) SWIG_fail;
13487 {
13488 PyThreadState* __tstate = wxPyBeginAllowThreads();
13489 result = (int)(arg1)->GetVMin();
13490
13491 wxPyEndAllowThreads(__tstate);
13492 if (PyErr_Occurred()) SWIG_fail;
13493 }
13494 {
13495 resultobj = SWIG_From_int(static_cast<int >(result));
13496 }
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj = NULL;
13505 wxJoystick *arg1 = (wxJoystick *) 0 ;
13506 int result;
13507 PyObject * obj0 = 0 ;
13508 char *kwnames[] = {
13509 (char *) "self", NULL
13510 };
13511
13512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
13513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13514 if (SWIG_arg_fail(1)) SWIG_fail;
13515 {
13516 PyThreadState* __tstate = wxPyBeginAllowThreads();
13517 result = (int)(arg1)->GetVMax();
13518
13519 wxPyEndAllowThreads(__tstate);
13520 if (PyErr_Occurred()) SWIG_fail;
13521 }
13522 {
13523 resultobj = SWIG_From_int(static_cast<int >(result));
13524 }
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
13532 PyObject *resultobj = NULL;
13533 wxJoystick *arg1 = (wxJoystick *) 0 ;
13534 bool result;
13535 PyObject * obj0 = 0 ;
13536 char *kwnames[] = {
13537 (char *) "self", NULL
13538 };
13539
13540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
13541 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13542 if (SWIG_arg_fail(1)) SWIG_fail;
13543 {
13544 PyThreadState* __tstate = wxPyBeginAllowThreads();
13545 result = (bool)(arg1)->HasRudder();
13546
13547 wxPyEndAllowThreads(__tstate);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 {
13551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13552 }
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
13560 PyObject *resultobj = NULL;
13561 wxJoystick *arg1 = (wxJoystick *) 0 ;
13562 bool result;
13563 PyObject * obj0 = 0 ;
13564 char *kwnames[] = {
13565 (char *) "self", NULL
13566 };
13567
13568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
13569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13570 if (SWIG_arg_fail(1)) SWIG_fail;
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 result = (bool)(arg1)->HasZ();
13574
13575 wxPyEndAllowThreads(__tstate);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 {
13579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13580 }
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj = NULL;
13589 wxJoystick *arg1 = (wxJoystick *) 0 ;
13590 bool result;
13591 PyObject * obj0 = 0 ;
13592 char *kwnames[] = {
13593 (char *) "self", NULL
13594 };
13595
13596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
13597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13598 if (SWIG_arg_fail(1)) SWIG_fail;
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = (bool)(arg1)->HasU();
13602
13603 wxPyEndAllowThreads(__tstate);
13604 if (PyErr_Occurred()) SWIG_fail;
13605 }
13606 {
13607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13608 }
13609 return resultobj;
13610 fail:
13611 return NULL;
13612 }
13613
13614
13615 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
13616 PyObject *resultobj = NULL;
13617 wxJoystick *arg1 = (wxJoystick *) 0 ;
13618 bool result;
13619 PyObject * obj0 = 0 ;
13620 char *kwnames[] = {
13621 (char *) "self", NULL
13622 };
13623
13624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
13625 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13626 if (SWIG_arg_fail(1)) SWIG_fail;
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 result = (bool)(arg1)->HasV();
13630
13631 wxPyEndAllowThreads(__tstate);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 }
13634 {
13635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13636 }
13637 return resultobj;
13638 fail:
13639 return NULL;
13640 }
13641
13642
13643 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj = NULL;
13645 wxJoystick *arg1 = (wxJoystick *) 0 ;
13646 bool result;
13647 PyObject * obj0 = 0 ;
13648 char *kwnames[] = {
13649 (char *) "self", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
13653 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13654 if (SWIG_arg_fail(1)) SWIG_fail;
13655 {
13656 PyThreadState* __tstate = wxPyBeginAllowThreads();
13657 result = (bool)(arg1)->HasPOV();
13658
13659 wxPyEndAllowThreads(__tstate);
13660 if (PyErr_Occurred()) SWIG_fail;
13661 }
13662 {
13663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13664 }
13665 return resultobj;
13666 fail:
13667 return NULL;
13668 }
13669
13670
13671 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj = NULL;
13673 wxJoystick *arg1 = (wxJoystick *) 0 ;
13674 bool result;
13675 PyObject * obj0 = 0 ;
13676 char *kwnames[] = {
13677 (char *) "self", NULL
13678 };
13679
13680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
13681 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13682 if (SWIG_arg_fail(1)) SWIG_fail;
13683 {
13684 PyThreadState* __tstate = wxPyBeginAllowThreads();
13685 result = (bool)(arg1)->HasPOV4Dir();
13686
13687 wxPyEndAllowThreads(__tstate);
13688 if (PyErr_Occurred()) SWIG_fail;
13689 }
13690 {
13691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13692 }
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj = NULL;
13701 wxJoystick *arg1 = (wxJoystick *) 0 ;
13702 bool result;
13703 PyObject * obj0 = 0 ;
13704 char *kwnames[] = {
13705 (char *) "self", NULL
13706 };
13707
13708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
13709 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13710 if (SWIG_arg_fail(1)) SWIG_fail;
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
13713 result = (bool)(arg1)->HasPOVCTS();
13714
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 {
13719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13720 }
13721 return resultobj;
13722 fail:
13723 return NULL;
13724 }
13725
13726
13727 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
13728 PyObject *resultobj = NULL;
13729 wxJoystick *arg1 = (wxJoystick *) 0 ;
13730 wxWindow *arg2 = (wxWindow *) 0 ;
13731 int arg3 = (int) 0 ;
13732 bool result;
13733 PyObject * obj0 = 0 ;
13734 PyObject * obj1 = 0 ;
13735 PyObject * obj2 = 0 ;
13736 char *kwnames[] = {
13737 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
13738 };
13739
13740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
13741 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13742 if (SWIG_arg_fail(1)) SWIG_fail;
13743 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
13744 if (SWIG_arg_fail(2)) SWIG_fail;
13745 if (obj2) {
13746 {
13747 arg3 = static_cast<int >(SWIG_As_int(obj2));
13748 if (SWIG_arg_fail(3)) SWIG_fail;
13749 }
13750 }
13751 {
13752 PyThreadState* __tstate = wxPyBeginAllowThreads();
13753 result = (bool)(arg1)->SetCapture(arg2,arg3);
13754
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 {
13759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13760 }
13761 return resultobj;
13762 fail:
13763 return NULL;
13764 }
13765
13766
13767 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
13768 PyObject *resultobj = NULL;
13769 wxJoystick *arg1 = (wxJoystick *) 0 ;
13770 bool result;
13771 PyObject * obj0 = 0 ;
13772 char *kwnames[] = {
13773 (char *) "self", NULL
13774 };
13775
13776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
13777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13778 if (SWIG_arg_fail(1)) SWIG_fail;
13779 {
13780 PyThreadState* __tstate = wxPyBeginAllowThreads();
13781 result = (bool)(arg1)->ReleaseCapture();
13782
13783 wxPyEndAllowThreads(__tstate);
13784 if (PyErr_Occurred()) SWIG_fail;
13785 }
13786 {
13787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13788 }
13789 return resultobj;
13790 fail:
13791 return NULL;
13792 }
13793
13794
13795 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
13796 PyObject *obj;
13797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13798 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
13799 Py_INCREF(obj);
13800 return Py_BuildValue((char *)"");
13801 }
13802 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13803 PyObject *resultobj = NULL;
13804 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13805 int arg2 = (int) 0 ;
13806 int arg3 = (int) wxJOYSTICK1 ;
13807 int arg4 = (int) 0 ;
13808 wxJoystickEvent *result;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 PyObject * obj2 = 0 ;
13812 PyObject * obj3 = 0 ;
13813 char *kwnames[] = {
13814 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
13815 };
13816
13817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13818 if (obj0) {
13819 {
13820 arg1 = static_cast<wxEventType >(SWIG_As_int(obj0));
13821 if (SWIG_arg_fail(1)) SWIG_fail;
13822 }
13823 }
13824 if (obj1) {
13825 {
13826 arg2 = static_cast<int >(SWIG_As_int(obj1));
13827 if (SWIG_arg_fail(2)) SWIG_fail;
13828 }
13829 }
13830 if (obj2) {
13831 {
13832 arg3 = static_cast<int >(SWIG_As_int(obj2));
13833 if (SWIG_arg_fail(3)) SWIG_fail;
13834 }
13835 }
13836 if (obj3) {
13837 {
13838 arg4 = static_cast<int >(SWIG_As_int(obj3));
13839 if (SWIG_arg_fail(4)) SWIG_fail;
13840 }
13841 }
13842 {
13843 PyThreadState* __tstate = wxPyBeginAllowThreads();
13844 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
13845
13846 wxPyEndAllowThreads(__tstate);
13847 if (PyErr_Occurred()) SWIG_fail;
13848 }
13849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
13850 return resultobj;
13851 fail:
13852 return NULL;
13853 }
13854
13855
13856 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13857 PyObject *resultobj = NULL;
13858 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13859 wxPoint result;
13860 PyObject * obj0 = 0 ;
13861 char *kwnames[] = {
13862 (char *) "self", NULL
13863 };
13864
13865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
13866 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13867 if (SWIG_arg_fail(1)) SWIG_fail;
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 result = ((wxJoystickEvent const *)arg1)->GetPosition();
13871
13872 wxPyEndAllowThreads(__tstate);
13873 if (PyErr_Occurred()) SWIG_fail;
13874 }
13875 {
13876 wxPoint * resultptr;
13877 resultptr = new wxPoint(static_cast<wxPoint & >(result));
13878 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
13879 }
13880 return resultobj;
13881 fail:
13882 return NULL;
13883 }
13884
13885
13886 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj = NULL;
13888 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13889 int result;
13890 PyObject * obj0 = 0 ;
13891 char *kwnames[] = {
13892 (char *) "self", NULL
13893 };
13894
13895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
13896 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13897 if (SWIG_arg_fail(1)) SWIG_fail;
13898 {
13899 PyThreadState* __tstate = wxPyBeginAllowThreads();
13900 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
13901
13902 wxPyEndAllowThreads(__tstate);
13903 if (PyErr_Occurred()) SWIG_fail;
13904 }
13905 {
13906 resultobj = SWIG_From_int(static_cast<int >(result));
13907 }
13908 return resultobj;
13909 fail:
13910 return NULL;
13911 }
13912
13913
13914 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj = NULL;
13916 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13917 int result;
13918 PyObject * obj0 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
13924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13925 if (SWIG_arg_fail(1)) SWIG_fail;
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
13929
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 {
13934 resultobj = SWIG_From_int(static_cast<int >(result));
13935 }
13936 return resultobj;
13937 fail:
13938 return NULL;
13939 }
13940
13941
13942 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
13943 PyObject *resultobj = NULL;
13944 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13945 int result;
13946 PyObject * obj0 = 0 ;
13947 char *kwnames[] = {
13948 (char *) "self", NULL
13949 };
13950
13951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
13952 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13953 if (SWIG_arg_fail(1)) SWIG_fail;
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 {
13962 resultobj = SWIG_From_int(static_cast<int >(result));
13963 }
13964 return resultobj;
13965 fail:
13966 return NULL;
13967 }
13968
13969
13970 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
13971 PyObject *resultobj = NULL;
13972 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13973 int result;
13974 PyObject * obj0 = 0 ;
13975 char *kwnames[] = {
13976 (char *) "self", NULL
13977 };
13978
13979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
13980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13981 if (SWIG_arg_fail(1)) SWIG_fail;
13982 {
13983 PyThreadState* __tstate = wxPyBeginAllowThreads();
13984 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
13985
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 {
13990 resultobj = SWIG_From_int(static_cast<int >(result));
13991 }
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj = NULL;
14000 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14001 int arg2 ;
14002 PyObject * obj0 = 0 ;
14003 PyObject * obj1 = 0 ;
14004 char *kwnames[] = {
14005 (char *) "self",(char *) "stick", NULL
14006 };
14007
14008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
14009 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14010 if (SWIG_arg_fail(1)) SWIG_fail;
14011 {
14012 arg2 = static_cast<int >(SWIG_As_int(obj1));
14013 if (SWIG_arg_fail(2)) SWIG_fail;
14014 }
14015 {
14016 PyThreadState* __tstate = wxPyBeginAllowThreads();
14017 (arg1)->SetJoystick(arg2);
14018
14019 wxPyEndAllowThreads(__tstate);
14020 if (PyErr_Occurred()) SWIG_fail;
14021 }
14022 Py_INCREF(Py_None); resultobj = Py_None;
14023 return resultobj;
14024 fail:
14025 return NULL;
14026 }
14027
14028
14029 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
14030 PyObject *resultobj = NULL;
14031 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14032 int arg2 ;
14033 PyObject * obj0 = 0 ;
14034 PyObject * obj1 = 0 ;
14035 char *kwnames[] = {
14036 (char *) "self",(char *) "state", NULL
14037 };
14038
14039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
14040 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14041 if (SWIG_arg_fail(1)) SWIG_fail;
14042 {
14043 arg2 = static_cast<int >(SWIG_As_int(obj1));
14044 if (SWIG_arg_fail(2)) SWIG_fail;
14045 }
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 (arg1)->SetButtonState(arg2);
14049
14050 wxPyEndAllowThreads(__tstate);
14051 if (PyErr_Occurred()) SWIG_fail;
14052 }
14053 Py_INCREF(Py_None); resultobj = Py_None;
14054 return resultobj;
14055 fail:
14056 return NULL;
14057 }
14058
14059
14060 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
14061 PyObject *resultobj = NULL;
14062 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14063 int arg2 ;
14064 PyObject * obj0 = 0 ;
14065 PyObject * obj1 = 0 ;
14066 char *kwnames[] = {
14067 (char *) "self",(char *) "change", NULL
14068 };
14069
14070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
14071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14072 if (SWIG_arg_fail(1)) SWIG_fail;
14073 {
14074 arg2 = static_cast<int >(SWIG_As_int(obj1));
14075 if (SWIG_arg_fail(2)) SWIG_fail;
14076 }
14077 {
14078 PyThreadState* __tstate = wxPyBeginAllowThreads();
14079 (arg1)->SetButtonChange(arg2);
14080
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 Py_INCREF(Py_None); resultobj = Py_None;
14085 return resultobj;
14086 fail:
14087 return NULL;
14088 }
14089
14090
14091 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14092 PyObject *resultobj = NULL;
14093 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14094 wxPoint *arg2 = 0 ;
14095 wxPoint temp2 ;
14096 PyObject * obj0 = 0 ;
14097 PyObject * obj1 = 0 ;
14098 char *kwnames[] = {
14099 (char *) "self",(char *) "pos", NULL
14100 };
14101
14102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
14103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14104 if (SWIG_arg_fail(1)) SWIG_fail;
14105 {
14106 arg2 = &temp2;
14107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14108 }
14109 {
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 (arg1)->SetPosition((wxPoint const &)*arg2);
14112
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
14116 Py_INCREF(Py_None); resultobj = Py_None;
14117 return resultobj;
14118 fail:
14119 return NULL;
14120 }
14121
14122
14123 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14124 PyObject *resultobj = NULL;
14125 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14126 int arg2 ;
14127 PyObject * obj0 = 0 ;
14128 PyObject * obj1 = 0 ;
14129 char *kwnames[] = {
14130 (char *) "self",(char *) "zPos", NULL
14131 };
14132
14133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
14134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14135 if (SWIG_arg_fail(1)) SWIG_fail;
14136 {
14137 arg2 = static_cast<int >(SWIG_As_int(obj1));
14138 if (SWIG_arg_fail(2)) SWIG_fail;
14139 }
14140 {
14141 PyThreadState* __tstate = wxPyBeginAllowThreads();
14142 (arg1)->SetZPosition(arg2);
14143
14144 wxPyEndAllowThreads(__tstate);
14145 if (PyErr_Occurred()) SWIG_fail;
14146 }
14147 Py_INCREF(Py_None); resultobj = Py_None;
14148 return resultobj;
14149 fail:
14150 return NULL;
14151 }
14152
14153
14154 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
14155 PyObject *resultobj = NULL;
14156 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14157 bool result;
14158 PyObject * obj0 = 0 ;
14159 char *kwnames[] = {
14160 (char *) "self", NULL
14161 };
14162
14163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
14164 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14165 if (SWIG_arg_fail(1)) SWIG_fail;
14166 {
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
14169
14170 wxPyEndAllowThreads(__tstate);
14171 if (PyErr_Occurred()) SWIG_fail;
14172 }
14173 {
14174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14175 }
14176 return resultobj;
14177 fail:
14178 return NULL;
14179 }
14180
14181
14182 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
14183 PyObject *resultobj = NULL;
14184 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14185 bool result;
14186 PyObject * obj0 = 0 ;
14187 char *kwnames[] = {
14188 (char *) "self", NULL
14189 };
14190
14191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
14192 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14193 if (SWIG_arg_fail(1)) SWIG_fail;
14194 {
14195 PyThreadState* __tstate = wxPyBeginAllowThreads();
14196 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
14197
14198 wxPyEndAllowThreads(__tstate);
14199 if (PyErr_Occurred()) SWIG_fail;
14200 }
14201 {
14202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14203 }
14204 return resultobj;
14205 fail:
14206 return NULL;
14207 }
14208
14209
14210 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
14211 PyObject *resultobj = NULL;
14212 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14213 bool result;
14214 PyObject * obj0 = 0 ;
14215 char *kwnames[] = {
14216 (char *) "self", NULL
14217 };
14218
14219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
14220 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14221 if (SWIG_arg_fail(1)) SWIG_fail;
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
14225
14226 wxPyEndAllowThreads(__tstate);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 {
14230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14231 }
14232 return resultobj;
14233 fail:
14234 return NULL;
14235 }
14236
14237
14238 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
14239 PyObject *resultobj = NULL;
14240 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14241 int arg2 = (int) wxJOY_BUTTON_ANY ;
14242 bool result;
14243 PyObject * obj0 = 0 ;
14244 PyObject * obj1 = 0 ;
14245 char *kwnames[] = {
14246 (char *) "self",(char *) "but", NULL
14247 };
14248
14249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
14250 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14251 if (SWIG_arg_fail(1)) SWIG_fail;
14252 if (obj1) {
14253 {
14254 arg2 = static_cast<int >(SWIG_As_int(obj1));
14255 if (SWIG_arg_fail(2)) SWIG_fail;
14256 }
14257 }
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
14261
14262 wxPyEndAllowThreads(__tstate);
14263 if (PyErr_Occurred()) SWIG_fail;
14264 }
14265 {
14266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14267 }
14268 return resultobj;
14269 fail:
14270 return NULL;
14271 }
14272
14273
14274 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
14275 PyObject *resultobj = NULL;
14276 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14277 int arg2 = (int) wxJOY_BUTTON_ANY ;
14278 bool result;
14279 PyObject * obj0 = 0 ;
14280 PyObject * obj1 = 0 ;
14281 char *kwnames[] = {
14282 (char *) "self",(char *) "but", NULL
14283 };
14284
14285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
14286 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14287 if (SWIG_arg_fail(1)) SWIG_fail;
14288 if (obj1) {
14289 {
14290 arg2 = static_cast<int >(SWIG_As_int(obj1));
14291 if (SWIG_arg_fail(2)) SWIG_fail;
14292 }
14293 }
14294 {
14295 PyThreadState* __tstate = wxPyBeginAllowThreads();
14296 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
14297
14298 wxPyEndAllowThreads(__tstate);
14299 if (PyErr_Occurred()) SWIG_fail;
14300 }
14301 {
14302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14303 }
14304 return resultobj;
14305 fail:
14306 return NULL;
14307 }
14308
14309
14310 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
14311 PyObject *resultobj = NULL;
14312 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14313 int arg2 = (int) wxJOY_BUTTON_ANY ;
14314 bool result;
14315 PyObject * obj0 = 0 ;
14316 PyObject * obj1 = 0 ;
14317 char *kwnames[] = {
14318 (char *) "self",(char *) "but", NULL
14319 };
14320
14321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
14322 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14323 if (SWIG_arg_fail(1)) SWIG_fail;
14324 if (obj1) {
14325 {
14326 arg2 = static_cast<int >(SWIG_As_int(obj1));
14327 if (SWIG_arg_fail(2)) SWIG_fail;
14328 }
14329 }
14330 {
14331 PyThreadState* __tstate = wxPyBeginAllowThreads();
14332 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
14333
14334 wxPyEndAllowThreads(__tstate);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 }
14337 {
14338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14339 }
14340 return resultobj;
14341 fail:
14342 return NULL;
14343 }
14344
14345
14346 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
14347 PyObject *obj;
14348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14349 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
14350 Py_INCREF(obj);
14351 return Py_BuildValue((char *)"");
14352 }
14353 static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
14354 PyObject *resultobj = NULL;
14355 wxString const &arg1_defvalue = wxPyEmptyString ;
14356 wxString *arg1 = (wxString *) &arg1_defvalue ;
14357 wxSound *result;
14358 bool temp1 = false ;
14359 PyObject * obj0 = 0 ;
14360 char *kwnames[] = {
14361 (char *) "fileName", NULL
14362 };
14363
14364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
14365 if (obj0) {
14366 {
14367 arg1 = wxString_in_helper(obj0);
14368 if (arg1 == NULL) SWIG_fail;
14369 temp1 = true;
14370 }
14371 }
14372 {
14373 if (!wxPyCheckForApp()) SWIG_fail;
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = (wxSound *)new_wxSound((wxString const &)*arg1);
14376
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
14381 {
14382 if (temp1)
14383 delete arg1;
14384 }
14385 return resultobj;
14386 fail:
14387 {
14388 if (temp1)
14389 delete arg1;
14390 }
14391 return NULL;
14392 }
14393
14394
14395 static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj = NULL;
14397 PyObject *arg1 = (PyObject *) 0 ;
14398 wxSound *result;
14399 PyObject * obj0 = 0 ;
14400 char *kwnames[] = {
14401 (char *) "data", NULL
14402 };
14403
14404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
14405 arg1 = obj0;
14406 {
14407 if (!wxPyCheckForApp()) SWIG_fail;
14408 PyThreadState* __tstate = wxPyBeginAllowThreads();
14409 result = (wxSound *)new_wxSound(arg1);
14410
14411 wxPyEndAllowThreads(__tstate);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
14415 return resultobj;
14416 fail:
14417 return NULL;
14418 }
14419
14420
14421 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
14422 PyObject *resultobj = NULL;
14423 wxSound *arg1 = (wxSound *) 0 ;
14424 PyObject * obj0 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self", NULL
14427 };
14428
14429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
14430 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14431 if (SWIG_arg_fail(1)) SWIG_fail;
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 delete arg1;
14435
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 Py_INCREF(Py_None); resultobj = Py_None;
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj = NULL;
14448 wxSound *arg1 = (wxSound *) 0 ;
14449 wxString *arg2 = 0 ;
14450 bool result;
14451 bool temp2 = false ;
14452 PyObject * obj0 = 0 ;
14453 PyObject * obj1 = 0 ;
14454 char *kwnames[] = {
14455 (char *) "self",(char *) "fileName", NULL
14456 };
14457
14458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
14459 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14460 if (SWIG_arg_fail(1)) SWIG_fail;
14461 {
14462 arg2 = wxString_in_helper(obj1);
14463 if (arg2 == NULL) SWIG_fail;
14464 temp2 = true;
14465 }
14466 {
14467 PyThreadState* __tstate = wxPyBeginAllowThreads();
14468 result = (bool)(arg1)->Create((wxString const &)*arg2);
14469
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 {
14474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14475 }
14476 {
14477 if (temp2)
14478 delete arg2;
14479 }
14480 return resultobj;
14481 fail:
14482 {
14483 if (temp2)
14484 delete arg2;
14485 }
14486 return NULL;
14487 }
14488
14489
14490 static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
14491 PyObject *resultobj = NULL;
14492 wxSound *arg1 = (wxSound *) 0 ;
14493 PyObject *arg2 = (PyObject *) 0 ;
14494 bool result;
14495 PyObject * obj0 = 0 ;
14496 PyObject * obj1 = 0 ;
14497 char *kwnames[] = {
14498 (char *) "self",(char *) "data", NULL
14499 };
14500
14501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
14502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14503 if (SWIG_arg_fail(1)) SWIG_fail;
14504 arg2 = obj1;
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 result = (bool)wxSound_CreateFromData(arg1,arg2);
14508
14509 wxPyEndAllowThreads(__tstate);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 }
14512 {
14513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14514 }
14515 return resultobj;
14516 fail:
14517 return NULL;
14518 }
14519
14520
14521 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
14522 PyObject *resultobj = NULL;
14523 wxSound *arg1 = (wxSound *) 0 ;
14524 bool result;
14525 PyObject * obj0 = 0 ;
14526 char *kwnames[] = {
14527 (char *) "self", NULL
14528 };
14529
14530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
14531 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14532 if (SWIG_arg_fail(1)) SWIG_fail;
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 result = (bool)(arg1)->IsOk();
14536
14537 wxPyEndAllowThreads(__tstate);
14538 if (PyErr_Occurred()) SWIG_fail;
14539 }
14540 {
14541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14542 }
14543 return resultobj;
14544 fail:
14545 return NULL;
14546 }
14547
14548
14549 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
14550 PyObject *resultobj = NULL;
14551 wxSound *arg1 = (wxSound *) 0 ;
14552 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
14553 bool result;
14554 PyObject * obj0 = 0 ;
14555 PyObject * obj1 = 0 ;
14556 char *kwnames[] = {
14557 (char *) "self",(char *) "flags", NULL
14558 };
14559
14560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
14561 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14562 if (SWIG_arg_fail(1)) SWIG_fail;
14563 if (obj1) {
14564 {
14565 arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1));
14566 if (SWIG_arg_fail(2)) SWIG_fail;
14567 }
14568 }
14569 {
14570 if (!wxPyCheckForApp()) SWIG_fail;
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 result = (bool)((wxSound const *)arg1)->Play(arg2);
14573
14574 wxPyEndAllowThreads(__tstate);
14575 if (PyErr_Occurred()) SWIG_fail;
14576 }
14577 {
14578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14579 }
14580 return resultobj;
14581 fail:
14582 return NULL;
14583 }
14584
14585
14586 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj = NULL;
14588 wxString *arg1 = 0 ;
14589 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
14590 bool result;
14591 bool temp1 = false ;
14592 PyObject * obj0 = 0 ;
14593 PyObject * obj1 = 0 ;
14594 char *kwnames[] = {
14595 (char *) "filename",(char *) "flags", NULL
14596 };
14597
14598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
14599 {
14600 arg1 = wxString_in_helper(obj0);
14601 if (arg1 == NULL) SWIG_fail;
14602 temp1 = true;
14603 }
14604 if (obj1) {
14605 {
14606 arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1));
14607 if (SWIG_arg_fail(2)) SWIG_fail;
14608 }
14609 }
14610 {
14611 if (!wxPyCheckForApp()) SWIG_fail;
14612 PyThreadState* __tstate = wxPyBeginAllowThreads();
14613 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
14614
14615 wxPyEndAllowThreads(__tstate);
14616 if (PyErr_Occurred()) SWIG_fail;
14617 }
14618 {
14619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14620 }
14621 {
14622 if (temp1)
14623 delete arg1;
14624 }
14625 return resultobj;
14626 fail:
14627 {
14628 if (temp1)
14629 delete arg1;
14630 }
14631 return NULL;
14632 }
14633
14634
14635 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
14636 PyObject *resultobj = NULL;
14637 char *kwnames[] = {
14638 NULL
14639 };
14640
14641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
14642 {
14643 if (!wxPyCheckForApp()) SWIG_fail;
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 wxSound::Stop();
14646
14647 wxPyEndAllowThreads(__tstate);
14648 if (PyErr_Occurred()) SWIG_fail;
14649 }
14650 Py_INCREF(Py_None); resultobj = Py_None;
14651 return resultobj;
14652 fail:
14653 return NULL;
14654 }
14655
14656
14657 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
14658 PyObject *obj;
14659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14660 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
14661 Py_INCREF(obj);
14662 return Py_BuildValue((char *)"");
14663 }
14664 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj = NULL;
14666 wxString *arg1 = 0 ;
14667 wxString *arg2 = 0 ;
14668 wxString *arg3 = 0 ;
14669 wxString *arg4 = 0 ;
14670 wxFileTypeInfo *result;
14671 bool temp1 = false ;
14672 bool temp2 = false ;
14673 bool temp3 = false ;
14674 bool temp4 = false ;
14675 PyObject * obj0 = 0 ;
14676 PyObject * obj1 = 0 ;
14677 PyObject * obj2 = 0 ;
14678 PyObject * obj3 = 0 ;
14679 char *kwnames[] = {
14680 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
14681 };
14682
14683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14684 {
14685 arg1 = wxString_in_helper(obj0);
14686 if (arg1 == NULL) SWIG_fail;
14687 temp1 = true;
14688 }
14689 {
14690 arg2 = wxString_in_helper(obj1);
14691 if (arg2 == NULL) SWIG_fail;
14692 temp2 = true;
14693 }
14694 {
14695 arg3 = wxString_in_helper(obj2);
14696 if (arg3 == NULL) SWIG_fail;
14697 temp3 = true;
14698 }
14699 {
14700 arg4 = wxString_in_helper(obj3);
14701 if (arg4 == NULL) SWIG_fail;
14702 temp4 = true;
14703 }
14704 {
14705 PyThreadState* __tstate = wxPyBeginAllowThreads();
14706 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
14707
14708 wxPyEndAllowThreads(__tstate);
14709 if (PyErr_Occurred()) SWIG_fail;
14710 }
14711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14712 {
14713 if (temp1)
14714 delete arg1;
14715 }
14716 {
14717 if (temp2)
14718 delete arg2;
14719 }
14720 {
14721 if (temp3)
14722 delete arg3;
14723 }
14724 {
14725 if (temp4)
14726 delete arg4;
14727 }
14728 return resultobj;
14729 fail:
14730 {
14731 if (temp1)
14732 delete arg1;
14733 }
14734 {
14735 if (temp2)
14736 delete arg2;
14737 }
14738 {
14739 if (temp3)
14740 delete arg3;
14741 }
14742 {
14743 if (temp4)
14744 delete arg4;
14745 }
14746 return NULL;
14747 }
14748
14749
14750 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj = NULL;
14752 wxArrayString *arg1 = 0 ;
14753 wxFileTypeInfo *result;
14754 bool temp1 = false ;
14755 PyObject * obj0 = 0 ;
14756 char *kwnames[] = {
14757 (char *) "sArray", NULL
14758 };
14759
14760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
14761 {
14762 if (! PySequence_Check(obj0)) {
14763 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
14764 SWIG_fail;
14765 }
14766 arg1 = new wxArrayString;
14767 temp1 = true;
14768 int i, len=PySequence_Length(obj0);
14769 for (i=0; i<len; i++) {
14770 PyObject* item = PySequence_GetItem(obj0, i);
14771 wxString* s = wxString_in_helper(item);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 arg1->Add(*s);
14774 delete s;
14775 Py_DECREF(item);
14776 }
14777 }
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
14780 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
14781
14782 wxPyEndAllowThreads(__tstate);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 }
14785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14786 {
14787 if (temp1) delete arg1;
14788 }
14789 return resultobj;
14790 fail:
14791 {
14792 if (temp1) delete arg1;
14793 }
14794 return NULL;
14795 }
14796
14797
14798 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14799 PyObject *resultobj = NULL;
14800 wxFileTypeInfo *result;
14801 char *kwnames[] = {
14802 NULL
14803 };
14804
14805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
14806 {
14807 PyThreadState* __tstate = wxPyBeginAllowThreads();
14808 result = (wxFileTypeInfo *)new wxFileTypeInfo();
14809
14810 wxPyEndAllowThreads(__tstate);
14811 if (PyErr_Occurred()) SWIG_fail;
14812 }
14813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14814 return resultobj;
14815 fail:
14816 return NULL;
14817 }
14818
14819
14820 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
14821 PyObject *resultobj = NULL;
14822 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14823 bool result;
14824 PyObject * obj0 = 0 ;
14825 char *kwnames[] = {
14826 (char *) "self", NULL
14827 };
14828
14829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
14830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14831 if (SWIG_arg_fail(1)) SWIG_fail;
14832 {
14833 PyThreadState* __tstate = wxPyBeginAllowThreads();
14834 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
14835
14836 wxPyEndAllowThreads(__tstate);
14837 if (PyErr_Occurred()) SWIG_fail;
14838 }
14839 {
14840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14841 }
14842 return resultobj;
14843 fail:
14844 return NULL;
14845 }
14846
14847
14848 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14849 PyObject *resultobj = NULL;
14850 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14851 wxString *arg2 = 0 ;
14852 int arg3 = (int) 0 ;
14853 bool temp2 = false ;
14854 PyObject * obj0 = 0 ;
14855 PyObject * obj1 = 0 ;
14856 PyObject * obj2 = 0 ;
14857 char *kwnames[] = {
14858 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
14859 };
14860
14861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14862 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14863 if (SWIG_arg_fail(1)) SWIG_fail;
14864 {
14865 arg2 = wxString_in_helper(obj1);
14866 if (arg2 == NULL) SWIG_fail;
14867 temp2 = true;
14868 }
14869 if (obj2) {
14870 {
14871 arg3 = static_cast<int >(SWIG_As_int(obj2));
14872 if (SWIG_arg_fail(3)) SWIG_fail;
14873 }
14874 }
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 (arg1)->SetIcon((wxString const &)*arg2,arg3);
14878
14879 wxPyEndAllowThreads(__tstate);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 }
14882 Py_INCREF(Py_None); resultobj = Py_None;
14883 {
14884 if (temp2)
14885 delete arg2;
14886 }
14887 return resultobj;
14888 fail:
14889 {
14890 if (temp2)
14891 delete arg2;
14892 }
14893 return NULL;
14894 }
14895
14896
14897 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
14898 PyObject *resultobj = NULL;
14899 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14900 wxString *arg2 = 0 ;
14901 bool temp2 = false ;
14902 PyObject * obj0 = 0 ;
14903 PyObject * obj1 = 0 ;
14904 char *kwnames[] = {
14905 (char *) "self",(char *) "shortDesc", NULL
14906 };
14907
14908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
14909 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14910 if (SWIG_arg_fail(1)) SWIG_fail;
14911 {
14912 arg2 = wxString_in_helper(obj1);
14913 if (arg2 == NULL) SWIG_fail;
14914 temp2 = true;
14915 }
14916 {
14917 PyThreadState* __tstate = wxPyBeginAllowThreads();
14918 (arg1)->SetShortDesc((wxString const &)*arg2);
14919
14920 wxPyEndAllowThreads(__tstate);
14921 if (PyErr_Occurred()) SWIG_fail;
14922 }
14923 Py_INCREF(Py_None); resultobj = Py_None;
14924 {
14925 if (temp2)
14926 delete arg2;
14927 }
14928 return resultobj;
14929 fail:
14930 {
14931 if (temp2)
14932 delete arg2;
14933 }
14934 return NULL;
14935 }
14936
14937
14938 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
14939 PyObject *resultobj = NULL;
14940 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14941 wxString *result;
14942 PyObject * obj0 = 0 ;
14943 char *kwnames[] = {
14944 (char *) "self", NULL
14945 };
14946
14947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
14948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14949 if (SWIG_arg_fail(1)) SWIG_fail;
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 {
14953 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
14954 result = (wxString *) &_result_ref;
14955 }
14956
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 {
14961 #if wxUSE_UNICODE
14962 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14963 #else
14964 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14965 #endif
14966 }
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj = NULL;
14975 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14976 wxString *result;
14977 PyObject * obj0 = 0 ;
14978 char *kwnames[] = {
14979 (char *) "self", NULL
14980 };
14981
14982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
14983 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14984 if (SWIG_arg_fail(1)) SWIG_fail;
14985 {
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 {
14988 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
14989 result = (wxString *) &_result_ref;
14990 }
14991
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 {
14996 #if wxUSE_UNICODE
14997 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14998 #else
14999 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15000 #endif
15001 }
15002 return resultobj;
15003 fail:
15004 return NULL;
15005 }
15006
15007
15008 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15009 PyObject *resultobj = NULL;
15010 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15011 wxString *result;
15012 PyObject * obj0 = 0 ;
15013 char *kwnames[] = {
15014 (char *) "self", NULL
15015 };
15016
15017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
15018 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15019 if (SWIG_arg_fail(1)) SWIG_fail;
15020 {
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 {
15023 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
15024 result = (wxString *) &_result_ref;
15025 }
15026
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 {
15031 #if wxUSE_UNICODE
15032 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15033 #else
15034 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15035 #endif
15036 }
15037 return resultobj;
15038 fail:
15039 return NULL;
15040 }
15041
15042
15043 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
15044 PyObject *resultobj = NULL;
15045 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15046 wxString *result;
15047 PyObject * obj0 = 0 ;
15048 char *kwnames[] = {
15049 (char *) "self", NULL
15050 };
15051
15052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
15053 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15054 if (SWIG_arg_fail(1)) SWIG_fail;
15055 {
15056 PyThreadState* __tstate = wxPyBeginAllowThreads();
15057 {
15058 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
15059 result = (wxString *) &_result_ref;
15060 }
15061
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 {
15066 #if wxUSE_UNICODE
15067 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15068 #else
15069 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15070 #endif
15071 }
15072 return resultobj;
15073 fail:
15074 return NULL;
15075 }
15076
15077
15078 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
15079 PyObject *resultobj = NULL;
15080 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15081 wxString *result;
15082 PyObject * obj0 = 0 ;
15083 char *kwnames[] = {
15084 (char *) "self", NULL
15085 };
15086
15087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
15088 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15089 if (SWIG_arg_fail(1)) SWIG_fail;
15090 {
15091 PyThreadState* __tstate = wxPyBeginAllowThreads();
15092 {
15093 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
15094 result = (wxString *) &_result_ref;
15095 }
15096
15097 wxPyEndAllowThreads(__tstate);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 }
15100 {
15101 #if wxUSE_UNICODE
15102 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15103 #else
15104 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15105 #endif
15106 }
15107 return resultobj;
15108 fail:
15109 return NULL;
15110 }
15111
15112
15113 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj = NULL;
15115 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15116 wxArrayString *result;
15117 PyObject * obj0 = 0 ;
15118 char *kwnames[] = {
15119 (char *) "self", NULL
15120 };
15121
15122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
15123 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15124 if (SWIG_arg_fail(1)) SWIG_fail;
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 {
15128 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
15129 result = (wxArrayString *) &_result_ref;
15130 }
15131
15132 wxPyEndAllowThreads(__tstate);
15133 if (PyErr_Occurred()) SWIG_fail;
15134 }
15135 {
15136 resultobj = wxArrayString2PyList_helper(*result);
15137 }
15138 return resultobj;
15139 fail:
15140 return NULL;
15141 }
15142
15143
15144 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
15145 PyObject *resultobj = NULL;
15146 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15147 int result;
15148 PyObject * obj0 = 0 ;
15149 char *kwnames[] = {
15150 (char *) "self", NULL
15151 };
15152
15153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
15154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15155 if (SWIG_arg_fail(1)) SWIG_fail;
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
15159
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 {
15164 resultobj = SWIG_From_int(static_cast<int >(result));
15165 }
15166 return resultobj;
15167 fail:
15168 return NULL;
15169 }
15170
15171
15172 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
15173 PyObject *resultobj = NULL;
15174 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15175 wxString *result;
15176 PyObject * obj0 = 0 ;
15177 char *kwnames[] = {
15178 (char *) "self", NULL
15179 };
15180
15181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
15182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15183 if (SWIG_arg_fail(1)) SWIG_fail;
15184 {
15185 PyThreadState* __tstate = wxPyBeginAllowThreads();
15186 {
15187 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
15188 result = (wxString *) &_result_ref;
15189 }
15190
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 {
15195 #if wxUSE_UNICODE
15196 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15197 #else
15198 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15199 #endif
15200 }
15201 return resultobj;
15202 fail:
15203 return NULL;
15204 }
15205
15206
15207 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
15208 PyObject *resultobj = NULL;
15209 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15210 int result;
15211 PyObject * obj0 = 0 ;
15212 char *kwnames[] = {
15213 (char *) "self", NULL
15214 };
15215
15216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
15217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15218 if (SWIG_arg_fail(1)) SWIG_fail;
15219 {
15220 PyThreadState* __tstate = wxPyBeginAllowThreads();
15221 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
15222
15223 wxPyEndAllowThreads(__tstate);
15224 if (PyErr_Occurred()) SWIG_fail;
15225 }
15226 {
15227 resultobj = SWIG_From_int(static_cast<int >(result));
15228 }
15229 return resultobj;
15230 fail:
15231 return NULL;
15232 }
15233
15234
15235 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
15236 PyObject *obj;
15237 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15238 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
15239 Py_INCREF(obj);
15240 return Py_BuildValue((char *)"");
15241 }
15242 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
15243 PyObject *resultobj = NULL;
15244 wxFileTypeInfo *arg1 = 0 ;
15245 wxFileType *result;
15246 PyObject * obj0 = 0 ;
15247 char *kwnames[] = {
15248 (char *) "ftInfo", NULL
15249 };
15250
15251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
15252 {
15253 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15254 if (SWIG_arg_fail(1)) SWIG_fail;
15255 if (arg1 == NULL) {
15256 SWIG_null_ref("wxFileTypeInfo");
15257 }
15258 if (SWIG_arg_fail(1)) SWIG_fail;
15259 }
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
15268 return resultobj;
15269 fail:
15270 return NULL;
15271 }
15272
15273
15274 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
15275 PyObject *resultobj = NULL;
15276 wxFileType *arg1 = (wxFileType *) 0 ;
15277 PyObject * obj0 = 0 ;
15278 char *kwnames[] = {
15279 (char *) "self", NULL
15280 };
15281
15282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
15283 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15284 if (SWIG_arg_fail(1)) SWIG_fail;
15285 {
15286 PyThreadState* __tstate = wxPyBeginAllowThreads();
15287 delete arg1;
15288
15289 wxPyEndAllowThreads(__tstate);
15290 if (PyErr_Occurred()) SWIG_fail;
15291 }
15292 Py_INCREF(Py_None); resultobj = Py_None;
15293 return resultobj;
15294 fail:
15295 return NULL;
15296 }
15297
15298
15299 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
15300 PyObject *resultobj = NULL;
15301 wxFileType *arg1 = (wxFileType *) 0 ;
15302 PyObject *result;
15303 PyObject * obj0 = 0 ;
15304 char *kwnames[] = {
15305 (char *) "self", NULL
15306 };
15307
15308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
15309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15310 if (SWIG_arg_fail(1)) SWIG_fail;
15311 {
15312 PyThreadState* __tstate = wxPyBeginAllowThreads();
15313 result = (PyObject *)wxFileType_GetMimeType(arg1);
15314
15315 wxPyEndAllowThreads(__tstate);
15316 if (PyErr_Occurred()) SWIG_fail;
15317 }
15318 resultobj = result;
15319 return resultobj;
15320 fail:
15321 return NULL;
15322 }
15323
15324
15325 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
15326 PyObject *resultobj = NULL;
15327 wxFileType *arg1 = (wxFileType *) 0 ;
15328 PyObject *result;
15329 PyObject * obj0 = 0 ;
15330 char *kwnames[] = {
15331 (char *) "self", NULL
15332 };
15333
15334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
15335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15336 if (SWIG_arg_fail(1)) SWIG_fail;
15337 {
15338 PyThreadState* __tstate = wxPyBeginAllowThreads();
15339 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
15340
15341 wxPyEndAllowThreads(__tstate);
15342 if (PyErr_Occurred()) SWIG_fail;
15343 }
15344 resultobj = result;
15345 return resultobj;
15346 fail:
15347 return NULL;
15348 }
15349
15350
15351 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
15352 PyObject *resultobj = NULL;
15353 wxFileType *arg1 = (wxFileType *) 0 ;
15354 PyObject *result;
15355 PyObject * obj0 = 0 ;
15356 char *kwnames[] = {
15357 (char *) "self", NULL
15358 };
15359
15360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
15361 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15362 if (SWIG_arg_fail(1)) SWIG_fail;
15363 {
15364 PyThreadState* __tstate = wxPyBeginAllowThreads();
15365 result = (PyObject *)wxFileType_GetExtensions(arg1);
15366
15367 wxPyEndAllowThreads(__tstate);
15368 if (PyErr_Occurred()) SWIG_fail;
15369 }
15370 resultobj = result;
15371 return resultobj;
15372 fail:
15373 return NULL;
15374 }
15375
15376
15377 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
15378 PyObject *resultobj = NULL;
15379 wxFileType *arg1 = (wxFileType *) 0 ;
15380 wxIcon *result;
15381 PyObject * obj0 = 0 ;
15382 char *kwnames[] = {
15383 (char *) "self", NULL
15384 };
15385
15386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
15387 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15388 if (SWIG_arg_fail(1)) SWIG_fail;
15389 {
15390 PyThreadState* __tstate = wxPyBeginAllowThreads();
15391 result = (wxIcon *)wxFileType_GetIcon(arg1);
15392
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
15397 return resultobj;
15398 fail:
15399 return NULL;
15400 }
15401
15402
15403 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
15404 PyObject *resultobj = NULL;
15405 wxFileType *arg1 = (wxFileType *) 0 ;
15406 PyObject *result;
15407 PyObject * obj0 = 0 ;
15408 char *kwnames[] = {
15409 (char *) "self", NULL
15410 };
15411
15412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
15413 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15414 if (SWIG_arg_fail(1)) SWIG_fail;
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
15417 result = (PyObject *)wxFileType_GetIconInfo(arg1);
15418
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 resultobj = result;
15423 return resultobj;
15424 fail:
15425 return NULL;
15426 }
15427
15428
15429 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
15430 PyObject *resultobj = NULL;
15431 wxFileType *arg1 = (wxFileType *) 0 ;
15432 PyObject *result;
15433 PyObject * obj0 = 0 ;
15434 char *kwnames[] = {
15435 (char *) "self", NULL
15436 };
15437
15438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
15439 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15440 if (SWIG_arg_fail(1)) SWIG_fail;
15441 {
15442 PyThreadState* __tstate = wxPyBeginAllowThreads();
15443 result = (PyObject *)wxFileType_GetDescription(arg1);
15444
15445 wxPyEndAllowThreads(__tstate);
15446 if (PyErr_Occurred()) SWIG_fail;
15447 }
15448 resultobj = result;
15449 return resultobj;
15450 fail:
15451 return NULL;
15452 }
15453
15454
15455 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15456 PyObject *resultobj = NULL;
15457 wxFileType *arg1 = (wxFileType *) 0 ;
15458 wxString *arg2 = 0 ;
15459 wxString const &arg3_defvalue = wxPyEmptyString ;
15460 wxString *arg3 = (wxString *) &arg3_defvalue ;
15461 PyObject *result;
15462 bool temp2 = false ;
15463 bool temp3 = false ;
15464 PyObject * obj0 = 0 ;
15465 PyObject * obj1 = 0 ;
15466 PyObject * obj2 = 0 ;
15467 char *kwnames[] = {
15468 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15469 };
15470
15471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15473 if (SWIG_arg_fail(1)) SWIG_fail;
15474 {
15475 arg2 = wxString_in_helper(obj1);
15476 if (arg2 == NULL) SWIG_fail;
15477 temp2 = true;
15478 }
15479 if (obj2) {
15480 {
15481 arg3 = wxString_in_helper(obj2);
15482 if (arg3 == NULL) SWIG_fail;
15483 temp3 = true;
15484 }
15485 }
15486 {
15487 PyThreadState* __tstate = wxPyBeginAllowThreads();
15488 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15489
15490 wxPyEndAllowThreads(__tstate);
15491 if (PyErr_Occurred()) SWIG_fail;
15492 }
15493 resultobj = result;
15494 {
15495 if (temp2)
15496 delete arg2;
15497 }
15498 {
15499 if (temp3)
15500 delete arg3;
15501 }
15502 return resultobj;
15503 fail:
15504 {
15505 if (temp2)
15506 delete arg2;
15507 }
15508 {
15509 if (temp3)
15510 delete arg3;
15511 }
15512 return NULL;
15513 }
15514
15515
15516 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj = NULL;
15518 wxFileType *arg1 = (wxFileType *) 0 ;
15519 wxString *arg2 = 0 ;
15520 wxString const &arg3_defvalue = wxPyEmptyString ;
15521 wxString *arg3 = (wxString *) &arg3_defvalue ;
15522 PyObject *result;
15523 bool temp2 = false ;
15524 bool temp3 = false ;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 PyObject * obj2 = 0 ;
15528 char *kwnames[] = {
15529 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15530 };
15531
15532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15533 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15534 if (SWIG_arg_fail(1)) SWIG_fail;
15535 {
15536 arg2 = wxString_in_helper(obj1);
15537 if (arg2 == NULL) SWIG_fail;
15538 temp2 = true;
15539 }
15540 if (obj2) {
15541 {
15542 arg3 = wxString_in_helper(obj2);
15543 if (arg3 == NULL) SWIG_fail;
15544 temp3 = true;
15545 }
15546 }
15547 {
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15550
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 resultobj = result;
15555 {
15556 if (temp2)
15557 delete arg2;
15558 }
15559 {
15560 if (temp3)
15561 delete arg3;
15562 }
15563 return resultobj;
15564 fail:
15565 {
15566 if (temp2)
15567 delete arg2;
15568 }
15569 {
15570 if (temp3)
15571 delete arg3;
15572 }
15573 return NULL;
15574 }
15575
15576
15577 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
15578 PyObject *resultobj = NULL;
15579 wxFileType *arg1 = (wxFileType *) 0 ;
15580 wxString *arg2 = 0 ;
15581 wxString const &arg3_defvalue = wxPyEmptyString ;
15582 wxString *arg3 = (wxString *) &arg3_defvalue ;
15583 PyObject *result;
15584 bool temp2 = false ;
15585 bool temp3 = false ;
15586 PyObject * obj0 = 0 ;
15587 PyObject * obj1 = 0 ;
15588 PyObject * obj2 = 0 ;
15589 char *kwnames[] = {
15590 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15591 };
15592
15593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
15594 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15595 if (SWIG_arg_fail(1)) SWIG_fail;
15596 {
15597 arg2 = wxString_in_helper(obj1);
15598 if (arg2 == NULL) SWIG_fail;
15599 temp2 = true;
15600 }
15601 if (obj2) {
15602 {
15603 arg3 = wxString_in_helper(obj2);
15604 if (arg3 == NULL) SWIG_fail;
15605 temp3 = true;
15606 }
15607 }
15608 {
15609 PyThreadState* __tstate = wxPyBeginAllowThreads();
15610 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15611
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = result;
15616 {
15617 if (temp2)
15618 delete arg2;
15619 }
15620 {
15621 if (temp3)
15622 delete arg3;
15623 }
15624 return resultobj;
15625 fail:
15626 {
15627 if (temp2)
15628 delete arg2;
15629 }
15630 {
15631 if (temp3)
15632 delete arg3;
15633 }
15634 return NULL;
15635 }
15636
15637
15638 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15639 PyObject *resultobj = NULL;
15640 wxFileType *arg1 = (wxFileType *) 0 ;
15641 wxString *arg2 = 0 ;
15642 wxString *arg3 = 0 ;
15643 bool arg4 = (bool) true ;
15644 bool result;
15645 bool temp2 = false ;
15646 bool temp3 = false ;
15647 PyObject * obj0 = 0 ;
15648 PyObject * obj1 = 0 ;
15649 PyObject * obj2 = 0 ;
15650 PyObject * obj3 = 0 ;
15651 char *kwnames[] = {
15652 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
15653 };
15654
15655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15656 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15657 if (SWIG_arg_fail(1)) SWIG_fail;
15658 {
15659 arg2 = wxString_in_helper(obj1);
15660 if (arg2 == NULL) SWIG_fail;
15661 temp2 = true;
15662 }
15663 {
15664 arg3 = wxString_in_helper(obj2);
15665 if (arg3 == NULL) SWIG_fail;
15666 temp3 = true;
15667 }
15668 if (obj3) {
15669 {
15670 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
15671 if (SWIG_arg_fail(4)) SWIG_fail;
15672 }
15673 }
15674 {
15675 PyThreadState* __tstate = wxPyBeginAllowThreads();
15676 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
15677
15678 wxPyEndAllowThreads(__tstate);
15679 if (PyErr_Occurred()) SWIG_fail;
15680 }
15681 {
15682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15683 }
15684 {
15685 if (temp2)
15686 delete arg2;
15687 }
15688 {
15689 if (temp3)
15690 delete arg3;
15691 }
15692 return resultobj;
15693 fail:
15694 {
15695 if (temp2)
15696 delete arg2;
15697 }
15698 {
15699 if (temp3)
15700 delete arg3;
15701 }
15702 return NULL;
15703 }
15704
15705
15706 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj = NULL;
15708 wxFileType *arg1 = (wxFileType *) 0 ;
15709 wxString const &arg2_defvalue = wxPyEmptyString ;
15710 wxString *arg2 = (wxString *) &arg2_defvalue ;
15711 int arg3 = (int) 0 ;
15712 bool result;
15713 bool temp2 = false ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 PyObject * obj2 = 0 ;
15717 char *kwnames[] = {
15718 (char *) "self",(char *) "cmd",(char *) "index", NULL
15719 };
15720
15721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15722 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15723 if (SWIG_arg_fail(1)) SWIG_fail;
15724 if (obj1) {
15725 {
15726 arg2 = wxString_in_helper(obj1);
15727 if (arg2 == NULL) SWIG_fail;
15728 temp2 = true;
15729 }
15730 }
15731 if (obj2) {
15732 {
15733 arg3 = static_cast<int >(SWIG_As_int(obj2));
15734 if (SWIG_arg_fail(3)) SWIG_fail;
15735 }
15736 }
15737 {
15738 PyThreadState* __tstate = wxPyBeginAllowThreads();
15739 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
15740
15741 wxPyEndAllowThreads(__tstate);
15742 if (PyErr_Occurred()) SWIG_fail;
15743 }
15744 {
15745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15746 }
15747 {
15748 if (temp2)
15749 delete arg2;
15750 }
15751 return resultobj;
15752 fail:
15753 {
15754 if (temp2)
15755 delete arg2;
15756 }
15757 return NULL;
15758 }
15759
15760
15761 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
15762 PyObject *resultobj = NULL;
15763 wxFileType *arg1 = (wxFileType *) 0 ;
15764 bool result;
15765 PyObject * obj0 = 0 ;
15766 char *kwnames[] = {
15767 (char *) "self", NULL
15768 };
15769
15770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
15771 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15772 if (SWIG_arg_fail(1)) SWIG_fail;
15773 {
15774 PyThreadState* __tstate = wxPyBeginAllowThreads();
15775 result = (bool)(arg1)->Unassociate();
15776
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 {
15781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15782 }
15783 return resultobj;
15784 fail:
15785 return NULL;
15786 }
15787
15788
15789 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15790 PyObject *resultobj = NULL;
15791 wxString *arg1 = 0 ;
15792 wxString *arg2 = 0 ;
15793 wxString const &arg3_defvalue = wxPyEmptyString ;
15794 wxString *arg3 = (wxString *) &arg3_defvalue ;
15795 wxString result;
15796 bool temp1 = false ;
15797 bool temp2 = false ;
15798 bool temp3 = false ;
15799 PyObject * obj0 = 0 ;
15800 PyObject * obj1 = 0 ;
15801 PyObject * obj2 = 0 ;
15802 char *kwnames[] = {
15803 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
15804 };
15805
15806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15807 {
15808 arg1 = wxString_in_helper(obj0);
15809 if (arg1 == NULL) SWIG_fail;
15810 temp1 = true;
15811 }
15812 {
15813 arg2 = wxString_in_helper(obj1);
15814 if (arg2 == NULL) SWIG_fail;
15815 temp2 = true;
15816 }
15817 if (obj2) {
15818 {
15819 arg3 = wxString_in_helper(obj2);
15820 if (arg3 == NULL) SWIG_fail;
15821 temp3 = true;
15822 }
15823 }
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = wxFileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15827
15828 wxPyEndAllowThreads(__tstate);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 }
15831 {
15832 #if wxUSE_UNICODE
15833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15834 #else
15835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15836 #endif
15837 }
15838 {
15839 if (temp1)
15840 delete arg1;
15841 }
15842 {
15843 if (temp2)
15844 delete arg2;
15845 }
15846 {
15847 if (temp3)
15848 delete arg3;
15849 }
15850 return resultobj;
15851 fail:
15852 {
15853 if (temp1)
15854 delete arg1;
15855 }
15856 {
15857 if (temp2)
15858 delete arg2;
15859 }
15860 {
15861 if (temp3)
15862 delete arg3;
15863 }
15864 return NULL;
15865 }
15866
15867
15868 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
15869 PyObject *obj;
15870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15871 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
15872 Py_INCREF(obj);
15873 return Py_BuildValue((char *)"");
15874 }
15875 static int _wrap_TheMimeTypesManager_set(PyObject *) {
15876 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
15877 return 1;
15878 }
15879
15880
15881 static PyObject *_wrap_TheMimeTypesManager_get(void) {
15882 PyObject *pyobj = NULL;
15883
15884 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
15885 return pyobj;
15886 }
15887
15888
15889 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
15890 PyObject *resultobj = NULL;
15891 wxString *arg1 = 0 ;
15892 wxString *arg2 = 0 ;
15893 bool result;
15894 bool temp1 = false ;
15895 bool temp2 = false ;
15896 PyObject * obj0 = 0 ;
15897 PyObject * obj1 = 0 ;
15898 char *kwnames[] = {
15899 (char *) "mimeType",(char *) "wildcard", NULL
15900 };
15901
15902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
15903 {
15904 arg1 = wxString_in_helper(obj0);
15905 if (arg1 == NULL) SWIG_fail;
15906 temp1 = true;
15907 }
15908 {
15909 arg2 = wxString_in_helper(obj1);
15910 if (arg2 == NULL) SWIG_fail;
15911 temp2 = true;
15912 }
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
15916
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 {
15921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15922 }
15923 {
15924 if (temp1)
15925 delete arg1;
15926 }
15927 {
15928 if (temp2)
15929 delete arg2;
15930 }
15931 return resultobj;
15932 fail:
15933 {
15934 if (temp1)
15935 delete arg1;
15936 }
15937 {
15938 if (temp2)
15939 delete arg2;
15940 }
15941 return NULL;
15942 }
15943
15944
15945 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj = NULL;
15947 wxMimeTypesManager *result;
15948 char *kwnames[] = {
15949 NULL
15950 };
15951
15952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
15953 {
15954 PyThreadState* __tstate = wxPyBeginAllowThreads();
15955 result = (wxMimeTypesManager *)new wxMimeTypesManager();
15956
15957 wxPyEndAllowThreads(__tstate);
15958 if (PyErr_Occurred()) SWIG_fail;
15959 }
15960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
15961 return resultobj;
15962 fail:
15963 return NULL;
15964 }
15965
15966
15967 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
15968 PyObject *resultobj = NULL;
15969 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
15970 int arg2 = (int) wxMAILCAP_ALL ;
15971 wxString const &arg3_defvalue = wxPyEmptyString ;
15972 wxString *arg3 = (wxString *) &arg3_defvalue ;
15973 bool temp3 = false ;
15974 PyObject * obj0 = 0 ;
15975 PyObject * obj1 = 0 ;
15976 PyObject * obj2 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
15979 };
15980
15981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
15983 if (SWIG_arg_fail(1)) SWIG_fail;
15984 if (obj1) {
15985 {
15986 arg2 = static_cast<int >(SWIG_As_int(obj1));
15987 if (SWIG_arg_fail(2)) SWIG_fail;
15988 }
15989 }
15990 if (obj2) {
15991 {
15992 arg3 = wxString_in_helper(obj2);
15993 if (arg3 == NULL) SWIG_fail;
15994 temp3 = true;
15995 }
15996 }
15997 {
15998 PyThreadState* __tstate = wxPyBeginAllowThreads();
15999 (arg1)->Initialize(arg2,(wxString const &)*arg3);
16000
16001 wxPyEndAllowThreads(__tstate);
16002 if (PyErr_Occurred()) SWIG_fail;
16003 }
16004 Py_INCREF(Py_None); resultobj = Py_None;
16005 {
16006 if (temp3)
16007 delete arg3;
16008 }
16009 return resultobj;
16010 fail:
16011 {
16012 if (temp3)
16013 delete arg3;
16014 }
16015 return NULL;
16016 }
16017
16018
16019 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
16020 PyObject *resultobj = NULL;
16021 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16022 PyObject * obj0 = 0 ;
16023 char *kwnames[] = {
16024 (char *) "self", NULL
16025 };
16026
16027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
16028 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16029 if (SWIG_arg_fail(1)) SWIG_fail;
16030 {
16031 PyThreadState* __tstate = wxPyBeginAllowThreads();
16032 (arg1)->ClearData();
16033
16034 wxPyEndAllowThreads(__tstate);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 }
16037 Py_INCREF(Py_None); resultobj = Py_None;
16038 return resultobj;
16039 fail:
16040 return NULL;
16041 }
16042
16043
16044 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
16045 PyObject *resultobj = NULL;
16046 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16047 wxString *arg2 = 0 ;
16048 wxFileType *result;
16049 bool temp2 = false ;
16050 PyObject * obj0 = 0 ;
16051 PyObject * obj1 = 0 ;
16052 char *kwnames[] = {
16053 (char *) "self",(char *) "ext", NULL
16054 };
16055
16056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
16057 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16058 if (SWIG_arg_fail(1)) SWIG_fail;
16059 {
16060 arg2 = wxString_in_helper(obj1);
16061 if (arg2 == NULL) SWIG_fail;
16062 temp2 = true;
16063 }
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
16067
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16072 {
16073 if (temp2)
16074 delete arg2;
16075 }
16076 return resultobj;
16077 fail:
16078 {
16079 if (temp2)
16080 delete arg2;
16081 }
16082 return NULL;
16083 }
16084
16085
16086 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
16087 PyObject *resultobj = NULL;
16088 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16089 wxString *arg2 = 0 ;
16090 wxFileType *result;
16091 bool temp2 = false ;
16092 PyObject * obj0 = 0 ;
16093 PyObject * obj1 = 0 ;
16094 char *kwnames[] = {
16095 (char *) "self",(char *) "mimeType", NULL
16096 };
16097
16098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
16099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16100 if (SWIG_arg_fail(1)) SWIG_fail;
16101 {
16102 arg2 = wxString_in_helper(obj1);
16103 if (arg2 == NULL) SWIG_fail;
16104 temp2 = true;
16105 }
16106 {
16107 PyThreadState* __tstate = wxPyBeginAllowThreads();
16108 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
16109
16110 wxPyEndAllowThreads(__tstate);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 }
16113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16114 {
16115 if (temp2)
16116 delete arg2;
16117 }
16118 return resultobj;
16119 fail:
16120 {
16121 if (temp2)
16122 delete arg2;
16123 }
16124 return NULL;
16125 }
16126
16127
16128 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
16129 PyObject *resultobj = NULL;
16130 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16131 wxString *arg2 = 0 ;
16132 bool arg3 = (bool) false ;
16133 bool result;
16134 bool temp2 = false ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 PyObject * obj2 = 0 ;
16138 char *kwnames[] = {
16139 (char *) "self",(char *) "filename",(char *) "fallback", NULL
16140 };
16141
16142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
16143 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16144 if (SWIG_arg_fail(1)) SWIG_fail;
16145 {
16146 arg2 = wxString_in_helper(obj1);
16147 if (arg2 == NULL) SWIG_fail;
16148 temp2 = true;
16149 }
16150 if (obj2) {
16151 {
16152 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
16153 if (SWIG_arg_fail(3)) SWIG_fail;
16154 }
16155 }
16156 {
16157 PyThreadState* __tstate = wxPyBeginAllowThreads();
16158 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
16159
16160 wxPyEndAllowThreads(__tstate);
16161 if (PyErr_Occurred()) SWIG_fail;
16162 }
16163 {
16164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16165 }
16166 {
16167 if (temp2)
16168 delete arg2;
16169 }
16170 return resultobj;
16171 fail:
16172 {
16173 if (temp2)
16174 delete arg2;
16175 }
16176 return NULL;
16177 }
16178
16179
16180 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
16181 PyObject *resultobj = NULL;
16182 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16183 wxString *arg2 = 0 ;
16184 bool result;
16185 bool temp2 = false ;
16186 PyObject * obj0 = 0 ;
16187 PyObject * obj1 = 0 ;
16188 char *kwnames[] = {
16189 (char *) "self",(char *) "filename", NULL
16190 };
16191
16192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
16193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16194 if (SWIG_arg_fail(1)) SWIG_fail;
16195 {
16196 arg2 = wxString_in_helper(obj1);
16197 if (arg2 == NULL) SWIG_fail;
16198 temp2 = true;
16199 }
16200 {
16201 PyThreadState* __tstate = wxPyBeginAllowThreads();
16202 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
16203
16204 wxPyEndAllowThreads(__tstate);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 {
16208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16209 }
16210 {
16211 if (temp2)
16212 delete arg2;
16213 }
16214 return resultobj;
16215 fail:
16216 {
16217 if (temp2)
16218 delete arg2;
16219 }
16220 return NULL;
16221 }
16222
16223
16224 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
16225 PyObject *resultobj = NULL;
16226 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16227 PyObject *result;
16228 PyObject * obj0 = 0 ;
16229 char *kwnames[] = {
16230 (char *) "self", NULL
16231 };
16232
16233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
16234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16235 if (SWIG_arg_fail(1)) SWIG_fail;
16236 {
16237 PyThreadState* __tstate = wxPyBeginAllowThreads();
16238 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
16239
16240 wxPyEndAllowThreads(__tstate);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 }
16243 resultobj = result;
16244 return resultobj;
16245 fail:
16246 return NULL;
16247 }
16248
16249
16250 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
16251 PyObject *resultobj = NULL;
16252 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16253 wxFileTypeInfo *arg2 = 0 ;
16254 PyObject * obj0 = 0 ;
16255 PyObject * obj1 = 0 ;
16256 char *kwnames[] = {
16257 (char *) "self",(char *) "ft", NULL
16258 };
16259
16260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
16261 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16262 if (SWIG_arg_fail(1)) SWIG_fail;
16263 {
16264 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
16265 if (SWIG_arg_fail(2)) SWIG_fail;
16266 if (arg2 == NULL) {
16267 SWIG_null_ref("wxFileTypeInfo");
16268 }
16269 if (SWIG_arg_fail(2)) SWIG_fail;
16270 }
16271 {
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
16274
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 Py_INCREF(Py_None); resultobj = Py_None;
16279 return resultobj;
16280 fail:
16281 return NULL;
16282 }
16283
16284
16285 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
16286 PyObject *resultobj = NULL;
16287 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16288 wxFileTypeInfo *arg2 = 0 ;
16289 wxFileType *result;
16290 PyObject * obj0 = 0 ;
16291 PyObject * obj1 = 0 ;
16292 char *kwnames[] = {
16293 (char *) "self",(char *) "ftInfo", NULL
16294 };
16295
16296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
16297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16298 if (SWIG_arg_fail(1)) SWIG_fail;
16299 {
16300 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
16301 if (SWIG_arg_fail(2)) SWIG_fail;
16302 if (arg2 == NULL) {
16303 SWIG_null_ref("wxFileTypeInfo");
16304 }
16305 if (SWIG_arg_fail(2)) SWIG_fail;
16306 }
16307 {
16308 PyThreadState* __tstate = wxPyBeginAllowThreads();
16309 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
16310
16311 wxPyEndAllowThreads(__tstate);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 }
16314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16315 return resultobj;
16316 fail:
16317 return NULL;
16318 }
16319
16320
16321 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
16322 PyObject *resultobj = NULL;
16323 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16324 wxFileType *arg2 = (wxFileType *) 0 ;
16325 bool result;
16326 PyObject * obj0 = 0 ;
16327 PyObject * obj1 = 0 ;
16328 char *kwnames[] = {
16329 (char *) "self",(char *) "ft", NULL
16330 };
16331
16332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
16333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16334 if (SWIG_arg_fail(1)) SWIG_fail;
16335 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
16336 if (SWIG_arg_fail(2)) SWIG_fail;
16337 {
16338 PyThreadState* __tstate = wxPyBeginAllowThreads();
16339 result = (bool)(arg1)->Unassociate(arg2);
16340
16341 wxPyEndAllowThreads(__tstate);
16342 if (PyErr_Occurred()) SWIG_fail;
16343 }
16344 {
16345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16346 }
16347 return resultobj;
16348 fail:
16349 return NULL;
16350 }
16351
16352
16353 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
16354 PyObject *resultobj = NULL;
16355 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16356 PyObject * obj0 = 0 ;
16357 char *kwnames[] = {
16358 (char *) "self", NULL
16359 };
16360
16361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
16362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16363 if (SWIG_arg_fail(1)) SWIG_fail;
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 delete arg1;
16367
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 Py_INCREF(Py_None); resultobj = Py_None;
16372 return resultobj;
16373 fail:
16374 return NULL;
16375 }
16376
16377
16378 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
16379 PyObject *obj;
16380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16381 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
16382 Py_INCREF(obj);
16383 return Py_BuildValue((char *)"");
16384 }
16385 static int _wrap_ART_TOOLBAR_set(PyObject *) {
16386 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
16387 return 1;
16388 }
16389
16390
16391 static PyObject *_wrap_ART_TOOLBAR_get(void) {
16392 PyObject *pyobj = NULL;
16393
16394 {
16395 #if wxUSE_UNICODE
16396 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
16397 #else
16398 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
16399 #endif
16400 }
16401 return pyobj;
16402 }
16403
16404
16405 static int _wrap_ART_MENU_set(PyObject *) {
16406 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
16407 return 1;
16408 }
16409
16410
16411 static PyObject *_wrap_ART_MENU_get(void) {
16412 PyObject *pyobj = NULL;
16413
16414 {
16415 #if wxUSE_UNICODE
16416 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
16417 #else
16418 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
16419 #endif
16420 }
16421 return pyobj;
16422 }
16423
16424
16425 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
16426 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
16427 return 1;
16428 }
16429
16430
16431 static PyObject *_wrap_ART_FRAME_ICON_get(void) {
16432 PyObject *pyobj = NULL;
16433
16434 {
16435 #if wxUSE_UNICODE
16436 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
16437 #else
16438 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
16439 #endif
16440 }
16441 return pyobj;
16442 }
16443
16444
16445 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
16446 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
16447 return 1;
16448 }
16449
16450
16451 static PyObject *_wrap_ART_CMN_DIALOG_get(void) {
16452 PyObject *pyobj = NULL;
16453
16454 {
16455 #if wxUSE_UNICODE
16456 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
16457 #else
16458 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
16459 #endif
16460 }
16461 return pyobj;
16462 }
16463
16464
16465 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
16466 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
16467 return 1;
16468 }
16469
16470
16471 static PyObject *_wrap_ART_HELP_BROWSER_get(void) {
16472 PyObject *pyobj = NULL;
16473
16474 {
16475 #if wxUSE_UNICODE
16476 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
16477 #else
16478 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
16479 #endif
16480 }
16481 return pyobj;
16482 }
16483
16484
16485 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
16486 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
16487 return 1;
16488 }
16489
16490
16491 static PyObject *_wrap_ART_MESSAGE_BOX_get(void) {
16492 PyObject *pyobj = NULL;
16493
16494 {
16495 #if wxUSE_UNICODE
16496 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
16497 #else
16498 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
16499 #endif
16500 }
16501 return pyobj;
16502 }
16503
16504
16505 static int _wrap_ART_BUTTON_set(PyObject *) {
16506 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
16507 return 1;
16508 }
16509
16510
16511 static PyObject *_wrap_ART_BUTTON_get(void) {
16512 PyObject *pyobj = NULL;
16513
16514 {
16515 #if wxUSE_UNICODE
16516 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
16517 #else
16518 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
16519 #endif
16520 }
16521 return pyobj;
16522 }
16523
16524
16525 static int _wrap_ART_OTHER_set(PyObject *) {
16526 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
16527 return 1;
16528 }
16529
16530
16531 static PyObject *_wrap_ART_OTHER_get(void) {
16532 PyObject *pyobj = NULL;
16533
16534 {
16535 #if wxUSE_UNICODE
16536 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
16537 #else
16538 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
16539 #endif
16540 }
16541 return pyobj;
16542 }
16543
16544
16545 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
16546 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
16547 return 1;
16548 }
16549
16550
16551 static PyObject *_wrap_ART_ADD_BOOKMARK_get(void) {
16552 PyObject *pyobj = NULL;
16553
16554 {
16555 #if wxUSE_UNICODE
16556 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
16557 #else
16558 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
16559 #endif
16560 }
16561 return pyobj;
16562 }
16563
16564
16565 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
16566 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
16567 return 1;
16568 }
16569
16570
16571 static PyObject *_wrap_ART_DEL_BOOKMARK_get(void) {
16572 PyObject *pyobj = NULL;
16573
16574 {
16575 #if wxUSE_UNICODE
16576 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
16577 #else
16578 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
16579 #endif
16580 }
16581 return pyobj;
16582 }
16583
16584
16585 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
16586 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
16587 return 1;
16588 }
16589
16590
16591 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get(void) {
16592 PyObject *pyobj = NULL;
16593
16594 {
16595 #if wxUSE_UNICODE
16596 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
16597 #else
16598 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
16599 #endif
16600 }
16601 return pyobj;
16602 }
16603
16604
16605 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
16606 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
16607 return 1;
16608 }
16609
16610
16611 static PyObject *_wrap_ART_HELP_SETTINGS_get(void) {
16612 PyObject *pyobj = NULL;
16613
16614 {
16615 #if wxUSE_UNICODE
16616 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
16617 #else
16618 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
16619 #endif
16620 }
16621 return pyobj;
16622 }
16623
16624
16625 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
16626 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
16627 return 1;
16628 }
16629
16630
16631 static PyObject *_wrap_ART_HELP_BOOK_get(void) {
16632 PyObject *pyobj = NULL;
16633
16634 {
16635 #if wxUSE_UNICODE
16636 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
16637 #else
16638 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
16639 #endif
16640 }
16641 return pyobj;
16642 }
16643
16644
16645 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
16646 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
16647 return 1;
16648 }
16649
16650
16651 static PyObject *_wrap_ART_HELP_FOLDER_get(void) {
16652 PyObject *pyobj = NULL;
16653
16654 {
16655 #if wxUSE_UNICODE
16656 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
16657 #else
16658 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
16659 #endif
16660 }
16661 return pyobj;
16662 }
16663
16664
16665 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
16666 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
16667 return 1;
16668 }
16669
16670
16671 static PyObject *_wrap_ART_HELP_PAGE_get(void) {
16672 PyObject *pyobj = NULL;
16673
16674 {
16675 #if wxUSE_UNICODE
16676 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
16677 #else
16678 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
16679 #endif
16680 }
16681 return pyobj;
16682 }
16683
16684
16685 static int _wrap_ART_GO_BACK_set(PyObject *) {
16686 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
16687 return 1;
16688 }
16689
16690
16691 static PyObject *_wrap_ART_GO_BACK_get(void) {
16692 PyObject *pyobj = NULL;
16693
16694 {
16695 #if wxUSE_UNICODE
16696 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
16697 #else
16698 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
16699 #endif
16700 }
16701 return pyobj;
16702 }
16703
16704
16705 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
16706 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
16707 return 1;
16708 }
16709
16710
16711 static PyObject *_wrap_ART_GO_FORWARD_get(void) {
16712 PyObject *pyobj = NULL;
16713
16714 {
16715 #if wxUSE_UNICODE
16716 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
16717 #else
16718 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
16719 #endif
16720 }
16721 return pyobj;
16722 }
16723
16724
16725 static int _wrap_ART_GO_UP_set(PyObject *) {
16726 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
16727 return 1;
16728 }
16729
16730
16731 static PyObject *_wrap_ART_GO_UP_get(void) {
16732 PyObject *pyobj = NULL;
16733
16734 {
16735 #if wxUSE_UNICODE
16736 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
16737 #else
16738 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
16739 #endif
16740 }
16741 return pyobj;
16742 }
16743
16744
16745 static int _wrap_ART_GO_DOWN_set(PyObject *) {
16746 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
16747 return 1;
16748 }
16749
16750
16751 static PyObject *_wrap_ART_GO_DOWN_get(void) {
16752 PyObject *pyobj = NULL;
16753
16754 {
16755 #if wxUSE_UNICODE
16756 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
16757 #else
16758 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
16759 #endif
16760 }
16761 return pyobj;
16762 }
16763
16764
16765 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
16766 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
16767 return 1;
16768 }
16769
16770
16771 static PyObject *_wrap_ART_GO_TO_PARENT_get(void) {
16772 PyObject *pyobj = NULL;
16773
16774 {
16775 #if wxUSE_UNICODE
16776 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
16777 #else
16778 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
16779 #endif
16780 }
16781 return pyobj;
16782 }
16783
16784
16785 static int _wrap_ART_GO_HOME_set(PyObject *) {
16786 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
16787 return 1;
16788 }
16789
16790
16791 static PyObject *_wrap_ART_GO_HOME_get(void) {
16792 PyObject *pyobj = NULL;
16793
16794 {
16795 #if wxUSE_UNICODE
16796 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
16797 #else
16798 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
16799 #endif
16800 }
16801 return pyobj;
16802 }
16803
16804
16805 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
16806 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
16807 return 1;
16808 }
16809
16810
16811 static PyObject *_wrap_ART_FILE_OPEN_get(void) {
16812 PyObject *pyobj = NULL;
16813
16814 {
16815 #if wxUSE_UNICODE
16816 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
16817 #else
16818 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
16819 #endif
16820 }
16821 return pyobj;
16822 }
16823
16824
16825 static int _wrap_ART_FILE_SAVE_set(PyObject *) {
16826 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE is read-only.");
16827 return 1;
16828 }
16829
16830
16831 static PyObject *_wrap_ART_FILE_SAVE_get(void) {
16832 PyObject *pyobj = NULL;
16833
16834 {
16835 #if wxUSE_UNICODE
16836 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
16837 #else
16838 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
16839 #endif
16840 }
16841 return pyobj;
16842 }
16843
16844
16845 static int _wrap_ART_FILE_SAVE_AS_set(PyObject *) {
16846 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE_AS is read-only.");
16847 return 1;
16848 }
16849
16850
16851 static PyObject *_wrap_ART_FILE_SAVE_AS_get(void) {
16852 PyObject *pyobj = NULL;
16853
16854 {
16855 #if wxUSE_UNICODE
16856 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
16857 #else
16858 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
16859 #endif
16860 }
16861 return pyobj;
16862 }
16863
16864
16865 static int _wrap_ART_PRINT_set(PyObject *) {
16866 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
16867 return 1;
16868 }
16869
16870
16871 static PyObject *_wrap_ART_PRINT_get(void) {
16872 PyObject *pyobj = NULL;
16873
16874 {
16875 #if wxUSE_UNICODE
16876 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
16877 #else
16878 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
16879 #endif
16880 }
16881 return pyobj;
16882 }
16883
16884
16885 static int _wrap_ART_HELP_set(PyObject *) {
16886 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
16887 return 1;
16888 }
16889
16890
16891 static PyObject *_wrap_ART_HELP_get(void) {
16892 PyObject *pyobj = NULL;
16893
16894 {
16895 #if wxUSE_UNICODE
16896 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
16897 #else
16898 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
16899 #endif
16900 }
16901 return pyobj;
16902 }
16903
16904
16905 static int _wrap_ART_TIP_set(PyObject *) {
16906 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
16907 return 1;
16908 }
16909
16910
16911 static PyObject *_wrap_ART_TIP_get(void) {
16912 PyObject *pyobj = NULL;
16913
16914 {
16915 #if wxUSE_UNICODE
16916 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
16917 #else
16918 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
16919 #endif
16920 }
16921 return pyobj;
16922 }
16923
16924
16925 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
16926 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
16927 return 1;
16928 }
16929
16930
16931 static PyObject *_wrap_ART_REPORT_VIEW_get(void) {
16932 PyObject *pyobj = NULL;
16933
16934 {
16935 #if wxUSE_UNICODE
16936 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
16937 #else
16938 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
16939 #endif
16940 }
16941 return pyobj;
16942 }
16943
16944
16945 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
16946 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
16947 return 1;
16948 }
16949
16950
16951 static PyObject *_wrap_ART_LIST_VIEW_get(void) {
16952 PyObject *pyobj = NULL;
16953
16954 {
16955 #if wxUSE_UNICODE
16956 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
16957 #else
16958 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
16959 #endif
16960 }
16961 return pyobj;
16962 }
16963
16964
16965 static int _wrap_ART_NEW_DIR_set(PyObject *) {
16966 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
16967 return 1;
16968 }
16969
16970
16971 static PyObject *_wrap_ART_NEW_DIR_get(void) {
16972 PyObject *pyobj = NULL;
16973
16974 {
16975 #if wxUSE_UNICODE
16976 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
16977 #else
16978 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
16979 #endif
16980 }
16981 return pyobj;
16982 }
16983
16984
16985 static int _wrap_ART_HARDDISK_set(PyObject *) {
16986 PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only.");
16987 return 1;
16988 }
16989
16990
16991 static PyObject *_wrap_ART_HARDDISK_get(void) {
16992 PyObject *pyobj = NULL;
16993
16994 {
16995 #if wxUSE_UNICODE
16996 pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
16997 #else
16998 pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
16999 #endif
17000 }
17001 return pyobj;
17002 }
17003
17004
17005 static int _wrap_ART_FLOPPY_set(PyObject *) {
17006 PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only.");
17007 return 1;
17008 }
17009
17010
17011 static PyObject *_wrap_ART_FLOPPY_get(void) {
17012 PyObject *pyobj = NULL;
17013
17014 {
17015 #if wxUSE_UNICODE
17016 pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
17017 #else
17018 pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
17019 #endif
17020 }
17021 return pyobj;
17022 }
17023
17024
17025 static int _wrap_ART_CDROM_set(PyObject *) {
17026 PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only.");
17027 return 1;
17028 }
17029
17030
17031 static PyObject *_wrap_ART_CDROM_get(void) {
17032 PyObject *pyobj = NULL;
17033
17034 {
17035 #if wxUSE_UNICODE
17036 pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
17037 #else
17038 pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
17039 #endif
17040 }
17041 return pyobj;
17042 }
17043
17044
17045 static int _wrap_ART_REMOVABLE_set(PyObject *) {
17046 PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only.");
17047 return 1;
17048 }
17049
17050
17051 static PyObject *_wrap_ART_REMOVABLE_get(void) {
17052 PyObject *pyobj = NULL;
17053
17054 {
17055 #if wxUSE_UNICODE
17056 pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
17057 #else
17058 pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
17059 #endif
17060 }
17061 return pyobj;
17062 }
17063
17064
17065 static int _wrap_ART_FOLDER_set(PyObject *) {
17066 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
17067 return 1;
17068 }
17069
17070
17071 static PyObject *_wrap_ART_FOLDER_get(void) {
17072 PyObject *pyobj = NULL;
17073
17074 {
17075 #if wxUSE_UNICODE
17076 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
17077 #else
17078 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
17079 #endif
17080 }
17081 return pyobj;
17082 }
17083
17084
17085 static int _wrap_ART_FOLDER_OPEN_set(PyObject *) {
17086 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only.");
17087 return 1;
17088 }
17089
17090
17091 static PyObject *_wrap_ART_FOLDER_OPEN_get(void) {
17092 PyObject *pyobj = NULL;
17093
17094 {
17095 #if wxUSE_UNICODE
17096 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
17097 #else
17098 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
17099 #endif
17100 }
17101 return pyobj;
17102 }
17103
17104
17105 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
17106 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
17107 return 1;
17108 }
17109
17110
17111 static PyObject *_wrap_ART_GO_DIR_UP_get(void) {
17112 PyObject *pyobj = NULL;
17113
17114 {
17115 #if wxUSE_UNICODE
17116 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
17117 #else
17118 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
17119 #endif
17120 }
17121 return pyobj;
17122 }
17123
17124
17125 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
17126 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
17127 return 1;
17128 }
17129
17130
17131 static PyObject *_wrap_ART_EXECUTABLE_FILE_get(void) {
17132 PyObject *pyobj = NULL;
17133
17134 {
17135 #if wxUSE_UNICODE
17136 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
17137 #else
17138 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
17139 #endif
17140 }
17141 return pyobj;
17142 }
17143
17144
17145 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
17146 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
17147 return 1;
17148 }
17149
17150
17151 static PyObject *_wrap_ART_NORMAL_FILE_get(void) {
17152 PyObject *pyobj = NULL;
17153
17154 {
17155 #if wxUSE_UNICODE
17156 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
17157 #else
17158 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
17159 #endif
17160 }
17161 return pyobj;
17162 }
17163
17164
17165 static int _wrap_ART_TICK_MARK_set(PyObject *) {
17166 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
17167 return 1;
17168 }
17169
17170
17171 static PyObject *_wrap_ART_TICK_MARK_get(void) {
17172 PyObject *pyobj = NULL;
17173
17174 {
17175 #if wxUSE_UNICODE
17176 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
17177 #else
17178 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
17179 #endif
17180 }
17181 return pyobj;
17182 }
17183
17184
17185 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
17186 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
17187 return 1;
17188 }
17189
17190
17191 static PyObject *_wrap_ART_CROSS_MARK_get(void) {
17192 PyObject *pyobj = NULL;
17193
17194 {
17195 #if wxUSE_UNICODE
17196 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
17197 #else
17198 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
17199 #endif
17200 }
17201 return pyobj;
17202 }
17203
17204
17205 static int _wrap_ART_ERROR_set(PyObject *) {
17206 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
17207 return 1;
17208 }
17209
17210
17211 static PyObject *_wrap_ART_ERROR_get(void) {
17212 PyObject *pyobj = NULL;
17213
17214 {
17215 #if wxUSE_UNICODE
17216 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
17217 #else
17218 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
17219 #endif
17220 }
17221 return pyobj;
17222 }
17223
17224
17225 static int _wrap_ART_QUESTION_set(PyObject *) {
17226 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
17227 return 1;
17228 }
17229
17230
17231 static PyObject *_wrap_ART_QUESTION_get(void) {
17232 PyObject *pyobj = NULL;
17233
17234 {
17235 #if wxUSE_UNICODE
17236 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
17237 #else
17238 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
17239 #endif
17240 }
17241 return pyobj;
17242 }
17243
17244
17245 static int _wrap_ART_WARNING_set(PyObject *) {
17246 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
17247 return 1;
17248 }
17249
17250
17251 static PyObject *_wrap_ART_WARNING_get(void) {
17252 PyObject *pyobj = NULL;
17253
17254 {
17255 #if wxUSE_UNICODE
17256 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
17257 #else
17258 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
17259 #endif
17260 }
17261 return pyobj;
17262 }
17263
17264
17265 static int _wrap_ART_INFORMATION_set(PyObject *) {
17266 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
17267 return 1;
17268 }
17269
17270
17271 static PyObject *_wrap_ART_INFORMATION_get(void) {
17272 PyObject *pyobj = NULL;
17273
17274 {
17275 #if wxUSE_UNICODE
17276 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
17277 #else
17278 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
17279 #endif
17280 }
17281 return pyobj;
17282 }
17283
17284
17285 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
17286 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
17287 return 1;
17288 }
17289
17290
17291 static PyObject *_wrap_ART_MISSING_IMAGE_get(void) {
17292 PyObject *pyobj = NULL;
17293
17294 {
17295 #if wxUSE_UNICODE
17296 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
17297 #else
17298 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
17299 #endif
17300 }
17301 return pyobj;
17302 }
17303
17304
17305 static int _wrap_ART_COPY_set(PyObject *) {
17306 PyErr_SetString(PyExc_TypeError,"Variable ART_COPY is read-only.");
17307 return 1;
17308 }
17309
17310
17311 static PyObject *_wrap_ART_COPY_get(void) {
17312 PyObject *pyobj = NULL;
17313
17314 {
17315 #if wxUSE_UNICODE
17316 pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
17317 #else
17318 pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
17319 #endif
17320 }
17321 return pyobj;
17322 }
17323
17324
17325 static int _wrap_ART_CUT_set(PyObject *) {
17326 PyErr_SetString(PyExc_TypeError,"Variable ART_CUT is read-only.");
17327 return 1;
17328 }
17329
17330
17331 static PyObject *_wrap_ART_CUT_get(void) {
17332 PyObject *pyobj = NULL;
17333
17334 {
17335 #if wxUSE_UNICODE
17336 pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
17337 #else
17338 pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
17339 #endif
17340 }
17341 return pyobj;
17342 }
17343
17344
17345 static int _wrap_ART_PASTE_set(PyObject *) {
17346 PyErr_SetString(PyExc_TypeError,"Variable ART_PASTE is read-only.");
17347 return 1;
17348 }
17349
17350
17351 static PyObject *_wrap_ART_PASTE_get(void) {
17352 PyObject *pyobj = NULL;
17353
17354 {
17355 #if wxUSE_UNICODE
17356 pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
17357 #else
17358 pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
17359 #endif
17360 }
17361 return pyobj;
17362 }
17363
17364
17365 static int _wrap_ART_DELETE_set(PyObject *) {
17366 PyErr_SetString(PyExc_TypeError,"Variable ART_DELETE is read-only.");
17367 return 1;
17368 }
17369
17370
17371 static PyObject *_wrap_ART_DELETE_get(void) {
17372 PyObject *pyobj = NULL;
17373
17374 {
17375 #if wxUSE_UNICODE
17376 pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
17377 #else
17378 pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
17379 #endif
17380 }
17381 return pyobj;
17382 }
17383
17384
17385 static int _wrap_ART_NEW_set(PyObject *) {
17386 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW is read-only.");
17387 return 1;
17388 }
17389
17390
17391 static PyObject *_wrap_ART_NEW_get(void) {
17392 PyObject *pyobj = NULL;
17393
17394 {
17395 #if wxUSE_UNICODE
17396 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
17397 #else
17398 pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
17399 #endif
17400 }
17401 return pyobj;
17402 }
17403
17404
17405 static int _wrap_ART_UNDO_set(PyObject *) {
17406 PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only.");
17407 return 1;
17408 }
17409
17410
17411 static PyObject *_wrap_ART_UNDO_get(void) {
17412 PyObject *pyobj = NULL;
17413
17414 {
17415 #if wxUSE_UNICODE
17416 pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
17417 #else
17418 pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
17419 #endif
17420 }
17421 return pyobj;
17422 }
17423
17424
17425 static int _wrap_ART_REDO_set(PyObject *) {
17426 PyErr_SetString(PyExc_TypeError,"Variable ART_REDO is read-only.");
17427 return 1;
17428 }
17429
17430
17431 static PyObject *_wrap_ART_REDO_get(void) {
17432 PyObject *pyobj = NULL;
17433
17434 {
17435 #if wxUSE_UNICODE
17436 pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
17437 #else
17438 pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
17439 #endif
17440 }
17441 return pyobj;
17442 }
17443
17444
17445 static int _wrap_ART_QUIT_set(PyObject *) {
17446 PyErr_SetString(PyExc_TypeError,"Variable ART_QUIT is read-only.");
17447 return 1;
17448 }
17449
17450
17451 static PyObject *_wrap_ART_QUIT_get(void) {
17452 PyObject *pyobj = NULL;
17453
17454 {
17455 #if wxUSE_UNICODE
17456 pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
17457 #else
17458 pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
17459 #endif
17460 }
17461 return pyobj;
17462 }
17463
17464
17465 static int _wrap_ART_FIND_set(PyObject *) {
17466 PyErr_SetString(PyExc_TypeError,"Variable ART_FIND is read-only.");
17467 return 1;
17468 }
17469
17470
17471 static PyObject *_wrap_ART_FIND_get(void) {
17472 PyObject *pyobj = NULL;
17473
17474 {
17475 #if wxUSE_UNICODE
17476 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
17477 #else
17478 pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
17479 #endif
17480 }
17481 return pyobj;
17482 }
17483
17484
17485 static int _wrap_ART_FIND_AND_REPLACE_set(PyObject *) {
17486 PyErr_SetString(PyExc_TypeError,"Variable ART_FIND_AND_REPLACE is read-only.");
17487 return 1;
17488 }
17489
17490
17491 static PyObject *_wrap_ART_FIND_AND_REPLACE_get(void) {
17492 PyObject *pyobj = NULL;
17493
17494 {
17495 #if wxUSE_UNICODE
17496 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
17497 #else
17498 pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
17499 #endif
17500 }
17501 return pyobj;
17502 }
17503
17504
17505 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17506 PyObject *resultobj = NULL;
17507 wxPyArtProvider *result;
17508 char *kwnames[] = {
17509 NULL
17510 };
17511
17512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
17513 {
17514 if (!wxPyCheckForApp()) SWIG_fail;
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = (wxPyArtProvider *)new wxPyArtProvider();
17517
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
17522 return resultobj;
17523 fail:
17524 return NULL;
17525 }
17526
17527
17528 static PyObject *_wrap_delete_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17529 PyObject *resultobj = NULL;
17530 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17531 PyObject * obj0 = 0 ;
17532 char *kwnames[] = {
17533 (char *) "self", NULL
17534 };
17535
17536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArtProvider",kwnames,&obj0)) goto fail;
17537 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17538 if (SWIG_arg_fail(1)) SWIG_fail;
17539 {
17540 PyThreadState* __tstate = wxPyBeginAllowThreads();
17541 delete arg1;
17542
17543 wxPyEndAllowThreads(__tstate);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 Py_INCREF(Py_None); resultobj = Py_None;
17547 return resultobj;
17548 fail:
17549 return NULL;
17550 }
17551
17552
17553 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
17554 PyObject *resultobj = NULL;
17555 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17556 PyObject *arg2 = (PyObject *) 0 ;
17557 PyObject *arg3 = (PyObject *) 0 ;
17558 PyObject * obj0 = 0 ;
17559 PyObject * obj1 = 0 ;
17560 PyObject * obj2 = 0 ;
17561 char *kwnames[] = {
17562 (char *) "self",(char *) "self",(char *) "_class", NULL
17563 };
17564
17565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
17566 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17567 if (SWIG_arg_fail(1)) SWIG_fail;
17568 arg2 = obj1;
17569 arg3 = obj2;
17570 {
17571 PyThreadState* __tstate = wxPyBeginAllowThreads();
17572 (arg1)->_setCallbackInfo(arg2,arg3);
17573
17574 wxPyEndAllowThreads(__tstate);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 Py_INCREF(Py_None); resultobj = Py_None;
17578 return resultobj;
17579 fail:
17580 return NULL;
17581 }
17582
17583
17584 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17585 PyObject *resultobj = NULL;
17586 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17587 PyObject * obj0 = 0 ;
17588 char *kwnames[] = {
17589 (char *) "provider", NULL
17590 };
17591
17592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
17593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
17594 if (SWIG_arg_fail(1)) SWIG_fail;
17595 {
17596 PyThreadState* __tstate = wxPyBeginAllowThreads();
17597 wxPyArtProvider::PushProvider(arg1);
17598
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 Py_INCREF(Py_None); resultobj = Py_None;
17603 return resultobj;
17604 fail:
17605 return NULL;
17606 }
17607
17608
17609 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17610 PyObject *resultobj = NULL;
17611 bool result;
17612 char *kwnames[] = {
17613 NULL
17614 };
17615
17616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
17617 {
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = (bool)wxPyArtProvider::PopProvider();
17620
17621 wxPyEndAllowThreads(__tstate);
17622 if (PyErr_Occurred()) SWIG_fail;
17623 }
17624 {
17625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17626 }
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj = NULL;
17635 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17636 bool result;
17637 PyObject * obj0 = 0 ;
17638 char *kwnames[] = {
17639 (char *) "provider", NULL
17640 };
17641
17642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
17643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17644 if (SWIG_arg_fail(1)) SWIG_fail;
17645 {
17646 PyThreadState* __tstate = wxPyBeginAllowThreads();
17647 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
17648
17649 wxPyEndAllowThreads(__tstate);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 }
17652 {
17653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17654 }
17655 return resultobj;
17656 fail:
17657 return NULL;
17658 }
17659
17660
17661 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17662 PyObject *resultobj = NULL;
17663 wxString *arg1 = 0 ;
17664 wxString const &arg2_defvalue = wxPyART_OTHER ;
17665 wxString *arg2 = (wxString *) &arg2_defvalue ;
17666 wxSize const &arg3_defvalue = wxDefaultSize ;
17667 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
17668 wxBitmap result;
17669 bool temp1 = false ;
17670 bool temp2 = false ;
17671 wxSize temp3 ;
17672 PyObject * obj0 = 0 ;
17673 PyObject * obj1 = 0 ;
17674 PyObject * obj2 = 0 ;
17675 char *kwnames[] = {
17676 (char *) "id",(char *) "client",(char *) "size", NULL
17677 };
17678
17679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
17680 {
17681 arg1 = wxString_in_helper(obj0);
17682 if (arg1 == NULL) SWIG_fail;
17683 temp1 = true;
17684 }
17685 if (obj1) {
17686 {
17687 arg2 = wxString_in_helper(obj1);
17688 if (arg2 == NULL) SWIG_fail;
17689 temp2 = true;
17690 }
17691 }
17692 if (obj2) {
17693 {
17694 arg3 = &temp3;
17695 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17696 }
17697 }
17698 {
17699 if (!wxPyCheckForApp()) SWIG_fail;
17700 PyThreadState* __tstate = wxPyBeginAllowThreads();
17701 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
17702
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 {
17707 wxBitmap * resultptr;
17708 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
17709 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
17710 }
17711 {
17712 if (temp1)
17713 delete arg1;
17714 }
17715 {
17716 if (temp2)
17717 delete arg2;
17718 }
17719 return resultobj;
17720 fail:
17721 {
17722 if (temp1)
17723 delete arg1;
17724 }
17725 {
17726 if (temp2)
17727 delete arg2;
17728 }
17729 return NULL;
17730 }
17731
17732
17733 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
17734 PyObject *resultobj = NULL;
17735 wxString *arg1 = 0 ;
17736 wxString const &arg2_defvalue = wxPyART_OTHER ;
17737 wxString *arg2 = (wxString *) &arg2_defvalue ;
17738 wxSize const &arg3_defvalue = wxDefaultSize ;
17739 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
17740 wxIcon result;
17741 bool temp1 = false ;
17742 bool temp2 = false ;
17743 wxSize temp3 ;
17744 PyObject * obj0 = 0 ;
17745 PyObject * obj1 = 0 ;
17746 PyObject * obj2 = 0 ;
17747 char *kwnames[] = {
17748 (char *) "id",(char *) "client",(char *) "size", NULL
17749 };
17750
17751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
17752 {
17753 arg1 = wxString_in_helper(obj0);
17754 if (arg1 == NULL) SWIG_fail;
17755 temp1 = true;
17756 }
17757 if (obj1) {
17758 {
17759 arg2 = wxString_in_helper(obj1);
17760 if (arg2 == NULL) SWIG_fail;
17761 temp2 = true;
17762 }
17763 }
17764 if (obj2) {
17765 {
17766 arg3 = &temp3;
17767 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17768 }
17769 }
17770 {
17771 if (!wxPyCheckForApp()) SWIG_fail;
17772 PyThreadState* __tstate = wxPyBeginAllowThreads();
17773 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
17774
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 {
17779 wxIcon * resultptr;
17780 resultptr = new wxIcon(static_cast<wxIcon & >(result));
17781 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
17782 }
17783 {
17784 if (temp1)
17785 delete arg1;
17786 }
17787 {
17788 if (temp2)
17789 delete arg2;
17790 }
17791 return resultobj;
17792 fail:
17793 {
17794 if (temp1)
17795 delete arg1;
17796 }
17797 {
17798 if (temp2)
17799 delete arg2;
17800 }
17801 return NULL;
17802 }
17803
17804
17805 static PyObject *_wrap_ArtProvider_GetSizeHint(PyObject *, PyObject *args, PyObject *kwargs) {
17806 PyObject *resultobj = NULL;
17807 wxString *arg1 = 0 ;
17808 bool arg2 = (bool) false ;
17809 wxSize result;
17810 bool temp1 = false ;
17811 PyObject * obj0 = 0 ;
17812 PyObject * obj1 = 0 ;
17813 char *kwnames[] = {
17814 (char *) "client",(char *) "platform_dependent", NULL
17815 };
17816
17817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSizeHint",kwnames,&obj0,&obj1)) goto fail;
17818 {
17819 arg1 = wxString_in_helper(obj0);
17820 if (arg1 == NULL) SWIG_fail;
17821 temp1 = true;
17822 }
17823 if (obj1) {
17824 {
17825 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
17826 if (SWIG_arg_fail(2)) SWIG_fail;
17827 }
17828 }
17829 {
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 result = wxPyArtProvider::GetSizeHint((wxString const &)*arg1,arg2);
17832
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 {
17837 wxSize * resultptr;
17838 resultptr = new wxSize(static_cast<wxSize & >(result));
17839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17840 }
17841 {
17842 if (temp1)
17843 delete arg1;
17844 }
17845 return resultobj;
17846 fail:
17847 {
17848 if (temp1)
17849 delete arg1;
17850 }
17851 return NULL;
17852 }
17853
17854
17855 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
17856 PyObject *resultobj = NULL;
17857 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17858 PyObject * obj0 = 0 ;
17859 char *kwnames[] = {
17860 (char *) "self", NULL
17861 };
17862
17863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
17864 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17865 if (SWIG_arg_fail(1)) SWIG_fail;
17866 {
17867 PyThreadState* __tstate = wxPyBeginAllowThreads();
17868 wxPyArtProvider_Destroy(arg1);
17869
17870 wxPyEndAllowThreads(__tstate);
17871 if (PyErr_Occurred()) SWIG_fail;
17872 }
17873 Py_INCREF(Py_None); resultobj = Py_None;
17874 return resultobj;
17875 fail:
17876 return NULL;
17877 }
17878
17879
17880 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
17881 PyObject *obj;
17882 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17883 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
17884 Py_INCREF(obj);
17885 return Py_BuildValue((char *)"");
17886 }
17887 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
17888 PyObject *resultobj = NULL;
17889 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17890 PyObject * obj0 = 0 ;
17891 char *kwnames[] = {
17892 (char *) "self", NULL
17893 };
17894
17895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
17896 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
17897 if (SWIG_arg_fail(1)) SWIG_fail;
17898 {
17899 PyThreadState* __tstate = wxPyBeginAllowThreads();
17900 delete arg1;
17901
17902 wxPyEndAllowThreads(__tstate);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 }
17905 Py_INCREF(Py_None); resultobj = Py_None;
17906 return resultobj;
17907 fail:
17908 return NULL;
17909 }
17910
17911
17912 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
17913 PyObject *resultobj = NULL;
17914 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17915 wxConfigBase *result;
17916 PyObject * obj0 = 0 ;
17917 char *kwnames[] = {
17918 (char *) "config", NULL
17919 };
17920
17921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
17922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
17923 if (SWIG_arg_fail(1)) SWIG_fail;
17924 {
17925 PyThreadState* __tstate = wxPyBeginAllowThreads();
17926 result = (wxConfigBase *)wxConfigBase::Set(arg1);
17927
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17932 return resultobj;
17933 fail:
17934 return NULL;
17935 }
17936
17937
17938 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj = NULL;
17940 bool arg1 = (bool) true ;
17941 wxConfigBase *result;
17942 PyObject * obj0 = 0 ;
17943 char *kwnames[] = {
17944 (char *) "createOnDemand", NULL
17945 };
17946
17947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
17948 if (obj0) {
17949 {
17950 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
17951 if (SWIG_arg_fail(1)) SWIG_fail;
17952 }
17953 }
17954 {
17955 PyThreadState* __tstate = wxPyBeginAllowThreads();
17956 result = (wxConfigBase *)wxConfigBase::Get(arg1);
17957
17958 wxPyEndAllowThreads(__tstate);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 }
17961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17962 return resultobj;
17963 fail:
17964 return NULL;
17965 }
17966
17967
17968 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
17969 PyObject *resultobj = NULL;
17970 wxConfigBase *result;
17971 char *kwnames[] = {
17972 NULL
17973 };
17974
17975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 result = (wxConfigBase *)wxConfigBase::Create();
17979
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17984 return resultobj;
17985 fail:
17986 return NULL;
17987 }
17988
17989
17990 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
17991 PyObject *resultobj = NULL;
17992 char *kwnames[] = {
17993 NULL
17994 };
17995
17996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 wxConfigBase::DontCreateOnDemand();
18000
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 Py_INCREF(Py_None); resultobj = Py_None;
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj = NULL;
18013 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18014 wxString *arg2 = 0 ;
18015 bool temp2 = false ;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 char *kwnames[] = {
18019 (char *) "self",(char *) "path", NULL
18020 };
18021
18022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
18023 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18024 if (SWIG_arg_fail(1)) SWIG_fail;
18025 {
18026 arg2 = wxString_in_helper(obj1);
18027 if (arg2 == NULL) SWIG_fail;
18028 temp2 = true;
18029 }
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 (arg1)->SetPath((wxString const &)*arg2);
18033
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 Py_INCREF(Py_None); resultobj = Py_None;
18038 {
18039 if (temp2)
18040 delete arg2;
18041 }
18042 return resultobj;
18043 fail:
18044 {
18045 if (temp2)
18046 delete arg2;
18047 }
18048 return NULL;
18049 }
18050
18051
18052 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj = NULL;
18054 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18055 wxString *result;
18056 PyObject * obj0 = 0 ;
18057 char *kwnames[] = {
18058 (char *) "self", NULL
18059 };
18060
18061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
18062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18063 if (SWIG_arg_fail(1)) SWIG_fail;
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 {
18067 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
18068 result = (wxString *) &_result_ref;
18069 }
18070
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 {
18075 #if wxUSE_UNICODE
18076 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18077 #else
18078 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18079 #endif
18080 }
18081 return resultobj;
18082 fail:
18083 return NULL;
18084 }
18085
18086
18087 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18088 PyObject *resultobj = NULL;
18089 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18090 PyObject *result;
18091 PyObject * obj0 = 0 ;
18092 char *kwnames[] = {
18093 (char *) "self", NULL
18094 };
18095
18096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
18097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18098 if (SWIG_arg_fail(1)) SWIG_fail;
18099 {
18100 PyThreadState* __tstate = wxPyBeginAllowThreads();
18101 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
18102
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = result;
18107 return resultobj;
18108 fail:
18109 return NULL;
18110 }
18111
18112
18113 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18114 PyObject *resultobj = NULL;
18115 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18116 long arg2 ;
18117 PyObject *result;
18118 PyObject * obj0 = 0 ;
18119 PyObject * obj1 = 0 ;
18120 char *kwnames[] = {
18121 (char *) "self",(char *) "index", NULL
18122 };
18123
18124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
18125 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18126 if (SWIG_arg_fail(1)) SWIG_fail;
18127 {
18128 arg2 = static_cast<long >(SWIG_As_long(obj1));
18129 if (SWIG_arg_fail(2)) SWIG_fail;
18130 }
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
18134
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 resultobj = result;
18139 return resultobj;
18140 fail:
18141 return NULL;
18142 }
18143
18144
18145 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18146 PyObject *resultobj = NULL;
18147 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18148 PyObject *result;
18149 PyObject * obj0 = 0 ;
18150 char *kwnames[] = {
18151 (char *) "self", NULL
18152 };
18153
18154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
18155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18156 if (SWIG_arg_fail(1)) SWIG_fail;
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = result;
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj = NULL;
18173 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18174 long arg2 ;
18175 PyObject *result;
18176 PyObject * obj0 = 0 ;
18177 PyObject * obj1 = 0 ;
18178 char *kwnames[] = {
18179 (char *) "self",(char *) "index", NULL
18180 };
18181
18182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
18183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18184 if (SWIG_arg_fail(1)) SWIG_fail;
18185 {
18186 arg2 = static_cast<long >(SWIG_As_long(obj1));
18187 if (SWIG_arg_fail(2)) SWIG_fail;
18188 }
18189 {
18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
18191 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
18192
18193 wxPyEndAllowThreads(__tstate);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 }
18196 resultobj = result;
18197 return resultobj;
18198 fail:
18199 return NULL;
18200 }
18201
18202
18203 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
18204 PyObject *resultobj = NULL;
18205 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18206 bool arg2 = (bool) false ;
18207 size_t result;
18208 PyObject * obj0 = 0 ;
18209 PyObject * obj1 = 0 ;
18210 char *kwnames[] = {
18211 (char *) "self",(char *) "recursive", NULL
18212 };
18213
18214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
18215 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18216 if (SWIG_arg_fail(1)) SWIG_fail;
18217 if (obj1) {
18218 {
18219 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18220 if (SWIG_arg_fail(2)) SWIG_fail;
18221 }
18222 }
18223 {
18224 PyThreadState* __tstate = wxPyBeginAllowThreads();
18225 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
18226
18227 wxPyEndAllowThreads(__tstate);
18228 if (PyErr_Occurred()) SWIG_fail;
18229 }
18230 {
18231 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
18232 }
18233 return resultobj;
18234 fail:
18235 return NULL;
18236 }
18237
18238
18239 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
18240 PyObject *resultobj = NULL;
18241 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18242 bool arg2 = (bool) false ;
18243 size_t result;
18244 PyObject * obj0 = 0 ;
18245 PyObject * obj1 = 0 ;
18246 char *kwnames[] = {
18247 (char *) "self",(char *) "recursive", NULL
18248 };
18249
18250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
18251 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18252 if (SWIG_arg_fail(1)) SWIG_fail;
18253 if (obj1) {
18254 {
18255 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18256 if (SWIG_arg_fail(2)) SWIG_fail;
18257 }
18258 }
18259 {
18260 PyThreadState* __tstate = wxPyBeginAllowThreads();
18261 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
18262
18263 wxPyEndAllowThreads(__tstate);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 }
18266 {
18267 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
18268 }
18269 return resultobj;
18270 fail:
18271 return NULL;
18272 }
18273
18274
18275 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18276 PyObject *resultobj = NULL;
18277 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18278 wxString *arg2 = 0 ;
18279 bool result;
18280 bool temp2 = false ;
18281 PyObject * obj0 = 0 ;
18282 PyObject * obj1 = 0 ;
18283 char *kwnames[] = {
18284 (char *) "self",(char *) "name", NULL
18285 };
18286
18287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
18288 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18289 if (SWIG_arg_fail(1)) SWIG_fail;
18290 {
18291 arg2 = wxString_in_helper(obj1);
18292 if (arg2 == NULL) SWIG_fail;
18293 temp2 = true;
18294 }
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
18298
18299 wxPyEndAllowThreads(__tstate);
18300 if (PyErr_Occurred()) SWIG_fail;
18301 }
18302 {
18303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18304 }
18305 {
18306 if (temp2)
18307 delete arg2;
18308 }
18309 return resultobj;
18310 fail:
18311 {
18312 if (temp2)
18313 delete arg2;
18314 }
18315 return NULL;
18316 }
18317
18318
18319 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18320 PyObject *resultobj = NULL;
18321 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18322 wxString *arg2 = 0 ;
18323 bool result;
18324 bool temp2 = false ;
18325 PyObject * obj0 = 0 ;
18326 PyObject * obj1 = 0 ;
18327 char *kwnames[] = {
18328 (char *) "self",(char *) "name", NULL
18329 };
18330
18331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
18332 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18333 if (SWIG_arg_fail(1)) SWIG_fail;
18334 {
18335 arg2 = wxString_in_helper(obj1);
18336 if (arg2 == NULL) SWIG_fail;
18337 temp2 = true;
18338 }
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
18342
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 {
18347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18348 }
18349 {
18350 if (temp2)
18351 delete arg2;
18352 }
18353 return resultobj;
18354 fail:
18355 {
18356 if (temp2)
18357 delete arg2;
18358 }
18359 return NULL;
18360 }
18361
18362
18363 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
18364 PyObject *resultobj = NULL;
18365 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18366 wxString *arg2 = 0 ;
18367 bool result;
18368 bool temp2 = false ;
18369 PyObject * obj0 = 0 ;
18370 PyObject * obj1 = 0 ;
18371 char *kwnames[] = {
18372 (char *) "self",(char *) "name", NULL
18373 };
18374
18375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
18376 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18377 if (SWIG_arg_fail(1)) SWIG_fail;
18378 {
18379 arg2 = wxString_in_helper(obj1);
18380 if (arg2 == NULL) SWIG_fail;
18381 temp2 = true;
18382 }
18383 {
18384 PyThreadState* __tstate = wxPyBeginAllowThreads();
18385 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
18386
18387 wxPyEndAllowThreads(__tstate);
18388 if (PyErr_Occurred()) SWIG_fail;
18389 }
18390 {
18391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18392 }
18393 {
18394 if (temp2)
18395 delete arg2;
18396 }
18397 return resultobj;
18398 fail:
18399 {
18400 if (temp2)
18401 delete arg2;
18402 }
18403 return NULL;
18404 }
18405
18406
18407 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
18408 PyObject *resultobj = NULL;
18409 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18410 wxString *arg2 = 0 ;
18411 wxConfigBase::EntryType result;
18412 bool temp2 = false ;
18413 PyObject * obj0 = 0 ;
18414 PyObject * obj1 = 0 ;
18415 char *kwnames[] = {
18416 (char *) "self",(char *) "name", NULL
18417 };
18418
18419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
18420 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18421 if (SWIG_arg_fail(1)) SWIG_fail;
18422 {
18423 arg2 = wxString_in_helper(obj1);
18424 if (arg2 == NULL) SWIG_fail;
18425 temp2 = true;
18426 }
18427 {
18428 PyThreadState* __tstate = wxPyBeginAllowThreads();
18429 result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
18430
18431 wxPyEndAllowThreads(__tstate);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 resultobj = SWIG_From_int((result));
18435 {
18436 if (temp2)
18437 delete arg2;
18438 }
18439 return resultobj;
18440 fail:
18441 {
18442 if (temp2)
18443 delete arg2;
18444 }
18445 return NULL;
18446 }
18447
18448
18449 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj = NULL;
18451 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18452 wxString *arg2 = 0 ;
18453 wxString const &arg3_defvalue = wxPyEmptyString ;
18454 wxString *arg3 = (wxString *) &arg3_defvalue ;
18455 wxString result;
18456 bool temp2 = false ;
18457 bool temp3 = false ;
18458 PyObject * obj0 = 0 ;
18459 PyObject * obj1 = 0 ;
18460 PyObject * obj2 = 0 ;
18461 char *kwnames[] = {
18462 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18463 };
18464
18465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
18466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18467 if (SWIG_arg_fail(1)) SWIG_fail;
18468 {
18469 arg2 = wxString_in_helper(obj1);
18470 if (arg2 == NULL) SWIG_fail;
18471 temp2 = true;
18472 }
18473 if (obj2) {
18474 {
18475 arg3 = wxString_in_helper(obj2);
18476 if (arg3 == NULL) SWIG_fail;
18477 temp3 = true;
18478 }
18479 }
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
18483
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 {
18488 #if wxUSE_UNICODE
18489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18490 #else
18491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18492 #endif
18493 }
18494 {
18495 if (temp2)
18496 delete arg2;
18497 }
18498 {
18499 if (temp3)
18500 delete arg3;
18501 }
18502 return resultobj;
18503 fail:
18504 {
18505 if (temp2)
18506 delete arg2;
18507 }
18508 {
18509 if (temp3)
18510 delete arg3;
18511 }
18512 return NULL;
18513 }
18514
18515
18516 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
18517 PyObject *resultobj = NULL;
18518 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18519 wxString *arg2 = 0 ;
18520 long arg3 = (long) 0 ;
18521 long result;
18522 bool temp2 = false ;
18523 PyObject * obj0 = 0 ;
18524 PyObject * obj1 = 0 ;
18525 PyObject * obj2 = 0 ;
18526 char *kwnames[] = {
18527 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18528 };
18529
18530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
18531 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18532 if (SWIG_arg_fail(1)) SWIG_fail;
18533 {
18534 arg2 = wxString_in_helper(obj1);
18535 if (arg2 == NULL) SWIG_fail;
18536 temp2 = true;
18537 }
18538 if (obj2) {
18539 {
18540 arg3 = static_cast<long >(SWIG_As_long(obj2));
18541 if (SWIG_arg_fail(3)) SWIG_fail;
18542 }
18543 }
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
18547
18548 wxPyEndAllowThreads(__tstate);
18549 if (PyErr_Occurred()) SWIG_fail;
18550 }
18551 {
18552 resultobj = SWIG_From_long(static_cast<long >(result));
18553 }
18554 {
18555 if (temp2)
18556 delete arg2;
18557 }
18558 return resultobj;
18559 fail:
18560 {
18561 if (temp2)
18562 delete arg2;
18563 }
18564 return NULL;
18565 }
18566
18567
18568 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
18569 PyObject *resultobj = NULL;
18570 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18571 wxString *arg2 = 0 ;
18572 double arg3 = (double) 0.0 ;
18573 double result;
18574 bool temp2 = false ;
18575 PyObject * obj0 = 0 ;
18576 PyObject * obj1 = 0 ;
18577 PyObject * obj2 = 0 ;
18578 char *kwnames[] = {
18579 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18580 };
18581
18582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
18583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18584 if (SWIG_arg_fail(1)) SWIG_fail;
18585 {
18586 arg2 = wxString_in_helper(obj1);
18587 if (arg2 == NULL) SWIG_fail;
18588 temp2 = true;
18589 }
18590 if (obj2) {
18591 {
18592 arg3 = static_cast<double >(SWIG_As_double(obj2));
18593 if (SWIG_arg_fail(3)) SWIG_fail;
18594 }
18595 }
18596 {
18597 PyThreadState* __tstate = wxPyBeginAllowThreads();
18598 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
18599
18600 wxPyEndAllowThreads(__tstate);
18601 if (PyErr_Occurred()) SWIG_fail;
18602 }
18603 {
18604 resultobj = SWIG_From_double(static_cast<double >(result));
18605 }
18606 {
18607 if (temp2)
18608 delete arg2;
18609 }
18610 return resultobj;
18611 fail:
18612 {
18613 if (temp2)
18614 delete arg2;
18615 }
18616 return NULL;
18617 }
18618
18619
18620 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
18621 PyObject *resultobj = NULL;
18622 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18623 wxString *arg2 = 0 ;
18624 bool arg3 = (bool) false ;
18625 bool result;
18626 bool temp2 = false ;
18627 PyObject * obj0 = 0 ;
18628 PyObject * obj1 = 0 ;
18629 PyObject * obj2 = 0 ;
18630 char *kwnames[] = {
18631 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18632 };
18633
18634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18635 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18636 if (SWIG_arg_fail(1)) SWIG_fail;
18637 {
18638 arg2 = wxString_in_helper(obj1);
18639 if (arg2 == NULL) SWIG_fail;
18640 temp2 = true;
18641 }
18642 if (obj2) {
18643 {
18644 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
18645 if (SWIG_arg_fail(3)) SWIG_fail;
18646 }
18647 }
18648 {
18649 PyThreadState* __tstate = wxPyBeginAllowThreads();
18650 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
18651
18652 wxPyEndAllowThreads(__tstate);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 }
18655 {
18656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18657 }
18658 {
18659 if (temp2)
18660 delete arg2;
18661 }
18662 return resultobj;
18663 fail:
18664 {
18665 if (temp2)
18666 delete arg2;
18667 }
18668 return NULL;
18669 }
18670
18671
18672 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
18673 PyObject *resultobj = NULL;
18674 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18675 wxString *arg2 = 0 ;
18676 wxString *arg3 = 0 ;
18677 bool result;
18678 bool temp2 = false ;
18679 bool temp3 = false ;
18680 PyObject * obj0 = 0 ;
18681 PyObject * obj1 = 0 ;
18682 PyObject * obj2 = 0 ;
18683 char *kwnames[] = {
18684 (char *) "self",(char *) "key",(char *) "value", NULL
18685 };
18686
18687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
18688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18689 if (SWIG_arg_fail(1)) SWIG_fail;
18690 {
18691 arg2 = wxString_in_helper(obj1);
18692 if (arg2 == NULL) SWIG_fail;
18693 temp2 = true;
18694 }
18695 {
18696 arg3 = wxString_in_helper(obj2);
18697 if (arg3 == NULL) SWIG_fail;
18698 temp3 = true;
18699 }
18700 {
18701 PyThreadState* __tstate = wxPyBeginAllowThreads();
18702 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
18703
18704 wxPyEndAllowThreads(__tstate);
18705 if (PyErr_Occurred()) SWIG_fail;
18706 }
18707 {
18708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18709 }
18710 {
18711 if (temp2)
18712 delete arg2;
18713 }
18714 {
18715 if (temp3)
18716 delete arg3;
18717 }
18718 return resultobj;
18719 fail:
18720 {
18721 if (temp2)
18722 delete arg2;
18723 }
18724 {
18725 if (temp3)
18726 delete arg3;
18727 }
18728 return NULL;
18729 }
18730
18731
18732 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj = NULL;
18734 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18735 wxString *arg2 = 0 ;
18736 long arg3 ;
18737 bool result;
18738 bool temp2 = false ;
18739 PyObject * obj0 = 0 ;
18740 PyObject * obj1 = 0 ;
18741 PyObject * obj2 = 0 ;
18742 char *kwnames[] = {
18743 (char *) "self",(char *) "key",(char *) "value", NULL
18744 };
18745
18746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
18747 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18748 if (SWIG_arg_fail(1)) SWIG_fail;
18749 {
18750 arg2 = wxString_in_helper(obj1);
18751 if (arg2 == NULL) SWIG_fail;
18752 temp2 = true;
18753 }
18754 {
18755 arg3 = static_cast<long >(SWIG_As_long(obj2));
18756 if (SWIG_arg_fail(3)) SWIG_fail;
18757 }
18758 {
18759 PyThreadState* __tstate = wxPyBeginAllowThreads();
18760 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18761
18762 wxPyEndAllowThreads(__tstate);
18763 if (PyErr_Occurred()) SWIG_fail;
18764 }
18765 {
18766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18767 }
18768 {
18769 if (temp2)
18770 delete arg2;
18771 }
18772 return resultobj;
18773 fail:
18774 {
18775 if (temp2)
18776 delete arg2;
18777 }
18778 return NULL;
18779 }
18780
18781
18782 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
18783 PyObject *resultobj = NULL;
18784 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18785 wxString *arg2 = 0 ;
18786 double arg3 ;
18787 bool result;
18788 bool temp2 = false ;
18789 PyObject * obj0 = 0 ;
18790 PyObject * obj1 = 0 ;
18791 PyObject * obj2 = 0 ;
18792 char *kwnames[] = {
18793 (char *) "self",(char *) "key",(char *) "value", NULL
18794 };
18795
18796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
18797 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18798 if (SWIG_arg_fail(1)) SWIG_fail;
18799 {
18800 arg2 = wxString_in_helper(obj1);
18801 if (arg2 == NULL) SWIG_fail;
18802 temp2 = true;
18803 }
18804 {
18805 arg3 = static_cast<double >(SWIG_As_double(obj2));
18806 if (SWIG_arg_fail(3)) SWIG_fail;
18807 }
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18811
18812 wxPyEndAllowThreads(__tstate);
18813 if (PyErr_Occurred()) SWIG_fail;
18814 }
18815 {
18816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18817 }
18818 {
18819 if (temp2)
18820 delete arg2;
18821 }
18822 return resultobj;
18823 fail:
18824 {
18825 if (temp2)
18826 delete arg2;
18827 }
18828 return NULL;
18829 }
18830
18831
18832 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
18833 PyObject *resultobj = NULL;
18834 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18835 wxString *arg2 = 0 ;
18836 bool arg3 ;
18837 bool result;
18838 bool temp2 = false ;
18839 PyObject * obj0 = 0 ;
18840 PyObject * obj1 = 0 ;
18841 PyObject * obj2 = 0 ;
18842 char *kwnames[] = {
18843 (char *) "self",(char *) "key",(char *) "value", NULL
18844 };
18845
18846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18847 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18848 if (SWIG_arg_fail(1)) SWIG_fail;
18849 {
18850 arg2 = wxString_in_helper(obj1);
18851 if (arg2 == NULL) SWIG_fail;
18852 temp2 = true;
18853 }
18854 {
18855 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
18856 if (SWIG_arg_fail(3)) SWIG_fail;
18857 }
18858 {
18859 PyThreadState* __tstate = wxPyBeginAllowThreads();
18860 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18861
18862 wxPyEndAllowThreads(__tstate);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 {
18866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18867 }
18868 {
18869 if (temp2)
18870 delete arg2;
18871 }
18872 return resultobj;
18873 fail:
18874 {
18875 if (temp2)
18876 delete arg2;
18877 }
18878 return NULL;
18879 }
18880
18881
18882 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
18883 PyObject *resultobj = NULL;
18884 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18885 bool arg2 = (bool) false ;
18886 bool result;
18887 PyObject * obj0 = 0 ;
18888 PyObject * obj1 = 0 ;
18889 char *kwnames[] = {
18890 (char *) "self",(char *) "currentOnly", NULL
18891 };
18892
18893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
18894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18895 if (SWIG_arg_fail(1)) SWIG_fail;
18896 if (obj1) {
18897 {
18898 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18899 if (SWIG_arg_fail(2)) SWIG_fail;
18900 }
18901 }
18902 {
18903 PyThreadState* __tstate = wxPyBeginAllowThreads();
18904 result = (bool)(arg1)->Flush(arg2);
18905
18906 wxPyEndAllowThreads(__tstate);
18907 if (PyErr_Occurred()) SWIG_fail;
18908 }
18909 {
18910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18911 }
18912 return resultobj;
18913 fail:
18914 return NULL;
18915 }
18916
18917
18918 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18919 PyObject *resultobj = NULL;
18920 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18921 wxString *arg2 = 0 ;
18922 wxString *arg3 = 0 ;
18923 bool result;
18924 bool temp2 = false ;
18925 bool temp3 = false ;
18926 PyObject * obj0 = 0 ;
18927 PyObject * obj1 = 0 ;
18928 PyObject * obj2 = 0 ;
18929 char *kwnames[] = {
18930 (char *) "self",(char *) "oldName",(char *) "newName", NULL
18931 };
18932
18933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
18934 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18935 if (SWIG_arg_fail(1)) SWIG_fail;
18936 {
18937 arg2 = wxString_in_helper(obj1);
18938 if (arg2 == NULL) SWIG_fail;
18939 temp2 = true;
18940 }
18941 {
18942 arg3 = wxString_in_helper(obj2);
18943 if (arg3 == NULL) SWIG_fail;
18944 temp3 = true;
18945 }
18946 {
18947 PyThreadState* __tstate = wxPyBeginAllowThreads();
18948 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
18949
18950 wxPyEndAllowThreads(__tstate);
18951 if (PyErr_Occurred()) SWIG_fail;
18952 }
18953 {
18954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18955 }
18956 {
18957 if (temp2)
18958 delete arg2;
18959 }
18960 {
18961 if (temp3)
18962 delete arg3;
18963 }
18964 return resultobj;
18965 fail:
18966 {
18967 if (temp2)
18968 delete arg2;
18969 }
18970 {
18971 if (temp3)
18972 delete arg3;
18973 }
18974 return NULL;
18975 }
18976
18977
18978 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18979 PyObject *resultobj = NULL;
18980 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18981 wxString *arg2 = 0 ;
18982 wxString *arg3 = 0 ;
18983 bool result;
18984 bool temp2 = false ;
18985 bool temp3 = false ;
18986 PyObject * obj0 = 0 ;
18987 PyObject * obj1 = 0 ;
18988 PyObject * obj2 = 0 ;
18989 char *kwnames[] = {
18990 (char *) "self",(char *) "oldName",(char *) "newName", NULL
18991 };
18992
18993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
18994 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18995 if (SWIG_arg_fail(1)) SWIG_fail;
18996 {
18997 arg2 = wxString_in_helper(obj1);
18998 if (arg2 == NULL) SWIG_fail;
18999 temp2 = true;
19000 }
19001 {
19002 arg3 = wxString_in_helper(obj2);
19003 if (arg3 == NULL) SWIG_fail;
19004 temp3 = true;
19005 }
19006 {
19007 PyThreadState* __tstate = wxPyBeginAllowThreads();
19008 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
19009
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 {
19014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19015 }
19016 {
19017 if (temp2)
19018 delete arg2;
19019 }
19020 {
19021 if (temp3)
19022 delete arg3;
19023 }
19024 return resultobj;
19025 fail:
19026 {
19027 if (temp2)
19028 delete arg2;
19029 }
19030 {
19031 if (temp3)
19032 delete arg3;
19033 }
19034 return NULL;
19035 }
19036
19037
19038 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj = NULL;
19040 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19041 wxString *arg2 = 0 ;
19042 bool arg3 = (bool) true ;
19043 bool result;
19044 bool temp2 = false ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 PyObject * obj2 = 0 ;
19048 char *kwnames[] = {
19049 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
19050 };
19051
19052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
19053 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19054 if (SWIG_arg_fail(1)) SWIG_fail;
19055 {
19056 arg2 = wxString_in_helper(obj1);
19057 if (arg2 == NULL) SWIG_fail;
19058 temp2 = true;
19059 }
19060 if (obj2) {
19061 {
19062 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
19063 if (SWIG_arg_fail(3)) SWIG_fail;
19064 }
19065 }
19066 {
19067 PyThreadState* __tstate = wxPyBeginAllowThreads();
19068 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
19069
19070 wxPyEndAllowThreads(__tstate);
19071 if (PyErr_Occurred()) SWIG_fail;
19072 }
19073 {
19074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19075 }
19076 {
19077 if (temp2)
19078 delete arg2;
19079 }
19080 return resultobj;
19081 fail:
19082 {
19083 if (temp2)
19084 delete arg2;
19085 }
19086 return NULL;
19087 }
19088
19089
19090 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj = NULL;
19092 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19093 wxString *arg2 = 0 ;
19094 bool result;
19095 bool temp2 = false ;
19096 PyObject * obj0 = 0 ;
19097 PyObject * obj1 = 0 ;
19098 char *kwnames[] = {
19099 (char *) "self",(char *) "key", NULL
19100 };
19101
19102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
19103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19104 if (SWIG_arg_fail(1)) SWIG_fail;
19105 {
19106 arg2 = wxString_in_helper(obj1);
19107 if (arg2 == NULL) SWIG_fail;
19108 temp2 = true;
19109 }
19110 {
19111 PyThreadState* __tstate = wxPyBeginAllowThreads();
19112 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
19113
19114 wxPyEndAllowThreads(__tstate);
19115 if (PyErr_Occurred()) SWIG_fail;
19116 }
19117 {
19118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19119 }
19120 {
19121 if (temp2)
19122 delete arg2;
19123 }
19124 return resultobj;
19125 fail:
19126 {
19127 if (temp2)
19128 delete arg2;
19129 }
19130 return NULL;
19131 }
19132
19133
19134 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj = NULL;
19136 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19137 bool result;
19138 PyObject * obj0 = 0 ;
19139 char *kwnames[] = {
19140 (char *) "self", NULL
19141 };
19142
19143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
19144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19145 if (SWIG_arg_fail(1)) SWIG_fail;
19146 {
19147 PyThreadState* __tstate = wxPyBeginAllowThreads();
19148 result = (bool)(arg1)->DeleteAll();
19149
19150 wxPyEndAllowThreads(__tstate);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 }
19153 {
19154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19155 }
19156 return resultobj;
19157 fail:
19158 return NULL;
19159 }
19160
19161
19162 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19163 PyObject *resultobj = NULL;
19164 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19165 bool arg2 = (bool) true ;
19166 PyObject * obj0 = 0 ;
19167 PyObject * obj1 = 0 ;
19168 char *kwnames[] = {
19169 (char *) "self",(char *) "doIt", NULL
19170 };
19171
19172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
19173 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19174 if (SWIG_arg_fail(1)) SWIG_fail;
19175 if (obj1) {
19176 {
19177 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
19178 if (SWIG_arg_fail(2)) SWIG_fail;
19179 }
19180 }
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 (arg1)->SetExpandEnvVars(arg2);
19184
19185 wxPyEndAllowThreads(__tstate);
19186 if (PyErr_Occurred()) SWIG_fail;
19187 }
19188 Py_INCREF(Py_None); resultobj = Py_None;
19189 return resultobj;
19190 fail:
19191 return NULL;
19192 }
19193
19194
19195 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19196 PyObject *resultobj = NULL;
19197 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19198 bool result;
19199 PyObject * obj0 = 0 ;
19200 char *kwnames[] = {
19201 (char *) "self", NULL
19202 };
19203
19204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
19205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19206 if (SWIG_arg_fail(1)) SWIG_fail;
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
19210
19211 wxPyEndAllowThreads(__tstate);
19212 if (PyErr_Occurred()) SWIG_fail;
19213 }
19214 {
19215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19216 }
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = NULL;
19225 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19226 bool arg2 = (bool) true ;
19227 PyObject * obj0 = 0 ;
19228 PyObject * obj1 = 0 ;
19229 char *kwnames[] = {
19230 (char *) "self",(char *) "doIt", NULL
19231 };
19232
19233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
19234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19235 if (SWIG_arg_fail(1)) SWIG_fail;
19236 if (obj1) {
19237 {
19238 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
19239 if (SWIG_arg_fail(2)) SWIG_fail;
19240 }
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->SetRecordDefaults(arg2);
19245
19246 wxPyEndAllowThreads(__tstate);
19247 if (PyErr_Occurred()) SWIG_fail;
19248 }
19249 Py_INCREF(Py_None); resultobj = Py_None;
19250 return resultobj;
19251 fail:
19252 return NULL;
19253 }
19254
19255
19256 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
19257 PyObject *resultobj = NULL;
19258 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19259 bool result;
19260 PyObject * obj0 = 0 ;
19261 char *kwnames[] = {
19262 (char *) "self", NULL
19263 };
19264
19265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
19266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19267 if (SWIG_arg_fail(1)) SWIG_fail;
19268 {
19269 PyThreadState* __tstate = wxPyBeginAllowThreads();
19270 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
19271
19272 wxPyEndAllowThreads(__tstate);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 }
19275 {
19276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19277 }
19278 return resultobj;
19279 fail:
19280 return NULL;
19281 }
19282
19283
19284 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19285 PyObject *resultobj = NULL;
19286 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19287 wxString *arg2 = 0 ;
19288 wxString result;
19289 bool temp2 = false ;
19290 PyObject * obj0 = 0 ;
19291 PyObject * obj1 = 0 ;
19292 char *kwnames[] = {
19293 (char *) "self",(char *) "str", NULL
19294 };
19295
19296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
19297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19298 if (SWIG_arg_fail(1)) SWIG_fail;
19299 {
19300 arg2 = wxString_in_helper(obj1);
19301 if (arg2 == NULL) SWIG_fail;
19302 temp2 = true;
19303 }
19304 {
19305 PyThreadState* __tstate = wxPyBeginAllowThreads();
19306 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
19307
19308 wxPyEndAllowThreads(__tstate);
19309 if (PyErr_Occurred()) SWIG_fail;
19310 }
19311 {
19312 #if wxUSE_UNICODE
19313 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19314 #else
19315 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19316 #endif
19317 }
19318 {
19319 if (temp2)
19320 delete arg2;
19321 }
19322 return resultobj;
19323 fail:
19324 {
19325 if (temp2)
19326 delete arg2;
19327 }
19328 return NULL;
19329 }
19330
19331
19332 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
19333 PyObject *resultobj = NULL;
19334 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19335 wxString result;
19336 PyObject * obj0 = 0 ;
19337 char *kwnames[] = {
19338 (char *) "self", NULL
19339 };
19340
19341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
19342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19343 if (SWIG_arg_fail(1)) SWIG_fail;
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 result = ((wxConfigBase const *)arg1)->GetAppName();
19347
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 {
19352 #if wxUSE_UNICODE
19353 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19354 #else
19355 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19356 #endif
19357 }
19358 return resultobj;
19359 fail:
19360 return NULL;
19361 }
19362
19363
19364 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
19365 PyObject *resultobj = NULL;
19366 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19367 wxString result;
19368 PyObject * obj0 = 0 ;
19369 char *kwnames[] = {
19370 (char *) "self", NULL
19371 };
19372
19373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
19374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19375 if (SWIG_arg_fail(1)) SWIG_fail;
19376 {
19377 PyThreadState* __tstate = wxPyBeginAllowThreads();
19378 result = ((wxConfigBase const *)arg1)->GetVendorName();
19379
19380 wxPyEndAllowThreads(__tstate);
19381 if (PyErr_Occurred()) SWIG_fail;
19382 }
19383 {
19384 #if wxUSE_UNICODE
19385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19386 #else
19387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19388 #endif
19389 }
19390 return resultobj;
19391 fail:
19392 return NULL;
19393 }
19394
19395
19396 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
19397 PyObject *resultobj = NULL;
19398 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19399 wxString *arg2 = 0 ;
19400 bool temp2 = false ;
19401 PyObject * obj0 = 0 ;
19402 PyObject * obj1 = 0 ;
19403 char *kwnames[] = {
19404 (char *) "self",(char *) "appName", NULL
19405 };
19406
19407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19408 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19409 if (SWIG_arg_fail(1)) SWIG_fail;
19410 {
19411 arg2 = wxString_in_helper(obj1);
19412 if (arg2 == NULL) SWIG_fail;
19413 temp2 = true;
19414 }
19415 {
19416 PyThreadState* __tstate = wxPyBeginAllowThreads();
19417 (arg1)->SetAppName((wxString const &)*arg2);
19418
19419 wxPyEndAllowThreads(__tstate);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 Py_INCREF(Py_None); resultobj = Py_None;
19423 {
19424 if (temp2)
19425 delete arg2;
19426 }
19427 return resultobj;
19428 fail:
19429 {
19430 if (temp2)
19431 delete arg2;
19432 }
19433 return NULL;
19434 }
19435
19436
19437 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
19438 PyObject *resultobj = NULL;
19439 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19440 wxString *arg2 = 0 ;
19441 bool temp2 = false ;
19442 PyObject * obj0 = 0 ;
19443 PyObject * obj1 = 0 ;
19444 char *kwnames[] = {
19445 (char *) "self",(char *) "vendorName", NULL
19446 };
19447
19448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19450 if (SWIG_arg_fail(1)) SWIG_fail;
19451 {
19452 arg2 = wxString_in_helper(obj1);
19453 if (arg2 == NULL) SWIG_fail;
19454 temp2 = true;
19455 }
19456 {
19457 PyThreadState* __tstate = wxPyBeginAllowThreads();
19458 (arg1)->SetVendorName((wxString const &)*arg2);
19459
19460 wxPyEndAllowThreads(__tstate);
19461 if (PyErr_Occurred()) SWIG_fail;
19462 }
19463 Py_INCREF(Py_None); resultobj = Py_None;
19464 {
19465 if (temp2)
19466 delete arg2;
19467 }
19468 return resultobj;
19469 fail:
19470 {
19471 if (temp2)
19472 delete arg2;
19473 }
19474 return NULL;
19475 }
19476
19477
19478 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
19479 PyObject *resultobj = NULL;
19480 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19481 long arg2 ;
19482 PyObject * obj0 = 0 ;
19483 PyObject * obj1 = 0 ;
19484 char *kwnames[] = {
19485 (char *) "self",(char *) "style", NULL
19486 };
19487
19488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
19489 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19490 if (SWIG_arg_fail(1)) SWIG_fail;
19491 {
19492 arg2 = static_cast<long >(SWIG_As_long(obj1));
19493 if (SWIG_arg_fail(2)) SWIG_fail;
19494 }
19495 {
19496 PyThreadState* __tstate = wxPyBeginAllowThreads();
19497 (arg1)->SetStyle(arg2);
19498
19499 wxPyEndAllowThreads(__tstate);
19500 if (PyErr_Occurred()) SWIG_fail;
19501 }
19502 Py_INCREF(Py_None); resultobj = Py_None;
19503 return resultobj;
19504 fail:
19505 return NULL;
19506 }
19507
19508
19509 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
19510 PyObject *resultobj = NULL;
19511 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19512 long result;
19513 PyObject * obj0 = 0 ;
19514 char *kwnames[] = {
19515 (char *) "self", NULL
19516 };
19517
19518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
19519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19520 if (SWIG_arg_fail(1)) SWIG_fail;
19521 {
19522 PyThreadState* __tstate = wxPyBeginAllowThreads();
19523 result = (long)((wxConfigBase const *)arg1)->GetStyle();
19524
19525 wxPyEndAllowThreads(__tstate);
19526 if (PyErr_Occurred()) SWIG_fail;
19527 }
19528 {
19529 resultobj = SWIG_From_long(static_cast<long >(result));
19530 }
19531 return resultobj;
19532 fail:
19533 return NULL;
19534 }
19535
19536
19537 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
19538 PyObject *obj;
19539 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19540 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
19541 Py_INCREF(obj);
19542 return Py_BuildValue((char *)"");
19543 }
19544 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj = NULL;
19546 wxString const &arg1_defvalue = wxPyEmptyString ;
19547 wxString *arg1 = (wxString *) &arg1_defvalue ;
19548 wxString const &arg2_defvalue = wxPyEmptyString ;
19549 wxString *arg2 = (wxString *) &arg2_defvalue ;
19550 wxString const &arg3_defvalue = wxPyEmptyString ;
19551 wxString *arg3 = (wxString *) &arg3_defvalue ;
19552 wxString const &arg4_defvalue = wxPyEmptyString ;
19553 wxString *arg4 = (wxString *) &arg4_defvalue ;
19554 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
19555 wxConfig *result;
19556 bool temp1 = false ;
19557 bool temp2 = false ;
19558 bool temp3 = false ;
19559 bool temp4 = false ;
19560 PyObject * obj0 = 0 ;
19561 PyObject * obj1 = 0 ;
19562 PyObject * obj2 = 0 ;
19563 PyObject * obj3 = 0 ;
19564 PyObject * obj4 = 0 ;
19565 char *kwnames[] = {
19566 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
19567 };
19568
19569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
19570 if (obj0) {
19571 {
19572 arg1 = wxString_in_helper(obj0);
19573 if (arg1 == NULL) SWIG_fail;
19574 temp1 = true;
19575 }
19576 }
19577 if (obj1) {
19578 {
19579 arg2 = wxString_in_helper(obj1);
19580 if (arg2 == NULL) SWIG_fail;
19581 temp2 = true;
19582 }
19583 }
19584 if (obj2) {
19585 {
19586 arg3 = wxString_in_helper(obj2);
19587 if (arg3 == NULL) SWIG_fail;
19588 temp3 = true;
19589 }
19590 }
19591 if (obj3) {
19592 {
19593 arg4 = wxString_in_helper(obj3);
19594 if (arg4 == NULL) SWIG_fail;
19595 temp4 = true;
19596 }
19597 }
19598 if (obj4) {
19599 {
19600 arg5 = static_cast<long >(SWIG_As_long(obj4));
19601 if (SWIG_arg_fail(5)) SWIG_fail;
19602 }
19603 }
19604 {
19605 PyThreadState* __tstate = wxPyBeginAllowThreads();
19606 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
19607
19608 wxPyEndAllowThreads(__tstate);
19609 if (PyErr_Occurred()) SWIG_fail;
19610 }
19611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
19612 {
19613 if (temp1)
19614 delete arg1;
19615 }
19616 {
19617 if (temp2)
19618 delete arg2;
19619 }
19620 {
19621 if (temp3)
19622 delete arg3;
19623 }
19624 {
19625 if (temp4)
19626 delete arg4;
19627 }
19628 return resultobj;
19629 fail:
19630 {
19631 if (temp1)
19632 delete arg1;
19633 }
19634 {
19635 if (temp2)
19636 delete arg2;
19637 }
19638 {
19639 if (temp3)
19640 delete arg3;
19641 }
19642 {
19643 if (temp4)
19644 delete arg4;
19645 }
19646 return NULL;
19647 }
19648
19649
19650 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
19651 PyObject *resultobj = NULL;
19652 wxConfig *arg1 = (wxConfig *) 0 ;
19653 PyObject * obj0 = 0 ;
19654 char *kwnames[] = {
19655 (char *) "self", NULL
19656 };
19657
19658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
19659 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfig, SWIG_POINTER_EXCEPTION | 0);
19660 if (SWIG_arg_fail(1)) SWIG_fail;
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 delete arg1;
19664
19665 wxPyEndAllowThreads(__tstate);
19666 if (PyErr_Occurred()) SWIG_fail;
19667 }
19668 Py_INCREF(Py_None); resultobj = Py_None;
19669 return resultobj;
19670 fail:
19671 return NULL;
19672 }
19673
19674
19675 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
19676 PyObject *obj;
19677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19678 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
19679 Py_INCREF(obj);
19680 return Py_BuildValue((char *)"");
19681 }
19682 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
19683 PyObject *resultobj = NULL;
19684 wxString const &arg1_defvalue = wxPyEmptyString ;
19685 wxString *arg1 = (wxString *) &arg1_defvalue ;
19686 wxString const &arg2_defvalue = wxPyEmptyString ;
19687 wxString *arg2 = (wxString *) &arg2_defvalue ;
19688 wxString const &arg3_defvalue = wxPyEmptyString ;
19689 wxString *arg3 = (wxString *) &arg3_defvalue ;
19690 wxString const &arg4_defvalue = wxPyEmptyString ;
19691 wxString *arg4 = (wxString *) &arg4_defvalue ;
19692 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
19693 wxFileConfig *result;
19694 bool temp1 = false ;
19695 bool temp2 = false ;
19696 bool temp3 = false ;
19697 bool temp4 = false ;
19698 PyObject * obj0 = 0 ;
19699 PyObject * obj1 = 0 ;
19700 PyObject * obj2 = 0 ;
19701 PyObject * obj3 = 0 ;
19702 PyObject * obj4 = 0 ;
19703 char *kwnames[] = {
19704 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
19705 };
19706
19707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
19708 if (obj0) {
19709 {
19710 arg1 = wxString_in_helper(obj0);
19711 if (arg1 == NULL) SWIG_fail;
19712 temp1 = true;
19713 }
19714 }
19715 if (obj1) {
19716 {
19717 arg2 = wxString_in_helper(obj1);
19718 if (arg2 == NULL) SWIG_fail;
19719 temp2 = true;
19720 }
19721 }
19722 if (obj2) {
19723 {
19724 arg3 = wxString_in_helper(obj2);
19725 if (arg3 == NULL) SWIG_fail;
19726 temp3 = true;
19727 }
19728 }
19729 if (obj3) {
19730 {
19731 arg4 = wxString_in_helper(obj3);
19732 if (arg4 == NULL) SWIG_fail;
19733 temp4 = true;
19734 }
19735 }
19736 if (obj4) {
19737 {
19738 arg5 = static_cast<long >(SWIG_As_long(obj4));
19739 if (SWIG_arg_fail(5)) SWIG_fail;
19740 }
19741 }
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
19745
19746 wxPyEndAllowThreads(__tstate);
19747 if (PyErr_Occurred()) SWIG_fail;
19748 }
19749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
19750 {
19751 if (temp1)
19752 delete arg1;
19753 }
19754 {
19755 if (temp2)
19756 delete arg2;
19757 }
19758 {
19759 if (temp3)
19760 delete arg3;
19761 }
19762 {
19763 if (temp4)
19764 delete arg4;
19765 }
19766 return resultobj;
19767 fail:
19768 {
19769 if (temp1)
19770 delete arg1;
19771 }
19772 {
19773 if (temp2)
19774 delete arg2;
19775 }
19776 {
19777 if (temp3)
19778 delete arg3;
19779 }
19780 {
19781 if (temp4)
19782 delete arg4;
19783 }
19784 return NULL;
19785 }
19786
19787
19788 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
19789 PyObject *resultobj = NULL;
19790 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
19791 PyObject * obj0 = 0 ;
19792 char *kwnames[] = {
19793 (char *) "self", NULL
19794 };
19795
19796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
19797 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileConfig, SWIG_POINTER_EXCEPTION | 0);
19798 if (SWIG_arg_fail(1)) SWIG_fail;
19799 {
19800 PyThreadState* __tstate = wxPyBeginAllowThreads();
19801 delete arg1;
19802
19803 wxPyEndAllowThreads(__tstate);
19804 if (PyErr_Occurred()) SWIG_fail;
19805 }
19806 Py_INCREF(Py_None); resultobj = Py_None;
19807 return resultobj;
19808 fail:
19809 return NULL;
19810 }
19811
19812
19813 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
19814 PyObject *obj;
19815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19816 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
19817 Py_INCREF(obj);
19818 return Py_BuildValue((char *)"");
19819 }
19820 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
19821 PyObject *resultobj = NULL;
19822 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19823 wxString *arg2 = 0 ;
19824 wxConfigPathChanger *result;
19825 bool temp2 = false ;
19826 PyObject * obj0 = 0 ;
19827 PyObject * obj1 = 0 ;
19828 char *kwnames[] = {
19829 (char *) "config",(char *) "entry", NULL
19830 };
19831
19832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
19833 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19834 if (SWIG_arg_fail(1)) SWIG_fail;
19835 {
19836 arg2 = wxString_in_helper(obj1);
19837 if (arg2 == NULL) SWIG_fail;
19838 temp2 = true;
19839 }
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
19843
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
19847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
19848 {
19849 if (temp2)
19850 delete arg2;
19851 }
19852 return resultobj;
19853 fail:
19854 {
19855 if (temp2)
19856 delete arg2;
19857 }
19858 return NULL;
19859 }
19860
19861
19862 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
19863 PyObject *resultobj = NULL;
19864 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
19865 PyObject * obj0 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
19871 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0);
19872 if (SWIG_arg_fail(1)) SWIG_fail;
19873 {
19874 PyThreadState* __tstate = wxPyBeginAllowThreads();
19875 delete arg1;
19876
19877 wxPyEndAllowThreads(__tstate);
19878 if (PyErr_Occurred()) SWIG_fail;
19879 }
19880 Py_INCREF(Py_None); resultobj = Py_None;
19881 return resultobj;
19882 fail:
19883 return NULL;
19884 }
19885
19886
19887 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
19888 PyObject *resultobj = NULL;
19889 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
19890 wxString *result;
19891 PyObject * obj0 = 0 ;
19892 char *kwnames[] = {
19893 (char *) "self", NULL
19894 };
19895
19896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
19897 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0);
19898 if (SWIG_arg_fail(1)) SWIG_fail;
19899 {
19900 PyThreadState* __tstate = wxPyBeginAllowThreads();
19901 {
19902 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
19903 result = (wxString *) &_result_ref;
19904 }
19905
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 {
19910 #if wxUSE_UNICODE
19911 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19912 #else
19913 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19914 #endif
19915 }
19916 return resultobj;
19917 fail:
19918 return NULL;
19919 }
19920
19921
19922 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
19923 PyObject *obj;
19924 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19925 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
19926 Py_INCREF(obj);
19927 return Py_BuildValue((char *)"");
19928 }
19929 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19930 PyObject *resultobj = NULL;
19931 wxString *arg1 = 0 ;
19932 wxString result;
19933 bool temp1 = false ;
19934 PyObject * obj0 = 0 ;
19935 char *kwnames[] = {
19936 (char *) "sz", NULL
19937 };
19938
19939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
19940 {
19941 arg1 = wxString_in_helper(obj0);
19942 if (arg1 == NULL) SWIG_fail;
19943 temp1 = true;
19944 }
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 result = wxExpandEnvVars((wxString const &)*arg1);
19948
19949 wxPyEndAllowThreads(__tstate);
19950 if (PyErr_Occurred()) SWIG_fail;
19951 }
19952 {
19953 #if wxUSE_UNICODE
19954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19955 #else
19956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19957 #endif
19958 }
19959 {
19960 if (temp1)
19961 delete arg1;
19962 }
19963 return resultobj;
19964 fail:
19965 {
19966 if (temp1)
19967 delete arg1;
19968 }
19969 return NULL;
19970 }
19971
19972
19973 static int _wrap_DefaultDateTimeFormat_set(PyObject *) {
19974 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTimeFormat is read-only.");
19975 return 1;
19976 }
19977
19978
19979 static PyObject *_wrap_DefaultDateTimeFormat_get(void) {
19980 PyObject *pyobj = NULL;
19981
19982 {
19983 #if wxUSE_UNICODE
19984 pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
19985 #else
19986 pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
19987 #endif
19988 }
19989 return pyobj;
19990 }
19991
19992
19993 static int _wrap_DefaultTimeSpanFormat_set(PyObject *) {
19994 PyErr_SetString(PyExc_TypeError,"Variable DefaultTimeSpanFormat is read-only.");
19995 return 1;
19996 }
19997
19998
19999 static PyObject *_wrap_DefaultTimeSpanFormat_get(void) {
20000 PyObject *pyobj = NULL;
20001
20002 {
20003 #if wxUSE_UNICODE
20004 pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
20005 #else
20006 pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
20007 #endif
20008 }
20009 return pyobj;
20010 }
20011
20012
20013 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
20014 PyObject *resultobj = NULL;
20015 wxDateTime::Country arg1 ;
20016 PyObject * obj0 = 0 ;
20017 char *kwnames[] = {
20018 (char *) "country", NULL
20019 };
20020
20021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
20022 {
20023 arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0));
20024 if (SWIG_arg_fail(1)) SWIG_fail;
20025 }
20026 {
20027 PyThreadState* __tstate = wxPyBeginAllowThreads();
20028 wxDateTime::SetCountry(arg1);
20029
20030 wxPyEndAllowThreads(__tstate);
20031 if (PyErr_Occurred()) SWIG_fail;
20032 }
20033 Py_INCREF(Py_None); resultobj = Py_None;
20034 return resultobj;
20035 fail:
20036 return NULL;
20037 }
20038
20039
20040 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
20041 PyObject *resultobj = NULL;
20042 wxDateTime::Country result;
20043 char *kwnames[] = {
20044 NULL
20045 };
20046
20047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
20048 {
20049 PyThreadState* __tstate = wxPyBeginAllowThreads();
20050 result = (wxDateTime::Country)wxDateTime::GetCountry();
20051
20052 wxPyEndAllowThreads(__tstate);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 }
20055 resultobj = SWIG_From_int((result));
20056 return resultobj;
20057 fail:
20058 return NULL;
20059 }
20060
20061
20062 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = NULL;
20064 wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ;
20065 bool result;
20066 PyObject * obj0 = 0 ;
20067 char *kwnames[] = {
20068 (char *) "country", NULL
20069 };
20070
20071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
20072 if (obj0) {
20073 {
20074 arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0));
20075 if (SWIG_arg_fail(1)) SWIG_fail;
20076 }
20077 }
20078 {
20079 PyThreadState* __tstate = wxPyBeginAllowThreads();
20080 result = (bool)wxDateTime::IsWestEuropeanCountry(arg1);
20081
20082 wxPyEndAllowThreads(__tstate);
20083 if (PyErr_Occurred()) SWIG_fail;
20084 }
20085 {
20086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20087 }
20088 return resultobj;
20089 fail:
20090 return NULL;
20091 }
20092
20093
20094 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
20095 PyObject *resultobj = NULL;
20096 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20097 int result;
20098 PyObject * obj0 = 0 ;
20099 char *kwnames[] = {
20100 (char *) "cal", NULL
20101 };
20102
20103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
20104 if (obj0) {
20105 {
20106 arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0));
20107 if (SWIG_arg_fail(1)) SWIG_fail;
20108 }
20109 }
20110 {
20111 PyThreadState* __tstate = wxPyBeginAllowThreads();
20112 result = (int)wxDateTime::GetCurrentYear(arg1);
20113
20114 wxPyEndAllowThreads(__tstate);
20115 if (PyErr_Occurred()) SWIG_fail;
20116 }
20117 {
20118 resultobj = SWIG_From_int(static_cast<int >(result));
20119 }
20120 return resultobj;
20121 fail:
20122 return NULL;
20123 }
20124
20125
20126 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
20127 PyObject *resultobj = NULL;
20128 int arg1 ;
20129 int result;
20130 PyObject * obj0 = 0 ;
20131 char *kwnames[] = {
20132 (char *) "year", NULL
20133 };
20134
20135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
20136 {
20137 arg1 = static_cast<int >(SWIG_As_int(obj0));
20138 if (SWIG_arg_fail(1)) SWIG_fail;
20139 }
20140 {
20141 PyThreadState* __tstate = wxPyBeginAllowThreads();
20142 result = (int)wxDateTime::ConvertYearToBC(arg1);
20143
20144 wxPyEndAllowThreads(__tstate);
20145 if (PyErr_Occurred()) SWIG_fail;
20146 }
20147 {
20148 resultobj = SWIG_From_int(static_cast<int >(result));
20149 }
20150 return resultobj;
20151 fail:
20152 return NULL;
20153 }
20154
20155
20156 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj = NULL;
20158 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20159 wxDateTime::Month result;
20160 PyObject * obj0 = 0 ;
20161 char *kwnames[] = {
20162 (char *) "cal", NULL
20163 };
20164
20165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
20166 if (obj0) {
20167 {
20168 arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0));
20169 if (SWIG_arg_fail(1)) SWIG_fail;
20170 }
20171 }
20172 {
20173 PyThreadState* __tstate = wxPyBeginAllowThreads();
20174 result = (wxDateTime::Month)wxDateTime::GetCurrentMonth(arg1);
20175
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 resultobj = SWIG_From_int((result));
20180 return resultobj;
20181 fail:
20182 return NULL;
20183 }
20184
20185
20186 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
20187 PyObject *resultobj = NULL;
20188 int arg1 = (int) wxDateTime::Inv_Year ;
20189 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20190 bool result;
20191 PyObject * obj0 = 0 ;
20192 PyObject * obj1 = 0 ;
20193 char *kwnames[] = {
20194 (char *) "year",(char *) "cal", NULL
20195 };
20196
20197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
20198 if (obj0) {
20199 {
20200 arg1 = static_cast<int >(SWIG_As_int(obj0));
20201 if (SWIG_arg_fail(1)) SWIG_fail;
20202 }
20203 }
20204 if (obj1) {
20205 {
20206 arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1));
20207 if (SWIG_arg_fail(2)) SWIG_fail;
20208 }
20209 }
20210 {
20211 PyThreadState* __tstate = wxPyBeginAllowThreads();
20212 result = (bool)wxDateTime::IsLeapYear(arg1,arg2);
20213
20214 wxPyEndAllowThreads(__tstate);
20215 if (PyErr_Occurred()) SWIG_fail;
20216 }
20217 {
20218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20219 }
20220 return resultobj;
20221 fail:
20222 return NULL;
20223 }
20224
20225
20226 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
20227 PyObject *resultobj = NULL;
20228 int arg1 = (int) wxDateTime::Inv_Year ;
20229 int result;
20230 PyObject * obj0 = 0 ;
20231 char *kwnames[] = {
20232 (char *) "year", NULL
20233 };
20234
20235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
20236 if (obj0) {
20237 {
20238 arg1 = static_cast<int >(SWIG_As_int(obj0));
20239 if (SWIG_arg_fail(1)) SWIG_fail;
20240 }
20241 }
20242 {
20243 PyThreadState* __tstate = wxPyBeginAllowThreads();
20244 result = (int)wxDateTime::GetCentury(arg1);
20245
20246 wxPyEndAllowThreads(__tstate);
20247 if (PyErr_Occurred()) SWIG_fail;
20248 }
20249 {
20250 resultobj = SWIG_From_int(static_cast<int >(result));
20251 }
20252 return resultobj;
20253 fail:
20254 return NULL;
20255 }
20256
20257
20258 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
20259 PyObject *resultobj = NULL;
20260 int arg1 ;
20261 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20262 int result;
20263 PyObject * obj0 = 0 ;
20264 PyObject * obj1 = 0 ;
20265 char *kwnames[] = {
20266 (char *) "year",(char *) "cal", NULL
20267 };
20268
20269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
20270 {
20271 arg1 = static_cast<int >(SWIG_As_int(obj0));
20272 if (SWIG_arg_fail(1)) SWIG_fail;
20273 }
20274 if (obj1) {
20275 {
20276 arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1));
20277 if (SWIG_arg_fail(2)) SWIG_fail;
20278 }
20279 }
20280 {
20281 PyThreadState* __tstate = wxPyBeginAllowThreads();
20282 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2);
20283
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 {
20288 resultobj = SWIG_From_int(static_cast<int >(result));
20289 }
20290 return resultobj;
20291 fail:
20292 return NULL;
20293 }
20294
20295
20296 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
20297 PyObject *resultobj = NULL;
20298 wxDateTime::Month arg1 ;
20299 int arg2 = (int) wxDateTime::Inv_Year ;
20300 wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20301 int result;
20302 PyObject * obj0 = 0 ;
20303 PyObject * obj1 = 0 ;
20304 PyObject * obj2 = 0 ;
20305 char *kwnames[] = {
20306 (char *) "month",(char *) "year",(char *) "cal", NULL
20307 };
20308
20309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20310 {
20311 arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0));
20312 if (SWIG_arg_fail(1)) SWIG_fail;
20313 }
20314 if (obj1) {
20315 {
20316 arg2 = static_cast<int >(SWIG_As_int(obj1));
20317 if (SWIG_arg_fail(2)) SWIG_fail;
20318 }
20319 }
20320 if (obj2) {
20321 {
20322 arg3 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj2));
20323 if (SWIG_arg_fail(3)) SWIG_fail;
20324 }
20325 }
20326 {
20327 PyThreadState* __tstate = wxPyBeginAllowThreads();
20328 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2,arg3);
20329
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 {
20334 resultobj = SWIG_From_int(static_cast<int >(result));
20335 }
20336 return resultobj;
20337 fail:
20338 return NULL;
20339 }
20340
20341
20342 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
20343 PyObject *resultobj = NULL;
20344 wxDateTime::Month arg1 ;
20345 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
20346 wxString result;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20349 char *kwnames[] = {
20350 (char *) "month",(char *) "flags", NULL
20351 };
20352
20353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
20354 {
20355 arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0));
20356 if (SWIG_arg_fail(1)) SWIG_fail;
20357 }
20358 if (obj1) {
20359 {
20360 arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1));
20361 if (SWIG_arg_fail(2)) SWIG_fail;
20362 }
20363 }
20364 {
20365 PyThreadState* __tstate = wxPyBeginAllowThreads();
20366 result = wxDateTime::GetMonthName(arg1,arg2);
20367
20368 wxPyEndAllowThreads(__tstate);
20369 if (PyErr_Occurred()) SWIG_fail;
20370 }
20371 {
20372 #if wxUSE_UNICODE
20373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20374 #else
20375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20376 #endif
20377 }
20378 return resultobj;
20379 fail:
20380 return NULL;
20381 }
20382
20383
20384 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
20385 PyObject *resultobj = NULL;
20386 wxDateTime::WeekDay arg1 ;
20387 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
20388 wxString result;
20389 PyObject * obj0 = 0 ;
20390 PyObject * obj1 = 0 ;
20391 char *kwnames[] = {
20392 (char *) "weekday",(char *) "flags", NULL
20393 };
20394
20395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
20396 {
20397 arg1 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj0));
20398 if (SWIG_arg_fail(1)) SWIG_fail;
20399 }
20400 if (obj1) {
20401 {
20402 arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1));
20403 if (SWIG_arg_fail(2)) SWIG_fail;
20404 }
20405 }
20406 {
20407 PyThreadState* __tstate = wxPyBeginAllowThreads();
20408 result = wxDateTime::GetWeekDayName(arg1,arg2);
20409
20410 wxPyEndAllowThreads(__tstate);
20411 if (PyErr_Occurred()) SWIG_fail;
20412 }
20413 {
20414 #if wxUSE_UNICODE
20415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20416 #else
20417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20418 #endif
20419 }
20420 return resultobj;
20421 fail:
20422 return NULL;
20423 }
20424
20425
20426 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
20427 PyObject *resultobj = NULL;
20428 PyObject *result;
20429 char *kwnames[] = {
20430 NULL
20431 };
20432
20433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetAmPmStrings",kwnames)) goto fail;
20434 {
20435 PyThreadState* __tstate = wxPyBeginAllowThreads();
20436 result = (PyObject *)wxDateTime_GetAmPmStrings();
20437
20438 wxPyEndAllowThreads(__tstate);
20439 if (PyErr_Occurred()) SWIG_fail;
20440 }
20441 resultobj = result;
20442 return resultobj;
20443 fail:
20444 return NULL;
20445 }
20446
20447
20448 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
20449 PyObject *resultobj = NULL;
20450 int arg1 = (int) wxDateTime::Inv_Year ;
20451 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20452 bool result;
20453 PyObject * obj0 = 0 ;
20454 PyObject * obj1 = 0 ;
20455 char *kwnames[] = {
20456 (char *) "year",(char *) "country", NULL
20457 };
20458
20459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
20460 if (obj0) {
20461 {
20462 arg1 = static_cast<int >(SWIG_As_int(obj0));
20463 if (SWIG_arg_fail(1)) SWIG_fail;
20464 }
20465 }
20466 if (obj1) {
20467 {
20468 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20469 if (SWIG_arg_fail(2)) SWIG_fail;
20470 }
20471 }
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 result = (bool)wxDateTime::IsDSTApplicable(arg1,arg2);
20475
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 {
20480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20481 }
20482 return resultobj;
20483 fail:
20484 return NULL;
20485 }
20486
20487
20488 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
20489 PyObject *resultobj = NULL;
20490 int arg1 = (int) wxDateTime::Inv_Year ;
20491 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20492 wxDateTime result;
20493 PyObject * obj0 = 0 ;
20494 PyObject * obj1 = 0 ;
20495 char *kwnames[] = {
20496 (char *) "year",(char *) "country", NULL
20497 };
20498
20499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
20500 if (obj0) {
20501 {
20502 arg1 = static_cast<int >(SWIG_As_int(obj0));
20503 if (SWIG_arg_fail(1)) SWIG_fail;
20504 }
20505 }
20506 if (obj1) {
20507 {
20508 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20509 if (SWIG_arg_fail(2)) SWIG_fail;
20510 }
20511 }
20512 {
20513 PyThreadState* __tstate = wxPyBeginAllowThreads();
20514 result = wxDateTime::GetBeginDST(arg1,arg2);
20515
20516 wxPyEndAllowThreads(__tstate);
20517 if (PyErr_Occurred()) SWIG_fail;
20518 }
20519 {
20520 wxDateTime * resultptr;
20521 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20522 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20523 }
20524 return resultobj;
20525 fail:
20526 return NULL;
20527 }
20528
20529
20530 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
20531 PyObject *resultobj = NULL;
20532 int arg1 = (int) wxDateTime::Inv_Year ;
20533 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20534 wxDateTime result;
20535 PyObject * obj0 = 0 ;
20536 PyObject * obj1 = 0 ;
20537 char *kwnames[] = {
20538 (char *) "year",(char *) "country", NULL
20539 };
20540
20541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
20542 if (obj0) {
20543 {
20544 arg1 = static_cast<int >(SWIG_As_int(obj0));
20545 if (SWIG_arg_fail(1)) SWIG_fail;
20546 }
20547 }
20548 if (obj1) {
20549 {
20550 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20551 if (SWIG_arg_fail(2)) SWIG_fail;
20552 }
20553 }
20554 {
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 result = wxDateTime::GetEndDST(arg1,arg2);
20557
20558 wxPyEndAllowThreads(__tstate);
20559 if (PyErr_Occurred()) SWIG_fail;
20560 }
20561 {
20562 wxDateTime * resultptr;
20563 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20565 }
20566 return resultobj;
20567 fail:
20568 return NULL;
20569 }
20570
20571
20572 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
20573 PyObject *resultobj = NULL;
20574 wxDateTime result;
20575 char *kwnames[] = {
20576 NULL
20577 };
20578
20579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
20580 {
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 result = wxDateTime::Now();
20583
20584 wxPyEndAllowThreads(__tstate);
20585 if (PyErr_Occurred()) SWIG_fail;
20586 }
20587 {
20588 wxDateTime * resultptr;
20589 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20590 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20591 }
20592 return resultobj;
20593 fail:
20594 return NULL;
20595 }
20596
20597
20598 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
20599 PyObject *resultobj = NULL;
20600 wxDateTime result;
20601 char *kwnames[] = {
20602 NULL
20603 };
20604
20605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
20606 {
20607 PyThreadState* __tstate = wxPyBeginAllowThreads();
20608 result = wxDateTime::UNow();
20609
20610 wxPyEndAllowThreads(__tstate);
20611 if (PyErr_Occurred()) SWIG_fail;
20612 }
20613 {
20614 wxDateTime * resultptr;
20615 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20616 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20617 }
20618 return resultobj;
20619 fail:
20620 return NULL;
20621 }
20622
20623
20624 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
20625 PyObject *resultobj = NULL;
20626 wxDateTime result;
20627 char *kwnames[] = {
20628 NULL
20629 };
20630
20631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
20632 {
20633 PyThreadState* __tstate = wxPyBeginAllowThreads();
20634 result = wxDateTime::Today();
20635
20636 wxPyEndAllowThreads(__tstate);
20637 if (PyErr_Occurred()) SWIG_fail;
20638 }
20639 {
20640 wxDateTime * resultptr;
20641 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20642 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20643 }
20644 return resultobj;
20645 fail:
20646 return NULL;
20647 }
20648
20649
20650 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20651 PyObject *resultobj = NULL;
20652 wxDateTime *result;
20653 char *kwnames[] = {
20654 NULL
20655 };
20656
20657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
20658 {
20659 PyThreadState* __tstate = wxPyBeginAllowThreads();
20660 result = (wxDateTime *)new wxDateTime();
20661
20662 wxPyEndAllowThreads(__tstate);
20663 if (PyErr_Occurred()) SWIG_fail;
20664 }
20665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20666 return resultobj;
20667 fail:
20668 return NULL;
20669 }
20670
20671
20672 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
20673 PyObject *resultobj = NULL;
20674 time_t arg1 ;
20675 wxDateTime *result;
20676 PyObject * obj0 = 0 ;
20677 char *kwnames[] = {
20678 (char *) "timet", NULL
20679 };
20680
20681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
20682 {
20683 arg1 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj0));
20684 if (SWIG_arg_fail(1)) SWIG_fail;
20685 }
20686 {
20687 PyThreadState* __tstate = wxPyBeginAllowThreads();
20688 result = (wxDateTime *)new wxDateTime(arg1);
20689
20690 wxPyEndAllowThreads(__tstate);
20691 if (PyErr_Occurred()) SWIG_fail;
20692 }
20693 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20694 return resultobj;
20695 fail:
20696 return NULL;
20697 }
20698
20699
20700 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
20701 PyObject *resultobj = NULL;
20702 double arg1 ;
20703 wxDateTime *result;
20704 PyObject * obj0 = 0 ;
20705 char *kwnames[] = {
20706 (char *) "jdn", NULL
20707 };
20708
20709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
20710 {
20711 arg1 = static_cast<double >(SWIG_As_double(obj0));
20712 if (SWIG_arg_fail(1)) SWIG_fail;
20713 }
20714 {
20715 PyThreadState* __tstate = wxPyBeginAllowThreads();
20716 result = (wxDateTime *)new wxDateTime(arg1);
20717
20718 wxPyEndAllowThreads(__tstate);
20719 if (PyErr_Occurred()) SWIG_fail;
20720 }
20721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20722 return resultobj;
20723 fail:
20724 return NULL;
20725 }
20726
20727
20728 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
20729 PyObject *resultobj = NULL;
20730 int arg1 ;
20731 int arg2 = (int) 0 ;
20732 int arg3 = (int) 0 ;
20733 int arg4 = (int) 0 ;
20734 wxDateTime *result;
20735 PyObject * obj0 = 0 ;
20736 PyObject * obj1 = 0 ;
20737 PyObject * obj2 = 0 ;
20738 PyObject * obj3 = 0 ;
20739 char *kwnames[] = {
20740 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20741 };
20742
20743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20744 {
20745 arg1 = static_cast<int >(SWIG_As_int(obj0));
20746 if (SWIG_arg_fail(1)) SWIG_fail;
20747 }
20748 if (obj1) {
20749 {
20750 arg2 = static_cast<int >(SWIG_As_int(obj1));
20751 if (SWIG_arg_fail(2)) SWIG_fail;
20752 }
20753 }
20754 if (obj2) {
20755 {
20756 arg3 = static_cast<int >(SWIG_As_int(obj2));
20757 if (SWIG_arg_fail(3)) SWIG_fail;
20758 }
20759 }
20760 if (obj3) {
20761 {
20762 arg4 = static_cast<int >(SWIG_As_int(obj3));
20763 if (SWIG_arg_fail(4)) SWIG_fail;
20764 }
20765 }
20766 {
20767 PyThreadState* __tstate = wxPyBeginAllowThreads();
20768 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
20769
20770 wxPyEndAllowThreads(__tstate);
20771 if (PyErr_Occurred()) SWIG_fail;
20772 }
20773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20774 return resultobj;
20775 fail:
20776 return NULL;
20777 }
20778
20779
20780 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
20781 PyObject *resultobj = NULL;
20782 int arg1 ;
20783 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
20784 int arg3 = (int) wxDateTime::Inv_Year ;
20785 int arg4 = (int) 0 ;
20786 int arg5 = (int) 0 ;
20787 int arg6 = (int) 0 ;
20788 int arg7 = (int) 0 ;
20789 wxDateTime *result;
20790 PyObject * obj0 = 0 ;
20791 PyObject * obj1 = 0 ;
20792 PyObject * obj2 = 0 ;
20793 PyObject * obj3 = 0 ;
20794 PyObject * obj4 = 0 ;
20795 PyObject * obj5 = 0 ;
20796 PyObject * obj6 = 0 ;
20797 char *kwnames[] = {
20798 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20799 };
20800
20801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20802 {
20803 arg1 = static_cast<int >(SWIG_As_int(obj0));
20804 if (SWIG_arg_fail(1)) SWIG_fail;
20805 }
20806 if (obj1) {
20807 {
20808 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
20809 if (SWIG_arg_fail(2)) SWIG_fail;
20810 }
20811 }
20812 if (obj2) {
20813 {
20814 arg3 = static_cast<int >(SWIG_As_int(obj2));
20815 if (SWIG_arg_fail(3)) SWIG_fail;
20816 }
20817 }
20818 if (obj3) {
20819 {
20820 arg4 = static_cast<int >(SWIG_As_int(obj3));
20821 if (SWIG_arg_fail(4)) SWIG_fail;
20822 }
20823 }
20824 if (obj4) {
20825 {
20826 arg5 = static_cast<int >(SWIG_As_int(obj4));
20827 if (SWIG_arg_fail(5)) SWIG_fail;
20828 }
20829 }
20830 if (obj5) {
20831 {
20832 arg6 = static_cast<int >(SWIG_As_int(obj5));
20833 if (SWIG_arg_fail(6)) SWIG_fail;
20834 }
20835 }
20836 if (obj6) {
20837 {
20838 arg7 = static_cast<int >(SWIG_As_int(obj6));
20839 if (SWIG_arg_fail(7)) SWIG_fail;
20840 }
20841 }
20842 {
20843 PyThreadState* __tstate = wxPyBeginAllowThreads();
20844 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
20845
20846 wxPyEndAllowThreads(__tstate);
20847 if (PyErr_Occurred()) SWIG_fail;
20848 }
20849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20850 return resultobj;
20851 fail:
20852 return NULL;
20853 }
20854
20855
20856 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj = NULL;
20858 wxDateTime *arg1 = (wxDateTime *) 0 ;
20859 PyObject * obj0 = 0 ;
20860 char *kwnames[] = {
20861 (char *) "self", NULL
20862 };
20863
20864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
20865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20866 if (SWIG_arg_fail(1)) SWIG_fail;
20867 {
20868 PyThreadState* __tstate = wxPyBeginAllowThreads();
20869 delete arg1;
20870
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 Py_INCREF(Py_None); resultobj = Py_None;
20875 return resultobj;
20876 fail:
20877 return NULL;
20878 }
20879
20880
20881 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
20882 PyObject *resultobj = NULL;
20883 wxDateTime *arg1 = (wxDateTime *) 0 ;
20884 wxDateTime *result;
20885 PyObject * obj0 = 0 ;
20886 char *kwnames[] = {
20887 (char *) "self", NULL
20888 };
20889
20890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
20891 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20892 if (SWIG_arg_fail(1)) SWIG_fail;
20893 {
20894 PyThreadState* __tstate = wxPyBeginAllowThreads();
20895 {
20896 wxDateTime &_result_ref = (arg1)->SetToCurrent();
20897 result = (wxDateTime *) &_result_ref;
20898 }
20899
20900 wxPyEndAllowThreads(__tstate);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20904 return resultobj;
20905 fail:
20906 return NULL;
20907 }
20908
20909
20910 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
20911 PyObject *resultobj = NULL;
20912 wxDateTime *arg1 = (wxDateTime *) 0 ;
20913 time_t arg2 ;
20914 wxDateTime *result;
20915 PyObject * obj0 = 0 ;
20916 PyObject * obj1 = 0 ;
20917 char *kwnames[] = {
20918 (char *) "self",(char *) "timet", NULL
20919 };
20920
20921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
20922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20923 if (SWIG_arg_fail(1)) SWIG_fail;
20924 {
20925 arg2 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj1));
20926 if (SWIG_arg_fail(2)) SWIG_fail;
20927 }
20928 {
20929 PyThreadState* __tstate = wxPyBeginAllowThreads();
20930 {
20931 wxDateTime &_result_ref = (arg1)->Set(arg2);
20932 result = (wxDateTime *) &_result_ref;
20933 }
20934
20935 wxPyEndAllowThreads(__tstate);
20936 if (PyErr_Occurred()) SWIG_fail;
20937 }
20938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20939 return resultobj;
20940 fail:
20941 return NULL;
20942 }
20943
20944
20945 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
20946 PyObject *resultobj = NULL;
20947 wxDateTime *arg1 = (wxDateTime *) 0 ;
20948 double arg2 ;
20949 wxDateTime *result;
20950 PyObject * obj0 = 0 ;
20951 PyObject * obj1 = 0 ;
20952 char *kwnames[] = {
20953 (char *) "self",(char *) "jdn", NULL
20954 };
20955
20956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
20957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20958 if (SWIG_arg_fail(1)) SWIG_fail;
20959 {
20960 arg2 = static_cast<double >(SWIG_As_double(obj1));
20961 if (SWIG_arg_fail(2)) SWIG_fail;
20962 }
20963 {
20964 PyThreadState* __tstate = wxPyBeginAllowThreads();
20965 {
20966 wxDateTime &_result_ref = (arg1)->Set(arg2);
20967 result = (wxDateTime *) &_result_ref;
20968 }
20969
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20974 return resultobj;
20975 fail:
20976 return NULL;
20977 }
20978
20979
20980 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
20981 PyObject *resultobj = NULL;
20982 wxDateTime *arg1 = (wxDateTime *) 0 ;
20983 int arg2 ;
20984 int arg3 = (int) 0 ;
20985 int arg4 = (int) 0 ;
20986 int arg5 = (int) 0 ;
20987 wxDateTime *result;
20988 PyObject * obj0 = 0 ;
20989 PyObject * obj1 = 0 ;
20990 PyObject * obj2 = 0 ;
20991 PyObject * obj3 = 0 ;
20992 PyObject * obj4 = 0 ;
20993 char *kwnames[] = {
20994 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20995 };
20996
20997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20998 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20999 if (SWIG_arg_fail(1)) SWIG_fail;
21000 {
21001 arg2 = static_cast<int >(SWIG_As_int(obj1));
21002 if (SWIG_arg_fail(2)) SWIG_fail;
21003 }
21004 if (obj2) {
21005 {
21006 arg3 = static_cast<int >(SWIG_As_int(obj2));
21007 if (SWIG_arg_fail(3)) SWIG_fail;
21008 }
21009 }
21010 if (obj3) {
21011 {
21012 arg4 = static_cast<int >(SWIG_As_int(obj3));
21013 if (SWIG_arg_fail(4)) SWIG_fail;
21014 }
21015 }
21016 if (obj4) {
21017 {
21018 arg5 = static_cast<int >(SWIG_As_int(obj4));
21019 if (SWIG_arg_fail(5)) SWIG_fail;
21020 }
21021 }
21022 {
21023 PyThreadState* __tstate = wxPyBeginAllowThreads();
21024 {
21025 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
21026 result = (wxDateTime *) &_result_ref;
21027 }
21028
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21033 return resultobj;
21034 fail:
21035 return NULL;
21036 }
21037
21038
21039 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj = NULL;
21041 wxDateTime *arg1 = (wxDateTime *) 0 ;
21042 int arg2 ;
21043 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21044 int arg4 = (int) wxDateTime::Inv_Year ;
21045 int arg5 = (int) 0 ;
21046 int arg6 = (int) 0 ;
21047 int arg7 = (int) 0 ;
21048 int arg8 = (int) 0 ;
21049 wxDateTime *result;
21050 PyObject * obj0 = 0 ;
21051 PyObject * obj1 = 0 ;
21052 PyObject * obj2 = 0 ;
21053 PyObject * obj3 = 0 ;
21054 PyObject * obj4 = 0 ;
21055 PyObject * obj5 = 0 ;
21056 PyObject * obj6 = 0 ;
21057 PyObject * obj7 = 0 ;
21058 char *kwnames[] = {
21059 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
21060 };
21061
21062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21064 if (SWIG_arg_fail(1)) SWIG_fail;
21065 {
21066 arg2 = static_cast<int >(SWIG_As_int(obj1));
21067 if (SWIG_arg_fail(2)) SWIG_fail;
21068 }
21069 if (obj2) {
21070 {
21071 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21072 if (SWIG_arg_fail(3)) SWIG_fail;
21073 }
21074 }
21075 if (obj3) {
21076 {
21077 arg4 = static_cast<int >(SWIG_As_int(obj3));
21078 if (SWIG_arg_fail(4)) SWIG_fail;
21079 }
21080 }
21081 if (obj4) {
21082 {
21083 arg5 = static_cast<int >(SWIG_As_int(obj4));
21084 if (SWIG_arg_fail(5)) SWIG_fail;
21085 }
21086 }
21087 if (obj5) {
21088 {
21089 arg6 = static_cast<int >(SWIG_As_int(obj5));
21090 if (SWIG_arg_fail(6)) SWIG_fail;
21091 }
21092 }
21093 if (obj6) {
21094 {
21095 arg7 = static_cast<int >(SWIG_As_int(obj6));
21096 if (SWIG_arg_fail(7)) SWIG_fail;
21097 }
21098 }
21099 if (obj7) {
21100 {
21101 arg8 = static_cast<int >(SWIG_As_int(obj7));
21102 if (SWIG_arg_fail(8)) SWIG_fail;
21103 }
21104 }
21105 {
21106 PyThreadState* __tstate = wxPyBeginAllowThreads();
21107 {
21108 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
21109 result = (wxDateTime *) &_result_ref;
21110 }
21111
21112 wxPyEndAllowThreads(__tstate);
21113 if (PyErr_Occurred()) SWIG_fail;
21114 }
21115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21116 return resultobj;
21117 fail:
21118 return NULL;
21119 }
21120
21121
21122 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
21123 PyObject *resultobj = NULL;
21124 wxDateTime *arg1 = (wxDateTime *) 0 ;
21125 wxDateTime *result;
21126 PyObject * obj0 = 0 ;
21127 char *kwnames[] = {
21128 (char *) "self", NULL
21129 };
21130
21131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
21132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21133 if (SWIG_arg_fail(1)) SWIG_fail;
21134 {
21135 PyThreadState* __tstate = wxPyBeginAllowThreads();
21136 {
21137 wxDateTime &_result_ref = (arg1)->ResetTime();
21138 result = (wxDateTime *) &_result_ref;
21139 }
21140
21141 wxPyEndAllowThreads(__tstate);
21142 if (PyErr_Occurred()) SWIG_fail;
21143 }
21144 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21145 return resultobj;
21146 fail:
21147 return NULL;
21148 }
21149
21150
21151 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
21152 PyObject *resultobj = NULL;
21153 wxDateTime *arg1 = (wxDateTime *) 0 ;
21154 int arg2 ;
21155 wxDateTime *result;
21156 PyObject * obj0 = 0 ;
21157 PyObject * obj1 = 0 ;
21158 char *kwnames[] = {
21159 (char *) "self",(char *) "year", NULL
21160 };
21161
21162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
21163 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21164 if (SWIG_arg_fail(1)) SWIG_fail;
21165 {
21166 arg2 = static_cast<int >(SWIG_As_int(obj1));
21167 if (SWIG_arg_fail(2)) SWIG_fail;
21168 }
21169 {
21170 PyThreadState* __tstate = wxPyBeginAllowThreads();
21171 {
21172 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
21173 result = (wxDateTime *) &_result_ref;
21174 }
21175
21176 wxPyEndAllowThreads(__tstate);
21177 if (PyErr_Occurred()) SWIG_fail;
21178 }
21179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21180 return resultobj;
21181 fail:
21182 return NULL;
21183 }
21184
21185
21186 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
21187 PyObject *resultobj = NULL;
21188 wxDateTime *arg1 = (wxDateTime *) 0 ;
21189 wxDateTime::Month arg2 ;
21190 wxDateTime *result;
21191 PyObject * obj0 = 0 ;
21192 PyObject * obj1 = 0 ;
21193 char *kwnames[] = {
21194 (char *) "self",(char *) "month", NULL
21195 };
21196
21197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
21198 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21199 if (SWIG_arg_fail(1)) SWIG_fail;
21200 {
21201 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21202 if (SWIG_arg_fail(2)) SWIG_fail;
21203 }
21204 {
21205 PyThreadState* __tstate = wxPyBeginAllowThreads();
21206 {
21207 wxDateTime &_result_ref = (arg1)->SetMonth(arg2);
21208 result = (wxDateTime *) &_result_ref;
21209 }
21210
21211 wxPyEndAllowThreads(__tstate);
21212 if (PyErr_Occurred()) SWIG_fail;
21213 }
21214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21215 return resultobj;
21216 fail:
21217 return NULL;
21218 }
21219
21220
21221 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
21222 PyObject *resultobj = NULL;
21223 wxDateTime *arg1 = (wxDateTime *) 0 ;
21224 int arg2 ;
21225 wxDateTime *result;
21226 PyObject * obj0 = 0 ;
21227 PyObject * obj1 = 0 ;
21228 char *kwnames[] = {
21229 (char *) "self",(char *) "day", NULL
21230 };
21231
21232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
21233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21234 if (SWIG_arg_fail(1)) SWIG_fail;
21235 {
21236 arg2 = static_cast<int >(SWIG_As_int(obj1));
21237 if (SWIG_arg_fail(2)) SWIG_fail;
21238 }
21239 {
21240 PyThreadState* __tstate = wxPyBeginAllowThreads();
21241 {
21242 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
21243 result = (wxDateTime *) &_result_ref;
21244 }
21245
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21250 return resultobj;
21251 fail:
21252 return NULL;
21253 }
21254
21255
21256 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
21257 PyObject *resultobj = NULL;
21258 wxDateTime *arg1 = (wxDateTime *) 0 ;
21259 int arg2 ;
21260 wxDateTime *result;
21261 PyObject * obj0 = 0 ;
21262 PyObject * obj1 = 0 ;
21263 char *kwnames[] = {
21264 (char *) "self",(char *) "hour", NULL
21265 };
21266
21267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
21268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21269 if (SWIG_arg_fail(1)) SWIG_fail;
21270 {
21271 arg2 = static_cast<int >(SWIG_As_int(obj1));
21272 if (SWIG_arg_fail(2)) SWIG_fail;
21273 }
21274 {
21275 PyThreadState* __tstate = wxPyBeginAllowThreads();
21276 {
21277 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
21278 result = (wxDateTime *) &_result_ref;
21279 }
21280
21281 wxPyEndAllowThreads(__tstate);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21285 return resultobj;
21286 fail:
21287 return NULL;
21288 }
21289
21290
21291 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj = NULL;
21293 wxDateTime *arg1 = (wxDateTime *) 0 ;
21294 int arg2 ;
21295 wxDateTime *result;
21296 PyObject * obj0 = 0 ;
21297 PyObject * obj1 = 0 ;
21298 char *kwnames[] = {
21299 (char *) "self",(char *) "minute", NULL
21300 };
21301
21302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
21303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21304 if (SWIG_arg_fail(1)) SWIG_fail;
21305 {
21306 arg2 = static_cast<int >(SWIG_As_int(obj1));
21307 if (SWIG_arg_fail(2)) SWIG_fail;
21308 }
21309 {
21310 PyThreadState* __tstate = wxPyBeginAllowThreads();
21311 {
21312 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
21313 result = (wxDateTime *) &_result_ref;
21314 }
21315
21316 wxPyEndAllowThreads(__tstate);
21317 if (PyErr_Occurred()) SWIG_fail;
21318 }
21319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21320 return resultobj;
21321 fail:
21322 return NULL;
21323 }
21324
21325
21326 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
21327 PyObject *resultobj = NULL;
21328 wxDateTime *arg1 = (wxDateTime *) 0 ;
21329 int arg2 ;
21330 wxDateTime *result;
21331 PyObject * obj0 = 0 ;
21332 PyObject * obj1 = 0 ;
21333 char *kwnames[] = {
21334 (char *) "self",(char *) "second", NULL
21335 };
21336
21337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
21338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21339 if (SWIG_arg_fail(1)) SWIG_fail;
21340 {
21341 arg2 = static_cast<int >(SWIG_As_int(obj1));
21342 if (SWIG_arg_fail(2)) SWIG_fail;
21343 }
21344 {
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 {
21347 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
21348 result = (wxDateTime *) &_result_ref;
21349 }
21350
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21355 return resultobj;
21356 fail:
21357 return NULL;
21358 }
21359
21360
21361 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
21362 PyObject *resultobj = NULL;
21363 wxDateTime *arg1 = (wxDateTime *) 0 ;
21364 int arg2 ;
21365 wxDateTime *result;
21366 PyObject * obj0 = 0 ;
21367 PyObject * obj1 = 0 ;
21368 char *kwnames[] = {
21369 (char *) "self",(char *) "millisecond", NULL
21370 };
21371
21372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
21373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21374 if (SWIG_arg_fail(1)) SWIG_fail;
21375 {
21376 arg2 = static_cast<int >(SWIG_As_int(obj1));
21377 if (SWIG_arg_fail(2)) SWIG_fail;
21378 }
21379 {
21380 PyThreadState* __tstate = wxPyBeginAllowThreads();
21381 {
21382 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
21383 result = (wxDateTime *) &_result_ref;
21384 }
21385
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21397 PyObject *resultobj = NULL;
21398 wxDateTime *arg1 = (wxDateTime *) 0 ;
21399 wxDateTime::WeekDay arg2 ;
21400 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21401 wxDateTime *result;
21402 PyObject * obj0 = 0 ;
21403 PyObject * obj1 = 0 ;
21404 PyObject * obj2 = 0 ;
21405 char *kwnames[] = {
21406 (char *) "self",(char *) "weekday",(char *) "flags", NULL
21407 };
21408
21409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
21410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21411 if (SWIG_arg_fail(1)) SWIG_fail;
21412 {
21413 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21414 if (SWIG_arg_fail(2)) SWIG_fail;
21415 }
21416 if (obj2) {
21417 {
21418 arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2));
21419 if (SWIG_arg_fail(3)) SWIG_fail;
21420 }
21421 }
21422 {
21423 PyThreadState* __tstate = wxPyBeginAllowThreads();
21424 {
21425 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek(arg2,arg3);
21426 result = (wxDateTime *) &_result_ref;
21427 }
21428
21429 wxPyEndAllowThreads(__tstate);
21430 if (PyErr_Occurred()) SWIG_fail;
21431 }
21432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21433 return resultobj;
21434 fail:
21435 return NULL;
21436 }
21437
21438
21439 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21440 PyObject *resultobj = NULL;
21441 wxDateTime *arg1 = (wxDateTime *) 0 ;
21442 wxDateTime::WeekDay arg2 ;
21443 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21444 wxDateTime result;
21445 PyObject * obj0 = 0 ;
21446 PyObject * obj1 = 0 ;
21447 PyObject * obj2 = 0 ;
21448 char *kwnames[] = {
21449 (char *) "self",(char *) "weekday",(char *) "flags", NULL
21450 };
21451
21452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
21453 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21454 if (SWIG_arg_fail(1)) SWIG_fail;
21455 {
21456 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21457 if (SWIG_arg_fail(2)) SWIG_fail;
21458 }
21459 if (obj2) {
21460 {
21461 arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2));
21462 if (SWIG_arg_fail(3)) SWIG_fail;
21463 }
21464 }
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 result = (arg1)->GetWeekDayInSameWeek(arg2,arg3);
21468
21469 wxPyEndAllowThreads(__tstate);
21470 if (PyErr_Occurred()) SWIG_fail;
21471 }
21472 {
21473 wxDateTime * resultptr;
21474 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21475 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21476 }
21477 return resultobj;
21478 fail:
21479 return NULL;
21480 }
21481
21482
21483 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21484 PyObject *resultobj = NULL;
21485 wxDateTime *arg1 = (wxDateTime *) 0 ;
21486 wxDateTime::WeekDay arg2 ;
21487 wxDateTime *result;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21490 char *kwnames[] = {
21491 (char *) "self",(char *) "weekday", NULL
21492 };
21493
21494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
21495 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21496 if (SWIG_arg_fail(1)) SWIG_fail;
21497 {
21498 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21499 if (SWIG_arg_fail(2)) SWIG_fail;
21500 }
21501 {
21502 PyThreadState* __tstate = wxPyBeginAllowThreads();
21503 {
21504 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay(arg2);
21505 result = (wxDateTime *) &_result_ref;
21506 }
21507
21508 wxPyEndAllowThreads(__tstate);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21512 return resultobj;
21513 fail:
21514 return NULL;
21515 }
21516
21517
21518 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21519 PyObject *resultobj = NULL;
21520 wxDateTime *arg1 = (wxDateTime *) 0 ;
21521 wxDateTime::WeekDay arg2 ;
21522 wxDateTime result;
21523 PyObject * obj0 = 0 ;
21524 PyObject * obj1 = 0 ;
21525 char *kwnames[] = {
21526 (char *) "self",(char *) "weekday", NULL
21527 };
21528
21529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
21530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21531 if (SWIG_arg_fail(1)) SWIG_fail;
21532 {
21533 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21534 if (SWIG_arg_fail(2)) SWIG_fail;
21535 }
21536 {
21537 PyThreadState* __tstate = wxPyBeginAllowThreads();
21538 result = (arg1)->GetNextWeekDay(arg2);
21539
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 {
21544 wxDateTime * resultptr;
21545 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21547 }
21548 return resultobj;
21549 fail:
21550 return NULL;
21551 }
21552
21553
21554 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21555 PyObject *resultobj = NULL;
21556 wxDateTime *arg1 = (wxDateTime *) 0 ;
21557 wxDateTime::WeekDay arg2 ;
21558 wxDateTime *result;
21559 PyObject * obj0 = 0 ;
21560 PyObject * obj1 = 0 ;
21561 char *kwnames[] = {
21562 (char *) "self",(char *) "weekday", NULL
21563 };
21564
21565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
21566 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21567 if (SWIG_arg_fail(1)) SWIG_fail;
21568 {
21569 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21570 if (SWIG_arg_fail(2)) SWIG_fail;
21571 }
21572 {
21573 PyThreadState* __tstate = wxPyBeginAllowThreads();
21574 {
21575 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay(arg2);
21576 result = (wxDateTime *) &_result_ref;
21577 }
21578
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21583 return resultobj;
21584 fail:
21585 return NULL;
21586 }
21587
21588
21589 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21590 PyObject *resultobj = NULL;
21591 wxDateTime *arg1 = (wxDateTime *) 0 ;
21592 wxDateTime::WeekDay arg2 ;
21593 wxDateTime result;
21594 PyObject * obj0 = 0 ;
21595 PyObject * obj1 = 0 ;
21596 char *kwnames[] = {
21597 (char *) "self",(char *) "weekday", NULL
21598 };
21599
21600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
21601 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21602 if (SWIG_arg_fail(1)) SWIG_fail;
21603 {
21604 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21605 if (SWIG_arg_fail(2)) SWIG_fail;
21606 }
21607 {
21608 PyThreadState* __tstate = wxPyBeginAllowThreads();
21609 result = (arg1)->GetPrevWeekDay(arg2);
21610
21611 wxPyEndAllowThreads(__tstate);
21612 if (PyErr_Occurred()) SWIG_fail;
21613 }
21614 {
21615 wxDateTime * resultptr;
21616 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21617 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21618 }
21619 return resultobj;
21620 fail:
21621 return NULL;
21622 }
21623
21624
21625 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21626 PyObject *resultobj = NULL;
21627 wxDateTime *arg1 = (wxDateTime *) 0 ;
21628 wxDateTime::WeekDay arg2 ;
21629 int arg3 = (int) 1 ;
21630 wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21631 int arg5 = (int) wxDateTime::Inv_Year ;
21632 bool result;
21633 PyObject * obj0 = 0 ;
21634 PyObject * obj1 = 0 ;
21635 PyObject * obj2 = 0 ;
21636 PyObject * obj3 = 0 ;
21637 PyObject * obj4 = 0 ;
21638 char *kwnames[] = {
21639 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
21640 };
21641
21642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21644 if (SWIG_arg_fail(1)) SWIG_fail;
21645 {
21646 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21647 if (SWIG_arg_fail(2)) SWIG_fail;
21648 }
21649 if (obj2) {
21650 {
21651 arg3 = static_cast<int >(SWIG_As_int(obj2));
21652 if (SWIG_arg_fail(3)) SWIG_fail;
21653 }
21654 }
21655 if (obj3) {
21656 {
21657 arg4 = static_cast<wxDateTime::Month >(SWIG_As_int(obj3));
21658 if (SWIG_arg_fail(4)) SWIG_fail;
21659 }
21660 }
21661 if (obj4) {
21662 {
21663 arg5 = static_cast<int >(SWIG_As_int(obj4));
21664 if (SWIG_arg_fail(5)) SWIG_fail;
21665 }
21666 }
21667 {
21668 PyThreadState* __tstate = wxPyBeginAllowThreads();
21669 result = (bool)(arg1)->SetToWeekDay(arg2,arg3,arg4,arg5);
21670
21671 wxPyEndAllowThreads(__tstate);
21672 if (PyErr_Occurred()) SWIG_fail;
21673 }
21674 {
21675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21676 }
21677 return resultobj;
21678 fail:
21679 return NULL;
21680 }
21681
21682
21683 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21684 PyObject *resultobj = NULL;
21685 wxDateTime *arg1 = (wxDateTime *) 0 ;
21686 wxDateTime::WeekDay arg2 ;
21687 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21688 int arg4 = (int) wxDateTime::Inv_Year ;
21689 bool result;
21690 PyObject * obj0 = 0 ;
21691 PyObject * obj1 = 0 ;
21692 PyObject * obj2 = 0 ;
21693 PyObject * obj3 = 0 ;
21694 char *kwnames[] = {
21695 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
21696 };
21697
21698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21699 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21700 if (SWIG_arg_fail(1)) SWIG_fail;
21701 {
21702 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21703 if (SWIG_arg_fail(2)) SWIG_fail;
21704 }
21705 if (obj2) {
21706 {
21707 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21708 if (SWIG_arg_fail(3)) SWIG_fail;
21709 }
21710 }
21711 if (obj3) {
21712 {
21713 arg4 = static_cast<int >(SWIG_As_int(obj3));
21714 if (SWIG_arg_fail(4)) SWIG_fail;
21715 }
21716 }
21717 {
21718 PyThreadState* __tstate = wxPyBeginAllowThreads();
21719 result = (bool)(arg1)->SetToLastWeekDay(arg2,arg3,arg4);
21720
21721 wxPyEndAllowThreads(__tstate);
21722 if (PyErr_Occurred()) SWIG_fail;
21723 }
21724 {
21725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21726 }
21727 return resultobj;
21728 fail:
21729 return NULL;
21730 }
21731
21732
21733 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21734 PyObject *resultobj = NULL;
21735 wxDateTime *arg1 = (wxDateTime *) 0 ;
21736 wxDateTime::WeekDay arg2 ;
21737 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21738 int arg4 = (int) wxDateTime::Inv_Year ;
21739 wxDateTime result;
21740 PyObject * obj0 = 0 ;
21741 PyObject * obj1 = 0 ;
21742 PyObject * obj2 = 0 ;
21743 PyObject * obj3 = 0 ;
21744 char *kwnames[] = {
21745 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
21746 };
21747
21748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21750 if (SWIG_arg_fail(1)) SWIG_fail;
21751 {
21752 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21753 if (SWIG_arg_fail(2)) SWIG_fail;
21754 }
21755 if (obj2) {
21756 {
21757 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21758 if (SWIG_arg_fail(3)) SWIG_fail;
21759 }
21760 }
21761 if (obj3) {
21762 {
21763 arg4 = static_cast<int >(SWIG_As_int(obj3));
21764 if (SWIG_arg_fail(4)) SWIG_fail;
21765 }
21766 }
21767 {
21768 PyThreadState* __tstate = wxPyBeginAllowThreads();
21769 result = (arg1)->GetLastWeekDay(arg2,arg3,arg4);
21770
21771 wxPyEndAllowThreads(__tstate);
21772 if (PyErr_Occurred()) SWIG_fail;
21773 }
21774 {
21775 wxDateTime * resultptr;
21776 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21777 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21778 }
21779 return resultobj;
21780 fail:
21781 return NULL;
21782 }
21783
21784
21785 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21786 PyObject *resultobj = NULL;
21787 wxDateTime *arg1 = (wxDateTime *) 0 ;
21788 int arg2 ;
21789 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21790 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21791 bool result;
21792 PyObject * obj0 = 0 ;
21793 PyObject * obj1 = 0 ;
21794 PyObject * obj2 = 0 ;
21795 PyObject * obj3 = 0 ;
21796 char *kwnames[] = {
21797 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
21798 };
21799
21800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21801 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21802 if (SWIG_arg_fail(1)) SWIG_fail;
21803 {
21804 arg2 = static_cast<int >(SWIG_As_int(obj1));
21805 if (SWIG_arg_fail(2)) SWIG_fail;
21806 }
21807 if (obj2) {
21808 {
21809 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21810 if (SWIG_arg_fail(3)) SWIG_fail;
21811 }
21812 }
21813 if (obj3) {
21814 {
21815 arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3));
21816 if (SWIG_arg_fail(4)) SWIG_fail;
21817 }
21818 }
21819 {
21820 PyThreadState* __tstate = wxPyBeginAllowThreads();
21821 result = (bool)(arg1)->SetToTheWeek(arg2,arg3,arg4);
21822
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 {
21827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21828 }
21829 return resultobj;
21830 fail:
21831 return NULL;
21832 }
21833
21834
21835 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21836 PyObject *resultobj = NULL;
21837 wxDateTime *arg1 = (wxDateTime *) 0 ;
21838 int arg2 ;
21839 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21840 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21841 wxDateTime result;
21842 PyObject * obj0 = 0 ;
21843 PyObject * obj1 = 0 ;
21844 PyObject * obj2 = 0 ;
21845 PyObject * obj3 = 0 ;
21846 char *kwnames[] = {
21847 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
21848 };
21849
21850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21851 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21852 if (SWIG_arg_fail(1)) SWIG_fail;
21853 {
21854 arg2 = static_cast<int >(SWIG_As_int(obj1));
21855 if (SWIG_arg_fail(2)) SWIG_fail;
21856 }
21857 if (obj2) {
21858 {
21859 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21860 if (SWIG_arg_fail(3)) SWIG_fail;
21861 }
21862 }
21863 if (obj3) {
21864 {
21865 arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3));
21866 if (SWIG_arg_fail(4)) SWIG_fail;
21867 }
21868 }
21869 {
21870 PyThreadState* __tstate = wxPyBeginAllowThreads();
21871 result = (arg1)->GetWeek(arg2,arg3,arg4);
21872
21873 wxPyEndAllowThreads(__tstate);
21874 if (PyErr_Occurred()) SWIG_fail;
21875 }
21876 {
21877 wxDateTime * resultptr;
21878 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21880 }
21881 return resultobj;
21882 fail:
21883 return NULL;
21884 }
21885
21886
21887 static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
21888 PyObject *resultobj = NULL;
21889 int arg1 ;
21890 int arg2 ;
21891 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21892 wxDateTime result;
21893 PyObject * obj0 = 0 ;
21894 PyObject * obj1 = 0 ;
21895 PyObject * obj2 = 0 ;
21896 char *kwnames[] = {
21897 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
21898 };
21899
21900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
21901 {
21902 arg1 = static_cast<int >(SWIG_As_int(obj0));
21903 if (SWIG_arg_fail(1)) SWIG_fail;
21904 }
21905 {
21906 arg2 = static_cast<int >(SWIG_As_int(obj1));
21907 if (SWIG_arg_fail(2)) SWIG_fail;
21908 }
21909 if (obj2) {
21910 {
21911 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21912 if (SWIG_arg_fail(3)) SWIG_fail;
21913 }
21914 }
21915 {
21916 PyThreadState* __tstate = wxPyBeginAllowThreads();
21917 result = wxDateTime::SetToWeekOfYear(arg1,arg2,arg3);
21918
21919 wxPyEndAllowThreads(__tstate);
21920 if (PyErr_Occurred()) SWIG_fail;
21921 }
21922 {
21923 wxDateTime * resultptr;
21924 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21925 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21926 }
21927 return resultobj;
21928 fail:
21929 return NULL;
21930 }
21931
21932
21933 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
21934 PyObject *resultobj = NULL;
21935 wxDateTime *arg1 = (wxDateTime *) 0 ;
21936 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21937 int arg3 = (int) wxDateTime::Inv_Year ;
21938 wxDateTime *result;
21939 PyObject * obj0 = 0 ;
21940 PyObject * obj1 = 0 ;
21941 PyObject * obj2 = 0 ;
21942 char *kwnames[] = {
21943 (char *) "self",(char *) "month",(char *) "year", NULL
21944 };
21945
21946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
21947 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21948 if (SWIG_arg_fail(1)) SWIG_fail;
21949 if (obj1) {
21950 {
21951 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21952 if (SWIG_arg_fail(2)) SWIG_fail;
21953 }
21954 }
21955 if (obj2) {
21956 {
21957 arg3 = static_cast<int >(SWIG_As_int(obj2));
21958 if (SWIG_arg_fail(3)) SWIG_fail;
21959 }
21960 }
21961 {
21962 PyThreadState* __tstate = wxPyBeginAllowThreads();
21963 {
21964 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay(arg2,arg3);
21965 result = (wxDateTime *) &_result_ref;
21966 }
21967
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21972 return resultobj;
21973 fail:
21974 return NULL;
21975 }
21976
21977
21978 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
21979 PyObject *resultobj = NULL;
21980 wxDateTime *arg1 = (wxDateTime *) 0 ;
21981 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21982 int arg3 = (int) wxDateTime::Inv_Year ;
21983 wxDateTime result;
21984 PyObject * obj0 = 0 ;
21985 PyObject * obj1 = 0 ;
21986 PyObject * obj2 = 0 ;
21987 char *kwnames[] = {
21988 (char *) "self",(char *) "month",(char *) "year", NULL
21989 };
21990
21991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
21992 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21993 if (SWIG_arg_fail(1)) SWIG_fail;
21994 if (obj1) {
21995 {
21996 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21997 if (SWIG_arg_fail(2)) SWIG_fail;
21998 }
21999 }
22000 if (obj2) {
22001 {
22002 arg3 = static_cast<int >(SWIG_As_int(obj2));
22003 if (SWIG_arg_fail(3)) SWIG_fail;
22004 }
22005 }
22006 {
22007 PyThreadState* __tstate = wxPyBeginAllowThreads();
22008 result = (arg1)->GetLastMonthDay(arg2,arg3);
22009
22010 wxPyEndAllowThreads(__tstate);
22011 if (PyErr_Occurred()) SWIG_fail;
22012 }
22013 {
22014 wxDateTime * resultptr;
22015 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22016 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22017 }
22018 return resultobj;
22019 fail:
22020 return NULL;
22021 }
22022
22023
22024 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
22025 PyObject *resultobj = NULL;
22026 wxDateTime *arg1 = (wxDateTime *) 0 ;
22027 int arg2 ;
22028 wxDateTime *result;
22029 PyObject * obj0 = 0 ;
22030 PyObject * obj1 = 0 ;
22031 char *kwnames[] = {
22032 (char *) "self",(char *) "yday", NULL
22033 };
22034
22035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
22036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22037 if (SWIG_arg_fail(1)) SWIG_fail;
22038 {
22039 arg2 = static_cast<int >(SWIG_As_int(obj1));
22040 if (SWIG_arg_fail(2)) SWIG_fail;
22041 }
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 {
22045 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
22046 result = (wxDateTime *) &_result_ref;
22047 }
22048
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22053 return resultobj;
22054 fail:
22055 return NULL;
22056 }
22057
22058
22059 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
22060 PyObject *resultobj = NULL;
22061 wxDateTime *arg1 = (wxDateTime *) 0 ;
22062 int arg2 ;
22063 wxDateTime result;
22064 PyObject * obj0 = 0 ;
22065 PyObject * obj1 = 0 ;
22066 char *kwnames[] = {
22067 (char *) "self",(char *) "yday", NULL
22068 };
22069
22070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
22071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22072 if (SWIG_arg_fail(1)) SWIG_fail;
22073 {
22074 arg2 = static_cast<int >(SWIG_As_int(obj1));
22075 if (SWIG_arg_fail(2)) SWIG_fail;
22076 }
22077 {
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 result = (arg1)->GetYearDay(arg2);
22080
22081 wxPyEndAllowThreads(__tstate);
22082 if (PyErr_Occurred()) SWIG_fail;
22083 }
22084 {
22085 wxDateTime * resultptr;
22086 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22087 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22088 }
22089 return resultobj;
22090 fail:
22091 return NULL;
22092 }
22093
22094
22095 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
22096 PyObject *resultobj = NULL;
22097 wxDateTime *arg1 = (wxDateTime *) 0 ;
22098 double result;
22099 PyObject * obj0 = 0 ;
22100 char *kwnames[] = {
22101 (char *) "self", NULL
22102 };
22103
22104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
22105 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22106 if (SWIG_arg_fail(1)) SWIG_fail;
22107 {
22108 PyThreadState* __tstate = wxPyBeginAllowThreads();
22109 result = (double)(arg1)->GetJulianDayNumber();
22110
22111 wxPyEndAllowThreads(__tstate);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 {
22115 resultobj = SWIG_From_double(static_cast<double >(result));
22116 }
22117 return resultobj;
22118 fail:
22119 return NULL;
22120 }
22121
22122
22123 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
22124 PyObject *resultobj = NULL;
22125 wxDateTime *arg1 = (wxDateTime *) 0 ;
22126 double result;
22127 PyObject * obj0 = 0 ;
22128 char *kwnames[] = {
22129 (char *) "self", NULL
22130 };
22131
22132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
22133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22134 if (SWIG_arg_fail(1)) SWIG_fail;
22135 {
22136 PyThreadState* __tstate = wxPyBeginAllowThreads();
22137 result = (double)(arg1)->GetJDN();
22138
22139 wxPyEndAllowThreads(__tstate);
22140 if (PyErr_Occurred()) SWIG_fail;
22141 }
22142 {
22143 resultobj = SWIG_From_double(static_cast<double >(result));
22144 }
22145 return resultobj;
22146 fail:
22147 return NULL;
22148 }
22149
22150
22151 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
22152 PyObject *resultobj = NULL;
22153 wxDateTime *arg1 = (wxDateTime *) 0 ;
22154 double result;
22155 PyObject * obj0 = 0 ;
22156 char *kwnames[] = {
22157 (char *) "self", NULL
22158 };
22159
22160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
22161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22162 if (SWIG_arg_fail(1)) SWIG_fail;
22163 {
22164 PyThreadState* __tstate = wxPyBeginAllowThreads();
22165 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
22166
22167 wxPyEndAllowThreads(__tstate);
22168 if (PyErr_Occurred()) SWIG_fail;
22169 }
22170 {
22171 resultobj = SWIG_From_double(static_cast<double >(result));
22172 }
22173 return resultobj;
22174 fail:
22175 return NULL;
22176 }
22177
22178
22179 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
22180 PyObject *resultobj = NULL;
22181 wxDateTime *arg1 = (wxDateTime *) 0 ;
22182 double result;
22183 PyObject * obj0 = 0 ;
22184 char *kwnames[] = {
22185 (char *) "self", NULL
22186 };
22187
22188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
22189 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22190 if (SWIG_arg_fail(1)) SWIG_fail;
22191 {
22192 PyThreadState* __tstate = wxPyBeginAllowThreads();
22193 result = (double)(arg1)->GetMJD();
22194
22195 wxPyEndAllowThreads(__tstate);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 {
22199 resultobj = SWIG_From_double(static_cast<double >(result));
22200 }
22201 return resultobj;
22202 fail:
22203 return NULL;
22204 }
22205
22206
22207 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
22208 PyObject *resultobj = NULL;
22209 wxDateTime *arg1 = (wxDateTime *) 0 ;
22210 double result;
22211 PyObject * obj0 = 0 ;
22212 char *kwnames[] = {
22213 (char *) "self", NULL
22214 };
22215
22216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
22217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22218 if (SWIG_arg_fail(1)) SWIG_fail;
22219 {
22220 PyThreadState* __tstate = wxPyBeginAllowThreads();
22221 result = (double)(arg1)->GetRataDie();
22222
22223 wxPyEndAllowThreads(__tstate);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 {
22227 resultobj = SWIG_From_double(static_cast<double >(result));
22228 }
22229 return resultobj;
22230 fail:
22231 return NULL;
22232 }
22233
22234
22235 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22236 PyObject *resultobj = NULL;
22237 wxDateTime *arg1 = (wxDateTime *) 0 ;
22238 wxDateTime::TimeZone *arg2 = 0 ;
22239 bool arg3 = (bool) false ;
22240 wxDateTime result;
22241 bool temp2 = false ;
22242 PyObject * obj0 = 0 ;
22243 PyObject * obj1 = 0 ;
22244 PyObject * obj2 = 0 ;
22245 char *kwnames[] = {
22246 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22247 };
22248
22249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22250 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22251 if (SWIG_arg_fail(1)) SWIG_fail;
22252 {
22253 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22254 temp2 = true;
22255 }
22256 if (obj2) {
22257 {
22258 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22259 if (SWIG_arg_fail(3)) SWIG_fail;
22260 }
22261 }
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22265
22266 wxPyEndAllowThreads(__tstate);
22267 if (PyErr_Occurred()) SWIG_fail;
22268 }
22269 {
22270 wxDateTime * resultptr;
22271 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22272 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22273 }
22274 {
22275 if (temp2) delete arg2;
22276 }
22277 return resultobj;
22278 fail:
22279 {
22280 if (temp2) delete arg2;
22281 }
22282 return NULL;
22283 }
22284
22285
22286 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj = NULL;
22288 wxDateTime *arg1 = (wxDateTime *) 0 ;
22289 wxDateTime::TimeZone *arg2 = 0 ;
22290 bool arg3 = (bool) false ;
22291 wxDateTime *result;
22292 bool temp2 = false ;
22293 PyObject * obj0 = 0 ;
22294 PyObject * obj1 = 0 ;
22295 PyObject * obj2 = 0 ;
22296 char *kwnames[] = {
22297 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22298 };
22299
22300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22302 if (SWIG_arg_fail(1)) SWIG_fail;
22303 {
22304 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22305 temp2 = true;
22306 }
22307 if (obj2) {
22308 {
22309 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22310 if (SWIG_arg_fail(3)) SWIG_fail;
22311 }
22312 }
22313 {
22314 PyThreadState* __tstate = wxPyBeginAllowThreads();
22315 {
22316 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22317 result = (wxDateTime *) &_result_ref;
22318 }
22319
22320 wxPyEndAllowThreads(__tstate);
22321 if (PyErr_Occurred()) SWIG_fail;
22322 }
22323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22324 {
22325 if (temp2) delete arg2;
22326 }
22327 return resultobj;
22328 fail:
22329 {
22330 if (temp2) delete arg2;
22331 }
22332 return NULL;
22333 }
22334
22335
22336 static PyObject *_wrap_DateTime_FromTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22337 PyObject *resultobj = NULL;
22338 wxDateTime *arg1 = (wxDateTime *) 0 ;
22339 wxDateTime::TimeZone *arg2 = 0 ;
22340 bool arg3 = (bool) false ;
22341 wxDateTime result;
22342 bool temp2 = false ;
22343 PyObject * obj0 = 0 ;
22344 PyObject * obj1 = 0 ;
22345 PyObject * obj2 = 0 ;
22346 char *kwnames[] = {
22347 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22348 };
22349
22350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_FromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22351 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22352 if (SWIG_arg_fail(1)) SWIG_fail;
22353 {
22354 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22355 temp2 = true;
22356 }
22357 if (obj2) {
22358 {
22359 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22360 if (SWIG_arg_fail(3)) SWIG_fail;
22361 }
22362 }
22363 {
22364 PyThreadState* __tstate = wxPyBeginAllowThreads();
22365 result = ((wxDateTime const *)arg1)->FromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22366
22367 wxPyEndAllowThreads(__tstate);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 }
22370 {
22371 wxDateTime * resultptr;
22372 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22373 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22374 }
22375 {
22376 if (temp2) delete arg2;
22377 }
22378 return resultobj;
22379 fail:
22380 {
22381 if (temp2) delete arg2;
22382 }
22383 return NULL;
22384 }
22385
22386
22387 static PyObject *_wrap_DateTime_MakeFromTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj = NULL;
22389 wxDateTime *arg1 = (wxDateTime *) 0 ;
22390 wxDateTime::TimeZone *arg2 = 0 ;
22391 bool arg3 = (bool) false ;
22392 wxDateTime *result;
22393 bool temp2 = false ;
22394 PyObject * obj0 = 0 ;
22395 PyObject * obj1 = 0 ;
22396 PyObject * obj2 = 0 ;
22397 char *kwnames[] = {
22398 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22399 };
22400
22401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeFromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22403 if (SWIG_arg_fail(1)) SWIG_fail;
22404 {
22405 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22406 temp2 = true;
22407 }
22408 if (obj2) {
22409 {
22410 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22411 if (SWIG_arg_fail(3)) SWIG_fail;
22412 }
22413 }
22414 {
22415 PyThreadState* __tstate = wxPyBeginAllowThreads();
22416 {
22417 wxDateTime &_result_ref = (arg1)->MakeFromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22418 result = (wxDateTime *) &_result_ref;
22419 }
22420
22421 wxPyEndAllowThreads(__tstate);
22422 if (PyErr_Occurred()) SWIG_fail;
22423 }
22424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22425 {
22426 if (temp2) delete arg2;
22427 }
22428 return resultobj;
22429 fail:
22430 {
22431 if (temp2) delete arg2;
22432 }
22433 return NULL;
22434 }
22435
22436
22437 static PyObject *_wrap_DateTime_ToUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22438 PyObject *resultobj = NULL;
22439 wxDateTime *arg1 = (wxDateTime *) 0 ;
22440 bool arg2 = (bool) false ;
22441 wxDateTime result;
22442 PyObject * obj0 = 0 ;
22443 PyObject * obj1 = 0 ;
22444 char *kwnames[] = {
22445 (char *) "self",(char *) "noDST", NULL
22446 };
22447
22448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToUTC",kwnames,&obj0,&obj1)) goto fail;
22449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22450 if (SWIG_arg_fail(1)) SWIG_fail;
22451 if (obj1) {
22452 {
22453 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22454 if (SWIG_arg_fail(2)) SWIG_fail;
22455 }
22456 }
22457 {
22458 PyThreadState* __tstate = wxPyBeginAllowThreads();
22459 result = ((wxDateTime const *)arg1)->ToUTC(arg2);
22460
22461 wxPyEndAllowThreads(__tstate);
22462 if (PyErr_Occurred()) SWIG_fail;
22463 }
22464 {
22465 wxDateTime * resultptr;
22466 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22467 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22468 }
22469 return resultobj;
22470 fail:
22471 return NULL;
22472 }
22473
22474
22475 static PyObject *_wrap_DateTime_MakeUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22476 PyObject *resultobj = NULL;
22477 wxDateTime *arg1 = (wxDateTime *) 0 ;
22478 bool arg2 = (bool) false ;
22479 wxDateTime *result;
22480 PyObject * obj0 = 0 ;
22481 PyObject * obj1 = 0 ;
22482 char *kwnames[] = {
22483 (char *) "self",(char *) "noDST", NULL
22484 };
22485
22486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeUTC",kwnames,&obj0,&obj1)) goto fail;
22487 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22488 if (SWIG_arg_fail(1)) SWIG_fail;
22489 if (obj1) {
22490 {
22491 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22492 if (SWIG_arg_fail(2)) SWIG_fail;
22493 }
22494 }
22495 {
22496 PyThreadState* __tstate = wxPyBeginAllowThreads();
22497 {
22498 wxDateTime &_result_ref = (arg1)->MakeUTC(arg2);
22499 result = (wxDateTime *) &_result_ref;
22500 }
22501
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22506 return resultobj;
22507 fail:
22508 return NULL;
22509 }
22510
22511
22512 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
22513 PyObject *resultobj = NULL;
22514 wxDateTime *arg1 = (wxDateTime *) 0 ;
22515 bool arg2 = (bool) false ;
22516 wxDateTime result;
22517 PyObject * obj0 = 0 ;
22518 PyObject * obj1 = 0 ;
22519 char *kwnames[] = {
22520 (char *) "self",(char *) "noDST", NULL
22521 };
22522
22523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
22524 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22525 if (SWIG_arg_fail(1)) SWIG_fail;
22526 if (obj1) {
22527 {
22528 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22529 if (SWIG_arg_fail(2)) SWIG_fail;
22530 }
22531 }
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 result = ((wxDateTime const *)arg1)->ToGMT(arg2);
22535
22536 wxPyEndAllowThreads(__tstate);
22537 if (PyErr_Occurred()) SWIG_fail;
22538 }
22539 {
22540 wxDateTime * resultptr;
22541 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22543 }
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj = NULL;
22552 wxDateTime *arg1 = (wxDateTime *) 0 ;
22553 bool arg2 = (bool) false ;
22554 wxDateTime *result;
22555 PyObject * obj0 = 0 ;
22556 PyObject * obj1 = 0 ;
22557 char *kwnames[] = {
22558 (char *) "self",(char *) "noDST", NULL
22559 };
22560
22561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
22562 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22563 if (SWIG_arg_fail(1)) SWIG_fail;
22564 if (obj1) {
22565 {
22566 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22567 if (SWIG_arg_fail(2)) SWIG_fail;
22568 }
22569 }
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 {
22573 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
22574 result = (wxDateTime *) &_result_ref;
22575 }
22576
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22581 return resultobj;
22582 fail:
22583 return NULL;
22584 }
22585
22586
22587 static PyObject *_wrap_DateTime_FromUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22588 PyObject *resultobj = NULL;
22589 wxDateTime *arg1 = (wxDateTime *) 0 ;
22590 bool arg2 = (bool) false ;
22591 wxDateTime result;
22592 PyObject * obj0 = 0 ;
22593 PyObject * obj1 = 0 ;
22594 char *kwnames[] = {
22595 (char *) "self",(char *) "noDST", NULL
22596 };
22597
22598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_FromUTC",kwnames,&obj0,&obj1)) goto fail;
22599 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22600 if (SWIG_arg_fail(1)) SWIG_fail;
22601 if (obj1) {
22602 {
22603 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22604 if (SWIG_arg_fail(2)) SWIG_fail;
22605 }
22606 }
22607 {
22608 PyThreadState* __tstate = wxPyBeginAllowThreads();
22609 result = ((wxDateTime const *)arg1)->FromUTC(arg2);
22610
22611 wxPyEndAllowThreads(__tstate);
22612 if (PyErr_Occurred()) SWIG_fail;
22613 }
22614 {
22615 wxDateTime * resultptr;
22616 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22617 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22618 }
22619 return resultobj;
22620 fail:
22621 return NULL;
22622 }
22623
22624
22625 static PyObject *_wrap_DateTime_MakeFromUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22626 PyObject *resultobj = NULL;
22627 wxDateTime *arg1 = (wxDateTime *) 0 ;
22628 bool arg2 = (bool) false ;
22629 wxDateTime *result;
22630 PyObject * obj0 = 0 ;
22631 PyObject * obj1 = 0 ;
22632 char *kwnames[] = {
22633 (char *) "self",(char *) "noDST", NULL
22634 };
22635
22636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeFromUTC",kwnames,&obj0,&obj1)) goto fail;
22637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22638 if (SWIG_arg_fail(1)) SWIG_fail;
22639 if (obj1) {
22640 {
22641 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22642 if (SWIG_arg_fail(2)) SWIG_fail;
22643 }
22644 }
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 {
22648 wxDateTime &_result_ref = (arg1)->MakeFromUTC(arg2);
22649 result = (wxDateTime *) &_result_ref;
22650 }
22651
22652 wxPyEndAllowThreads(__tstate);
22653 if (PyErr_Occurred()) SWIG_fail;
22654 }
22655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22656 return resultobj;
22657 fail:
22658 return NULL;
22659 }
22660
22661
22662 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
22663 PyObject *resultobj = NULL;
22664 wxDateTime *arg1 = (wxDateTime *) 0 ;
22665 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
22666 int result;
22667 PyObject * obj0 = 0 ;
22668 PyObject * obj1 = 0 ;
22669 char *kwnames[] = {
22670 (char *) "self",(char *) "country", NULL
22671 };
22672
22673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
22674 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22675 if (SWIG_arg_fail(1)) SWIG_fail;
22676 if (obj1) {
22677 {
22678 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
22679 if (SWIG_arg_fail(2)) SWIG_fail;
22680 }
22681 }
22682 {
22683 PyThreadState* __tstate = wxPyBeginAllowThreads();
22684 result = (int)(arg1)->IsDST(arg2);
22685
22686 wxPyEndAllowThreads(__tstate);
22687 if (PyErr_Occurred()) SWIG_fail;
22688 }
22689 {
22690 resultobj = SWIG_From_int(static_cast<int >(result));
22691 }
22692 return resultobj;
22693 fail:
22694 return NULL;
22695 }
22696
22697
22698 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
22699 PyObject *resultobj = NULL;
22700 wxDateTime *arg1 = (wxDateTime *) 0 ;
22701 bool result;
22702 PyObject * obj0 = 0 ;
22703 char *kwnames[] = {
22704 (char *) "self", NULL
22705 };
22706
22707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
22708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22709 if (SWIG_arg_fail(1)) SWIG_fail;
22710 {
22711 PyThreadState* __tstate = wxPyBeginAllowThreads();
22712 result = (bool)((wxDateTime const *)arg1)->IsValid();
22713
22714 wxPyEndAllowThreads(__tstate);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 }
22717 {
22718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22719 }
22720 return resultobj;
22721 fail:
22722 return NULL;
22723 }
22724
22725
22726 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
22727 PyObject *resultobj = NULL;
22728 wxDateTime *arg1 = (wxDateTime *) 0 ;
22729 time_t result;
22730 PyObject * obj0 = 0 ;
22731 char *kwnames[] = {
22732 (char *) "self", NULL
22733 };
22734
22735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
22736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22737 if (SWIG_arg_fail(1)) SWIG_fail;
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
22741
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 {
22746 resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result));
22747 }
22748 return resultobj;
22749 fail:
22750 return NULL;
22751 }
22752
22753
22754 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
22755 PyObject *resultobj = NULL;
22756 wxDateTime *arg1 = (wxDateTime *) 0 ;
22757 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22758 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22759 int result;
22760 bool temp2 = false ;
22761 PyObject * obj0 = 0 ;
22762 PyObject * obj1 = 0 ;
22763 char *kwnames[] = {
22764 (char *) "self",(char *) "tz", NULL
22765 };
22766
22767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
22768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22769 if (SWIG_arg_fail(1)) SWIG_fail;
22770 if (obj1) {
22771 {
22772 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22773 temp2 = true;
22774 }
22775 }
22776 {
22777 PyThreadState* __tstate = wxPyBeginAllowThreads();
22778 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
22779
22780 wxPyEndAllowThreads(__tstate);
22781 if (PyErr_Occurred()) SWIG_fail;
22782 }
22783 {
22784 resultobj = SWIG_From_int(static_cast<int >(result));
22785 }
22786 {
22787 if (temp2) delete arg2;
22788 }
22789 return resultobj;
22790 fail:
22791 {
22792 if (temp2) delete arg2;
22793 }
22794 return NULL;
22795 }
22796
22797
22798 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
22799 PyObject *resultobj = NULL;
22800 wxDateTime *arg1 = (wxDateTime *) 0 ;
22801 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22802 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22803 wxDateTime::Month result;
22804 bool temp2 = false ;
22805 PyObject * obj0 = 0 ;
22806 PyObject * obj1 = 0 ;
22807 char *kwnames[] = {
22808 (char *) "self",(char *) "tz", NULL
22809 };
22810
22811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
22812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22813 if (SWIG_arg_fail(1)) SWIG_fail;
22814 if (obj1) {
22815 {
22816 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22817 temp2 = true;
22818 }
22819 }
22820 {
22821 PyThreadState* __tstate = wxPyBeginAllowThreads();
22822 result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
22823
22824 wxPyEndAllowThreads(__tstate);
22825 if (PyErr_Occurred()) SWIG_fail;
22826 }
22827 resultobj = SWIG_From_int((result));
22828 {
22829 if (temp2) delete arg2;
22830 }
22831 return resultobj;
22832 fail:
22833 {
22834 if (temp2) delete arg2;
22835 }
22836 return NULL;
22837 }
22838
22839
22840 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
22841 PyObject *resultobj = NULL;
22842 wxDateTime *arg1 = (wxDateTime *) 0 ;
22843 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22844 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22845 int result;
22846 bool temp2 = false ;
22847 PyObject * obj0 = 0 ;
22848 PyObject * obj1 = 0 ;
22849 char *kwnames[] = {
22850 (char *) "self",(char *) "tz", NULL
22851 };
22852
22853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
22854 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22855 if (SWIG_arg_fail(1)) SWIG_fail;
22856 if (obj1) {
22857 {
22858 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22859 temp2 = true;
22860 }
22861 }
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
22864 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
22865
22866 wxPyEndAllowThreads(__tstate);
22867 if (PyErr_Occurred()) SWIG_fail;
22868 }
22869 {
22870 resultobj = SWIG_From_int(static_cast<int >(result));
22871 }
22872 {
22873 if (temp2) delete arg2;
22874 }
22875 return resultobj;
22876 fail:
22877 {
22878 if (temp2) delete arg2;
22879 }
22880 return NULL;
22881 }
22882
22883
22884 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
22885 PyObject *resultobj = NULL;
22886 wxDateTime *arg1 = (wxDateTime *) 0 ;
22887 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22888 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22889 wxDateTime::WeekDay result;
22890 bool temp2 = false ;
22891 PyObject * obj0 = 0 ;
22892 PyObject * obj1 = 0 ;
22893 char *kwnames[] = {
22894 (char *) "self",(char *) "tz", NULL
22895 };
22896
22897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
22898 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22899 if (SWIG_arg_fail(1)) SWIG_fail;
22900 if (obj1) {
22901 {
22902 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22903 temp2 = true;
22904 }
22905 }
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
22909
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 resultobj = SWIG_From_int((result));
22914 {
22915 if (temp2) delete arg2;
22916 }
22917 return resultobj;
22918 fail:
22919 {
22920 if (temp2) delete arg2;
22921 }
22922 return NULL;
22923 }
22924
22925
22926 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj = NULL;
22928 wxDateTime *arg1 = (wxDateTime *) 0 ;
22929 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22930 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22931 int result;
22932 bool temp2 = false ;
22933 PyObject * obj0 = 0 ;
22934 PyObject * obj1 = 0 ;
22935 char *kwnames[] = {
22936 (char *) "self",(char *) "tz", NULL
22937 };
22938
22939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
22940 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22941 if (SWIG_arg_fail(1)) SWIG_fail;
22942 if (obj1) {
22943 {
22944 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22945 temp2 = true;
22946 }
22947 }
22948 {
22949 PyThreadState* __tstate = wxPyBeginAllowThreads();
22950 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
22951
22952 wxPyEndAllowThreads(__tstate);
22953 if (PyErr_Occurred()) SWIG_fail;
22954 }
22955 {
22956 resultobj = SWIG_From_int(static_cast<int >(result));
22957 }
22958 {
22959 if (temp2) delete arg2;
22960 }
22961 return resultobj;
22962 fail:
22963 {
22964 if (temp2) delete arg2;
22965 }
22966 return NULL;
22967 }
22968
22969
22970 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
22971 PyObject *resultobj = NULL;
22972 wxDateTime *arg1 = (wxDateTime *) 0 ;
22973 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22974 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22975 int result;
22976 bool temp2 = false ;
22977 PyObject * obj0 = 0 ;
22978 PyObject * obj1 = 0 ;
22979 char *kwnames[] = {
22980 (char *) "self",(char *) "tz", NULL
22981 };
22982
22983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
22984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22985 if (SWIG_arg_fail(1)) SWIG_fail;
22986 if (obj1) {
22987 {
22988 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22989 temp2 = true;
22990 }
22991 }
22992 {
22993 PyThreadState* __tstate = wxPyBeginAllowThreads();
22994 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
22995
22996 wxPyEndAllowThreads(__tstate);
22997 if (PyErr_Occurred()) SWIG_fail;
22998 }
22999 {
23000 resultobj = SWIG_From_int(static_cast<int >(result));
23001 }
23002 {
23003 if (temp2) delete arg2;
23004 }
23005 return resultobj;
23006 fail:
23007 {
23008 if (temp2) delete arg2;
23009 }
23010 return NULL;
23011 }
23012
23013
23014 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
23015 PyObject *resultobj = NULL;
23016 wxDateTime *arg1 = (wxDateTime *) 0 ;
23017 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
23018 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
23019 int result;
23020 bool temp2 = false ;
23021 PyObject * obj0 = 0 ;
23022 PyObject * obj1 = 0 ;
23023 char *kwnames[] = {
23024 (char *) "self",(char *) "tz", NULL
23025 };
23026
23027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
23028 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23029 if (SWIG_arg_fail(1)) SWIG_fail;
23030 if (obj1) {
23031 {
23032 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23033 temp2 = true;
23034 }
23035 }
23036 {
23037 PyThreadState* __tstate = wxPyBeginAllowThreads();
23038 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
23039
23040 wxPyEndAllowThreads(__tstate);
23041 if (PyErr_Occurred()) SWIG_fail;
23042 }
23043 {
23044 resultobj = SWIG_From_int(static_cast<int >(result));
23045 }
23046 {
23047 if (temp2) delete arg2;
23048 }
23049 return resultobj;
23050 fail:
23051 {
23052 if (temp2) delete arg2;
23053 }
23054 return NULL;
23055 }
23056
23057
23058 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj = NULL;
23060 wxDateTime *arg1 = (wxDateTime *) 0 ;
23061 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
23062 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
23063 int result;
23064 bool temp2 = false ;
23065 PyObject * obj0 = 0 ;
23066 PyObject * obj1 = 0 ;
23067 char *kwnames[] = {
23068 (char *) "self",(char *) "tz", NULL
23069 };
23070
23071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
23072 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23073 if (SWIG_arg_fail(1)) SWIG_fail;
23074 if (obj1) {
23075 {
23076 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23077 temp2 = true;
23078 }
23079 }
23080 {
23081 PyThreadState* __tstate = wxPyBeginAllowThreads();
23082 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
23083
23084 wxPyEndAllowThreads(__tstate);
23085 if (PyErr_Occurred()) SWIG_fail;
23086 }
23087 {
23088 resultobj = SWIG_From_int(static_cast<int >(result));
23089 }
23090 {
23091 if (temp2) delete arg2;
23092 }
23093 return resultobj;
23094 fail:
23095 {
23096 if (temp2) delete arg2;
23097 }
23098 return NULL;
23099 }
23100
23101
23102 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
23103 PyObject *resultobj = NULL;
23104 wxDateTime *arg1 = (wxDateTime *) 0 ;
23105 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
23106 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
23107 int result;
23108 bool temp2 = false ;
23109 PyObject * obj0 = 0 ;
23110 PyObject * obj1 = 0 ;
23111 char *kwnames[] = {
23112 (char *) "self",(char *) "tz", NULL
23113 };
23114
23115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
23116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23117 if (SWIG_arg_fail(1)) SWIG_fail;
23118 if (obj1) {
23119 {
23120 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23121 temp2 = true;
23122 }
23123 }
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
23127
23128 wxPyEndAllowThreads(__tstate);
23129 if (PyErr_Occurred()) SWIG_fail;
23130 }
23131 {
23132 resultobj = SWIG_From_int(static_cast<int >(result));
23133 }
23134 {
23135 if (temp2) delete arg2;
23136 }
23137 return resultobj;
23138 fail:
23139 {
23140 if (temp2) delete arg2;
23141 }
23142 return NULL;
23143 }
23144
23145
23146 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
23147 PyObject *resultobj = NULL;
23148 wxDateTime *arg1 = (wxDateTime *) 0 ;
23149 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
23150 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
23151 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
23152 int result;
23153 bool temp3 = false ;
23154 PyObject * obj0 = 0 ;
23155 PyObject * obj1 = 0 ;
23156 PyObject * obj2 = 0 ;
23157 char *kwnames[] = {
23158 (char *) "self",(char *) "flags",(char *) "tz", NULL
23159 };
23160
23161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
23162 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23163 if (SWIG_arg_fail(1)) SWIG_fail;
23164 if (obj1) {
23165 {
23166 arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1));
23167 if (SWIG_arg_fail(2)) SWIG_fail;
23168 }
23169 }
23170 if (obj2) {
23171 {
23172 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
23173 temp3 = true;
23174 }
23175 }
23176 {
23177 PyThreadState* __tstate = wxPyBeginAllowThreads();
23178 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear(arg2,(wxDateTime::TimeZone const &)*arg3);
23179
23180 wxPyEndAllowThreads(__tstate);
23181 if (PyErr_Occurred()) SWIG_fail;
23182 }
23183 {
23184 resultobj = SWIG_From_int(static_cast<int >(result));
23185 }
23186 {
23187 if (temp3) delete arg3;
23188 }
23189 return resultobj;
23190 fail:
23191 {
23192 if (temp3) delete arg3;
23193 }
23194 return NULL;
23195 }
23196
23197
23198 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
23199 PyObject *resultobj = NULL;
23200 wxDateTime *arg1 = (wxDateTime *) 0 ;
23201 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
23202 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
23203 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
23204 int result;
23205 bool temp3 = false ;
23206 PyObject * obj0 = 0 ;
23207 PyObject * obj1 = 0 ;
23208 PyObject * obj2 = 0 ;
23209 char *kwnames[] = {
23210 (char *) "self",(char *) "flags",(char *) "tz", NULL
23211 };
23212
23213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
23214 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23215 if (SWIG_arg_fail(1)) SWIG_fail;
23216 if (obj1) {
23217 {
23218 arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1));
23219 if (SWIG_arg_fail(2)) SWIG_fail;
23220 }
23221 }
23222 if (obj2) {
23223 {
23224 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
23225 temp3 = true;
23226 }
23227 }
23228 {
23229 PyThreadState* __tstate = wxPyBeginAllowThreads();
23230 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth(arg2,(wxDateTime::TimeZone const &)*arg3);
23231
23232 wxPyEndAllowThreads(__tstate);
23233 if (PyErr_Occurred()) SWIG_fail;
23234 }
23235 {
23236 resultobj = SWIG_From_int(static_cast<int >(result));
23237 }
23238 {
23239 if (temp3) delete arg3;
23240 }
23241 return resultobj;
23242 fail:
23243 {
23244 if (temp3) delete arg3;
23245 }
23246 return NULL;
23247 }
23248
23249
23250 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
23251 PyObject *resultobj = NULL;
23252 wxDateTime *arg1 = (wxDateTime *) 0 ;
23253 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23254 bool result;
23255 PyObject * obj0 = 0 ;
23256 PyObject * obj1 = 0 ;
23257 char *kwnames[] = {
23258 (char *) "self",(char *) "country", NULL
23259 };
23260
23261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
23262 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23263 if (SWIG_arg_fail(1)) SWIG_fail;
23264 if (obj1) {
23265 {
23266 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
23267 if (SWIG_arg_fail(2)) SWIG_fail;
23268 }
23269 }
23270 {
23271 PyThreadState* __tstate = wxPyBeginAllowThreads();
23272 result = (bool)((wxDateTime const *)arg1)->IsWorkDay(arg2);
23273
23274 wxPyEndAllowThreads(__tstate);
23275 if (PyErr_Occurred()) SWIG_fail;
23276 }
23277 {
23278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23279 }
23280 return resultobj;
23281 fail:
23282 return NULL;
23283 }
23284
23285
23286 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
23287 PyObject *resultobj = NULL;
23288 wxDateTime *arg1 = (wxDateTime *) 0 ;
23289 wxDateTime *arg2 = 0 ;
23290 bool result;
23291 PyObject * obj0 = 0 ;
23292 PyObject * obj1 = 0 ;
23293 char *kwnames[] = {
23294 (char *) "self",(char *) "datetime", NULL
23295 };
23296
23297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
23298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23299 if (SWIG_arg_fail(1)) SWIG_fail;
23300 {
23301 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23302 if (SWIG_arg_fail(2)) SWIG_fail;
23303 if (arg2 == NULL) {
23304 SWIG_null_ref("wxDateTime");
23305 }
23306 if (SWIG_arg_fail(2)) SWIG_fail;
23307 }
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
23311
23312 wxPyEndAllowThreads(__tstate);
23313 if (PyErr_Occurred()) SWIG_fail;
23314 }
23315 {
23316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23317 }
23318 return resultobj;
23319 fail:
23320 return NULL;
23321 }
23322
23323
23324 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
23325 PyObject *resultobj = NULL;
23326 wxDateTime *arg1 = (wxDateTime *) 0 ;
23327 wxDateTime *arg2 = 0 ;
23328 bool result;
23329 PyObject * obj0 = 0 ;
23330 PyObject * obj1 = 0 ;
23331 char *kwnames[] = {
23332 (char *) "self",(char *) "datetime", NULL
23333 };
23334
23335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
23336 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23337 if (SWIG_arg_fail(1)) SWIG_fail;
23338 {
23339 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23340 if (SWIG_arg_fail(2)) SWIG_fail;
23341 if (arg2 == NULL) {
23342 SWIG_null_ref("wxDateTime");
23343 }
23344 if (SWIG_arg_fail(2)) SWIG_fail;
23345 }
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
23349
23350 wxPyEndAllowThreads(__tstate);
23351 if (PyErr_Occurred()) SWIG_fail;
23352 }
23353 {
23354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23355 }
23356 return resultobj;
23357 fail:
23358 return NULL;
23359 }
23360
23361
23362 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
23363 PyObject *resultobj = NULL;
23364 wxDateTime *arg1 = (wxDateTime *) 0 ;
23365 wxDateTime *arg2 = 0 ;
23366 bool result;
23367 PyObject * obj0 = 0 ;
23368 PyObject * obj1 = 0 ;
23369 char *kwnames[] = {
23370 (char *) "self",(char *) "datetime", NULL
23371 };
23372
23373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
23374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23375 if (SWIG_arg_fail(1)) SWIG_fail;
23376 {
23377 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23378 if (SWIG_arg_fail(2)) SWIG_fail;
23379 if (arg2 == NULL) {
23380 SWIG_null_ref("wxDateTime");
23381 }
23382 if (SWIG_arg_fail(2)) SWIG_fail;
23383 }
23384 {
23385 PyThreadState* __tstate = wxPyBeginAllowThreads();
23386 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
23387
23388 wxPyEndAllowThreads(__tstate);
23389 if (PyErr_Occurred()) SWIG_fail;
23390 }
23391 {
23392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23393 }
23394 return resultobj;
23395 fail:
23396 return NULL;
23397 }
23398
23399
23400 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
23401 PyObject *resultobj = NULL;
23402 wxDateTime *arg1 = (wxDateTime *) 0 ;
23403 wxDateTime *arg2 = 0 ;
23404 wxDateTime *arg3 = 0 ;
23405 bool result;
23406 PyObject * obj0 = 0 ;
23407 PyObject * obj1 = 0 ;
23408 PyObject * obj2 = 0 ;
23409 char *kwnames[] = {
23410 (char *) "self",(char *) "t1",(char *) "t2", NULL
23411 };
23412
23413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
23414 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23415 if (SWIG_arg_fail(1)) SWIG_fail;
23416 {
23417 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23418 if (SWIG_arg_fail(2)) SWIG_fail;
23419 if (arg2 == NULL) {
23420 SWIG_null_ref("wxDateTime");
23421 }
23422 if (SWIG_arg_fail(2)) SWIG_fail;
23423 }
23424 {
23425 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23426 if (SWIG_arg_fail(3)) SWIG_fail;
23427 if (arg3 == NULL) {
23428 SWIG_null_ref("wxDateTime");
23429 }
23430 if (SWIG_arg_fail(3)) SWIG_fail;
23431 }
23432 {
23433 PyThreadState* __tstate = wxPyBeginAllowThreads();
23434 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
23435
23436 wxPyEndAllowThreads(__tstate);
23437 if (PyErr_Occurred()) SWIG_fail;
23438 }
23439 {
23440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23441 }
23442 return resultobj;
23443 fail:
23444 return NULL;
23445 }
23446
23447
23448 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
23449 PyObject *resultobj = NULL;
23450 wxDateTime *arg1 = (wxDateTime *) 0 ;
23451 wxDateTime *arg2 = 0 ;
23452 wxDateTime *arg3 = 0 ;
23453 bool result;
23454 PyObject * obj0 = 0 ;
23455 PyObject * obj1 = 0 ;
23456 PyObject * obj2 = 0 ;
23457 char *kwnames[] = {
23458 (char *) "self",(char *) "t1",(char *) "t2", NULL
23459 };
23460
23461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
23462 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23463 if (SWIG_arg_fail(1)) SWIG_fail;
23464 {
23465 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23466 if (SWIG_arg_fail(2)) SWIG_fail;
23467 if (arg2 == NULL) {
23468 SWIG_null_ref("wxDateTime");
23469 }
23470 if (SWIG_arg_fail(2)) SWIG_fail;
23471 }
23472 {
23473 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23474 if (SWIG_arg_fail(3)) SWIG_fail;
23475 if (arg3 == NULL) {
23476 SWIG_null_ref("wxDateTime");
23477 }
23478 if (SWIG_arg_fail(3)) SWIG_fail;
23479 }
23480 {
23481 PyThreadState* __tstate = wxPyBeginAllowThreads();
23482 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
23483
23484 wxPyEndAllowThreads(__tstate);
23485 if (PyErr_Occurred()) SWIG_fail;
23486 }
23487 {
23488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23489 }
23490 return resultobj;
23491 fail:
23492 return NULL;
23493 }
23494
23495
23496 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
23497 PyObject *resultobj = NULL;
23498 wxDateTime *arg1 = (wxDateTime *) 0 ;
23499 wxDateTime *arg2 = 0 ;
23500 bool result;
23501 PyObject * obj0 = 0 ;
23502 PyObject * obj1 = 0 ;
23503 char *kwnames[] = {
23504 (char *) "self",(char *) "dt", NULL
23505 };
23506
23507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
23508 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23509 if (SWIG_arg_fail(1)) SWIG_fail;
23510 {
23511 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23512 if (SWIG_arg_fail(2)) SWIG_fail;
23513 if (arg2 == NULL) {
23514 SWIG_null_ref("wxDateTime");
23515 }
23516 if (SWIG_arg_fail(2)) SWIG_fail;
23517 }
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
23521
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 {
23526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23527 }
23528 return resultobj;
23529 fail:
23530 return NULL;
23531 }
23532
23533
23534 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
23535 PyObject *resultobj = NULL;
23536 wxDateTime *arg1 = (wxDateTime *) 0 ;
23537 wxDateTime *arg2 = 0 ;
23538 bool result;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 char *kwnames[] = {
23542 (char *) "self",(char *) "dt", NULL
23543 };
23544
23545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
23546 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23547 if (SWIG_arg_fail(1)) SWIG_fail;
23548 {
23549 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23550 if (SWIG_arg_fail(2)) SWIG_fail;
23551 if (arg2 == NULL) {
23552 SWIG_null_ref("wxDateTime");
23553 }
23554 if (SWIG_arg_fail(2)) SWIG_fail;
23555 }
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
23559
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 {
23564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23565 }
23566 return resultobj;
23567 fail:
23568 return NULL;
23569 }
23570
23571
23572 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
23573 PyObject *resultobj = NULL;
23574 wxDateTime *arg1 = (wxDateTime *) 0 ;
23575 wxDateTime *arg2 = 0 ;
23576 wxTimeSpan *arg3 = 0 ;
23577 bool result;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 PyObject * obj2 = 0 ;
23581 char *kwnames[] = {
23582 (char *) "self",(char *) "dt",(char *) "ts", NULL
23583 };
23584
23585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23587 if (SWIG_arg_fail(1)) SWIG_fail;
23588 {
23589 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23590 if (SWIG_arg_fail(2)) SWIG_fail;
23591 if (arg2 == NULL) {
23592 SWIG_null_ref("wxDateTime");
23593 }
23594 if (SWIG_arg_fail(2)) SWIG_fail;
23595 }
23596 {
23597 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23598 if (SWIG_arg_fail(3)) SWIG_fail;
23599 if (arg3 == NULL) {
23600 SWIG_null_ref("wxTimeSpan");
23601 }
23602 if (SWIG_arg_fail(3)) SWIG_fail;
23603 }
23604 {
23605 PyThreadState* __tstate = wxPyBeginAllowThreads();
23606 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
23607
23608 wxPyEndAllowThreads(__tstate);
23609 if (PyErr_Occurred()) SWIG_fail;
23610 }
23611 {
23612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23613 }
23614 return resultobj;
23615 fail:
23616 return NULL;
23617 }
23618
23619
23620 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
23621 PyObject *resultobj = NULL;
23622 wxDateTime *arg1 = (wxDateTime *) 0 ;
23623 wxTimeSpan *arg2 = 0 ;
23624 wxDateTime *result;
23625 PyObject * obj0 = 0 ;
23626 PyObject * obj1 = 0 ;
23627 char *kwnames[] = {
23628 (char *) "self",(char *) "diff", NULL
23629 };
23630
23631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
23632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23633 if (SWIG_arg_fail(1)) SWIG_fail;
23634 {
23635 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23636 if (SWIG_arg_fail(2)) SWIG_fail;
23637 if (arg2 == NULL) {
23638 SWIG_null_ref("wxTimeSpan");
23639 }
23640 if (SWIG_arg_fail(2)) SWIG_fail;
23641 }
23642 {
23643 PyThreadState* __tstate = wxPyBeginAllowThreads();
23644 {
23645 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
23646 result = (wxDateTime *) &_result_ref;
23647 }
23648
23649 wxPyEndAllowThreads(__tstate);
23650 if (PyErr_Occurred()) SWIG_fail;
23651 }
23652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23653 return resultobj;
23654 fail:
23655 return NULL;
23656 }
23657
23658
23659 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
23660 PyObject *resultobj = NULL;
23661 wxDateTime *arg1 = (wxDateTime *) 0 ;
23662 wxDateSpan *arg2 = 0 ;
23663 wxDateTime *result;
23664 PyObject * obj0 = 0 ;
23665 PyObject * obj1 = 0 ;
23666 char *kwnames[] = {
23667 (char *) "self",(char *) "diff", NULL
23668 };
23669
23670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
23671 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23672 if (SWIG_arg_fail(1)) SWIG_fail;
23673 {
23674 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23675 if (SWIG_arg_fail(2)) SWIG_fail;
23676 if (arg2 == NULL) {
23677 SWIG_null_ref("wxDateSpan");
23678 }
23679 if (SWIG_arg_fail(2)) SWIG_fail;
23680 }
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 {
23684 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23685 result = (wxDateTime *) &_result_ref;
23686 }
23687
23688 wxPyEndAllowThreads(__tstate);
23689 if (PyErr_Occurred()) SWIG_fail;
23690 }
23691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23692 return resultobj;
23693 fail:
23694 return NULL;
23695 }
23696
23697
23698 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
23699 PyObject *resultobj = NULL;
23700 wxDateTime *arg1 = (wxDateTime *) 0 ;
23701 wxTimeSpan *arg2 = 0 ;
23702 wxDateTime *result;
23703 PyObject * obj0 = 0 ;
23704 PyObject * obj1 = 0 ;
23705 char *kwnames[] = {
23706 (char *) "self",(char *) "diff", NULL
23707 };
23708
23709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
23710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23711 if (SWIG_arg_fail(1)) SWIG_fail;
23712 {
23713 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23714 if (SWIG_arg_fail(2)) SWIG_fail;
23715 if (arg2 == NULL) {
23716 SWIG_null_ref("wxTimeSpan");
23717 }
23718 if (SWIG_arg_fail(2)) SWIG_fail;
23719 }
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 {
23723 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
23724 result = (wxDateTime *) &_result_ref;
23725 }
23726
23727 wxPyEndAllowThreads(__tstate);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
23730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23731 return resultobj;
23732 fail:
23733 return NULL;
23734 }
23735
23736
23737 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
23738 PyObject *resultobj = NULL;
23739 wxDateTime *arg1 = (wxDateTime *) 0 ;
23740 wxDateSpan *arg2 = 0 ;
23741 wxDateTime *result;
23742 PyObject * obj0 = 0 ;
23743 PyObject * obj1 = 0 ;
23744 char *kwnames[] = {
23745 (char *) "self",(char *) "diff", NULL
23746 };
23747
23748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
23749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23750 if (SWIG_arg_fail(1)) SWIG_fail;
23751 {
23752 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23753 if (SWIG_arg_fail(2)) SWIG_fail;
23754 if (arg2 == NULL) {
23755 SWIG_null_ref("wxDateSpan");
23756 }
23757 if (SWIG_arg_fail(2)) SWIG_fail;
23758 }
23759 {
23760 PyThreadState* __tstate = wxPyBeginAllowThreads();
23761 {
23762 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23763 result = (wxDateTime *) &_result_ref;
23764 }
23765
23766 wxPyEndAllowThreads(__tstate);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23770 return resultobj;
23771 fail:
23772 return NULL;
23773 }
23774
23775
23776 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23777 PyObject *resultobj = NULL;
23778 wxDateTime *arg1 = (wxDateTime *) 0 ;
23779 wxDateTime *arg2 = 0 ;
23780 wxTimeSpan result;
23781 PyObject * obj0 = 0 ;
23782 PyObject * obj1 = 0 ;
23783 char *kwnames[] = {
23784 (char *) "self",(char *) "dt", NULL
23785 };
23786
23787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
23788 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23789 if (SWIG_arg_fail(1)) SWIG_fail;
23790 {
23791 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23792 if (SWIG_arg_fail(2)) SWIG_fail;
23793 if (arg2 == NULL) {
23794 SWIG_null_ref("wxDateTime");
23795 }
23796 if (SWIG_arg_fail(2)) SWIG_fail;
23797 }
23798 {
23799 PyThreadState* __tstate = wxPyBeginAllowThreads();
23800 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
23801
23802 wxPyEndAllowThreads(__tstate);
23803 if (PyErr_Occurred()) SWIG_fail;
23804 }
23805 {
23806 wxTimeSpan * resultptr;
23807 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
23808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
23809 }
23810 return resultobj;
23811 fail:
23812 return NULL;
23813 }
23814
23815
23816 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
23817 PyObject *resultobj = NULL;
23818 wxDateTime *arg1 = (wxDateTime *) 0 ;
23819 wxTimeSpan *arg2 = 0 ;
23820 wxDateTime *result;
23821 PyObject * obj0 = 0 ;
23822 PyObject * obj1 = 0 ;
23823
23824 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
23825 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23826 if (SWIG_arg_fail(1)) SWIG_fail;
23827 {
23828 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23829 if (SWIG_arg_fail(2)) SWIG_fail;
23830 if (arg2 == NULL) {
23831 SWIG_null_ref("wxTimeSpan");
23832 }
23833 if (SWIG_arg_fail(2)) SWIG_fail;
23834 }
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
23837 {
23838 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
23839 result = (wxDateTime *) &_result_ref;
23840 }
23841
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
23853 PyObject *resultobj = NULL;
23854 wxDateTime *arg1 = (wxDateTime *) 0 ;
23855 wxDateSpan *arg2 = 0 ;
23856 wxDateTime *result;
23857 PyObject * obj0 = 0 ;
23858 PyObject * obj1 = 0 ;
23859
23860 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
23861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23862 if (SWIG_arg_fail(1)) SWIG_fail;
23863 {
23864 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23865 if (SWIG_arg_fail(2)) SWIG_fail;
23866 if (arg2 == NULL) {
23867 SWIG_null_ref("wxDateSpan");
23868 }
23869 if (SWIG_arg_fail(2)) SWIG_fail;
23870 }
23871 {
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 {
23874 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23875 result = (wxDateTime *) &_result_ref;
23876 }
23877
23878 wxPyEndAllowThreads(__tstate);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 }
23881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23882 return resultobj;
23883 fail:
23884 return NULL;
23885 }
23886
23887
23888 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
23889 int argc;
23890 PyObject *argv[3];
23891 int ii;
23892
23893 argc = PyObject_Length(args);
23894 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23895 argv[ii] = PyTuple_GetItem(args,ii);
23896 }
23897 if (argc == 2) {
23898 int _v;
23899 {
23900 void *ptr;
23901 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
23902 _v = 0;
23903 PyErr_Clear();
23904 } else {
23905 _v = 1;
23906 }
23907 }
23908 if (_v) {
23909 {
23910 void *ptr = 0;
23911 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
23912 _v = 0;
23913 PyErr_Clear();
23914 } else {
23915 _v = (ptr != 0);
23916 }
23917 }
23918 if (_v) {
23919 return _wrap_DateTime___iadd____SWIG_0(self,args);
23920 }
23921 }
23922 }
23923 if (argc == 2) {
23924 int _v;
23925 {
23926 void *ptr;
23927 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
23928 _v = 0;
23929 PyErr_Clear();
23930 } else {
23931 _v = 1;
23932 }
23933 }
23934 if (_v) {
23935 {
23936 void *ptr = 0;
23937 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
23938 _v = 0;
23939 PyErr_Clear();
23940 } else {
23941 _v = (ptr != 0);
23942 }
23943 }
23944 if (_v) {
23945 return _wrap_DateTime___iadd____SWIG_1(self,args);
23946 }
23947 }
23948 }
23949
23950 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'");
23951 return NULL;
23952 }
23953
23954
23955 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
23956 PyObject *resultobj = NULL;
23957 wxDateTime *arg1 = (wxDateTime *) 0 ;
23958 wxTimeSpan *arg2 = 0 ;
23959 wxDateTime *result;
23960 PyObject * obj0 = 0 ;
23961 PyObject * obj1 = 0 ;
23962
23963 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
23964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23965 if (SWIG_arg_fail(1)) SWIG_fail;
23966 {
23967 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23968 if (SWIG_arg_fail(2)) SWIG_fail;
23969 if (arg2 == NULL) {
23970 SWIG_null_ref("wxTimeSpan");
23971 }
23972 if (SWIG_arg_fail(2)) SWIG_fail;
23973 }
23974 {
23975 PyThreadState* __tstate = wxPyBeginAllowThreads();
23976 {
23977 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
23978 result = (wxDateTime *) &_result_ref;
23979 }
23980
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23985 return resultobj;
23986 fail:
23987 return NULL;
23988 }
23989
23990
23991 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
23992 PyObject *resultobj = NULL;
23993 wxDateTime *arg1 = (wxDateTime *) 0 ;
23994 wxDateSpan *arg2 = 0 ;
23995 wxDateTime *result;
23996 PyObject * obj0 = 0 ;
23997 PyObject * obj1 = 0 ;
23998
23999 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
24000 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
24001 if (SWIG_arg_fail(1)) SWIG_fail;
24002 {
24003 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24004 if (SWIG_arg_fail(2)) SWIG_fail;
24005 if (arg2 == NULL) {
24006 SWIG_null_ref("wxDateSpan");
24007 }
24008 if (SWIG_arg_fail(2)) SWIG_fail;
24009 }
24010 {
24011 PyThreadState* __tstate = wxPyBeginAllowThreads();
24012 {
24013 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
24014 result = (wxDateTime *) &_result_ref;
24015 }
24016
24017 wxPyEndAllowThreads(__tstate);
24018 if (PyErr_Occurred()) SWIG_fail;
24019 }
24020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
24021 return resultobj;
24022 fail:
24023 return NULL;
24024 }
24025
24026
24027 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
24028 int argc;
24029 PyObject *argv[3];
24030 int ii;
24031
24032 argc = PyObject_Length(args);
24033 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24034 argv[ii] = PyTuple_GetItem(args,ii);
24035 }
24036 if (argc == 2) {
24037 int _v;
24038 {
24039 void *ptr;
24040 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24041 _v = 0;
24042 PyErr_Clear();
24043 } else {
24044 _v = 1;
24045 }
24046 }
24047 if (_v) {
24048 {
24049 void *ptr = 0;
24050 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24051 _v = 0;
24052 PyErr_Clear();
24053 } else {
24054 _v = (ptr != 0);
24055 }
24056 }
24057 if (_v) {
24058 return _wrap_DateTime___isub____SWIG_0(self,args);
24059 }
24060 }
24061 }
24062 if (argc == 2) {
24063 int _v;
24064 {
24065 void *ptr;
24066 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24067 _v = 0;
24068 PyErr_Clear();
24069 } else {
24070 _v = 1;
24071 }
24072 }
24073 if (_v) {
24074 {
24075 void *ptr = 0;
24076 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24077 _v = 0;
24078 PyErr_Clear();
24079 } else {
24080 _v = (ptr != 0);
24081 }
24082 }
24083 if (_v) {
24084 return _wrap_DateTime___isub____SWIG_1(self,args);
24085 }
24086 }
24087 }
24088
24089 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'");
24090 return NULL;
24091 }
24092
24093
24094 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
24095 PyObject *resultobj = NULL;
24096 wxDateTime *arg1 = (wxDateTime *) 0 ;
24097 wxTimeSpan *arg2 = 0 ;
24098 wxDateTime result;
24099 PyObject * obj0 = 0 ;
24100 PyObject * obj1 = 0 ;
24101
24102 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
24103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24104 if (SWIG_arg_fail(1)) SWIG_fail;
24105 {
24106 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
24107 if (SWIG_arg_fail(2)) SWIG_fail;
24108 if (arg2 == NULL) {
24109 SWIG_null_ref("wxTimeSpan");
24110 }
24111 if (SWIG_arg_fail(2)) SWIG_fail;
24112 }
24113 {
24114 PyThreadState* __tstate = wxPyBeginAllowThreads();
24115 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
24116
24117 wxPyEndAllowThreads(__tstate);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 }
24120 {
24121 wxDateTime * resultptr;
24122 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24123 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24124 }
24125 return resultobj;
24126 fail:
24127 return NULL;
24128 }
24129
24130
24131 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
24132 PyObject *resultobj = NULL;
24133 wxDateTime *arg1 = (wxDateTime *) 0 ;
24134 wxDateSpan *arg2 = 0 ;
24135 wxDateTime result;
24136 PyObject * obj0 = 0 ;
24137 PyObject * obj1 = 0 ;
24138
24139 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
24140 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24141 if (SWIG_arg_fail(1)) SWIG_fail;
24142 {
24143 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24144 if (SWIG_arg_fail(2)) SWIG_fail;
24145 if (arg2 == NULL) {
24146 SWIG_null_ref("wxDateSpan");
24147 }
24148 if (SWIG_arg_fail(2)) SWIG_fail;
24149 }
24150 {
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
24153
24154 wxPyEndAllowThreads(__tstate);
24155 if (PyErr_Occurred()) SWIG_fail;
24156 }
24157 {
24158 wxDateTime * resultptr;
24159 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24160 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24161 }
24162 return resultobj;
24163 fail:
24164 return NULL;
24165 }
24166
24167
24168 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
24169 int argc;
24170 PyObject *argv[3];
24171 int ii;
24172
24173 argc = PyObject_Length(args);
24174 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24175 argv[ii] = PyTuple_GetItem(args,ii);
24176 }
24177 if (argc == 2) {
24178 int _v;
24179 {
24180 void *ptr;
24181 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24182 _v = 0;
24183 PyErr_Clear();
24184 } else {
24185 _v = 1;
24186 }
24187 }
24188 if (_v) {
24189 {
24190 void *ptr = 0;
24191 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24192 _v = 0;
24193 PyErr_Clear();
24194 } else {
24195 _v = (ptr != 0);
24196 }
24197 }
24198 if (_v) {
24199 return _wrap_DateTime___add____SWIG_0(self,args);
24200 }
24201 }
24202 }
24203 if (argc == 2) {
24204 int _v;
24205 {
24206 void *ptr;
24207 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24208 _v = 0;
24209 PyErr_Clear();
24210 } else {
24211 _v = 1;
24212 }
24213 }
24214 if (_v) {
24215 {
24216 void *ptr = 0;
24217 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24218 _v = 0;
24219 PyErr_Clear();
24220 } else {
24221 _v = (ptr != 0);
24222 }
24223 }
24224 if (_v) {
24225 return _wrap_DateTime___add____SWIG_1(self,args);
24226 }
24227 }
24228 }
24229
24230 Py_INCREF(Py_NotImplemented);
24231 return Py_NotImplemented;
24232 }
24233
24234
24235 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
24236 PyObject *resultobj = NULL;
24237 wxDateTime *arg1 = (wxDateTime *) 0 ;
24238 wxDateTime *arg2 = 0 ;
24239 wxTimeSpan result;
24240 PyObject * obj0 = 0 ;
24241 PyObject * obj1 = 0 ;
24242
24243 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24244 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24245 if (SWIG_arg_fail(1)) SWIG_fail;
24246 {
24247 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24248 if (SWIG_arg_fail(2)) SWIG_fail;
24249 if (arg2 == NULL) {
24250 SWIG_null_ref("wxDateTime");
24251 }
24252 if (SWIG_arg_fail(2)) SWIG_fail;
24253 }
24254 {
24255 PyThreadState* __tstate = wxPyBeginAllowThreads();
24256 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
24257
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 {
24262 wxTimeSpan * resultptr;
24263 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
24264 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
24265 }
24266 return resultobj;
24267 fail:
24268 return NULL;
24269 }
24270
24271
24272 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
24273 PyObject *resultobj = NULL;
24274 wxDateTime *arg1 = (wxDateTime *) 0 ;
24275 wxTimeSpan *arg2 = 0 ;
24276 wxDateTime result;
24277 PyObject * obj0 = 0 ;
24278 PyObject * obj1 = 0 ;
24279
24280 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24281 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24282 if (SWIG_arg_fail(1)) SWIG_fail;
24283 {
24284 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
24285 if (SWIG_arg_fail(2)) SWIG_fail;
24286 if (arg2 == NULL) {
24287 SWIG_null_ref("wxTimeSpan");
24288 }
24289 if (SWIG_arg_fail(2)) SWIG_fail;
24290 }
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
24294
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 {
24299 wxDateTime * resultptr;
24300 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24301 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24302 }
24303 return resultobj;
24304 fail:
24305 return NULL;
24306 }
24307
24308
24309 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
24310 PyObject *resultobj = NULL;
24311 wxDateTime *arg1 = (wxDateTime *) 0 ;
24312 wxDateSpan *arg2 = 0 ;
24313 wxDateTime result;
24314 PyObject * obj0 = 0 ;
24315 PyObject * obj1 = 0 ;
24316
24317 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24318 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24319 if (SWIG_arg_fail(1)) SWIG_fail;
24320 {
24321 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24322 if (SWIG_arg_fail(2)) SWIG_fail;
24323 if (arg2 == NULL) {
24324 SWIG_null_ref("wxDateSpan");
24325 }
24326 if (SWIG_arg_fail(2)) SWIG_fail;
24327 }
24328 {
24329 PyThreadState* __tstate = wxPyBeginAllowThreads();
24330 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
24331
24332 wxPyEndAllowThreads(__tstate);
24333 if (PyErr_Occurred()) SWIG_fail;
24334 }
24335 {
24336 wxDateTime * resultptr;
24337 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24338 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24339 }
24340 return resultobj;
24341 fail:
24342 return NULL;
24343 }
24344
24345
24346 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
24347 int argc;
24348 PyObject *argv[3];
24349 int ii;
24350
24351 argc = PyObject_Length(args);
24352 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24353 argv[ii] = PyTuple_GetItem(args,ii);
24354 }
24355 if (argc == 2) {
24356 int _v;
24357 {
24358 void *ptr;
24359 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24360 _v = 0;
24361 PyErr_Clear();
24362 } else {
24363 _v = 1;
24364 }
24365 }
24366 if (_v) {
24367 {
24368 void *ptr = 0;
24369 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24370 _v = 0;
24371 PyErr_Clear();
24372 } else {
24373 _v = (ptr != 0);
24374 }
24375 }
24376 if (_v) {
24377 return _wrap_DateTime___sub____SWIG_0(self,args);
24378 }
24379 }
24380 }
24381 if (argc == 2) {
24382 int _v;
24383 {
24384 void *ptr;
24385 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24386 _v = 0;
24387 PyErr_Clear();
24388 } else {
24389 _v = 1;
24390 }
24391 }
24392 if (_v) {
24393 {
24394 void *ptr = 0;
24395 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24396 _v = 0;
24397 PyErr_Clear();
24398 } else {
24399 _v = (ptr != 0);
24400 }
24401 }
24402 if (_v) {
24403 return _wrap_DateTime___sub____SWIG_1(self,args);
24404 }
24405 }
24406 }
24407 if (argc == 2) {
24408 int _v;
24409 {
24410 void *ptr;
24411 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24412 _v = 0;
24413 PyErr_Clear();
24414 } else {
24415 _v = 1;
24416 }
24417 }
24418 if (_v) {
24419 {
24420 void *ptr = 0;
24421 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24422 _v = 0;
24423 PyErr_Clear();
24424 } else {
24425 _v = (ptr != 0);
24426 }
24427 }
24428 if (_v) {
24429 return _wrap_DateTime___sub____SWIG_2(self,args);
24430 }
24431 }
24432 }
24433
24434 Py_INCREF(Py_NotImplemented);
24435 return Py_NotImplemented;
24436 }
24437
24438
24439 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
24440 PyObject *resultobj = NULL;
24441 wxDateTime *arg1 = (wxDateTime *) 0 ;
24442 wxDateTime *arg2 = (wxDateTime *) 0 ;
24443 bool result;
24444 PyObject * obj0 = 0 ;
24445 PyObject * obj1 = 0 ;
24446 char *kwnames[] = {
24447 (char *) "self",(char *) "other", NULL
24448 };
24449
24450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) goto fail;
24451 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24452 if (SWIG_arg_fail(1)) SWIG_fail;
24453 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24454 if (SWIG_arg_fail(2)) SWIG_fail;
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
24458
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 {
24463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24464 }
24465 return resultobj;
24466 fail:
24467 return NULL;
24468 }
24469
24470
24471 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args, PyObject *kwargs) {
24472 PyObject *resultobj = NULL;
24473 wxDateTime *arg1 = (wxDateTime *) 0 ;
24474 wxDateTime *arg2 = (wxDateTime *) 0 ;
24475 bool result;
24476 PyObject * obj0 = 0 ;
24477 PyObject * obj1 = 0 ;
24478 char *kwnames[] = {
24479 (char *) "self",(char *) "other", NULL
24480 };
24481
24482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) goto fail;
24483 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24484 if (SWIG_arg_fail(1)) SWIG_fail;
24485 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24486 if (SWIG_arg_fail(2)) SWIG_fail;
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
24490
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 {
24495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24496 }
24497 return resultobj;
24498 fail:
24499 return NULL;
24500 }
24501
24502
24503 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
24504 PyObject *resultobj = NULL;
24505 wxDateTime *arg1 = (wxDateTime *) 0 ;
24506 wxDateTime *arg2 = (wxDateTime *) 0 ;
24507 bool result;
24508 PyObject * obj0 = 0 ;
24509 PyObject * obj1 = 0 ;
24510 char *kwnames[] = {
24511 (char *) "self",(char *) "other", NULL
24512 };
24513
24514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) goto fail;
24515 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24516 if (SWIG_arg_fail(1)) SWIG_fail;
24517 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24518 if (SWIG_arg_fail(2)) SWIG_fail;
24519 {
24520 PyThreadState* __tstate = wxPyBeginAllowThreads();
24521 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
24522
24523 wxPyEndAllowThreads(__tstate);
24524 if (PyErr_Occurred()) SWIG_fail;
24525 }
24526 {
24527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24528 }
24529 return resultobj;
24530 fail:
24531 return NULL;
24532 }
24533
24534
24535 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
24536 PyObject *resultobj = NULL;
24537 wxDateTime *arg1 = (wxDateTime *) 0 ;
24538 wxDateTime *arg2 = (wxDateTime *) 0 ;
24539 bool result;
24540 PyObject * obj0 = 0 ;
24541 PyObject * obj1 = 0 ;
24542 char *kwnames[] = {
24543 (char *) "self",(char *) "other", NULL
24544 };
24545
24546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) goto fail;
24547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24548 if (SWIG_arg_fail(1)) SWIG_fail;
24549 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24550 if (SWIG_arg_fail(2)) SWIG_fail;
24551 {
24552 PyThreadState* __tstate = wxPyBeginAllowThreads();
24553 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
24554
24555 wxPyEndAllowThreads(__tstate);
24556 if (PyErr_Occurred()) SWIG_fail;
24557 }
24558 {
24559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24560 }
24561 return resultobj;
24562 fail:
24563 return NULL;
24564 }
24565
24566
24567 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24568 PyObject *resultobj = NULL;
24569 wxDateTime *arg1 = (wxDateTime *) 0 ;
24570 wxDateTime *arg2 = (wxDateTime *) 0 ;
24571 bool result;
24572 PyObject * obj0 = 0 ;
24573 PyObject * obj1 = 0 ;
24574 char *kwnames[] = {
24575 (char *) "self",(char *) "other", NULL
24576 };
24577
24578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) goto fail;
24579 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24580 if (SWIG_arg_fail(1)) SWIG_fail;
24581 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24582 if (SWIG_arg_fail(2)) SWIG_fail;
24583 {
24584 PyThreadState* __tstate = wxPyBeginAllowThreads();
24585 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
24586
24587 wxPyEndAllowThreads(__tstate);
24588 if (PyErr_Occurred()) SWIG_fail;
24589 }
24590 {
24591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24592 }
24593 return resultobj;
24594 fail:
24595 return NULL;
24596 }
24597
24598
24599 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24600 PyObject *resultobj = NULL;
24601 wxDateTime *arg1 = (wxDateTime *) 0 ;
24602 wxDateTime *arg2 = (wxDateTime *) 0 ;
24603 bool result;
24604 PyObject * obj0 = 0 ;
24605 PyObject * obj1 = 0 ;
24606 char *kwnames[] = {
24607 (char *) "self",(char *) "other", NULL
24608 };
24609
24610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) goto fail;
24611 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24612 if (SWIG_arg_fail(1)) SWIG_fail;
24613 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24614 if (SWIG_arg_fail(2)) SWIG_fail;
24615 {
24616 PyThreadState* __tstate = wxPyBeginAllowThreads();
24617 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
24618
24619 wxPyEndAllowThreads(__tstate);
24620 if (PyErr_Occurred()) SWIG_fail;
24621 }
24622 {
24623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24624 }
24625 return resultobj;
24626 fail:
24627 return NULL;
24628 }
24629
24630
24631 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj = NULL;
24633 wxDateTime *arg1 = (wxDateTime *) 0 ;
24634 wxString *arg2 = 0 ;
24635 int result;
24636 bool temp2 = false ;
24637 PyObject * obj0 = 0 ;
24638 PyObject * obj1 = 0 ;
24639 char *kwnames[] = {
24640 (char *) "self",(char *) "date", NULL
24641 };
24642
24643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
24644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24645 if (SWIG_arg_fail(1)) SWIG_fail;
24646 {
24647 arg2 = wxString_in_helper(obj1);
24648 if (arg2 == NULL) SWIG_fail;
24649 temp2 = true;
24650 }
24651 {
24652 PyThreadState* __tstate = wxPyBeginAllowThreads();
24653 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
24654
24655 wxPyEndAllowThreads(__tstate);
24656 if (PyErr_Occurred()) SWIG_fail;
24657 }
24658 {
24659 resultobj = SWIG_From_int(static_cast<int >(result));
24660 }
24661 {
24662 if (temp2)
24663 delete arg2;
24664 }
24665 return resultobj;
24666 fail:
24667 {
24668 if (temp2)
24669 delete arg2;
24670 }
24671 return NULL;
24672 }
24673
24674
24675 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24676 PyObject *resultobj = NULL;
24677 wxDateTime *arg1 = (wxDateTime *) 0 ;
24678 wxString *arg2 = 0 ;
24679 wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ;
24680 wxString *arg3 = (wxString *) &arg3_defvalue ;
24681 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
24682 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
24683 int result;
24684 bool temp2 = false ;
24685 bool temp3 = false ;
24686 PyObject * obj0 = 0 ;
24687 PyObject * obj1 = 0 ;
24688 PyObject * obj2 = 0 ;
24689 PyObject * obj3 = 0 ;
24690 char *kwnames[] = {
24691 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
24692 };
24693
24694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24695 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24696 if (SWIG_arg_fail(1)) SWIG_fail;
24697 {
24698 arg2 = wxString_in_helper(obj1);
24699 if (arg2 == NULL) SWIG_fail;
24700 temp2 = true;
24701 }
24702 if (obj2) {
24703 {
24704 arg3 = wxString_in_helper(obj2);
24705 if (arg3 == NULL) SWIG_fail;
24706 temp3 = true;
24707 }
24708 }
24709 if (obj3) {
24710 {
24711 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24712 if (SWIG_arg_fail(4)) SWIG_fail;
24713 if (arg4 == NULL) {
24714 SWIG_null_ref("wxDateTime");
24715 }
24716 if (SWIG_arg_fail(4)) SWIG_fail;
24717 }
24718 }
24719 {
24720 PyThreadState* __tstate = wxPyBeginAllowThreads();
24721 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
24722
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 {
24727 resultobj = SWIG_From_int(static_cast<int >(result));
24728 }
24729 {
24730 if (temp2)
24731 delete arg2;
24732 }
24733 {
24734 if (temp3)
24735 delete arg3;
24736 }
24737 return resultobj;
24738 fail:
24739 {
24740 if (temp2)
24741 delete arg2;
24742 }
24743 {
24744 if (temp3)
24745 delete arg3;
24746 }
24747 return NULL;
24748 }
24749
24750
24751 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
24752 PyObject *resultobj = NULL;
24753 wxDateTime *arg1 = (wxDateTime *) 0 ;
24754 wxString *arg2 = 0 ;
24755 int result;
24756 bool temp2 = false ;
24757 PyObject * obj0 = 0 ;
24758 PyObject * obj1 = 0 ;
24759 char *kwnames[] = {
24760 (char *) "self",(char *) "datetime", NULL
24761 };
24762
24763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
24764 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24765 if (SWIG_arg_fail(1)) SWIG_fail;
24766 {
24767 arg2 = wxString_in_helper(obj1);
24768 if (arg2 == NULL) SWIG_fail;
24769 temp2 = true;
24770 }
24771 {
24772 PyThreadState* __tstate = wxPyBeginAllowThreads();
24773 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
24774
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 {
24779 resultobj = SWIG_From_int(static_cast<int >(result));
24780 }
24781 {
24782 if (temp2)
24783 delete arg2;
24784 }
24785 return resultobj;
24786 fail:
24787 {
24788 if (temp2)
24789 delete arg2;
24790 }
24791 return NULL;
24792 }
24793
24794
24795 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
24796 PyObject *resultobj = NULL;
24797 wxDateTime *arg1 = (wxDateTime *) 0 ;
24798 wxString *arg2 = 0 ;
24799 int result;
24800 bool temp2 = false ;
24801 PyObject * obj0 = 0 ;
24802 PyObject * obj1 = 0 ;
24803 char *kwnames[] = {
24804 (char *) "self",(char *) "date", NULL
24805 };
24806
24807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
24808 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24809 if (SWIG_arg_fail(1)) SWIG_fail;
24810 {
24811 arg2 = wxString_in_helper(obj1);
24812 if (arg2 == NULL) SWIG_fail;
24813 temp2 = true;
24814 }
24815 {
24816 PyThreadState* __tstate = wxPyBeginAllowThreads();
24817 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
24818
24819 wxPyEndAllowThreads(__tstate);
24820 if (PyErr_Occurred()) SWIG_fail;
24821 }
24822 {
24823 resultobj = SWIG_From_int(static_cast<int >(result));
24824 }
24825 {
24826 if (temp2)
24827 delete arg2;
24828 }
24829 return resultobj;
24830 fail:
24831 {
24832 if (temp2)
24833 delete arg2;
24834 }
24835 return NULL;
24836 }
24837
24838
24839 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
24840 PyObject *resultobj = NULL;
24841 wxDateTime *arg1 = (wxDateTime *) 0 ;
24842 wxString *arg2 = 0 ;
24843 int result;
24844 bool temp2 = false ;
24845 PyObject * obj0 = 0 ;
24846 PyObject * obj1 = 0 ;
24847 char *kwnames[] = {
24848 (char *) "self",(char *) "time", NULL
24849 };
24850
24851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
24852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24853 if (SWIG_arg_fail(1)) SWIG_fail;
24854 {
24855 arg2 = wxString_in_helper(obj1);
24856 if (arg2 == NULL) SWIG_fail;
24857 temp2 = true;
24858 }
24859 {
24860 PyThreadState* __tstate = wxPyBeginAllowThreads();
24861 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
24862
24863 wxPyEndAllowThreads(__tstate);
24864 if (PyErr_Occurred()) SWIG_fail;
24865 }
24866 {
24867 resultobj = SWIG_From_int(static_cast<int >(result));
24868 }
24869 {
24870 if (temp2)
24871 delete arg2;
24872 }
24873 return resultobj;
24874 fail:
24875 {
24876 if (temp2)
24877 delete arg2;
24878 }
24879 return NULL;
24880 }
24881
24882
24883 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
24884 PyObject *resultobj = NULL;
24885 wxDateTime *arg1 = (wxDateTime *) 0 ;
24886 wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ;
24887 wxString *arg2 = (wxString *) &arg2_defvalue ;
24888 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
24889 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
24890 wxString result;
24891 bool temp2 = false ;
24892 bool temp3 = false ;
24893 PyObject * obj0 = 0 ;
24894 PyObject * obj1 = 0 ;
24895 PyObject * obj2 = 0 ;
24896 char *kwnames[] = {
24897 (char *) "self",(char *) "format",(char *) "tz", NULL
24898 };
24899
24900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
24901 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24902 if (SWIG_arg_fail(1)) SWIG_fail;
24903 if (obj1) {
24904 {
24905 arg2 = wxString_in_helper(obj1);
24906 if (arg2 == NULL) SWIG_fail;
24907 temp2 = true;
24908 }
24909 }
24910 if (obj2) {
24911 {
24912 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
24913 temp3 = true;
24914 }
24915 }
24916 {
24917 PyThreadState* __tstate = wxPyBeginAllowThreads();
24918 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
24919
24920 wxPyEndAllowThreads(__tstate);
24921 if (PyErr_Occurred()) SWIG_fail;
24922 }
24923 {
24924 #if wxUSE_UNICODE
24925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24926 #else
24927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24928 #endif
24929 }
24930 {
24931 if (temp2)
24932 delete arg2;
24933 }
24934 {
24935 if (temp3) delete arg3;
24936 }
24937 return resultobj;
24938 fail:
24939 {
24940 if (temp2)
24941 delete arg2;
24942 }
24943 {
24944 if (temp3) delete arg3;
24945 }
24946 return NULL;
24947 }
24948
24949
24950 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
24951 PyObject *resultobj = NULL;
24952 wxDateTime *arg1 = (wxDateTime *) 0 ;
24953 wxString result;
24954 PyObject * obj0 = 0 ;
24955 char *kwnames[] = {
24956 (char *) "self", NULL
24957 };
24958
24959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
24960 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24961 if (SWIG_arg_fail(1)) SWIG_fail;
24962 {
24963 PyThreadState* __tstate = wxPyBeginAllowThreads();
24964 result = ((wxDateTime const *)arg1)->FormatDate();
24965
24966 wxPyEndAllowThreads(__tstate);
24967 if (PyErr_Occurred()) SWIG_fail;
24968 }
24969 {
24970 #if wxUSE_UNICODE
24971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24972 #else
24973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24974 #endif
24975 }
24976 return resultobj;
24977 fail:
24978 return NULL;
24979 }
24980
24981
24982 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
24983 PyObject *resultobj = NULL;
24984 wxDateTime *arg1 = (wxDateTime *) 0 ;
24985 wxString result;
24986 PyObject * obj0 = 0 ;
24987 char *kwnames[] = {
24988 (char *) "self", NULL
24989 };
24990
24991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
24992 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24993 if (SWIG_arg_fail(1)) SWIG_fail;
24994 {
24995 PyThreadState* __tstate = wxPyBeginAllowThreads();
24996 result = ((wxDateTime const *)arg1)->FormatTime();
24997
24998 wxPyEndAllowThreads(__tstate);
24999 if (PyErr_Occurred()) SWIG_fail;
25000 }
25001 {
25002 #if wxUSE_UNICODE
25003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25004 #else
25005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25006 #endif
25007 }
25008 return resultobj;
25009 fail:
25010 return NULL;
25011 }
25012
25013
25014 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
25015 PyObject *resultobj = NULL;
25016 wxDateTime *arg1 = (wxDateTime *) 0 ;
25017 wxString result;
25018 PyObject * obj0 = 0 ;
25019 char *kwnames[] = {
25020 (char *) "self", NULL
25021 };
25022
25023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
25024 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
25025 if (SWIG_arg_fail(1)) SWIG_fail;
25026 {
25027 PyThreadState* __tstate = wxPyBeginAllowThreads();
25028 result = ((wxDateTime const *)arg1)->FormatISODate();
25029
25030 wxPyEndAllowThreads(__tstate);
25031 if (PyErr_Occurred()) SWIG_fail;
25032 }
25033 {
25034 #if wxUSE_UNICODE
25035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25036 #else
25037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25038 #endif
25039 }
25040 return resultobj;
25041 fail:
25042 return NULL;
25043 }
25044
25045
25046 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
25047 PyObject *resultobj = NULL;
25048 wxDateTime *arg1 = (wxDateTime *) 0 ;
25049 wxString result;
25050 PyObject * obj0 = 0 ;
25051 char *kwnames[] = {
25052 (char *) "self", NULL
25053 };
25054
25055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
25056 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
25057 if (SWIG_arg_fail(1)) SWIG_fail;
25058 {
25059 PyThreadState* __tstate = wxPyBeginAllowThreads();
25060 result = ((wxDateTime const *)arg1)->FormatISOTime();
25061
25062 wxPyEndAllowThreads(__tstate);
25063 if (PyErr_Occurred()) SWIG_fail;
25064 }
25065 {
25066 #if wxUSE_UNICODE
25067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25068 #else
25069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25070 #endif
25071 }
25072 return resultobj;
25073 fail:
25074 return NULL;
25075 }
25076
25077
25078 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
25079 PyObject *obj;
25080 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25081 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
25082 Py_INCREF(obj);
25083 return Py_BuildValue((char *)"");
25084 }
25085 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
25086 PyObject *resultobj = NULL;
25087 long arg1 ;
25088 wxTimeSpan result;
25089 PyObject * obj0 = 0 ;
25090 char *kwnames[] = {
25091 (char *) "sec", NULL
25092 };
25093
25094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
25095 {
25096 arg1 = static_cast<long >(SWIG_As_long(obj0));
25097 if (SWIG_arg_fail(1)) SWIG_fail;
25098 }
25099 {
25100 PyThreadState* __tstate = wxPyBeginAllowThreads();
25101 result = wxTimeSpan::Seconds(arg1);
25102
25103 wxPyEndAllowThreads(__tstate);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 {
25107 wxTimeSpan * resultptr;
25108 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25109 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25110 }
25111 return resultobj;
25112 fail:
25113 return NULL;
25114 }
25115
25116
25117 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
25118 PyObject *resultobj = NULL;
25119 wxTimeSpan result;
25120 char *kwnames[] = {
25121 NULL
25122 };
25123
25124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
25125 {
25126 PyThreadState* __tstate = wxPyBeginAllowThreads();
25127 result = wxTimeSpan::Second();
25128
25129 wxPyEndAllowThreads(__tstate);
25130 if (PyErr_Occurred()) SWIG_fail;
25131 }
25132 {
25133 wxTimeSpan * resultptr;
25134 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25135 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25136 }
25137 return resultobj;
25138 fail:
25139 return NULL;
25140 }
25141
25142
25143 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
25144 PyObject *resultobj = NULL;
25145 long arg1 ;
25146 wxTimeSpan result;
25147 PyObject * obj0 = 0 ;
25148 char *kwnames[] = {
25149 (char *) "min", NULL
25150 };
25151
25152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
25153 {
25154 arg1 = static_cast<long >(SWIG_As_long(obj0));
25155 if (SWIG_arg_fail(1)) SWIG_fail;
25156 }
25157 {
25158 PyThreadState* __tstate = wxPyBeginAllowThreads();
25159 result = wxTimeSpan::Minutes(arg1);
25160
25161 wxPyEndAllowThreads(__tstate);
25162 if (PyErr_Occurred()) SWIG_fail;
25163 }
25164 {
25165 wxTimeSpan * resultptr;
25166 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25167 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25168 }
25169 return resultobj;
25170 fail:
25171 return NULL;
25172 }
25173
25174
25175 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
25176 PyObject *resultobj = NULL;
25177 wxTimeSpan result;
25178 char *kwnames[] = {
25179 NULL
25180 };
25181
25182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
25183 {
25184 PyThreadState* __tstate = wxPyBeginAllowThreads();
25185 result = wxTimeSpan::Minute();
25186
25187 wxPyEndAllowThreads(__tstate);
25188 if (PyErr_Occurred()) SWIG_fail;
25189 }
25190 {
25191 wxTimeSpan * resultptr;
25192 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25193 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25194 }
25195 return resultobj;
25196 fail:
25197 return NULL;
25198 }
25199
25200
25201 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
25202 PyObject *resultobj = NULL;
25203 long arg1 ;
25204 wxTimeSpan result;
25205 PyObject * obj0 = 0 ;
25206 char *kwnames[] = {
25207 (char *) "hours", NULL
25208 };
25209
25210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
25211 {
25212 arg1 = static_cast<long >(SWIG_As_long(obj0));
25213 if (SWIG_arg_fail(1)) SWIG_fail;
25214 }
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 result = wxTimeSpan::Hours(arg1);
25218
25219 wxPyEndAllowThreads(__tstate);
25220 if (PyErr_Occurred()) SWIG_fail;
25221 }
25222 {
25223 wxTimeSpan * resultptr;
25224 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25225 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25226 }
25227 return resultobj;
25228 fail:
25229 return NULL;
25230 }
25231
25232
25233 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
25234 PyObject *resultobj = NULL;
25235 wxTimeSpan result;
25236 char *kwnames[] = {
25237 NULL
25238 };
25239
25240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
25241 {
25242 PyThreadState* __tstate = wxPyBeginAllowThreads();
25243 result = wxTimeSpan::Hour();
25244
25245 wxPyEndAllowThreads(__tstate);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 {
25249 wxTimeSpan * resultptr;
25250 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25251 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25252 }
25253 return resultobj;
25254 fail:
25255 return NULL;
25256 }
25257
25258
25259 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
25260 PyObject *resultobj = NULL;
25261 long arg1 ;
25262 wxTimeSpan result;
25263 PyObject * obj0 = 0 ;
25264 char *kwnames[] = {
25265 (char *) "days", NULL
25266 };
25267
25268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
25269 {
25270 arg1 = static_cast<long >(SWIG_As_long(obj0));
25271 if (SWIG_arg_fail(1)) SWIG_fail;
25272 }
25273 {
25274 PyThreadState* __tstate = wxPyBeginAllowThreads();
25275 result = wxTimeSpan::Days(arg1);
25276
25277 wxPyEndAllowThreads(__tstate);
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 {
25281 wxTimeSpan * resultptr;
25282 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25283 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25284 }
25285 return resultobj;
25286 fail:
25287 return NULL;
25288 }
25289
25290
25291 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
25292 PyObject *resultobj = NULL;
25293 wxTimeSpan result;
25294 char *kwnames[] = {
25295 NULL
25296 };
25297
25298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
25299 {
25300 PyThreadState* __tstate = wxPyBeginAllowThreads();
25301 result = wxTimeSpan::Day();
25302
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 {
25307 wxTimeSpan * resultptr;
25308 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25309 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25310 }
25311 return resultobj;
25312 fail:
25313 return NULL;
25314 }
25315
25316
25317 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj = NULL;
25319 long arg1 ;
25320 wxTimeSpan result;
25321 PyObject * obj0 = 0 ;
25322 char *kwnames[] = {
25323 (char *) "days", NULL
25324 };
25325
25326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
25327 {
25328 arg1 = static_cast<long >(SWIG_As_long(obj0));
25329 if (SWIG_arg_fail(1)) SWIG_fail;
25330 }
25331 {
25332 PyThreadState* __tstate = wxPyBeginAllowThreads();
25333 result = wxTimeSpan::Weeks(arg1);
25334
25335 wxPyEndAllowThreads(__tstate);
25336 if (PyErr_Occurred()) SWIG_fail;
25337 }
25338 {
25339 wxTimeSpan * resultptr;
25340 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25342 }
25343 return resultobj;
25344 fail:
25345 return NULL;
25346 }
25347
25348
25349 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
25350 PyObject *resultobj = NULL;
25351 wxTimeSpan result;
25352 char *kwnames[] = {
25353 NULL
25354 };
25355
25356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
25357 {
25358 PyThreadState* __tstate = wxPyBeginAllowThreads();
25359 result = wxTimeSpan::Week();
25360
25361 wxPyEndAllowThreads(__tstate);
25362 if (PyErr_Occurred()) SWIG_fail;
25363 }
25364 {
25365 wxTimeSpan * resultptr;
25366 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25367 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25368 }
25369 return resultobj;
25370 fail:
25371 return NULL;
25372 }
25373
25374
25375 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
25376 PyObject *resultobj = NULL;
25377 long arg1 = (long) 0 ;
25378 long arg2 = (long) 0 ;
25379 long arg3 = (long) 0 ;
25380 long arg4 = (long) 0 ;
25381 wxTimeSpan *result;
25382 PyObject * obj0 = 0 ;
25383 PyObject * obj1 = 0 ;
25384 PyObject * obj2 = 0 ;
25385 PyObject * obj3 = 0 ;
25386 char *kwnames[] = {
25387 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
25388 };
25389
25390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25391 if (obj0) {
25392 {
25393 arg1 = static_cast<long >(SWIG_As_long(obj0));
25394 if (SWIG_arg_fail(1)) SWIG_fail;
25395 }
25396 }
25397 if (obj1) {
25398 {
25399 arg2 = static_cast<long >(SWIG_As_long(obj1));
25400 if (SWIG_arg_fail(2)) SWIG_fail;
25401 }
25402 }
25403 if (obj2) {
25404 {
25405 arg3 = static_cast<long >(SWIG_As_long(obj2));
25406 if (SWIG_arg_fail(3)) SWIG_fail;
25407 }
25408 }
25409 if (obj3) {
25410 {
25411 arg4 = static_cast<long >(SWIG_As_long(obj3));
25412 if (SWIG_arg_fail(4)) SWIG_fail;
25413 }
25414 }
25415 {
25416 PyThreadState* __tstate = wxPyBeginAllowThreads();
25417 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
25418
25419 wxPyEndAllowThreads(__tstate);
25420 if (PyErr_Occurred()) SWIG_fail;
25421 }
25422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25423 return resultobj;
25424 fail:
25425 return NULL;
25426 }
25427
25428
25429 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
25430 PyObject *resultobj = NULL;
25431 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25432 PyObject * obj0 = 0 ;
25433 char *kwnames[] = {
25434 (char *) "self", NULL
25435 };
25436
25437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
25438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25439 if (SWIG_arg_fail(1)) SWIG_fail;
25440 {
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 delete arg1;
25443
25444 wxPyEndAllowThreads(__tstate);
25445 if (PyErr_Occurred()) SWIG_fail;
25446 }
25447 Py_INCREF(Py_None); resultobj = Py_None;
25448 return resultobj;
25449 fail:
25450 return NULL;
25451 }
25452
25453
25454 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
25455 PyObject *resultobj = NULL;
25456 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25457 wxTimeSpan *arg2 = 0 ;
25458 wxTimeSpan *result;
25459 PyObject * obj0 = 0 ;
25460 PyObject * obj1 = 0 ;
25461 char *kwnames[] = {
25462 (char *) "self",(char *) "diff", NULL
25463 };
25464
25465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
25466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25467 if (SWIG_arg_fail(1)) SWIG_fail;
25468 {
25469 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25470 if (SWIG_arg_fail(2)) SWIG_fail;
25471 if (arg2 == NULL) {
25472 SWIG_null_ref("wxTimeSpan");
25473 }
25474 if (SWIG_arg_fail(2)) SWIG_fail;
25475 }
25476 {
25477 PyThreadState* __tstate = wxPyBeginAllowThreads();
25478 {
25479 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
25480 result = (wxTimeSpan *) &_result_ref;
25481 }
25482
25483 wxPyEndAllowThreads(__tstate);
25484 if (PyErr_Occurred()) SWIG_fail;
25485 }
25486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25487 return resultobj;
25488 fail:
25489 return NULL;
25490 }
25491
25492
25493 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
25494 PyObject *resultobj = NULL;
25495 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25496 wxTimeSpan *arg2 = 0 ;
25497 wxTimeSpan *result;
25498 PyObject * obj0 = 0 ;
25499 PyObject * obj1 = 0 ;
25500 char *kwnames[] = {
25501 (char *) "self",(char *) "diff", NULL
25502 };
25503
25504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
25505 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25506 if (SWIG_arg_fail(1)) SWIG_fail;
25507 {
25508 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25509 if (SWIG_arg_fail(2)) SWIG_fail;
25510 if (arg2 == NULL) {
25511 SWIG_null_ref("wxTimeSpan");
25512 }
25513 if (SWIG_arg_fail(2)) SWIG_fail;
25514 }
25515 {
25516 PyThreadState* __tstate = wxPyBeginAllowThreads();
25517 {
25518 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
25519 result = (wxTimeSpan *) &_result_ref;
25520 }
25521
25522 wxPyEndAllowThreads(__tstate);
25523 if (PyErr_Occurred()) SWIG_fail;
25524 }
25525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25526 return resultobj;
25527 fail:
25528 return NULL;
25529 }
25530
25531
25532 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
25533 PyObject *resultobj = NULL;
25534 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25535 int arg2 ;
25536 wxTimeSpan *result;
25537 PyObject * obj0 = 0 ;
25538 PyObject * obj1 = 0 ;
25539 char *kwnames[] = {
25540 (char *) "self",(char *) "n", NULL
25541 };
25542
25543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
25544 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25545 if (SWIG_arg_fail(1)) SWIG_fail;
25546 {
25547 arg2 = static_cast<int >(SWIG_As_int(obj1));
25548 if (SWIG_arg_fail(2)) SWIG_fail;
25549 }
25550 {
25551 PyThreadState* __tstate = wxPyBeginAllowThreads();
25552 {
25553 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
25554 result = (wxTimeSpan *) &_result_ref;
25555 }
25556
25557 wxPyEndAllowThreads(__tstate);
25558 if (PyErr_Occurred()) SWIG_fail;
25559 }
25560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25561 return resultobj;
25562 fail:
25563 return NULL;
25564 }
25565
25566
25567 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
25568 PyObject *resultobj = NULL;
25569 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25570 wxTimeSpan *result;
25571 PyObject * obj0 = 0 ;
25572 char *kwnames[] = {
25573 (char *) "self", NULL
25574 };
25575
25576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
25577 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25578 if (SWIG_arg_fail(1)) SWIG_fail;
25579 {
25580 PyThreadState* __tstate = wxPyBeginAllowThreads();
25581 {
25582 wxTimeSpan &_result_ref = (arg1)->Neg();
25583 result = (wxTimeSpan *) &_result_ref;
25584 }
25585
25586 wxPyEndAllowThreads(__tstate);
25587 if (PyErr_Occurred()) SWIG_fail;
25588 }
25589 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25590 return resultobj;
25591 fail:
25592 return NULL;
25593 }
25594
25595
25596 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
25597 PyObject *resultobj = NULL;
25598 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25599 wxTimeSpan result;
25600 PyObject * obj0 = 0 ;
25601 char *kwnames[] = {
25602 (char *) "self", NULL
25603 };
25604
25605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
25606 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25607 if (SWIG_arg_fail(1)) SWIG_fail;
25608 {
25609 PyThreadState* __tstate = wxPyBeginAllowThreads();
25610 result = ((wxTimeSpan const *)arg1)->Abs();
25611
25612 wxPyEndAllowThreads(__tstate);
25613 if (PyErr_Occurred()) SWIG_fail;
25614 }
25615 {
25616 wxTimeSpan * resultptr;
25617 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25618 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25619 }
25620 return resultobj;
25621 fail:
25622 return NULL;
25623 }
25624
25625
25626 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
25627 PyObject *resultobj = NULL;
25628 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25629 wxTimeSpan *arg2 = 0 ;
25630 wxTimeSpan *result;
25631 PyObject * obj0 = 0 ;
25632 PyObject * obj1 = 0 ;
25633 char *kwnames[] = {
25634 (char *) "self",(char *) "diff", NULL
25635 };
25636
25637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
25638 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25639 if (SWIG_arg_fail(1)) SWIG_fail;
25640 {
25641 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25642 if (SWIG_arg_fail(2)) SWIG_fail;
25643 if (arg2 == NULL) {
25644 SWIG_null_ref("wxTimeSpan");
25645 }
25646 if (SWIG_arg_fail(2)) SWIG_fail;
25647 }
25648 {
25649 PyThreadState* __tstate = wxPyBeginAllowThreads();
25650 {
25651 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
25652 result = (wxTimeSpan *) &_result_ref;
25653 }
25654
25655 wxPyEndAllowThreads(__tstate);
25656 if (PyErr_Occurred()) SWIG_fail;
25657 }
25658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25659 return resultobj;
25660 fail:
25661 return NULL;
25662 }
25663
25664
25665 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
25666 PyObject *resultobj = NULL;
25667 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25668 wxTimeSpan *arg2 = 0 ;
25669 wxTimeSpan *result;
25670 PyObject * obj0 = 0 ;
25671 PyObject * obj1 = 0 ;
25672 char *kwnames[] = {
25673 (char *) "self",(char *) "diff", NULL
25674 };
25675
25676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
25677 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25678 if (SWIG_arg_fail(1)) SWIG_fail;
25679 {
25680 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25681 if (SWIG_arg_fail(2)) SWIG_fail;
25682 if (arg2 == NULL) {
25683 SWIG_null_ref("wxTimeSpan");
25684 }
25685 if (SWIG_arg_fail(2)) SWIG_fail;
25686 }
25687 {
25688 PyThreadState* __tstate = wxPyBeginAllowThreads();
25689 {
25690 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
25691 result = (wxTimeSpan *) &_result_ref;
25692 }
25693
25694 wxPyEndAllowThreads(__tstate);
25695 if (PyErr_Occurred()) SWIG_fail;
25696 }
25697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25698 return resultobj;
25699 fail:
25700 return NULL;
25701 }
25702
25703
25704 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
25705 PyObject *resultobj = NULL;
25706 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25707 int arg2 ;
25708 wxTimeSpan *result;
25709 PyObject * obj0 = 0 ;
25710 PyObject * obj1 = 0 ;
25711 char *kwnames[] = {
25712 (char *) "self",(char *) "n", NULL
25713 };
25714
25715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
25716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25717 if (SWIG_arg_fail(1)) SWIG_fail;
25718 {
25719 arg2 = static_cast<int >(SWIG_As_int(obj1));
25720 if (SWIG_arg_fail(2)) SWIG_fail;
25721 }
25722 {
25723 PyThreadState* __tstate = wxPyBeginAllowThreads();
25724 {
25725 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
25726 result = (wxTimeSpan *) &_result_ref;
25727 }
25728
25729 wxPyEndAllowThreads(__tstate);
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25733 return resultobj;
25734 fail:
25735 return NULL;
25736 }
25737
25738
25739 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
25740 PyObject *resultobj = NULL;
25741 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25742 wxTimeSpan *result;
25743 PyObject * obj0 = 0 ;
25744 char *kwnames[] = {
25745 (char *) "self", NULL
25746 };
25747
25748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
25749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25750 if (SWIG_arg_fail(1)) SWIG_fail;
25751 {
25752 PyThreadState* __tstate = wxPyBeginAllowThreads();
25753 {
25754 wxTimeSpan &_result_ref = (arg1)->operator -();
25755 result = (wxTimeSpan *) &_result_ref;
25756 }
25757
25758 wxPyEndAllowThreads(__tstate);
25759 if (PyErr_Occurred()) SWIG_fail;
25760 }
25761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25762 return resultobj;
25763 fail:
25764 return NULL;
25765 }
25766
25767
25768 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
25769 PyObject *resultobj = NULL;
25770 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25771 wxTimeSpan *arg2 = 0 ;
25772 wxTimeSpan result;
25773 PyObject * obj0 = 0 ;
25774 PyObject * obj1 = 0 ;
25775 char *kwnames[] = {
25776 (char *) "self",(char *) "other", NULL
25777 };
25778
25779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
25780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25781 if (SWIG_arg_fail(1)) SWIG_fail;
25782 {
25783 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25784 if (SWIG_arg_fail(2)) SWIG_fail;
25785 if (arg2 == NULL) {
25786 SWIG_null_ref("wxTimeSpan");
25787 }
25788 if (SWIG_arg_fail(2)) SWIG_fail;
25789 }
25790 {
25791 PyThreadState* __tstate = wxPyBeginAllowThreads();
25792 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
25793
25794 wxPyEndAllowThreads(__tstate);
25795 if (PyErr_Occurred()) SWIG_fail;
25796 }
25797 {
25798 wxTimeSpan * resultptr;
25799 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25801 }
25802 return resultobj;
25803 fail:
25804 return NULL;
25805 }
25806
25807
25808 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
25809 PyObject *resultobj = NULL;
25810 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25811 wxTimeSpan *arg2 = 0 ;
25812 wxTimeSpan result;
25813 PyObject * obj0 = 0 ;
25814 PyObject * obj1 = 0 ;
25815 char *kwnames[] = {
25816 (char *) "self",(char *) "other", NULL
25817 };
25818
25819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
25820 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25821 if (SWIG_arg_fail(1)) SWIG_fail;
25822 {
25823 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25824 if (SWIG_arg_fail(2)) SWIG_fail;
25825 if (arg2 == NULL) {
25826 SWIG_null_ref("wxTimeSpan");
25827 }
25828 if (SWIG_arg_fail(2)) SWIG_fail;
25829 }
25830 {
25831 PyThreadState* __tstate = wxPyBeginAllowThreads();
25832 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
25833
25834 wxPyEndAllowThreads(__tstate);
25835 if (PyErr_Occurred()) SWIG_fail;
25836 }
25837 {
25838 wxTimeSpan * resultptr;
25839 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25840 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25841 }
25842 return resultobj;
25843 fail:
25844 return NULL;
25845 }
25846
25847
25848 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
25849 PyObject *resultobj = NULL;
25850 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25851 int arg2 ;
25852 wxTimeSpan result;
25853 PyObject * obj0 = 0 ;
25854 PyObject * obj1 = 0 ;
25855 char *kwnames[] = {
25856 (char *) "self",(char *) "n", NULL
25857 };
25858
25859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
25860 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25861 if (SWIG_arg_fail(1)) SWIG_fail;
25862 {
25863 arg2 = static_cast<int >(SWIG_As_int(obj1));
25864 if (SWIG_arg_fail(2)) SWIG_fail;
25865 }
25866 {
25867 PyThreadState* __tstate = wxPyBeginAllowThreads();
25868 result = wxTimeSpan___mul__(arg1,arg2);
25869
25870 wxPyEndAllowThreads(__tstate);
25871 if (PyErr_Occurred()) SWIG_fail;
25872 }
25873 {
25874 wxTimeSpan * resultptr;
25875 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25876 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25877 }
25878 return resultobj;
25879 fail:
25880 return NULL;
25881 }
25882
25883
25884 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
25885 PyObject *resultobj = NULL;
25886 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25887 int arg2 ;
25888 wxTimeSpan result;
25889 PyObject * obj0 = 0 ;
25890 PyObject * obj1 = 0 ;
25891 char *kwnames[] = {
25892 (char *) "self",(char *) "n", NULL
25893 };
25894
25895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
25896 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25897 if (SWIG_arg_fail(1)) SWIG_fail;
25898 {
25899 arg2 = static_cast<int >(SWIG_As_int(obj1));
25900 if (SWIG_arg_fail(2)) SWIG_fail;
25901 }
25902 {
25903 PyThreadState* __tstate = wxPyBeginAllowThreads();
25904 result = wxTimeSpan___rmul__(arg1,arg2);
25905
25906 wxPyEndAllowThreads(__tstate);
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 {
25910 wxTimeSpan * resultptr;
25911 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25912 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25913 }
25914 return resultobj;
25915 fail:
25916 return NULL;
25917 }
25918
25919
25920 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
25921 PyObject *resultobj = NULL;
25922 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25923 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25924 bool result;
25925 PyObject * obj0 = 0 ;
25926 PyObject * obj1 = 0 ;
25927 char *kwnames[] = {
25928 (char *) "self",(char *) "other", NULL
25929 };
25930
25931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
25932 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25933 if (SWIG_arg_fail(1)) SWIG_fail;
25934 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25935 if (SWIG_arg_fail(2)) SWIG_fail;
25936 {
25937 PyThreadState* __tstate = wxPyBeginAllowThreads();
25938 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
25939
25940 wxPyEndAllowThreads(__tstate);
25941 if (PyErr_Occurred()) SWIG_fail;
25942 }
25943 {
25944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25945 }
25946 return resultobj;
25947 fail:
25948 return NULL;
25949 }
25950
25951
25952 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj = NULL;
25954 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25955 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25956 bool result;
25957 PyObject * obj0 = 0 ;
25958 PyObject * obj1 = 0 ;
25959 char *kwnames[] = {
25960 (char *) "self",(char *) "other", NULL
25961 };
25962
25963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
25964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25965 if (SWIG_arg_fail(1)) SWIG_fail;
25966 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25967 if (SWIG_arg_fail(2)) SWIG_fail;
25968 {
25969 PyThreadState* __tstate = wxPyBeginAllowThreads();
25970 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
25971
25972 wxPyEndAllowThreads(__tstate);
25973 if (PyErr_Occurred()) SWIG_fail;
25974 }
25975 {
25976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25977 }
25978 return resultobj;
25979 fail:
25980 return NULL;
25981 }
25982
25983
25984 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
25985 PyObject *resultobj = NULL;
25986 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25987 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25988 bool result;
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
25991 char *kwnames[] = {
25992 (char *) "self",(char *) "other", NULL
25993 };
25994
25995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
25996 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25997 if (SWIG_arg_fail(1)) SWIG_fail;
25998 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25999 if (SWIG_arg_fail(2)) SWIG_fail;
26000 {
26001 PyThreadState* __tstate = wxPyBeginAllowThreads();
26002 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
26003
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 {
26008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26009 }
26010 return resultobj;
26011 fail:
26012 return NULL;
26013 }
26014
26015
26016 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
26017 PyObject *resultobj = NULL;
26018 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26019 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
26020 bool result;
26021 PyObject * obj0 = 0 ;
26022 PyObject * obj1 = 0 ;
26023 char *kwnames[] = {
26024 (char *) "self",(char *) "other", NULL
26025 };
26026
26027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
26028 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26029 if (SWIG_arg_fail(1)) SWIG_fail;
26030 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26031 if (SWIG_arg_fail(2)) SWIG_fail;
26032 {
26033 PyThreadState* __tstate = wxPyBeginAllowThreads();
26034 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
26035
26036 wxPyEndAllowThreads(__tstate);
26037 if (PyErr_Occurred()) SWIG_fail;
26038 }
26039 {
26040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26041 }
26042 return resultobj;
26043 fail:
26044 return NULL;
26045 }
26046
26047
26048 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
26049 PyObject *resultobj = NULL;
26050 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26051 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
26052 bool result;
26053 PyObject * obj0 = 0 ;
26054 PyObject * obj1 = 0 ;
26055 char *kwnames[] = {
26056 (char *) "self",(char *) "other", NULL
26057 };
26058
26059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
26060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26061 if (SWIG_arg_fail(1)) SWIG_fail;
26062 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26063 if (SWIG_arg_fail(2)) SWIG_fail;
26064 {
26065 PyThreadState* __tstate = wxPyBeginAllowThreads();
26066 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
26067
26068 wxPyEndAllowThreads(__tstate);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 }
26071 {
26072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26073 }
26074 return resultobj;
26075 fail:
26076 return NULL;
26077 }
26078
26079
26080 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
26081 PyObject *resultobj = NULL;
26082 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26083 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
26084 bool result;
26085 PyObject * obj0 = 0 ;
26086 PyObject * obj1 = 0 ;
26087 char *kwnames[] = {
26088 (char *) "self",(char *) "other", NULL
26089 };
26090
26091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
26092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26093 if (SWIG_arg_fail(1)) SWIG_fail;
26094 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26095 if (SWIG_arg_fail(2)) SWIG_fail;
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
26099
26100 wxPyEndAllowThreads(__tstate);
26101 if (PyErr_Occurred()) SWIG_fail;
26102 }
26103 {
26104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26105 }
26106 return resultobj;
26107 fail:
26108 return NULL;
26109 }
26110
26111
26112 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
26113 PyObject *resultobj = NULL;
26114 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26115 bool result;
26116 PyObject * obj0 = 0 ;
26117 char *kwnames[] = {
26118 (char *) "self", NULL
26119 };
26120
26121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
26122 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26123 if (SWIG_arg_fail(1)) SWIG_fail;
26124 {
26125 PyThreadState* __tstate = wxPyBeginAllowThreads();
26126 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
26127
26128 wxPyEndAllowThreads(__tstate);
26129 if (PyErr_Occurred()) SWIG_fail;
26130 }
26131 {
26132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26133 }
26134 return resultobj;
26135 fail:
26136 return NULL;
26137 }
26138
26139
26140 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
26141 PyObject *resultobj = NULL;
26142 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26143 bool result;
26144 PyObject * obj0 = 0 ;
26145 char *kwnames[] = {
26146 (char *) "self", NULL
26147 };
26148
26149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
26150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26151 if (SWIG_arg_fail(1)) SWIG_fail;
26152 {
26153 PyThreadState* __tstate = wxPyBeginAllowThreads();
26154 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
26155
26156 wxPyEndAllowThreads(__tstate);
26157 if (PyErr_Occurred()) SWIG_fail;
26158 }
26159 {
26160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26161 }
26162 return resultobj;
26163 fail:
26164 return NULL;
26165 }
26166
26167
26168 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
26169 PyObject *resultobj = NULL;
26170 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26171 bool result;
26172 PyObject * obj0 = 0 ;
26173 char *kwnames[] = {
26174 (char *) "self", NULL
26175 };
26176
26177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
26178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26179 if (SWIG_arg_fail(1)) SWIG_fail;
26180 {
26181 PyThreadState* __tstate = wxPyBeginAllowThreads();
26182 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
26183
26184 wxPyEndAllowThreads(__tstate);
26185 if (PyErr_Occurred()) SWIG_fail;
26186 }
26187 {
26188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26189 }
26190 return resultobj;
26191 fail:
26192 return NULL;
26193 }
26194
26195
26196 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
26197 PyObject *resultobj = NULL;
26198 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26199 wxTimeSpan *arg2 = 0 ;
26200 bool result;
26201 PyObject * obj0 = 0 ;
26202 PyObject * obj1 = 0 ;
26203 char *kwnames[] = {
26204 (char *) "self",(char *) "ts", NULL
26205 };
26206
26207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
26208 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26209 if (SWIG_arg_fail(1)) SWIG_fail;
26210 {
26211 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26212 if (SWIG_arg_fail(2)) SWIG_fail;
26213 if (arg2 == NULL) {
26214 SWIG_null_ref("wxTimeSpan");
26215 }
26216 if (SWIG_arg_fail(2)) SWIG_fail;
26217 }
26218 {
26219 PyThreadState* __tstate = wxPyBeginAllowThreads();
26220 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
26221
26222 wxPyEndAllowThreads(__tstate);
26223 if (PyErr_Occurred()) SWIG_fail;
26224 }
26225 {
26226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26227 }
26228 return resultobj;
26229 fail:
26230 return NULL;
26231 }
26232
26233
26234 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
26235 PyObject *resultobj = NULL;
26236 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26237 wxTimeSpan *arg2 = 0 ;
26238 bool result;
26239 PyObject * obj0 = 0 ;
26240 PyObject * obj1 = 0 ;
26241 char *kwnames[] = {
26242 (char *) "self",(char *) "ts", NULL
26243 };
26244
26245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
26246 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26247 if (SWIG_arg_fail(1)) SWIG_fail;
26248 {
26249 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26250 if (SWIG_arg_fail(2)) SWIG_fail;
26251 if (arg2 == NULL) {
26252 SWIG_null_ref("wxTimeSpan");
26253 }
26254 if (SWIG_arg_fail(2)) SWIG_fail;
26255 }
26256 {
26257 PyThreadState* __tstate = wxPyBeginAllowThreads();
26258 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
26259
26260 wxPyEndAllowThreads(__tstate);
26261 if (PyErr_Occurred()) SWIG_fail;
26262 }
26263 {
26264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26265 }
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
26273 PyObject *resultobj = NULL;
26274 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26275 wxTimeSpan *arg2 = 0 ;
26276 bool result;
26277 PyObject * obj0 = 0 ;
26278 PyObject * obj1 = 0 ;
26279 char *kwnames[] = {
26280 (char *) "self",(char *) "t", NULL
26281 };
26282
26283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
26284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26285 if (SWIG_arg_fail(1)) SWIG_fail;
26286 {
26287 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26288 if (SWIG_arg_fail(2)) SWIG_fail;
26289 if (arg2 == NULL) {
26290 SWIG_null_ref("wxTimeSpan");
26291 }
26292 if (SWIG_arg_fail(2)) SWIG_fail;
26293 }
26294 {
26295 PyThreadState* __tstate = wxPyBeginAllowThreads();
26296 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
26297
26298 wxPyEndAllowThreads(__tstate);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 {
26302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26303 }
26304 return resultobj;
26305 fail:
26306 return NULL;
26307 }
26308
26309
26310 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
26311 PyObject *resultobj = NULL;
26312 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26313 int result;
26314 PyObject * obj0 = 0 ;
26315 char *kwnames[] = {
26316 (char *) "self", NULL
26317 };
26318
26319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
26320 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26321 if (SWIG_arg_fail(1)) SWIG_fail;
26322 {
26323 PyThreadState* __tstate = wxPyBeginAllowThreads();
26324 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
26325
26326 wxPyEndAllowThreads(__tstate);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 {
26330 resultobj = SWIG_From_int(static_cast<int >(result));
26331 }
26332 return resultobj;
26333 fail:
26334 return NULL;
26335 }
26336
26337
26338 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
26339 PyObject *resultobj = NULL;
26340 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26341 int result;
26342 PyObject * obj0 = 0 ;
26343 char *kwnames[] = {
26344 (char *) "self", NULL
26345 };
26346
26347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
26348 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26349 if (SWIG_arg_fail(1)) SWIG_fail;
26350 {
26351 PyThreadState* __tstate = wxPyBeginAllowThreads();
26352 result = (int)((wxTimeSpan const *)arg1)->GetDays();
26353
26354 wxPyEndAllowThreads(__tstate);
26355 if (PyErr_Occurred()) SWIG_fail;
26356 }
26357 {
26358 resultobj = SWIG_From_int(static_cast<int >(result));
26359 }
26360 return resultobj;
26361 fail:
26362 return NULL;
26363 }
26364
26365
26366 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj = NULL;
26368 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26369 int result;
26370 PyObject * obj0 = 0 ;
26371 char *kwnames[] = {
26372 (char *) "self", NULL
26373 };
26374
26375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
26376 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26377 if (SWIG_arg_fail(1)) SWIG_fail;
26378 {
26379 PyThreadState* __tstate = wxPyBeginAllowThreads();
26380 result = (int)((wxTimeSpan const *)arg1)->GetHours();
26381
26382 wxPyEndAllowThreads(__tstate);
26383 if (PyErr_Occurred()) SWIG_fail;
26384 }
26385 {
26386 resultobj = SWIG_From_int(static_cast<int >(result));
26387 }
26388 return resultobj;
26389 fail:
26390 return NULL;
26391 }
26392
26393
26394 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
26395 PyObject *resultobj = NULL;
26396 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26397 int result;
26398 PyObject * obj0 = 0 ;
26399 char *kwnames[] = {
26400 (char *) "self", NULL
26401 };
26402
26403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
26404 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26405 if (SWIG_arg_fail(1)) SWIG_fail;
26406 {
26407 PyThreadState* __tstate = wxPyBeginAllowThreads();
26408 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
26409
26410 wxPyEndAllowThreads(__tstate);
26411 if (PyErr_Occurred()) SWIG_fail;
26412 }
26413 {
26414 resultobj = SWIG_From_int(static_cast<int >(result));
26415 }
26416 return resultobj;
26417 fail:
26418 return NULL;
26419 }
26420
26421
26422 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
26423 PyObject *resultobj = NULL;
26424 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26425 wxLongLong result;
26426 PyObject * obj0 = 0 ;
26427 char *kwnames[] = {
26428 (char *) "self", NULL
26429 };
26430
26431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
26432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26433 if (SWIG_arg_fail(1)) SWIG_fail;
26434 {
26435 PyThreadState* __tstate = wxPyBeginAllowThreads();
26436 result = ((wxTimeSpan const *)arg1)->GetSeconds();
26437
26438 wxPyEndAllowThreads(__tstate);
26439 if (PyErr_Occurred()) SWIG_fail;
26440 }
26441 {
26442 PyObject *hi, *lo, *shifter, *shifted;
26443 hi = PyLong_FromLong( (&result)->GetHi() );
26444 lo = PyLong_FromLong( (&result)->GetLo() );
26445 shifter = PyLong_FromLong(32);
26446 shifted = PyNumber_Lshift(hi, shifter);
26447 resultobj = PyNumber_Or(shifted, lo);
26448 Py_DECREF(hi);
26449 Py_DECREF(lo);
26450 Py_DECREF(shifter);
26451 Py_DECREF(shifted);
26452 }
26453 return resultobj;
26454 fail:
26455 return NULL;
26456 }
26457
26458
26459 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
26460 PyObject *resultobj = NULL;
26461 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26462 wxLongLong result;
26463 PyObject * obj0 = 0 ;
26464 char *kwnames[] = {
26465 (char *) "self", NULL
26466 };
26467
26468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
26469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26470 if (SWIG_arg_fail(1)) SWIG_fail;
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
26474
26475 wxPyEndAllowThreads(__tstate);
26476 if (PyErr_Occurred()) SWIG_fail;
26477 }
26478 {
26479 PyObject *hi, *lo, *shifter, *shifted;
26480 hi = PyLong_FromLong( (&result)->GetHi() );
26481 lo = PyLong_FromLong( (&result)->GetLo() );
26482 shifter = PyLong_FromLong(32);
26483 shifted = PyNumber_Lshift(hi, shifter);
26484 resultobj = PyNumber_Or(shifted, lo);
26485 Py_DECREF(hi);
26486 Py_DECREF(lo);
26487 Py_DECREF(shifter);
26488 Py_DECREF(shifted);
26489 }
26490 return resultobj;
26491 fail:
26492 return NULL;
26493 }
26494
26495
26496 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
26497 PyObject *resultobj = NULL;
26498 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26499 wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ;
26500 wxString *arg2 = (wxString *) &arg2_defvalue ;
26501 wxString result;
26502 bool temp2 = false ;
26503 PyObject * obj0 = 0 ;
26504 PyObject * obj1 = 0 ;
26505 char *kwnames[] = {
26506 (char *) "self",(char *) "format", NULL
26507 };
26508
26509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
26510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26511 if (SWIG_arg_fail(1)) SWIG_fail;
26512 if (obj1) {
26513 {
26514 arg2 = wxString_in_helper(obj1);
26515 if (arg2 == NULL) SWIG_fail;
26516 temp2 = true;
26517 }
26518 }
26519 {
26520 PyThreadState* __tstate = wxPyBeginAllowThreads();
26521 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
26522
26523 wxPyEndAllowThreads(__tstate);
26524 if (PyErr_Occurred()) SWIG_fail;
26525 }
26526 {
26527 #if wxUSE_UNICODE
26528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26529 #else
26530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26531 #endif
26532 }
26533 {
26534 if (temp2)
26535 delete arg2;
26536 }
26537 return resultobj;
26538 fail:
26539 {
26540 if (temp2)
26541 delete arg2;
26542 }
26543 return NULL;
26544 }
26545
26546
26547 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
26548 PyObject *obj;
26549 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26550 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
26551 Py_INCREF(obj);
26552 return Py_BuildValue((char *)"");
26553 }
26554 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
26555 PyObject *resultobj = NULL;
26556 int arg1 = (int) 0 ;
26557 int arg2 = (int) 0 ;
26558 int arg3 = (int) 0 ;
26559 int arg4 = (int) 0 ;
26560 wxDateSpan *result;
26561 PyObject * obj0 = 0 ;
26562 PyObject * obj1 = 0 ;
26563 PyObject * obj2 = 0 ;
26564 PyObject * obj3 = 0 ;
26565 char *kwnames[] = {
26566 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
26567 };
26568
26569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26570 if (obj0) {
26571 {
26572 arg1 = static_cast<int >(SWIG_As_int(obj0));
26573 if (SWIG_arg_fail(1)) SWIG_fail;
26574 }
26575 }
26576 if (obj1) {
26577 {
26578 arg2 = static_cast<int >(SWIG_As_int(obj1));
26579 if (SWIG_arg_fail(2)) SWIG_fail;
26580 }
26581 }
26582 if (obj2) {
26583 {
26584 arg3 = static_cast<int >(SWIG_As_int(obj2));
26585 if (SWIG_arg_fail(3)) SWIG_fail;
26586 }
26587 }
26588 if (obj3) {
26589 {
26590 arg4 = static_cast<int >(SWIG_As_int(obj3));
26591 if (SWIG_arg_fail(4)) SWIG_fail;
26592 }
26593 }
26594 {
26595 PyThreadState* __tstate = wxPyBeginAllowThreads();
26596 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
26597
26598 wxPyEndAllowThreads(__tstate);
26599 if (PyErr_Occurred()) SWIG_fail;
26600 }
26601 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
26602 return resultobj;
26603 fail:
26604 return NULL;
26605 }
26606
26607
26608 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
26609 PyObject *resultobj = NULL;
26610 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26611 PyObject * obj0 = 0 ;
26612 char *kwnames[] = {
26613 (char *) "self", NULL
26614 };
26615
26616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
26617 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26618 if (SWIG_arg_fail(1)) SWIG_fail;
26619 {
26620 PyThreadState* __tstate = wxPyBeginAllowThreads();
26621 delete arg1;
26622
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 Py_INCREF(Py_None); resultobj = Py_None;
26627 return resultobj;
26628 fail:
26629 return NULL;
26630 }
26631
26632
26633 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
26634 PyObject *resultobj = NULL;
26635 int arg1 ;
26636 wxDateSpan result;
26637 PyObject * obj0 = 0 ;
26638 char *kwnames[] = {
26639 (char *) "days", NULL
26640 };
26641
26642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
26643 {
26644 arg1 = static_cast<int >(SWIG_As_int(obj0));
26645 if (SWIG_arg_fail(1)) SWIG_fail;
26646 }
26647 {
26648 PyThreadState* __tstate = wxPyBeginAllowThreads();
26649 result = wxDateSpan::Days(arg1);
26650
26651 wxPyEndAllowThreads(__tstate);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
26654 {
26655 wxDateSpan * resultptr;
26656 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26657 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26658 }
26659 return resultobj;
26660 fail:
26661 return NULL;
26662 }
26663
26664
26665 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
26666 PyObject *resultobj = NULL;
26667 wxDateSpan result;
26668 char *kwnames[] = {
26669 NULL
26670 };
26671
26672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
26673 {
26674 PyThreadState* __tstate = wxPyBeginAllowThreads();
26675 result = wxDateSpan::Day();
26676
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 {
26681 wxDateSpan * resultptr;
26682 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26683 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26684 }
26685 return resultobj;
26686 fail:
26687 return NULL;
26688 }
26689
26690
26691 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
26692 PyObject *resultobj = NULL;
26693 int arg1 ;
26694 wxDateSpan result;
26695 PyObject * obj0 = 0 ;
26696 char *kwnames[] = {
26697 (char *) "weeks", NULL
26698 };
26699
26700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
26701 {
26702 arg1 = static_cast<int >(SWIG_As_int(obj0));
26703 if (SWIG_arg_fail(1)) SWIG_fail;
26704 }
26705 {
26706 PyThreadState* __tstate = wxPyBeginAllowThreads();
26707 result = wxDateSpan::Weeks(arg1);
26708
26709 wxPyEndAllowThreads(__tstate);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 }
26712 {
26713 wxDateSpan * resultptr;
26714 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26715 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26716 }
26717 return resultobj;
26718 fail:
26719 return NULL;
26720 }
26721
26722
26723 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
26724 PyObject *resultobj = NULL;
26725 wxDateSpan result;
26726 char *kwnames[] = {
26727 NULL
26728 };
26729
26730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
26731 {
26732 PyThreadState* __tstate = wxPyBeginAllowThreads();
26733 result = wxDateSpan::Week();
26734
26735 wxPyEndAllowThreads(__tstate);
26736 if (PyErr_Occurred()) SWIG_fail;
26737 }
26738 {
26739 wxDateSpan * resultptr;
26740 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26741 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26742 }
26743 return resultobj;
26744 fail:
26745 return NULL;
26746 }
26747
26748
26749 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
26750 PyObject *resultobj = NULL;
26751 int arg1 ;
26752 wxDateSpan result;
26753 PyObject * obj0 = 0 ;
26754 char *kwnames[] = {
26755 (char *) "mon", NULL
26756 };
26757
26758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
26759 {
26760 arg1 = static_cast<int >(SWIG_As_int(obj0));
26761 if (SWIG_arg_fail(1)) SWIG_fail;
26762 }
26763 {
26764 PyThreadState* __tstate = wxPyBeginAllowThreads();
26765 result = wxDateSpan::Months(arg1);
26766
26767 wxPyEndAllowThreads(__tstate);
26768 if (PyErr_Occurred()) SWIG_fail;
26769 }
26770 {
26771 wxDateSpan * resultptr;
26772 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26774 }
26775 return resultobj;
26776 fail:
26777 return NULL;
26778 }
26779
26780
26781 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
26782 PyObject *resultobj = NULL;
26783 wxDateSpan result;
26784 char *kwnames[] = {
26785 NULL
26786 };
26787
26788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
26789 {
26790 PyThreadState* __tstate = wxPyBeginAllowThreads();
26791 result = wxDateSpan::Month();
26792
26793 wxPyEndAllowThreads(__tstate);
26794 if (PyErr_Occurred()) SWIG_fail;
26795 }
26796 {
26797 wxDateSpan * resultptr;
26798 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26800 }
26801 return resultobj;
26802 fail:
26803 return NULL;
26804 }
26805
26806
26807 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
26808 PyObject *resultobj = NULL;
26809 int arg1 ;
26810 wxDateSpan result;
26811 PyObject * obj0 = 0 ;
26812 char *kwnames[] = {
26813 (char *) "years", NULL
26814 };
26815
26816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
26817 {
26818 arg1 = static_cast<int >(SWIG_As_int(obj0));
26819 if (SWIG_arg_fail(1)) SWIG_fail;
26820 }
26821 {
26822 PyThreadState* __tstate = wxPyBeginAllowThreads();
26823 result = wxDateSpan::Years(arg1);
26824
26825 wxPyEndAllowThreads(__tstate);
26826 if (PyErr_Occurred()) SWIG_fail;
26827 }
26828 {
26829 wxDateSpan * resultptr;
26830 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26831 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26832 }
26833 return resultobj;
26834 fail:
26835 return NULL;
26836 }
26837
26838
26839 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
26840 PyObject *resultobj = NULL;
26841 wxDateSpan result;
26842 char *kwnames[] = {
26843 NULL
26844 };
26845
26846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
26847 {
26848 PyThreadState* __tstate = wxPyBeginAllowThreads();
26849 result = wxDateSpan::Year();
26850
26851 wxPyEndAllowThreads(__tstate);
26852 if (PyErr_Occurred()) SWIG_fail;
26853 }
26854 {
26855 wxDateSpan * resultptr;
26856 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26857 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26858 }
26859 return resultobj;
26860 fail:
26861 return NULL;
26862 }
26863
26864
26865 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
26866 PyObject *resultobj = NULL;
26867 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26868 int arg2 ;
26869 wxDateSpan *result;
26870 PyObject * obj0 = 0 ;
26871 PyObject * obj1 = 0 ;
26872 char *kwnames[] = {
26873 (char *) "self",(char *) "n", NULL
26874 };
26875
26876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
26877 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26878 if (SWIG_arg_fail(1)) SWIG_fail;
26879 {
26880 arg2 = static_cast<int >(SWIG_As_int(obj1));
26881 if (SWIG_arg_fail(2)) SWIG_fail;
26882 }
26883 {
26884 PyThreadState* __tstate = wxPyBeginAllowThreads();
26885 {
26886 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
26887 result = (wxDateSpan *) &_result_ref;
26888 }
26889
26890 wxPyEndAllowThreads(__tstate);
26891 if (PyErr_Occurred()) SWIG_fail;
26892 }
26893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26894 return resultobj;
26895 fail:
26896 return NULL;
26897 }
26898
26899
26900 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
26901 PyObject *resultobj = NULL;
26902 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26903 int arg2 ;
26904 wxDateSpan *result;
26905 PyObject * obj0 = 0 ;
26906 PyObject * obj1 = 0 ;
26907 char *kwnames[] = {
26908 (char *) "self",(char *) "n", NULL
26909 };
26910
26911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
26912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26913 if (SWIG_arg_fail(1)) SWIG_fail;
26914 {
26915 arg2 = static_cast<int >(SWIG_As_int(obj1));
26916 if (SWIG_arg_fail(2)) SWIG_fail;
26917 }
26918 {
26919 PyThreadState* __tstate = wxPyBeginAllowThreads();
26920 {
26921 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
26922 result = (wxDateSpan *) &_result_ref;
26923 }
26924
26925 wxPyEndAllowThreads(__tstate);
26926 if (PyErr_Occurred()) SWIG_fail;
26927 }
26928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26929 return resultobj;
26930 fail:
26931 return NULL;
26932 }
26933
26934
26935 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
26936 PyObject *resultobj = NULL;
26937 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26938 int arg2 ;
26939 wxDateSpan *result;
26940 PyObject * obj0 = 0 ;
26941 PyObject * obj1 = 0 ;
26942 char *kwnames[] = {
26943 (char *) "self",(char *) "n", NULL
26944 };
26945
26946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
26947 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26948 if (SWIG_arg_fail(1)) SWIG_fail;
26949 {
26950 arg2 = static_cast<int >(SWIG_As_int(obj1));
26951 if (SWIG_arg_fail(2)) SWIG_fail;
26952 }
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 {
26956 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
26957 result = (wxDateSpan *) &_result_ref;
26958 }
26959
26960 wxPyEndAllowThreads(__tstate);
26961 if (PyErr_Occurred()) SWIG_fail;
26962 }
26963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26964 return resultobj;
26965 fail:
26966 return NULL;
26967 }
26968
26969
26970 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
26971 PyObject *resultobj = NULL;
26972 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26973 int arg2 ;
26974 wxDateSpan *result;
26975 PyObject * obj0 = 0 ;
26976 PyObject * obj1 = 0 ;
26977 char *kwnames[] = {
26978 (char *) "self",(char *) "n", NULL
26979 };
26980
26981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
26982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26983 if (SWIG_arg_fail(1)) SWIG_fail;
26984 {
26985 arg2 = static_cast<int >(SWIG_As_int(obj1));
26986 if (SWIG_arg_fail(2)) SWIG_fail;
26987 }
26988 {
26989 PyThreadState* __tstate = wxPyBeginAllowThreads();
26990 {
26991 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
26992 result = (wxDateSpan *) &_result_ref;
26993 }
26994
26995 wxPyEndAllowThreads(__tstate);
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26999 return resultobj;
27000 fail:
27001 return NULL;
27002 }
27003
27004
27005 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
27006 PyObject *resultobj = NULL;
27007 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27008 int result;
27009 PyObject * obj0 = 0 ;
27010 char *kwnames[] = {
27011 (char *) "self", NULL
27012 };
27013
27014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
27015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27016 if (SWIG_arg_fail(1)) SWIG_fail;
27017 {
27018 PyThreadState* __tstate = wxPyBeginAllowThreads();
27019 result = (int)((wxDateSpan const *)arg1)->GetYears();
27020
27021 wxPyEndAllowThreads(__tstate);
27022 if (PyErr_Occurred()) SWIG_fail;
27023 }
27024 {
27025 resultobj = SWIG_From_int(static_cast<int >(result));
27026 }
27027 return resultobj;
27028 fail:
27029 return NULL;
27030 }
27031
27032
27033 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
27034 PyObject *resultobj = NULL;
27035 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27036 int result;
27037 PyObject * obj0 = 0 ;
27038 char *kwnames[] = {
27039 (char *) "self", NULL
27040 };
27041
27042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
27043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27044 if (SWIG_arg_fail(1)) SWIG_fail;
27045 {
27046 PyThreadState* __tstate = wxPyBeginAllowThreads();
27047 result = (int)((wxDateSpan const *)arg1)->GetMonths();
27048
27049 wxPyEndAllowThreads(__tstate);
27050 if (PyErr_Occurred()) SWIG_fail;
27051 }
27052 {
27053 resultobj = SWIG_From_int(static_cast<int >(result));
27054 }
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
27062 PyObject *resultobj = NULL;
27063 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27064 int result;
27065 PyObject * obj0 = 0 ;
27066 char *kwnames[] = {
27067 (char *) "self", NULL
27068 };
27069
27070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
27071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27072 if (SWIG_arg_fail(1)) SWIG_fail;
27073 {
27074 PyThreadState* __tstate = wxPyBeginAllowThreads();
27075 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
27076
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 {
27081 resultobj = SWIG_From_int(static_cast<int >(result));
27082 }
27083 return resultobj;
27084 fail:
27085 return NULL;
27086 }
27087
27088
27089 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
27090 PyObject *resultobj = NULL;
27091 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27092 int result;
27093 PyObject * obj0 = 0 ;
27094 char *kwnames[] = {
27095 (char *) "self", NULL
27096 };
27097
27098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
27099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27100 if (SWIG_arg_fail(1)) SWIG_fail;
27101 {
27102 PyThreadState* __tstate = wxPyBeginAllowThreads();
27103 result = (int)((wxDateSpan const *)arg1)->GetDays();
27104
27105 wxPyEndAllowThreads(__tstate);
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
27108 {
27109 resultobj = SWIG_From_int(static_cast<int >(result));
27110 }
27111 return resultobj;
27112 fail:
27113 return NULL;
27114 }
27115
27116
27117 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
27118 PyObject *resultobj = NULL;
27119 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27120 int result;
27121 PyObject * obj0 = 0 ;
27122 char *kwnames[] = {
27123 (char *) "self", NULL
27124 };
27125
27126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
27127 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27128 if (SWIG_arg_fail(1)) SWIG_fail;
27129 {
27130 PyThreadState* __tstate = wxPyBeginAllowThreads();
27131 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
27132
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 {
27137 resultobj = SWIG_From_int(static_cast<int >(result));
27138 }
27139 return resultobj;
27140 fail:
27141 return NULL;
27142 }
27143
27144
27145 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
27146 PyObject *resultobj = NULL;
27147 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27148 wxDateSpan *arg2 = 0 ;
27149 wxDateSpan *result;
27150 PyObject * obj0 = 0 ;
27151 PyObject * obj1 = 0 ;
27152 char *kwnames[] = {
27153 (char *) "self",(char *) "other", NULL
27154 };
27155
27156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
27157 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27158 if (SWIG_arg_fail(1)) SWIG_fail;
27159 {
27160 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27161 if (SWIG_arg_fail(2)) SWIG_fail;
27162 if (arg2 == NULL) {
27163 SWIG_null_ref("wxDateSpan");
27164 }
27165 if (SWIG_arg_fail(2)) SWIG_fail;
27166 }
27167 {
27168 PyThreadState* __tstate = wxPyBeginAllowThreads();
27169 {
27170 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
27171 result = (wxDateSpan *) &_result_ref;
27172 }
27173
27174 wxPyEndAllowThreads(__tstate);
27175 if (PyErr_Occurred()) SWIG_fail;
27176 }
27177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27178 return resultobj;
27179 fail:
27180 return NULL;
27181 }
27182
27183
27184 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
27185 PyObject *resultobj = NULL;
27186 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27187 wxDateSpan *arg2 = 0 ;
27188 wxDateSpan *result;
27189 PyObject * obj0 = 0 ;
27190 PyObject * obj1 = 0 ;
27191 char *kwnames[] = {
27192 (char *) "self",(char *) "other", NULL
27193 };
27194
27195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
27196 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27197 if (SWIG_arg_fail(1)) SWIG_fail;
27198 {
27199 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27200 if (SWIG_arg_fail(2)) SWIG_fail;
27201 if (arg2 == NULL) {
27202 SWIG_null_ref("wxDateSpan");
27203 }
27204 if (SWIG_arg_fail(2)) SWIG_fail;
27205 }
27206 {
27207 PyThreadState* __tstate = wxPyBeginAllowThreads();
27208 {
27209 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
27210 result = (wxDateSpan *) &_result_ref;
27211 }
27212
27213 wxPyEndAllowThreads(__tstate);
27214 if (PyErr_Occurred()) SWIG_fail;
27215 }
27216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27217 return resultobj;
27218 fail:
27219 return NULL;
27220 }
27221
27222
27223 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
27224 PyObject *resultobj = NULL;
27225 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27226 wxDateSpan *result;
27227 PyObject * obj0 = 0 ;
27228 char *kwnames[] = {
27229 (char *) "self", NULL
27230 };
27231
27232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
27233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27234 if (SWIG_arg_fail(1)) SWIG_fail;
27235 {
27236 PyThreadState* __tstate = wxPyBeginAllowThreads();
27237 {
27238 wxDateSpan &_result_ref = (arg1)->Neg();
27239 result = (wxDateSpan *) &_result_ref;
27240 }
27241
27242 wxPyEndAllowThreads(__tstate);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 }
27245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27246 return resultobj;
27247 fail:
27248 return NULL;
27249 }
27250
27251
27252 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
27253 PyObject *resultobj = NULL;
27254 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27255 int arg2 ;
27256 wxDateSpan *result;
27257 PyObject * obj0 = 0 ;
27258 PyObject * obj1 = 0 ;
27259 char *kwnames[] = {
27260 (char *) "self",(char *) "factor", NULL
27261 };
27262
27263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
27264 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27265 if (SWIG_arg_fail(1)) SWIG_fail;
27266 {
27267 arg2 = static_cast<int >(SWIG_As_int(obj1));
27268 if (SWIG_arg_fail(2)) SWIG_fail;
27269 }
27270 {
27271 PyThreadState* __tstate = wxPyBeginAllowThreads();
27272 {
27273 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
27274 result = (wxDateSpan *) &_result_ref;
27275 }
27276
27277 wxPyEndAllowThreads(__tstate);
27278 if (PyErr_Occurred()) SWIG_fail;
27279 }
27280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27281 return resultobj;
27282 fail:
27283 return NULL;
27284 }
27285
27286
27287 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
27288 PyObject *resultobj = NULL;
27289 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27290 wxDateSpan *arg2 = 0 ;
27291 wxDateSpan *result;
27292 PyObject * obj0 = 0 ;
27293 PyObject * obj1 = 0 ;
27294 char *kwnames[] = {
27295 (char *) "self",(char *) "other", NULL
27296 };
27297
27298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
27299 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27300 if (SWIG_arg_fail(1)) SWIG_fail;
27301 {
27302 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27303 if (SWIG_arg_fail(2)) SWIG_fail;
27304 if (arg2 == NULL) {
27305 SWIG_null_ref("wxDateSpan");
27306 }
27307 if (SWIG_arg_fail(2)) SWIG_fail;
27308 }
27309 {
27310 PyThreadState* __tstate = wxPyBeginAllowThreads();
27311 {
27312 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
27313 result = (wxDateSpan *) &_result_ref;
27314 }
27315
27316 wxPyEndAllowThreads(__tstate);
27317 if (PyErr_Occurred()) SWIG_fail;
27318 }
27319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27320 return resultobj;
27321 fail:
27322 return NULL;
27323 }
27324
27325
27326 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
27327 PyObject *resultobj = NULL;
27328 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27329 wxDateSpan *arg2 = 0 ;
27330 wxDateSpan *result;
27331 PyObject * obj0 = 0 ;
27332 PyObject * obj1 = 0 ;
27333 char *kwnames[] = {
27334 (char *) "self",(char *) "other", NULL
27335 };
27336
27337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
27338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27339 if (SWIG_arg_fail(1)) SWIG_fail;
27340 {
27341 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27342 if (SWIG_arg_fail(2)) SWIG_fail;
27343 if (arg2 == NULL) {
27344 SWIG_null_ref("wxDateSpan");
27345 }
27346 if (SWIG_arg_fail(2)) SWIG_fail;
27347 }
27348 {
27349 PyThreadState* __tstate = wxPyBeginAllowThreads();
27350 {
27351 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
27352 result = (wxDateSpan *) &_result_ref;
27353 }
27354
27355 wxPyEndAllowThreads(__tstate);
27356 if (PyErr_Occurred()) SWIG_fail;
27357 }
27358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27359 return resultobj;
27360 fail:
27361 return NULL;
27362 }
27363
27364
27365 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
27366 PyObject *resultobj = NULL;
27367 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27368 wxDateSpan *result;
27369 PyObject * obj0 = 0 ;
27370 char *kwnames[] = {
27371 (char *) "self", NULL
27372 };
27373
27374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
27375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27376 if (SWIG_arg_fail(1)) SWIG_fail;
27377 {
27378 PyThreadState* __tstate = wxPyBeginAllowThreads();
27379 {
27380 wxDateSpan &_result_ref = (arg1)->operator -();
27381 result = (wxDateSpan *) &_result_ref;
27382 }
27383
27384 wxPyEndAllowThreads(__tstate);
27385 if (PyErr_Occurred()) SWIG_fail;
27386 }
27387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27388 return resultobj;
27389 fail:
27390 return NULL;
27391 }
27392
27393
27394 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
27395 PyObject *resultobj = NULL;
27396 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27397 int arg2 ;
27398 wxDateSpan *result;
27399 PyObject * obj0 = 0 ;
27400 PyObject * obj1 = 0 ;
27401 char *kwnames[] = {
27402 (char *) "self",(char *) "factor", NULL
27403 };
27404
27405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
27406 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27407 if (SWIG_arg_fail(1)) SWIG_fail;
27408 {
27409 arg2 = static_cast<int >(SWIG_As_int(obj1));
27410 if (SWIG_arg_fail(2)) SWIG_fail;
27411 }
27412 {
27413 PyThreadState* __tstate = wxPyBeginAllowThreads();
27414 {
27415 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
27416 result = (wxDateSpan *) &_result_ref;
27417 }
27418
27419 wxPyEndAllowThreads(__tstate);
27420 if (PyErr_Occurred()) SWIG_fail;
27421 }
27422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27423 return resultobj;
27424 fail:
27425 return NULL;
27426 }
27427
27428
27429 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
27430 PyObject *resultobj = NULL;
27431 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27432 wxDateSpan *arg2 = 0 ;
27433 wxDateSpan result;
27434 PyObject * obj0 = 0 ;
27435 PyObject * obj1 = 0 ;
27436 char *kwnames[] = {
27437 (char *) "self",(char *) "other", NULL
27438 };
27439
27440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
27441 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27442 if (SWIG_arg_fail(1)) SWIG_fail;
27443 {
27444 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27445 if (SWIG_arg_fail(2)) SWIG_fail;
27446 if (arg2 == NULL) {
27447 SWIG_null_ref("wxDateSpan");
27448 }
27449 if (SWIG_arg_fail(2)) SWIG_fail;
27450 }
27451 {
27452 PyThreadState* __tstate = wxPyBeginAllowThreads();
27453 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
27454
27455 wxPyEndAllowThreads(__tstate);
27456 if (PyErr_Occurred()) SWIG_fail;
27457 }
27458 {
27459 wxDateSpan * resultptr;
27460 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27461 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27462 }
27463 return resultobj;
27464 fail:
27465 return NULL;
27466 }
27467
27468
27469 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
27470 PyObject *resultobj = NULL;
27471 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27472 wxDateSpan *arg2 = 0 ;
27473 wxDateSpan result;
27474 PyObject * obj0 = 0 ;
27475 PyObject * obj1 = 0 ;
27476 char *kwnames[] = {
27477 (char *) "self",(char *) "other", NULL
27478 };
27479
27480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
27481 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27482 if (SWIG_arg_fail(1)) SWIG_fail;
27483 {
27484 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27485 if (SWIG_arg_fail(2)) SWIG_fail;
27486 if (arg2 == NULL) {
27487 SWIG_null_ref("wxDateSpan");
27488 }
27489 if (SWIG_arg_fail(2)) SWIG_fail;
27490 }
27491 {
27492 PyThreadState* __tstate = wxPyBeginAllowThreads();
27493 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
27494
27495 wxPyEndAllowThreads(__tstate);
27496 if (PyErr_Occurred()) SWIG_fail;
27497 }
27498 {
27499 wxDateSpan * resultptr;
27500 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27501 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27502 }
27503 return resultobj;
27504 fail:
27505 return NULL;
27506 }
27507
27508
27509 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
27510 PyObject *resultobj = NULL;
27511 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27512 int arg2 ;
27513 wxDateSpan result;
27514 PyObject * obj0 = 0 ;
27515 PyObject * obj1 = 0 ;
27516 char *kwnames[] = {
27517 (char *) "self",(char *) "n", NULL
27518 };
27519
27520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
27521 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27522 if (SWIG_arg_fail(1)) SWIG_fail;
27523 {
27524 arg2 = static_cast<int >(SWIG_As_int(obj1));
27525 if (SWIG_arg_fail(2)) SWIG_fail;
27526 }
27527 {
27528 PyThreadState* __tstate = wxPyBeginAllowThreads();
27529 result = wxDateSpan___mul__(arg1,arg2);
27530
27531 wxPyEndAllowThreads(__tstate);
27532 if (PyErr_Occurred()) SWIG_fail;
27533 }
27534 {
27535 wxDateSpan * resultptr;
27536 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27537 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27538 }
27539 return resultobj;
27540 fail:
27541 return NULL;
27542 }
27543
27544
27545 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
27546 PyObject *resultobj = NULL;
27547 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27548 int arg2 ;
27549 wxDateSpan result;
27550 PyObject * obj0 = 0 ;
27551 PyObject * obj1 = 0 ;
27552 char *kwnames[] = {
27553 (char *) "self",(char *) "n", NULL
27554 };
27555
27556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
27557 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27558 if (SWIG_arg_fail(1)) SWIG_fail;
27559 {
27560 arg2 = static_cast<int >(SWIG_As_int(obj1));
27561 if (SWIG_arg_fail(2)) SWIG_fail;
27562 }
27563 {
27564 PyThreadState* __tstate = wxPyBeginAllowThreads();
27565 result = wxDateSpan___rmul__(arg1,arg2);
27566
27567 wxPyEndAllowThreads(__tstate);
27568 if (PyErr_Occurred()) SWIG_fail;
27569 }
27570 {
27571 wxDateSpan * resultptr;
27572 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27574 }
27575 return resultobj;
27576 fail:
27577 return NULL;
27578 }
27579
27580
27581 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
27582 PyObject *resultobj = NULL;
27583 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27584 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
27585 bool result;
27586 PyObject * obj0 = 0 ;
27587 PyObject * obj1 = 0 ;
27588 char *kwnames[] = {
27589 (char *) "self",(char *) "other", NULL
27590 };
27591
27592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
27593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27594 if (SWIG_arg_fail(1)) SWIG_fail;
27595 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27596 if (SWIG_arg_fail(2)) SWIG_fail;
27597 {
27598 PyThreadState* __tstate = wxPyBeginAllowThreads();
27599 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
27600
27601 wxPyEndAllowThreads(__tstate);
27602 if (PyErr_Occurred()) SWIG_fail;
27603 }
27604 {
27605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27606 }
27607 return resultobj;
27608 fail:
27609 return NULL;
27610 }
27611
27612
27613 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
27614 PyObject *resultobj = NULL;
27615 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27616 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
27617 bool result;
27618 PyObject * obj0 = 0 ;
27619 PyObject * obj1 = 0 ;
27620 char *kwnames[] = {
27621 (char *) "self",(char *) "other", NULL
27622 };
27623
27624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
27625 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27626 if (SWIG_arg_fail(1)) SWIG_fail;
27627 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27628 if (SWIG_arg_fail(2)) SWIG_fail;
27629 {
27630 PyThreadState* __tstate = wxPyBeginAllowThreads();
27631 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
27632
27633 wxPyEndAllowThreads(__tstate);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 {
27637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27638 }
27639 return resultobj;
27640 fail:
27641 return NULL;
27642 }
27643
27644
27645 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
27646 PyObject *obj;
27647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27648 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
27649 Py_INCREF(obj);
27650 return Py_BuildValue((char *)"");
27651 }
27652 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
27653 PyObject *resultobj = NULL;
27654 long result;
27655 char *kwnames[] = {
27656 NULL
27657 };
27658
27659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
27660 {
27661 PyThreadState* __tstate = wxPyBeginAllowThreads();
27662 result = (long)wxGetLocalTime();
27663
27664 wxPyEndAllowThreads(__tstate);
27665 if (PyErr_Occurred()) SWIG_fail;
27666 }
27667 {
27668 resultobj = SWIG_From_long(static_cast<long >(result));
27669 }
27670 return resultobj;
27671 fail:
27672 return NULL;
27673 }
27674
27675
27676 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
27677 PyObject *resultobj = NULL;
27678 long result;
27679 char *kwnames[] = {
27680 NULL
27681 };
27682
27683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
27684 {
27685 PyThreadState* __tstate = wxPyBeginAllowThreads();
27686 result = (long)wxGetUTCTime();
27687
27688 wxPyEndAllowThreads(__tstate);
27689 if (PyErr_Occurred()) SWIG_fail;
27690 }
27691 {
27692 resultobj = SWIG_From_long(static_cast<long >(result));
27693 }
27694 return resultobj;
27695 fail:
27696 return NULL;
27697 }
27698
27699
27700 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
27701 PyObject *resultobj = NULL;
27702 long result;
27703 char *kwnames[] = {
27704 NULL
27705 };
27706
27707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
27708 {
27709 PyThreadState* __tstate = wxPyBeginAllowThreads();
27710 result = (long)wxGetCurrentTime();
27711
27712 wxPyEndAllowThreads(__tstate);
27713 if (PyErr_Occurred()) SWIG_fail;
27714 }
27715 {
27716 resultobj = SWIG_From_long(static_cast<long >(result));
27717 }
27718 return resultobj;
27719 fail:
27720 return NULL;
27721 }
27722
27723
27724 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
27725 PyObject *resultobj = NULL;
27726 wxLongLong result;
27727 char *kwnames[] = {
27728 NULL
27729 };
27730
27731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
27732 {
27733 PyThreadState* __tstate = wxPyBeginAllowThreads();
27734 result = wxGetLocalTimeMillis();
27735
27736 wxPyEndAllowThreads(__tstate);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 {
27740 PyObject *hi, *lo, *shifter, *shifted;
27741 hi = PyLong_FromLong( (&result)->GetHi() );
27742 lo = PyLong_FromLong( (&result)->GetLo() );
27743 shifter = PyLong_FromLong(32);
27744 shifted = PyNumber_Lshift(hi, shifter);
27745 resultobj = PyNumber_Or(shifted, lo);
27746 Py_DECREF(hi);
27747 Py_DECREF(lo);
27748 Py_DECREF(shifter);
27749 Py_DECREF(shifted);
27750 }
27751 return resultobj;
27752 fail:
27753 return NULL;
27754 }
27755
27756
27757 static int _wrap_DefaultDateTime_set(PyObject *) {
27758 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
27759 return 1;
27760 }
27761
27762
27763 static PyObject *_wrap_DefaultDateTime_get(void) {
27764 PyObject *pyobj = NULL;
27765
27766 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
27767 return pyobj;
27768 }
27769
27770
27771 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27772 PyObject *resultobj = NULL;
27773 wxDataFormatId arg1 ;
27774 wxDataFormat *result;
27775 PyObject * obj0 = 0 ;
27776 char *kwnames[] = {
27777 (char *) "type", NULL
27778 };
27779
27780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
27781 {
27782 arg1 = static_cast<wxDataFormatId >(SWIG_As_int(obj0));
27783 if (SWIG_arg_fail(1)) SWIG_fail;
27784 }
27785 {
27786 PyThreadState* __tstate = wxPyBeginAllowThreads();
27787 result = (wxDataFormat *)new wxDataFormat(arg1);
27788
27789 wxPyEndAllowThreads(__tstate);
27790 if (PyErr_Occurred()) SWIG_fail;
27791 }
27792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
27793 return resultobj;
27794 fail:
27795 return NULL;
27796 }
27797
27798
27799 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27800 PyObject *resultobj = NULL;
27801 wxString *arg1 = 0 ;
27802 wxDataFormat *result;
27803 bool temp1 = false ;
27804 PyObject * obj0 = 0 ;
27805 char *kwnames[] = {
27806 (char *) "format", NULL
27807 };
27808
27809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
27810 {
27811 arg1 = wxString_in_helper(obj0);
27812 if (arg1 == NULL) SWIG_fail;
27813 temp1 = true;
27814 }
27815 {
27816 PyThreadState* __tstate = wxPyBeginAllowThreads();
27817 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
27818
27819 wxPyEndAllowThreads(__tstate);
27820 if (PyErr_Occurred()) SWIG_fail;
27821 }
27822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
27823 {
27824 if (temp1)
27825 delete arg1;
27826 }
27827 return resultobj;
27828 fail:
27829 {
27830 if (temp1)
27831 delete arg1;
27832 }
27833 return NULL;
27834 }
27835
27836
27837 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27838 PyObject *resultobj = NULL;
27839 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27840 PyObject * obj0 = 0 ;
27841 char *kwnames[] = {
27842 (char *) "self", NULL
27843 };
27844
27845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
27846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27847 if (SWIG_arg_fail(1)) SWIG_fail;
27848 {
27849 PyThreadState* __tstate = wxPyBeginAllowThreads();
27850 delete arg1;
27851
27852 wxPyEndAllowThreads(__tstate);
27853 if (PyErr_Occurred()) SWIG_fail;
27854 }
27855 Py_INCREF(Py_None); resultobj = Py_None;
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
27863 PyObject *resultobj = NULL;
27864 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27865 wxDataFormatId arg2 ;
27866 bool result;
27867 PyObject * obj0 = 0 ;
27868 PyObject * obj1 = 0 ;
27869
27870 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
27871 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27872 if (SWIG_arg_fail(1)) SWIG_fail;
27873 {
27874 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
27875 if (SWIG_arg_fail(2)) SWIG_fail;
27876 }
27877 {
27878 PyThreadState* __tstate = wxPyBeginAllowThreads();
27879 result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2);
27880
27881 wxPyEndAllowThreads(__tstate);
27882 if (PyErr_Occurred()) SWIG_fail;
27883 }
27884 {
27885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27886 }
27887 return resultobj;
27888 fail:
27889 return NULL;
27890 }
27891
27892
27893 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
27894 PyObject *resultobj = NULL;
27895 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27896 wxDataFormatId arg2 ;
27897 bool result;
27898 PyObject * obj0 = 0 ;
27899 PyObject * obj1 = 0 ;
27900
27901 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
27902 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27903 if (SWIG_arg_fail(1)) SWIG_fail;
27904 {
27905 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
27906 if (SWIG_arg_fail(2)) SWIG_fail;
27907 }
27908 {
27909 PyThreadState* __tstate = wxPyBeginAllowThreads();
27910 result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2);
27911
27912 wxPyEndAllowThreads(__tstate);
27913 if (PyErr_Occurred()) SWIG_fail;
27914 }
27915 {
27916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27917 }
27918 return resultobj;
27919 fail:
27920 return NULL;
27921 }
27922
27923
27924 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
27925 PyObject *resultobj = NULL;
27926 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27927 wxDataFormat *arg2 = 0 ;
27928 bool result;
27929 PyObject * obj0 = 0 ;
27930 PyObject * obj1 = 0 ;
27931
27932 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
27933 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27934 if (SWIG_arg_fail(1)) SWIG_fail;
27935 {
27936 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27937 if (SWIG_arg_fail(2)) SWIG_fail;
27938 if (arg2 == NULL) {
27939 SWIG_null_ref("wxDataFormat");
27940 }
27941 if (SWIG_arg_fail(2)) SWIG_fail;
27942 }
27943 {
27944 PyThreadState* __tstate = wxPyBeginAllowThreads();
27945 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
27946
27947 wxPyEndAllowThreads(__tstate);
27948 if (PyErr_Occurred()) SWIG_fail;
27949 }
27950 {
27951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27952 }
27953 return resultobj;
27954 fail:
27955 return NULL;
27956 }
27957
27958
27959 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
27960 int argc;
27961 PyObject *argv[3];
27962 int ii;
27963
27964 argc = PyObject_Length(args);
27965 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27966 argv[ii] = PyTuple_GetItem(args,ii);
27967 }
27968 if (argc == 2) {
27969 int _v;
27970 {
27971 void *ptr;
27972 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27973 _v = 0;
27974 PyErr_Clear();
27975 } else {
27976 _v = 1;
27977 }
27978 }
27979 if (_v) {
27980 {
27981 void *ptr = 0;
27982 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27983 _v = 0;
27984 PyErr_Clear();
27985 } else {
27986 _v = (ptr != 0);
27987 }
27988 }
27989 if (_v) {
27990 return _wrap_DataFormat___eq____SWIG_1(self,args);
27991 }
27992 }
27993 }
27994 if (argc == 2) {
27995 int _v;
27996 {
27997 void *ptr;
27998 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27999 _v = 0;
28000 PyErr_Clear();
28001 } else {
28002 _v = 1;
28003 }
28004 }
28005 if (_v) {
28006 _v = SWIG_Check_int(argv[1]);
28007 if (_v) {
28008 return _wrap_DataFormat___eq____SWIG_0(self,args);
28009 }
28010 }
28011 }
28012
28013 Py_INCREF(Py_NotImplemented);
28014 return Py_NotImplemented;
28015 }
28016
28017
28018 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
28019 PyObject *resultobj = NULL;
28020 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28021 wxDataFormat *arg2 = 0 ;
28022 bool result;
28023 PyObject * obj0 = 0 ;
28024 PyObject * obj1 = 0 ;
28025
28026 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
28027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28028 if (SWIG_arg_fail(1)) SWIG_fail;
28029 {
28030 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28031 if (SWIG_arg_fail(2)) SWIG_fail;
28032 if (arg2 == NULL) {
28033 SWIG_null_ref("wxDataFormat");
28034 }
28035 if (SWIG_arg_fail(2)) SWIG_fail;
28036 }
28037 {
28038 PyThreadState* __tstate = wxPyBeginAllowThreads();
28039 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
28040
28041 wxPyEndAllowThreads(__tstate);
28042 if (PyErr_Occurred()) SWIG_fail;
28043 }
28044 {
28045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28046 }
28047 return resultobj;
28048 fail:
28049 return NULL;
28050 }
28051
28052
28053 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
28054 int argc;
28055 PyObject *argv[3];
28056 int ii;
28057
28058 argc = PyObject_Length(args);
28059 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
28060 argv[ii] = PyTuple_GetItem(args,ii);
28061 }
28062 if (argc == 2) {
28063 int _v;
28064 {
28065 void *ptr;
28066 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28067 _v = 0;
28068 PyErr_Clear();
28069 } else {
28070 _v = 1;
28071 }
28072 }
28073 if (_v) {
28074 {
28075 void *ptr = 0;
28076 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28077 _v = 0;
28078 PyErr_Clear();
28079 } else {
28080 _v = (ptr != 0);
28081 }
28082 }
28083 if (_v) {
28084 return _wrap_DataFormat___ne____SWIG_1(self,args);
28085 }
28086 }
28087 }
28088 if (argc == 2) {
28089 int _v;
28090 {
28091 void *ptr;
28092 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28093 _v = 0;
28094 PyErr_Clear();
28095 } else {
28096 _v = 1;
28097 }
28098 }
28099 if (_v) {
28100 _v = SWIG_Check_int(argv[1]);
28101 if (_v) {
28102 return _wrap_DataFormat___ne____SWIG_0(self,args);
28103 }
28104 }
28105 }
28106
28107 Py_INCREF(Py_NotImplemented);
28108 return Py_NotImplemented;
28109 }
28110
28111
28112 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
28113 PyObject *resultobj = NULL;
28114 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28115 wxDataFormatId arg2 ;
28116 PyObject * obj0 = 0 ;
28117 PyObject * obj1 = 0 ;
28118 char *kwnames[] = {
28119 (char *) "self",(char *) "format", NULL
28120 };
28121
28122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
28123 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28124 if (SWIG_arg_fail(1)) SWIG_fail;
28125 {
28126 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
28127 if (SWIG_arg_fail(2)) SWIG_fail;
28128 }
28129 {
28130 PyThreadState* __tstate = wxPyBeginAllowThreads();
28131 (arg1)->SetType(arg2);
28132
28133 wxPyEndAllowThreads(__tstate);
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
28136 Py_INCREF(Py_None); resultobj = Py_None;
28137 return resultobj;
28138 fail:
28139 return NULL;
28140 }
28141
28142
28143 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
28144 PyObject *resultobj = NULL;
28145 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28146 wxDataFormatId result;
28147 PyObject * obj0 = 0 ;
28148 char *kwnames[] = {
28149 (char *) "self", NULL
28150 };
28151
28152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
28153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28154 if (SWIG_arg_fail(1)) SWIG_fail;
28155 {
28156 PyThreadState* __tstate = wxPyBeginAllowThreads();
28157 result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType();
28158
28159 wxPyEndAllowThreads(__tstate);
28160 if (PyErr_Occurred()) SWIG_fail;
28161 }
28162 resultobj = SWIG_From_int((result));
28163 return resultobj;
28164 fail:
28165 return NULL;
28166 }
28167
28168
28169 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
28170 PyObject *resultobj = NULL;
28171 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28172 wxString result;
28173 PyObject * obj0 = 0 ;
28174 char *kwnames[] = {
28175 (char *) "self", NULL
28176 };
28177
28178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
28179 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28180 if (SWIG_arg_fail(1)) SWIG_fail;
28181 {
28182 PyThreadState* __tstate = wxPyBeginAllowThreads();
28183 result = ((wxDataFormat const *)arg1)->GetId();
28184
28185 wxPyEndAllowThreads(__tstate);
28186 if (PyErr_Occurred()) SWIG_fail;
28187 }
28188 {
28189 #if wxUSE_UNICODE
28190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28191 #else
28192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28193 #endif
28194 }
28195 return resultobj;
28196 fail:
28197 return NULL;
28198 }
28199
28200
28201 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
28202 PyObject *resultobj = NULL;
28203 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28204 wxString *arg2 = 0 ;
28205 bool temp2 = false ;
28206 PyObject * obj0 = 0 ;
28207 PyObject * obj1 = 0 ;
28208 char *kwnames[] = {
28209 (char *) "self",(char *) "format", NULL
28210 };
28211
28212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
28213 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28214 if (SWIG_arg_fail(1)) SWIG_fail;
28215 {
28216 arg2 = wxString_in_helper(obj1);
28217 if (arg2 == NULL) SWIG_fail;
28218 temp2 = true;
28219 }
28220 {
28221 PyThreadState* __tstate = wxPyBeginAllowThreads();
28222 (arg1)->SetId((wxString const &)*arg2);
28223
28224 wxPyEndAllowThreads(__tstate);
28225 if (PyErr_Occurred()) SWIG_fail;
28226 }
28227 Py_INCREF(Py_None); resultobj = Py_None;
28228 {
28229 if (temp2)
28230 delete arg2;
28231 }
28232 return resultobj;
28233 fail:
28234 {
28235 if (temp2)
28236 delete arg2;
28237 }
28238 return NULL;
28239 }
28240
28241
28242 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
28243 PyObject *obj;
28244 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28245 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
28246 Py_INCREF(obj);
28247 return Py_BuildValue((char *)"");
28248 }
28249 static int _wrap_FormatInvalid_set(PyObject *) {
28250 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
28251 return 1;
28252 }
28253
28254
28255 static PyObject *_wrap_FormatInvalid_get(void) {
28256 PyObject *pyobj = NULL;
28257
28258 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
28259 return pyobj;
28260 }
28261
28262
28263 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
28264 PyObject *resultobj = NULL;
28265 wxDataObject *arg1 = (wxDataObject *) 0 ;
28266 PyObject * obj0 = 0 ;
28267 char *kwnames[] = {
28268 (char *) "self", NULL
28269 };
28270
28271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
28272 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28273 if (SWIG_arg_fail(1)) SWIG_fail;
28274 {
28275 PyThreadState* __tstate = wxPyBeginAllowThreads();
28276 delete arg1;
28277
28278 wxPyEndAllowThreads(__tstate);
28279 if (PyErr_Occurred()) SWIG_fail;
28280 }
28281 Py_INCREF(Py_None); resultobj = Py_None;
28282 return resultobj;
28283 fail:
28284 return NULL;
28285 }
28286
28287
28288 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28289 PyObject *resultobj = NULL;
28290 wxDataObject *arg1 = (wxDataObject *) 0 ;
28291 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28292 SwigValueWrapper<wxDataFormat > result;
28293 PyObject * obj0 = 0 ;
28294 PyObject * obj1 = 0 ;
28295 char *kwnames[] = {
28296 (char *) "self",(char *) "dir", NULL
28297 };
28298
28299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
28300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28301 if (SWIG_arg_fail(1)) SWIG_fail;
28302 if (obj1) {
28303 {
28304 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28305 if (SWIG_arg_fail(2)) SWIG_fail;
28306 }
28307 }
28308 {
28309 PyThreadState* __tstate = wxPyBeginAllowThreads();
28310 result = ((wxDataObject const *)arg1)->GetPreferredFormat(arg2);
28311
28312 wxPyEndAllowThreads(__tstate);
28313 if (PyErr_Occurred()) SWIG_fail;
28314 }
28315 {
28316 wxDataFormat * resultptr;
28317 resultptr = new wxDataFormat(static_cast<wxDataFormat & >(result));
28318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
28319 }
28320 return resultobj;
28321 fail:
28322 return NULL;
28323 }
28324
28325
28326 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
28327 PyObject *resultobj = NULL;
28328 wxDataObject *arg1 = (wxDataObject *) 0 ;
28329 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28330 size_t result;
28331 PyObject * obj0 = 0 ;
28332 PyObject * obj1 = 0 ;
28333 char *kwnames[] = {
28334 (char *) "self",(char *) "dir", NULL
28335 };
28336
28337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
28338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28339 if (SWIG_arg_fail(1)) SWIG_fail;
28340 if (obj1) {
28341 {
28342 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28343 if (SWIG_arg_fail(2)) SWIG_fail;
28344 }
28345 }
28346 {
28347 PyThreadState* __tstate = wxPyBeginAllowThreads();
28348 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount(arg2);
28349
28350 wxPyEndAllowThreads(__tstate);
28351 if (PyErr_Occurred()) SWIG_fail;
28352 }
28353 {
28354 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28355 }
28356 return resultobj;
28357 fail:
28358 return NULL;
28359 }
28360
28361
28362 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
28363 PyObject *resultobj = NULL;
28364 wxDataObject *arg1 = (wxDataObject *) 0 ;
28365 wxDataFormat *arg2 = 0 ;
28366 wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ;
28367 bool result;
28368 PyObject * obj0 = 0 ;
28369 PyObject * obj1 = 0 ;
28370 PyObject * obj2 = 0 ;
28371 char *kwnames[] = {
28372 (char *) "self",(char *) "format",(char *) "dir", NULL
28373 };
28374
28375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
28376 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28377 if (SWIG_arg_fail(1)) SWIG_fail;
28378 {
28379 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28380 if (SWIG_arg_fail(2)) SWIG_fail;
28381 if (arg2 == NULL) {
28382 SWIG_null_ref("wxDataFormat");
28383 }
28384 if (SWIG_arg_fail(2)) SWIG_fail;
28385 }
28386 if (obj2) {
28387 {
28388 arg3 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj2));
28389 if (SWIG_arg_fail(3)) SWIG_fail;
28390 }
28391 }
28392 {
28393 PyThreadState* __tstate = wxPyBeginAllowThreads();
28394 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,arg3);
28395
28396 wxPyEndAllowThreads(__tstate);
28397 if (PyErr_Occurred()) SWIG_fail;
28398 }
28399 {
28400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28401 }
28402 return resultobj;
28403 fail:
28404 return NULL;
28405 }
28406
28407
28408 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
28409 PyObject *resultobj = NULL;
28410 wxDataObject *arg1 = (wxDataObject *) 0 ;
28411 wxDataFormat *arg2 = 0 ;
28412 size_t result;
28413 PyObject * obj0 = 0 ;
28414 PyObject * obj1 = 0 ;
28415 char *kwnames[] = {
28416 (char *) "self",(char *) "format", NULL
28417 };
28418
28419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
28420 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28421 if (SWIG_arg_fail(1)) SWIG_fail;
28422 {
28423 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28424 if (SWIG_arg_fail(2)) SWIG_fail;
28425 if (arg2 == NULL) {
28426 SWIG_null_ref("wxDataFormat");
28427 }
28428 if (SWIG_arg_fail(2)) SWIG_fail;
28429 }
28430 {
28431 PyThreadState* __tstate = wxPyBeginAllowThreads();
28432 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
28433
28434 wxPyEndAllowThreads(__tstate);
28435 if (PyErr_Occurred()) SWIG_fail;
28436 }
28437 {
28438 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28439 }
28440 return resultobj;
28441 fail:
28442 return NULL;
28443 }
28444
28445
28446 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
28447 PyObject *resultobj = NULL;
28448 wxDataObject *arg1 = (wxDataObject *) 0 ;
28449 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28450 PyObject *result;
28451 PyObject * obj0 = 0 ;
28452 PyObject * obj1 = 0 ;
28453 char *kwnames[] = {
28454 (char *) "self",(char *) "dir", NULL
28455 };
28456
28457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
28458 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28459 if (SWIG_arg_fail(1)) SWIG_fail;
28460 if (obj1) {
28461 {
28462 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28463 if (SWIG_arg_fail(2)) SWIG_fail;
28464 }
28465 }
28466 {
28467 PyThreadState* __tstate = wxPyBeginAllowThreads();
28468 result = (PyObject *)wxDataObject_GetAllFormats(arg1,arg2);
28469
28470 wxPyEndAllowThreads(__tstate);
28471 if (PyErr_Occurred()) SWIG_fail;
28472 }
28473 resultobj = result;
28474 return resultobj;
28475 fail:
28476 return NULL;
28477 }
28478
28479
28480 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
28481 PyObject *resultobj = NULL;
28482 wxDataObject *arg1 = (wxDataObject *) 0 ;
28483 wxDataFormat *arg2 = 0 ;
28484 PyObject *result;
28485 PyObject * obj0 = 0 ;
28486 PyObject * obj1 = 0 ;
28487 char *kwnames[] = {
28488 (char *) "self",(char *) "format", NULL
28489 };
28490
28491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
28492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28493 if (SWIG_arg_fail(1)) SWIG_fail;
28494 {
28495 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28496 if (SWIG_arg_fail(2)) SWIG_fail;
28497 if (arg2 == NULL) {
28498 SWIG_null_ref("wxDataFormat");
28499 }
28500 if (SWIG_arg_fail(2)) SWIG_fail;
28501 }
28502 {
28503 PyThreadState* __tstate = wxPyBeginAllowThreads();
28504 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
28505
28506 wxPyEndAllowThreads(__tstate);
28507 if (PyErr_Occurred()) SWIG_fail;
28508 }
28509 resultobj = result;
28510 return resultobj;
28511 fail:
28512 return NULL;
28513 }
28514
28515
28516 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
28517 PyObject *resultobj = NULL;
28518 wxDataObject *arg1 = (wxDataObject *) 0 ;
28519 wxDataFormat *arg2 = 0 ;
28520 PyObject *arg3 = (PyObject *) 0 ;
28521 bool result;
28522 PyObject * obj0 = 0 ;
28523 PyObject * obj1 = 0 ;
28524 PyObject * obj2 = 0 ;
28525 char *kwnames[] = {
28526 (char *) "self",(char *) "format",(char *) "data", NULL
28527 };
28528
28529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
28530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28531 if (SWIG_arg_fail(1)) SWIG_fail;
28532 {
28533 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28534 if (SWIG_arg_fail(2)) SWIG_fail;
28535 if (arg2 == NULL) {
28536 SWIG_null_ref("wxDataFormat");
28537 }
28538 if (SWIG_arg_fail(2)) SWIG_fail;
28539 }
28540 arg3 = obj2;
28541 {
28542 PyThreadState* __tstate = wxPyBeginAllowThreads();
28543 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
28544
28545 wxPyEndAllowThreads(__tstate);
28546 if (PyErr_Occurred()) SWIG_fail;
28547 }
28548 {
28549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28550 }
28551 return resultobj;
28552 fail:
28553 return NULL;
28554 }
28555
28556
28557 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
28558 PyObject *obj;
28559 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28560 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
28561 Py_INCREF(obj);
28562 return Py_BuildValue((char *)"");
28563 }
28564 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
28565 PyObject *resultobj = NULL;
28566 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
28567 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
28568 wxDataObjectSimple *result;
28569 PyObject * obj0 = 0 ;
28570 char *kwnames[] = {
28571 (char *) "format", NULL
28572 };
28573
28574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
28575 if (obj0) {
28576 {
28577 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28578 if (SWIG_arg_fail(1)) SWIG_fail;
28579 if (arg1 == NULL) {
28580 SWIG_null_ref("wxDataFormat");
28581 }
28582 if (SWIG_arg_fail(1)) SWIG_fail;
28583 }
28584 }
28585 {
28586 PyThreadState* __tstate = wxPyBeginAllowThreads();
28587 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
28588
28589 wxPyEndAllowThreads(__tstate);
28590 if (PyErr_Occurred()) SWIG_fail;
28591 }
28592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
28593 return resultobj;
28594 fail:
28595 return NULL;
28596 }
28597
28598
28599 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28600 PyObject *resultobj = NULL;
28601 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28602 wxDataFormat *result;
28603 PyObject * obj0 = 0 ;
28604 char *kwnames[] = {
28605 (char *) "self", NULL
28606 };
28607
28608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
28609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28610 if (SWIG_arg_fail(1)) SWIG_fail;
28611 {
28612 PyThreadState* __tstate = wxPyBeginAllowThreads();
28613 {
28614 wxDataFormat const &_result_ref = (arg1)->GetFormat();
28615 result = (wxDataFormat *) &_result_ref;
28616 }
28617
28618 wxPyEndAllowThreads(__tstate);
28619 if (PyErr_Occurred()) SWIG_fail;
28620 }
28621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
28622 return resultobj;
28623 fail:
28624 return NULL;
28625 }
28626
28627
28628 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28629 PyObject *resultobj = NULL;
28630 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28631 wxDataFormat *arg2 = 0 ;
28632 PyObject * obj0 = 0 ;
28633 PyObject * obj1 = 0 ;
28634 char *kwnames[] = {
28635 (char *) "self",(char *) "format", NULL
28636 };
28637
28638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
28639 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28640 if (SWIG_arg_fail(1)) SWIG_fail;
28641 {
28642 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28643 if (SWIG_arg_fail(2)) SWIG_fail;
28644 if (arg2 == NULL) {
28645 SWIG_null_ref("wxDataFormat");
28646 }
28647 if (SWIG_arg_fail(2)) SWIG_fail;
28648 }
28649 {
28650 PyThreadState* __tstate = wxPyBeginAllowThreads();
28651 (arg1)->SetFormat((wxDataFormat const &)*arg2);
28652
28653 wxPyEndAllowThreads(__tstate);
28654 if (PyErr_Occurred()) SWIG_fail;
28655 }
28656 Py_INCREF(Py_None); resultobj = Py_None;
28657 return resultobj;
28658 fail:
28659 return NULL;
28660 }
28661
28662
28663 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
28664 PyObject *resultobj = NULL;
28665 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28666 size_t result;
28667 PyObject * obj0 = 0 ;
28668 char *kwnames[] = {
28669 (char *) "self", NULL
28670 };
28671
28672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
28673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28674 if (SWIG_arg_fail(1)) SWIG_fail;
28675 {
28676 PyThreadState* __tstate = wxPyBeginAllowThreads();
28677 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
28678
28679 wxPyEndAllowThreads(__tstate);
28680 if (PyErr_Occurred()) SWIG_fail;
28681 }
28682 {
28683 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28684 }
28685 return resultobj;
28686 fail:
28687 return NULL;
28688 }
28689
28690
28691 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
28692 PyObject *resultobj = NULL;
28693 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28694 PyObject *result;
28695 PyObject * obj0 = 0 ;
28696 char *kwnames[] = {
28697 (char *) "self", NULL
28698 };
28699
28700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
28701 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28702 if (SWIG_arg_fail(1)) SWIG_fail;
28703 {
28704 PyThreadState* __tstate = wxPyBeginAllowThreads();
28705 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
28706
28707 wxPyEndAllowThreads(__tstate);
28708 if (PyErr_Occurred()) SWIG_fail;
28709 }
28710 resultobj = result;
28711 return resultobj;
28712 fail:
28713 return NULL;
28714 }
28715
28716
28717 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
28718 PyObject *resultobj = NULL;
28719 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28720 PyObject *arg2 = (PyObject *) 0 ;
28721 bool result;
28722 PyObject * obj0 = 0 ;
28723 PyObject * obj1 = 0 ;
28724 char *kwnames[] = {
28725 (char *) "self",(char *) "data", NULL
28726 };
28727
28728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
28729 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28730 if (SWIG_arg_fail(1)) SWIG_fail;
28731 arg2 = obj1;
28732 {
28733 PyThreadState* __tstate = wxPyBeginAllowThreads();
28734 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
28735
28736 wxPyEndAllowThreads(__tstate);
28737 if (PyErr_Occurred()) SWIG_fail;
28738 }
28739 {
28740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28741 }
28742 return resultobj;
28743 fail:
28744 return NULL;
28745 }
28746
28747
28748 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
28749 PyObject *obj;
28750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28751 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
28752 Py_INCREF(obj);
28753 return Py_BuildValue((char *)"");
28754 }
28755 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
28756 PyObject *resultobj = NULL;
28757 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
28758 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
28759 wxPyDataObjectSimple *result;
28760 PyObject * obj0 = 0 ;
28761 char *kwnames[] = {
28762 (char *) "format", NULL
28763 };
28764
28765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
28766 if (obj0) {
28767 {
28768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28769 if (SWIG_arg_fail(1)) SWIG_fail;
28770 if (arg1 == NULL) {
28771 SWIG_null_ref("wxDataFormat");
28772 }
28773 if (SWIG_arg_fail(1)) SWIG_fail;
28774 }
28775 }
28776 {
28777 PyThreadState* __tstate = wxPyBeginAllowThreads();
28778 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
28779
28780 wxPyEndAllowThreads(__tstate);
28781 if (PyErr_Occurred()) SWIG_fail;
28782 }
28783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
28784 return resultobj;
28785 fail:
28786 return NULL;
28787 }
28788
28789
28790 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
28791 PyObject *resultobj = NULL;
28792 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
28793 PyObject *arg2 = (PyObject *) 0 ;
28794 PyObject *arg3 = (PyObject *) 0 ;
28795 PyObject * obj0 = 0 ;
28796 PyObject * obj1 = 0 ;
28797 PyObject * obj2 = 0 ;
28798 char *kwnames[] = {
28799 (char *) "self",(char *) "self",(char *) "_class", NULL
28800 };
28801
28802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28803 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28804 if (SWIG_arg_fail(1)) SWIG_fail;
28805 arg2 = obj1;
28806 arg3 = obj2;
28807 {
28808 PyThreadState* __tstate = wxPyBeginAllowThreads();
28809 (arg1)->_setCallbackInfo(arg2,arg3);
28810
28811 wxPyEndAllowThreads(__tstate);
28812 if (PyErr_Occurred()) SWIG_fail;
28813 }
28814 Py_INCREF(Py_None); resultobj = Py_None;
28815 return resultobj;
28816 fail:
28817 return NULL;
28818 }
28819
28820
28821 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
28822 PyObject *obj;
28823 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28824 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
28825 Py_INCREF(obj);
28826 return Py_BuildValue((char *)"");
28827 }
28828 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
28829 PyObject *resultobj = NULL;
28830 wxDataObjectComposite *result;
28831 char *kwnames[] = {
28832 NULL
28833 };
28834
28835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
28836 {
28837 PyThreadState* __tstate = wxPyBeginAllowThreads();
28838 result = (wxDataObjectComposite *)new wxDataObjectComposite();
28839
28840 wxPyEndAllowThreads(__tstate);
28841 if (PyErr_Occurred()) SWIG_fail;
28842 }
28843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
28844 return resultobj;
28845 fail:
28846 return NULL;
28847 }
28848
28849
28850 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
28851 PyObject *resultobj = NULL;
28852 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
28853 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
28854 bool arg3 = (bool) false ;
28855 PyObject * obj0 = 0 ;
28856 PyObject * obj1 = 0 ;
28857 PyObject * obj2 = 0 ;
28858 char *kwnames[] = {
28859 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
28860 };
28861
28862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
28863 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_EXCEPTION | 0);
28864 if (SWIG_arg_fail(1)) SWIG_fail;
28865 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
28866 if (SWIG_arg_fail(2)) SWIG_fail;
28867 if (obj2) {
28868 {
28869 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
28870 if (SWIG_arg_fail(3)) SWIG_fail;
28871 }
28872 }
28873 {
28874 PyThreadState* __tstate = wxPyBeginAllowThreads();
28875 (arg1)->Add(arg2,arg3);
28876
28877 wxPyEndAllowThreads(__tstate);
28878 if (PyErr_Occurred()) SWIG_fail;
28879 }
28880 Py_INCREF(Py_None); resultobj = Py_None;
28881 return resultobj;
28882 fail:
28883 return NULL;
28884 }
28885
28886
28887 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
28888 PyObject *obj;
28889 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28890 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
28891 Py_INCREF(obj);
28892 return Py_BuildValue((char *)"");
28893 }
28894 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
28895 PyObject *resultobj = NULL;
28896 wxString const &arg1_defvalue = wxPyEmptyString ;
28897 wxString *arg1 = (wxString *) &arg1_defvalue ;
28898 wxTextDataObject *result;
28899 bool temp1 = false ;
28900 PyObject * obj0 = 0 ;
28901 char *kwnames[] = {
28902 (char *) "text", NULL
28903 };
28904
28905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
28906 if (obj0) {
28907 {
28908 arg1 = wxString_in_helper(obj0);
28909 if (arg1 == NULL) SWIG_fail;
28910 temp1 = true;
28911 }
28912 }
28913 {
28914 PyThreadState* __tstate = wxPyBeginAllowThreads();
28915 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
28916
28917 wxPyEndAllowThreads(__tstate);
28918 if (PyErr_Occurred()) SWIG_fail;
28919 }
28920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
28921 {
28922 if (temp1)
28923 delete arg1;
28924 }
28925 return resultobj;
28926 fail:
28927 {
28928 if (temp1)
28929 delete arg1;
28930 }
28931 return NULL;
28932 }
28933
28934
28935 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
28936 PyObject *resultobj = NULL;
28937 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28938 size_t result;
28939 PyObject * obj0 = 0 ;
28940 char *kwnames[] = {
28941 (char *) "self", NULL
28942 };
28943
28944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
28945 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
28946 if (SWIG_arg_fail(1)) SWIG_fail;
28947 {
28948 PyThreadState* __tstate = wxPyBeginAllowThreads();
28949 result = (size_t)(arg1)->GetTextLength();
28950
28951 wxPyEndAllowThreads(__tstate);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 {
28955 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28956 }
28957 return resultobj;
28958 fail:
28959 return NULL;
28960 }
28961
28962
28963 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
28964 PyObject *resultobj = NULL;
28965 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28966 wxString result;
28967 PyObject * obj0 = 0 ;
28968 char *kwnames[] = {
28969 (char *) "self", NULL
28970 };
28971
28972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
28973 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
28974 if (SWIG_arg_fail(1)) SWIG_fail;
28975 {
28976 PyThreadState* __tstate = wxPyBeginAllowThreads();
28977 result = (arg1)->GetText();
28978
28979 wxPyEndAllowThreads(__tstate);
28980 if (PyErr_Occurred()) SWIG_fail;
28981 }
28982 {
28983 #if wxUSE_UNICODE
28984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28985 #else
28986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28987 #endif
28988 }
28989 return resultobj;
28990 fail:
28991 return NULL;
28992 }
28993
28994
28995 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
28996 PyObject *resultobj = NULL;
28997 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28998 wxString *arg2 = 0 ;
28999 bool temp2 = false ;
29000 PyObject * obj0 = 0 ;
29001 PyObject * obj1 = 0 ;
29002 char *kwnames[] = {
29003 (char *) "self",(char *) "text", NULL
29004 };
29005
29006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
29007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
29008 if (SWIG_arg_fail(1)) SWIG_fail;
29009 {
29010 arg2 = wxString_in_helper(obj1);
29011 if (arg2 == NULL) SWIG_fail;
29012 temp2 = true;
29013 }
29014 {
29015 PyThreadState* __tstate = wxPyBeginAllowThreads();
29016 (arg1)->SetText((wxString const &)*arg2);
29017
29018 wxPyEndAllowThreads(__tstate);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 Py_INCREF(Py_None); resultobj = Py_None;
29022 {
29023 if (temp2)
29024 delete arg2;
29025 }
29026 return resultobj;
29027 fail:
29028 {
29029 if (temp2)
29030 delete arg2;
29031 }
29032 return NULL;
29033 }
29034
29035
29036 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
29037 PyObject *obj;
29038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29039 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
29040 Py_INCREF(obj);
29041 return Py_BuildValue((char *)"");
29042 }
29043 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29044 PyObject *resultobj = NULL;
29045 wxString const &arg1_defvalue = wxPyEmptyString ;
29046 wxString *arg1 = (wxString *) &arg1_defvalue ;
29047 wxPyTextDataObject *result;
29048 bool temp1 = false ;
29049 PyObject * obj0 = 0 ;
29050 char *kwnames[] = {
29051 (char *) "text", NULL
29052 };
29053
29054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
29055 if (obj0) {
29056 {
29057 arg1 = wxString_in_helper(obj0);
29058 if (arg1 == NULL) SWIG_fail;
29059 temp1 = true;
29060 }
29061 }
29062 {
29063 PyThreadState* __tstate = wxPyBeginAllowThreads();
29064 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
29065
29066 wxPyEndAllowThreads(__tstate);
29067 if (PyErr_Occurred()) SWIG_fail;
29068 }
29069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
29070 {
29071 if (temp1)
29072 delete arg1;
29073 }
29074 return resultobj;
29075 fail:
29076 {
29077 if (temp1)
29078 delete arg1;
29079 }
29080 return NULL;
29081 }
29082
29083
29084 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29085 PyObject *resultobj = NULL;
29086 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
29087 PyObject *arg2 = (PyObject *) 0 ;
29088 PyObject *arg3 = (PyObject *) 0 ;
29089 PyObject * obj0 = 0 ;
29090 PyObject * obj1 = 0 ;
29091 PyObject * obj2 = 0 ;
29092 char *kwnames[] = {
29093 (char *) "self",(char *) "self",(char *) "_class", NULL
29094 };
29095
29096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_EXCEPTION | 0);
29098 if (SWIG_arg_fail(1)) SWIG_fail;
29099 arg2 = obj1;
29100 arg3 = obj2;
29101 {
29102 PyThreadState* __tstate = wxPyBeginAllowThreads();
29103 (arg1)->_setCallbackInfo(arg2,arg3);
29104
29105 wxPyEndAllowThreads(__tstate);
29106 if (PyErr_Occurred()) SWIG_fail;
29107 }
29108 Py_INCREF(Py_None); resultobj = Py_None;
29109 return resultobj;
29110 fail:
29111 return NULL;
29112 }
29113
29114
29115 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
29116 PyObject *obj;
29117 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29118 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
29119 Py_INCREF(obj);
29120 return Py_BuildValue((char *)"");
29121 }
29122 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29123 PyObject *resultobj = NULL;
29124 wxBitmap const &arg1_defvalue = wxNullBitmap ;
29125 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
29126 wxBitmapDataObject *result;
29127 PyObject * obj0 = 0 ;
29128 char *kwnames[] = {
29129 (char *) "bitmap", NULL
29130 };
29131
29132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
29133 if (obj0) {
29134 {
29135 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29136 if (SWIG_arg_fail(1)) SWIG_fail;
29137 if (arg1 == NULL) {
29138 SWIG_null_ref("wxBitmap");
29139 }
29140 if (SWIG_arg_fail(1)) SWIG_fail;
29141 }
29142 }
29143 {
29144 PyThreadState* __tstate = wxPyBeginAllowThreads();
29145 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
29146
29147 wxPyEndAllowThreads(__tstate);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 }
29150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
29151 return resultobj;
29152 fail:
29153 return NULL;
29154 }
29155
29156
29157 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
29158 PyObject *resultobj = NULL;
29159 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
29160 wxBitmap result;
29161 PyObject * obj0 = 0 ;
29162 char *kwnames[] = {
29163 (char *) "self", NULL
29164 };
29165
29166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
29167 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29168 if (SWIG_arg_fail(1)) SWIG_fail;
29169 {
29170 PyThreadState* __tstate = wxPyBeginAllowThreads();
29171 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
29172
29173 wxPyEndAllowThreads(__tstate);
29174 if (PyErr_Occurred()) SWIG_fail;
29175 }
29176 {
29177 wxBitmap * resultptr;
29178 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
29179 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
29180 }
29181 return resultobj;
29182 fail:
29183 return NULL;
29184 }
29185
29186
29187 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
29188 PyObject *resultobj = NULL;
29189 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
29190 wxBitmap *arg2 = 0 ;
29191 PyObject * obj0 = 0 ;
29192 PyObject * obj1 = 0 ;
29193 char *kwnames[] = {
29194 (char *) "self",(char *) "bitmap", NULL
29195 };
29196
29197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
29198 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29199 if (SWIG_arg_fail(1)) SWIG_fail;
29200 {
29201 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29202 if (SWIG_arg_fail(2)) SWIG_fail;
29203 if (arg2 == NULL) {
29204 SWIG_null_ref("wxBitmap");
29205 }
29206 if (SWIG_arg_fail(2)) SWIG_fail;
29207 }
29208 {
29209 PyThreadState* __tstate = wxPyBeginAllowThreads();
29210 (arg1)->SetBitmap((wxBitmap const &)*arg2);
29211
29212 wxPyEndAllowThreads(__tstate);
29213 if (PyErr_Occurred()) SWIG_fail;
29214 }
29215 Py_INCREF(Py_None); resultobj = Py_None;
29216 return resultobj;
29217 fail:
29218 return NULL;
29219 }
29220
29221
29222 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
29223 PyObject *obj;
29224 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29225 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
29226 Py_INCREF(obj);
29227 return Py_BuildValue((char *)"");
29228 }
29229 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29230 PyObject *resultobj = NULL;
29231 wxBitmap const &arg1_defvalue = wxNullBitmap ;
29232 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
29233 wxPyBitmapDataObject *result;
29234 PyObject * obj0 = 0 ;
29235 char *kwnames[] = {
29236 (char *) "bitmap", NULL
29237 };
29238
29239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
29240 if (obj0) {
29241 {
29242 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29243 if (SWIG_arg_fail(1)) SWIG_fail;
29244 if (arg1 == NULL) {
29245 SWIG_null_ref("wxBitmap");
29246 }
29247 if (SWIG_arg_fail(1)) SWIG_fail;
29248 }
29249 }
29250 {
29251 PyThreadState* __tstate = wxPyBeginAllowThreads();
29252 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
29253
29254 wxPyEndAllowThreads(__tstate);
29255 if (PyErr_Occurred()) SWIG_fail;
29256 }
29257 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
29258 return resultobj;
29259 fail:
29260 return NULL;
29261 }
29262
29263
29264 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29265 PyObject *resultobj = NULL;
29266 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
29267 PyObject *arg2 = (PyObject *) 0 ;
29268 PyObject *arg3 = (PyObject *) 0 ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 PyObject * obj2 = 0 ;
29272 char *kwnames[] = {
29273 (char *) "self",(char *) "self",(char *) "_class", NULL
29274 };
29275
29276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29278 if (SWIG_arg_fail(1)) SWIG_fail;
29279 arg2 = obj1;
29280 arg3 = obj2;
29281 {
29282 PyThreadState* __tstate = wxPyBeginAllowThreads();
29283 (arg1)->_setCallbackInfo(arg2,arg3);
29284
29285 wxPyEndAllowThreads(__tstate);
29286 if (PyErr_Occurred()) SWIG_fail;
29287 }
29288 Py_INCREF(Py_None); resultobj = Py_None;
29289 return resultobj;
29290 fail:
29291 return NULL;
29292 }
29293
29294
29295 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
29296 PyObject *obj;
29297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29298 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
29299 Py_INCREF(obj);
29300 return Py_BuildValue((char *)"");
29301 }
29302 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29303 PyObject *resultobj = NULL;
29304 wxFileDataObject *result;
29305 char *kwnames[] = {
29306 NULL
29307 };
29308
29309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
29310 {
29311 PyThreadState* __tstate = wxPyBeginAllowThreads();
29312 result = (wxFileDataObject *)new wxFileDataObject();
29313
29314 wxPyEndAllowThreads(__tstate);
29315 if (PyErr_Occurred()) SWIG_fail;
29316 }
29317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
29318 return resultobj;
29319 fail:
29320 return NULL;
29321 }
29322
29323
29324 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
29325 PyObject *resultobj = NULL;
29326 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
29327 wxArrayString *result;
29328 PyObject * obj0 = 0 ;
29329 char *kwnames[] = {
29330 (char *) "self", NULL
29331 };
29332
29333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
29334 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0);
29335 if (SWIG_arg_fail(1)) SWIG_fail;
29336 {
29337 PyThreadState* __tstate = wxPyBeginAllowThreads();
29338 {
29339 wxArrayString const &_result_ref = (arg1)->GetFilenames();
29340 result = (wxArrayString *) &_result_ref;
29341 }
29342
29343 wxPyEndAllowThreads(__tstate);
29344 if (PyErr_Occurred()) SWIG_fail;
29345 }
29346 {
29347 resultobj = wxArrayString2PyList_helper(*result);
29348 }
29349 return resultobj;
29350 fail:
29351 return NULL;
29352 }
29353
29354
29355 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = NULL;
29357 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
29358 wxString *arg2 = 0 ;
29359 bool temp2 = false ;
29360 PyObject * obj0 = 0 ;
29361 PyObject * obj1 = 0 ;
29362 char *kwnames[] = {
29363 (char *) "self",(char *) "filename", NULL
29364 };
29365
29366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
29367 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0);
29368 if (SWIG_arg_fail(1)) SWIG_fail;
29369 {
29370 arg2 = wxString_in_helper(obj1);
29371 if (arg2 == NULL) SWIG_fail;
29372 temp2 = true;
29373 }
29374 {
29375 PyThreadState* __tstate = wxPyBeginAllowThreads();
29376 (arg1)->AddFile((wxString const &)*arg2);
29377
29378 wxPyEndAllowThreads(__tstate);
29379 if (PyErr_Occurred()) SWIG_fail;
29380 }
29381 Py_INCREF(Py_None); resultobj = Py_None;
29382 {
29383 if (temp2)
29384 delete arg2;
29385 }
29386 return resultobj;
29387 fail:
29388 {
29389 if (temp2)
29390 delete arg2;
29391 }
29392 return NULL;
29393 }
29394
29395
29396 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
29397 PyObject *obj;
29398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29399 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
29400 Py_INCREF(obj);
29401 return Py_BuildValue((char *)"");
29402 }
29403 static PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *, PyObject *args) {
29404 PyObject *resultobj = NULL;
29405 wxDataFormat *arg1 = 0 ;
29406 wxCustomDataObject *result;
29407 PyObject * obj0 = 0 ;
29408
29409 if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail;
29410 {
29411 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
29412 if (SWIG_arg_fail(1)) SWIG_fail;
29413 if (arg1 == NULL) {
29414 SWIG_null_ref("wxDataFormat");
29415 }
29416 if (SWIG_arg_fail(1)) SWIG_fail;
29417 }
29418 {
29419 PyThreadState* __tstate = wxPyBeginAllowThreads();
29420 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
29421
29422 wxPyEndAllowThreads(__tstate);
29423 if (PyErr_Occurred()) SWIG_fail;
29424 }
29425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29426 return resultobj;
29427 fail:
29428 return NULL;
29429 }
29430
29431
29432 static PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *, PyObject *args) {
29433 PyObject *resultobj = NULL;
29434 wxString *arg1 = 0 ;
29435 wxCustomDataObject *result;
29436 bool temp1 = false ;
29437 PyObject * obj0 = 0 ;
29438
29439 if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail;
29440 {
29441 arg1 = wxString_in_helper(obj0);
29442 if (arg1 == NULL) SWIG_fail;
29443 temp1 = true;
29444 }
29445 {
29446 PyThreadState* __tstate = wxPyBeginAllowThreads();
29447 result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1);
29448
29449 wxPyEndAllowThreads(__tstate);
29450 if (PyErr_Occurred()) SWIG_fail;
29451 }
29452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29453 {
29454 if (temp1)
29455 delete arg1;
29456 }
29457 return resultobj;
29458 fail:
29459 {
29460 if (temp1)
29461 delete arg1;
29462 }
29463 return NULL;
29464 }
29465
29466
29467 static PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *, PyObject *args) {
29468 PyObject *resultobj = NULL;
29469 wxCustomDataObject *result;
29470
29471 if(!PyArg_ParseTuple(args,(char *)":new_CustomDataObject")) goto fail;
29472 {
29473 PyThreadState* __tstate = wxPyBeginAllowThreads();
29474 result = (wxCustomDataObject *)new wxCustomDataObject();
29475
29476 wxPyEndAllowThreads(__tstate);
29477 if (PyErr_Occurred()) SWIG_fail;
29478 }
29479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29480 return resultobj;
29481 fail:
29482 return NULL;
29483 }
29484
29485
29486 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) {
29487 int argc;
29488 PyObject *argv[2];
29489 int ii;
29490
29491 argc = PyObject_Length(args);
29492 for (ii = 0; (ii < argc) && (ii < 1); ii++) {
29493 argv[ii] = PyTuple_GetItem(args,ii);
29494 }
29495 if (argc == 0) {
29496 return _wrap_new_CustomDataObject__SWIG_2(self,args);
29497 }
29498 if (argc == 1) {
29499 int _v;
29500 {
29501 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
29502 }
29503 if (_v) {
29504 return _wrap_new_CustomDataObject__SWIG_1(self,args);
29505 }
29506 }
29507 if (argc == 1) {
29508 int _v;
29509 {
29510 void *ptr = 0;
29511 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
29512 _v = 0;
29513 PyErr_Clear();
29514 } else {
29515 _v = (ptr != 0);
29516 }
29517 }
29518 if (_v) {
29519 return _wrap_new_CustomDataObject__SWIG_0(self,args);
29520 }
29521 }
29522
29523 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'");
29524 return NULL;
29525 }
29526
29527
29528 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
29529 PyObject *resultobj = NULL;
29530 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29531 PyObject *arg2 = (PyObject *) 0 ;
29532 bool result;
29533 PyObject * obj0 = 0 ;
29534 PyObject * obj1 = 0 ;
29535 char *kwnames[] = {
29536 (char *) "self",(char *) "data", NULL
29537 };
29538
29539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
29540 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29541 if (SWIG_arg_fail(1)) SWIG_fail;
29542 arg2 = obj1;
29543 {
29544 PyThreadState* __tstate = wxPyBeginAllowThreads();
29545 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
29546
29547 wxPyEndAllowThreads(__tstate);
29548 if (PyErr_Occurred()) SWIG_fail;
29549 }
29550 {
29551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29552 }
29553 return resultobj;
29554 fail:
29555 return NULL;
29556 }
29557
29558
29559 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29560 PyObject *resultobj = NULL;
29561 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29562 size_t result;
29563 PyObject * obj0 = 0 ;
29564 char *kwnames[] = {
29565 (char *) "self", NULL
29566 };
29567
29568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
29569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29570 if (SWIG_arg_fail(1)) SWIG_fail;
29571 {
29572 PyThreadState* __tstate = wxPyBeginAllowThreads();
29573 result = (size_t)(arg1)->GetSize();
29574
29575 wxPyEndAllowThreads(__tstate);
29576 if (PyErr_Occurred()) SWIG_fail;
29577 }
29578 {
29579 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
29580 }
29581 return resultobj;
29582 fail:
29583 return NULL;
29584 }
29585
29586
29587 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
29588 PyObject *resultobj = NULL;
29589 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29590 PyObject *result;
29591 PyObject * obj0 = 0 ;
29592 char *kwnames[] = {
29593 (char *) "self", NULL
29594 };
29595
29596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
29597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29598 if (SWIG_arg_fail(1)) SWIG_fail;
29599 {
29600 PyThreadState* __tstate = wxPyBeginAllowThreads();
29601 result = (PyObject *)wxCustomDataObject_GetData(arg1);
29602
29603 wxPyEndAllowThreads(__tstate);
29604 if (PyErr_Occurred()) SWIG_fail;
29605 }
29606 resultobj = result;
29607 return resultobj;
29608 fail:
29609 return NULL;
29610 }
29611
29612
29613 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
29614 PyObject *obj;
29615 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29616 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
29617 Py_INCREF(obj);
29618 return Py_BuildValue((char *)"");
29619 }
29620 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29621 PyObject *resultobj = NULL;
29622 wxURLDataObject *result;
29623 char *kwnames[] = {
29624 NULL
29625 };
29626
29627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
29628 {
29629 PyThreadState* __tstate = wxPyBeginAllowThreads();
29630 result = (wxURLDataObject *)new wxURLDataObject();
29631
29632 wxPyEndAllowThreads(__tstate);
29633 if (PyErr_Occurred()) SWIG_fail;
29634 }
29635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
29636 return resultobj;
29637 fail:
29638 return NULL;
29639 }
29640
29641
29642 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
29643 PyObject *resultobj = NULL;
29644 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
29645 wxString result;
29646 PyObject * obj0 = 0 ;
29647 char *kwnames[] = {
29648 (char *) "self", NULL
29649 };
29650
29651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
29652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0);
29653 if (SWIG_arg_fail(1)) SWIG_fail;
29654 {
29655 PyThreadState* __tstate = wxPyBeginAllowThreads();
29656 result = (arg1)->GetURL();
29657
29658 wxPyEndAllowThreads(__tstate);
29659 if (PyErr_Occurred()) SWIG_fail;
29660 }
29661 {
29662 #if wxUSE_UNICODE
29663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29664 #else
29665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29666 #endif
29667 }
29668 return resultobj;
29669 fail:
29670 return NULL;
29671 }
29672
29673
29674 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
29675 PyObject *resultobj = NULL;
29676 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
29677 wxString *arg2 = 0 ;
29678 bool temp2 = false ;
29679 PyObject * obj0 = 0 ;
29680 PyObject * obj1 = 0 ;
29681 char *kwnames[] = {
29682 (char *) "self",(char *) "url", NULL
29683 };
29684
29685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
29686 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0);
29687 if (SWIG_arg_fail(1)) SWIG_fail;
29688 {
29689 arg2 = wxString_in_helper(obj1);
29690 if (arg2 == NULL) SWIG_fail;
29691 temp2 = true;
29692 }
29693 {
29694 PyThreadState* __tstate = wxPyBeginAllowThreads();
29695 (arg1)->SetURL((wxString const &)*arg2);
29696
29697 wxPyEndAllowThreads(__tstate);
29698 if (PyErr_Occurred()) SWIG_fail;
29699 }
29700 Py_INCREF(Py_None); resultobj = Py_None;
29701 {
29702 if (temp2)
29703 delete arg2;
29704 }
29705 return resultobj;
29706 fail:
29707 {
29708 if (temp2)
29709 delete arg2;
29710 }
29711 return NULL;
29712 }
29713
29714
29715 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
29716 PyObject *obj;
29717 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29718 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
29719 Py_INCREF(obj);
29720 return Py_BuildValue((char *)"");
29721 }
29722 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29723 PyObject *resultobj = NULL;
29724 wxMetafileDataObject *result;
29725 char *kwnames[] = {
29726 NULL
29727 };
29728
29729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
29730 {
29731 PyThreadState* __tstate = wxPyBeginAllowThreads();
29732 result = (wxMetafileDataObject *)new wxMetafileDataObject();
29733
29734 wxPyEndAllowThreads(__tstate);
29735 if (PyErr_Occurred()) SWIG_fail;
29736 }
29737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
29738 return resultobj;
29739 fail:
29740 return NULL;
29741 }
29742
29743
29744 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
29745 PyObject *resultobj = NULL;
29746 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
29747 wxMetafile *arg2 = 0 ;
29748 PyObject * obj0 = 0 ;
29749 PyObject * obj1 = 0 ;
29750 char *kwnames[] = {
29751 (char *) "self",(char *) "metafile", NULL
29752 };
29753
29754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
29755 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0);
29756 if (SWIG_arg_fail(1)) SWIG_fail;
29757 {
29758 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMetafile, SWIG_POINTER_EXCEPTION | 0);
29759 if (SWIG_arg_fail(2)) SWIG_fail;
29760 if (arg2 == NULL) {
29761 SWIG_null_ref("wxMetafile");
29762 }
29763 if (SWIG_arg_fail(2)) SWIG_fail;
29764 }
29765 {
29766 PyThreadState* __tstate = wxPyBeginAllowThreads();
29767 (arg1)->SetMetafile((wxMetafile const &)*arg2);
29768
29769 wxPyEndAllowThreads(__tstate);
29770 if (PyErr_Occurred()) SWIG_fail;
29771 }
29772 Py_INCREF(Py_None); resultobj = Py_None;
29773 return resultobj;
29774 fail:
29775 return NULL;
29776 }
29777
29778
29779 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
29780 PyObject *resultobj = NULL;
29781 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
29782 wxMetafile result;
29783 PyObject * obj0 = 0 ;
29784 char *kwnames[] = {
29785 (char *) "self", NULL
29786 };
29787
29788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
29789 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0);
29790 if (SWIG_arg_fail(1)) SWIG_fail;
29791 {
29792 PyThreadState* __tstate = wxPyBeginAllowThreads();
29793 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
29794
29795 wxPyEndAllowThreads(__tstate);
29796 if (PyErr_Occurred()) SWIG_fail;
29797 }
29798 {
29799 wxMetafile * resultptr;
29800 resultptr = new wxMetafile(static_cast<wxMetafile & >(result));
29801 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
29802 }
29803 return resultobj;
29804 fail:
29805 return NULL;
29806 }
29807
29808
29809 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
29810 PyObject *obj;
29811 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29812 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
29813 Py_INCREF(obj);
29814 return Py_BuildValue((char *)"");
29815 }
29816 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
29817 PyObject *resultobj = NULL;
29818 wxDragResult arg1 ;
29819 bool result;
29820 PyObject * obj0 = 0 ;
29821 char *kwnames[] = {
29822 (char *) "res", NULL
29823 };
29824
29825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
29826 {
29827 arg1 = static_cast<wxDragResult >(SWIG_As_int(obj0));
29828 if (SWIG_arg_fail(1)) SWIG_fail;
29829 }
29830 {
29831 PyThreadState* __tstate = wxPyBeginAllowThreads();
29832 result = (bool)wxIsDragResultOk(arg1);
29833
29834 wxPyEndAllowThreads(__tstate);
29835 if (PyErr_Occurred()) SWIG_fail;
29836 }
29837 {
29838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29839 }
29840 return resultobj;
29841 fail:
29842 return NULL;
29843 }
29844
29845
29846 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
29847 PyObject *resultobj = NULL;
29848 wxWindow *arg1 = (wxWindow *) 0 ;
29849 wxCursor const &arg2_defvalue = wxNullCursor ;
29850 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29851 wxCursor const &arg3_defvalue = wxNullCursor ;
29852 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
29853 wxCursor const &arg4_defvalue = wxNullCursor ;
29854 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
29855 wxPyDropSource *result;
29856 PyObject * obj0 = 0 ;
29857 PyObject * obj1 = 0 ;
29858 PyObject * obj2 = 0 ;
29859 PyObject * obj3 = 0 ;
29860 char *kwnames[] = {
29861 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
29862 };
29863
29864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29866 if (SWIG_arg_fail(1)) SWIG_fail;
29867 if (obj1) {
29868 {
29869 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29870 if (SWIG_arg_fail(2)) SWIG_fail;
29871 if (arg2 == NULL) {
29872 SWIG_null_ref("wxCursor");
29873 }
29874 if (SWIG_arg_fail(2)) SWIG_fail;
29875 }
29876 }
29877 if (obj2) {
29878 {
29879 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29880 if (SWIG_arg_fail(3)) SWIG_fail;
29881 if (arg3 == NULL) {
29882 SWIG_null_ref("wxCursor");
29883 }
29884 if (SWIG_arg_fail(3)) SWIG_fail;
29885 }
29886 }
29887 if (obj3) {
29888 {
29889 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29890 if (SWIG_arg_fail(4)) SWIG_fail;
29891 if (arg4 == NULL) {
29892 SWIG_null_ref("wxCursor");
29893 }
29894 if (SWIG_arg_fail(4)) SWIG_fail;
29895 }
29896 }
29897 {
29898 PyThreadState* __tstate = wxPyBeginAllowThreads();
29899 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
29900
29901 wxPyEndAllowThreads(__tstate);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
29905 return resultobj;
29906 fail:
29907 return NULL;
29908 }
29909
29910
29911 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29912 PyObject *resultobj = NULL;
29913 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29914 PyObject *arg2 = (PyObject *) 0 ;
29915 PyObject *arg3 = (PyObject *) 0 ;
29916 int arg4 ;
29917 PyObject * obj0 = 0 ;
29918 PyObject * obj1 = 0 ;
29919 PyObject * obj2 = 0 ;
29920 PyObject * obj3 = 0 ;
29921 char *kwnames[] = {
29922 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
29923 };
29924
29925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29927 if (SWIG_arg_fail(1)) SWIG_fail;
29928 arg2 = obj1;
29929 arg3 = obj2;
29930 {
29931 arg4 = static_cast<int >(SWIG_As_int(obj3));
29932 if (SWIG_arg_fail(4)) SWIG_fail;
29933 }
29934 {
29935 PyThreadState* __tstate = wxPyBeginAllowThreads();
29936 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
29937
29938 wxPyEndAllowThreads(__tstate);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 }
29941 Py_INCREF(Py_None); resultobj = Py_None;
29942 return resultobj;
29943 fail:
29944 return NULL;
29945 }
29946
29947
29948 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
29949 PyObject *resultobj = NULL;
29950 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29951 PyObject * obj0 = 0 ;
29952 char *kwnames[] = {
29953 (char *) "self", NULL
29954 };
29955
29956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
29957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29958 if (SWIG_arg_fail(1)) SWIG_fail;
29959 {
29960 PyThreadState* __tstate = wxPyBeginAllowThreads();
29961 delete arg1;
29962
29963 wxPyEndAllowThreads(__tstate);
29964 if (PyErr_Occurred()) SWIG_fail;
29965 }
29966 Py_INCREF(Py_None); resultobj = Py_None;
29967 return resultobj;
29968 fail:
29969 return NULL;
29970 }
29971
29972
29973 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
29974 PyObject *resultobj = NULL;
29975 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29976 wxDataObject *arg2 = 0 ;
29977 PyObject * obj0 = 0 ;
29978 PyObject * obj1 = 0 ;
29979 char *kwnames[] = {
29980 (char *) "self",(char *) "data", NULL
29981 };
29982
29983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
29984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29985 if (SWIG_arg_fail(1)) SWIG_fail;
29986 {
29987 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
29988 if (SWIG_arg_fail(2)) SWIG_fail;
29989 if (arg2 == NULL) {
29990 SWIG_null_ref("wxDataObject");
29991 }
29992 if (SWIG_arg_fail(2)) SWIG_fail;
29993 }
29994 {
29995 PyThreadState* __tstate = wxPyBeginAllowThreads();
29996 (arg1)->SetData(*arg2);
29997
29998 wxPyEndAllowThreads(__tstate);
29999 if (PyErr_Occurred()) SWIG_fail;
30000 }
30001 Py_INCREF(Py_None); resultobj = Py_None;
30002 return resultobj;
30003 fail:
30004 return NULL;
30005 }
30006
30007
30008 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30009 PyObject *resultobj = NULL;
30010 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30011 wxDataObject *result;
30012 PyObject * obj0 = 0 ;
30013 char *kwnames[] = {
30014 (char *) "self", NULL
30015 };
30016
30017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
30018 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30019 if (SWIG_arg_fail(1)) SWIG_fail;
30020 {
30021 PyThreadState* __tstate = wxPyBeginAllowThreads();
30022 result = (wxDataObject *)(arg1)->GetDataObject();
30023
30024 wxPyEndAllowThreads(__tstate);
30025 if (PyErr_Occurred()) SWIG_fail;
30026 }
30027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
30028 return resultobj;
30029 fail:
30030 return NULL;
30031 }
30032
30033
30034 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
30035 PyObject *resultobj = NULL;
30036 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30037 wxDragResult arg2 ;
30038 wxCursor *arg3 = 0 ;
30039 PyObject * obj0 = 0 ;
30040 PyObject * obj1 = 0 ;
30041 PyObject * obj2 = 0 ;
30042 char *kwnames[] = {
30043 (char *) "self",(char *) "res",(char *) "cursor", NULL
30044 };
30045
30046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
30047 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30048 if (SWIG_arg_fail(1)) SWIG_fail;
30049 {
30050 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
30051 if (SWIG_arg_fail(2)) SWIG_fail;
30052 }
30053 {
30054 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
30055 if (SWIG_arg_fail(3)) SWIG_fail;
30056 if (arg3 == NULL) {
30057 SWIG_null_ref("wxCursor");
30058 }
30059 if (SWIG_arg_fail(3)) SWIG_fail;
30060 }
30061 {
30062 PyThreadState* __tstate = wxPyBeginAllowThreads();
30063 (arg1)->SetCursor(arg2,(wxCursor const &)*arg3);
30064
30065 wxPyEndAllowThreads(__tstate);
30066 if (PyErr_Occurred()) SWIG_fail;
30067 }
30068 Py_INCREF(Py_None); resultobj = Py_None;
30069 return resultobj;
30070 fail:
30071 return NULL;
30072 }
30073
30074
30075 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30076 PyObject *resultobj = NULL;
30077 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30078 int arg2 = (int) wxDrag_CopyOnly ;
30079 wxDragResult result;
30080 PyObject * obj0 = 0 ;
30081 PyObject * obj1 = 0 ;
30082 char *kwnames[] = {
30083 (char *) "self",(char *) "flags", NULL
30084 };
30085
30086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
30087 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30088 if (SWIG_arg_fail(1)) SWIG_fail;
30089 if (obj1) {
30090 {
30091 arg2 = static_cast<int >(SWIG_As_int(obj1));
30092 if (SWIG_arg_fail(2)) SWIG_fail;
30093 }
30094 }
30095 {
30096 PyThreadState* __tstate = wxPyBeginAllowThreads();
30097 result = (wxDragResult)(arg1)->DoDragDrop(arg2);
30098
30099 wxPyEndAllowThreads(__tstate);
30100 if (PyErr_Occurred()) SWIG_fail;
30101 }
30102 resultobj = SWIG_From_int((result));
30103 return resultobj;
30104 fail:
30105 return NULL;
30106 }
30107
30108
30109 static PyObject *_wrap_DropSource_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
30110 PyObject *resultobj = NULL;
30111 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30112 wxDragResult arg2 ;
30113 bool result;
30114 PyObject * obj0 = 0 ;
30115 PyObject * obj1 = 0 ;
30116 char *kwnames[] = {
30117 (char *) "self",(char *) "effect", NULL
30118 };
30119
30120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
30121 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30122 if (SWIG_arg_fail(1)) SWIG_fail;
30123 {
30124 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
30125 if (SWIG_arg_fail(2)) SWIG_fail;
30126 }
30127 {
30128 PyThreadState* __tstate = wxPyBeginAllowThreads();
30129 result = (bool)(arg1)->GiveFeedback(arg2);
30130
30131 wxPyEndAllowThreads(__tstate);
30132 if (PyErr_Occurred()) SWIG_fail;
30133 }
30134 {
30135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30136 }
30137 return resultobj;
30138 fail:
30139 return NULL;
30140 }
30141
30142
30143 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
30144 PyObject *obj;
30145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30146 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
30147 Py_INCREF(obj);
30148 return Py_BuildValue((char *)"");
30149 }
30150 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30151 PyObject *resultobj = NULL;
30152 wxDataObject *arg1 = (wxDataObject *) NULL ;
30153 wxPyDropTarget *result;
30154 PyObject * obj0 = 0 ;
30155 char *kwnames[] = {
30156 (char *) "dataObject", NULL
30157 };
30158
30159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
30160 if (obj0) {
30161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
30162 if (SWIG_arg_fail(1)) SWIG_fail;
30163 }
30164 {
30165 PyThreadState* __tstate = wxPyBeginAllowThreads();
30166 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
30167
30168 wxPyEndAllowThreads(__tstate);
30169 if (PyErr_Occurred()) SWIG_fail;
30170 }
30171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
30172 return resultobj;
30173 fail:
30174 return NULL;
30175 }
30176
30177
30178 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30179 PyObject *resultobj = NULL;
30180 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30181 PyObject *arg2 = (PyObject *) 0 ;
30182 PyObject *arg3 = (PyObject *) 0 ;
30183 PyObject * obj0 = 0 ;
30184 PyObject * obj1 = 0 ;
30185 PyObject * obj2 = 0 ;
30186 char *kwnames[] = {
30187 (char *) "self",(char *) "self",(char *) "_class", NULL
30188 };
30189
30190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30191 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30192 if (SWIG_arg_fail(1)) SWIG_fail;
30193 arg2 = obj1;
30194 arg3 = obj2;
30195 {
30196 PyThreadState* __tstate = wxPyBeginAllowThreads();
30197 (arg1)->_setCallbackInfo(arg2,arg3);
30198
30199 wxPyEndAllowThreads(__tstate);
30200 if (PyErr_Occurred()) SWIG_fail;
30201 }
30202 Py_INCREF(Py_None); resultobj = Py_None;
30203 return resultobj;
30204 fail:
30205 return NULL;
30206 }
30207
30208
30209 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30210 PyObject *resultobj = NULL;
30211 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30212 PyObject * obj0 = 0 ;
30213 char *kwnames[] = {
30214 (char *) "self", NULL
30215 };
30216
30217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
30218 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30219 if (SWIG_arg_fail(1)) SWIG_fail;
30220 {
30221 PyThreadState* __tstate = wxPyBeginAllowThreads();
30222 delete arg1;
30223
30224 wxPyEndAllowThreads(__tstate);
30225 if (PyErr_Occurred()) SWIG_fail;
30226 }
30227 Py_INCREF(Py_None); resultobj = Py_None;
30228 return resultobj;
30229 fail:
30230 return NULL;
30231 }
30232
30233
30234 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30235 PyObject *resultobj = NULL;
30236 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30237 wxDataObject *result;
30238 PyObject * obj0 = 0 ;
30239 char *kwnames[] = {
30240 (char *) "self", NULL
30241 };
30242
30243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
30244 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30245 if (SWIG_arg_fail(1)) SWIG_fail;
30246 {
30247 PyThreadState* __tstate = wxPyBeginAllowThreads();
30248 result = (wxDataObject *)(arg1)->GetDataObject();
30249
30250 wxPyEndAllowThreads(__tstate);
30251 if (PyErr_Occurred()) SWIG_fail;
30252 }
30253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
30254 return resultobj;
30255 fail:
30256 return NULL;
30257 }
30258
30259
30260 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30261 PyObject *resultobj = NULL;
30262 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30263 wxDataObject *arg2 = (wxDataObject *) 0 ;
30264 PyObject * obj0 = 0 ;
30265 PyObject * obj1 = 0 ;
30266 char *kwnames[] = {
30267 (char *) "self",(char *) "dataObject", NULL
30268 };
30269
30270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
30271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30272 if (SWIG_arg_fail(1)) SWIG_fail;
30273 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
30274 if (SWIG_arg_fail(2)) SWIG_fail;
30275 {
30276 PyThreadState* __tstate = wxPyBeginAllowThreads();
30277 (arg1)->SetDataObject(arg2);
30278
30279 wxPyEndAllowThreads(__tstate);
30280 if (PyErr_Occurred()) SWIG_fail;
30281 }
30282 Py_INCREF(Py_None); resultobj = Py_None;
30283 return resultobj;
30284 fail:
30285 return NULL;
30286 }
30287
30288
30289 static PyObject *_wrap_DropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30290 PyObject *resultobj = NULL;
30291 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30292 int arg2 ;
30293 int arg3 ;
30294 wxDragResult arg4 ;
30295 wxDragResult result;
30296 PyObject * obj0 = 0 ;
30297 PyObject * obj1 = 0 ;
30298 PyObject * obj2 = 0 ;
30299 PyObject * obj3 = 0 ;
30300 char *kwnames[] = {
30301 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30302 };
30303
30304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30305 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30306 if (SWIG_arg_fail(1)) SWIG_fail;
30307 {
30308 arg2 = static_cast<int >(SWIG_As_int(obj1));
30309 if (SWIG_arg_fail(2)) SWIG_fail;
30310 }
30311 {
30312 arg3 = static_cast<int >(SWIG_As_int(obj2));
30313 if (SWIG_arg_fail(3)) SWIG_fail;
30314 }
30315 {
30316 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30317 if (SWIG_arg_fail(4)) SWIG_fail;
30318 }
30319 {
30320 PyThreadState* __tstate = wxPyBeginAllowThreads();
30321 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
30322
30323 wxPyEndAllowThreads(__tstate);
30324 if (PyErr_Occurred()) SWIG_fail;
30325 }
30326 resultobj = SWIG_From_int((result));
30327 return resultobj;
30328 fail:
30329 return NULL;
30330 }
30331
30332
30333 static PyObject *_wrap_DropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
30334 PyObject *resultobj = NULL;
30335 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30336 int arg2 ;
30337 int arg3 ;
30338 wxDragResult arg4 ;
30339 wxDragResult result;
30340 PyObject * obj0 = 0 ;
30341 PyObject * obj1 = 0 ;
30342 PyObject * obj2 = 0 ;
30343 PyObject * obj3 = 0 ;
30344 char *kwnames[] = {
30345 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30346 };
30347
30348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30349 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30350 if (SWIG_arg_fail(1)) SWIG_fail;
30351 {
30352 arg2 = static_cast<int >(SWIG_As_int(obj1));
30353 if (SWIG_arg_fail(2)) SWIG_fail;
30354 }
30355 {
30356 arg3 = static_cast<int >(SWIG_As_int(obj2));
30357 if (SWIG_arg_fail(3)) SWIG_fail;
30358 }
30359 {
30360 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30361 if (SWIG_arg_fail(4)) SWIG_fail;
30362 }
30363 {
30364 PyThreadState* __tstate = wxPyBeginAllowThreads();
30365 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
30366
30367 wxPyEndAllowThreads(__tstate);
30368 if (PyErr_Occurred()) SWIG_fail;
30369 }
30370 resultobj = SWIG_From_int((result));
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 static PyObject *_wrap_DropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = NULL;
30379 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30380 PyObject * obj0 = 0 ;
30381 char *kwnames[] = {
30382 (char *) "self", NULL
30383 };
30384
30385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_OnLeave",kwnames,&obj0)) goto fail;
30386 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30387 if (SWIG_arg_fail(1)) SWIG_fail;
30388 {
30389 PyThreadState* __tstate = wxPyBeginAllowThreads();
30390 (arg1)->OnLeave();
30391
30392 wxPyEndAllowThreads(__tstate);
30393 if (PyErr_Occurred()) SWIG_fail;
30394 }
30395 Py_INCREF(Py_None); resultobj = Py_None;
30396 return resultobj;
30397 fail:
30398 return NULL;
30399 }
30400
30401
30402 static PyObject *_wrap_DropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30403 PyObject *resultobj = NULL;
30404 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30405 int arg2 ;
30406 int arg3 ;
30407 bool result;
30408 PyObject * obj0 = 0 ;
30409 PyObject * obj1 = 0 ;
30410 PyObject * obj2 = 0 ;
30411 char *kwnames[] = {
30412 (char *) "self",(char *) "x",(char *) "y", NULL
30413 };
30414
30415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30417 if (SWIG_arg_fail(1)) SWIG_fail;
30418 {
30419 arg2 = static_cast<int >(SWIG_As_int(obj1));
30420 if (SWIG_arg_fail(2)) SWIG_fail;
30421 }
30422 {
30423 arg3 = static_cast<int >(SWIG_As_int(obj2));
30424 if (SWIG_arg_fail(3)) SWIG_fail;
30425 }
30426 {
30427 PyThreadState* __tstate = wxPyBeginAllowThreads();
30428 result = (bool)(arg1)->OnDrop(arg2,arg3);
30429
30430 wxPyEndAllowThreads(__tstate);
30431 if (PyErr_Occurred()) SWIG_fail;
30432 }
30433 {
30434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30435 }
30436 return resultobj;
30437 fail:
30438 return NULL;
30439 }
30440
30441
30442 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
30443 PyObject *resultobj = NULL;
30444 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30445 bool result;
30446 PyObject * obj0 = 0 ;
30447 char *kwnames[] = {
30448 (char *) "self", NULL
30449 };
30450
30451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
30452 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30453 if (SWIG_arg_fail(1)) SWIG_fail;
30454 {
30455 PyThreadState* __tstate = wxPyBeginAllowThreads();
30456 result = (bool)(arg1)->GetData();
30457
30458 wxPyEndAllowThreads(__tstate);
30459 if (PyErr_Occurred()) SWIG_fail;
30460 }
30461 {
30462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30463 }
30464 return resultobj;
30465 fail:
30466 return NULL;
30467 }
30468
30469
30470 static PyObject *_wrap_DropTarget_SetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) {
30471 PyObject *resultobj = NULL;
30472 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30473 wxDragResult arg2 ;
30474 PyObject * obj0 = 0 ;
30475 PyObject * obj1 = 0 ;
30476 char *kwnames[] = {
30477 (char *) "self",(char *) "action", NULL
30478 };
30479
30480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDefaultAction",kwnames,&obj0,&obj1)) goto fail;
30481 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30482 if (SWIG_arg_fail(1)) SWIG_fail;
30483 {
30484 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
30485 if (SWIG_arg_fail(2)) SWIG_fail;
30486 }
30487 {
30488 PyThreadState* __tstate = wxPyBeginAllowThreads();
30489 (arg1)->SetDefaultAction(arg2);
30490
30491 wxPyEndAllowThreads(__tstate);
30492 if (PyErr_Occurred()) SWIG_fail;
30493 }
30494 Py_INCREF(Py_None); resultobj = Py_None;
30495 return resultobj;
30496 fail:
30497 return NULL;
30498 }
30499
30500
30501 static PyObject *_wrap_DropTarget_GetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) {
30502 PyObject *resultobj = NULL;
30503 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30504 wxDragResult result;
30505 PyObject * obj0 = 0 ;
30506 char *kwnames[] = {
30507 (char *) "self", NULL
30508 };
30509
30510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDefaultAction",kwnames,&obj0)) goto fail;
30511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30512 if (SWIG_arg_fail(1)) SWIG_fail;
30513 {
30514 PyThreadState* __tstate = wxPyBeginAllowThreads();
30515 result = (wxDragResult)(arg1)->GetDefaultAction();
30516
30517 wxPyEndAllowThreads(__tstate);
30518 if (PyErr_Occurred()) SWIG_fail;
30519 }
30520 resultobj = SWIG_From_int((result));
30521 return resultobj;
30522 fail:
30523 return NULL;
30524 }
30525
30526
30527 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
30528 PyObject *obj;
30529 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30530 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
30531 Py_INCREF(obj);
30532 return Py_BuildValue((char *)"");
30533 }
30534 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30535 PyObject *resultobj = NULL;
30536 wxPyTextDropTarget *result;
30537 char *kwnames[] = {
30538 NULL
30539 };
30540
30541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
30542 {
30543 PyThreadState* __tstate = wxPyBeginAllowThreads();
30544 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
30545
30546 wxPyEndAllowThreads(__tstate);
30547 if (PyErr_Occurred()) SWIG_fail;
30548 }
30549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
30550 return resultobj;
30551 fail:
30552 return NULL;
30553 }
30554
30555
30556 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30557 PyObject *resultobj = NULL;
30558 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30559 PyObject *arg2 = (PyObject *) 0 ;
30560 PyObject *arg3 = (PyObject *) 0 ;
30561 PyObject * obj0 = 0 ;
30562 PyObject * obj1 = 0 ;
30563 PyObject * obj2 = 0 ;
30564 char *kwnames[] = {
30565 (char *) "self",(char *) "self",(char *) "_class", NULL
30566 };
30567
30568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30570 if (SWIG_arg_fail(1)) SWIG_fail;
30571 arg2 = obj1;
30572 arg3 = obj2;
30573 {
30574 PyThreadState* __tstate = wxPyBeginAllowThreads();
30575 (arg1)->_setCallbackInfo(arg2,arg3);
30576
30577 wxPyEndAllowThreads(__tstate);
30578 if (PyErr_Occurred()) SWIG_fail;
30579 }
30580 Py_INCREF(Py_None); resultobj = Py_None;
30581 return resultobj;
30582 fail:
30583 return NULL;
30584 }
30585
30586
30587 static PyObject *_wrap_TextDropTarget_OnDropText(PyObject *, PyObject *args, PyObject *kwargs) {
30588 PyObject *resultobj = NULL;
30589 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30590 int arg2 ;
30591 int arg3 ;
30592 wxString *arg4 = 0 ;
30593 bool result;
30594 bool temp4 = false ;
30595 PyObject * obj0 = 0 ;
30596 PyObject * obj1 = 0 ;
30597 PyObject * obj2 = 0 ;
30598 PyObject * obj3 = 0 ;
30599 char *kwnames[] = {
30600 (char *) "self",(char *) "x",(char *) "y",(char *) "text", NULL
30601 };
30602
30603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDropText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30604 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30605 if (SWIG_arg_fail(1)) SWIG_fail;
30606 {
30607 arg2 = static_cast<int >(SWIG_As_int(obj1));
30608 if (SWIG_arg_fail(2)) SWIG_fail;
30609 }
30610 {
30611 arg3 = static_cast<int >(SWIG_As_int(obj2));
30612 if (SWIG_arg_fail(3)) SWIG_fail;
30613 }
30614 {
30615 arg4 = wxString_in_helper(obj3);
30616 if (arg4 == NULL) SWIG_fail;
30617 temp4 = true;
30618 }
30619 {
30620 PyThreadState* __tstate = wxPyBeginAllowThreads();
30621 result = (bool)(arg1)->OnDropText(arg2,arg3,(wxString const &)*arg4);
30622
30623 wxPyEndAllowThreads(__tstate);
30624 if (PyErr_Occurred()) SWIG_fail;
30625 }
30626 {
30627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30628 }
30629 {
30630 if (temp4)
30631 delete arg4;
30632 }
30633 return resultobj;
30634 fail:
30635 {
30636 if (temp4)
30637 delete arg4;
30638 }
30639 return NULL;
30640 }
30641
30642
30643 static PyObject *_wrap_TextDropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30644 PyObject *resultobj = NULL;
30645 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30646 int arg2 ;
30647 int arg3 ;
30648 wxDragResult arg4 ;
30649 wxDragResult result;
30650 PyObject * obj0 = 0 ;
30651 PyObject * obj1 = 0 ;
30652 PyObject * obj2 = 0 ;
30653 PyObject * obj3 = 0 ;
30654 char *kwnames[] = {
30655 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30656 };
30657
30658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30659 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30660 if (SWIG_arg_fail(1)) SWIG_fail;
30661 {
30662 arg2 = static_cast<int >(SWIG_As_int(obj1));
30663 if (SWIG_arg_fail(2)) SWIG_fail;
30664 }
30665 {
30666 arg3 = static_cast<int >(SWIG_As_int(obj2));
30667 if (SWIG_arg_fail(3)) SWIG_fail;
30668 }
30669 {
30670 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30671 if (SWIG_arg_fail(4)) SWIG_fail;
30672 }
30673 {
30674 PyThreadState* __tstate = wxPyBeginAllowThreads();
30675 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
30676
30677 wxPyEndAllowThreads(__tstate);
30678 if (PyErr_Occurred()) SWIG_fail;
30679 }
30680 resultobj = SWIG_From_int((result));
30681 return resultobj;
30682 fail:
30683 return NULL;
30684 }
30685
30686
30687 static PyObject *_wrap_TextDropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
30688 PyObject *resultobj = NULL;
30689 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30690 int arg2 ;
30691 int arg3 ;
30692 wxDragResult arg4 ;
30693 wxDragResult result;
30694 PyObject * obj0 = 0 ;
30695 PyObject * obj1 = 0 ;
30696 PyObject * obj2 = 0 ;
30697 PyObject * obj3 = 0 ;
30698 char *kwnames[] = {
30699 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30700 };
30701
30702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30704 if (SWIG_arg_fail(1)) SWIG_fail;
30705 {
30706 arg2 = static_cast<int >(SWIG_As_int(obj1));
30707 if (SWIG_arg_fail(2)) SWIG_fail;
30708 }
30709 {
30710 arg3 = static_cast<int >(SWIG_As_int(obj2));
30711 if (SWIG_arg_fail(3)) SWIG_fail;
30712 }
30713 {
30714 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30715 if (SWIG_arg_fail(4)) SWIG_fail;
30716 }
30717 {
30718 PyThreadState* __tstate = wxPyBeginAllowThreads();
30719 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
30720
30721 wxPyEndAllowThreads(__tstate);
30722 if (PyErr_Occurred()) SWIG_fail;
30723 }
30724 resultobj = SWIG_From_int((result));
30725 return resultobj;
30726 fail:
30727 return NULL;
30728 }
30729
30730
30731 static PyObject *_wrap_TextDropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
30732 PyObject *resultobj = NULL;
30733 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30734 PyObject * obj0 = 0 ;
30735 char *kwnames[] = {
30736 (char *) "self", NULL
30737 };
30738
30739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_OnLeave",kwnames,&obj0)) goto fail;
30740 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30741 if (SWIG_arg_fail(1)) SWIG_fail;
30742 {
30743 PyThreadState* __tstate = wxPyBeginAllowThreads();
30744 (arg1)->OnLeave();
30745
30746 wxPyEndAllowThreads(__tstate);
30747 if (PyErr_Occurred()) SWIG_fail;
30748 }
30749 Py_INCREF(Py_None); resultobj = Py_None;
30750 return resultobj;
30751 fail:
30752 return NULL;
30753 }
30754
30755
30756 static PyObject *_wrap_TextDropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30757 PyObject *resultobj = NULL;
30758 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30759 int arg2 ;
30760 int arg3 ;
30761 bool result;
30762 PyObject * obj0 = 0 ;
30763 PyObject * obj1 = 0 ;
30764 PyObject * obj2 = 0 ;
30765 char *kwnames[] = {
30766 (char *) "self",(char *) "x",(char *) "y", NULL
30767 };
30768
30769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30770 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30771 if (SWIG_arg_fail(1)) SWIG_fail;
30772 {
30773 arg2 = static_cast<int >(SWIG_As_int(obj1));
30774 if (SWIG_arg_fail(2)) SWIG_fail;
30775 }
30776 {
30777 arg3 = static_cast<int >(SWIG_As_int(obj2));
30778 if (SWIG_arg_fail(3)) SWIG_fail;
30779 }
30780 {
30781 PyThreadState* __tstate = wxPyBeginAllowThreads();
30782 result = (bool)(arg1)->OnDrop(arg2,arg3);
30783
30784 wxPyEndAllowThreads(__tstate);
30785 if (PyErr_Occurred()) SWIG_fail;
30786 }
30787 {
30788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30789 }
30790 return resultobj;
30791 fail:
30792 return NULL;
30793 }
30794
30795
30796 static PyObject *_wrap_TextDropTarget_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
30797 PyObject *resultobj = NULL;
30798 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30799 int arg2 ;
30800 int arg3 ;
30801 wxDragResult arg4 ;
30802 wxDragResult result;
30803 PyObject * obj0 = 0 ;
30804 PyObject * obj1 = 0 ;
30805 PyObject * obj2 = 0 ;
30806 PyObject * obj3 = 0 ;
30807 char *kwnames[] = {
30808 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30809 };
30810
30811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30813 if (SWIG_arg_fail(1)) SWIG_fail;
30814 {
30815 arg2 = static_cast<int >(SWIG_As_int(obj1));
30816 if (SWIG_arg_fail(2)) SWIG_fail;
30817 }
30818 {
30819 arg3 = static_cast<int >(SWIG_As_int(obj2));
30820 if (SWIG_arg_fail(3)) SWIG_fail;
30821 }
30822 {
30823 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30824 if (SWIG_arg_fail(4)) SWIG_fail;
30825 }
30826 {
30827 PyThreadState* __tstate = wxPyBeginAllowThreads();
30828 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
30829
30830 wxPyEndAllowThreads(__tstate);
30831 if (PyErr_Occurred()) SWIG_fail;
30832 }
30833 resultobj = SWIG_From_int((result));
30834 return resultobj;
30835 fail:
30836 return NULL;
30837 }
30838
30839
30840 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
30841 PyObject *obj;
30842 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30843 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
30844 Py_INCREF(obj);
30845 return Py_BuildValue((char *)"");
30846 }
30847 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30848 PyObject *resultobj = NULL;
30849 wxPyFileDropTarget *result;
30850 char *kwnames[] = {
30851 NULL
30852 };
30853
30854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
30855 {
30856 PyThreadState* __tstate = wxPyBeginAllowThreads();
30857 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
30858
30859 wxPyEndAllowThreads(__tstate);
30860 if (PyErr_Occurred()) SWIG_fail;
30861 }
30862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
30863 return resultobj;
30864 fail:
30865 return NULL;
30866 }
30867
30868
30869 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30870 PyObject *resultobj = NULL;
30871 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30872 PyObject *arg2 = (PyObject *) 0 ;
30873 PyObject *arg3 = (PyObject *) 0 ;
30874 PyObject * obj0 = 0 ;
30875 PyObject * obj1 = 0 ;
30876 PyObject * obj2 = 0 ;
30877 char *kwnames[] = {
30878 (char *) "self",(char *) "self",(char *) "_class", NULL
30879 };
30880
30881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30883 if (SWIG_arg_fail(1)) SWIG_fail;
30884 arg2 = obj1;
30885 arg3 = obj2;
30886 {
30887 PyThreadState* __tstate = wxPyBeginAllowThreads();
30888 (arg1)->_setCallbackInfo(arg2,arg3);
30889
30890 wxPyEndAllowThreads(__tstate);
30891 if (PyErr_Occurred()) SWIG_fail;
30892 }
30893 Py_INCREF(Py_None); resultobj = Py_None;
30894 return resultobj;
30895 fail:
30896 return NULL;
30897 }
30898
30899
30900 static PyObject *_wrap_FileDropTarget_OnDropFiles(PyObject *, PyObject *args, PyObject *kwargs) {
30901 PyObject *resultobj = NULL;
30902 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30903 int arg2 ;
30904 int arg3 ;
30905 wxArrayString *arg4 = 0 ;
30906 bool result;
30907 bool temp4 = false ;
30908 PyObject * obj0 = 0 ;
30909 PyObject * obj1 = 0 ;
30910 PyObject * obj2 = 0 ;
30911 PyObject * obj3 = 0 ;
30912 char *kwnames[] = {
30913 (char *) "self",(char *) "x",(char *) "y",(char *) "filenames", NULL
30914 };
30915
30916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDropFiles",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30918 if (SWIG_arg_fail(1)) SWIG_fail;
30919 {
30920 arg2 = static_cast<int >(SWIG_As_int(obj1));
30921 if (SWIG_arg_fail(2)) SWIG_fail;
30922 }
30923 {
30924 arg3 = static_cast<int >(SWIG_As_int(obj2));
30925 if (SWIG_arg_fail(3)) SWIG_fail;
30926 }
30927 {
30928 if (! PySequence_Check(obj3)) {
30929 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
30930 SWIG_fail;
30931 }
30932 arg4 = new wxArrayString;
30933 temp4 = true;
30934 int i, len=PySequence_Length(obj3);
30935 for (i=0; i<len; i++) {
30936 PyObject* item = PySequence_GetItem(obj3, i);
30937 wxString* s = wxString_in_helper(item);
30938 if (PyErr_Occurred()) SWIG_fail;
30939 arg4->Add(*s);
30940 delete s;
30941 Py_DECREF(item);
30942 }
30943 }
30944 {
30945 PyThreadState* __tstate = wxPyBeginAllowThreads();
30946 result = (bool)(arg1)->OnDropFiles(arg2,arg3,(wxArrayString const &)*arg4);
30947
30948 wxPyEndAllowThreads(__tstate);
30949 if (PyErr_Occurred()) SWIG_fail;
30950 }
30951 {
30952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30953 }
30954 {
30955 if (temp4) delete arg4;
30956 }
30957 return resultobj;
30958 fail:
30959 {
30960 if (temp4) delete arg4;
30961 }
30962 return NULL;
30963 }
30964
30965
30966 static PyObject *_wrap_FileDropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30967 PyObject *resultobj = NULL;
30968 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30969 int arg2 ;
30970 int arg3 ;
30971 wxDragResult arg4 ;
30972 wxDragResult result;
30973 PyObject * obj0 = 0 ;
30974 PyObject * obj1 = 0 ;
30975 PyObject * obj2 = 0 ;
30976 PyObject * obj3 = 0 ;
30977 char *kwnames[] = {
30978 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30979 };
30980
30981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30983 if (SWIG_arg_fail(1)) SWIG_fail;
30984 {
30985 arg2 = static_cast<int >(SWIG_As_int(obj1));
30986 if (SWIG_arg_fail(2)) SWIG_fail;
30987 }
30988 {
30989 arg3 = static_cast<int >(SWIG_As_int(obj2));
30990 if (SWIG_arg_fail(3)) SWIG_fail;
30991 }
30992 {
30993 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30994 if (SWIG_arg_fail(4)) SWIG_fail;
30995 }
30996 {
30997 PyThreadState* __tstate = wxPyBeginAllowThreads();
30998 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
30999
31000 wxPyEndAllowThreads(__tstate);
31001 if (PyErr_Occurred()) SWIG_fail;
31002 }
31003 resultobj = SWIG_From_int((result));
31004 return resultobj;
31005 fail:
31006 return NULL;
31007 }
31008
31009
31010 static PyObject *_wrap_FileDropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
31011 PyObject *resultobj = NULL;
31012 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31013 int arg2 ;
31014 int arg3 ;
31015 wxDragResult arg4 ;
31016 wxDragResult result;
31017 PyObject * obj0 = 0 ;
31018 PyObject * obj1 = 0 ;
31019 PyObject * obj2 = 0 ;
31020 PyObject * obj3 = 0 ;
31021 char *kwnames[] = {
31022 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
31023 };
31024
31025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31027 if (SWIG_arg_fail(1)) SWIG_fail;
31028 {
31029 arg2 = static_cast<int >(SWIG_As_int(obj1));
31030 if (SWIG_arg_fail(2)) SWIG_fail;
31031 }
31032 {
31033 arg3 = static_cast<int >(SWIG_As_int(obj2));
31034 if (SWIG_arg_fail(3)) SWIG_fail;
31035 }
31036 {
31037 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
31038 if (SWIG_arg_fail(4)) SWIG_fail;
31039 }
31040 {
31041 PyThreadState* __tstate = wxPyBeginAllowThreads();
31042 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
31043
31044 wxPyEndAllowThreads(__tstate);
31045 if (PyErr_Occurred()) SWIG_fail;
31046 }
31047 resultobj = SWIG_From_int((result));
31048 return resultobj;
31049 fail:
31050 return NULL;
31051 }
31052
31053
31054 static PyObject *_wrap_FileDropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
31055 PyObject *resultobj = NULL;
31056 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31057 PyObject * obj0 = 0 ;
31058 char *kwnames[] = {
31059 (char *) "self", NULL
31060 };
31061
31062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_OnLeave",kwnames,&obj0)) goto fail;
31063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31064 if (SWIG_arg_fail(1)) SWIG_fail;
31065 {
31066 PyThreadState* __tstate = wxPyBeginAllowThreads();
31067 (arg1)->OnLeave();
31068
31069 wxPyEndAllowThreads(__tstate);
31070 if (PyErr_Occurred()) SWIG_fail;
31071 }
31072 Py_INCREF(Py_None); resultobj = Py_None;
31073 return resultobj;
31074 fail:
31075 return NULL;
31076 }
31077
31078
31079 static PyObject *_wrap_FileDropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
31080 PyObject *resultobj = NULL;
31081 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31082 int arg2 ;
31083 int arg3 ;
31084 bool result;
31085 PyObject * obj0 = 0 ;
31086 PyObject * obj1 = 0 ;
31087 PyObject * obj2 = 0 ;
31088 char *kwnames[] = {
31089 (char *) "self",(char *) "x",(char *) "y", NULL
31090 };
31091
31092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31094 if (SWIG_arg_fail(1)) SWIG_fail;
31095 {
31096 arg2 = static_cast<int >(SWIG_As_int(obj1));
31097 if (SWIG_arg_fail(2)) SWIG_fail;
31098 }
31099 {
31100 arg3 = static_cast<int >(SWIG_As_int(obj2));
31101 if (SWIG_arg_fail(3)) SWIG_fail;
31102 }
31103 {
31104 PyThreadState* __tstate = wxPyBeginAllowThreads();
31105 result = (bool)(arg1)->OnDrop(arg2,arg3);
31106
31107 wxPyEndAllowThreads(__tstate);
31108 if (PyErr_Occurred()) SWIG_fail;
31109 }
31110 {
31111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31112 }
31113 return resultobj;
31114 fail:
31115 return NULL;
31116 }
31117
31118
31119 static PyObject *_wrap_FileDropTarget_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
31120 PyObject *resultobj = NULL;
31121 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31122 int arg2 ;
31123 int arg3 ;
31124 wxDragResult arg4 ;
31125 wxDragResult result;
31126 PyObject * obj0 = 0 ;
31127 PyObject * obj1 = 0 ;
31128 PyObject * obj2 = 0 ;
31129 PyObject * obj3 = 0 ;
31130 char *kwnames[] = {
31131 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
31132 };
31133
31134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31135 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31136 if (SWIG_arg_fail(1)) SWIG_fail;
31137 {
31138 arg2 = static_cast<int >(SWIG_As_int(obj1));
31139 if (SWIG_arg_fail(2)) SWIG_fail;
31140 }
31141 {
31142 arg3 = static_cast<int >(SWIG_As_int(obj2));
31143 if (SWIG_arg_fail(3)) SWIG_fail;
31144 }
31145 {
31146 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
31147 if (SWIG_arg_fail(4)) SWIG_fail;
31148 }
31149 {
31150 PyThreadState* __tstate = wxPyBeginAllowThreads();
31151 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
31152
31153 wxPyEndAllowThreads(__tstate);
31154 if (PyErr_Occurred()) SWIG_fail;
31155 }
31156 resultobj = SWIG_From_int((result));
31157 return resultobj;
31158 fail:
31159 return NULL;
31160 }
31161
31162
31163 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
31164 PyObject *obj;
31165 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31166 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
31167 Py_INCREF(obj);
31168 return Py_BuildValue((char *)"");
31169 }
31170 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
31171 PyObject *resultobj = NULL;
31172 wxClipboard *result;
31173 char *kwnames[] = {
31174 NULL
31175 };
31176
31177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
31178 {
31179 PyThreadState* __tstate = wxPyBeginAllowThreads();
31180 result = (wxClipboard *)new wxClipboard();
31181
31182 wxPyEndAllowThreads(__tstate);
31183 if (PyErr_Occurred()) SWIG_fail;
31184 }
31185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
31186 return resultobj;
31187 fail:
31188 return NULL;
31189 }
31190
31191
31192 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
31193 PyObject *resultobj = NULL;
31194 wxClipboard *arg1 = (wxClipboard *) 0 ;
31195 PyObject * obj0 = 0 ;
31196 char *kwnames[] = {
31197 (char *) "self", NULL
31198 };
31199
31200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
31201 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31202 if (SWIG_arg_fail(1)) SWIG_fail;
31203 {
31204 PyThreadState* __tstate = wxPyBeginAllowThreads();
31205 delete arg1;
31206
31207 wxPyEndAllowThreads(__tstate);
31208 if (PyErr_Occurred()) SWIG_fail;
31209 }
31210 Py_INCREF(Py_None); resultobj = Py_None;
31211 return resultobj;
31212 fail:
31213 return NULL;
31214 }
31215
31216
31217 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
31218 PyObject *resultobj = NULL;
31219 wxClipboard *arg1 = (wxClipboard *) 0 ;
31220 bool result;
31221 PyObject * obj0 = 0 ;
31222 char *kwnames[] = {
31223 (char *) "self", NULL
31224 };
31225
31226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
31227 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31228 if (SWIG_arg_fail(1)) SWIG_fail;
31229 {
31230 PyThreadState* __tstate = wxPyBeginAllowThreads();
31231 result = (bool)(arg1)->Open();
31232
31233 wxPyEndAllowThreads(__tstate);
31234 if (PyErr_Occurred()) SWIG_fail;
31235 }
31236 {
31237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31238 }
31239 return resultobj;
31240 fail:
31241 return NULL;
31242 }
31243
31244
31245 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
31246 PyObject *resultobj = NULL;
31247 wxClipboard *arg1 = (wxClipboard *) 0 ;
31248 PyObject * obj0 = 0 ;
31249 char *kwnames[] = {
31250 (char *) "self", NULL
31251 };
31252
31253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
31254 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31255 if (SWIG_arg_fail(1)) SWIG_fail;
31256 {
31257 PyThreadState* __tstate = wxPyBeginAllowThreads();
31258 (arg1)->Close();
31259
31260 wxPyEndAllowThreads(__tstate);
31261 if (PyErr_Occurred()) SWIG_fail;
31262 }
31263 Py_INCREF(Py_None); resultobj = Py_None;
31264 return resultobj;
31265 fail:
31266 return NULL;
31267 }
31268
31269
31270 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
31271 PyObject *resultobj = NULL;
31272 wxClipboard *arg1 = (wxClipboard *) 0 ;
31273 bool result;
31274 PyObject * obj0 = 0 ;
31275 char *kwnames[] = {
31276 (char *) "self", NULL
31277 };
31278
31279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
31280 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31281 if (SWIG_arg_fail(1)) SWIG_fail;
31282 {
31283 PyThreadState* __tstate = wxPyBeginAllowThreads();
31284 result = (bool)((wxClipboard const *)arg1)->IsOpened();
31285
31286 wxPyEndAllowThreads(__tstate);
31287 if (PyErr_Occurred()) SWIG_fail;
31288 }
31289 {
31290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31291 }
31292 return resultobj;
31293 fail:
31294 return NULL;
31295 }
31296
31297
31298 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
31299 PyObject *resultobj = NULL;
31300 wxClipboard *arg1 = (wxClipboard *) 0 ;
31301 wxDataObject *arg2 = (wxDataObject *) 0 ;
31302 bool result;
31303 PyObject * obj0 = 0 ;
31304 PyObject * obj1 = 0 ;
31305 char *kwnames[] = {
31306 (char *) "self",(char *) "data", NULL
31307 };
31308
31309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
31310 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31311 if (SWIG_arg_fail(1)) SWIG_fail;
31312 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
31313 if (SWIG_arg_fail(2)) SWIG_fail;
31314 {
31315 PyThreadState* __tstate = wxPyBeginAllowThreads();
31316 result = (bool)(arg1)->AddData(arg2);
31317
31318 wxPyEndAllowThreads(__tstate);
31319 if (PyErr_Occurred()) SWIG_fail;
31320 }
31321 {
31322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31323 }
31324 return resultobj;
31325 fail:
31326 return NULL;
31327 }
31328
31329
31330 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
31331 PyObject *resultobj = NULL;
31332 wxClipboard *arg1 = (wxClipboard *) 0 ;
31333 wxDataObject *arg2 = (wxDataObject *) 0 ;
31334 bool result;
31335 PyObject * obj0 = 0 ;
31336 PyObject * obj1 = 0 ;
31337 char *kwnames[] = {
31338 (char *) "self",(char *) "data", NULL
31339 };
31340
31341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
31342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31343 if (SWIG_arg_fail(1)) SWIG_fail;
31344 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
31345 if (SWIG_arg_fail(2)) SWIG_fail;
31346 {
31347 PyThreadState* __tstate = wxPyBeginAllowThreads();
31348 result = (bool)(arg1)->SetData(arg2);
31349
31350 wxPyEndAllowThreads(__tstate);
31351 if (PyErr_Occurred()) SWIG_fail;
31352 }
31353 {
31354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31355 }
31356 return resultobj;
31357 fail:
31358 return NULL;
31359 }
31360
31361
31362 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
31363 PyObject *resultobj = NULL;
31364 wxClipboard *arg1 = (wxClipboard *) 0 ;
31365 wxDataFormat *arg2 = 0 ;
31366 bool result;
31367 PyObject * obj0 = 0 ;
31368 PyObject * obj1 = 0 ;
31369 char *kwnames[] = {
31370 (char *) "self",(char *) "format", NULL
31371 };
31372
31373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
31374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31375 if (SWIG_arg_fail(1)) SWIG_fail;
31376 {
31377 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
31378 if (SWIG_arg_fail(2)) SWIG_fail;
31379 if (arg2 == NULL) {
31380 SWIG_null_ref("wxDataFormat");
31381 }
31382 if (SWIG_arg_fail(2)) SWIG_fail;
31383 }
31384 {
31385 PyThreadState* __tstate = wxPyBeginAllowThreads();
31386 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
31387
31388 wxPyEndAllowThreads(__tstate);
31389 if (PyErr_Occurred()) SWIG_fail;
31390 }
31391 {
31392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31393 }
31394 return resultobj;
31395 fail:
31396 return NULL;
31397 }
31398
31399
31400 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj = NULL;
31402 wxClipboard *arg1 = (wxClipboard *) 0 ;
31403 wxDataObject *arg2 = 0 ;
31404 bool result;
31405 PyObject * obj0 = 0 ;
31406 PyObject * obj1 = 0 ;
31407 char *kwnames[] = {
31408 (char *) "self",(char *) "data", NULL
31409 };
31410
31411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
31412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31413 if (SWIG_arg_fail(1)) SWIG_fail;
31414 {
31415 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
31416 if (SWIG_arg_fail(2)) SWIG_fail;
31417 if (arg2 == NULL) {
31418 SWIG_null_ref("wxDataObject");
31419 }
31420 if (SWIG_arg_fail(2)) SWIG_fail;
31421 }
31422 {
31423 PyThreadState* __tstate = wxPyBeginAllowThreads();
31424 result = (bool)(arg1)->GetData(*arg2);
31425
31426 wxPyEndAllowThreads(__tstate);
31427 if (PyErr_Occurred()) SWIG_fail;
31428 }
31429 {
31430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31431 }
31432 return resultobj;
31433 fail:
31434 return NULL;
31435 }
31436
31437
31438 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
31439 PyObject *resultobj = NULL;
31440 wxClipboard *arg1 = (wxClipboard *) 0 ;
31441 PyObject * obj0 = 0 ;
31442 char *kwnames[] = {
31443 (char *) "self", NULL
31444 };
31445
31446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
31447 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31448 if (SWIG_arg_fail(1)) SWIG_fail;
31449 {
31450 PyThreadState* __tstate = wxPyBeginAllowThreads();
31451 (arg1)->Clear();
31452
31453 wxPyEndAllowThreads(__tstate);
31454 if (PyErr_Occurred()) SWIG_fail;
31455 }
31456 Py_INCREF(Py_None); resultobj = Py_None;
31457 return resultobj;
31458 fail:
31459 return NULL;
31460 }
31461
31462
31463 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
31464 PyObject *resultobj = NULL;
31465 wxClipboard *arg1 = (wxClipboard *) 0 ;
31466 bool result;
31467 PyObject * obj0 = 0 ;
31468 char *kwnames[] = {
31469 (char *) "self", NULL
31470 };
31471
31472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
31473 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31474 if (SWIG_arg_fail(1)) SWIG_fail;
31475 {
31476 PyThreadState* __tstate = wxPyBeginAllowThreads();
31477 result = (bool)(arg1)->Flush();
31478
31479 wxPyEndAllowThreads(__tstate);
31480 if (PyErr_Occurred()) SWIG_fail;
31481 }
31482 {
31483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31484 }
31485 return resultobj;
31486 fail:
31487 return NULL;
31488 }
31489
31490
31491 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
31492 PyObject *resultobj = NULL;
31493 wxClipboard *arg1 = (wxClipboard *) 0 ;
31494 bool arg2 = (bool) true ;
31495 PyObject * obj0 = 0 ;
31496 PyObject * obj1 = 0 ;
31497 char *kwnames[] = {
31498 (char *) "self",(char *) "primary", NULL
31499 };
31500
31501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
31502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31503 if (SWIG_arg_fail(1)) SWIG_fail;
31504 if (obj1) {
31505 {
31506 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
31507 if (SWIG_arg_fail(2)) SWIG_fail;
31508 }
31509 }
31510 {
31511 PyThreadState* __tstate = wxPyBeginAllowThreads();
31512 (arg1)->UsePrimarySelection(arg2);
31513
31514 wxPyEndAllowThreads(__tstate);
31515 if (PyErr_Occurred()) SWIG_fail;
31516 }
31517 Py_INCREF(Py_None); resultobj = Py_None;
31518 return resultobj;
31519 fail:
31520 return NULL;
31521 }
31522
31523
31524 static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
31525 PyObject *resultobj = NULL;
31526 wxClipboard *result;
31527 char *kwnames[] = {
31528 NULL
31529 };
31530
31531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
31532 {
31533 PyThreadState* __tstate = wxPyBeginAllowThreads();
31534 result = (wxClipboard *)wxClipboard::Get();
31535
31536 wxPyEndAllowThreads(__tstate);
31537 if (PyErr_Occurred()) SWIG_fail;
31538 }
31539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
31540 return resultobj;
31541 fail:
31542 return NULL;
31543 }
31544
31545
31546 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
31547 PyObject *obj;
31548 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31549 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
31550 Py_INCREF(obj);
31551 return Py_BuildValue((char *)"");
31552 }
31553 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
31554 PyObject *resultobj = NULL;
31555 wxClipboard *arg1 = (wxClipboard *) NULL ;
31556 wxClipboardLocker *result;
31557 PyObject * obj0 = 0 ;
31558 char *kwnames[] = {
31559 (char *) "clipboard", NULL
31560 };
31561
31562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
31563 if (obj0) {
31564 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31565 if (SWIG_arg_fail(1)) SWIG_fail;
31566 }
31567 {
31568 PyThreadState* __tstate = wxPyBeginAllowThreads();
31569 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
31570
31571 wxPyEndAllowThreads(__tstate);
31572 if (PyErr_Occurred()) SWIG_fail;
31573 }
31574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
31575 return resultobj;
31576 fail:
31577 return NULL;
31578 }
31579
31580
31581 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
31582 PyObject *resultobj = NULL;
31583 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
31584 PyObject * obj0 = 0 ;
31585 char *kwnames[] = {
31586 (char *) "self", NULL
31587 };
31588
31589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
31590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0);
31591 if (SWIG_arg_fail(1)) SWIG_fail;
31592 {
31593 PyThreadState* __tstate = wxPyBeginAllowThreads();
31594 delete arg1;
31595
31596 wxPyEndAllowThreads(__tstate);
31597 if (PyErr_Occurred()) SWIG_fail;
31598 }
31599 Py_INCREF(Py_None); resultobj = Py_None;
31600 return resultobj;
31601 fail:
31602 return NULL;
31603 }
31604
31605
31606 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
31607 PyObject *resultobj = NULL;
31608 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
31609 bool result;
31610 PyObject * obj0 = 0 ;
31611 char *kwnames[] = {
31612 (char *) "self", NULL
31613 };
31614
31615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
31616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0);
31617 if (SWIG_arg_fail(1)) SWIG_fail;
31618 {
31619 PyThreadState* __tstate = wxPyBeginAllowThreads();
31620 result = (bool)wxClipboardLocker___nonzero__(arg1);
31621
31622 wxPyEndAllowThreads(__tstate);
31623 if (PyErr_Occurred()) SWIG_fail;
31624 }
31625 {
31626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31627 }
31628 return resultobj;
31629 fail:
31630 return NULL;
31631 }
31632
31633
31634 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
31635 PyObject *obj;
31636 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31637 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
31638 Py_INCREF(obj);
31639 return Py_BuildValue((char *)"");
31640 }
31641 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
31642 PyObject *resultobj = NULL;
31643 int arg1 = (int) 0 ;
31644 int arg2 = (int) 0 ;
31645 int arg3 = (int) 0 ;
31646 int arg4 = (int) 0 ;
31647 wxVideoMode *result;
31648 PyObject * obj0 = 0 ;
31649 PyObject * obj1 = 0 ;
31650 PyObject * obj2 = 0 ;
31651 PyObject * obj3 = 0 ;
31652 char *kwnames[] = {
31653 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
31654 };
31655
31656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31657 if (obj0) {
31658 {
31659 arg1 = static_cast<int >(SWIG_As_int(obj0));
31660 if (SWIG_arg_fail(1)) SWIG_fail;
31661 }
31662 }
31663 if (obj1) {
31664 {
31665 arg2 = static_cast<int >(SWIG_As_int(obj1));
31666 if (SWIG_arg_fail(2)) SWIG_fail;
31667 }
31668 }
31669 if (obj2) {
31670 {
31671 arg3 = static_cast<int >(SWIG_As_int(obj2));
31672 if (SWIG_arg_fail(3)) SWIG_fail;
31673 }
31674 }
31675 if (obj3) {
31676 {
31677 arg4 = static_cast<int >(SWIG_As_int(obj3));
31678 if (SWIG_arg_fail(4)) SWIG_fail;
31679 }
31680 }
31681 {
31682 PyThreadState* __tstate = wxPyBeginAllowThreads();
31683 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
31684
31685 wxPyEndAllowThreads(__tstate);
31686 if (PyErr_Occurred()) SWIG_fail;
31687 }
31688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
31689 return resultobj;
31690 fail:
31691 return NULL;
31692 }
31693
31694
31695 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
31696 PyObject *resultobj = NULL;
31697 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31698 PyObject * obj0 = 0 ;
31699 char *kwnames[] = {
31700 (char *) "self", NULL
31701 };
31702
31703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
31704 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31705 if (SWIG_arg_fail(1)) SWIG_fail;
31706 {
31707 PyThreadState* __tstate = wxPyBeginAllowThreads();
31708 delete arg1;
31709
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 Py_INCREF(Py_None); resultobj = Py_None;
31714 return resultobj;
31715 fail:
31716 return NULL;
31717 }
31718
31719
31720 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
31721 PyObject *resultobj = NULL;
31722 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31723 wxVideoMode *arg2 = 0 ;
31724 bool result;
31725 PyObject * obj0 = 0 ;
31726 PyObject * obj1 = 0 ;
31727 char *kwnames[] = {
31728 (char *) "self",(char *) "other", NULL
31729 };
31730
31731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
31732 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31733 if (SWIG_arg_fail(1)) SWIG_fail;
31734 {
31735 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31736 if (SWIG_arg_fail(2)) SWIG_fail;
31737 if (arg2 == NULL) {
31738 SWIG_null_ref("wxVideoMode");
31739 }
31740 if (SWIG_arg_fail(2)) SWIG_fail;
31741 }
31742 {
31743 PyThreadState* __tstate = wxPyBeginAllowThreads();
31744 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
31745
31746 wxPyEndAllowThreads(__tstate);
31747 if (PyErr_Occurred()) SWIG_fail;
31748 }
31749 {
31750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31751 }
31752 return resultobj;
31753 fail:
31754 return NULL;
31755 }
31756
31757
31758 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
31759 PyObject *resultobj = NULL;
31760 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31761 int result;
31762 PyObject * obj0 = 0 ;
31763 char *kwnames[] = {
31764 (char *) "self", NULL
31765 };
31766
31767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
31768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31769 if (SWIG_arg_fail(1)) SWIG_fail;
31770 {
31771 PyThreadState* __tstate = wxPyBeginAllowThreads();
31772 result = (int)((wxVideoMode const *)arg1)->GetWidth();
31773
31774 wxPyEndAllowThreads(__tstate);
31775 if (PyErr_Occurred()) SWIG_fail;
31776 }
31777 {
31778 resultobj = SWIG_From_int(static_cast<int >(result));
31779 }
31780 return resultobj;
31781 fail:
31782 return NULL;
31783 }
31784
31785
31786 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
31787 PyObject *resultobj = NULL;
31788 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31789 int result;
31790 PyObject * obj0 = 0 ;
31791 char *kwnames[] = {
31792 (char *) "self", NULL
31793 };
31794
31795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
31796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31797 if (SWIG_arg_fail(1)) SWIG_fail;
31798 {
31799 PyThreadState* __tstate = wxPyBeginAllowThreads();
31800 result = (int)((wxVideoMode const *)arg1)->GetHeight();
31801
31802 wxPyEndAllowThreads(__tstate);
31803 if (PyErr_Occurred()) SWIG_fail;
31804 }
31805 {
31806 resultobj = SWIG_From_int(static_cast<int >(result));
31807 }
31808 return resultobj;
31809 fail:
31810 return NULL;
31811 }
31812
31813
31814 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
31815 PyObject *resultobj = NULL;
31816 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31817 int result;
31818 PyObject * obj0 = 0 ;
31819 char *kwnames[] = {
31820 (char *) "self", NULL
31821 };
31822
31823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
31824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31825 if (SWIG_arg_fail(1)) SWIG_fail;
31826 {
31827 PyThreadState* __tstate = wxPyBeginAllowThreads();
31828 result = (int)((wxVideoMode const *)arg1)->GetDepth();
31829
31830 wxPyEndAllowThreads(__tstate);
31831 if (PyErr_Occurred()) SWIG_fail;
31832 }
31833 {
31834 resultobj = SWIG_From_int(static_cast<int >(result));
31835 }
31836 return resultobj;
31837 fail:
31838 return NULL;
31839 }
31840
31841
31842 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
31843 PyObject *resultobj = NULL;
31844 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31845 bool result;
31846 PyObject * obj0 = 0 ;
31847 char *kwnames[] = {
31848 (char *) "self", NULL
31849 };
31850
31851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
31852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31853 if (SWIG_arg_fail(1)) SWIG_fail;
31854 {
31855 PyThreadState* __tstate = wxPyBeginAllowThreads();
31856 result = (bool)((wxVideoMode const *)arg1)->IsOk();
31857
31858 wxPyEndAllowThreads(__tstate);
31859 if (PyErr_Occurred()) SWIG_fail;
31860 }
31861 {
31862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31863 }
31864 return resultobj;
31865 fail:
31866 return NULL;
31867 }
31868
31869
31870 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
31871 PyObject *resultobj = NULL;
31872 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31873 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
31874 bool result;
31875 PyObject * obj0 = 0 ;
31876 PyObject * obj1 = 0 ;
31877 char *kwnames[] = {
31878 (char *) "self",(char *) "other", NULL
31879 };
31880
31881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
31882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31883 if (SWIG_arg_fail(1)) SWIG_fail;
31884 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31885 if (SWIG_arg_fail(2)) SWIG_fail;
31886 {
31887 PyThreadState* __tstate = wxPyBeginAllowThreads();
31888 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
31889
31890 wxPyEndAllowThreads(__tstate);
31891 if (PyErr_Occurred()) SWIG_fail;
31892 }
31893 {
31894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31895 }
31896 return resultobj;
31897 fail:
31898 return NULL;
31899 }
31900
31901
31902 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
31903 PyObject *resultobj = NULL;
31904 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31905 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
31906 bool result;
31907 PyObject * obj0 = 0 ;
31908 PyObject * obj1 = 0 ;
31909 char *kwnames[] = {
31910 (char *) "self",(char *) "other", NULL
31911 };
31912
31913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
31914 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31915 if (SWIG_arg_fail(1)) SWIG_fail;
31916 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31917 if (SWIG_arg_fail(2)) SWIG_fail;
31918 {
31919 PyThreadState* __tstate = wxPyBeginAllowThreads();
31920 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
31921
31922 wxPyEndAllowThreads(__tstate);
31923 if (PyErr_Occurred()) SWIG_fail;
31924 }
31925 {
31926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31927 }
31928 return resultobj;
31929 fail:
31930 return NULL;
31931 }
31932
31933
31934 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
31935 PyObject *resultobj = NULL;
31936 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31937 int arg2 ;
31938 PyObject * obj0 = 0 ;
31939 PyObject * obj1 = 0 ;
31940 char *kwnames[] = {
31941 (char *) "self",(char *) "w", NULL
31942 };
31943
31944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
31945 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31946 if (SWIG_arg_fail(1)) SWIG_fail;
31947 {
31948 arg2 = static_cast<int >(SWIG_As_int(obj1));
31949 if (SWIG_arg_fail(2)) SWIG_fail;
31950 }
31951 if (arg1) (arg1)->w = arg2;
31952
31953 Py_INCREF(Py_None); resultobj = Py_None;
31954 return resultobj;
31955 fail:
31956 return NULL;
31957 }
31958
31959
31960 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
31961 PyObject *resultobj = NULL;
31962 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31963 int result;
31964 PyObject * obj0 = 0 ;
31965 char *kwnames[] = {
31966 (char *) "self", NULL
31967 };
31968
31969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
31970 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31971 if (SWIG_arg_fail(1)) SWIG_fail;
31972 result = (int) ((arg1)->w);
31973
31974 {
31975 resultobj = SWIG_From_int(static_cast<int >(result));
31976 }
31977 return resultobj;
31978 fail:
31979 return NULL;
31980 }
31981
31982
31983 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
31984 PyObject *resultobj = NULL;
31985 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31986 int arg2 ;
31987 PyObject * obj0 = 0 ;
31988 PyObject * obj1 = 0 ;
31989 char *kwnames[] = {
31990 (char *) "self",(char *) "h", NULL
31991 };
31992
31993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
31994 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31995 if (SWIG_arg_fail(1)) SWIG_fail;
31996 {
31997 arg2 = static_cast<int >(SWIG_As_int(obj1));
31998 if (SWIG_arg_fail(2)) SWIG_fail;
31999 }
32000 if (arg1) (arg1)->h = arg2;
32001
32002 Py_INCREF(Py_None); resultobj = Py_None;
32003 return resultobj;
32004 fail:
32005 return NULL;
32006 }
32007
32008
32009 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
32010 PyObject *resultobj = NULL;
32011 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32012 int result;
32013 PyObject * obj0 = 0 ;
32014 char *kwnames[] = {
32015 (char *) "self", NULL
32016 };
32017
32018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
32019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32020 if (SWIG_arg_fail(1)) SWIG_fail;
32021 result = (int) ((arg1)->h);
32022
32023 {
32024 resultobj = SWIG_From_int(static_cast<int >(result));
32025 }
32026 return resultobj;
32027 fail:
32028 return NULL;
32029 }
32030
32031
32032 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
32033 PyObject *resultobj = NULL;
32034 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32035 int arg2 ;
32036 PyObject * obj0 = 0 ;
32037 PyObject * obj1 = 0 ;
32038 char *kwnames[] = {
32039 (char *) "self",(char *) "bpp", NULL
32040 };
32041
32042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
32043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32044 if (SWIG_arg_fail(1)) SWIG_fail;
32045 {
32046 arg2 = static_cast<int >(SWIG_As_int(obj1));
32047 if (SWIG_arg_fail(2)) SWIG_fail;
32048 }
32049 if (arg1) (arg1)->bpp = arg2;
32050
32051 Py_INCREF(Py_None); resultobj = Py_None;
32052 return resultobj;
32053 fail:
32054 return NULL;
32055 }
32056
32057
32058 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
32059 PyObject *resultobj = NULL;
32060 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32061 int result;
32062 PyObject * obj0 = 0 ;
32063 char *kwnames[] = {
32064 (char *) "self", NULL
32065 };
32066
32067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
32068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32069 if (SWIG_arg_fail(1)) SWIG_fail;
32070 result = (int) ((arg1)->bpp);
32071
32072 {
32073 resultobj = SWIG_From_int(static_cast<int >(result));
32074 }
32075 return resultobj;
32076 fail:
32077 return NULL;
32078 }
32079
32080
32081 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
32082 PyObject *resultobj = NULL;
32083 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32084 int arg2 ;
32085 PyObject * obj0 = 0 ;
32086 PyObject * obj1 = 0 ;
32087 char *kwnames[] = {
32088 (char *) "self",(char *) "refresh", NULL
32089 };
32090
32091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
32092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32093 if (SWIG_arg_fail(1)) SWIG_fail;
32094 {
32095 arg2 = static_cast<int >(SWIG_As_int(obj1));
32096 if (SWIG_arg_fail(2)) SWIG_fail;
32097 }
32098 if (arg1) (arg1)->refresh = arg2;
32099
32100 Py_INCREF(Py_None); resultobj = Py_None;
32101 return resultobj;
32102 fail:
32103 return NULL;
32104 }
32105
32106
32107 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
32108 PyObject *resultobj = NULL;
32109 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32110 int result;
32111 PyObject * obj0 = 0 ;
32112 char *kwnames[] = {
32113 (char *) "self", NULL
32114 };
32115
32116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
32117 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32118 if (SWIG_arg_fail(1)) SWIG_fail;
32119 result = (int) ((arg1)->refresh);
32120
32121 {
32122 resultobj = SWIG_From_int(static_cast<int >(result));
32123 }
32124 return resultobj;
32125 fail:
32126 return NULL;
32127 }
32128
32129
32130 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
32131 PyObject *obj;
32132 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32133 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
32134 Py_INCREF(obj);
32135 return Py_BuildValue((char *)"");
32136 }
32137 static int _wrap_DefaultVideoMode_set(PyObject *) {
32138 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
32139 return 1;
32140 }
32141
32142
32143 static PyObject *_wrap_DefaultVideoMode_get(void) {
32144 PyObject *pyobj = NULL;
32145
32146 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
32147 return pyobj;
32148 }
32149
32150
32151 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
32152 PyObject *resultobj = NULL;
32153 size_t arg1 = (size_t) 0 ;
32154 wxDisplay *result;
32155 PyObject * obj0 = 0 ;
32156 char *kwnames[] = {
32157 (char *) "index", NULL
32158 };
32159
32160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
32161 if (obj0) {
32162 {
32163 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
32164 if (SWIG_arg_fail(1)) SWIG_fail;
32165 }
32166 }
32167 {
32168 PyThreadState* __tstate = wxPyBeginAllowThreads();
32169 result = (wxDisplay *)new wxDisplay(arg1);
32170
32171 wxPyEndAllowThreads(__tstate);
32172 if (PyErr_Occurred()) SWIG_fail;
32173 }
32174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
32175 return resultobj;
32176 fail:
32177 return NULL;
32178 }
32179
32180
32181 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
32182 PyObject *resultobj = NULL;
32183 wxDisplay *arg1 = (wxDisplay *) 0 ;
32184 PyObject * obj0 = 0 ;
32185 char *kwnames[] = {
32186 (char *) "self", NULL
32187 };
32188
32189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
32190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32191 if (SWIG_arg_fail(1)) SWIG_fail;
32192 {
32193 PyThreadState* __tstate = wxPyBeginAllowThreads();
32194 delete arg1;
32195
32196 wxPyEndAllowThreads(__tstate);
32197 if (PyErr_Occurred()) SWIG_fail;
32198 }
32199 Py_INCREF(Py_None); resultobj = Py_None;
32200 return resultobj;
32201 fail:
32202 return NULL;
32203 }
32204
32205
32206 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
32207 PyObject *resultobj = NULL;
32208 size_t result;
32209 char *kwnames[] = {
32210 NULL
32211 };
32212
32213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
32214 {
32215 PyThreadState* __tstate = wxPyBeginAllowThreads();
32216 result = (size_t)wxDisplay::GetCount();
32217
32218 wxPyEndAllowThreads(__tstate);
32219 if (PyErr_Occurred()) SWIG_fail;
32220 }
32221 {
32222 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
32223 }
32224 return resultobj;
32225 fail:
32226 return NULL;
32227 }
32228
32229
32230 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
32231 PyObject *resultobj = NULL;
32232 wxPoint *arg1 = 0 ;
32233 int result;
32234 wxPoint temp1 ;
32235 PyObject * obj0 = 0 ;
32236 char *kwnames[] = {
32237 (char *) "pt", NULL
32238 };
32239
32240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
32241 {
32242 arg1 = &temp1;
32243 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
32244 }
32245 {
32246 PyThreadState* __tstate = wxPyBeginAllowThreads();
32247 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
32248
32249 wxPyEndAllowThreads(__tstate);
32250 if (PyErr_Occurred()) SWIG_fail;
32251 }
32252 {
32253 resultobj = SWIG_From_int(static_cast<int >(result));
32254 }
32255 return resultobj;
32256 fail:
32257 return NULL;
32258 }
32259
32260
32261 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32262 PyObject *resultobj = NULL;
32263 wxWindow *arg1 = (wxWindow *) 0 ;
32264 int result;
32265 PyObject * obj0 = 0 ;
32266 char *kwnames[] = {
32267 (char *) "window", NULL
32268 };
32269
32270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
32271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32272 if (SWIG_arg_fail(1)) SWIG_fail;
32273 {
32274 PyThreadState* __tstate = wxPyBeginAllowThreads();
32275 result = (int)wxDisplay_GetFromWindow(arg1);
32276
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 {
32281 resultobj = SWIG_From_int(static_cast<int >(result));
32282 }
32283 return resultobj;
32284 fail:
32285 return NULL;
32286 }
32287
32288
32289 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
32290 PyObject *resultobj = NULL;
32291 wxDisplay *arg1 = (wxDisplay *) 0 ;
32292 bool result;
32293 PyObject * obj0 = 0 ;
32294 char *kwnames[] = {
32295 (char *) "self", NULL
32296 };
32297
32298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
32299 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32300 if (SWIG_arg_fail(1)) SWIG_fail;
32301 {
32302 PyThreadState* __tstate = wxPyBeginAllowThreads();
32303 result = (bool)((wxDisplay const *)arg1)->IsOk();
32304
32305 wxPyEndAllowThreads(__tstate);
32306 if (PyErr_Occurred()) SWIG_fail;
32307 }
32308 {
32309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32310 }
32311 return resultobj;
32312 fail:
32313 return NULL;
32314 }
32315
32316
32317 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
32318 PyObject *resultobj = NULL;
32319 wxDisplay *arg1 = (wxDisplay *) 0 ;
32320 wxRect result;
32321 PyObject * obj0 = 0 ;
32322 char *kwnames[] = {
32323 (char *) "self", NULL
32324 };
32325
32326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
32327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32328 if (SWIG_arg_fail(1)) SWIG_fail;
32329 {
32330 PyThreadState* __tstate = wxPyBeginAllowThreads();
32331 result = ((wxDisplay const *)arg1)->GetGeometry();
32332
32333 wxPyEndAllowThreads(__tstate);
32334 if (PyErr_Occurred()) SWIG_fail;
32335 }
32336 {
32337 wxRect * resultptr;
32338 resultptr = new wxRect(static_cast<wxRect & >(result));
32339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
32340 }
32341 return resultobj;
32342 fail:
32343 return NULL;
32344 }
32345
32346
32347 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
32348 PyObject *resultobj = NULL;
32349 wxDisplay *arg1 = (wxDisplay *) 0 ;
32350 wxString result;
32351 PyObject * obj0 = 0 ;
32352 char *kwnames[] = {
32353 (char *) "self", NULL
32354 };
32355
32356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
32357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32358 if (SWIG_arg_fail(1)) SWIG_fail;
32359 {
32360 PyThreadState* __tstate = wxPyBeginAllowThreads();
32361 result = ((wxDisplay const *)arg1)->GetName();
32362
32363 wxPyEndAllowThreads(__tstate);
32364 if (PyErr_Occurred()) SWIG_fail;
32365 }
32366 {
32367 #if wxUSE_UNICODE
32368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32369 #else
32370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32371 #endif
32372 }
32373 return resultobj;
32374 fail:
32375 return NULL;
32376 }
32377
32378
32379 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
32380 PyObject *resultobj = NULL;
32381 wxDisplay *arg1 = (wxDisplay *) 0 ;
32382 bool result;
32383 PyObject * obj0 = 0 ;
32384 char *kwnames[] = {
32385 (char *) "self", NULL
32386 };
32387
32388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
32389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32390 if (SWIG_arg_fail(1)) SWIG_fail;
32391 {
32392 PyThreadState* __tstate = wxPyBeginAllowThreads();
32393 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
32394
32395 wxPyEndAllowThreads(__tstate);
32396 if (PyErr_Occurred()) SWIG_fail;
32397 }
32398 {
32399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32400 }
32401 return resultobj;
32402 fail:
32403 return NULL;
32404 }
32405
32406
32407 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
32408 PyObject *resultobj = NULL;
32409 wxDisplay *arg1 = (wxDisplay *) 0 ;
32410 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
32411 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
32412 PyObject *result;
32413 PyObject * obj0 = 0 ;
32414 PyObject * obj1 = 0 ;
32415 char *kwnames[] = {
32416 (char *) "self",(char *) "mode", NULL
32417 };
32418
32419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
32420 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32421 if (SWIG_arg_fail(1)) SWIG_fail;
32422 if (obj1) {
32423 {
32424 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32425 if (SWIG_arg_fail(2)) SWIG_fail;
32426 if (arg2 == NULL) {
32427 SWIG_null_ref("wxVideoMode");
32428 }
32429 if (SWIG_arg_fail(2)) SWIG_fail;
32430 }
32431 }
32432 {
32433 PyThreadState* __tstate = wxPyBeginAllowThreads();
32434 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
32435
32436 wxPyEndAllowThreads(__tstate);
32437 if (PyErr_Occurred()) SWIG_fail;
32438 }
32439 resultobj = result;
32440 return resultobj;
32441 fail:
32442 return NULL;
32443 }
32444
32445
32446 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
32447 PyObject *resultobj = NULL;
32448 wxDisplay *arg1 = (wxDisplay *) 0 ;
32449 wxVideoMode result;
32450 PyObject * obj0 = 0 ;
32451 char *kwnames[] = {
32452 (char *) "self", NULL
32453 };
32454
32455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
32456 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32457 if (SWIG_arg_fail(1)) SWIG_fail;
32458 {
32459 PyThreadState* __tstate = wxPyBeginAllowThreads();
32460 result = ((wxDisplay const *)arg1)->GetCurrentMode();
32461
32462 wxPyEndAllowThreads(__tstate);
32463 if (PyErr_Occurred()) SWIG_fail;
32464 }
32465 {
32466 wxVideoMode * resultptr;
32467 resultptr = new wxVideoMode(static_cast<wxVideoMode & >(result));
32468 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
32469 }
32470 return resultobj;
32471 fail:
32472 return NULL;
32473 }
32474
32475
32476 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
32477 PyObject *resultobj = NULL;
32478 wxDisplay *arg1 = (wxDisplay *) 0 ;
32479 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
32480 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
32481 bool result;
32482 PyObject * obj0 = 0 ;
32483 PyObject * obj1 = 0 ;
32484 char *kwnames[] = {
32485 (char *) "self",(char *) "mode", NULL
32486 };
32487
32488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
32489 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32490 if (SWIG_arg_fail(1)) SWIG_fail;
32491 if (obj1) {
32492 {
32493 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32494 if (SWIG_arg_fail(2)) SWIG_fail;
32495 if (arg2 == NULL) {
32496 SWIG_null_ref("wxVideoMode");
32497 }
32498 if (SWIG_arg_fail(2)) SWIG_fail;
32499 }
32500 }
32501 {
32502 PyThreadState* __tstate = wxPyBeginAllowThreads();
32503 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
32504
32505 wxPyEndAllowThreads(__tstate);
32506 if (PyErr_Occurred()) SWIG_fail;
32507 }
32508 {
32509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32510 }
32511 return resultobj;
32512 fail:
32513 return NULL;
32514 }
32515
32516
32517 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
32518 PyObject *resultobj = NULL;
32519 wxDisplay *arg1 = (wxDisplay *) 0 ;
32520 PyObject * obj0 = 0 ;
32521 char *kwnames[] = {
32522 (char *) "self", NULL
32523 };
32524
32525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
32526 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32527 if (SWIG_arg_fail(1)) SWIG_fail;
32528 {
32529 PyThreadState* __tstate = wxPyBeginAllowThreads();
32530 (arg1)->ResetMode();
32531
32532 wxPyEndAllowThreads(__tstate);
32533 if (PyErr_Occurred()) SWIG_fail;
32534 }
32535 Py_INCREF(Py_None); resultobj = Py_None;
32536 return resultobj;
32537 fail:
32538 return NULL;
32539 }
32540
32541
32542 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
32543 PyObject *obj;
32544 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32545 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
32546 Py_INCREF(obj);
32547 return Py_BuildValue((char *)"");
32548 }
32549 static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) {
32550 PyObject *resultobj = NULL;
32551 wxStandardPaths *result;
32552 char *kwnames[] = {
32553 NULL
32554 };
32555
32556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail;
32557 {
32558 PyThreadState* __tstate = wxPyBeginAllowThreads();
32559 result = (wxStandardPaths *)wxStandardPaths_Get();
32560
32561 wxPyEndAllowThreads(__tstate);
32562 if (PyErr_Occurred()) SWIG_fail;
32563 }
32564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0);
32565 return resultobj;
32566 fail:
32567 return NULL;
32568 }
32569
32570
32571 static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
32572 PyObject *resultobj = NULL;
32573 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32574 wxString result;
32575 PyObject * obj0 = 0 ;
32576 char *kwnames[] = {
32577 (char *) "self", NULL
32578 };
32579
32580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail;
32581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32582 if (SWIG_arg_fail(1)) SWIG_fail;
32583 {
32584 PyThreadState* __tstate = wxPyBeginAllowThreads();
32585 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
32586
32587 wxPyEndAllowThreads(__tstate);
32588 if (PyErr_Occurred()) SWIG_fail;
32589 }
32590 {
32591 #if wxUSE_UNICODE
32592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32593 #else
32594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32595 #endif
32596 }
32597 return resultobj;
32598 fail:
32599 return NULL;
32600 }
32601
32602
32603 static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
32604 PyObject *resultobj = NULL;
32605 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32606 wxString result;
32607 PyObject * obj0 = 0 ;
32608 char *kwnames[] = {
32609 (char *) "self", NULL
32610 };
32611
32612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail;
32613 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32614 if (SWIG_arg_fail(1)) SWIG_fail;
32615 {
32616 PyThreadState* __tstate = wxPyBeginAllowThreads();
32617 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
32618
32619 wxPyEndAllowThreads(__tstate);
32620 if (PyErr_Occurred()) SWIG_fail;
32621 }
32622 {
32623 #if wxUSE_UNICODE
32624 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32625 #else
32626 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32627 #endif
32628 }
32629 return resultobj;
32630 fail:
32631 return NULL;
32632 }
32633
32634
32635 static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32636 PyObject *resultobj = NULL;
32637 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32638 wxString result;
32639 PyObject * obj0 = 0 ;
32640 char *kwnames[] = {
32641 (char *) "self", NULL
32642 };
32643
32644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail;
32645 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32646 if (SWIG_arg_fail(1)) SWIG_fail;
32647 {
32648 PyThreadState* __tstate = wxPyBeginAllowThreads();
32649 result = ((wxStandardPaths const *)arg1)->GetDataDir();
32650
32651 wxPyEndAllowThreads(__tstate);
32652 if (PyErr_Occurred()) SWIG_fail;
32653 }
32654 {
32655 #if wxUSE_UNICODE
32656 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32657 #else
32658 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32659 #endif
32660 }
32661 return resultobj;
32662 fail:
32663 return NULL;
32664 }
32665
32666
32667 static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32668 PyObject *resultobj = NULL;
32669 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32670 wxString result;
32671 PyObject * obj0 = 0 ;
32672 char *kwnames[] = {
32673 (char *) "self", NULL
32674 };
32675
32676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail;
32677 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32678 if (SWIG_arg_fail(1)) SWIG_fail;
32679 {
32680 PyThreadState* __tstate = wxPyBeginAllowThreads();
32681 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
32682
32683 wxPyEndAllowThreads(__tstate);
32684 if (PyErr_Occurred()) SWIG_fail;
32685 }
32686 {
32687 #if wxUSE_UNICODE
32688 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32689 #else
32690 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32691 #endif
32692 }
32693 return resultobj;
32694 fail:
32695 return NULL;
32696 }
32697
32698
32699 static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32700 PyObject *resultobj = NULL;
32701 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32702 wxString result;
32703 PyObject * obj0 = 0 ;
32704 char *kwnames[] = {
32705 (char *) "self", NULL
32706 };
32707
32708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail;
32709 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32710 if (SWIG_arg_fail(1)) SWIG_fail;
32711 {
32712 PyThreadState* __tstate = wxPyBeginAllowThreads();
32713 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
32714
32715 wxPyEndAllowThreads(__tstate);
32716 if (PyErr_Occurred()) SWIG_fail;
32717 }
32718 {
32719 #if wxUSE_UNICODE
32720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32721 #else
32722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32723 #endif
32724 }
32725 return resultobj;
32726 fail:
32727 return NULL;
32728 }
32729
32730
32731 static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32732 PyObject *resultobj = NULL;
32733 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32734 wxString result;
32735 PyObject * obj0 = 0 ;
32736 char *kwnames[] = {
32737 (char *) "self", NULL
32738 };
32739
32740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail;
32741 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32742 if (SWIG_arg_fail(1)) SWIG_fail;
32743 {
32744 PyThreadState* __tstate = wxPyBeginAllowThreads();
32745 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
32746
32747 wxPyEndAllowThreads(__tstate);
32748 if (PyErr_Occurred()) SWIG_fail;
32749 }
32750 {
32751 #if wxUSE_UNICODE
32752 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32753 #else
32754 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32755 #endif
32756 }
32757 return resultobj;
32758 fail:
32759 return NULL;
32760 }
32761
32762
32763 static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) {
32764 PyObject *resultobj = NULL;
32765 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32766 wxString result;
32767 PyObject * obj0 = 0 ;
32768 char *kwnames[] = {
32769 (char *) "self", NULL
32770 };
32771
32772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail;
32773 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32774 if (SWIG_arg_fail(1)) SWIG_fail;
32775 {
32776 PyThreadState* __tstate = wxPyBeginAllowThreads();
32777 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
32778
32779 wxPyEndAllowThreads(__tstate);
32780 if (PyErr_Occurred()) SWIG_fail;
32781 }
32782 {
32783 #if wxUSE_UNICODE
32784 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32785 #else
32786 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32787 #endif
32788 }
32789 return resultobj;
32790 fail:
32791 return NULL;
32792 }
32793
32794
32795 static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
32796 PyObject *resultobj = NULL;
32797 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32798 wxString *arg2 = 0 ;
32799 bool temp2 = false ;
32800 PyObject * obj0 = 0 ;
32801 PyObject * obj1 = 0 ;
32802 char *kwnames[] = {
32803 (char *) "self",(char *) "prefix", NULL
32804 };
32805
32806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail;
32807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32808 if (SWIG_arg_fail(1)) SWIG_fail;
32809 {
32810 arg2 = wxString_in_helper(obj1);
32811 if (arg2 == NULL) SWIG_fail;
32812 temp2 = true;
32813 }
32814 {
32815 PyThreadState* __tstate = wxPyBeginAllowThreads();
32816 wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2);
32817
32818 wxPyEndAllowThreads(__tstate);
32819 if (PyErr_Occurred()) SWIG_fail;
32820 }
32821 Py_INCREF(Py_None); resultobj = Py_None;
32822 {
32823 if (temp2)
32824 delete arg2;
32825 }
32826 return resultobj;
32827 fail:
32828 {
32829 if (temp2)
32830 delete arg2;
32831 }
32832 return NULL;
32833 }
32834
32835
32836 static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
32837 PyObject *resultobj = NULL;
32838 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32839 wxString result;
32840 PyObject * obj0 = 0 ;
32841 char *kwnames[] = {
32842 (char *) "self", NULL
32843 };
32844
32845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail;
32846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32847 if (SWIG_arg_fail(1)) SWIG_fail;
32848 {
32849 PyThreadState* __tstate = wxPyBeginAllowThreads();
32850 result = wxStandardPaths_GetInstallPrefix(arg1);
32851
32852 wxPyEndAllowThreads(__tstate);
32853 if (PyErr_Occurred()) SWIG_fail;
32854 }
32855 {
32856 #if wxUSE_UNICODE
32857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32858 #else
32859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32860 #endif
32861 }
32862 return resultobj;
32863 fail:
32864 return NULL;
32865 }
32866
32867
32868 static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) {
32869 PyObject *obj;
32870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32871 SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj);
32872 Py_INCREF(obj);
32873 return Py_BuildValue((char *)"");
32874 }
32875 static PyMethodDef SwigMethods[] = {
32876 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32877 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32878 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL},
32879 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL},
32880 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
32881 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
32882 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL},
32883 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL},
32884 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
32885 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
32886 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
32887 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
32888 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
32889 { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL},
32890 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL},
32891 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL},
32892 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL},
32893 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL},
32894 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL},
32895 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32896 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32897 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL},
32898 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32899 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL},
32900 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL},
32901 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL},
32902 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL},
32903 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL},
32904 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32905 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL},
32906 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL},
32907 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL},
32908 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL},
32909 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL},
32910 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL},
32911 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL},
32912 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL},
32913 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL},
32914 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL},
32915 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL},
32916 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL},
32917 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL},
32918 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL},
32919 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL},
32920 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL},
32921 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL},
32922 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32923 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32924 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32925 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32926 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
32927 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
32928 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL},
32929 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL},
32930 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL},
32931 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL},
32932 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32933 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32934 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL},
32935 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL},
32936 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
32937 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
32938 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL},
32939 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL},
32940 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32941 { (char *)"GetXDisplay", (PyCFunction) _wrap_GetXDisplay, METH_VARARGS | METH_KEYWORDS, NULL},
32942 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32943 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL},
32944 { (char *)"FindWindowAtPointer", (PyCFunction) _wrap_FindWindowAtPointer, METH_VARARGS | METH_KEYWORDS, NULL},
32945 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32946 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32947 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32948 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL},
32949 { (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL},
32950 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL},
32951 { (char *)"new_MouseState", (PyCFunction) _wrap_new_MouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32952 { (char *)"delete_MouseState", (PyCFunction) _wrap_delete_MouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32953 { (char *)"MouseState_GetX", (PyCFunction) _wrap_MouseState_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
32954 { (char *)"MouseState_GetY", (PyCFunction) _wrap_MouseState_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
32955 { (char *)"MouseState_LeftDown", (PyCFunction) _wrap_MouseState_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32956 { (char *)"MouseState_MiddleDown", (PyCFunction) _wrap_MouseState_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
32957 { (char *)"MouseState_RightDown", (PyCFunction) _wrap_MouseState_RightDown, METH_VARARGS | METH_KEYWORDS, NULL},
32958 { (char *)"MouseState_ControlDown", (PyCFunction) _wrap_MouseState_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
32959 { (char *)"MouseState_ShiftDown", (PyCFunction) _wrap_MouseState_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32960 { (char *)"MouseState_AltDown", (PyCFunction) _wrap_MouseState_AltDown, METH_VARARGS | METH_KEYWORDS, NULL},
32961 { (char *)"MouseState_MetaDown", (PyCFunction) _wrap_MouseState_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
32962 { (char *)"MouseState_CmdDown", (PyCFunction) _wrap_MouseState_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL},
32963 { (char *)"MouseState_SetX", (PyCFunction) _wrap_MouseState_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
32964 { (char *)"MouseState_SetY", (PyCFunction) _wrap_MouseState_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
32965 { (char *)"MouseState_SetLeftDown", (PyCFunction) _wrap_MouseState_SetLeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32966 { (char *)"MouseState_SetMiddleDown", (PyCFunction) _wrap_MouseState_SetMiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
32967 { (char *)"MouseState_SetRightDown", (PyCFunction) _wrap_MouseState_SetRightDown, METH_VARARGS | METH_KEYWORDS, NULL},
32968 { (char *)"MouseState_SetControlDown", (PyCFunction) _wrap_MouseState_SetControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
32969 { (char *)"MouseState_SetShiftDown", (PyCFunction) _wrap_MouseState_SetShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32970 { (char *)"MouseState_SetAltDown", (PyCFunction) _wrap_MouseState_SetAltDown, METH_VARARGS | METH_KEYWORDS, NULL},
32971 { (char *)"MouseState_SetMetaDown", (PyCFunction) _wrap_MouseState_SetMetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
32972 { (char *)"MouseState_swigregister", MouseState_swigregister, METH_VARARGS, NULL},
32973 { (char *)"GetMouseState", (PyCFunction) _wrap_GetMouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32974 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL},
32975 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL},
32976 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL},
32977 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL},
32978 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL},
32979 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL},
32980 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL},
32981 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
32982 { (char *)"delete_ToolTip", (PyCFunction) _wrap_delete_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
32983 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL},
32984 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
32985 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32986 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
32987 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL},
32988 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL},
32989 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
32990 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
32991 { (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
32992 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
32993 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
32994 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32995 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL},
32996 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32997 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
32998 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32999 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
33000 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL},
33001 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
33002 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
33003 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL},
33004 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL},
33005 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
33006 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
33007 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL},
33008 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
33009 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
33010 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL},
33011 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
33012 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
33013 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL},
33014 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33015 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33016 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL},
33017 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL},
33018 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL},
33019 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL},
33020 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL},
33021 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL},
33022 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL},
33023 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33024 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33025 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33026 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33027 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL},
33028 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33029 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33030 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL},
33031 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL},
33032 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33033 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33034 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL},
33035 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
33036 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL},
33037 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
33038 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
33039 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
33040 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33041 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL},
33042 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL},
33043 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL},
33044 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33045 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
33046 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL},
33047 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL},
33048 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL},
33049 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33050 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33051 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL},
33052 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL},
33053 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33054 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
33055 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
33056 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33057 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
33058 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
33059 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL},
33060 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
33061 { (char *)"Timer_Notify", (PyCFunction) _wrap_Timer_Notify, METH_VARARGS | METH_KEYWORDS, NULL},
33062 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL},
33063 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL},
33064 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL},
33065 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
33066 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL},
33067 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
33068 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL},
33069 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL},
33070 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL},
33071 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL},
33072 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL},
33073 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL},
33074 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL},
33075 { (char *)"delete_Log", (PyCFunction) _wrap_delete_Log, METH_VARARGS | METH_KEYWORDS, NULL},
33076 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
33077 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL},
33078 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL},
33079 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33080 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL},
33081 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33082 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33083 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL},
33084 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL},
33085 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
33086 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
33087 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL},
33088 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33089 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33090 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33091 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL},
33092 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL},
33093 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
33094 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
33095 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33096 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33097 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
33098 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
33099 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL},
33100 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
33101 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL},
33102 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL},
33103 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL},
33104 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
33105 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL},
33106 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL},
33107 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL},
33108 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL},
33109 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL},
33110 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL},
33111 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL},
33112 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33113 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33114 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL},
33115 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL},
33116 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL},
33117 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33118 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33119 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL},
33120 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL},
33121 { (char *)"new_LogBuffer", (PyCFunction) _wrap_new_LogBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
33122 { (char *)"LogBuffer_GetBuffer", (PyCFunction) _wrap_LogBuffer_GetBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
33123 { (char *)"LogBuffer_Flush", (PyCFunction) _wrap_LogBuffer_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33124 { (char *)"LogBuffer_swigregister", LogBuffer_swigregister, METH_VARARGS, NULL},
33125 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL},
33126 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL},
33127 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL},
33128 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL},
33129 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL},
33130 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL},
33131 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33132 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL},
33133 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
33134 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL},
33135 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL},
33136 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL},
33137 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
33138 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL},
33139 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL},
33140 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL},
33141 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL},
33142 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL},
33143 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL},
33144 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33145 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL},
33146 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
33147 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
33148 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
33149 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
33150 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33151 { (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
33152 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL},
33153 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL},
33154 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
33155 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL},
33156 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL},
33157 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL},
33158 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL},
33159 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL},
33160 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
33161 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
33162 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL},
33163 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
33164 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL},
33165 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL},
33166 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL},
33167 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL},
33168 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL},
33169 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL},
33170 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL},
33171 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL},
33172 { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
33173 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
33174 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
33175 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33176 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33177 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33178 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33179 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33180 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33181 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33182 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33183 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
33184 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
33185 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33186 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL},
33187 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL},
33188 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL},
33189 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL},
33190 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL},
33191 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL},
33192 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL},
33193 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL},
33194 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL},
33195 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL},
33196 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL},
33197 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL},
33198 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL},
33199 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL},
33200 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL},
33201 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL},
33202 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL},
33203 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL},
33204 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL},
33205 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL},
33206 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL},
33207 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL},
33208 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL},
33209 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL},
33210 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL},
33211 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL},
33212 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL},
33213 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL},
33214 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL},
33215 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL},
33216 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL},
33217 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL},
33218 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL},
33219 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33220 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33221 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33222 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
33223 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
33224 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
33225 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33226 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
33227 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33228 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33229 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL},
33230 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL},
33231 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL},
33232 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
33233 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
33234 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
33235 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL},
33236 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
33237 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL},
33238 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
33239 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33240 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL},
33241 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33242 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL},
33243 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL},
33244 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
33245 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL},
33246 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33247 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL},
33248 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33249 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL},
33250 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33251 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
33252 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33253 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33254 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33255 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
33256 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
33257 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL},
33258 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL},
33259 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL},
33260 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL},
33261 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL},
33262 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
33263 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
33264 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33265 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33266 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL},
33267 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33268 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33269 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
33270 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33271 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33272 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL},
33273 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33274 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33275 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
33276 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33277 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL},
33278 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL},
33279 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
33280 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL},
33281 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL},
33282 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL},
33283 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33284 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL},
33285 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33286 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33287 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL},
33288 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL},
33289 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
33290 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
33291 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL},
33292 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33293 { (char *)"delete_ArtProvider", (PyCFunction) _wrap_delete_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33294 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33295 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33296 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33297 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33298 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33299 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33300 { (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL},
33301 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
33302 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL},
33303 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL},
33304 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL},
33305 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33306 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33307 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL},
33308 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
33309 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL},
33310 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33311 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33312 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33313 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33314 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL},
33315 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL},
33316 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33317 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33318 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
33319 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL},
33320 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL},
33321 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL},
33322 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL},
33323 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL},
33324 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL},
33325 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL},
33326 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL},
33327 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL},
33328 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33329 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33330 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33331 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33332 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33333 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL},
33334 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33335 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33336 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
33337 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
33338 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33339 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
33340 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
33341 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
33342 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
33343 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33344 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33345 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL},
33346 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL},
33347 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL},
33348 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL},
33349 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
33350 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
33351 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL},
33352 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
33353 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
33354 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL},
33355 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL},
33356 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33357 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33358 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33359 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33360 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL},
33361 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL},
33362 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33363 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL},
33364 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL},
33365 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL},
33366 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33367 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL},
33368 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL},
33369 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL},
33370 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL},
33371 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL},
33372 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL},
33373 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL},
33374 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL},
33375 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL},
33376 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33377 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
33378 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33379 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL},
33380 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL},
33381 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33382 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL},
33383 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
33384 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33385 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL},
33386 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL},
33387 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL},
33388 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL},
33389 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33390 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL},
33391 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL},
33392 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
33393 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
33394 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
33395 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33396 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33397 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33398 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33399 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33400 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33401 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33402 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33403 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33404 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33405 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33406 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33407 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
33408 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
33409 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
33410 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
33411 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL},
33412 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33413 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL},
33414 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL},
33415 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL},
33416 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33417 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33418 { (char *)"DateTime_FromTimezone", (PyCFunction) _wrap_DateTime_FromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33419 { (char *)"DateTime_MakeFromTimezone", (PyCFunction) _wrap_DateTime_MakeFromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33420 { (char *)"DateTime_ToUTC", (PyCFunction) _wrap_DateTime_ToUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33421 { (char *)"DateTime_MakeUTC", (PyCFunction) _wrap_DateTime_MakeUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33422 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL},
33423 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL},
33424 { (char *)"DateTime_FromUTC", (PyCFunction) _wrap_DateTime_FromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33425 { (char *)"DateTime_MakeFromUTC", (PyCFunction) _wrap_DateTime_MakeFromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33426 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL},
33427 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL},
33428 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL},
33429 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL},
33430 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33431 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL},
33432 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33433 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL},
33434 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
33435 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
33436 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
33437 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33438 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33439 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33440 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL},
33441 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
33442 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL},
33443 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL},
33444 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL},
33445 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL},
33446 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL},
33447 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL},
33448 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL},
33449 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL},
33450 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL},
33451 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL},
33452 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL},
33453 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33454 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL},
33455 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL},
33456 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL},
33457 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL},
33458 { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
33459 { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL},
33460 { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
33461 { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
33462 { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33463 { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33464 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL},
33465 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33466 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33467 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL},
33468 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL},
33469 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL},
33470 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL},
33471 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL},
33472 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL},
33473 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL},
33474 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL},
33475 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL},
33476 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL},
33477 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL},
33478 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL},
33479 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL},
33480 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL},
33481 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
33482 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL},
33483 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
33484 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL},
33485 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33486 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33487 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33488 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33489 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
33490 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL},
33491 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL},
33492 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
33493 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
33494 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
33495 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL},
33496 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
33497 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
33498 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
33499 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
33500 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
33501 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL},
33502 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
33503 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
33504 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33505 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33506 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
33507 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL},
33508 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL},
33509 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
33510 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL},
33511 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL},
33512 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33513 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33514 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL},
33515 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL},
33516 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL},
33517 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL},
33518 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL},
33519 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL},
33520 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33521 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33522 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
33523 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL},
33524 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
33525 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL},
33526 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL},
33527 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL},
33528 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL},
33529 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL},
33530 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL},
33531 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
33532 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33533 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33534 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL},
33535 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
33536 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33537 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33538 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL},
33539 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33540 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33541 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL},
33542 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
33543 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
33544 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
33545 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL},
33546 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
33547 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
33548 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
33549 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
33550 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
33551 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33552 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33553 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL},
33554 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL},
33555 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL},
33556 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL},
33557 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL},
33558 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33559 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33560 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33561 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL},
33562 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL},
33563 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
33564 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL},
33565 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
33566 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
33567 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL},
33568 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33569 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33570 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL},
33571 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
33572 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
33573 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL},
33574 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
33575 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33576 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL},
33577 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
33578 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33579 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33580 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
33581 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
33582 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33583 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL},
33584 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
33585 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33586 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL},
33587 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL},
33588 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33589 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL},
33590 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33591 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL},
33592 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
33593 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
33594 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL},
33595 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33596 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33597 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL},
33598 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33599 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33600 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33601 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL},
33602 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33603 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33604 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL},
33605 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33606 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL},
33607 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL},
33608 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL},
33609 { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL},
33610 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33611 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
33612 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33613 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL},
33614 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33615 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL},
33616 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
33617 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL},
33618 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33619 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL},
33620 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL},
33621 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL},
33622 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL},
33623 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
33624 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33625 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
33626 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33627 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33628 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
33629 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33630 { (char *)"DropSource_GiveFeedback", (PyCFunction) _wrap_DropSource_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL},
33631 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL},
33632 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33633 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33634 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33635 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33636 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33637 { (char *)"DropTarget_OnEnter", (PyCFunction) _wrap_DropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33638 { (char *)"DropTarget_OnDragOver", (PyCFunction) _wrap_DropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33639 { (char *)"DropTarget_OnLeave", (PyCFunction) _wrap_DropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33640 { (char *)"DropTarget_OnDrop", (PyCFunction) _wrap_DropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33641 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33642 { (char *)"DropTarget_SetDefaultAction", (PyCFunction) _wrap_DropTarget_SetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
33643 { (char *)"DropTarget_GetDefaultAction", (PyCFunction) _wrap_DropTarget_GetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
33644 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL},
33645 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33646 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33647 { (char *)"TextDropTarget_OnDropText", (PyCFunction) _wrap_TextDropTarget_OnDropText, METH_VARARGS | METH_KEYWORDS, NULL},
33648 { (char *)"TextDropTarget_OnEnter", (PyCFunction) _wrap_TextDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33649 { (char *)"TextDropTarget_OnDragOver", (PyCFunction) _wrap_TextDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33650 { (char *)"TextDropTarget_OnLeave", (PyCFunction) _wrap_TextDropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33651 { (char *)"TextDropTarget_OnDrop", (PyCFunction) _wrap_TextDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33652 { (char *)"TextDropTarget_OnData", (PyCFunction) _wrap_TextDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
33653 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL},
33654 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33655 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33656 { (char *)"FileDropTarget_OnDropFiles", (PyCFunction) _wrap_FileDropTarget_OnDropFiles, METH_VARARGS | METH_KEYWORDS, NULL},
33657 { (char *)"FileDropTarget_OnEnter", (PyCFunction) _wrap_FileDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33658 { (char *)"FileDropTarget_OnDragOver", (PyCFunction) _wrap_FileDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33659 { (char *)"FileDropTarget_OnLeave", (PyCFunction) _wrap_FileDropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33660 { (char *)"FileDropTarget_OnDrop", (PyCFunction) _wrap_FileDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33661 { (char *)"FileDropTarget_OnData", (PyCFunction) _wrap_FileDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
33662 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL},
33663 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL},
33664 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL},
33665 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL},
33666 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL},
33667 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL},
33668 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL},
33669 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33670 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
33671 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33672 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
33673 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33674 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
33675 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33676 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
33677 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
33678 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
33679 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
33680 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL},
33681 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
33682 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
33683 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL},
33684 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
33685 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
33686 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
33687 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33688 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33689 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33690 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL},
33691 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL},
33692 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL},
33693 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL},
33694 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL},
33695 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL},
33696 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL},
33697 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL},
33698 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL},
33699 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL},
33700 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL},
33701 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
33702 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
33703 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
33704 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33705 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL},
33706 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
33707 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL},
33708 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL},
33709 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL},
33710 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL},
33711 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL},
33712 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
33713 { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33714 { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL},
33715 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL},
33716 { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33717 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33718 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33719 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33720 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL},
33721 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
33722 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
33723 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL},
33724 { NULL, NULL, 0, NULL }
33725 };
33726
33727
33728 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
33729
33730 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
33731 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
33732 }
33733 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
33734 return (void *)((wxEvent *) ((wxMenuEvent *) x));
33735 }
33736 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
33737 return (void *)((wxEvent *) ((wxCloseEvent *) x));
33738 }
33739 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
33740 return (void *)((wxEvent *) ((wxMouseEvent *) x));
33741 }
33742 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
33743 return (void *)((wxEvent *) ((wxEraseEvent *) x));
33744 }
33745 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
33746 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
33747 }
33748 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
33749 return (void *)((wxEvent *) ((wxTimerEvent *) x));
33750 }
33751 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
33752 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
33753 }
33754 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
33755 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
33756 }
33757 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
33758 return (void *)((wxEvent *) ((wxPyEvent *) x));
33759 }
33760 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
33761 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
33762 }
33763 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
33764 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
33765 }
33766 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
33767 return (void *)((wxEvent *) ((wxIdleEvent *) x));
33768 }
33769 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
33770 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
33771 }
33772 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
33773 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
33774 }
33775 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
33776 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
33777 }
33778 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
33779 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
33780 }
33781 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
33782 return (void *)((wxEvent *) ((wxActivateEvent *) x));
33783 }
33784 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
33785 return (void *)((wxEvent *) ((wxSizeEvent *) x));
33786 }
33787 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
33788 return (void *)((wxEvent *) ((wxMoveEvent *) x));
33789 }
33790 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
33791 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
33792 }
33793 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
33794 return (void *)((wxEvent *) ((wxPaintEvent *) x));
33795 }
33796 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
33797 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
33798 }
33799 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
33800 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
33801 }
33802 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
33803 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
33804 }
33805 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
33806 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
33807 }
33808 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
33809 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33810 }
33811 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
33812 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
33813 }
33814 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
33815 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
33816 }
33817 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
33818 return (void *)((wxEvent *) ((wxFocusEvent *) x));
33819 }
33820 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
33821 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
33822 }
33823 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
33824 return (void *)((wxEvent *) ((wxProcessEvent *) x));
33825 }
33826 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
33827 return (void *)((wxEvent *) ((wxShowEvent *) x));
33828 }
33829 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
33830 return (void *)((wxEvent *) ((wxCommandEvent *) x));
33831 }
33832 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
33833 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
33834 }
33835 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
33836 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33837 }
33838 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
33839 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
33840 }
33841 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
33842 return (void *)((wxEvent *) ((wxKeyEvent *) x));
33843 }
33844 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
33845 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
33846 }
33847 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
33848 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
33849 }
33850 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
33851 return (void *)((wxConfigBase *) ((wxConfig *) x));
33852 }
33853 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
33854 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33855 }
33856 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
33857 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
33858 }
33859 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
33860 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
33861 }
33862 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
33863 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
33864 }
33865 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
33866 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
33867 }
33868 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
33869 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
33870 }
33871 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
33872 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
33873 }
33874 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
33875 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
33876 }
33877 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
33878 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33879 }
33880 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
33881 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
33882 }
33883 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
33884 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
33885 }
33886 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
33887 return (void *)((wxDataObject *) ((wxURLDataObject *) x));
33888 }
33889 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
33890 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
33891 }
33892 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
33893 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
33894 }
33895 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
33896 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
33897 }
33898 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
33899 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
33900 }
33901 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
33902 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
33903 }
33904 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
33905 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33906 }
33907 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
33908 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
33909 }
33910 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
33911 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
33912 }
33913 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
33914 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
33915 }
33916 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
33917 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
33918 }
33919 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
33920 return (void *)((wxEvtHandler *) ((wxWindow *) x));
33921 }
33922 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
33923 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33924 }
33925 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
33926 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
33927 }
33928 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
33929 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
33930 }
33931 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
33932 return (void *)((wxEvtHandler *) ((wxValidator *) x));
33933 }
33934 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
33935 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
33936 }
33937 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
33938 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
33939 }
33940 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
33941 return (void *)((wxEvtHandler *) ((wxMenu *) x));
33942 }
33943 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
33944 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
33945 }
33946 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
33947 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
33948 }
33949 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33950 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33951 }
33952 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33953 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33954 }
33955 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33956 return (void *)((wxObject *) ((wxSizerItem *) x));
33957 }
33958 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33959 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33960 }
33961 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33962 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33963 }
33964 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33965 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33966 }
33967 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33968 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33969 }
33970 static void *_p_wxSizerTo_p_wxObject(void *x) {
33971 return (void *)((wxObject *) ((wxSizer *) x));
33972 }
33973 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33974 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33975 }
33976 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
33977 return (void *)((wxObject *) ((wxFileHistory *) x));
33978 }
33979 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33980 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33981 }
33982 static void *_p_wxEventTo_p_wxObject(void *x) {
33983 return (void *)((wxObject *) ((wxEvent *) x));
33984 }
33985 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33986 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33987 }
33988 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33989 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33990 }
33991 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33992 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33993 }
33994 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33995 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33996 }
33997 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33998 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33999 }
34000 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
34001 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
34002 }
34003 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
34004 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
34005 }
34006 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
34007 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
34008 }
34009 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
34010 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
34011 }
34012 static void *_p_wxControlTo_p_wxObject(void *x) {
34013 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
34014 }
34015 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
34016 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
34017 }
34018 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
34019 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
34020 }
34021 static void *_p_wxFSFileTo_p_wxObject(void *x) {
34022 return (void *)((wxObject *) ((wxFSFile *) x));
34023 }
34024 static void *_p_wxClipboardTo_p_wxObject(void *x) {
34025 return (void *)((wxObject *) ((wxClipboard *) x));
34026 }
34027 static void *_p_wxPySizerTo_p_wxObject(void *x) {
34028 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
34029 }
34030 static void *_p_wxPyEventTo_p_wxObject(void *x) {
34031 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
34032 }
34033 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
34034 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
34035 }
34036 static void *_p_wxShowEventTo_p_wxObject(void *x) {
34037 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
34038 }
34039 static void *_p_wxToolTipTo_p_wxObject(void *x) {
34040 return (void *)((wxObject *) ((wxToolTip *) x));
34041 }
34042 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
34043 return (void *)((wxObject *) ((wxMenuItem *) x));
34044 }
34045 static void *_p_wxDateEventTo_p_wxObject(void *x) {
34046 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
34047 }
34048 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
34049 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
34050 }
34051 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
34052 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
34053 }
34054 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
34055 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
34056 }
34057 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
34058 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
34059 }
34060 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
34061 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
34062 }
34063 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
34064 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
34065 }
34066 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
34067 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
34068 }
34069 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
34070 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
34071 }
34072 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
34073 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
34074 }
34075 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
34076 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
34077 }
34078 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
34079 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
34080 }
34081 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
34082 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
34083 }
34084 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
34085 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
34086 }
34087 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
34088 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
34089 }
34090 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
34091 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
34092 }
34093 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
34094 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
34095 }
34096 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
34097 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
34098 }
34099 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
34100 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
34101 }
34102 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
34103 return (void *)((wxObject *) ((wxImageHandler *) x));
34104 }
34105 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
34106 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
34107 }
34108 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
34109 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
34110 }
34111 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
34112 return (void *)((wxObject *) ((wxEvtHandler *) x));
34113 }
34114 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
34115 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
34116 }
34117 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
34118 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
34119 }
34120 static void *_p_wxImageTo_p_wxObject(void *x) {
34121 return (void *)((wxObject *) ((wxImage *) x));
34122 }
34123 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
34124 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
34125 }
34126 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
34127 return (void *)((wxObject *) ((wxSystemOptions *) x));
34128 }
34129 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
34130 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
34131 }
34132 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
34133 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
34134 }
34135 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
34136 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
34137 }
34138 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
34139 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
34140 }
34141 static void *_p_wxWindowTo_p_wxObject(void *x) {
34142 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
34143 }
34144 static void *_p_wxMenuTo_p_wxObject(void *x) {
34145 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
34146 }
34147 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
34148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
34149 }
34150 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
34151 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
34152 }
34153 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
34154 return (void *)((wxObject *) ((wxFileSystem *) x));
34155 }
34156 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
34157 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
34158 }
34159 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
34160 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
34161 }
34162 static void *_p_wxPyAppTo_p_wxObject(void *x) {
34163 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
34164 }
34165 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
34166 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
34167 }
34168 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
34169 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
34170 }
34171 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
34172 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
34173 }
34174 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
34175 return (void *)((wxObject *) ((wxBusyInfo *) x));
34176 }
34177 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
34178 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
34179 }
34180 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
34181 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
34182 }
34183 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
34184 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
34185 }
34186 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
34187 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
34188 }
34189 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
34190 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
34191 }
34192 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
34193 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
34194 }
34195 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
34196 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
34197 }
34198 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
34199 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
34200 }
34201 static void *_p_wxValidatorTo_p_wxObject(void *x) {
34202 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
34203 }
34204 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
34205 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
34206 }
34207 static void *_p_wxLogBufferTo_p_wxLog(void *x) {
34208 return (void *)((wxLog *) ((wxLogBuffer *) x));
34209 }
34210 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
34211 return (void *)((wxLog *) ((wxLogStderr *) x));
34212 }
34213 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
34214 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
34215 }
34216 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
34217 return (void *)((wxLog *) ((wxLogWindow *) x));
34218 }
34219 static void *_p_wxLogChainTo_p_wxLog(void *x) {
34220 return (void *)((wxLog *) ((wxLogChain *) x));
34221 }
34222 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
34223 return (void *)((wxLog *) ((wxLogGui *) x));
34224 }
34225 static void *_p_wxPyLogTo_p_wxLog(void *x) {
34226 return (void *)((wxLog *) ((wxPyLog *) x));
34227 }
34228 static void *_p_wxControlTo_p_wxWindow(void *x) {
34229 return (void *)((wxWindow *) ((wxControl *) x));
34230 }
34231 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
34232 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
34233 }
34234 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
34235 return (void *)((wxWindow *) ((wxMenuBar *) x));
34236 }
34237 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
34238 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
34239 }
34240 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
34241 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
34242 }
34243 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
34244 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
34245 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
34246 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
34247 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
34248 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, 0};
34249 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0};
34250 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, 0};
34251 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
34252 static swig_type_info _swigt__p_wxBitmapDataObject = {"_p_wxBitmapDataObject", "wxBitmapDataObject *", 0, 0, 0};
34253 static swig_type_info _swigt__p_wxBusyCursor = {"_p_wxBusyCursor", "wxBusyCursor *", 0, 0, 0};
34254 static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", "wxBusyInfo *", 0, 0, 0};
34255 static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, 0};
34256 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, 0};
34257 static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", "wxClipboard *", 0, 0, 0};
34258 static swig_type_info _swigt__p_wxClipboardLocker = {"_p_wxClipboardLocker", "wxClipboardLocker *", 0, 0, 0};
34259 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
34260 static swig_type_info _swigt__p_wxConfig = {"_p_wxConfig", "wxConfig *", 0, 0, 0};
34261 static swig_type_info _swigt__p_wxConfigBase = {"_p_wxConfigBase", "wxConfigBase *", 0, 0, 0};
34262 static swig_type_info _swigt__p_wxConfigPathChanger = {"_p_wxConfigPathChanger", "wxConfigPathChanger *", 0, 0, 0};
34263 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0};
34264 static swig_type_info _swigt__p_wxCustomDataObject = {"_p_wxCustomDataObject", "wxCustomDataObject *", 0, 0, 0};
34265 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0};
34266 static swig_type_info _swigt__p_wxDataFormat = {"_p_wxDataFormat", "wxDataFormat *", 0, 0, 0};
34267 static swig_type_info _swigt__p_wxDataObject = {"_p_wxDataObject", "wxDataObject *", 0, 0, 0};
34268 static swig_type_info _swigt__p_wxDataObjectComposite = {"_p_wxDataObjectComposite", "wxDataObjectComposite *", 0, 0, 0};
34269 static swig_type_info _swigt__p_wxDataObjectSimple = {"_p_wxDataObjectSimple", "wxDataObjectSimple *", 0, 0, 0};
34270 static swig_type_info _swigt__p_wxDateSpan = {"_p_wxDateSpan", "wxDateSpan *", 0, 0, 0};
34271 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0};
34272 static swig_type_info _swigt__p_wxDateTime__TimeZone = {"_p_wxDateTime__TimeZone", "wxDateTime::TimeZone *", 0, 0, 0};
34273 static swig_type_info _swigt__p_wxDisplay = {"_p_wxDisplay", "wxDisplay *", 0, 0, 0};
34274 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
34275 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0};
34276 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
34277 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
34278 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
34279 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
34280 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
34281 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
34282 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
34283 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
34284 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
34285 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
34286 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
34287 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
34288 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
34289 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
34290 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
34291 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
34292 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
34293 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
34294 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
34295 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
34296 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
34297 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
34298 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
34299 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
34300 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
34301 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
34302 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
34303 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
34304 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
34305 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
34306 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
34307 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
34308 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
34309 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
34310 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
34311 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
34312 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
34313 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
34314 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
34315 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
34316 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
34317 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
34318 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
34319 static swig_type_info _swigt__p_wxFileConfig = {"_p_wxFileConfig", "wxFileConfig *", 0, 0, 0};
34320 static swig_type_info _swigt__p_wxFileDataObject = {"_p_wxFileDataObject", "wxFileDataObject *", 0, 0, 0};
34321 static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", "wxFileHistory *", 0, 0, 0};
34322 static swig_type_info _swigt__p_wxFileType = {"_p_wxFileType", "wxFileType *", 0, 0, 0};
34323 static swig_type_info _swigt__p_wxFileTypeInfo = {"_p_wxFileTypeInfo", "wxFileTypeInfo *", 0, 0, 0};
34324 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
34325 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, 0};
34326 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
34327 static swig_type_info _swigt__p_wxJoystick = {"_p_wxJoystick", "wxJoystick *", 0, 0, 0};
34328 static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", "wxJoystickEvent *", 0, 0, 0};
34329 static swig_type_info _swigt__p_wxKillError = {"_p_wxKillError", "enum wxKillError *|wxKillError *", 0, 0, 0};
34330 static swig_type_info _swigt__p_wxLog = {"_p_wxLog", "wxLog *", 0, 0, 0};
34331 static swig_type_info _swigt__p_wxLogBuffer = {"_p_wxLogBuffer", "wxLogBuffer *", 0, 0, 0};
34332 static swig_type_info _swigt__p_wxLogChain = {"_p_wxLogChain", "wxLogChain *", 0, 0, 0};
34333 static swig_type_info _swigt__p_wxLogGui = {"_p_wxLogGui", "wxLogGui *", 0, 0, 0};
34334 static swig_type_info _swigt__p_wxLogNull = {"_p_wxLogNull", "wxLogNull *", 0, 0, 0};
34335 static swig_type_info _swigt__p_wxLogStderr = {"_p_wxLogStderr", "wxLogStderr *", 0, 0, 0};
34336 static swig_type_info _swigt__p_wxLogTextCtrl = {"_p_wxLogTextCtrl", "wxLogTextCtrl *", 0, 0, 0};
34337 static swig_type_info _swigt__p_wxLogWindow = {"_p_wxLogWindow", "wxLogWindow *", 0, 0, 0};
34338 static swig_type_info _swigt__p_wxMemorySize = {"_p_wxMemorySize", "wxMemorySize *", 0, 0, 0};
34339 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, 0};
34340 static swig_type_info _swigt__p_wxMetafile = {"_p_wxMetafile", "wxMetafile *", 0, 0, 0};
34341 static swig_type_info _swigt__p_wxMetafileDataObject = {"_p_wxMetafileDataObject", "wxMetafileDataObject *", 0, 0, 0};
34342 static swig_type_info _swigt__p_wxMimeTypesManager = {"_p_wxMimeTypesManager", "wxMimeTypesManager *", 0, 0, 0};
34343 static swig_type_info _swigt__p_wxMouseState = {"_p_wxMouseState", "wxMouseState *", 0, 0, 0};
34344 static swig_type_info _swigt__p_wxMutexGuiLocker = {"_p_wxMutexGuiLocker", "wxMutexGuiLocker *", 0, 0, 0};
34345 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
34346 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
34347 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
34348 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
34349 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
34350 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
34351 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
34352 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
34353 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
34354 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
34355 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
34356 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
34357 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
34358 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
34359 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
34360 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
34361 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
34362 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
34363 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
34364 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
34365 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
34366 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
34367 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
34368 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
34369 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
34370 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
34371 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
34372 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
34373 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
34374 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
34375 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
34376 static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, 0};
34377 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
34378 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
34379 static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", "wxProcessEvent *", 0, 0, 0};
34380 static swig_type_info _swigt__p_wxPyArtProvider = {"_p_wxPyArtProvider", "wxPyArtProvider *", 0, 0, 0};
34381 static swig_type_info _swigt__p_wxPyBitmapDataObject = {"_p_wxPyBitmapDataObject", "wxPyBitmapDataObject *", 0, 0, 0};
34382 static swig_type_info _swigt__p_wxPyDataObjectSimple = {"_p_wxPyDataObjectSimple", "wxPyDataObjectSimple *", 0, 0, 0};
34383 static swig_type_info _swigt__p_wxPyDropSource = {"_p_wxPyDropSource", "wxPyDropSource *", 0, 0, 0};
34384 static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, 0};
34385 static swig_type_info _swigt__p_wxPyFileDropTarget = {"_p_wxPyFileDropTarget", "wxPyFileDropTarget *", 0, 0, 0};
34386 static swig_type_info _swigt__p_wxPyLog = {"_p_wxPyLog", "wxPyLog *", 0, 0, 0};
34387 static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", "wxPyProcess *", 0, 0, 0};
34388 static swig_type_info _swigt__p_wxPyTextDataObject = {"_p_wxPyTextDataObject", "wxPyTextDataObject *", 0, 0, 0};
34389 static swig_type_info _swigt__p_wxPyTextDropTarget = {"_p_wxPyTextDropTarget", "wxPyTextDropTarget *", 0, 0, 0};
34390 static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", "wxPyTimer *", 0, 0, 0};
34391 static swig_type_info _swigt__p_wxPyTipProvider = {"_p_wxPyTipProvider", "wxPyTipProvider *", 0, 0, 0};
34392 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0};
34393 static swig_type_info _swigt__p_wxSingleInstanceChecker = {"_p_wxSingleInstanceChecker", "wxSingleInstanceChecker *", 0, 0, 0};
34394 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
34395 static swig_type_info _swigt__p_wxSound = {"_p_wxSound", "wxSound *", 0, 0, 0};
34396 static swig_type_info _swigt__p_wxStandardPaths = {"_p_wxStandardPaths", "wxStandardPaths *", 0, 0, 0};
34397 static swig_type_info _swigt__p_wxStopWatch = {"_p_wxStopWatch", "wxStopWatch *", 0, 0, 0};
34398 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0};
34399 static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", "wxSystemOptions *", 0, 0, 0};
34400 static swig_type_info _swigt__p_wxSystemSettings = {"_p_wxSystemSettings", "wxSystemSettings *", 0, 0, 0};
34401 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, 0};
34402 static swig_type_info _swigt__p_wxTextDataObject = {"_p_wxTextDataObject", "wxTextDataObject *", 0, 0, 0};
34403 static swig_type_info _swigt__p_wxTimeSpan = {"_p_wxTimeSpan", "wxTimeSpan *", 0, 0, 0};
34404 static swig_type_info _swigt__p_wxTimer = {"_p_wxTimer", "wxTimer *", 0, 0, 0};
34405 static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", "wxTimerEvent *", 0, 0, 0};
34406 static swig_type_info _swigt__p_wxTimerRunner = {"_p_wxTimerRunner", "wxTimerRunner *", 0, 0, 0};
34407 static swig_type_info _swigt__p_wxTipProvider = {"_p_wxTipProvider", "wxTipProvider *", 0, 0, 0};
34408 static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, 0};
34409 static swig_type_info _swigt__p_wxURLDataObject = {"_p_wxURLDataObject", "wxURLDataObject *", 0, 0, 0};
34410 static swig_type_info _swigt__p_wxVideoMode = {"_p_wxVideoMode", "wxVideoMode *", 0, 0, 0};
34411 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
34412 static swig_type_info _swigt__p_wxWindowDisabler = {"_p_wxWindowDisabler", "wxWindowDisabler *", 0, 0, 0};
34413 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
34414 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
34415 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
34416
34417 static swig_type_info *swig_type_initial[] = {
34418 &_swigt__p_char,
34419 &_swigt__p_form_ops_t,
34420 &_swigt__p_int,
34421 &_swigt__p_unsigned_char,
34422 &_swigt__p_unsigned_int,
34423 &_swigt__p_unsigned_long,
34424 &_swigt__p_void,
34425 &_swigt__p_wxANIHandler,
34426 &_swigt__p_wxAcceleratorTable,
34427 &_swigt__p_wxActivateEvent,
34428 &_swigt__p_wxArrayString,
34429 &_swigt__p_wxBMPHandler,
34430 &_swigt__p_wxBitmap,
34431 &_swigt__p_wxBitmapDataObject,
34432 &_swigt__p_wxBoxSizer,
34433 &_swigt__p_wxBusyCursor,
34434 &_swigt__p_wxBusyInfo,
34435 &_swigt__p_wxCURHandler,
34436 &_swigt__p_wxCaret,
34437 &_swigt__p_wxChar,
34438 &_swigt__p_wxChildFocusEvent,
34439 &_swigt__p_wxClipboard,
34440 &_swigt__p_wxClipboardLocker,
34441 &_swigt__p_wxCloseEvent,
34442 &_swigt__p_wxColour,
34443 &_swigt__p_wxCommandEvent,
34444 &_swigt__p_wxConfig,
34445 &_swigt__p_wxConfigBase,
34446 &_swigt__p_wxConfigPathChanger,
34447 &_swigt__p_wxContextMenuEvent,
34448 &_swigt__p_wxControl,
34449 &_swigt__p_wxControlWithItems,
34450 &_swigt__p_wxCursor,
34451 &_swigt__p_wxCustomDataObject,
34452 &_swigt__p_wxDC,
34453 &_swigt__p_wxDataFormat,
34454 &_swigt__p_wxDataObject,
34455 &_swigt__p_wxDataObjectComposite,
34456 &_swigt__p_wxDataObjectSimple,
34457 &_swigt__p_wxDateEvent,
34458 &_swigt__p_wxDateSpan,
34459 &_swigt__p_wxDateTime,
34460 &_swigt__p_wxDateTime__TimeZone,
34461 &_swigt__p_wxDisplay,
34462 &_swigt__p_wxDisplayChangedEvent,
34463 &_swigt__p_wxDropFilesEvent,
34464 &_swigt__p_wxDuplexMode,
34465 &_swigt__p_wxEraseEvent,
34466 &_swigt__p_wxEvent,
34467 &_swigt__p_wxEvtHandler,
34468 &_swigt__p_wxFSFile,
34469 &_swigt__p_wxFileConfig,
34470 &_swigt__p_wxFileDataObject,
34471 &_swigt__p_wxFileHistory,
34472 &_swigt__p_wxFileSystem,
34473 &_swigt__p_wxFileType,
34474 &_swigt__p_wxFileTypeInfo,
34475 &_swigt__p_wxFlexGridSizer,
34476 &_swigt__p_wxFocusEvent,
34477 &_swigt__p_wxFont,
34478 &_swigt__p_wxFrame,
34479 &_swigt__p_wxGBSizerItem,
34480 &_swigt__p_wxGIFHandler,
34481 &_swigt__p_wxGridBagSizer,
34482 &_swigt__p_wxGridSizer,
34483 &_swigt__p_wxICOHandler,
34484 &_swigt__p_wxIcon,
34485 &_swigt__p_wxIconizeEvent,
34486 &_swigt__p_wxIdleEvent,
34487 &_swigt__p_wxImage,
34488 &_swigt__p_wxImageHandler,
34489 &_swigt__p_wxIndividualLayoutConstraint,
34490 &_swigt__p_wxInitDialogEvent,
34491 &_swigt__p_wxJPEGHandler,
34492 &_swigt__p_wxJoystick,
34493 &_swigt__p_wxJoystickEvent,
34494 &_swigt__p_wxKeyEvent,
34495 &_swigt__p_wxKillError,
34496 &_swigt__p_wxLayoutConstraints,
34497 &_swigt__p_wxLog,
34498 &_swigt__p_wxLogBuffer,
34499 &_swigt__p_wxLogChain,
34500 &_swigt__p_wxLogGui,
34501 &_swigt__p_wxLogNull,
34502 &_swigt__p_wxLogStderr,
34503 &_swigt__p_wxLogTextCtrl,
34504 &_swigt__p_wxLogWindow,
34505 &_swigt__p_wxMaximizeEvent,
34506 &_swigt__p_wxMemorySize,
34507 &_swigt__p_wxMenu,
34508 &_swigt__p_wxMenuBar,
34509 &_swigt__p_wxMenuEvent,
34510 &_swigt__p_wxMenuItem,
34511 &_swigt__p_wxMetafile,
34512 &_swigt__p_wxMetafileDataObject,
34513 &_swigt__p_wxMimeTypesManager,
34514 &_swigt__p_wxMouseCaptureChangedEvent,
34515 &_swigt__p_wxMouseEvent,
34516 &_swigt__p_wxMouseState,
34517 &_swigt__p_wxMoveEvent,
34518 &_swigt__p_wxMutexGuiLocker,
34519 &_swigt__p_wxNavigationKeyEvent,
34520 &_swigt__p_wxNcPaintEvent,
34521 &_swigt__p_wxNotifyEvent,
34522 &_swigt__p_wxObject,
34523 &_swigt__p_wxOutputStream,
34524 &_swigt__p_wxPCXHandler,
34525 &_swigt__p_wxPNGHandler,
34526 &_swigt__p_wxPNMHandler,
34527 &_swigt__p_wxPaintEvent,
34528 &_swigt__p_wxPaletteChangedEvent,
34529 &_swigt__p_wxPaperSize,
34530 &_swigt__p_wxPoint,
34531 &_swigt__p_wxProcessEvent,
34532 &_swigt__p_wxPyApp,
34533 &_swigt__p_wxPyArtProvider,
34534 &_swigt__p_wxPyBitmapDataObject,
34535 &_swigt__p_wxPyCommandEvent,
34536 &_swigt__p_wxPyDataObjectSimple,
34537 &_swigt__p_wxPyDropSource,
34538 &_swigt__p_wxPyDropTarget,
34539 &_swigt__p_wxPyEvent,
34540 &_swigt__p_wxPyFileDropTarget,
34541 &_swigt__p_wxPyImageHandler,
34542 &_swigt__p_wxPyLog,
34543 &_swigt__p_wxPyProcess,
34544 &_swigt__p_wxPySizer,
34545 &_swigt__p_wxPyTextDataObject,
34546 &_swigt__p_wxPyTextDropTarget,
34547 &_swigt__p_wxPyTimer,
34548 &_swigt__p_wxPyTipProvider,
34549 &_swigt__p_wxPyValidator,
34550 &_swigt__p_wxQueryNewPaletteEvent,
34551 &_swigt__p_wxRect,
34552 &_swigt__p_wxScrollEvent,
34553 &_swigt__p_wxScrollWinEvent,
34554 &_swigt__p_wxSetCursorEvent,
34555 &_swigt__p_wxShowEvent,
34556 &_swigt__p_wxSingleInstanceChecker,
34557 &_swigt__p_wxSize,
34558 &_swigt__p_wxSizeEvent,
34559 &_swigt__p_wxSizer,
34560 &_swigt__p_wxSizerItem,
34561 &_swigt__p_wxSound,
34562 &_swigt__p_wxStandardPaths,
34563 &_swigt__p_wxStaticBoxSizer,
34564 &_swigt__p_wxStdDialogButtonSizer,
34565 &_swigt__p_wxStopWatch,
34566 &_swigt__p_wxString,
34567 &_swigt__p_wxSysColourChangedEvent,
34568 &_swigt__p_wxSystemOptions,
34569 &_swigt__p_wxSystemSettings,
34570 &_swigt__p_wxTIFFHandler,
34571 &_swigt__p_wxTextCtrl,
34572 &_swigt__p_wxTextDataObject,
34573 &_swigt__p_wxTimeSpan,
34574 &_swigt__p_wxTimer,
34575 &_swigt__p_wxTimerEvent,
34576 &_swigt__p_wxTimerRunner,
34577 &_swigt__p_wxTipProvider,
34578 &_swigt__p_wxToolTip,
34579 &_swigt__p_wxURLDataObject,
34580 &_swigt__p_wxUpdateUIEvent,
34581 &_swigt__p_wxValidator,
34582 &_swigt__p_wxVideoMode,
34583 &_swigt__p_wxWindow,
34584 &_swigt__p_wxWindowCreateEvent,
34585 &_swigt__p_wxWindowDestroyEvent,
34586 &_swigt__p_wxWindowDisabler,
34587 &_swigt__p_wxXPMHandler,
34588 &_swigt__ptrdiff_t,
34589 &_swigt__std__ptrdiff_t,
34590 &_swigt__unsigned_int,
34591 };
34592
34593 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
34594 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
34595 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
34596 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
34597 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
34598 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
34599 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
34600 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
34601 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
34602 static swig_cast_info _swigc__p_wxBitmapDataObject[] = { {&_swigt__p_wxBitmapDataObject, 0, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0},{0, 0, 0, 0}};
34603 static swig_cast_info _swigc__p_wxBusyCursor[] = { {&_swigt__p_wxBusyCursor, 0, 0, 0},{0, 0, 0, 0}};
34604 static swig_cast_info _swigc__p_wxBusyInfo[] = { {&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}};
34605 static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
34606 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
34607 static swig_cast_info _swigc__p_wxClipboard[] = { {&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}};
34608 static swig_cast_info _swigc__p_wxClipboardLocker[] = { {&_swigt__p_wxClipboardLocker, 0, 0, 0},{0, 0, 0, 0}};
34609 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
34610 static swig_cast_info _swigc__p_wxConfig[] = { {&_swigt__p_wxConfig, 0, 0, 0},{0, 0, 0, 0}};
34611 static swig_cast_info _swigc__p_wxConfigBase[] = { {&_swigt__p_wxFileConfig, _p_wxFileConfigTo_p_wxConfigBase, 0, 0}, {&_swigt__p_wxConfigBase, 0, 0, 0}, {&_swigt__p_wxConfig, _p_wxConfigTo_p_wxConfigBase, 0, 0},{0, 0, 0, 0}};
34612 static swig_cast_info _swigc__p_wxConfigPathChanger[] = { {&_swigt__p_wxConfigPathChanger, 0, 0, 0},{0, 0, 0, 0}};
34613 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
34614 static swig_cast_info _swigc__p_wxCustomDataObject[] = { {&_swigt__p_wxCustomDataObject, 0, 0, 0},{0, 0, 0, 0}};
34615 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
34616 static swig_cast_info _swigc__p_wxDataFormat[] = { {&_swigt__p_wxDataFormat, 0, 0, 0},{0, 0, 0, 0}};
34617 static swig_cast_info _swigc__p_wxDataObject[] = { {&_swigt__p_wxDataObjectSimple, _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyDataObjectSimple, _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxDataObjectComposite, _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxDataObject, 0, 0, 0}, {&_swigt__p_wxTextDataObject, _p_wxTextDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxBitmapDataObject, _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxFileDataObject, _p_wxFileDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxCustomDataObject, _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxMetafileDataObject, _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxURLDataObject, _p_wxURLDataObjectTo_p_wxDataObject, 0, 0},{0, 0, 0, 0}};
34618 static swig_cast_info _swigc__p_wxDataObjectComposite[] = { {&_swigt__p_wxDataObjectComposite, 0, 0, 0},{0, 0, 0, 0}};
34619 static swig_cast_info _swigc__p_wxDataObjectSimple[] = { {&_swigt__p_wxDataObjectSimple, 0, 0, 0}, {&_swigt__p_wxPyDataObjectSimple, _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxTextDataObject, _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxBitmapDataObject, _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxFileDataObject, _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxCustomDataObject, _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxMetafileDataObject, _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0},{0, 0, 0, 0}};
34620 static swig_cast_info _swigc__p_wxDateSpan[] = { {&_swigt__p_wxDateSpan, 0, 0, 0},{0, 0, 0, 0}};
34621 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
34622 static swig_cast_info _swigc__p_wxDateTime__TimeZone[] = { {&_swigt__p_wxDateTime__TimeZone, 0, 0, 0},{0, 0, 0, 0}};
34623 static swig_cast_info _swigc__p_wxDisplay[] = { {&_swigt__p_wxDisplay, 0, 0, 0},{0, 0, 0, 0}};
34624 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
34625 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
34626 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
34627 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
34628 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
34629 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
34630 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
34631 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
34632 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
34633 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34634 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
34635 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
34636 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
34637 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
34638 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34639 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34640 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
34641 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34642 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34643 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
34644 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
34645 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
34646 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
34647 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34648 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34649 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34650 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34651 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
34652 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
34653 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
34654 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
34655 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
34656 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
34657 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
34658 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
34659 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
34660 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34661 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxProcessEvent, _p_wxProcessEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
34662 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
34663 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
34664 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
34665 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
34666 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
34667 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
34668 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
34669 static swig_cast_info _swigc__p_wxFileConfig[] = { {&_swigt__p_wxFileConfig, 0, 0, 0},{0, 0, 0, 0}};
34670 static swig_cast_info _swigc__p_wxFileDataObject[] = { {&_swigt__p_wxFileDataObject, 0, 0, 0},{0, 0, 0, 0}};
34671 static swig_cast_info _swigc__p_wxFileHistory[] = { {&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}};
34672 static swig_cast_info _swigc__p_wxFileType[] = { {&_swigt__p_wxFileType, 0, 0, 0},{0, 0, 0, 0}};
34673 static swig_cast_info _swigc__p_wxFileTypeInfo[] = { {&_swigt__p_wxFileTypeInfo, 0, 0, 0},{0, 0, 0, 0}};
34674 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
34675 static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
34676 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
34677 static swig_cast_info _swigc__p_wxJoystick[] = { {&_swigt__p_wxJoystick, 0, 0, 0},{0, 0, 0, 0}};
34678 static swig_cast_info _swigc__p_wxJoystickEvent[] = { {&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}};
34679 static swig_cast_info _swigc__p_wxKillError[] = { {&_swigt__p_wxKillError, 0, 0, 0},{0, 0, 0, 0}};
34680 static swig_cast_info _swigc__p_wxLog[] = { {&_swigt__p_wxLogBuffer, _p_wxLogBufferTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogStderr, _p_wxLogStderrTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogTextCtrl, _p_wxLogTextCtrlTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogWindow, _p_wxLogWindowTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogChain, _p_wxLogChainTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogGui, _p_wxLogGuiTo_p_wxLog, 0, 0}, {&_swigt__p_wxPyLog, _p_wxPyLogTo_p_wxLog, 0, 0}, {&_swigt__p_wxLog, 0, 0, 0},{0, 0, 0, 0}};
34681 static swig_cast_info _swigc__p_wxLogBuffer[] = { {&_swigt__p_wxLogBuffer, 0, 0, 0},{0, 0, 0, 0}};
34682 static swig_cast_info _swigc__p_wxLogChain[] = { {&_swigt__p_wxLogChain, 0, 0, 0},{0, 0, 0, 0}};
34683 static swig_cast_info _swigc__p_wxLogGui[] = { {&_swigt__p_wxLogGui, 0, 0, 0},{0, 0, 0, 0}};
34684 static swig_cast_info _swigc__p_wxLogNull[] = { {&_swigt__p_wxLogNull, 0, 0, 0},{0, 0, 0, 0}};
34685 static swig_cast_info _swigc__p_wxLogStderr[] = { {&_swigt__p_wxLogStderr, 0, 0, 0},{0, 0, 0, 0}};
34686 static swig_cast_info _swigc__p_wxLogTextCtrl[] = { {&_swigt__p_wxLogTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
34687 static swig_cast_info _swigc__p_wxLogWindow[] = { {&_swigt__p_wxLogWindow, 0, 0, 0},{0, 0, 0, 0}};
34688 static swig_cast_info _swigc__p_wxMemorySize[] = { {&_swigt__p_wxMemorySize, 0, 0, 0},{0, 0, 0, 0}};
34689 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
34690 static swig_cast_info _swigc__p_wxMetafile[] = { {&_swigt__p_wxMetafile, 0, 0, 0},{0, 0, 0, 0}};
34691 static swig_cast_info _swigc__p_wxMetafileDataObject[] = { {&_swigt__p_wxMetafileDataObject, 0, 0, 0},{0, 0, 0, 0}};
34692 static swig_cast_info _swigc__p_wxMimeTypesManager[] = { {&_swigt__p_wxMimeTypesManager, 0, 0, 0},{0, 0, 0, 0}};
34693 static swig_cast_info _swigc__p_wxMouseState[] = { {&_swigt__p_wxMouseState, 0, 0, 0},{0, 0, 0, 0}};
34694 static swig_cast_info _swigc__p_wxMutexGuiLocker[] = { {&_swigt__p_wxMutexGuiLocker, 0, 0, 0},{0, 0, 0, 0}};
34695 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
34696 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34697 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34698 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
34699 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
34700 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
34701 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
34702 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
34703 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
34704 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
34705 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
34706 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
34707 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
34708 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
34709 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
34710 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
34711 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
34712 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
34713 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
34714 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
34715 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
34716 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
34717 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
34718 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
34719 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
34720 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34721 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
34722 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
34723 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
34724 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34725 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileHistory, _p_wxFileHistoryTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboard, _p_wxClipboardTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolTip, _p_wxToolTipTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSystemOptions, _p_wxSystemOptionsTo_p_wxObject, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBusyInfo, _p_wxBusyInfoTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxProcessEvent, _p_wxProcessEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
34726 static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
34727 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
34728 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
34729 static swig_cast_info _swigc__p_wxProcessEvent[] = { {&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}};
34730 static swig_cast_info _swigc__p_wxPyArtProvider[] = { {&_swigt__p_wxPyArtProvider, 0, 0, 0},{0, 0, 0, 0}};
34731 static swig_cast_info _swigc__p_wxPyBitmapDataObject[] = { {&_swigt__p_wxPyBitmapDataObject, 0, 0, 0},{0, 0, 0, 0}};
34732 static swig_cast_info _swigc__p_wxPyDataObjectSimple[] = { {&_swigt__p_wxPyDataObjectSimple, 0, 0, 0},{0, 0, 0, 0}};
34733 static swig_cast_info _swigc__p_wxPyDropSource[] = { {&_swigt__p_wxPyDropSource, 0, 0, 0},{0, 0, 0, 0}};
34734 static swig_cast_info _swigc__p_wxPyDropTarget[] = { {&_swigt__p_wxPyDropTarget, 0, 0, 0}, {&_swigt__p_wxPyTextDropTarget, _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0}, {&_swigt__p_wxPyFileDropTarget, _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0},{0, 0, 0, 0}};
34735 static swig_cast_info _swigc__p_wxPyFileDropTarget[] = { {&_swigt__p_wxPyFileDropTarget, 0, 0, 0},{0, 0, 0, 0}};
34736 static swig_cast_info _swigc__p_wxPyLog[] = { {&_swigt__p_wxPyLog, 0, 0, 0},{0, 0, 0, 0}};
34737 static swig_cast_info _swigc__p_wxPyProcess[] = { {&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}};
34738 static swig_cast_info _swigc__p_wxPyTextDataObject[] = { {&_swigt__p_wxPyTextDataObject, 0, 0, 0},{0, 0, 0, 0}};
34739 static swig_cast_info _swigc__p_wxPyTextDropTarget[] = { {&_swigt__p_wxPyTextDropTarget, 0, 0, 0},{0, 0, 0, 0}};
34740 static swig_cast_info _swigc__p_wxPyTimer[] = { {&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}};
34741 static swig_cast_info _swigc__p_wxPyTipProvider[] = { {&_swigt__p_wxPyTipProvider, 0, 0, 0},{0, 0, 0, 0}};
34742 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
34743 static swig_cast_info _swigc__p_wxSingleInstanceChecker[] = { {&_swigt__p_wxSingleInstanceChecker, 0, 0, 0},{0, 0, 0, 0}};
34744 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
34745 static swig_cast_info _swigc__p_wxSound[] = { {&_swigt__p_wxSound, 0, 0, 0},{0, 0, 0, 0}};
34746 static swig_cast_info _swigc__p_wxStandardPaths[] = { {&_swigt__p_wxStandardPaths, 0, 0, 0},{0, 0, 0, 0}};
34747 static swig_cast_info _swigc__p_wxStopWatch[] = { {&_swigt__p_wxStopWatch, 0, 0, 0},{0, 0, 0, 0}};
34748 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
34749 static swig_cast_info _swigc__p_wxSystemOptions[] = { {&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}};
34750 static swig_cast_info _swigc__p_wxSystemSettings[] = { {&_swigt__p_wxSystemSettings, 0, 0, 0},{0, 0, 0, 0}};
34751 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
34752 static swig_cast_info _swigc__p_wxTextDataObject[] = { {&_swigt__p_wxTextDataObject, 0, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0},{0, 0, 0, 0}};
34753 static swig_cast_info _swigc__p_wxTimeSpan[] = { {&_swigt__p_wxTimeSpan, 0, 0, 0},{0, 0, 0, 0}};
34754 static swig_cast_info _swigc__p_wxTimer[] = { {&_swigt__p_wxTimer, 0, 0, 0},{0, 0, 0, 0}};
34755 static swig_cast_info _swigc__p_wxTimerEvent[] = { {&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}};
34756 static swig_cast_info _swigc__p_wxTimerRunner[] = { {&_swigt__p_wxTimerRunner, 0, 0, 0},{0, 0, 0, 0}};
34757 static swig_cast_info _swigc__p_wxTipProvider[] = { {&_swigt__p_wxTipProvider, 0, 0, 0}, {&_swigt__p_wxPyTipProvider, _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0},{0, 0, 0, 0}};
34758 static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
34759 static swig_cast_info _swigc__p_wxURLDataObject[] = { {&_swigt__p_wxURLDataObject, 0, 0, 0},{0, 0, 0, 0}};
34760 static swig_cast_info _swigc__p_wxVideoMode[] = { {&_swigt__p_wxVideoMode, 0, 0, 0},{0, 0, 0, 0}};
34761 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
34762 static swig_cast_info _swigc__p_wxWindowDisabler[] = { {&_swigt__p_wxWindowDisabler, 0, 0, 0},{0, 0, 0, 0}};
34763 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
34764 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
34765 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
34766
34767 static swig_cast_info *swig_cast_initial[] = {
34768 _swigc__p_char,
34769 _swigc__p_form_ops_t,
34770 _swigc__p_int,
34771 _swigc__p_unsigned_char,
34772 _swigc__p_unsigned_int,
34773 _swigc__p_unsigned_long,
34774 _swigc__p_void,
34775 _swigc__p_wxANIHandler,
34776 _swigc__p_wxAcceleratorTable,
34777 _swigc__p_wxActivateEvent,
34778 _swigc__p_wxArrayString,
34779 _swigc__p_wxBMPHandler,
34780 _swigc__p_wxBitmap,
34781 _swigc__p_wxBitmapDataObject,
34782 _swigc__p_wxBoxSizer,
34783 _swigc__p_wxBusyCursor,
34784 _swigc__p_wxBusyInfo,
34785 _swigc__p_wxCURHandler,
34786 _swigc__p_wxCaret,
34787 _swigc__p_wxChar,
34788 _swigc__p_wxChildFocusEvent,
34789 _swigc__p_wxClipboard,
34790 _swigc__p_wxClipboardLocker,
34791 _swigc__p_wxCloseEvent,
34792 _swigc__p_wxColour,
34793 _swigc__p_wxCommandEvent,
34794 _swigc__p_wxConfig,
34795 _swigc__p_wxConfigBase,
34796 _swigc__p_wxConfigPathChanger,
34797 _swigc__p_wxContextMenuEvent,
34798 _swigc__p_wxControl,
34799 _swigc__p_wxControlWithItems,
34800 _swigc__p_wxCursor,
34801 _swigc__p_wxCustomDataObject,
34802 _swigc__p_wxDC,
34803 _swigc__p_wxDataFormat,
34804 _swigc__p_wxDataObject,
34805 _swigc__p_wxDataObjectComposite,
34806 _swigc__p_wxDataObjectSimple,
34807 _swigc__p_wxDateEvent,
34808 _swigc__p_wxDateSpan,
34809 _swigc__p_wxDateTime,
34810 _swigc__p_wxDateTime__TimeZone,
34811 _swigc__p_wxDisplay,
34812 _swigc__p_wxDisplayChangedEvent,
34813 _swigc__p_wxDropFilesEvent,
34814 _swigc__p_wxDuplexMode,
34815 _swigc__p_wxEraseEvent,
34816 _swigc__p_wxEvent,
34817 _swigc__p_wxEvtHandler,
34818 _swigc__p_wxFSFile,
34819 _swigc__p_wxFileConfig,
34820 _swigc__p_wxFileDataObject,
34821 _swigc__p_wxFileHistory,
34822 _swigc__p_wxFileSystem,
34823 _swigc__p_wxFileType,
34824 _swigc__p_wxFileTypeInfo,
34825 _swigc__p_wxFlexGridSizer,
34826 _swigc__p_wxFocusEvent,
34827 _swigc__p_wxFont,
34828 _swigc__p_wxFrame,
34829 _swigc__p_wxGBSizerItem,
34830 _swigc__p_wxGIFHandler,
34831 _swigc__p_wxGridBagSizer,
34832 _swigc__p_wxGridSizer,
34833 _swigc__p_wxICOHandler,
34834 _swigc__p_wxIcon,
34835 _swigc__p_wxIconizeEvent,
34836 _swigc__p_wxIdleEvent,
34837 _swigc__p_wxImage,
34838 _swigc__p_wxImageHandler,
34839 _swigc__p_wxIndividualLayoutConstraint,
34840 _swigc__p_wxInitDialogEvent,
34841 _swigc__p_wxJPEGHandler,
34842 _swigc__p_wxJoystick,
34843 _swigc__p_wxJoystickEvent,
34844 _swigc__p_wxKeyEvent,
34845 _swigc__p_wxKillError,
34846 _swigc__p_wxLayoutConstraints,
34847 _swigc__p_wxLog,
34848 _swigc__p_wxLogBuffer,
34849 _swigc__p_wxLogChain,
34850 _swigc__p_wxLogGui,
34851 _swigc__p_wxLogNull,
34852 _swigc__p_wxLogStderr,
34853 _swigc__p_wxLogTextCtrl,
34854 _swigc__p_wxLogWindow,
34855 _swigc__p_wxMaximizeEvent,
34856 _swigc__p_wxMemorySize,
34857 _swigc__p_wxMenu,
34858 _swigc__p_wxMenuBar,
34859 _swigc__p_wxMenuEvent,
34860 _swigc__p_wxMenuItem,
34861 _swigc__p_wxMetafile,
34862 _swigc__p_wxMetafileDataObject,
34863 _swigc__p_wxMimeTypesManager,
34864 _swigc__p_wxMouseCaptureChangedEvent,
34865 _swigc__p_wxMouseEvent,
34866 _swigc__p_wxMouseState,
34867 _swigc__p_wxMoveEvent,
34868 _swigc__p_wxMutexGuiLocker,
34869 _swigc__p_wxNavigationKeyEvent,
34870 _swigc__p_wxNcPaintEvent,
34871 _swigc__p_wxNotifyEvent,
34872 _swigc__p_wxObject,
34873 _swigc__p_wxOutputStream,
34874 _swigc__p_wxPCXHandler,
34875 _swigc__p_wxPNGHandler,
34876 _swigc__p_wxPNMHandler,
34877 _swigc__p_wxPaintEvent,
34878 _swigc__p_wxPaletteChangedEvent,
34879 _swigc__p_wxPaperSize,
34880 _swigc__p_wxPoint,
34881 _swigc__p_wxProcessEvent,
34882 _swigc__p_wxPyApp,
34883 _swigc__p_wxPyArtProvider,
34884 _swigc__p_wxPyBitmapDataObject,
34885 _swigc__p_wxPyCommandEvent,
34886 _swigc__p_wxPyDataObjectSimple,
34887 _swigc__p_wxPyDropSource,
34888 _swigc__p_wxPyDropTarget,
34889 _swigc__p_wxPyEvent,
34890 _swigc__p_wxPyFileDropTarget,
34891 _swigc__p_wxPyImageHandler,
34892 _swigc__p_wxPyLog,
34893 _swigc__p_wxPyProcess,
34894 _swigc__p_wxPySizer,
34895 _swigc__p_wxPyTextDataObject,
34896 _swigc__p_wxPyTextDropTarget,
34897 _swigc__p_wxPyTimer,
34898 _swigc__p_wxPyTipProvider,
34899 _swigc__p_wxPyValidator,
34900 _swigc__p_wxQueryNewPaletteEvent,
34901 _swigc__p_wxRect,
34902 _swigc__p_wxScrollEvent,
34903 _swigc__p_wxScrollWinEvent,
34904 _swigc__p_wxSetCursorEvent,
34905 _swigc__p_wxShowEvent,
34906 _swigc__p_wxSingleInstanceChecker,
34907 _swigc__p_wxSize,
34908 _swigc__p_wxSizeEvent,
34909 _swigc__p_wxSizer,
34910 _swigc__p_wxSizerItem,
34911 _swigc__p_wxSound,
34912 _swigc__p_wxStandardPaths,
34913 _swigc__p_wxStaticBoxSizer,
34914 _swigc__p_wxStdDialogButtonSizer,
34915 _swigc__p_wxStopWatch,
34916 _swigc__p_wxString,
34917 _swigc__p_wxSysColourChangedEvent,
34918 _swigc__p_wxSystemOptions,
34919 _swigc__p_wxSystemSettings,
34920 _swigc__p_wxTIFFHandler,
34921 _swigc__p_wxTextCtrl,
34922 _swigc__p_wxTextDataObject,
34923 _swigc__p_wxTimeSpan,
34924 _swigc__p_wxTimer,
34925 _swigc__p_wxTimerEvent,
34926 _swigc__p_wxTimerRunner,
34927 _swigc__p_wxTipProvider,
34928 _swigc__p_wxToolTip,
34929 _swigc__p_wxURLDataObject,
34930 _swigc__p_wxUpdateUIEvent,
34931 _swigc__p_wxValidator,
34932 _swigc__p_wxVideoMode,
34933 _swigc__p_wxWindow,
34934 _swigc__p_wxWindowCreateEvent,
34935 _swigc__p_wxWindowDestroyEvent,
34936 _swigc__p_wxWindowDisabler,
34937 _swigc__p_wxXPMHandler,
34938 _swigc__ptrdiff_t,
34939 _swigc__std__ptrdiff_t,
34940 _swigc__unsigned_int,
34941 };
34942
34943
34944 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
34945
34946 static swig_const_info swig_const_table[] = {
34947 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
34948 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
34949 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
34950 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
34951 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
34952 {0, 0, 0, 0.0, 0, 0}};
34953
34954 #ifdef __cplusplus
34955 }
34956 #endif
34957 /*************************************************************************
34958 * Type initialization:
34959 * This problem is tough by the requirement that no dynamic
34960 * memory is used. Also, since swig_type_info structures store pointers to
34961 * swig_cast_info structures and swig_cast_info structures store pointers back
34962 * to swig_type_info structures, we need some lookup code at initialization.
34963 * The idea is that swig generates all the structures that are needed.
34964 * The runtime then collects these partially filled structures.
34965 * The SWIG_InitializeModule function takes these initial arrays out of
34966 * swig_module, and does all the lookup, filling in the swig_module.types
34967 * array with the correct data and linking the correct swig_cast_info
34968 * structures together.
34969
34970 * The generated swig_type_info structures are assigned staticly to an initial
34971 * array. We just loop though that array, and handle each type individually.
34972 * First we lookup if this type has been already loaded, and if so, use the
34973 * loaded structure instead of the generated one. Then we have to fill in the
34974 * cast linked list. The cast data is initially stored in something like a
34975 * two-dimensional array. Each row corresponds to a type (there are the same
34976 * number of rows as there are in the swig_type_initial array). Each entry in
34977 * a column is one of the swig_cast_info structures for that type.
34978 * The cast_initial array is actually an array of arrays, because each row has
34979 * a variable number of columns. So to actually build the cast linked list,
34980 * we find the array of casts associated with the type, and loop through it
34981 * adding the casts to the list. The one last trick we need to do is making
34982 * sure the type pointer in the swig_cast_info struct is correct.
34983
34984 * First off, we lookup the cast->type name to see if it is already loaded.
34985 * There are three cases to handle:
34986 * 1) If the cast->type has already been loaded AND the type we are adding
34987 * casting info to has not been loaded (it is in this module), THEN we
34988 * replace the cast->type pointer with the type pointer that has already
34989 * been loaded.
34990 * 2) If BOTH types (the one we are adding casting info to, and the
34991 * cast->type) are loaded, THEN the cast info has already been loaded by
34992 * the previous module so we just ignore it.
34993 * 3) Finally, if cast->type has not already been loaded, then we add that
34994 * swig_cast_info to the linked list (because the cast->type) pointer will
34995 * be correct.
34996 **/
34997
34998 #ifdef __cplusplus
34999 extern "C" {
35000 #if 0
35001 } /* c-mode */
35002 #endif
35003 #endif
35004
35005 #if 0
35006 #define SWIGRUNTIME_DEBUG
35007 #endif
35008
35009 SWIGRUNTIME void
35010 SWIG_InitializeModule(void *clientdata) {
35011 size_t i;
35012 swig_module_info *module_head;
35013 static int init_run = 0;
35014
35015 clientdata = clientdata;
35016
35017 if (init_run) return;
35018 init_run = 1;
35019
35020 /* Initialize the swig_module */
35021 swig_module.type_initial = swig_type_initial;
35022 swig_module.cast_initial = swig_cast_initial;
35023
35024 /* Try and load any already created modules */
35025 module_head = SWIG_GetModule(clientdata);
35026 if (module_head) {
35027 swig_module.next = module_head->next;
35028 module_head->next = &swig_module;
35029 } else {
35030 /* This is the first module loaded */
35031 swig_module.next = &swig_module;
35032 SWIG_SetModule(clientdata, &swig_module);
35033 }
35034
35035 /* Now work on filling in swig_module.types */
35036 #ifdef SWIGRUNTIME_DEBUG
35037 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
35038 #endif
35039 for (i = 0; i < swig_module.size; ++i) {
35040 swig_type_info *type = 0;
35041 swig_type_info *ret;
35042 swig_cast_info *cast;
35043
35044 #ifdef SWIGRUNTIME_DEBUG
35045 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
35046 #endif
35047
35048 /* if there is another module already loaded */
35049 if (swig_module.next != &swig_module) {
35050 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
35051 }
35052 if (type) {
35053 /* Overwrite clientdata field */
35054 #ifdef SWIGRUNTIME_DEBUG
35055 printf("SWIG_InitializeModule: found type %s\n", type->name);
35056 #endif
35057 if (swig_module.type_initial[i]->clientdata) {
35058 type->clientdata = swig_module.type_initial[i]->clientdata;
35059 #ifdef SWIGRUNTIME_DEBUG
35060 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
35061 #endif
35062 }
35063 } else {
35064 type = swig_module.type_initial[i];
35065 }
35066
35067 /* Insert casting types */
35068 cast = swig_module.cast_initial[i];
35069 while (cast->type) {
35070 /* Don't need to add information already in the list */
35071 ret = 0;
35072 #ifdef SWIGRUNTIME_DEBUG
35073 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
35074 #endif
35075 if (swig_module.next != &swig_module) {
35076 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
35077 #ifdef SWIGRUNTIME_DEBUG
35078 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
35079 #endif
35080 }
35081 if (ret) {
35082 if (type == swig_module.type_initial[i]) {
35083 #ifdef SWIGRUNTIME_DEBUG
35084 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
35085 #endif
35086 cast->type = ret;
35087 ret = 0;
35088 } else {
35089 /* Check for casting already in the list */
35090 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
35091 #ifdef SWIGRUNTIME_DEBUG
35092 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
35093 #endif
35094 if (!ocast) ret = 0;
35095 }
35096 }
35097
35098 if (!ret) {
35099 #ifdef SWIGRUNTIME_DEBUG
35100 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
35101 #endif
35102 if (type->cast) {
35103 type->cast->prev = cast;
35104 cast->next = type->cast;
35105 }
35106 type->cast = cast;
35107 }
35108 cast++;
35109 }
35110 /* Set entry in modules->types array equal to the type */
35111 swig_module.types[i] = type;
35112 }
35113 swig_module.types[i] = 0;
35114
35115 #ifdef SWIGRUNTIME_DEBUG
35116 printf("**** SWIG_InitializeModule: Cast List ******\n");
35117 for (i = 0; i < swig_module.size; ++i) {
35118 int j = 0;
35119 swig_cast_info *cast = swig_module.cast_initial[i];
35120 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
35121 while (cast->type) {
35122 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
35123 cast++;
35124 ++j;
35125 }
35126 printf("---- Total casts: %d\n",j);
35127 }
35128 printf("**** SWIG_InitializeModule: Cast List ******\n");
35129 #endif
35130 }
35131
35132 /* This function will propagate the clientdata field of type to
35133 * any new swig_type_info structures that have been added into the list
35134 * of equivalent types. It is like calling
35135 * SWIG_TypeClientData(type, clientdata) a second time.
35136 */
35137 SWIGRUNTIME void
35138 SWIG_PropagateClientData(void) {
35139 size_t i;
35140 swig_cast_info *equiv;
35141 static int init_run = 0;
35142
35143 if (init_run) return;
35144 init_run = 1;
35145
35146 for (i = 0; i < swig_module.size; i++) {
35147 if (swig_module.types[i]->clientdata) {
35148 equiv = swig_module.types[i]->cast;
35149 while (equiv) {
35150 if (!equiv->converter) {
35151 if (equiv->type && !equiv->type->clientdata)
35152 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
35153 }
35154 equiv = equiv->next;
35155 }
35156 }
35157 }
35158 }
35159
35160 #ifdef __cplusplus
35161 #if 0
35162 {
35163 /* c-mode */
35164 #endif
35165 }
35166 #endif
35167
35168
35169
35170 #ifdef __cplusplus
35171 extern "C" {
35172 #endif
35173
35174 /* Python-specific SWIG API */
35175 #define SWIG_newvarlink() SWIG_Python_newvarlink()
35176 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
35177 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
35178
35179 /* -----------------------------------------------------------------------------
35180 * global variable support code.
35181 * ----------------------------------------------------------------------------- */
35182
35183 typedef struct swig_globalvar {
35184 char *name; /* Name of global variable */
35185 PyObject *(*get_attr)(void); /* Return the current value */
35186 int (*set_attr)(PyObject *); /* Set the value */
35187 struct swig_globalvar *next;
35188 } swig_globalvar;
35189
35190 typedef struct swig_varlinkobject {
35191 PyObject_HEAD
35192 swig_globalvar *vars;
35193 } swig_varlinkobject;
35194
35195 SWIGINTERN PyObject *
35196 swig_varlink_repr(swig_varlinkobject *v) {
35197 v = v;
35198 return PyString_FromString("<Swig global variables>");
35199 }
35200
35201 SWIGINTERN int
35202 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
35203 swig_globalvar *var;
35204 flags = flags;
35205 fprintf(fp,"Swig global variables { ");
35206 for (var = v->vars; var; var=var->next) {
35207 fprintf(fp,"%s", var->name);
35208 if (var->next) fprintf(fp,", ");
35209 }
35210 fprintf(fp," }\n");
35211 return 0;
35212 }
35213
35214 SWIGINTERN PyObject *
35215 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
35216 swig_globalvar *var = v->vars;
35217 while (var) {
35218 if (strcmp(var->name,n) == 0) {
35219 return (*var->get_attr)();
35220 }
35221 var = var->next;
35222 }
35223 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
35224 return NULL;
35225 }
35226
35227 SWIGINTERN int
35228 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
35229 swig_globalvar *var = v->vars;
35230 while (var) {
35231 if (strcmp(var->name,n) == 0) {
35232 return (*var->set_attr)(p);
35233 }
35234 var = var->next;
35235 }
35236 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
35237 return 1;
35238 }
35239
35240 SWIGINTERN PyTypeObject*
35241 swig_varlink_type(void) {
35242 static char varlink__doc__[] = "Swig var link object";
35243 static PyTypeObject varlink_type
35244 #if !defined(__cplusplus)
35245 ;
35246 static int type_init = 0;
35247 if (!type_init) {
35248 PyTypeObject tmp
35249 #endif
35250 = {
35251 PyObject_HEAD_INIT(&PyType_Type)
35252 0, /* Number of items in variable part (ob_size) */
35253 (char *)"swigvarlink", /* Type name (tp_name) */
35254 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
35255 0, /* Itemsize (tp_itemsize) */
35256 0, /* Deallocator (tp_dealloc) */
35257 (printfunc) swig_varlink_print, /* Print (tp_print) */
35258 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
35259 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
35260 0, /* tp_compare */
35261 (reprfunc) swig_varlink_repr, /* tp_repr */
35262 0, /* tp_as_number */
35263 0, /* tp_as_sequence */
35264 0, /* tp_as_mapping */
35265 0, /* tp_hash */
35266 0, /* tp_call */
35267 0, /* tp_str */
35268 0, /* tp_getattro */
35269 0, /* tp_setattro */
35270 0, /* tp_as_buffer */
35271 0, /* tp_flags */
35272 varlink__doc__, /* tp_doc */
35273 #if PY_VERSION_HEX >= 0x02000000
35274 0, /* tp_traverse */
35275 0, /* tp_clear */
35276 #endif
35277 #if PY_VERSION_HEX >= 0x02010000
35278 0, /* tp_richcompare */
35279 0, /* tp_weaklistoffset */
35280 #endif
35281 #if PY_VERSION_HEX >= 0x02020000
35282 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
35283 #endif
35284 #if PY_VERSION_HEX >= 0x02030000
35285 0, /* tp_del */
35286 #endif
35287 #ifdef COUNT_ALLOCS
35288 0,0,0,0 /* tp_alloc -> tp_next */
35289 #endif
35290 };
35291 #if !defined(__cplusplus)
35292 varlink_type = tmp;
35293 type_init = 1;
35294 }
35295 #endif
35296 return &varlink_type;
35297 }
35298
35299 /* Create a variable linking object for use later */
35300 SWIGINTERN PyObject *
35301 SWIG_Python_newvarlink(void) {
35302 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
35303 if (result) {
35304 result->vars = 0;
35305 }
35306 return ((PyObject*) result);
35307 }
35308
35309 SWIGINTERN void
35310 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
35311 swig_varlinkobject *v = (swig_varlinkobject *) p;
35312 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
35313 if (gv) {
35314 size_t size = strlen(name)+1;
35315 gv->name = (char *)malloc(size);
35316 if (gv->name) {
35317 strncpy(gv->name,name,size);
35318 gv->get_attr = get_attr;
35319 gv->set_attr = set_attr;
35320 gv->next = v->vars;
35321 }
35322 }
35323 v->vars = gv;
35324 }
35325
35326 /* -----------------------------------------------------------------------------
35327 * constants/methods manipulation
35328 * ----------------------------------------------------------------------------- */
35329
35330 /* Install Constants */
35331 SWIGINTERN void
35332 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
35333 PyObject *obj = 0;
35334 size_t i;
35335 for (i = 0; constants[i].type; ++i) {
35336 switch(constants[i].type) {
35337 case SWIG_PY_INT:
35338 obj = PyInt_FromLong(constants[i].lvalue);
35339 break;
35340 case SWIG_PY_FLOAT:
35341 obj = PyFloat_FromDouble(constants[i].dvalue);
35342 break;
35343 case SWIG_PY_STRING:
35344 if (constants[i].pvalue) {
35345 obj = PyString_FromString((char *) constants[i].pvalue);
35346 } else {
35347 Py_INCREF(Py_None);
35348 obj = Py_None;
35349 }
35350 break;
35351 case SWIG_PY_POINTER:
35352 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
35353 break;
35354 case SWIG_PY_BINARY:
35355 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
35356 break;
35357 default:
35358 obj = 0;
35359 break;
35360 }
35361 if (obj) {
35362 PyDict_SetItemString(d,constants[i].name,obj);
35363 Py_DECREF(obj);
35364 }
35365 }
35366 }
35367
35368 /* -----------------------------------------------------------------------------*/
35369 /* Fix SwigMethods to carry the callback ptrs when needed */
35370 /* -----------------------------------------------------------------------------*/
35371
35372 SWIGINTERN void
35373 SWIG_Python_FixMethods(PyMethodDef *methods,
35374 swig_const_info *const_table,
35375 swig_type_info **types,
35376 swig_type_info **types_initial) {
35377 size_t i;
35378 for (i = 0; methods[i].ml_name; ++i) {
35379 char *c = methods[i].ml_doc;
35380 if (c && (c = strstr(c, "swig_ptr: "))) {
35381 int j;
35382 swig_const_info *ci = 0;
35383 char *name = c + 10;
35384 for (j = 0; const_table[j].type; ++j) {
35385 if (strncmp(const_table[j].name, name,
35386 strlen(const_table[j].name)) == 0) {
35387 ci = &(const_table[j]);
35388 break;
35389 }
35390 }
35391 if (ci) {
35392 size_t shift = (ci->ptype) - types;
35393 swig_type_info *ty = types_initial[shift];
35394 size_t ldoc = (c - methods[i].ml_doc);
35395 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
35396 char *ndoc = (char*)malloc(ldoc + lptr + 10);
35397 if (ndoc) {
35398 char *buff = ndoc;
35399 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
35400 if (ptr) {
35401 strncpy(buff, methods[i].ml_doc, ldoc);
35402 buff += ldoc;
35403 strncpy(buff, "swig_ptr: ", 10);
35404 buff += 10;
35405 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
35406 methods[i].ml_doc = ndoc;
35407 }
35408 }
35409 }
35410 }
35411 }
35412 }
35413
35414 /* -----------------------------------------------------------------------------*
35415 * Initialize type list
35416 * -----------------------------------------------------------------------------*/
35417
35418 #ifdef __cplusplus
35419 }
35420 #endif
35421
35422 /* -----------------------------------------------------------------------------*
35423 * Partial Init method
35424 * -----------------------------------------------------------------------------*/
35425
35426 #ifdef __cplusplus
35427 extern "C"
35428 #endif
35429 SWIGEXPORT void SWIG_init(void) {
35430 static PyObject *SWIG_globals = 0;
35431 PyObject *m, *d;
35432 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
35433
35434 /* Fix SwigMethods to carry the callback ptrs when needed */
35435 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
35436
35437 m = Py_InitModule((char *) SWIG_name, SwigMethods);
35438 d = PyModule_GetDict(m);
35439
35440 SWIG_InitializeModule(0);
35441 SWIG_InstallConstants(d,swig_const_table);
35442
35443 {
35444 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_OEM_FIXED_FONT)));
35445 }
35446 {
35447 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_FIXED_FONT)));
35448 }
35449 {
35450 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_VAR_FONT)));
35451 }
35452 {
35453 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FONT)));
35454 }
35455 {
35456 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEVICE_DEFAULT_FONT)));
35457 }
35458 {
35459 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_PALETTE)));
35460 }
35461 {
35462 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FIXED_FONT)));
35463 }
35464 {
35465 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_GUI_FONT)));
35466 }
35467 {
35468 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int(static_cast<int >(wxSYS_ICONTITLE_FONT)));
35469 }
35470 {
35471 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_SCROLLBAR)));
35472 }
35473 {
35474 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BACKGROUND)));
35475 }
35476 {
35477 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_DESKTOP)));
35478 }
35479 {
35480 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVECAPTION)));
35481 }
35482 {
35483 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTION)));
35484 }
35485 {
35486 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENU)));
35487 }
35488 {
35489 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOW)));
35490 }
35491 {
35492 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWFRAME)));
35493 }
35494 {
35495 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUTEXT)));
35496 }
35497 {
35498 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWTEXT)));
35499 }
35500 {
35501 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_CAPTIONTEXT)));
35502 }
35503 {
35504 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVEBORDER)));
35505 }
35506 {
35507 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVEBORDER)));
35508 }
35509 {
35510 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_APPWORKSPACE)));
35511 }
35512 {
35513 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHT)));
35514 }
35515 {
35516 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHTTEXT)));
35517 }
35518 {
35519 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNFACE)));
35520 }
35521 {
35522 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DFACE)));
35523 }
35524 {
35525 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNSHADOW)));
35526 }
35527 {
35528 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DSHADOW)));
35529 }
35530 {
35531 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRAYTEXT)));
35532 }
35533 {
35534 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNTEXT)));
35535 }
35536 {
35537 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTIONTEXT)));
35538 }
35539 {
35540 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHIGHLIGHT)));
35541 }
35542 {
35543 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHILIGHT)));
35544 }
35545 {
35546 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHIGHLIGHT)));
35547 }
35548 {
35549 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHILIGHT)));
35550 }
35551 {
35552 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DDKSHADOW)));
35553 }
35554 {
35555 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DLIGHT)));
35556 }
35557 {
35558 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOTEXT)));
35559 }
35560 {
35561 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOBK)));
35562 }
35563 {
35564 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_LISTBOX)));
35565 }
35566 {
35567 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HOTLIGHT)));
35568 }
35569 {
35570 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTACTIVECAPTION)));
35571 }
35572 {
35573 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTINACTIVECAPTION)));
35574 }
35575 {
35576 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUHILIGHT)));
35577 }
35578 {
35579 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUBAR)));
35580 }
35581 {
35582 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MAX)));
35583 }
35584 {
35585 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_MOUSE_BUTTONS)));
35586 }
35587 {
35588 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int(static_cast<int >(wxSYS_BORDER_X)));
35589 }
35590 {
35591 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int(static_cast<int >(wxSYS_BORDER_Y)));
35592 }
35593 {
35594 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_X)));
35595 }
35596 {
35597 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_Y)));
35598 }
35599 {
35600 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_X)));
35601 }
35602 {
35603 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_Y)));
35604 }
35605 {
35606 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int(static_cast<int >(wxSYS_DRAG_X)));
35607 }
35608 {
35609 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int(static_cast<int >(wxSYS_DRAG_Y)));
35610 }
35611 {
35612 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int(static_cast<int >(wxSYS_EDGE_X)));
35613 }
35614 {
35615 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int(static_cast<int >(wxSYS_EDGE_Y)));
35616 }
35617 {
35618 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_X)));
35619 }
35620 {
35621 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_Y)));
35622 }
35623 {
35624 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int(static_cast<int >(wxSYS_HTHUMB_X)));
35625 }
35626 {
35627 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int(static_cast<int >(wxSYS_ICON_X)));
35628 }
35629 {
35630 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int(static_cast<int >(wxSYS_ICON_Y)));
35631 }
35632 {
35633 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_X)));
35634 }
35635 {
35636 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_Y)));
35637 }
35638 {
35639 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_X)));
35640 }
35641 {
35642 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_Y)));
35643 }
35644 {
35645 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_X)));
35646 }
35647 {
35648 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_Y)));
35649 }
35650 {
35651 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_X)));
35652 }
35653 {
35654 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_Y)));
35655 }
35656 {
35657 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_X)));
35658 }
35659 {
35660 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_Y)));
35661 }
35662 {
35663 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_Y)));
35664 }
35665 {
35666 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_X)));
35667 }
35668 {
35669 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_X)));
35670 }
35671 {
35672 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_Y)));
35673 }
35674 {
35675 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int(static_cast<int >(wxSYS_VTHUMB_Y)));
35676 }
35677 {
35678 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int(static_cast<int >(wxSYS_CAPTION_Y)));
35679 }
35680 {
35681 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int(static_cast<int >(wxSYS_MENU_Y)));
35682 }
35683 {
35684 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_NETWORK_PRESENT)));
35685 }
35686 {
35687 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_PENWINDOWS_PRESENT)));
35688 }
35689 {
35690 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int(static_cast<int >(wxSYS_SHOW_SOUNDS)));
35691 }
35692 {
35693 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_SWAP_BUTTONS)));
35694 }
35695 {
35696 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int(static_cast<int >(wxSYS_CAN_DRAW_FRAME_DECORATIONS)));
35697 }
35698 {
35699 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int(static_cast<int >(wxSYS_CAN_ICONIZE_FRAME)));
35700 }
35701 {
35702 PyDict_SetItemString(d,"SYS_TABLET_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_TABLET_PRESENT)));
35703 }
35704 {
35705 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_NONE)));
35706 }
35707 {
35708 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_TINY)));
35709 }
35710 {
35711 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_PDA)));
35712 }
35713 {
35714 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_SMALL)));
35715 }
35716 {
35717 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_DESKTOP)));
35718 }
35719 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
35720 SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set);
35721 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
35722 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
35723 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
35724 {
35725 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int(static_cast<int >(wxSHUTDOWN_POWEROFF)));
35726 }
35727 {
35728 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int(static_cast<int >(wxSHUTDOWN_REBOOT)));
35729 }
35730 {
35731 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int(static_cast<int >(wxTIMER_CONTINUOUS)));
35732 }
35733 {
35734 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int(static_cast<int >(wxTIMER_ONE_SHOT)));
35735 }
35736 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
35737
35738 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
35739
35740 {
35741 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int(static_cast<int >(wxLOG_FatalError)));
35742 }
35743 {
35744 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int(static_cast<int >(wxLOG_Error)));
35745 }
35746 {
35747 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int(static_cast<int >(wxLOG_Warning)));
35748 }
35749 {
35750 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int(static_cast<int >(wxLOG_Message)));
35751 }
35752 {
35753 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int(static_cast<int >(wxLOG_Status)));
35754 }
35755 {
35756 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int(static_cast<int >(wxLOG_Info)));
35757 }
35758 {
35759 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int(static_cast<int >(wxLOG_Debug)));
35760 }
35761 {
35762 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int(static_cast<int >(wxLOG_Trace)));
35763 }
35764 {
35765 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int(static_cast<int >(wxLOG_Progress)));
35766 }
35767 {
35768 PyDict_SetItemString(d,"LOG_User", SWIG_From_int(static_cast<int >(wxLOG_User)));
35769 }
35770 {
35771 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int(static_cast<int >(wxLOG_Max)));
35772 }
35773 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
35774 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
35775 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
35776 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
35777 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
35778 {
35779 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int(static_cast<int >(0x0001)));
35780 }
35781 {
35782 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int(static_cast<int >(0x0002)));
35783 }
35784 {
35785 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int(static_cast<int >(0x0004)));
35786 }
35787 {
35788 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int(static_cast<int >(0x0008)));
35789 }
35790 {
35791 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int(static_cast<int >(0x0100)));
35792 }
35793 {
35794 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int(static_cast<int >(wxPROCESS_DEFAULT)));
35795 }
35796 {
35797 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int(static_cast<int >(wxPROCESS_REDIRECT)));
35798 }
35799 {
35800 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int(static_cast<int >(wxKILL_OK)));
35801 }
35802 {
35803 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int(static_cast<int >(wxKILL_BAD_SIGNAL)));
35804 }
35805 {
35806 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int(static_cast<int >(wxKILL_ACCESS_DENIED)));
35807 }
35808 {
35809 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int(static_cast<int >(wxKILL_NO_PROCESS)));
35810 }
35811 {
35812 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int(static_cast<int >(wxKILL_ERROR)));
35813 }
35814 {
35815 PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int(static_cast<int >(wxKILL_NOCHILDREN)));
35816 }
35817 {
35818 PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int(static_cast<int >(wxKILL_CHILDREN)));
35819 }
35820 {
35821 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int(static_cast<int >(wxSIGNONE)));
35822 }
35823 {
35824 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int(static_cast<int >(wxSIGHUP)));
35825 }
35826 {
35827 PyDict_SetItemString(d,"SIGINT", SWIG_From_int(static_cast<int >(wxSIGINT)));
35828 }
35829 {
35830 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int(static_cast<int >(wxSIGQUIT)));
35831 }
35832 {
35833 PyDict_SetItemString(d,"SIGILL", SWIG_From_int(static_cast<int >(wxSIGILL)));
35834 }
35835 {
35836 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int(static_cast<int >(wxSIGTRAP)));
35837 }
35838 {
35839 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int(static_cast<int >(wxSIGABRT)));
35840 }
35841 {
35842 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int(static_cast<int >(wxSIGIOT)));
35843 }
35844 {
35845 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int(static_cast<int >(wxSIGEMT)));
35846 }
35847 {
35848 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int(static_cast<int >(wxSIGFPE)));
35849 }
35850 {
35851 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int(static_cast<int >(wxSIGKILL)));
35852 }
35853 {
35854 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int(static_cast<int >(wxSIGBUS)));
35855 }
35856 {
35857 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int(static_cast<int >(wxSIGSEGV)));
35858 }
35859 {
35860 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int(static_cast<int >(wxSIGSYS)));
35861 }
35862 {
35863 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int(static_cast<int >(wxSIGPIPE)));
35864 }
35865 {
35866 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int(static_cast<int >(wxSIGALRM)));
35867 }
35868 {
35869 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int(static_cast<int >(wxSIGTERM)));
35870 }
35871 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
35872 {
35873 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int(static_cast<int >(wxEXEC_ASYNC)));
35874 }
35875 {
35876 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int(static_cast<int >(wxEXEC_SYNC)));
35877 }
35878 {
35879 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int(static_cast<int >(wxEXEC_NOHIDE)));
35880 }
35881 {
35882 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int(static_cast<int >(wxEXEC_MAKE_GROUP_LEADER)));
35883 }
35884 {
35885 PyDict_SetItemString(d,"EXEC_NODISABLE", SWIG_From_int(static_cast<int >(wxEXEC_NODISABLE)));
35886 }
35887
35888 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
35889
35890 {
35891 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int(static_cast<int >(wxJOYSTICK1)));
35892 }
35893 {
35894 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int(static_cast<int >(wxJOYSTICK2)));
35895 }
35896 {
35897 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int(static_cast<int >(wxJOY_BUTTON_ANY)));
35898 }
35899 {
35900 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int(static_cast<int >(wxJOY_BUTTON1)));
35901 }
35902 {
35903 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int(static_cast<int >(wxJOY_BUTTON2)));
35904 }
35905 {
35906 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int(static_cast<int >(wxJOY_BUTTON3)));
35907 }
35908 {
35909 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int(static_cast<int >(wxJOY_BUTTON4)));
35910 }
35911 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
35912 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
35913 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
35914 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
35915 {
35916 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int(static_cast<int >(wxSOUND_SYNC)));
35917 }
35918 {
35919 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int(static_cast<int >(wxSOUND_ASYNC)));
35920 }
35921 {
35922 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int(static_cast<int >(wxSOUND_LOOP)));
35923 }
35924 {
35925 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int(static_cast<int >(wxMAILCAP_STANDARD)));
35926 }
35927 {
35928 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int(static_cast<int >(wxMAILCAP_NETSCAPE)));
35929 }
35930 {
35931 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int(static_cast<int >(wxMAILCAP_KDE)));
35932 }
35933 {
35934 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int(static_cast<int >(wxMAILCAP_GNOME)));
35935 }
35936 {
35937 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int(static_cast<int >(wxMAILCAP_ALL)));
35938 }
35939 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
35940 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
35941 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
35942 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
35943 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
35944 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
35945 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
35946 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
35947 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
35948 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
35949 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
35950 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
35951 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
35952 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
35953 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
35954 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
35955 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
35956 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
35957 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
35958 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
35959 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
35960 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
35961 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
35962 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE",_wrap_ART_FILE_SAVE_get, _wrap_ART_FILE_SAVE_set);
35963 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE_AS",_wrap_ART_FILE_SAVE_AS_get, _wrap_ART_FILE_SAVE_AS_set);
35964 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
35965 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
35966 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
35967 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
35968 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
35969 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
35970 SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set);
35971 SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set);
35972 SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set);
35973 SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set);
35974 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
35975 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set);
35976 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
35977 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
35978 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
35979 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
35980 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
35981 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
35982 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
35983 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
35984 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
35985 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
35986 SWIG_addvarlink(SWIG_globals,(char*)"ART_COPY",_wrap_ART_COPY_get, _wrap_ART_COPY_set);
35987 SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set);
35988 SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set);
35989 SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set);
35990 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW",_wrap_ART_NEW_get, _wrap_ART_NEW_set);
35991 SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set);
35992 SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set);
35993 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set);
35994 SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND",_wrap_ART_FIND_get, _wrap_ART_FIND_set);
35995 SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND_AND_REPLACE",_wrap_ART_FIND_AND_REPLACE_get, _wrap_ART_FIND_AND_REPLACE_set);
35996
35997 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
35998
35999 {
36000 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_LOCAL_FILE)));
36001 }
36002 {
36003 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_GLOBAL_FILE)));
36004 }
36005 {
36006 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int(static_cast<int >(wxCONFIG_USE_RELATIVE_PATH)));
36007 }
36008 {
36009 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int(static_cast<int >(wxCONFIG_USE_NO_ESCAPE_CHARACTERS)));
36010 }
36011 {
36012 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Unknown)));
36013 }
36014 {
36015 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int(static_cast<int >(wxConfigBase::Type_String)));
36016 }
36017 {
36018 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Boolean)));
36019 }
36020 {
36021 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Integer)));
36022 }
36023 {
36024 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Float)));
36025 }
36026 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTimeFormat",_wrap_DefaultDateTimeFormat_get, _wrap_DefaultDateTimeFormat_set);
36027 SWIG_addvarlink(SWIG_globals,(char*)"DefaultTimeSpanFormat",_wrap_DefaultTimeSpanFormat_get, _wrap_DefaultTimeSpanFormat_set);
36028 {
36029 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int(static_cast<int >(wxDateTime::Local)));
36030 }
36031 {
36032 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int(static_cast<int >(wxDateTime::GMT_12)));
36033 }
36034 {
36035 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int(static_cast<int >(wxDateTime::GMT_11)));
36036 }
36037 {
36038 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int(static_cast<int >(wxDateTime::GMT_10)));
36039 }
36040 {
36041 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int(static_cast<int >(wxDateTime::GMT_9)));
36042 }
36043 {
36044 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int(static_cast<int >(wxDateTime::GMT_8)));
36045 }
36046 {
36047 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int(static_cast<int >(wxDateTime::GMT_7)));
36048 }
36049 {
36050 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int(static_cast<int >(wxDateTime::GMT_6)));
36051 }
36052 {
36053 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int(static_cast<int >(wxDateTime::GMT_5)));
36054 }
36055 {
36056 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int(static_cast<int >(wxDateTime::GMT_4)));
36057 }
36058 {
36059 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int(static_cast<int >(wxDateTime::GMT_3)));
36060 }
36061 {
36062 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int(static_cast<int >(wxDateTime::GMT_2)));
36063 }
36064 {
36065 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int(static_cast<int >(wxDateTime::GMT_1)));
36066 }
36067 {
36068 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int(static_cast<int >(wxDateTime::GMT0)));
36069 }
36070 {
36071 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int(static_cast<int >(wxDateTime::GMT1)));
36072 }
36073 {
36074 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int(static_cast<int >(wxDateTime::GMT2)));
36075 }
36076 {
36077 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int(static_cast<int >(wxDateTime::GMT3)));
36078 }
36079 {
36080 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int(static_cast<int >(wxDateTime::GMT4)));
36081 }
36082 {
36083 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int(static_cast<int >(wxDateTime::GMT5)));
36084 }
36085 {
36086 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int(static_cast<int >(wxDateTime::GMT6)));
36087 }
36088 {
36089 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int(static_cast<int >(wxDateTime::GMT7)));
36090 }
36091 {
36092 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int(static_cast<int >(wxDateTime::GMT8)));
36093 }
36094 {
36095 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int(static_cast<int >(wxDateTime::GMT9)));
36096 }
36097 {
36098 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int(static_cast<int >(wxDateTime::GMT10)));
36099 }
36100 {
36101 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int(static_cast<int >(wxDateTime::GMT11)));
36102 }
36103 {
36104 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int(static_cast<int >(wxDateTime::GMT12)));
36105 }
36106 {
36107 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int(static_cast<int >(wxDateTime::WET)));
36108 }
36109 {
36110 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int(static_cast<int >(wxDateTime::WEST)));
36111 }
36112 {
36113 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int(static_cast<int >(wxDateTime::CET)));
36114 }
36115 {
36116 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int(static_cast<int >(wxDateTime::CEST)));
36117 }
36118 {
36119 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int(static_cast<int >(wxDateTime::EET)));
36120 }
36121 {
36122 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int(static_cast<int >(wxDateTime::EEST)));
36123 }
36124 {
36125 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int(static_cast<int >(wxDateTime::MSK)));
36126 }
36127 {
36128 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int(static_cast<int >(wxDateTime::MSD)));
36129 }
36130 {
36131 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int(static_cast<int >(wxDateTime::AST)));
36132 }
36133 {
36134 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int(static_cast<int >(wxDateTime::ADT)));
36135 }
36136 {
36137 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int(static_cast<int >(wxDateTime::EST)));
36138 }
36139 {
36140 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int(static_cast<int >(wxDateTime::EDT)));
36141 }
36142 {
36143 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int(static_cast<int >(wxDateTime::CST)));
36144 }
36145 {
36146 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int(static_cast<int >(wxDateTime::CDT)));
36147 }
36148 {
36149 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int(static_cast<int >(wxDateTime::MST)));
36150 }
36151 {
36152 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int(static_cast<int >(wxDateTime::MDT)));
36153 }
36154 {
36155 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int(static_cast<int >(wxDateTime::PST)));
36156 }
36157 {
36158 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int(static_cast<int >(wxDateTime::PDT)));
36159 }
36160 {
36161 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int(static_cast<int >(wxDateTime::HST)));
36162 }
36163 {
36164 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int(static_cast<int >(wxDateTime::AKST)));
36165 }
36166 {
36167 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int(static_cast<int >(wxDateTime::AKDT)));
36168 }
36169 {
36170 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int(static_cast<int >(wxDateTime::A_WST)));
36171 }
36172 {
36173 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int(static_cast<int >(wxDateTime::A_CST)));
36174 }
36175 {
36176 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int(static_cast<int >(wxDateTime::A_EST)));
36177 }
36178 {
36179 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int(static_cast<int >(wxDateTime::A_ESST)));
36180 }
36181 {
36182 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int(static_cast<int >(wxDateTime::UTC)));
36183 }
36184 {
36185 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int(static_cast<int >(wxDateTime::Gregorian)));
36186 }
36187 {
36188 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int(static_cast<int >(wxDateTime::Julian)));
36189 }
36190 {
36191 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Unknown)));
36192 }
36193 {
36194 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Standard)));
36195 }
36196 {
36197 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Alaska)));
36198 }
36199 {
36200 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Albania)));
36201 }
36202 {
36203 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria)));
36204 }
36205 {
36206 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Brixen)));
36207 }
36208 {
36209 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Salzburg)));
36210 }
36211 {
36212 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Tyrol)));
36213 }
36214 {
36215 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Carinthia)));
36216 }
36217 {
36218 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Styria)));
36219 }
36220 {
36221 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Belgium)));
36222 }
36223 {
36224 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria)));
36225 }
36226 {
36227 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_1)));
36228 }
36229 {
36230 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_2)));
36231 }
36232 {
36233 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_3)));
36234 }
36235 {
36236 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Canada)));
36237 }
36238 {
36239 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China)));
36240 }
36241 {
36242 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_1)));
36243 }
36244 {
36245 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_2)));
36246 }
36247 {
36248 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Czechoslovakia)));
36249 }
36250 {
36251 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Denmark)));
36252 }
36253 {
36254 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Egypt)));
36255 }
36256 {
36257 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Estonia)));
36258 }
36259 {
36260 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Finland)));
36261 }
36262 {
36263 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France)));
36264 }
36265 {
36266 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Alsace)));
36267 }
36268 {
36269 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Lorraine)));
36270 }
36271 {
36272 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Strasbourg)));
36273 }
36274 {
36275 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany)));
36276 }
36277 {
36278 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Catholic)));
36279 }
36280 {
36281 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Prussia)));
36282 }
36283 {
36284 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Protestant)));
36285 }
36286 {
36287 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_GreatBritain)));
36288 }
36289 {
36290 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Greece)));
36291 }
36292 {
36293 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Hungary)));
36294 }
36295 {
36296 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Ireland)));
36297 }
36298 {
36299 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Italy)));
36300 }
36301 {
36302 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan)));
36303 }
36304 {
36305 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_1)));
36306 }
36307 {
36308 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_2)));
36309 }
36310 {
36311 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_3)));
36312 }
36313 {
36314 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Latvia)));
36315 }
36316 {
36317 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Lithuania)));
36318 }
36319 {
36320 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Luxemburg)));
36321 }
36322 {
36323 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands)));
36324 }
36325 {
36326 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Groningen)));
36327 }
36328 {
36329 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Gelderland)));
36330 }
36331 {
36332 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Utrecht)));
36333 }
36334 {
36335 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Friesland)));
36336 }
36337 {
36338 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Norway)));
36339 }
36340 {
36341 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Poland)));
36342 }
36343 {
36344 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Portugal)));
36345 }
36346 {
36347 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Romania)));
36348 }
36349 {
36350 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Russia)));
36351 }
36352 {
36353 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Scotland)));
36354 }
36355 {
36356 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Spain)));
36357 }
36358 {
36359 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Sweden)));
36360 }
36361 {
36362 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland)));
36363 }
36364 {
36365 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Catholic)));
36366 }
36367 {
36368 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Protestant)));
36369 }
36370 {
36371 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Turkey)));
36372 }
36373 {
36374 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int(static_cast<int >(wxDateTime::Gr_USA)));
36375 }
36376 {
36377 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Wales)));
36378 }
36379 {
36380 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Yugoslavia)));
36381 }
36382 {
36383 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Country_Unknown)));
36384 }
36385 {
36386 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int(static_cast<int >(wxDateTime::Country_Default)));
36387 }
36388 {
36389 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_Start)));
36390 }
36391 {
36392 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int(static_cast<int >(wxDateTime::Country_EEC)));
36393 }
36394 {
36395 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int(static_cast<int >(wxDateTime::France)));
36396 }
36397 {
36398 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Germany)));
36399 }
36400 {
36401 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int(static_cast<int >(wxDateTime::UK)));
36402 }
36403 {
36404 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_End)));
36405 }
36406 {
36407 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Russia)));
36408 }
36409 {
36410 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int(static_cast<int >(wxDateTime::USA)));
36411 }
36412 {
36413 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int(static_cast<int >(wxDateTime::Jan)));
36414 }
36415 {
36416 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int(static_cast<int >(wxDateTime::Feb)));
36417 }
36418 {
36419 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int(static_cast<int >(wxDateTime::Mar)));
36420 }
36421 {
36422 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int(static_cast<int >(wxDateTime::Apr)));
36423 }
36424 {
36425 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int(static_cast<int >(wxDateTime::May)));
36426 }
36427 {
36428 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int(static_cast<int >(wxDateTime::Jun)));
36429 }
36430 {
36431 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int(static_cast<int >(wxDateTime::Jul)));
36432 }
36433 {
36434 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int(static_cast<int >(wxDateTime::Aug)));
36435 }
36436 {
36437 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int(static_cast<int >(wxDateTime::Sep)));
36438 }
36439 {
36440 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int(static_cast<int >(wxDateTime::Oct)));
36441 }
36442 {
36443 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int(static_cast<int >(wxDateTime::Nov)));
36444 }
36445 {
36446 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int(static_cast<int >(wxDateTime::Dec)));
36447 }
36448 {
36449 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Month)));
36450 }
36451 {
36452 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int(static_cast<int >(wxDateTime::Sun)));
36453 }
36454 {
36455 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int(static_cast<int >(wxDateTime::Mon)));
36456 }
36457 {
36458 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int(static_cast<int >(wxDateTime::Tue)));
36459 }
36460 {
36461 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int(static_cast<int >(wxDateTime::Wed)));
36462 }
36463 {
36464 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int(static_cast<int >(wxDateTime::Thu)));
36465 }
36466 {
36467 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int(static_cast<int >(wxDateTime::Fri)));
36468 }
36469 {
36470 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int(static_cast<int >(wxDateTime::Sat)));
36471 }
36472 {
36473 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int(static_cast<int >(wxDateTime::Inv_WeekDay)));
36474 }
36475 {
36476 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Year)));
36477 }
36478 {
36479 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int(static_cast<int >(wxDateTime::Name_Full)));
36480 }
36481 {
36482 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int(static_cast<int >(wxDateTime::Name_Abbr)));
36483 }
36484 {
36485 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int(static_cast<int >(wxDateTime::Default_First)));
36486 }
36487 {
36488 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int(static_cast<int >(wxDateTime::Monday_First)));
36489 }
36490 {
36491 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int(static_cast<int >(wxDateTime::Sunday_First)));
36492 }
36493 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
36494 {
36495 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int(static_cast<int >(wxDF_INVALID)));
36496 }
36497 {
36498 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int(static_cast<int >(wxDF_TEXT)));
36499 }
36500 {
36501 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int(static_cast<int >(wxDF_BITMAP)));
36502 }
36503 {
36504 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int(static_cast<int >(wxDF_METAFILE)));
36505 }
36506 {
36507 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int(static_cast<int >(wxDF_SYLK)));
36508 }
36509 {
36510 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int(static_cast<int >(wxDF_DIF)));
36511 }
36512 {
36513 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int(static_cast<int >(wxDF_TIFF)));
36514 }
36515 {
36516 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int(static_cast<int >(wxDF_OEMTEXT)));
36517 }
36518 {
36519 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int(static_cast<int >(wxDF_DIB)));
36520 }
36521 {
36522 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int(static_cast<int >(wxDF_PALETTE)));
36523 }
36524 {
36525 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int(static_cast<int >(wxDF_PENDATA)));
36526 }
36527 {
36528 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int(static_cast<int >(wxDF_RIFF)));
36529 }
36530 {
36531 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int(static_cast<int >(wxDF_WAVE)));
36532 }
36533 {
36534 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int(static_cast<int >(wxDF_UNICODETEXT)));
36535 }
36536 {
36537 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int(static_cast<int >(wxDF_ENHMETAFILE)));
36538 }
36539 {
36540 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int(static_cast<int >(wxDF_FILENAME)));
36541 }
36542 {
36543 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int(static_cast<int >(wxDF_LOCALE)));
36544 }
36545 {
36546 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int(static_cast<int >(wxDF_PRIVATE)));
36547 }
36548 {
36549 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int(static_cast<int >(wxDF_HTML)));
36550 }
36551 {
36552 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int(static_cast<int >(wxDF_MAX)));
36553 }
36554 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
36555 {
36556 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int(static_cast<int >(wxDataObject::Get)));
36557 }
36558 {
36559 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int(static_cast<int >(wxDataObject::Set)));
36560 }
36561 {
36562 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int(static_cast<int >(wxDataObject::Both)));
36563 }
36564 {
36565 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int(static_cast<int >(wxDrag_CopyOnly)));
36566 }
36567 {
36568 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int(static_cast<int >(wxDrag_AllowMove)));
36569 }
36570 {
36571 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int(static_cast<int >(wxDrag_DefaultMove)));
36572 }
36573 {
36574 PyDict_SetItemString(d,"DragError", SWIG_From_int(static_cast<int >(wxDragError)));
36575 }
36576 {
36577 PyDict_SetItemString(d,"DragNone", SWIG_From_int(static_cast<int >(wxDragNone)));
36578 }
36579 {
36580 PyDict_SetItemString(d,"DragCopy", SWIG_From_int(static_cast<int >(wxDragCopy)));
36581 }
36582 {
36583 PyDict_SetItemString(d,"DragMove", SWIG_From_int(static_cast<int >(wxDragMove)));
36584 }
36585 {
36586 PyDict_SetItemString(d,"DragLink", SWIG_From_int(static_cast<int >(wxDragLink)));
36587 }
36588 {
36589 PyDict_SetItemString(d,"DragCancel", SWIG_From_int(static_cast<int >(wxDragCancel)));
36590 }
36591
36592 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
36593 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
36594 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
36595 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
36596
36597 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
36598 }
36599