]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_misc_wrap.cpp
Delay part of the setup
[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
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24 private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
26 };
27 #endif
28
29 /***********************************************************************
30 *
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 *
34 ************************************************************************/
35
36 /* template workaround for compilers that cannot correctly implement the C++ standard */
37 #ifndef SWIGTEMPLATEDISAMBIGUATOR
38 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 #endif
44
45 /* inline attribute */
46 #ifndef SWIGINLINE
47 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48 # define SWIGINLINE inline
49 # else
50 # define SWIGINLINE
51 # endif
52 #endif
53
54 /* attribute recognised by some compilers to avoid 'unused' warnings */
55 #ifndef SWIGUNUSED
56 # if defined(__GNUC__) || defined(__ICC)
57 # define SWIGUNUSED __attribute__ ((unused))
58 # else
59 # define SWIGUNUSED
60 # endif
61 #endif
62
63 /* internal SWIG method */
64 #ifndef SWIGINTERN
65 # define SWIGINTERN static SWIGUNUSED
66 #endif
67
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
71 #endif
72
73 /* exporting methods for Windows DLLs */
74 #ifndef SWIGEXPORT
75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76 # if defined(STATIC_LINKED)
77 # define SWIGEXPORT
78 # else
79 # define SWIGEXPORT __declspec(dllexport)
80 # endif
81 # else
82 # define SWIGEXPORT
83 # endif
84 #endif
85
86 /* calling conventions for Windows */
87 #ifndef SWIGSTDCALL
88 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89 # define SWIGSTDCALL __stdcall
90 # else
91 # define SWIGSTDCALL
92 # endif
93 #endif
94
95
96
97 #include <Python.h>
98
99 /***********************************************************************
100 * swigrun.swg
101 *
102 * This file contains generic CAPI SWIG runtime support for pointer
103 * type checking.
104 *
105 ************************************************************************/
106
107 /* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
109 #define SWIG_RUNTIME_VERSION "2"
110
111 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112 #ifdef SWIG_TYPE_TABLE
113 # define SWIG_QUOTE_STRING(x) #x
114 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
116 #else
117 # define SWIG_TYPE_TABLE_NAME
118 #endif
119
120 /*
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
124
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
127 */
128
129 #ifndef SWIGRUNTIME
130 # define SWIGRUNTIME SWIGINTERN
131 #endif
132
133 #ifndef SWIGRUNTIMEINLINE
134 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
135 #endif
136
137 #include <string.h>
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 typedef void *(*swig_converter_func)(void *);
144 typedef struct swig_type_info *(*swig_dycast_func)(void **);
145
146 /* Structure to store inforomation on one type */
147 typedef struct swig_type_info {
148 const char *name; /* mangled name of this type */
149 const char *str; /* human readable name of this type */
150 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
152 void *clientdata; /* language specific type data */
153 } swig_type_info;
154
155 /* Structure to store a type and conversion function used for casting */
156 typedef struct swig_cast_info {
157 swig_type_info *type; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter; /* function to cast the void pointers */
159 struct swig_cast_info *next; /* pointer to next cast in linked list */
160 struct swig_cast_info *prev; /* pointer to the previous cast */
161 } swig_cast_info;
162
163 /* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166 typedef struct swig_module_info {
167 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size; /* Number of types in this module */
169 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
170 swig_type_info **type_initial; /* Array of initially generated type structures */
171 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
172 void *clientdata; /* Language specific module data */
173 } swig_module_info;
174
175
176 /*
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
179
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
182 */
183 SWIGRUNTIME int
184 SWIG_TypeNameComp(const char *f1, const char *l1,
185 const char *f2, const char *l2) {
186 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
187 while ((*f1 == ' ') && (f1 != l1)) ++f1;
188 while ((*f2 == ' ') && (f2 != l2)) ++f2;
189 if (*f1 != *f2) return (int)(*f1 - *f2);
190 }
191 return (l1 - f1) - (l2 - f2);
192 }
193
194 /*
195 Check type equivalence in a name list like <name1>|<name2>|...
196 Return 0 if not equal, 1 if equal
197 */
198 SWIGRUNTIME int
199 SWIG_TypeEquiv(const char *nb, const char *tb) {
200 int equiv = 0;
201 const char* te = tb + strlen(tb);
202 const char* ne = nb;
203 while (!equiv && *ne) {
204 for (nb = ne; *ne; ++ne) {
205 if (*ne == '|') break;
206 }
207 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
208 if (*ne) ++ne;
209 }
210 return equiv;
211 }
212
213 /*
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
216 */
217 SWIGRUNTIME int
218 SWIG_TypeCompare(const char *nb, const char *tb) {
219 int equiv = 0;
220 const char* te = tb + strlen(tb);
221 const char* ne = nb;
222 while (!equiv && *ne) {
223 for (nb = ne; *ne; ++ne) {
224 if (*ne == '|') break;
225 }
226 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
227 if (*ne) ++ne;
228 }
229 return equiv;
230 }
231
232
233 /* think of this as a c++ template<> or a scheme macro */
234 #define SWIG_TypeCheck_Template(comparison, ty) \
235 if (ty) { \
236 swig_cast_info *iter = ty->cast; \
237 while (iter) { \
238 if (comparison) { \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
242 if (iter->next) \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
245 iter->prev = 0; \
246 if (ty->cast) ty->cast->prev = iter; \
247 ty->cast = iter; \
248 return iter; \
249 } \
250 iter = iter->next; \
251 } \
252 } \
253 return 0
254
255 /*
256 Check the typename
257 */
258 SWIGRUNTIME swig_cast_info *
259 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
260 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
261 }
262
263 /* Same as previous function, except strcmp is replaced with a pointer comparison */
264 SWIGRUNTIME swig_cast_info *
265 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
266 SWIG_TypeCheck_Template(iter->type == from, into);
267 }
268
269 /*
270 Cast a pointer up an inheritance hierarchy
271 */
272 SWIGRUNTIMEINLINE void *
273 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
274 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
275 }
276
277 /*
278 Dynamic pointer casting. Down an inheritance hierarchy
279 */
280 SWIGRUNTIME swig_type_info *
281 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
282 swig_type_info *lastty = ty;
283 if (!ty || !ty->dcast) return ty;
284 while (ty && (ty->dcast)) {
285 ty = (*ty->dcast)(ptr);
286 if (ty) lastty = ty;
287 }
288 return lastty;
289 }
290
291 /*
292 Return the name associated with this type
293 */
294 SWIGRUNTIMEINLINE const char *
295 SWIG_TypeName(const swig_type_info *ty) {
296 return ty->name;
297 }
298
299 /*
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
302 */
303 SWIGRUNTIME const char *
304 SWIG_TypePrettyName(const swig_type_info *type) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
308 specific. */
309 if (type->str != NULL) {
310 const char *last_name = type->str;
311 const char *s;
312 for (s = type->str; *s; s++)
313 if (*s == '|') last_name = s+1;
314 return last_name;
315 }
316 else
317 return type->name;
318 }
319
320 /*
321 Set the clientdata field for a type
322 */
323 SWIGRUNTIME void
324 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
325 swig_cast_info *cast = ti->cast;
326 /* if (ti->clientdata == clientdata) return; */
327 ti->clientdata = clientdata;
328
329 while (cast) {
330 if (!cast->converter) {
331 swig_type_info *tc = cast->type;
332 if (!tc->clientdata) {
333 SWIG_TypeClientData(tc, clientdata);
334 }
335 }
336 cast = cast->next;
337 }
338 }
339
340 /*
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
343
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
346 the circular list.
347 */
348 SWIGRUNTIME swig_type_info *
349 SWIG_MangledTypeQueryModule(swig_module_info *start,
350 swig_module_info *end,
351 const char *name) {
352 swig_module_info *iter = start;
353 do {
354 if (iter->size) {
355 register size_t l = 0;
356 register size_t r = iter->size - 1;
357 do {
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i = (l + r) >> 1;
360 const char *iname = iter->types[i]->name;
361 if (iname) {
362 register int compare = strcmp(name, iname);
363 if (compare == 0) {
364 return iter->types[i];
365 } else if (compare < 0) {
366 if (i) {
367 r = i - 1;
368 } else {
369 break;
370 }
371 } else if (compare > 0) {
372 l = i + 1;
373 }
374 } else {
375 break; /* should never happen */
376 }
377 } while (l <= r);
378 }
379 iter = iter->next;
380 } while (iter != end);
381 return 0;
382 }
383
384 /*
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
388
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
391 the circular list.
392 */
393 SWIGRUNTIME swig_type_info *
394 SWIG_TypeQueryModule(swig_module_info *start,
395 swig_module_info *end,
396 const char *name) {
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
399 if (ret) {
400 return ret;
401 } else {
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info *iter = start;
405 do {
406 register size_t i = 0;
407 for (; i < iter->size; ++i) {
408 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
409 return iter->types[i];
410 }
411 iter = iter->next;
412 } while (iter != end);
413 }
414
415 /* neither found a match */
416 return 0;
417 }
418
419
420 /*
421 Pack binary data into a string
422 */
423 SWIGRUNTIME char *
424 SWIG_PackData(char *c, void *ptr, size_t sz) {
425 static const char hex[17] = "0123456789abcdef";
426 register const unsigned char *u = (unsigned char *) ptr;
427 register const unsigned char *eu = u + sz;
428 for (; u != eu; ++u) {
429 register unsigned char uu = *u;
430 *(c++) = hex[(uu & 0xf0) >> 4];
431 *(c++) = hex[uu & 0xf];
432 }
433 return c;
434 }
435
436 /*
437 Unpack binary data from a string
438 */
439 SWIGRUNTIME const char *
440 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
441 register unsigned char *u = (unsigned char *) ptr;
442 register const unsigned char *eu = u + sz;
443 for (; u != eu; ++u) {
444 register char d = *(c++);
445 register unsigned char uu = 0;
446 if ((d >= '0') && (d <= '9'))
447 uu = ((d - '0') << 4);
448 else if ((d >= 'a') && (d <= 'f'))
449 uu = ((d - ('a'-10)) << 4);
450 else
451 return (char *) 0;
452 d = *(c++);
453 if ((d >= '0') && (d <= '9'))
454 uu |= (d - '0');
455 else if ((d >= 'a') && (d <= 'f'))
456 uu |= (d - ('a'-10));
457 else
458 return (char *) 0;
459 *u = uu;
460 }
461 return c;
462 }
463
464 /*
465 Pack 'void *' into a string buffer.
466 */
467 SWIGRUNTIME char *
468 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
469 char *r = buff;
470 if ((2*sizeof(void *) + 2) > bsz) return 0;
471 *(r++) = '_';
472 r = SWIG_PackData(r,&ptr,sizeof(void *));
473 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
474 strcpy(r,name);
475 return buff;
476 }
477
478 SWIGRUNTIME const char *
479 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
480 if (*c != '_') {
481 if (strcmp(c,"NULL") == 0) {
482 *ptr = (void *) 0;
483 return name;
484 } else {
485 return 0;
486 }
487 }
488 return SWIG_UnpackData(++c,ptr,sizeof(void *));
489 }
490
491 SWIGRUNTIME char *
492 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
493 char *r = buff;
494 size_t lname = (name ? strlen(name) : 0);
495 if ((2*sz + 2 + lname) > bsz) return 0;
496 *(r++) = '_';
497 r = SWIG_PackData(r,ptr,sz);
498 if (lname) {
499 strncpy(r,name,lname+1);
500 } else {
501 *r = 0;
502 }
503 return buff;
504 }
505
506 SWIGRUNTIME const char *
507 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
508 if (*c != '_') {
509 if (strcmp(c,"NULL") == 0) {
510 memset(ptr,0,sz);
511 return name;
512 } else {
513 return 0;
514 }
515 }
516 return SWIG_UnpackData(++c,ptr,sz);
517 }
518
519 #ifdef __cplusplus
520 }
521 #endif
522
523 /* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
526
527 #ifdef __cplusplus
528 extern "C" {
529 #endif
530
531 /* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
534
535 #ifndef SWIGINTERN
536 # define SWIGINTERN static SWIGUNUSED
537 #endif
538
539 #ifndef SWIGINTERNINLINE
540 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
541 #endif
542
543 /*
544 Exception handling in wrappers
545 */
546 #define SWIG_fail goto fail
547 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
552
553 /*
554 Contract support
555 */
556 #define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
558
559 /* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
562
563 /* Constant Types */
564 #define SWIG_PY_INT 1
565 #define SWIG_PY_FLOAT 2
566 #define SWIG_PY_STRING 3
567 #define SWIG_PY_POINTER 4
568 #define SWIG_PY_BINARY 5
569
570 /* Constant information structure */
571 typedef struct swig_const_info {
572 int type;
573 char *name;
574 long lvalue;
575 double dvalue;
576 void *pvalue;
577 swig_type_info **ptype;
578 } swig_const_info;
579
580
581 /* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584 #define SWIG_OLDOBJ 1
585 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586 #define SWIG_PYSTR SWIG_NEWOBJ + 1
587
588 #ifdef __cplusplus
589 }
590 #endif
591
592
593 /***********************************************************************
594 * pyrun.swg
595 *
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
598 * type checking.
599 *
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
602
603 /* Common SWIG API */
604 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
607
608
609 /* Python-specific SWIG API */
610 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
612
613 /* Runtime API */
614 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
616
617 /* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
620 /*
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
623 not always safe.
624 */
625 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626 # define SWIG_COBJECT_TYPES
627 #endif
628
629 /* Flags for pointer conversion */
630 #define SWIG_POINTER_EXCEPTION 0x1
631 #define SWIG_POINTER_DISOWN 0x2
632
633
634 /* Add PyOS_snprintf for old Pythons */
635 #if PY_VERSION_HEX < 0x02020000
636 #define PyOS_snprintf snprintf
637 #endif
638
639 #ifdef __cplusplus
640 extern "C" {
641 #endif
642
643 /* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
646 #ifndef SWIG_BUFFER_SIZE
647 #define SWIG_BUFFER_SIZE 1024
648 #endif
649
650 /* A crude PyString_FromFormat implementation for old Pythons */
651 #if PY_VERSION_HEX < 0x02020000
652 static PyObject *
653 PyString_FromFormat(const char *fmt, ...) {
654 va_list ap;
655 char buf[SWIG_BUFFER_SIZE * 2];
656 int res;
657 va_start(ap, fmt);
658 res = vsnprintf(buf, sizeof(buf), fmt, ap);
659 va_end(ap);
660 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
661 }
662 #endif
663
664 #if PY_VERSION_HEX < 0x01060000
665 #define PyObject_Del(op) PyMem_DEL((op))
666 #endif
667
668 #if defined(SWIG_COBJECT_TYPES)
669 #if !defined(SWIG_COBJECT_PYTHON)
670 /* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
673
674 typedef struct {
675 PyObject_HEAD
676 void *ptr;
677 const char *desc;
678 } PySwigObject;
679
680 /* Declarations for objects of type PySwigObject */
681
682 SWIGRUNTIME int
683 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
684 {
685 char result[SWIG_BUFFER_SIZE];
686 flags = flags;
687 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
688 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
689 return 0;
690 } else {
691 return 1;
692 }
693 }
694
695 SWIGRUNTIME PyObject *
696 PySwigObject_repr(PySwigObject *v)
697 {
698 char result[SWIG_BUFFER_SIZE];
699 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
700 PyString_FromFormat("<Swig Object at %s>", result) : 0;
701 }
702
703 SWIGRUNTIME PyObject *
704 PySwigObject_str(PySwigObject *v)
705 {
706 char result[SWIG_BUFFER_SIZE];
707 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
708 PyString_FromString(result) : 0;
709 }
710
711 SWIGRUNTIME PyObject *
712 PySwigObject_long(PySwigObject *v)
713 {
714 return PyLong_FromVoidPtr(v->ptr);
715 }
716
717 SWIGRUNTIME PyObject *
718 PySwigObject_format(const char* fmt, PySwigObject *v)
719 {
720 PyObject *res = NULL;
721 PyObject *args = PyTuple_New(1);
722 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
723 PyObject *ofmt = PyString_FromString(fmt);
724 if (ofmt) {
725 res = PyString_Format(ofmt,args);
726 Py_DECREF(ofmt);
727 }
728 Py_DECREF(args);
729 }
730 return res;
731 }
732
733 SWIGRUNTIME PyObject *
734 PySwigObject_oct(PySwigObject *v)
735 {
736 return PySwigObject_format("%o",v);
737 }
738
739 SWIGRUNTIME PyObject *
740 PySwigObject_hex(PySwigObject *v)
741 {
742 return PySwigObject_format("%x",v);
743 }
744
745 SWIGRUNTIME int
746 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
747 {
748 int c = strcmp(v->desc, w->desc);
749 if (c) {
750 return (c > 0) ? 1 : -1;
751 } else {
752 void *i = v->ptr;
753 void *j = w->ptr;
754 return (i < j) ? -1 : ((i > j) ? 1 : 0);
755 }
756 }
757
758 SWIGRUNTIME void
759 PySwigObject_dealloc(PySwigObject *self)
760 {
761 PyObject_Del(self);
762 }
763
764 SWIGRUNTIME PyTypeObject*
765 PySwigObject_type(void) {
766 static char pyswigobject_type__doc__[] =
767 "Swig object carries a C/C++ instance pointer";
768
769 static PyNumberMethods PySwigObject_as_number = {
770 (binaryfunc)0, /*nb_add*/
771 (binaryfunc)0, /*nb_subtract*/
772 (binaryfunc)0, /*nb_multiply*/
773 (binaryfunc)0, /*nb_divide*/
774 (binaryfunc)0, /*nb_remainder*/
775 (binaryfunc)0, /*nb_divmod*/
776 (ternaryfunc)0,/*nb_power*/
777 (unaryfunc)0, /*nb_negative*/
778 (unaryfunc)0, /*nb_positive*/
779 (unaryfunc)0, /*nb_absolute*/
780 (inquiry)0, /*nb_nonzero*/
781 0, /*nb_invert*/
782 0, /*nb_lshift*/
783 0, /*nb_rshift*/
784 0, /*nb_and*/
785 0, /*nb_xor*/
786 0, /*nb_or*/
787 (coercion)0, /*nb_coerce*/
788 (unaryfunc)PySwigObject_long, /*nb_int*/
789 (unaryfunc)PySwigObject_long, /*nb_long*/
790 (unaryfunc)0, /*nb_float*/
791 (unaryfunc)PySwigObject_oct, /*nb_oct*/
792 (unaryfunc)PySwigObject_hex, /*nb_hex*/
793 #if PY_VERSION_HEX >= 0x02020000
794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
795 #elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
797 #endif
798 };
799
800 static PyTypeObject pyswigobject_type
801 #if !defined(__cplusplus)
802 ;
803 static int type_init = 0;
804 if (!type_init) {
805 PyTypeObject tmp
806 #endif
807 = {
808 PyObject_HEAD_INIT(&PyType_Type)
809 0, /*ob_size*/
810 (char *)"PySwigObject", /*tp_name*/
811 sizeof(PySwigObject), /*tp_basicsize*/
812 0, /*tp_itemsize*/
813 /* methods */
814 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
815 (printfunc)PySwigObject_print, /*tp_print*/
816 (getattrfunc)0, /*tp_getattr*/
817 (setattrfunc)0, /*tp_setattr*/
818 (cmpfunc)PySwigObject_compare, /*tp_compare*/
819 (reprfunc)PySwigObject_repr, /*tp_repr*/
820 &PySwigObject_as_number, /*tp_as_number*/
821 0, /*tp_as_sequence*/
822 0, /*tp_as_mapping*/
823 (hashfunc)0, /*tp_hash*/
824 (ternaryfunc)0, /*tp_call*/
825 (reprfunc)PySwigObject_str, /*tp_str*/
826 /* Space for future expansion */
827 0,0,0,0,
828 pyswigobject_type__doc__, /* Documentation string */
829 #if PY_VERSION_HEX >= 0x02000000
830 0, /* tp_traverse */
831 0, /* tp_clear */
832 #endif
833 #if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
836 #endif
837 #if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
839 #endif
840 #if PY_VERSION_HEX >= 0x02030000
841 0, /* tp_del */
842 #endif
843 #ifdef COUNT_ALLOCS
844 0,0,0,0 /* tp_alloc -> tp_next */
845 #endif
846 };
847 #if !defined(__cplusplus)
848 pyswigobject_type = tmp;
849 type_init = 1;
850 }
851 #endif
852 return &pyswigobject_type;
853 }
854
855 SWIGRUNTIME PyObject *
856 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
857 {
858 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
859 if (self) {
860 self->ptr = ptr;
861 self->desc = desc;
862 }
863 return (PyObject *)self;
864 }
865
866 SWIGRUNTIMEINLINE void *
867 PySwigObject_AsVoidPtr(PyObject *self)
868 {
869 return ((PySwigObject *)self)->ptr;
870 }
871
872 SWIGRUNTIMEINLINE const char *
873 PySwigObject_GetDesc(PyObject *self)
874 {
875 return ((PySwigObject *)self)->desc;
876 }
877
878 SWIGRUNTIMEINLINE int
879 PySwigObject_Check(PyObject *op) {
880 return ((op)->ob_type == PySwigObject_type())
881 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
882 }
883
884 /* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
887
888 typedef struct {
889 PyObject_HEAD
890 void *pack;
891 const char *desc;
892 size_t size;
893 } PySwigPacked;
894
895 SWIGRUNTIME int
896 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
897 {
898 char result[SWIG_BUFFER_SIZE];
899 flags = flags;
900 fputs("<Swig Packed ", fp);
901 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
902 fputs("at ", fp);
903 fputs(result, fp);
904 }
905 fputs(v->desc,fp);
906 fputs(">", fp);
907 return 0;
908 }
909
910 SWIGRUNTIME PyObject *
911 PySwigPacked_repr(PySwigPacked *v)
912 {
913 char result[SWIG_BUFFER_SIZE];
914 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
916 } else {
917 return PyString_FromFormat("<Swig Packed %s>", v->desc);
918 }
919 }
920
921 SWIGRUNTIME PyObject *
922 PySwigPacked_str(PySwigPacked *v)
923 {
924 char result[SWIG_BUFFER_SIZE];
925 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
926 return PyString_FromFormat("%s%s", result, v->desc);
927 } else {
928 return PyString_FromString(v->desc);
929 }
930 }
931
932 SWIGRUNTIME int
933 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
934 {
935 int c = strcmp(v->desc, w->desc);
936 if (c) {
937 return (c > 0) ? 1 : -1;
938 } else {
939 size_t i = v->size;
940 size_t j = w->size;
941 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
942 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
943 }
944 }
945
946 SWIGRUNTIME void
947 PySwigPacked_dealloc(PySwigPacked *self)
948 {
949 free(self->pack);
950 PyObject_Del(self);
951 }
952
953 SWIGRUNTIME PyTypeObject*
954 PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__[] =
956 "Swig object carries a C/C++ instance pointer";
957 static PyTypeObject pyswigpacked_type
958 #if !defined(__cplusplus)
959 ;
960 static int type_init = 0;
961 if (!type_init) {
962 PyTypeObject tmp
963 #endif
964 = {
965 PyObject_HEAD_INIT(&PyType_Type)
966 0, /*ob_size*/
967 (char *)"PySwigPacked", /*tp_name*/
968 sizeof(PySwigPacked), /*tp_basicsize*/
969 0, /*tp_itemsize*/
970 /* methods */
971 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
972 (printfunc)PySwigPacked_print, /*tp_print*/
973 (getattrfunc)0, /*tp_getattr*/
974 (setattrfunc)0, /*tp_setattr*/
975 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
976 (reprfunc)PySwigPacked_repr, /*tp_repr*/
977 0, /*tp_as_number*/
978 0, /*tp_as_sequence*/
979 0, /*tp_as_mapping*/
980 (hashfunc)0, /*tp_hash*/
981 (ternaryfunc)0, /*tp_call*/
982 (reprfunc)PySwigPacked_str, /*tp_str*/
983 /* Space for future expansion */
984 0,0,0,0,
985 pyswigpacked_type__doc__, /* Documentation string */
986 #if PY_VERSION_HEX >= 0x02000000
987 0, /* tp_traverse */
988 0, /* tp_clear */
989 #endif
990 #if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
993 #endif
994 #if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
996 #endif
997 #if PY_VERSION_HEX >= 0x02030000
998 0, /* tp_del */
999 #endif
1000 #ifdef COUNT_ALLOCS
1001 0,0,0,0 /* tp_alloc -> tp_next */
1002 #endif
1003 };
1004 #if !defined(__cplusplus)
1005 pyswigpacked_type = tmp;
1006 type_init = 1;
1007 }
1008 #endif
1009 return &pyswigpacked_type;
1010 }
1011
1012 SWIGRUNTIME PyObject *
1013 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1014 {
1015 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1016 if (self == NULL) {
1017 return NULL;
1018 } else {
1019 void *pack = malloc(size);
1020 if (pack) {
1021 memcpy(pack, ptr, size);
1022 self->pack = pack;
1023 self->desc = desc;
1024 self->size = size;
1025 return (PyObject *) self;
1026 }
1027 return NULL;
1028 }
1029 }
1030
1031 SWIGRUNTIMEINLINE const char *
1032 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1033 {
1034 PySwigPacked *self = (PySwigPacked *)obj;
1035 if (self->size != size) return 0;
1036 memcpy(ptr, self->pack, size);
1037 return self->desc;
1038 }
1039
1040 SWIGRUNTIMEINLINE const char *
1041 PySwigPacked_GetDesc(PyObject *self)
1042 {
1043 return ((PySwigPacked *)self)->desc;
1044 }
1045
1046 SWIGRUNTIMEINLINE int
1047 PySwigPacked_Check(PyObject *op) {
1048 return ((op)->ob_type == PySwigPacked_type())
1049 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1050 }
1051
1052 #else
1053 /* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1056
1057 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1059 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1061
1062 #endif
1063
1064 #endif
1065
1066 /* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1069
1070 SWIGRUNTIME void
1071 SWIG_Python_TypeError(const char *type, PyObject *obj)
1072 {
1073 if (type) {
1074 #if defined(SWIG_COBJECT_TYPES)
1075 if (obj && PySwigObject_Check(obj)) {
1076 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1077 if (otype) {
1078 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1079 type, otype);
1080 return;
1081 }
1082 } else
1083 #endif
1084 {
1085 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1086 if (otype) {
1087 PyObject *str = PyObject_Str(obj);
1088 const char *cstr = str ? PyString_AsString(str) : 0;
1089 if (cstr) {
1090 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1091 type, otype, cstr);
1092 } else {
1093 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1094 type, otype);
1095 }
1096 Py_XDECREF(str);
1097 return;
1098 }
1099 }
1100 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1101 } else {
1102 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1103 }
1104 }
1105
1106 SWIGRUNTIMEINLINE void
1107 SWIG_Python_NullRef(const char *type)
1108 {
1109 if (type) {
1110 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1111 } else {
1112 PyErr_Format(PyExc_TypeError, "null reference was received");
1113 }
1114 }
1115
1116 SWIGRUNTIME int
1117 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1118 {
1119 if (PyErr_Occurred()) {
1120 PyObject *type = 0;
1121 PyObject *value = 0;
1122 PyObject *traceback = 0;
1123 PyErr_Fetch(&type, &value, &traceback);
1124 if (value) {
1125 PyObject *old_str = PyObject_Str(value);
1126 Py_XINCREF(type);
1127 PyErr_Clear();
1128 if (infront) {
1129 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1130 } else {
1131 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1132 }
1133 Py_DECREF(old_str);
1134 }
1135 return 1;
1136 } else {
1137 return 0;
1138 }
1139 }
1140
1141 SWIGRUNTIME int
1142 SWIG_Python_ArgFail(int argnum)
1143 {
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1146 char mesg[256];
1147 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1148 return SWIG_Python_AddErrMesg(mesg, 1);
1149 } else {
1150 return 0;
1151 }
1152 }
1153
1154
1155 /* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1158
1159 /* Convert a pointer value */
1160 SWIGRUNTIME int
1161 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1162 swig_cast_info *tc;
1163 const char *c = 0;
1164 static PyObject *SWIG_this = 0;
1165 int newref = 0;
1166 PyObject *pyobj = 0;
1167 void *vptr;
1168
1169 if (!obj) return 0;
1170 if (obj == Py_None) {
1171 *ptr = 0;
1172 return 0;
1173 }
1174
1175 #ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj))) {
1177 if (!SWIG_this)
1178 SWIG_this = PyString_FromString("this");
1179 pyobj = obj;
1180 obj = PyObject_GetAttr(obj,SWIG_this);
1181 newref = 1;
1182 if (!obj) goto type_error;
1183 if (!PySwigObject_Check(obj)) {
1184 Py_DECREF(obj);
1185 goto type_error;
1186 }
1187 }
1188 vptr = PySwigObject_AsVoidPtr(obj);
1189 c = (const char *) PySwigObject_GetDesc(obj);
1190 if (newref) { Py_DECREF(obj); }
1191 goto type_check;
1192 #else
1193 if (!(PyString_Check(obj))) {
1194 if (!SWIG_this)
1195 SWIG_this = PyString_FromString("this");
1196 pyobj = obj;
1197 obj = PyObject_GetAttr(obj,SWIG_this);
1198 newref = 1;
1199 if (!obj) goto type_error;
1200 if (!PyString_Check(obj)) {
1201 Py_DECREF(obj);
1202 goto type_error;
1203 }
1204 }
1205 c = PyString_AsString(obj);
1206 /* Pointer values must start with leading underscore */
1207 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1208 if (newref) { Py_DECREF(obj); }
1209 if (!c) goto type_error;
1210 #endif
1211
1212 type_check:
1213 if (ty) {
1214 tc = SWIG_TypeCheck(c,ty);
1215 if (!tc) goto type_error;
1216 *ptr = SWIG_TypeCast(tc,vptr);
1217 } else {
1218 *ptr = vptr;
1219 }
1220 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1221 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1222 }
1223 return 0;
1224
1225 type_error:
1226 PyErr_Clear();
1227 if (pyobj && !obj) {
1228 obj = pyobj;
1229 if (PyCFunction_Check(obj)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1232 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1233 if (c) {
1234 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1235 if (!c) goto type_error;
1236 goto type_check;
1237 }
1238 }
1239 }
1240 if (flags & SWIG_POINTER_EXCEPTION) {
1241 if (ty) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1243 } else {
1244 SWIG_Python_TypeError("C/C++ pointer", obj);
1245 }
1246 }
1247 return -1;
1248 }
1249
1250 /* Convert a pointer value, signal an exception on a type mismatch */
1251 SWIGRUNTIME void *
1252 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1253 void *result;
1254 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1255 PyErr_Clear();
1256 if (flags & SWIG_POINTER_EXCEPTION) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1258 SWIG_Python_ArgFail(argnum);
1259 }
1260 }
1261 return result;
1262 }
1263
1264 /* Convert a packed value value */
1265 SWIGRUNTIME int
1266 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1267 swig_cast_info *tc;
1268 const char *c = 0;
1269
1270 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c = PySwigPacked_UnpackData(obj, ptr, sz);
1272 #else
1273 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1274 c = PyString_AsString(obj);
1275 /* Pointer values must start with leading underscore */
1276 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1277 #endif
1278 if (!c) goto type_error;
1279 if (ty) {
1280 tc = SWIG_TypeCheck(c,ty);
1281 if (!tc) goto type_error;
1282 }
1283 return 0;
1284
1285 type_error:
1286 PyErr_Clear();
1287 if (flags & SWIG_POINTER_EXCEPTION) {
1288 if (ty) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1290 } else {
1291 SWIG_Python_TypeError("C/C++ packed data", obj);
1292 }
1293 }
1294 return -1;
1295 }
1296
1297 /* Create a new array object */
1298 SWIGRUNTIME PyObject *
1299 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1300 PyObject *robj = 0;
1301 if (!type) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1304 }
1305 return robj;
1306 }
1307 if (!ptr) {
1308 Py_INCREF(Py_None);
1309 return Py_None;
1310 }
1311 #ifdef SWIG_COBJECT_TYPES
1312 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1313 #else
1314 {
1315 char result[SWIG_BUFFER_SIZE];
1316 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1317 PyString_FromString(result) : 0;
1318 }
1319 #endif
1320 if (!robj || (robj == Py_None)) return robj;
1321 if (type->clientdata) {
1322 PyObject *inst;
1323 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1324 Py_DECREF(robj);
1325 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1326 Py_DECREF(args);
1327 if (inst) {
1328 if (own) {
1329 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1330 }
1331 robj = inst;
1332 }
1333 }
1334 return robj;
1335 }
1336
1337 SWIGRUNTIME PyObject *
1338 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1339 PyObject *robj = 0;
1340 if (!ptr) {
1341 Py_INCREF(Py_None);
1342 return Py_None;
1343 }
1344 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1346 #else
1347 {
1348 char result[SWIG_BUFFER_SIZE];
1349 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1350 PyString_FromString(result) : 0;
1351 }
1352 #endif
1353 return robj;
1354 }
1355
1356 /* -----------------------------------------------------------------------------*
1357 * Get type list
1358 * -----------------------------------------------------------------------------*/
1359
1360 #ifdef SWIG_LINK_RUNTIME
1361 void *SWIG_ReturnGlobalTypeList(void *);
1362 #endif
1363
1364 SWIGRUNTIME swig_module_info *
1365 SWIG_Python_GetModule(void) {
1366 static void *type_pointer = (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer) {
1369 #ifdef SWIG_LINK_RUNTIME
1370 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1371 #else
1372 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1374 if (PyErr_Occurred()) {
1375 PyErr_Clear();
1376 type_pointer = (void *)0;
1377 }
1378 #endif
1379 }
1380 return (swig_module_info *) type_pointer;
1381 }
1382
1383 #if PY_MAJOR_VERSION < 2
1384 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1385 is copied out of Python/modsupport.c in python version 2.3.4 */
1386 SWIGINTERN int
1387 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1388 {
1389 PyObject *dict;
1390 if (!PyModule_Check(m)) {
1391 PyErr_SetString(PyExc_TypeError,
1392 "PyModule_AddObject() needs module as first arg");
1393 return -1;
1394 }
1395 if (!o) {
1396 PyErr_SetString(PyExc_TypeError,
1397 "PyModule_AddObject() needs non-NULL value");
1398 return -1;
1399 }
1400
1401 dict = PyModule_GetDict(m);
1402 if (dict == NULL) {
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1405 PyModule_GetName(m));
1406 return -1;
1407 }
1408 if (PyDict_SetItemString(dict, name, o))
1409 return -1;
1410 Py_DECREF(o);
1411 return 0;
1412 }
1413 #endif
1414
1415 SWIGRUNTIME void
1416 SWIG_Python_SetModule(swig_module_info *swig_module) {
1417 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1418
1419 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1420 swig_empty_runtime_method_table);
1421 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1422 if (pointer && module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1424 }
1425 }
1426
1427 #ifdef __cplusplus
1428 }
1429 #endif
1430
1431
1432 /* -------- TYPES TABLE (BEGIN) -------- */
1433
1434 #define SWIGTYPE_p_char swig_types[0]
1435 #define SWIGTYPE_p_form_ops_t swig_types[1]
1436 #define SWIGTYPE_p_int swig_types[2]
1437 #define SWIGTYPE_p_unsigned_char swig_types[3]
1438 #define SWIGTYPE_p_unsigned_int swig_types[4]
1439 #define SWIGTYPE_p_unsigned_long swig_types[5]
1440 #define SWIGTYPE_p_void swig_types[6]
1441 #define SWIGTYPE_p_wxANIHandler swig_types[7]
1442 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
1443 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
1444 #define SWIGTYPE_p_wxArrayString swig_types[10]
1445 #define SWIGTYPE_p_wxBMPHandler swig_types[11]
1446 #define SWIGTYPE_p_wxBitmap swig_types[12]
1447 #define SWIGTYPE_p_wxBitmapDataObject swig_types[13]
1448 #define SWIGTYPE_p_wxBoxSizer swig_types[14]
1449 #define SWIGTYPE_p_wxBusyCursor swig_types[15]
1450 #define SWIGTYPE_p_wxBusyInfo swig_types[16]
1451 #define SWIGTYPE_p_wxCURHandler swig_types[17]
1452 #define SWIGTYPE_p_wxCaret swig_types[18]
1453 #define SWIGTYPE_p_wxChar swig_types[19]
1454 #define SWIGTYPE_p_wxChildFocusEvent swig_types[20]
1455 #define SWIGTYPE_p_wxClipboard swig_types[21]
1456 #define SWIGTYPE_p_wxClipboardLocker swig_types[22]
1457 #define SWIGTYPE_p_wxCloseEvent swig_types[23]
1458 #define SWIGTYPE_p_wxColour swig_types[24]
1459 #define SWIGTYPE_p_wxCommandEvent swig_types[25]
1460 #define SWIGTYPE_p_wxConfig swig_types[26]
1461 #define SWIGTYPE_p_wxConfigBase swig_types[27]
1462 #define SWIGTYPE_p_wxConfigPathChanger swig_types[28]
1463 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
1464 #define SWIGTYPE_p_wxControl swig_types[30]
1465 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
1466 #define SWIGTYPE_p_wxCursor swig_types[32]
1467 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
1468 #define SWIGTYPE_p_wxDC swig_types[34]
1469 #define SWIGTYPE_p_wxDataFormat swig_types[35]
1470 #define SWIGTYPE_p_wxDataObject swig_types[36]
1471 #define SWIGTYPE_p_wxDataObjectComposite swig_types[37]
1472 #define SWIGTYPE_p_wxDataObjectSimple swig_types[38]
1473 #define SWIGTYPE_p_wxDateEvent swig_types[39]
1474 #define SWIGTYPE_p_wxDateSpan swig_types[40]
1475 #define SWIGTYPE_p_wxDateTime swig_types[41]
1476 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[42]
1477 #define SWIGTYPE_p_wxDisplay swig_types[43]
1478 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
1479 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
1480 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
1481 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
1482 #define SWIGTYPE_p_wxEvent swig_types[48]
1483 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
1484 #define SWIGTYPE_p_wxFSFile swig_types[50]
1485 #define SWIGTYPE_p_wxFileConfig swig_types[51]
1486 #define SWIGTYPE_p_wxFileDataObject swig_types[52]
1487 #define SWIGTYPE_p_wxFileHistory swig_types[53]
1488 #define SWIGTYPE_p_wxFileSystem swig_types[54]
1489 #define SWIGTYPE_p_wxFileType swig_types[55]
1490 #define SWIGTYPE_p_wxFileTypeInfo swig_types[56]
1491 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
1492 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
1493 #define SWIGTYPE_p_wxFont swig_types[59]
1494 #define SWIGTYPE_p_wxFrame swig_types[60]
1495 #define SWIGTYPE_p_wxGBSizerItem swig_types[61]
1496 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
1497 #define SWIGTYPE_p_wxGridBagSizer swig_types[63]
1498 #define SWIGTYPE_p_wxGridSizer swig_types[64]
1499 #define SWIGTYPE_p_wxICOHandler swig_types[65]
1500 #define SWIGTYPE_p_wxIcon swig_types[66]
1501 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
1502 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
1503 #define SWIGTYPE_p_wxImage swig_types[69]
1504 #define SWIGTYPE_p_wxImageHandler swig_types[70]
1505 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71]
1506 #define SWIGTYPE_p_wxInitDialogEvent swig_types[72]
1507 #define SWIGTYPE_p_wxJPEGHandler swig_types[73]
1508 #define SWIGTYPE_p_wxJoystick swig_types[74]
1509 #define SWIGTYPE_p_wxJoystickEvent swig_types[75]
1510 #define SWIGTYPE_p_wxKeyEvent swig_types[76]
1511 #define SWIGTYPE_p_wxKillError swig_types[77]
1512 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
1513 #define SWIGTYPE_p_wxLog swig_types[79]
1514 #define SWIGTYPE_p_wxLogBuffer swig_types[80]
1515 #define SWIGTYPE_p_wxLogChain swig_types[81]
1516 #define SWIGTYPE_p_wxLogGui swig_types[82]
1517 #define SWIGTYPE_p_wxLogNull swig_types[83]
1518 #define SWIGTYPE_p_wxLogStderr swig_types[84]
1519 #define SWIGTYPE_p_wxLogTextCtrl swig_types[85]
1520 #define SWIGTYPE_p_wxLogWindow swig_types[86]
1521 #define SWIGTYPE_p_wxMaximizeEvent swig_types[87]
1522 #define SWIGTYPE_p_wxMemorySize swig_types[88]
1523 #define SWIGTYPE_p_wxMenu swig_types[89]
1524 #define SWIGTYPE_p_wxMenuBar swig_types[90]
1525 #define SWIGTYPE_p_wxMenuEvent swig_types[91]
1526 #define SWIGTYPE_p_wxMenuItem swig_types[92]
1527 #define SWIGTYPE_p_wxMetafile swig_types[93]
1528 #define SWIGTYPE_p_wxMetafileDataObject swig_types[94]
1529 #define SWIGTYPE_p_wxMimeTypesManager swig_types[95]
1530 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[96]
1531 #define SWIGTYPE_p_wxMouseEvent swig_types[97]
1532 #define SWIGTYPE_p_wxMouseState swig_types[98]
1533 #define SWIGTYPE_p_wxMoveEvent swig_types[99]
1534 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[100]
1535 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[101]
1536 #define SWIGTYPE_p_wxNcPaintEvent swig_types[102]
1537 #define SWIGTYPE_p_wxNotifyEvent swig_types[103]
1538 #define SWIGTYPE_p_wxObject swig_types[104]
1539 #define SWIGTYPE_p_wxOutputStream swig_types[105]
1540 #define SWIGTYPE_p_wxPCXHandler swig_types[106]
1541 #define SWIGTYPE_p_wxPNGHandler swig_types[107]
1542 #define SWIGTYPE_p_wxPNMHandler swig_types[108]
1543 #define SWIGTYPE_p_wxPaintEvent swig_types[109]
1544 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
1545 #define SWIGTYPE_p_wxPaperSize swig_types[111]
1546 #define SWIGTYPE_p_wxPoint swig_types[112]
1547 #define SWIGTYPE_p_wxProcessEvent swig_types[113]
1548 #define SWIGTYPE_p_wxPyApp swig_types[114]
1549 #define SWIGTYPE_p_wxPyArtProvider swig_types[115]
1550 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[116]
1551 #define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
1552 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[118]
1553 #define SWIGTYPE_p_wxPyDropSource swig_types[119]
1554 #define SWIGTYPE_p_wxPyDropTarget swig_types[120]
1555 #define SWIGTYPE_p_wxPyEvent swig_types[121]
1556 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[122]
1557 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
1558 #define SWIGTYPE_p_wxPyLog swig_types[124]
1559 #define SWIGTYPE_p_wxPyProcess swig_types[125]
1560 #define SWIGTYPE_p_wxPySizer swig_types[126]
1561 #define SWIGTYPE_p_wxPyTextDataObject swig_types[127]
1562 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[128]
1563 #define SWIGTYPE_p_wxPyTimer swig_types[129]
1564 #define SWIGTYPE_p_wxPyTipProvider swig_types[130]
1565 #define SWIGTYPE_p_wxPyValidator swig_types[131]
1566 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[132]
1567 #define SWIGTYPE_p_wxRect swig_types[133]
1568 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
1569 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
1570 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
1571 #define SWIGTYPE_p_wxShowEvent swig_types[137]
1572 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[138]
1573 #define SWIGTYPE_p_wxSize swig_types[139]
1574 #define SWIGTYPE_p_wxSizeEvent swig_types[140]
1575 #define SWIGTYPE_p_wxSizer swig_types[141]
1576 #define SWIGTYPE_p_wxSizerItem swig_types[142]
1577 #define SWIGTYPE_p_wxSound swig_types[143]
1578 #define SWIGTYPE_p_wxStandardPaths swig_types[144]
1579 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
1580 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
1581 #define SWIGTYPE_p_wxStopWatch swig_types[147]
1582 #define SWIGTYPE_p_wxString swig_types[148]
1583 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
1584 #define SWIGTYPE_p_wxSystemOptions swig_types[150]
1585 #define SWIGTYPE_p_wxSystemSettings swig_types[151]
1586 #define SWIGTYPE_p_wxTIFFHandler swig_types[152]
1587 #define SWIGTYPE_p_wxTextCtrl swig_types[153]
1588 #define SWIGTYPE_p_wxTextDataObject swig_types[154]
1589 #define SWIGTYPE_p_wxTimeSpan swig_types[155]
1590 #define SWIGTYPE_p_wxTimer swig_types[156]
1591 #define SWIGTYPE_p_wxTimerEvent swig_types[157]
1592 #define SWIGTYPE_p_wxTimerRunner swig_types[158]
1593 #define SWIGTYPE_p_wxTipProvider swig_types[159]
1594 #define SWIGTYPE_p_wxToolTip swig_types[160]
1595 #define SWIGTYPE_p_wxURLDataObject swig_types[161]
1596 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
1597 #define SWIGTYPE_p_wxValidator swig_types[163]
1598 #define SWIGTYPE_p_wxVideoMode swig_types[164]
1599 #define SWIGTYPE_p_wxWindow swig_types[165]
1600 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
1601 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
1602 #define SWIGTYPE_p_wxWindowDisabler swig_types[168]
1603 #define SWIGTYPE_p_wxXPMHandler swig_types[169]
1604 #define SWIGTYPE_ptrdiff_t swig_types[170]
1605 #define SWIGTYPE_std__ptrdiff_t swig_types[171]
1606 #define SWIGTYPE_unsigned_int swig_types[172]
1607 static swig_type_info *swig_types[174];
1608 static swig_module_info swig_module = {swig_types, 173, 0, 0, 0, 0};
1609 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1610 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1611
1612 /* -------- TYPES TABLE (END) -------- */
1613
1614
1615 /*-----------------------------------------------
1616 @(target):= _misc_.so
1617 ------------------------------------------------*/
1618 #define SWIG_init init_misc_
1619
1620 #define SWIG_name "_misc_"
1621
1622 #include "wx/wxPython/wxPython.h"
1623 #include "wx/wxPython/pyclasses.h"
1624 #include "wx/wxPython/pyistream.h"
1625
1626 static const wxString wxPyEmptyString(wxEmptyString);
1627
1628
1629
1630 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1631 #define SWIG_From_int PyInt_FromLong
1632 /*@@*/
1633
1634
1635 #include <limits.h>
1636
1637
1638 SWIGINTERN int
1639 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1640 const char *errmsg)
1641 {
1642 if (value < min_value) {
1643 if (errmsg) {
1644 PyErr_Format(PyExc_OverflowError,
1645 "value %ld is less than '%s' minimum %ld",
1646 value, errmsg, min_value);
1647 }
1648 return 0;
1649 } else if (value > max_value) {
1650 if (errmsg) {
1651 PyErr_Format(PyExc_OverflowError,
1652 "value %ld is greater than '%s' maximum %ld",
1653 value, errmsg, max_value);
1654 }
1655 return 0;
1656 }
1657 return 1;
1658 }
1659
1660
1661 SWIGINTERN int
1662 SWIG_AsVal_long(PyObject* obj, long* val)
1663 {
1664 if (PyNumber_Check(obj)) {
1665 if (val) *val = PyInt_AsLong(obj);
1666 return 1;
1667 }
1668 else {
1669 SWIG_type_error("number", obj);
1670 }
1671 return 0;
1672 }
1673
1674
1675 #if INT_MAX != LONG_MAX
1676 SWIGINTERN int
1677 SWIG_AsVal_int(PyObject *obj, int *val)
1678 {
1679 const char* errmsg = val ? "int" : (char*)0;
1680 long v;
1681 if (SWIG_AsVal_long(obj, &v)) {
1682 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1683 if (val) *val = static_cast<int >(v);
1684 return 1;
1685 } else {
1686 return 0;
1687 }
1688 } else {
1689 PyErr_Clear();
1690 }
1691 if (val) {
1692 SWIG_type_error(errmsg, obj);
1693 }
1694 return 0;
1695 }
1696 #else
1697 SWIGINTERNINLINE int
1698 SWIG_AsVal_int(PyObject *obj, int *val)
1699 {
1700 return SWIG_AsVal_long(obj,(long*)val);
1701 }
1702 #endif
1703
1704
1705 SWIGINTERNINLINE int
1706 SWIG_As_int(PyObject* obj)
1707 {
1708 int v;
1709 if (!SWIG_AsVal_int(obj, &v)) {
1710 /*
1711 this is needed to make valgrind/purify happier.
1712 */
1713 memset((void*)&v, 0, sizeof(int));
1714 }
1715 return v;
1716 }
1717
1718
1719 SWIGINTERNINLINE int
1720 SWIG_Check_int(PyObject* obj)
1721 {
1722 return SWIG_AsVal_int(obj, (int*)0);
1723 }
1724
1725 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
1726
1727 #include <wx/stockitem.h>
1728
1729 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
1730 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
1731 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
1732
1733 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1734 #define SWIG_From_long PyInt_FromLong
1735 /*@@*/
1736
1737
1738 SWIGINTERNINLINE long
1739 SWIG_As_long(PyObject* obj)
1740 {
1741 long v;
1742 if (!SWIG_AsVal_long(obj, &v)) {
1743 /*
1744 this is needed to make valgrind/purify happier.
1745 */
1746 memset((void*)&v, 0, sizeof(long));
1747 }
1748 return v;
1749 }
1750
1751
1752 SWIGINTERNINLINE int
1753 SWIG_Check_long(PyObject* obj)
1754 {
1755 return SWIG_AsVal_long(obj, (long*)0);
1756 }
1757
1758
1759 SWIGINTERN int
1760 SWIG_AsVal_bool(PyObject *obj, bool *val)
1761 {
1762 if (obj == Py_True) {
1763 if (val) *val = true;
1764 return 1;
1765 }
1766 if (obj == Py_False) {
1767 if (val) *val = false;
1768 return 1;
1769 }
1770 int res = 0;
1771 if (SWIG_AsVal_int(obj, &res)) {
1772 if (val) *val = res ? true : false;
1773 return 1;
1774 } else {
1775 PyErr_Clear();
1776 }
1777 if (val) {
1778 SWIG_type_error("bool", obj);
1779 }
1780 return 0;
1781 }
1782
1783
1784 SWIGINTERNINLINE bool
1785 SWIG_As_bool(PyObject* obj)
1786 {
1787 bool v;
1788 if (!SWIG_AsVal_bool(obj, &v)) {
1789 /*
1790 this is needed to make valgrind/purify happier.
1791 */
1792 memset((void*)&v, 0, sizeof(bool));
1793 }
1794 return v;
1795 }
1796
1797
1798 SWIGINTERNINLINE int
1799 SWIG_Check_bool(PyObject* obj)
1800 {
1801 return SWIG_AsVal_bool(obj, (bool*)0);
1802 }
1803
1804
1805 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1806 PyObject* o2;
1807 PyObject* o3;
1808
1809 if (!target) {
1810 target = o;
1811 } else if (target == Py_None) {
1812 Py_DECREF(Py_None);
1813 target = o;
1814 } else {
1815 if (!PyTuple_Check(target)) {
1816 o2 = target;
1817 target = PyTuple_New(1);
1818 PyTuple_SetItem(target, 0, o2);
1819 }
1820 o3 = PyTuple_New(1);
1821 PyTuple_SetItem(o3, 0, o);
1822
1823 o2 = target;
1824 target = PySequence_Concat(o2, o3);
1825 Py_DECREF(o2);
1826 Py_DECREF(o3);
1827 }
1828 return target;
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_type_error("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 void wxPyTimer::Notify() {
2031 bool found;
2032 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2033 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
2034 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
2035 wxPyEndBlockThreads(blocked);
2036 if (! found)
2037 wxTimer::Notify();
2038 }
2039 void wxPyTimer::base_Notify() {
2040 wxTimer::Notify();
2041 }
2042
2043
2044
2045 SWIGINTERN PyObject *
2046 SWIG_FromCharPtr(const char* cptr)
2047 {
2048 if (cptr) {
2049 size_t size = strlen(cptr);
2050 if (size > INT_MAX) {
2051 return SWIG_NewPointerObj(const_cast<char* >(cptr),
2052 SWIG_TypeQuery("char *"), 0);
2053 } else {
2054 if (size != 0) {
2055 return PyString_FromStringAndSize(cptr, size);
2056 } else {
2057 return PyString_FromString(cptr);
2058 }
2059 }
2060 }
2061 Py_INCREF(Py_None);
2062 return Py_None;
2063 }
2064
2065
2066 SWIGINTERNINLINE int
2067 SWIG_CheckUnsignedLongInRange(unsigned long value,
2068 unsigned long max_value,
2069 const char *errmsg)
2070 {
2071 if (value > max_value) {
2072 if (errmsg) {
2073 PyErr_Format(PyExc_OverflowError,
2074 "value %lu is greater than '%s' minimum %lu",
2075 value, errmsg, max_value);
2076 }
2077 return 0;
2078 }
2079 return 1;
2080 }
2081
2082
2083 #if UINT_MAX != ULONG_MAX
2084 SWIGINTERN int
2085 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2086 {
2087 const char* errmsg = val ? "unsigned int" : (char*)0;
2088 unsigned long v;
2089 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
2090 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
2091 if (val) *val = static_cast<unsigned int >(v);
2092 return 1;
2093 }
2094 } else {
2095 PyErr_Clear();
2096 }
2097 if (val) {
2098 SWIG_type_error(errmsg, obj);
2099 }
2100 return 0;
2101 }
2102 #else
2103 SWIGINTERNINLINE unsigned int
2104 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2105 {
2106 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
2107 }
2108 #endif
2109
2110
2111 SWIGINTERNINLINE unsigned int
2112 SWIG_As_unsigned_SS_int(PyObject* obj)
2113 {
2114 unsigned int v;
2115 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
2116 /*
2117 this is needed to make valgrind/purify happier.
2118 */
2119 memset((void*)&v, 0, sizeof(unsigned int));
2120 }
2121 return v;
2122 }
2123
2124
2125 SWIGINTERNINLINE int
2126 SWIG_Check_unsigned_SS_int(PyObject* obj)
2127 {
2128 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
2129 }
2130
2131 static wxString wxLog_TimeStamp(){
2132 wxString msg;
2133 wxLog::TimeStamp(&msg);
2134 return msg;
2135 }
2136 static void wxLog_Destroy(wxLog *self){ delete self; }
2137 // Make somce wrappers that double any % signs so they are 'escaped'
2138 void wxPyLogFatalError(const wxString& msg)
2139 {
2140 wxString m(msg);
2141 m.Replace(wxT("%"), wxT("%%"));
2142 wxLogFatalError(m);
2143 }
2144
2145 void wxPyLogError(const wxString& msg)
2146 {
2147 wxString m(msg);
2148 m.Replace(wxT("%"), wxT("%%"));
2149 wxLogError(m);
2150 }
2151
2152 void wxPyLogWarning(const wxString& msg)
2153 {
2154 wxString m(msg);
2155 m.Replace(wxT("%"), wxT("%%"));
2156 wxLogWarning(m);
2157 }
2158
2159 void wxPyLogMessage(const wxString& msg)
2160 {
2161 wxString m(msg);
2162 m.Replace(wxT("%"), wxT("%%"));
2163 wxLogMessage(m);
2164 }
2165
2166 void wxPyLogInfo(const wxString& msg)
2167 {
2168 wxString m(msg);
2169 m.Replace(wxT("%"), wxT("%%"));
2170 wxLogInfo(m);
2171 }
2172
2173 void wxPyLogDebug(const wxString& msg)
2174 {
2175 wxString m(msg);
2176 m.Replace(wxT("%"), wxT("%%"));
2177 wxLogDebug(m);
2178 }
2179
2180 void wxPyLogVerbose(const wxString& msg)
2181 {
2182 wxString m(msg);
2183 m.Replace(wxT("%"), wxT("%%"));
2184 wxLogVerbose(m);
2185 }
2186
2187 void wxPyLogStatus(const wxString& msg)
2188 {
2189 wxString m(msg);
2190 m.Replace(wxT("%"), wxT("%%"));
2191 wxLogStatus(m);
2192 }
2193
2194 void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg)
2195 {
2196 wxString m(msg);
2197 m.Replace(wxT("%"), wxT("%%"));
2198 wxLogStatus(pFrame, m);
2199 }
2200
2201 void wxPyLogSysError(const wxString& msg)
2202 {
2203 wxString m(msg);
2204 m.Replace(wxT("%"), wxT("%%"));
2205 wxLogSysError(m);
2206 }
2207
2208 void wxPyLogGeneric(unsigned long level, const wxString& msg)
2209 {
2210 wxString m(msg);
2211 m.Replace(wxT("%"), wxT("%%"));
2212 wxLogGeneric(level, m);
2213 }
2214
2215 void wxPyLogTrace(unsigned long mask, const wxString& msg)
2216 {
2217 wxString m(msg);
2218 m.Replace(wxT("%"), wxT("%%"));
2219 wxLogTrace(mask, m);
2220 }
2221
2222 void wxPyLogTrace(const wxString& mask, const wxString& msg)
2223 {
2224 wxString m(msg);
2225 m.Replace(wxT("%"), wxT("%%"));
2226 wxLogTrace(mask, m);
2227 }
2228
2229
2230
2231 // A wxLog class that can be derived from in wxPython
2232 class wxPyLog : public wxLog {
2233 public:
2234 wxPyLog() : wxLog() {}
2235
2236 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
2237 bool found;
2238 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2239 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
2240 PyObject* s = wx2PyString(szString);
2241 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
2242 Py_DECREF(s);
2243 }
2244 wxPyEndBlockThreads(blocked);
2245 if (! found)
2246 wxLog::DoLog(level, szString, t);
2247 }
2248
2249 virtual void DoLogString(const wxChar *szString, time_t t) {
2250 bool found;
2251 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2252 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
2253 PyObject* s = wx2PyString(szString);
2254 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
2255 Py_DECREF(s);
2256 }
2257 wxPyEndBlockThreads(blocked);
2258 if (! found)
2259 wxLog::DoLogString(szString, t);
2260 }
2261
2262 PYPRIVATE;
2263 };
2264
2265
2266
2267
2268 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
2269
2270
2271 #include <wx/joystick.h>
2272
2273
2274 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
2275 // A C++ stub class for wxJoystick for platforms that don't have it.
2276 class wxJoystick : public wxObject {
2277 public:
2278 wxJoystick(int joystick = wxJOYSTICK1) {
2279 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2280 PyErr_SetString(PyExc_NotImplementedError,
2281 "wxJoystick is not available on this platform.");
2282 wxPyEndBlockThreads(blocked);
2283 }
2284 wxPoint GetPosition() { return wxPoint(-1,-1); }
2285 int GetZPosition() { return -1; }
2286 int GetButtonState() { return -1; }
2287 int GetPOVPosition() { return -1; }
2288 int GetPOVCTSPosition() { return -1; }
2289 int GetRudderPosition() { return -1; }
2290 int GetUPosition() { return -1; }
2291 int GetVPosition() { return -1; }
2292 int GetMovementThreshold() { return -1; }
2293 void SetMovementThreshold(int threshold) {}
2294
2295 bool IsOk(void) { return false; }
2296 int GetNumberJoysticks() { return -1; }
2297 int GetManufacturerId() { return -1; }
2298 int GetProductId() { return -1; }
2299 wxString GetProductName() { return wxEmptyString; }
2300 int GetXMin() { return -1; }
2301 int GetYMin() { return -1; }
2302 int GetZMin() { return -1; }
2303 int GetXMax() { return -1; }
2304 int GetYMax() { return -1; }
2305 int GetZMax() { return -1; }
2306 int GetNumberButtons() { return -1; }
2307 int GetNumberAxes() { return -1; }
2308 int GetMaxButtons() { return -1; }
2309 int GetMaxAxes() { return -1; }
2310 int GetPollingMin() { return -1; }
2311 int GetPollingMax() { return -1; }
2312 int GetRudderMin() { return -1; }
2313 int GetRudderMax() { return -1; }
2314 int GetUMin() { return -1; }
2315 int GetUMax() { return -1; }
2316 int GetVMin() { return -1; }
2317 int GetVMax() { return -1; }
2318
2319 bool HasRudder() { return false; }
2320 bool HasZ() { return false; }
2321 bool HasU() { return false; }
2322 bool HasV() { return false; }
2323 bool HasPOV() { return false; }
2324 bool HasPOV4Dir() { return false; }
2325 bool HasPOVCTS() { return false; }
2326
2327 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
2328 bool ReleaseCapture() { return false; }
2329 };
2330 #endif
2331
2332
2333 #include <wx/sound.h>
2334
2335
2336 #if !wxUSE_SOUND
2337 // A C++ stub class for wxWave for platforms that don't have it.
2338 class wxSound : public wxObject
2339 {
2340 public:
2341 wxSound() {
2342 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2343 PyErr_SetString(PyExc_NotImplementedError,
2344 "wxSound is not available on this platform.");
2345 wxPyEndBlockThreads(blocked);
2346 }
2347 wxSound(const wxString&/*, bool*/) {
2348 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2349 PyErr_SetString(PyExc_NotImplementedError,
2350 "wxSound is not available on this platform.");
2351 wxPyEndBlockThreads(blocked);
2352 }
2353 wxSound(int, const wxByte*) {
2354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2355 PyErr_SetString(PyExc_NotImplementedError,
2356 "wxSound is not available on this platform.");
2357 wxPyEndBlockThreads(blocked);
2358 }
2359
2360 ~wxSound() {};
2361
2362 bool Create(const wxString&/*, bool*/) { return false; }
2363 bool Create(int, const wxByte*) { return false; };
2364 bool IsOk() { return false; };
2365 bool Play(unsigned) const { return false; }
2366 static bool Play(const wxString&, unsigned) { return false; }
2367 static void Stop() {}
2368 };
2369
2370 #endif
2371
2372 static wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){
2373 if (fileName.Length() == 0)
2374 return new wxSound;
2375 else
2376 return new wxSound(fileName);
2377 }
2378 static wxSound *new_wxSound(PyObject *data){
2379 unsigned char* buffer; int size;
2380 wxSound *sound = NULL;
2381
2382 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2383 if (!PyArg_Parse(data, "t#", &buffer, &size))
2384 goto done;
2385 sound = new wxSound(size, buffer);
2386 done:
2387 wxPyEndBlockThreads(blocked);
2388 return sound;
2389 }
2390 static bool wxSound_CreateFromData(wxSound *self,PyObject *data){
2391 #ifndef __WXMAC__
2392 unsigned char* buffer;
2393 int size;
2394 bool rv = false;
2395
2396 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2397 if (!PyArg_Parse(data, "t#", &buffer, &size))
2398 goto done;
2399 rv = self->Create(size, buffer);
2400 done:
2401 wxPyEndBlockThreads(blocked);
2402 return rv;
2403 #else
2404 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2405 PyErr_SetString(PyExc_NotImplementedError,
2406 "Create from data is not available on this platform.");
2407 wxPyEndBlockThreads(blocked);
2408 return false;
2409 #endif
2410 }
2411
2412 #include <wx/mimetype.h>
2413
2414 static PyObject *wxFileType_GetMimeType(wxFileType *self){
2415 wxString str;
2416 if (self->GetMimeType(&str))
2417 return wx2PyString(str);
2418 else
2419 RETURN_NONE();
2420 }
2421 static PyObject *wxFileType_GetMimeTypes(wxFileType *self){
2422 wxArrayString arr;
2423 if (self->GetMimeTypes(arr))
2424 return wxArrayString2PyList_helper(arr);
2425 else
2426 RETURN_NONE();
2427 }
2428 static PyObject *wxFileType_GetExtensions(wxFileType *self){
2429 wxArrayString arr;
2430 if (self->GetExtensions(arr))
2431 return wxArrayString2PyList_helper(arr);
2432 else
2433 RETURN_NONE();
2434 }
2435 static wxIcon *wxFileType_GetIcon(wxFileType *self){
2436 wxIconLocation loc;
2437 if (self->GetIcon(&loc))
2438 return new wxIcon(loc);
2439 else
2440 return NULL;
2441 }
2442 static PyObject *wxFileType_GetIconInfo(wxFileType *self){
2443 wxIconLocation loc;
2444 if (self->GetIcon(&loc)) {
2445 wxString iconFile = loc.GetFileName();
2446 int iconIndex = -1;
2447
2448
2449
2450 // Make a tuple and put the values in it
2451 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2452 PyObject* tuple = PyTuple_New(3);
2453 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
2454 wxT("wxIcon"), true));
2455 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
2456 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
2457 wxPyEndBlockThreads(blocked);
2458 return tuple;
2459 }
2460 else
2461 RETURN_NONE();
2462 }
2463 static PyObject *wxFileType_GetDescription(wxFileType *self){
2464 wxString str;
2465 if (self->GetDescription(&str))
2466 return wx2PyString(str);
2467 else
2468 RETURN_NONE();
2469 }
2470 static PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2471 wxString str;
2472 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
2473 return wx2PyString(str);
2474 else
2475 RETURN_NONE();
2476 }
2477 static PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2478 wxString str;
2479 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
2480 return wx2PyString(str);
2481 else
2482 RETURN_NONE();
2483 }
2484 static PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2485 wxArrayString verbs;
2486 wxArrayString commands;
2487 if (self->GetAllCommands(&verbs, &commands,
2488 wxFileType::MessageParameters(filename, mimetype))) {
2489 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2490 PyObject* tuple = PyTuple_New(2);
2491 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
2492 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
2493 wxPyEndBlockThreads(blocked);
2494 return tuple;
2495 }
2496 else
2497 RETURN_NONE();
2498 }
2499 static wxString wxFileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2500 return wxFileType::ExpandCommand(command,
2501 wxFileType::MessageParameters(filename, mimetype));
2502 }
2503 static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
2504 wxArrayString arr;
2505 self->EnumAllFileTypes(arr);
2506 return wxArrayString2PyList_helper(arr);
2507 }
2508
2509 #include <wx/artprov.h>
2510
2511 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
2512 static const wxString wxPyART_MENU(wxART_MENU);
2513 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
2514 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
2515 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
2516 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
2517 static const wxString wxPyART_BUTTON(wxART_BUTTON);
2518 static const wxString wxPyART_OTHER(wxART_OTHER);
2519 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
2520 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
2521 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
2522 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
2523 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
2524 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
2525 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
2526 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
2527 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
2528 static const wxString wxPyART_GO_UP(wxART_GO_UP);
2529 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
2530 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
2531 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
2532 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
2533 static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE);
2534 static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS);
2535 static const wxString wxPyART_PRINT(wxART_PRINT);
2536 static const wxString wxPyART_HELP(wxART_HELP);
2537 static const wxString wxPyART_TIP(wxART_TIP);
2538 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
2539 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
2540 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
2541 static const wxString wxPyART_HARDDISK(wxART_HARDDISK);
2542 static const wxString wxPyART_FLOPPY(wxART_FLOPPY);
2543 static const wxString wxPyART_CDROM(wxART_CDROM);
2544 static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE);
2545 static const wxString wxPyART_FOLDER(wxART_FOLDER);
2546 static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN);
2547 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
2548 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
2549 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
2550 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
2551 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
2552 static const wxString wxPyART_ERROR(wxART_ERROR);
2553 static const wxString wxPyART_QUESTION(wxART_QUESTION);
2554 static const wxString wxPyART_WARNING(wxART_WARNING);
2555 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
2556 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
2557 static const wxString wxPyART_COPY(wxART_COPY);
2558 static const wxString wxPyART_CUT(wxART_CUT);
2559 static const wxString wxPyART_PASTE(wxART_PASTE);
2560 static const wxString wxPyART_DELETE(wxART_DELETE);
2561 static const wxString wxPyART_NEW(wxART_NEW);
2562 static const wxString wxPyART_UNDO(wxART_UNDO);
2563 static const wxString wxPyART_REDO(wxART_REDO);
2564 static const wxString wxPyART_QUIT(wxART_QUIT);
2565 static const wxString wxPyART_FIND(wxART_FIND);
2566 static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE);
2567 // Python aware wxArtProvider
2568 class wxPyArtProvider : public wxArtProvider {
2569 public:
2570
2571 virtual wxBitmap CreateBitmap(const wxArtID& id,
2572 const wxArtClient& client,
2573 const wxSize& size) {
2574 wxBitmap rval = wxNullBitmap;
2575 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2576 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
2577 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
2578 PyObject* ro;
2579 wxBitmap* ptr;
2580 PyObject* s1, *s2;
2581 s1 = wx2PyString(id);
2582 s2 = wx2PyString(client);
2583 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
2584 Py_DECREF(so);
2585 Py_DECREF(s1);
2586 Py_DECREF(s2);
2587 if (ro) {
2588 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
2589 rval = *ptr;
2590 Py_DECREF(ro);
2591 }
2592 }
2593 wxPyEndBlockThreads(blocked);
2594 return rval;
2595 }
2596
2597 PYPRIVATE;
2598 };
2599
2600 static void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
2601
2602
2603
2604 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
2605 PyObject* ret = PyTuple_New(3);
2606 if (ret) {
2607 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
2608 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
2609 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
2610 }
2611 return ret;
2612 }
2613
2614 static PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
2615 bool cont;
2616 long index = 0;
2617 wxString value;
2618
2619 cont = self->GetFirstGroup(value, index);
2620 return __EnumerationHelper(cont, value, index);
2621 }
2622 static PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
2623 bool cont;
2624 wxString value;
2625
2626 cont = self->GetNextGroup(value, index);
2627 return __EnumerationHelper(cont, value, index);
2628 }
2629 static PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
2630 bool cont;
2631 long index = 0;
2632 wxString value;
2633
2634 cont = self->GetFirstEntry(value, index);
2635 return __EnumerationHelper(cont, value, index);
2636 }
2637 static PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
2638 bool cont;
2639 wxString value;
2640
2641 cont = self->GetNextEntry(value, index);
2642 return __EnumerationHelper(cont, value, index);
2643 }
2644 static long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){
2645 long rv;
2646 self->Read(key, &rv, defaultVal);
2647 return rv;
2648 }
2649
2650 SWIGINTERN int
2651 SWIG_AsVal_double(PyObject *obj, double* val)
2652 {
2653 if (PyNumber_Check(obj)) {
2654 if (val) *val = PyFloat_AsDouble(obj);
2655 return 1;
2656 }
2657 else {
2658 SWIG_type_error("number", obj);
2659 }
2660 return 0;
2661 }
2662
2663
2664 SWIGINTERNINLINE double
2665 SWIG_As_double(PyObject* obj)
2666 {
2667 double v;
2668 if (!SWIG_AsVal_double(obj, &v)) {
2669 /*
2670 this is needed to make valgrind/purify happier.
2671 */
2672 memset((void*)&v, 0, sizeof(double));
2673 }
2674 return v;
2675 }
2676
2677
2678 SWIGINTERNINLINE int
2679 SWIG_Check_double(PyObject* obj)
2680 {
2681 return SWIG_AsVal_double(obj, (double*)0);
2682 }
2683
2684 static double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){
2685 double rv;
2686 self->Read(key, &rv, defaultVal);
2687 return rv;
2688 }
2689
2690 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2691 #define SWIG_From_double PyFloat_FromDouble
2692 /*@@*/
2693
2694 static bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){
2695 bool rv;
2696 self->Read(key, &rv, defaultVal);
2697 return rv;
2698 }
2699
2700 #include <wx/datetime.h>
2701
2702 static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat);
2703 static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat);
2704
2705 #define LOCAL_TZ wxDateTime::Local
2706
2707 static PyObject *wxDateTime_GetAmPmStrings(){
2708 wxString am;
2709 wxString pm;
2710 wxDateTime::GetAmPmStrings(&am, &pm);
2711 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2712 PyObject* tup = PyTuple_New(2);
2713 PyTuple_SET_ITEM(tup, 0, wx2PyString(am));
2714 PyTuple_SET_ITEM(tup, 1, wx2PyString(pm));
2715 wxPyEndBlockThreads(blocked);
2716 return tup;
2717 }
2718
2719 #if UINT_MAX < LONG_MAX
2720 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2721 #define SWIG_From_unsigned_SS_int SWIG_From_long
2722 /*@@*/
2723 #else
2724 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2725 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
2726 /*@@*/
2727 #endif
2728
2729 static wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
2730 static wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
2731 static wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
2732 static wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
2733 static wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
2734 static bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
2735 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
2736 return (*self < *other);
2737 }
2738 static bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
2739 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
2740 return (*self <= *other);
2741 }
2742 static bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
2743 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
2744 return (*self > *other);
2745 }
2746 static bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
2747 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
2748 return (*self >= *other);
2749 }
2750 static bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
2751 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
2752 return (*self == *other);
2753 }
2754 static bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
2755 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
2756 return (*self != *other);
2757 }
2758 static int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
2759 const wxChar* rv;
2760 const wxChar* _date = date;
2761 rv = self->ParseRfc822Date(_date);
2762 if (rv == NULL) return -1;
2763 return rv - _date;
2764 }
2765 static int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){
2766 const wxChar* rv;
2767 const wxChar* _date = date;
2768 rv = self->ParseFormat(_date, format, dateDef);
2769 if (rv == NULL) return -1;
2770 return rv - _date;
2771 }
2772 static int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
2773 const wxChar* rv;
2774 const wxChar* _datetime = datetime;
2775 rv = self->ParseDateTime(_datetime);
2776 if (rv == NULL) return -1;
2777 return rv - _datetime;
2778 }
2779 static int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
2780 const wxChar* rv;
2781 const wxChar* _date = date;
2782 rv = self->ParseDate(_date);
2783 if (rv == NULL) return -1;
2784 return rv - _date;
2785 }
2786 static int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
2787 const wxChar* rv;
2788 const wxChar* _time = time;
2789 rv = self->ParseTime(_time);
2790 if (rv == NULL) return -1;
2791 return rv - _time;
2792 }
2793 static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
2794 static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
2795 static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
2796 static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
2797 static bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
2798 static bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
2799 static bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
2800 static bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
2801 static bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
2802 static bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
2803 static wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
2804 static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
2805 static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
2806 static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
2807 static bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
2808 static bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
2809
2810 #include <wx/dataobj.h>
2811
2812 static PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){
2813 size_t count = self->GetFormatCount(dir);
2814 wxDataFormat* formats = new wxDataFormat[count];
2815 self->GetAllFormats(formats, dir);
2816
2817 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2818 PyObject* list = PyList_New(count);
2819 for (size_t i=0; i<count; i++) {
2820 wxDataFormat* format = new wxDataFormat(formats[i]);
2821 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
2822 PyList_SET_ITEM(list, i, obj); // PyList_SET_ITEM steals a reference
2823 }
2824 wxPyEndBlockThreads(blocked);
2825 delete [] formats;
2826 return list;
2827 }
2828 static PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
2829 PyObject* rval = NULL;
2830 size_t size = self->GetDataSize(format);
2831 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2832 if (size) {
2833 char* buf = new char[size];
2834 if (self->GetDataHere(format, buf))
2835 rval = PyString_FromStringAndSize(buf, size);
2836 delete [] buf;
2837 }
2838 if (! rval) {
2839 rval = Py_None;
2840 Py_INCREF(rval);
2841 }
2842 wxPyEndBlockThreads(blocked);
2843 return rval;
2844 }
2845 static bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
2846 bool rval;
2847 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2848 if (PyString_Check(data)) {
2849 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
2850 }
2851 else {
2852 // raise a TypeError if not a string
2853 PyErr_SetString(PyExc_TypeError, "String expected.");
2854 rval = false;
2855 }
2856 wxPyEndBlockThreads(blocked);
2857 return rval;
2858 }
2859 static PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
2860 PyObject* rval = NULL;
2861 size_t size = self->GetDataSize();
2862 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2863 if (size) {
2864 char* buf = new char[size];
2865 if (self->GetDataHere(buf))
2866 rval = PyString_FromStringAndSize(buf, size);
2867 delete [] buf;
2868 }
2869 if (! rval) {
2870 rval = Py_None;
2871 Py_INCREF(rval);
2872 }
2873 wxPyEndBlockThreads(blocked);
2874 return rval;
2875 }
2876 static bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
2877 bool rval;
2878 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2879 if (PyString_Check(data)) {
2880 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
2881 }
2882 else {
2883 // raise a TypeError if not a string
2884 PyErr_SetString(PyExc_TypeError, "String expected.");
2885 rval = false;
2886 }
2887 wxPyEndBlockThreads(blocked);
2888 return rval;
2889 }
2890 // Create a new class for wxPython to use
2891 class wxPyDataObjectSimple : public wxDataObjectSimple {
2892 public:
2893 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
2894 : wxDataObjectSimple(format) {}
2895
2896 DEC_PYCALLBACK_SIZET__const(GetDataSize);
2897 bool GetDataHere(void *buf) const;
2898 bool SetData(size_t len, const void *buf) const;
2899 PYPRIVATE;
2900 };
2901
2902 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
2903
2904 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
2905 // We need to get the data for this object and write it to buf. I think
2906 // the best way to do this for wxPython is to have the Python method
2907 // return either a string or None and then act appropriately with the
2908 // C++ version.
2909
2910 bool rval = false;
2911 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2912 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
2913 PyObject* ro;
2914 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
2915 if (ro) {
2916 rval = (ro != Py_None && PyString_Check(ro));
2917 if (rval)
2918 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
2919 Py_DECREF(ro);
2920 }
2921 }
2922 wxPyEndBlockThreads(blocked);
2923 return rval;
2924 }
2925
2926 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
2927 // For this one we simply need to make a string from buf and len
2928 // and send it to the Python method.
2929 bool rval = false;
2930 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2931 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
2932 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
2933 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
2934 Py_DECREF(data);
2935 }
2936 wxPyEndBlockThreads(blocked);
2937 return rval;
2938 }
2939
2940 // Create a new class for wxPython to use
2941 class wxPyTextDataObject : public wxTextDataObject {
2942 public:
2943 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
2944 : wxTextDataObject(text) {}
2945
2946 DEC_PYCALLBACK_SIZET__const(GetTextLength);
2947 DEC_PYCALLBACK_STRING__const(GetText);
2948 DEC_PYCALLBACK__STRING(SetText);
2949 PYPRIVATE;
2950 };
2951
2952 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
2953 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
2954 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
2955
2956
2957 // Create a new class for wxPython to use
2958 class wxPyBitmapDataObject : public wxBitmapDataObject {
2959 public:
2960 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
2961 : wxBitmapDataObject(bitmap) {}
2962
2963 wxBitmap GetBitmap() const;
2964 void SetBitmap(const wxBitmap& bitmap);
2965 PYPRIVATE;
2966 };
2967
2968 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
2969 wxBitmap* rval = &wxNullBitmap;
2970 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2971 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
2972 PyObject* ro;
2973 wxBitmap* ptr;
2974 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
2975 if (ro) {
2976 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
2977 rval = ptr;
2978 Py_DECREF(ro);
2979 }
2980 }
2981 wxPyEndBlockThreads(blocked);
2982 return *rval;
2983 }
2984
2985 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
2986 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2987 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
2988 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
2989 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
2990 Py_DECREF(bo);
2991 }
2992 wxPyEndBlockThreads(blocked);
2993 }
2994
2995 static wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){
2996 return new wxCustomDataObject(wxDataFormat(formatName));
2997 }
2998 static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
2999 bool rval;
3000 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3001 if (PyString_Check(data)) {
3002 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
3003 }
3004 else {
3005 // raise a TypeError if not a string
3006 PyErr_SetString(PyExc_TypeError, "String expected.");
3007 rval = false;
3008 }
3009 wxPyEndBlockThreads(blocked);
3010 return rval;
3011 }
3012 static PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
3013 PyObject* obj;
3014 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3015 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
3016 wxPyEndBlockThreads(blocked);
3017 return obj;
3018 }
3019
3020 #include <wx/metafile.h>
3021
3022
3023 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
3024
3025
3026 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
3027 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
3028 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
3029 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
3030 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
3031
3032
3033 class wxPyTextDropTarget : public wxTextDropTarget {
3034 public:
3035 wxPyTextDropTarget() {}
3036
3037 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
3038
3039 DEC_PYCALLBACK__(OnLeave);
3040 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3041 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3042 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3043 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3044
3045 PYPRIVATE;
3046 };
3047
3048 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
3049 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
3050 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
3051 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
3052 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
3053 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
3054
3055
3056
3057 class wxPyFileDropTarget : public wxFileDropTarget {
3058 public:
3059 wxPyFileDropTarget() {}
3060
3061 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
3062
3063 DEC_PYCALLBACK__(OnLeave);
3064 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3065 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3066 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3067 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3068
3069 PYPRIVATE;
3070 };
3071
3072 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
3073 const wxArrayString& filenames) {
3074 bool rval = false;
3075 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3076 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
3077 PyObject* list = wxArrayString2PyList_helper(filenames);
3078 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
3079 Py_DECREF(list);
3080 }
3081 wxPyEndBlockThreads(blocked);
3082 return rval;
3083 }
3084
3085
3086
3087 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
3088 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
3089 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
3090 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
3091 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
3092
3093
3094
3095
3096 static bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
3097
3098 #include <wx/display.h>
3099
3100 static bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
3101 static bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
3102
3103 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
3104 #if !wxUSE_DISPLAY
3105 #include <wx/dynarray.h>
3106 #include <wx/vidmode.h>
3107
3108 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
3109 #include "wx/arrimpl.cpp"
3110 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
3111 const wxVideoMode wxDefaultVideoMode;
3112
3113 class wxDisplay
3114 {
3115 public:
3116 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
3117 ~wxDisplay() {}
3118
3119 static size_t GetCount()
3120 { wxPyRaiseNotImplemented(); return 0; }
3121
3122 static int GetFromPoint(const wxPoint& pt)
3123 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3124 static int GetFromWindow(wxWindow *window)
3125 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3126
3127 virtual bool IsOk() const { return false; }
3128 virtual wxRect GetGeometry() const { wxRect r; return r; }
3129 virtual wxString GetName() const { return wxEmptyString; }
3130 bool IsPrimary() const { return false; }
3131
3132 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
3133 { wxArrayVideoModes a; return a; }
3134
3135 virtual wxVideoMode GetCurrentMode() const
3136 { return wxDefaultVideoMode; }
3137
3138 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
3139 { return false; }
3140
3141 void ResetMode() {}
3142 };
3143 #endif
3144
3145 static int wxDisplay_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3146 static PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){
3147 PyObject* pyList = NULL;
3148 wxArrayVideoModes arr = self->GetModes(mode);
3149 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3150 pyList = PyList_New(0);
3151 for (int i=0; i < arr.GetCount(); i++) {
3152 wxVideoMode* m = new wxVideoMode(arr.Item(i));
3153 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
3154 PyList_Append(pyList, pyObj);
3155 Py_DECREF(pyObj);
3156 }
3157 wxPyEndBlockThreads(blocked);
3158 return pyList;
3159 }
3160
3161 #include <wx/stdpaths.h>
3162
3163 static wxStandardPaths *wxStandardPaths_Get(){
3164 return (wxStandardPaths*) &wxStandardPaths::Get();
3165 }
3166 static void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){}
3167 static wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; }
3168 #ifdef __cplusplus
3169 extern "C" {
3170 #endif
3171 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3172 PyObject *resultobj = NULL;
3173 wxSystemColour arg1 ;
3174 wxColour result;
3175 PyObject * obj0 = 0 ;
3176 char *kwnames[] = {
3177 (char *) "index", NULL
3178 };
3179
3180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
3181 {
3182 arg1 = static_cast<wxSystemColour >(SWIG_As_int(obj0));
3183 if (SWIG_arg_fail(1)) SWIG_fail;
3184 }
3185 {
3186 if (!wxPyCheckForApp()) SWIG_fail;
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 result = wxSystemSettings::GetColour(arg1);
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 {
3194 wxColour * resultptr;
3195 resultptr = new wxColour(static_cast<wxColour & >(result));
3196 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3197 }
3198 return resultobj;
3199 fail:
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj = NULL;
3206 wxSystemFont arg1 ;
3207 wxFont result;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "index", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
3214 {
3215 arg1 = static_cast<wxSystemFont >(SWIG_As_int(obj0));
3216 if (SWIG_arg_fail(1)) SWIG_fail;
3217 }
3218 {
3219 if (!wxPyCheckForApp()) SWIG_fail;
3220 PyThreadState* __tstate = wxPyBeginAllowThreads();
3221 result = wxSystemSettings::GetFont(arg1);
3222
3223 wxPyEndAllowThreads(__tstate);
3224 if (PyErr_Occurred()) SWIG_fail;
3225 }
3226 {
3227 wxFont * resultptr;
3228 resultptr = new wxFont(static_cast<wxFont & >(result));
3229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
3230 }
3231 return resultobj;
3232 fail:
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj = NULL;
3239 wxSystemMetric arg1 ;
3240 wxWindow *arg2 = (wxWindow *) NULL ;
3241 int result;
3242 PyObject * obj0 = 0 ;
3243 PyObject * obj1 = 0 ;
3244 char *kwnames[] = {
3245 (char *) "index",(char *) "win", NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) goto fail;
3249 {
3250 arg1 = static_cast<wxSystemMetric >(SWIG_As_int(obj0));
3251 if (SWIG_arg_fail(1)) SWIG_fail;
3252 }
3253 if (obj1) {
3254 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
3255 if (SWIG_arg_fail(2)) SWIG_fail;
3256 }
3257 {
3258 if (!wxPyCheckForApp()) SWIG_fail;
3259 PyThreadState* __tstate = wxPyBeginAllowThreads();
3260 result = (int)wxSystemSettings::GetMetric(arg1,arg2);
3261
3262 wxPyEndAllowThreads(__tstate);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 {
3266 resultobj = SWIG_From_int(static_cast<int >(result));
3267 }
3268 return resultobj;
3269 fail:
3270 return NULL;
3271 }
3272
3273
3274 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
3275 PyObject *resultobj = NULL;
3276 wxSystemFeature arg1 ;
3277 bool result;
3278 PyObject * obj0 = 0 ;
3279 char *kwnames[] = {
3280 (char *) "index", NULL
3281 };
3282
3283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
3284 {
3285 arg1 = static_cast<wxSystemFeature >(SWIG_As_int(obj0));
3286 if (SWIG_arg_fail(1)) SWIG_fail;
3287 }
3288 {
3289 if (!wxPyCheckForApp()) SWIG_fail;
3290 PyThreadState* __tstate = wxPyBeginAllowThreads();
3291 result = (bool)wxSystemSettings::HasFeature(arg1);
3292
3293 wxPyEndAllowThreads(__tstate);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 }
3296 {
3297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3298 }
3299 return resultobj;
3300 fail:
3301 return NULL;
3302 }
3303
3304
3305 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
3306 PyObject *resultobj = NULL;
3307 wxSystemScreenType result;
3308 char *kwnames[] = {
3309 NULL
3310 };
3311
3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
3313 {
3314 if (!wxPyCheckForApp()) SWIG_fail;
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 result = (wxSystemScreenType)wxSystemSettings::GetScreenType();
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 }
3321 resultobj = SWIG_From_int((result));
3322 return resultobj;
3323 fail:
3324 return NULL;
3325 }
3326
3327
3328 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj = NULL;
3330 wxSystemScreenType arg1 ;
3331 PyObject * obj0 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "screen", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
3337 {
3338 arg1 = static_cast<wxSystemScreenType >(SWIG_As_int(obj0));
3339 if (SWIG_arg_fail(1)) SWIG_fail;
3340 }
3341 {
3342 if (!wxPyCheckForApp()) SWIG_fail;
3343 PyThreadState* __tstate = wxPyBeginAllowThreads();
3344 wxSystemSettings::SetScreenType(arg1);
3345
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) SWIG_fail;
3348 }
3349 Py_INCREF(Py_None); resultobj = Py_None;
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
3357 PyObject *obj;
3358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3359 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
3360 Py_INCREF(obj);
3361 return Py_BuildValue((char *)"");
3362 }
3363 static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) {
3364 PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
3365 return 1;
3366 }
3367
3368
3369 static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get(void) {
3370 PyObject *pyobj = NULL;
3371
3372 {
3373 #if wxUSE_UNICODE
3374 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
3375 #else
3376 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
3377 #endif
3378 }
3379 return pyobj;
3380 }
3381
3382
3383 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
3384 PyObject *resultobj = NULL;
3385 wxSystemOptions *result;
3386 char *kwnames[] = {
3387 NULL
3388 };
3389
3390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 result = (wxSystemOptions *)new wxSystemOptions();
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
3399 return resultobj;
3400 fail:
3401 return NULL;
3402 }
3403
3404
3405 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
3406 PyObject *resultobj = NULL;
3407 wxString *arg1 = 0 ;
3408 wxString *arg2 = 0 ;
3409 bool temp1 = false ;
3410 bool temp2 = false ;
3411 PyObject * obj0 = 0 ;
3412 PyObject * obj1 = 0 ;
3413 char *kwnames[] = {
3414 (char *) "name",(char *) "value", NULL
3415 };
3416
3417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
3418 {
3419 arg1 = wxString_in_helper(obj0);
3420 if (arg1 == NULL) SWIG_fail;
3421 temp1 = true;
3422 }
3423 {
3424 arg2 = wxString_in_helper(obj1);
3425 if (arg2 == NULL) SWIG_fail;
3426 temp2 = true;
3427 }
3428 {
3429 PyThreadState* __tstate = wxPyBeginAllowThreads();
3430 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
3431
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 Py_INCREF(Py_None); resultobj = Py_None;
3436 {
3437 if (temp1)
3438 delete arg1;
3439 }
3440 {
3441 if (temp2)
3442 delete arg2;
3443 }
3444 return resultobj;
3445 fail:
3446 {
3447 if (temp1)
3448 delete arg1;
3449 }
3450 {
3451 if (temp2)
3452 delete arg2;
3453 }
3454 return NULL;
3455 }
3456
3457
3458 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
3459 PyObject *resultobj = NULL;
3460 wxString *arg1 = 0 ;
3461 int arg2 ;
3462 bool temp1 = false ;
3463 PyObject * obj0 = 0 ;
3464 PyObject * obj1 = 0 ;
3465 char *kwnames[] = {
3466 (char *) "name",(char *) "value", NULL
3467 };
3468
3469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
3470 {
3471 arg1 = wxString_in_helper(obj0);
3472 if (arg1 == NULL) SWIG_fail;
3473 temp1 = true;
3474 }
3475 {
3476 arg2 = static_cast<int >(SWIG_As_int(obj1));
3477 if (SWIG_arg_fail(2)) SWIG_fail;
3478 }
3479 {
3480 PyThreadState* __tstate = wxPyBeginAllowThreads();
3481 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
3482
3483 wxPyEndAllowThreads(__tstate);
3484 if (PyErr_Occurred()) SWIG_fail;
3485 }
3486 Py_INCREF(Py_None); resultobj = Py_None;
3487 {
3488 if (temp1)
3489 delete arg1;
3490 }
3491 return resultobj;
3492 fail:
3493 {
3494 if (temp1)
3495 delete arg1;
3496 }
3497 return NULL;
3498 }
3499
3500
3501 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
3502 PyObject *resultobj = NULL;
3503 wxString *arg1 = 0 ;
3504 wxString result;
3505 bool temp1 = false ;
3506 PyObject * obj0 = 0 ;
3507 char *kwnames[] = {
3508 (char *) "name", NULL
3509 };
3510
3511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
3512 {
3513 arg1 = wxString_in_helper(obj0);
3514 if (arg1 == NULL) SWIG_fail;
3515 temp1 = true;
3516 }
3517 {
3518 PyThreadState* __tstate = wxPyBeginAllowThreads();
3519 result = wxSystemOptions::GetOption((wxString const &)*arg1);
3520
3521 wxPyEndAllowThreads(__tstate);
3522 if (PyErr_Occurred()) SWIG_fail;
3523 }
3524 {
3525 #if wxUSE_UNICODE
3526 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3527 #else
3528 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3529 #endif
3530 }
3531 {
3532 if (temp1)
3533 delete arg1;
3534 }
3535 return resultobj;
3536 fail:
3537 {
3538 if (temp1)
3539 delete arg1;
3540 }
3541 return NULL;
3542 }
3543
3544
3545 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
3546 PyObject *resultobj = NULL;
3547 wxString *arg1 = 0 ;
3548 int result;
3549 bool temp1 = false ;
3550 PyObject * obj0 = 0 ;
3551 char *kwnames[] = {
3552 (char *) "name", NULL
3553 };
3554
3555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
3556 {
3557 arg1 = wxString_in_helper(obj0);
3558 if (arg1 == NULL) SWIG_fail;
3559 temp1 = true;
3560 }
3561 {
3562 PyThreadState* __tstate = wxPyBeginAllowThreads();
3563 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
3564
3565 wxPyEndAllowThreads(__tstate);
3566 if (PyErr_Occurred()) SWIG_fail;
3567 }
3568 {
3569 resultobj = SWIG_From_int(static_cast<int >(result));
3570 }
3571 {
3572 if (temp1)
3573 delete arg1;
3574 }
3575 return resultobj;
3576 fail:
3577 {
3578 if (temp1)
3579 delete arg1;
3580 }
3581 return NULL;
3582 }
3583
3584
3585 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
3586 PyObject *resultobj = NULL;
3587 wxString *arg1 = 0 ;
3588 bool result;
3589 bool temp1 = false ;
3590 PyObject * obj0 = 0 ;
3591 char *kwnames[] = {
3592 (char *) "name", NULL
3593 };
3594
3595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
3596 {
3597 arg1 = wxString_in_helper(obj0);
3598 if (arg1 == NULL) SWIG_fail;
3599 temp1 = true;
3600 }
3601 {
3602 PyThreadState* __tstate = wxPyBeginAllowThreads();
3603 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
3604
3605 wxPyEndAllowThreads(__tstate);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 }
3608 {
3609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3610 }
3611 {
3612 if (temp1)
3613 delete arg1;
3614 }
3615 return resultobj;
3616 fail:
3617 {
3618 if (temp1)
3619 delete arg1;
3620 }
3621 return NULL;
3622 }
3623
3624
3625 static PyObject *_wrap_SystemOptions_IsFalse(PyObject *, PyObject *args, PyObject *kwargs) {
3626 PyObject *resultobj = NULL;
3627 wxString *arg1 = 0 ;
3628 bool result;
3629 bool temp1 = false ;
3630 PyObject * obj0 = 0 ;
3631 char *kwnames[] = {
3632 (char *) "name", NULL
3633 };
3634
3635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) goto fail;
3636 {
3637 arg1 = wxString_in_helper(obj0);
3638 if (arg1 == NULL) SWIG_fail;
3639 temp1 = true;
3640 }
3641 {
3642 PyThreadState* __tstate = wxPyBeginAllowThreads();
3643 result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1);
3644
3645 wxPyEndAllowThreads(__tstate);
3646 if (PyErr_Occurred()) SWIG_fail;
3647 }
3648 {
3649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3650 }
3651 {
3652 if (temp1)
3653 delete arg1;
3654 }
3655 return resultobj;
3656 fail:
3657 {
3658 if (temp1)
3659 delete arg1;
3660 }
3661 return NULL;
3662 }
3663
3664
3665 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
3666 PyObject *obj;
3667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3668 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
3669 Py_INCREF(obj);
3670 return Py_BuildValue((char *)"");
3671 }
3672 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
3673 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
3674 return 1;
3675 }
3676
3677
3678 static PyObject *_wrap_FileSelectorPromptStr_get(void) {
3679 PyObject *pyobj = NULL;
3680
3681 {
3682 #if wxUSE_UNICODE
3683 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
3684 #else
3685 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
3686 #endif
3687 }
3688 return pyobj;
3689 }
3690
3691
3692 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
3693 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
3694 return 1;
3695 }
3696
3697
3698 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get(void) {
3699 PyObject *pyobj = NULL;
3700
3701 {
3702 #if wxUSE_UNICODE
3703 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
3704 #else
3705 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
3706 #endif
3707 }
3708 return pyobj;
3709 }
3710
3711
3712 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
3713 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
3714 return 1;
3715 }
3716
3717
3718 static PyObject *_wrap_DirSelectorPromptStr_get(void) {
3719 PyObject *pyobj = NULL;
3720
3721 {
3722 #if wxUSE_UNICODE
3723 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
3724 #else
3725 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
3726 #endif
3727 }
3728 return pyobj;
3729 }
3730
3731
3732 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
3733 PyObject *resultobj = NULL;
3734 long result;
3735 char *kwnames[] = {
3736 NULL
3737 };
3738
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = (long)wxNewId();
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 {
3748 resultobj = SWIG_From_long(static_cast<long >(result));
3749 }
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj = NULL;
3758 long arg1 ;
3759 PyObject * obj0 = 0 ;
3760 char *kwnames[] = {
3761 (char *) "id", NULL
3762 };
3763
3764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
3765 {
3766 arg1 = static_cast<long >(SWIG_As_long(obj0));
3767 if (SWIG_arg_fail(1)) SWIG_fail;
3768 }
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 wxRegisterId(arg1);
3772
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) SWIG_fail;
3775 }
3776 Py_INCREF(Py_None); resultobj = Py_None;
3777 return resultobj;
3778 fail:
3779 return NULL;
3780 }
3781
3782
3783 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj = NULL;
3785 long result;
3786 char *kwnames[] = {
3787 NULL
3788 };
3789
3790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 result = (long)wxGetCurrentId();
3794
3795 wxPyEndAllowThreads(__tstate);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 }
3798 {
3799 resultobj = SWIG_From_long(static_cast<long >(result));
3800 }
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj = NULL;
3809 int arg1 ;
3810 bool result;
3811 PyObject * obj0 = 0 ;
3812 char *kwnames[] = {
3813 (char *) "id", NULL
3814 };
3815
3816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
3817 {
3818 arg1 = static_cast<int >(SWIG_As_int(obj0));
3819 if (SWIG_arg_fail(1)) SWIG_fail;
3820 }
3821 {
3822 PyThreadState* __tstate = wxPyBeginAllowThreads();
3823 result = (bool)wxIsStockID(arg1);
3824
3825 wxPyEndAllowThreads(__tstate);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 }
3828 {
3829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3830 }
3831 return resultobj;
3832 fail:
3833 return NULL;
3834 }
3835
3836
3837 static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj = NULL;
3839 int arg1 ;
3840 wxString *arg2 = 0 ;
3841 bool result;
3842 bool temp2 = false ;
3843 PyObject * obj0 = 0 ;
3844 PyObject * obj1 = 0 ;
3845 char *kwnames[] = {
3846 (char *) "id",(char *) "label", NULL
3847 };
3848
3849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
3850 {
3851 arg1 = static_cast<int >(SWIG_As_int(obj0));
3852 if (SWIG_arg_fail(1)) SWIG_fail;
3853 }
3854 {
3855 arg2 = wxString_in_helper(obj1);
3856 if (arg2 == NULL) SWIG_fail;
3857 temp2 = true;
3858 }
3859 {
3860 PyThreadState* __tstate = wxPyBeginAllowThreads();
3861 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
3862
3863 wxPyEndAllowThreads(__tstate);
3864 if (PyErr_Occurred()) SWIG_fail;
3865 }
3866 {
3867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3868 }
3869 {
3870 if (temp2)
3871 delete arg2;
3872 }
3873 return resultobj;
3874 fail:
3875 {
3876 if (temp2)
3877 delete arg2;
3878 }
3879 return NULL;
3880 }
3881
3882
3883 static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
3884 PyObject *resultobj = NULL;
3885 int arg1 ;
3886 bool arg2 = (bool) true ;
3887 wxString arg3 = (wxString) wxPyEmptyString ;
3888 wxString result;
3889 PyObject * obj0 = 0 ;
3890 PyObject * obj1 = 0 ;
3891 PyObject * obj2 = 0 ;
3892 char *kwnames[] = {
3893 (char *) "id",(char *) "withCodes",(char *) "accelerator", NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
3897 {
3898 arg1 = static_cast<int >(SWIG_As_int(obj0));
3899 if (SWIG_arg_fail(1)) SWIG_fail;
3900 }
3901 if (obj1) {
3902 {
3903 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
3904 if (SWIG_arg_fail(2)) SWIG_fail;
3905 }
3906 }
3907 if (obj2) {
3908 {
3909 wxString* sptr = wxString_in_helper(obj2);
3910 if (sptr == NULL) SWIG_fail;
3911 arg3 = *sptr;
3912 delete sptr;
3913 }
3914 }
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 result = wxGetStockLabel(arg1,arg2,arg3);
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 {
3923 #if wxUSE_UNICODE
3924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3925 #else
3926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3927 #endif
3928 }
3929 return resultobj;
3930 fail:
3931 return NULL;
3932 }
3933
3934
3935 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
3936 PyObject *resultobj = NULL;
3937 char *kwnames[] = {
3938 NULL
3939 };
3940
3941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
3942 {
3943 if (!wxPyCheckForApp()) SWIG_fail;
3944 PyThreadState* __tstate = wxPyBeginAllowThreads();
3945 wxBell();
3946
3947 wxPyEndAllowThreads(__tstate);
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 Py_INCREF(Py_None); resultobj = Py_None;
3951 return resultobj;
3952 fail:
3953 return NULL;
3954 }
3955
3956
3957 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3958 PyObject *resultobj = NULL;
3959 char *kwnames[] = {
3960 NULL
3961 };
3962
3963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
3964 {
3965 if (!wxPyCheckForApp()) SWIG_fail;
3966 PyThreadState* __tstate = wxPyBeginAllowThreads();
3967 wxEndBusyCursor();
3968
3969 wxPyEndAllowThreads(__tstate);
3970 if (PyErr_Occurred()) SWIG_fail;
3971 }
3972 Py_INCREF(Py_None); resultobj = Py_None;
3973 return resultobj;
3974 fail:
3975 return NULL;
3976 }
3977
3978
3979 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
3980 PyObject *resultobj = NULL;
3981 bool arg1 = (bool) true ;
3982 long result;
3983 PyObject * obj0 = 0 ;
3984 char *kwnames[] = {
3985 (char *) "resetTimer", NULL
3986 };
3987
3988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
3989 if (obj0) {
3990 {
3991 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
3992 if (SWIG_arg_fail(1)) SWIG_fail;
3993 }
3994 }
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 result = (long)wxGetElapsedTime(arg1);
3998
3999 wxPyEndAllowThreads(__tstate);
4000 if (PyErr_Occurred()) SWIG_fail;
4001 }
4002 {
4003 resultobj = SWIG_From_long(static_cast<long >(result));
4004 }
4005 return resultobj;
4006 fail:
4007 return NULL;
4008 }
4009
4010
4011 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
4012 PyObject *resultobj = NULL;
4013 bool result;
4014 char *kwnames[] = {
4015 NULL
4016 };
4017
4018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
4019 {
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (bool)wxIsBusy();
4022
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 {
4027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4028 }
4029 return resultobj;
4030 fail:
4031 return NULL;
4032 }
4033
4034
4035 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
4036 PyObject *resultobj = NULL;
4037 wxString result;
4038 char *kwnames[] = {
4039 NULL
4040 };
4041
4042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 result = wxNow();
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051 #if wxUSE_UNICODE
4052 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4053 #else
4054 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4055 #endif
4056 }
4057 return resultobj;
4058 fail:
4059 return NULL;
4060 }
4061
4062
4063 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
4064 PyObject *resultobj = NULL;
4065 wxString const &arg1_defvalue = wxPyEmptyString ;
4066 wxString *arg1 = (wxString *) &arg1_defvalue ;
4067 bool result;
4068 bool temp1 = false ;
4069 PyObject * obj0 = 0 ;
4070 char *kwnames[] = {
4071 (char *) "command", NULL
4072 };
4073
4074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
4075 if (obj0) {
4076 {
4077 arg1 = wxString_in_helper(obj0);
4078 if (arg1 == NULL) SWIG_fail;
4079 temp1 = true;
4080 }
4081 }
4082 {
4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
4084 result = (bool)wxShell((wxString const &)*arg1);
4085
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 {
4090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4091 }
4092 {
4093 if (temp1)
4094 delete arg1;
4095 }
4096 return resultobj;
4097 fail:
4098 {
4099 if (temp1)
4100 delete arg1;
4101 }
4102 return NULL;
4103 }
4104
4105
4106 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
4107 PyObject *resultobj = NULL;
4108 char *kwnames[] = {
4109 NULL
4110 };
4111
4112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 wxStartTimer();
4116
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 }
4120 Py_INCREF(Py_None); resultobj = Py_None;
4121 return resultobj;
4122 fail:
4123 return NULL;
4124 }
4125
4126
4127 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
4128 PyObject *resultobj = NULL;
4129 int *arg1 = (int *) 0 ;
4130 int *arg2 = (int *) 0 ;
4131 int result;
4132 int temp1 ;
4133 int res1 = 0 ;
4134 int temp2 ;
4135 int res2 = 0 ;
4136 char *kwnames[] = {
4137 NULL
4138 };
4139
4140 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4141 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (int)wxGetOsVersion(arg1,arg2);
4146
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 {
4151 resultobj = SWIG_From_int(static_cast<int >(result));
4152 }
4153 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4154 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4155 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4156 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4157 return resultobj;
4158 fail:
4159 return NULL;
4160 }
4161
4162
4163 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
4164 PyObject *resultobj = NULL;
4165 wxString result;
4166 char *kwnames[] = {
4167 NULL
4168 };
4169
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 result = wxGetOsDescription();
4174
4175 wxPyEndAllowThreads(__tstate);
4176 if (PyErr_Occurred()) SWIG_fail;
4177 }
4178 {
4179 #if wxUSE_UNICODE
4180 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4181 #else
4182 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4183 #endif
4184 }
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj = NULL;
4193 wxMemorySize result;
4194 char *kwnames[] = {
4195 NULL
4196 };
4197
4198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
4199 {
4200 PyThreadState* __tstate = wxPyBeginAllowThreads();
4201 result = wxGetFreeMemory();
4202
4203 wxPyEndAllowThreads(__tstate);
4204 if (PyErr_Occurred()) SWIG_fail;
4205 }
4206 {
4207 wxMemorySize * resultptr;
4208 resultptr = new wxMemorySize(static_cast<wxMemorySize & >(result));
4209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMemorySize, 1);
4210 }
4211 return resultobj;
4212 fail:
4213 return NULL;
4214 }
4215
4216
4217 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
4218 PyObject *resultobj = NULL;
4219 wxShutdownFlags arg1 ;
4220 bool result;
4221 PyObject * obj0 = 0 ;
4222 char *kwnames[] = {
4223 (char *) "wFlags", NULL
4224 };
4225
4226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
4227 {
4228 arg1 = static_cast<wxShutdownFlags >(SWIG_As_int(obj0));
4229 if (SWIG_arg_fail(1)) SWIG_fail;
4230 }
4231 {
4232 if (!wxPyCheckForApp()) SWIG_fail;
4233 PyThreadState* __tstate = wxPyBeginAllowThreads();
4234 result = (bool)wxShutdown(arg1);
4235
4236 wxPyEndAllowThreads(__tstate);
4237 if (PyErr_Occurred()) SWIG_fail;
4238 }
4239 {
4240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4241 }
4242 return resultobj;
4243 fail:
4244 return NULL;
4245 }
4246
4247
4248 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
4249 PyObject *resultobj = NULL;
4250 int arg1 ;
4251 PyObject * obj0 = 0 ;
4252 char *kwnames[] = {
4253 (char *) "secs", NULL
4254 };
4255
4256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
4257 {
4258 arg1 = static_cast<int >(SWIG_As_int(obj0));
4259 if (SWIG_arg_fail(1)) SWIG_fail;
4260 }
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 wxSleep(arg1);
4264
4265 wxPyEndAllowThreads(__tstate);
4266 if (PyErr_Occurred()) SWIG_fail;
4267 }
4268 Py_INCREF(Py_None); resultobj = Py_None;
4269 return resultobj;
4270 fail:
4271 return NULL;
4272 }
4273
4274
4275 static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
4276 PyObject *resultobj = NULL;
4277 unsigned long arg1 ;
4278 PyObject * obj0 = 0 ;
4279 char *kwnames[] = {
4280 (char *) "milliseconds", NULL
4281 };
4282
4283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
4284 {
4285 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
4286 if (SWIG_arg_fail(1)) SWIG_fail;
4287 }
4288 {
4289 PyThreadState* __tstate = wxPyBeginAllowThreads();
4290 wxMilliSleep(arg1);
4291
4292 wxPyEndAllowThreads(__tstate);
4293 if (PyErr_Occurred()) SWIG_fail;
4294 }
4295 Py_INCREF(Py_None); resultobj = Py_None;
4296 return resultobj;
4297 fail:
4298 return NULL;
4299 }
4300
4301
4302 static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
4303 PyObject *resultobj = NULL;
4304 unsigned long arg1 ;
4305 PyObject * obj0 = 0 ;
4306 char *kwnames[] = {
4307 (char *) "microseconds", NULL
4308 };
4309
4310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
4311 {
4312 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
4313 if (SWIG_arg_fail(1)) SWIG_fail;
4314 }
4315 {
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 wxMicroSleep(arg1);
4318
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 Py_INCREF(Py_None); resultobj = Py_None;
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
4330 PyObject *resultobj = NULL;
4331 bool arg1 ;
4332 PyObject * obj0 = 0 ;
4333 char *kwnames[] = {
4334 (char *) "enable", NULL
4335 };
4336
4337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
4338 {
4339 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
4340 if (SWIG_arg_fail(1)) SWIG_fail;
4341 }
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 wxEnableTopLevelWindows(arg1);
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 Py_INCREF(Py_None); resultobj = Py_None;
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj = NULL;
4358 wxString *arg1 = 0 ;
4359 wxString result;
4360 bool temp1 = false ;
4361 PyObject * obj0 = 0 ;
4362 char *kwnames[] = {
4363 (char *) "in", NULL
4364 };
4365
4366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
4367 {
4368 arg1 = wxString_in_helper(obj0);
4369 if (arg1 == NULL) SWIG_fail;
4370 temp1 = true;
4371 }
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 result = wxStripMenuCodes((wxString const &)*arg1);
4375
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 {
4380 #if wxUSE_UNICODE
4381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4382 #else
4383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4384 #endif
4385 }
4386 {
4387 if (temp1)
4388 delete arg1;
4389 }
4390 return resultobj;
4391 fail:
4392 {
4393 if (temp1)
4394 delete arg1;
4395 }
4396 return NULL;
4397 }
4398
4399
4400 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj = NULL;
4402 wxString result;
4403 char *kwnames[] = {
4404 NULL
4405 };
4406
4407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 result = wxGetEmailAddress();
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 {
4416 #if wxUSE_UNICODE
4417 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4418 #else
4419 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4420 #endif
4421 }
4422 return resultobj;
4423 fail:
4424 return NULL;
4425 }
4426
4427
4428 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
4429 PyObject *resultobj = NULL;
4430 wxString result;
4431 char *kwnames[] = {
4432 NULL
4433 };
4434
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
4436 {
4437 PyThreadState* __tstate = wxPyBeginAllowThreads();
4438 result = wxGetHostName();
4439
4440 wxPyEndAllowThreads(__tstate);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 {
4444 #if wxUSE_UNICODE
4445 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4446 #else
4447 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4448 #endif
4449 }
4450 return resultobj;
4451 fail:
4452 return NULL;
4453 }
4454
4455
4456 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
4457 PyObject *resultobj = NULL;
4458 wxString result;
4459 char *kwnames[] = {
4460 NULL
4461 };
4462
4463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 result = wxGetFullHostName();
4467
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 {
4472 #if wxUSE_UNICODE
4473 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4474 #else
4475 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4476 #endif
4477 }
4478 return resultobj;
4479 fail:
4480 return NULL;
4481 }
4482
4483
4484 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
4485 PyObject *resultobj = NULL;
4486 wxString result;
4487 char *kwnames[] = {
4488 NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
4492 {
4493 PyThreadState* __tstate = wxPyBeginAllowThreads();
4494 result = wxGetUserId();
4495
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 {
4500 #if wxUSE_UNICODE
4501 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4502 #else
4503 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4504 #endif
4505 }
4506 return resultobj;
4507 fail:
4508 return NULL;
4509 }
4510
4511
4512 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj = NULL;
4514 wxString result;
4515 char *kwnames[] = {
4516 NULL
4517 };
4518
4519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 result = wxGetUserName();
4523
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 {
4528 #if wxUSE_UNICODE
4529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4530 #else
4531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4532 #endif
4533 }
4534 return resultobj;
4535 fail:
4536 return NULL;
4537 }
4538
4539
4540 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj = NULL;
4542 wxString result;
4543 char *kwnames[] = {
4544 NULL
4545 };
4546
4547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 result = wxGetHomeDir();
4551
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 {
4556 #if wxUSE_UNICODE
4557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4558 #else
4559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4560 #endif
4561 }
4562 return resultobj;
4563 fail:
4564 return NULL;
4565 }
4566
4567
4568 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
4569 PyObject *resultobj = NULL;
4570 wxString const &arg1_defvalue = wxPyEmptyString ;
4571 wxString *arg1 = (wxString *) &arg1_defvalue ;
4572 wxString result;
4573 bool temp1 = false ;
4574 PyObject * obj0 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "user", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
4580 if (obj0) {
4581 {
4582 arg1 = wxString_in_helper(obj0);
4583 if (arg1 == NULL) SWIG_fail;
4584 temp1 = true;
4585 }
4586 }
4587 {
4588 PyThreadState* __tstate = wxPyBeginAllowThreads();
4589 result = wxGetUserHome((wxString const &)*arg1);
4590
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 {
4595 #if wxUSE_UNICODE
4596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4597 #else
4598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4599 #endif
4600 }
4601 {
4602 if (temp1)
4603 delete arg1;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp1)
4609 delete arg1;
4610 }
4611 return NULL;
4612 }
4613
4614
4615 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj = NULL;
4617 unsigned long result;
4618 char *kwnames[] = {
4619 NULL
4620 };
4621
4622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
4623 {
4624 PyThreadState* __tstate = wxPyBeginAllowThreads();
4625 result = (unsigned long)wxGetProcessId();
4626
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 {
4631 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
4632 }
4633 return resultobj;
4634 fail:
4635 return NULL;
4636 }
4637
4638
4639 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
4640 PyObject *resultobj = NULL;
4641 char *kwnames[] = {
4642 NULL
4643 };
4644
4645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 wxTrap();
4649
4650 wxPyEndAllowThreads(__tstate);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 Py_INCREF(Py_None); resultobj = Py_None;
4654 return resultobj;
4655 fail:
4656 return NULL;
4657 }
4658
4659
4660 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4661 PyObject *resultobj = NULL;
4662 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
4663 wxString *arg1 = (wxString *) &arg1_defvalue ;
4664 wxString const &arg2_defvalue = wxPyEmptyString ;
4665 wxString *arg2 = (wxString *) &arg2_defvalue ;
4666 wxString const &arg3_defvalue = wxPyEmptyString ;
4667 wxString *arg3 = (wxString *) &arg3_defvalue ;
4668 wxString const &arg4_defvalue = wxPyEmptyString ;
4669 wxString *arg4 = (wxString *) &arg4_defvalue ;
4670 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
4671 wxString *arg5 = (wxString *) &arg5_defvalue ;
4672 int arg6 = (int) 0 ;
4673 wxWindow *arg7 = (wxWindow *) NULL ;
4674 int arg8 = (int) -1 ;
4675 int arg9 = (int) -1 ;
4676 wxString result;
4677 bool temp1 = false ;
4678 bool temp2 = false ;
4679 bool temp3 = false ;
4680 bool temp4 = false ;
4681 bool temp5 = false ;
4682 PyObject * obj0 = 0 ;
4683 PyObject * obj1 = 0 ;
4684 PyObject * obj2 = 0 ;
4685 PyObject * obj3 = 0 ;
4686 PyObject * obj4 = 0 ;
4687 PyObject * obj5 = 0 ;
4688 PyObject * obj6 = 0 ;
4689 PyObject * obj7 = 0 ;
4690 PyObject * obj8 = 0 ;
4691 char *kwnames[] = {
4692 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
4693 };
4694
4695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4696 if (obj0) {
4697 {
4698 arg1 = wxString_in_helper(obj0);
4699 if (arg1 == NULL) SWIG_fail;
4700 temp1 = true;
4701 }
4702 }
4703 if (obj1) {
4704 {
4705 arg2 = wxString_in_helper(obj1);
4706 if (arg2 == NULL) SWIG_fail;
4707 temp2 = true;
4708 }
4709 }
4710 if (obj2) {
4711 {
4712 arg3 = wxString_in_helper(obj2);
4713 if (arg3 == NULL) SWIG_fail;
4714 temp3 = true;
4715 }
4716 }
4717 if (obj3) {
4718 {
4719 arg4 = wxString_in_helper(obj3);
4720 if (arg4 == NULL) SWIG_fail;
4721 temp4 = true;
4722 }
4723 }
4724 if (obj4) {
4725 {
4726 arg5 = wxString_in_helper(obj4);
4727 if (arg5 == NULL) SWIG_fail;
4728 temp5 = true;
4729 }
4730 }
4731 if (obj5) {
4732 {
4733 arg6 = static_cast<int >(SWIG_As_int(obj5));
4734 if (SWIG_arg_fail(6)) SWIG_fail;
4735 }
4736 }
4737 if (obj6) {
4738 SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4739 if (SWIG_arg_fail(7)) SWIG_fail;
4740 }
4741 if (obj7) {
4742 {
4743 arg8 = static_cast<int >(SWIG_As_int(obj7));
4744 if (SWIG_arg_fail(8)) SWIG_fail;
4745 }
4746 }
4747 if (obj8) {
4748 {
4749 arg9 = static_cast<int >(SWIG_As_int(obj8));
4750 if (SWIG_arg_fail(9)) SWIG_fail;
4751 }
4752 }
4753 {
4754 if (!wxPyCheckForApp()) SWIG_fail;
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
4757
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 {
4762 #if wxUSE_UNICODE
4763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4764 #else
4765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4766 #endif
4767 }
4768 {
4769 if (temp1)
4770 delete arg1;
4771 }
4772 {
4773 if (temp2)
4774 delete arg2;
4775 }
4776 {
4777 if (temp3)
4778 delete arg3;
4779 }
4780 {
4781 if (temp4)
4782 delete arg4;
4783 }
4784 {
4785 if (temp5)
4786 delete arg5;
4787 }
4788 return resultobj;
4789 fail:
4790 {
4791 if (temp1)
4792 delete arg1;
4793 }
4794 {
4795 if (temp2)
4796 delete arg2;
4797 }
4798 {
4799 if (temp3)
4800 delete arg3;
4801 }
4802 {
4803 if (temp4)
4804 delete arg4;
4805 }
4806 {
4807 if (temp5)
4808 delete arg5;
4809 }
4810 return NULL;
4811 }
4812
4813
4814 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4815 PyObject *resultobj = NULL;
4816 wxString *arg1 = 0 ;
4817 wxString *arg2 = 0 ;
4818 wxString const &arg3_defvalue = wxPyEmptyString ;
4819 wxString *arg3 = (wxString *) &arg3_defvalue ;
4820 wxWindow *arg4 = (wxWindow *) NULL ;
4821 wxString result;
4822 bool temp1 = false ;
4823 bool temp2 = false ;
4824 bool temp3 = false ;
4825 PyObject * obj0 = 0 ;
4826 PyObject * obj1 = 0 ;
4827 PyObject * obj2 = 0 ;
4828 PyObject * obj3 = 0 ;
4829 char *kwnames[] = {
4830 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
4831 };
4832
4833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4834 {
4835 arg1 = wxString_in_helper(obj0);
4836 if (arg1 == NULL) SWIG_fail;
4837 temp1 = true;
4838 }
4839 {
4840 arg2 = wxString_in_helper(obj1);
4841 if (arg2 == NULL) SWIG_fail;
4842 temp2 = true;
4843 }
4844 if (obj2) {
4845 {
4846 arg3 = wxString_in_helper(obj2);
4847 if (arg3 == NULL) SWIG_fail;
4848 temp3 = true;
4849 }
4850 }
4851 if (obj3) {
4852 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4853 if (SWIG_arg_fail(4)) SWIG_fail;
4854 }
4855 {
4856 if (!wxPyCheckForApp()) SWIG_fail;
4857 PyThreadState* __tstate = wxPyBeginAllowThreads();
4858 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
4859
4860 wxPyEndAllowThreads(__tstate);
4861 if (PyErr_Occurred()) SWIG_fail;
4862 }
4863 {
4864 #if wxUSE_UNICODE
4865 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4866 #else
4867 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4868 #endif
4869 }
4870 {
4871 if (temp1)
4872 delete arg1;
4873 }
4874 {
4875 if (temp2)
4876 delete arg2;
4877 }
4878 {
4879 if (temp3)
4880 delete arg3;
4881 }
4882 return resultobj;
4883 fail:
4884 {
4885 if (temp1)
4886 delete arg1;
4887 }
4888 {
4889 if (temp2)
4890 delete arg2;
4891 }
4892 {
4893 if (temp3)
4894 delete arg3;
4895 }
4896 return NULL;
4897 }
4898
4899
4900 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj = NULL;
4902 wxString *arg1 = 0 ;
4903 wxString *arg2 = 0 ;
4904 wxString const &arg3_defvalue = wxPyEmptyString ;
4905 wxString *arg3 = (wxString *) &arg3_defvalue ;
4906 wxWindow *arg4 = (wxWindow *) NULL ;
4907 wxString result;
4908 bool temp1 = false ;
4909 bool temp2 = false ;
4910 bool temp3 = false ;
4911 PyObject * obj0 = 0 ;
4912 PyObject * obj1 = 0 ;
4913 PyObject * obj2 = 0 ;
4914 PyObject * obj3 = 0 ;
4915 char *kwnames[] = {
4916 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
4917 };
4918
4919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4920 {
4921 arg1 = wxString_in_helper(obj0);
4922 if (arg1 == NULL) SWIG_fail;
4923 temp1 = true;
4924 }
4925 {
4926 arg2 = wxString_in_helper(obj1);
4927 if (arg2 == NULL) SWIG_fail;
4928 temp2 = true;
4929 }
4930 if (obj2) {
4931 {
4932 arg3 = wxString_in_helper(obj2);
4933 if (arg3 == NULL) SWIG_fail;
4934 temp3 = true;
4935 }
4936 }
4937 if (obj3) {
4938 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4939 if (SWIG_arg_fail(4)) SWIG_fail;
4940 }
4941 {
4942 if (!wxPyCheckForApp()) SWIG_fail;
4943 PyThreadState* __tstate = wxPyBeginAllowThreads();
4944 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
4945
4946 wxPyEndAllowThreads(__tstate);
4947 if (PyErr_Occurred()) SWIG_fail;
4948 }
4949 {
4950 #if wxUSE_UNICODE
4951 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4952 #else
4953 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4954 #endif
4955 }
4956 {
4957 if (temp1)
4958 delete arg1;
4959 }
4960 {
4961 if (temp2)
4962 delete arg2;
4963 }
4964 {
4965 if (temp3)
4966 delete arg3;
4967 }
4968 return resultobj;
4969 fail:
4970 {
4971 if (temp1)
4972 delete arg1;
4973 }
4974 {
4975 if (temp2)
4976 delete arg2;
4977 }
4978 {
4979 if (temp3)
4980 delete arg3;
4981 }
4982 return NULL;
4983 }
4984
4985
4986 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4987 PyObject *resultobj = NULL;
4988 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
4989 wxString *arg1 = (wxString *) &arg1_defvalue ;
4990 wxString const &arg2_defvalue = wxPyEmptyString ;
4991 wxString *arg2 = (wxString *) &arg2_defvalue ;
4992 long arg3 = (long) wxDD_DEFAULT_STYLE ;
4993 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4994 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4995 wxWindow *arg5 = (wxWindow *) NULL ;
4996 wxString result;
4997 bool temp1 = false ;
4998 bool temp2 = false ;
4999 wxPoint temp4 ;
5000 PyObject * obj0 = 0 ;
5001 PyObject * obj1 = 0 ;
5002 PyObject * obj2 = 0 ;
5003 PyObject * obj3 = 0 ;
5004 PyObject * obj4 = 0 ;
5005 char *kwnames[] = {
5006 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
5007 };
5008
5009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5010 if (obj0) {
5011 {
5012 arg1 = wxString_in_helper(obj0);
5013 if (arg1 == NULL) SWIG_fail;
5014 temp1 = true;
5015 }
5016 }
5017 if (obj1) {
5018 {
5019 arg2 = wxString_in_helper(obj1);
5020 if (arg2 == NULL) SWIG_fail;
5021 temp2 = true;
5022 }
5023 }
5024 if (obj2) {
5025 {
5026 arg3 = static_cast<long >(SWIG_As_long(obj2));
5027 if (SWIG_arg_fail(3)) SWIG_fail;
5028 }
5029 }
5030 if (obj3) {
5031 {
5032 arg4 = &temp4;
5033 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5034 }
5035 }
5036 if (obj4) {
5037 SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5038 if (SWIG_arg_fail(5)) SWIG_fail;
5039 }
5040 {
5041 if (!wxPyCheckForApp()) SWIG_fail;
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
5044
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 {
5049 #if wxUSE_UNICODE
5050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5051 #else
5052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5053 #endif
5054 }
5055 {
5056 if (temp1)
5057 delete arg1;
5058 }
5059 {
5060 if (temp2)
5061 delete arg2;
5062 }
5063 return resultobj;
5064 fail:
5065 {
5066 if (temp1)
5067 delete arg1;
5068 }
5069 {
5070 if (temp2)
5071 delete arg2;
5072 }
5073 return NULL;
5074 }
5075
5076
5077 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj = NULL;
5079 wxString *arg1 = 0 ;
5080 wxString const &arg2_defvalue = wxPyEmptyString ;
5081 wxString *arg2 = (wxString *) &arg2_defvalue ;
5082 wxString const &arg3_defvalue = wxPyEmptyString ;
5083 wxString *arg3 = (wxString *) &arg3_defvalue ;
5084 wxWindow *arg4 = (wxWindow *) NULL ;
5085 int arg5 = (int) -1 ;
5086 int arg6 = (int) -1 ;
5087 bool arg7 = (bool) true ;
5088 wxString result;
5089 bool temp1 = false ;
5090 bool temp2 = false ;
5091 bool temp3 = false ;
5092 PyObject * obj0 = 0 ;
5093 PyObject * obj1 = 0 ;
5094 PyObject * obj2 = 0 ;
5095 PyObject * obj3 = 0 ;
5096 PyObject * obj4 = 0 ;
5097 PyObject * obj5 = 0 ;
5098 PyObject * obj6 = 0 ;
5099 char *kwnames[] = {
5100 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
5101 };
5102
5103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5104 {
5105 arg1 = wxString_in_helper(obj0);
5106 if (arg1 == NULL) SWIG_fail;
5107 temp1 = true;
5108 }
5109 if (obj1) {
5110 {
5111 arg2 = wxString_in_helper(obj1);
5112 if (arg2 == NULL) SWIG_fail;
5113 temp2 = true;
5114 }
5115 }
5116 if (obj2) {
5117 {
5118 arg3 = wxString_in_helper(obj2);
5119 if (arg3 == NULL) SWIG_fail;
5120 temp3 = true;
5121 }
5122 }
5123 if (obj3) {
5124 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5125 if (SWIG_arg_fail(4)) SWIG_fail;
5126 }
5127 if (obj4) {
5128 {
5129 arg5 = static_cast<int >(SWIG_As_int(obj4));
5130 if (SWIG_arg_fail(5)) SWIG_fail;
5131 }
5132 }
5133 if (obj5) {
5134 {
5135 arg6 = static_cast<int >(SWIG_As_int(obj5));
5136 if (SWIG_arg_fail(6)) SWIG_fail;
5137 }
5138 }
5139 if (obj6) {
5140 {
5141 arg7 = static_cast<bool >(SWIG_As_bool(obj6));
5142 if (SWIG_arg_fail(7)) SWIG_fail;
5143 }
5144 }
5145 {
5146 if (!wxPyCheckForApp()) SWIG_fail;
5147 PyThreadState* __tstate = wxPyBeginAllowThreads();
5148 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
5149
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 {
5154 #if wxUSE_UNICODE
5155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5156 #else
5157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5158 #endif
5159 }
5160 {
5161 if (temp1)
5162 delete arg1;
5163 }
5164 {
5165 if (temp2)
5166 delete arg2;
5167 }
5168 {
5169 if (temp3)
5170 delete arg3;
5171 }
5172 return resultobj;
5173 fail:
5174 {
5175 if (temp1)
5176 delete arg1;
5177 }
5178 {
5179 if (temp2)
5180 delete arg2;
5181 }
5182 {
5183 if (temp3)
5184 delete arg3;
5185 }
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj = NULL;
5192 wxString *arg1 = 0 ;
5193 wxString const &arg2_defvalue = wxPyEmptyString ;
5194 wxString *arg2 = (wxString *) &arg2_defvalue ;
5195 wxString const &arg3_defvalue = wxPyEmptyString ;
5196 wxString *arg3 = (wxString *) &arg3_defvalue ;
5197 wxWindow *arg4 = (wxWindow *) NULL ;
5198 wxString result;
5199 bool temp1 = false ;
5200 bool temp2 = false ;
5201 bool temp3 = false ;
5202 PyObject * obj0 = 0 ;
5203 PyObject * obj1 = 0 ;
5204 PyObject * obj2 = 0 ;
5205 PyObject * obj3 = 0 ;
5206 char *kwnames[] = {
5207 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
5208 };
5209
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5211 {
5212 arg1 = wxString_in_helper(obj0);
5213 if (arg1 == NULL) SWIG_fail;
5214 temp1 = true;
5215 }
5216 if (obj1) {
5217 {
5218 arg2 = wxString_in_helper(obj1);
5219 if (arg2 == NULL) SWIG_fail;
5220 temp2 = true;
5221 }
5222 }
5223 if (obj2) {
5224 {
5225 arg3 = wxString_in_helper(obj2);
5226 if (arg3 == NULL) SWIG_fail;
5227 temp3 = true;
5228 }
5229 }
5230 if (obj3) {
5231 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5232 if (SWIG_arg_fail(4)) SWIG_fail;
5233 }
5234 {
5235 if (!wxPyCheckForApp()) SWIG_fail;
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
5238
5239 wxPyEndAllowThreads(__tstate);
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 {
5243 #if wxUSE_UNICODE
5244 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5245 #else
5246 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5247 #endif
5248 }
5249 {
5250 if (temp1)
5251 delete arg1;
5252 }
5253 {
5254 if (temp2)
5255 delete arg2;
5256 }
5257 {
5258 if (temp3)
5259 delete arg3;
5260 }
5261 return resultobj;
5262 fail:
5263 {
5264 if (temp1)
5265 delete arg1;
5266 }
5267 {
5268 if (temp2)
5269 delete arg2;
5270 }
5271 {
5272 if (temp3)
5273 delete arg3;
5274 }
5275 return NULL;
5276 }
5277
5278
5279 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
5280 PyObject *resultobj = NULL;
5281 wxString *arg1 = 0 ;
5282 wxString *arg2 = 0 ;
5283 int arg3 ;
5284 wxString *arg4 = (wxString *) 0 ;
5285 wxWindow *arg5 = (wxWindow *) NULL ;
5286 int arg6 = (int) -1 ;
5287 int arg7 = (int) -1 ;
5288 bool arg8 = (bool) true ;
5289 int arg9 = (int) 150 ;
5290 int arg10 = (int) 200 ;
5291 wxString result;
5292 bool temp1 = false ;
5293 bool temp2 = false ;
5294 PyObject * obj0 = 0 ;
5295 PyObject * obj1 = 0 ;
5296 PyObject * obj2 = 0 ;
5297 PyObject * obj3 = 0 ;
5298 PyObject * obj4 = 0 ;
5299 PyObject * obj5 = 0 ;
5300 PyObject * obj6 = 0 ;
5301 PyObject * obj7 = 0 ;
5302 PyObject * obj8 = 0 ;
5303 char *kwnames[] = {
5304 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
5305 };
5306
5307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5308 {
5309 arg1 = wxString_in_helper(obj0);
5310 if (arg1 == NULL) SWIG_fail;
5311 temp1 = true;
5312 }
5313 {
5314 arg2 = wxString_in_helper(obj1);
5315 if (arg2 == NULL) SWIG_fail;
5316 temp2 = true;
5317 }
5318 {
5319 arg3 = PyList_Size(obj2);
5320 arg4 = wxString_LIST_helper(obj2);
5321 if (arg4 == NULL) SWIG_fail;
5322 }
5323 if (obj3) {
5324 SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5325 if (SWIG_arg_fail(5)) SWIG_fail;
5326 }
5327 if (obj4) {
5328 {
5329 arg6 = static_cast<int >(SWIG_As_int(obj4));
5330 if (SWIG_arg_fail(6)) SWIG_fail;
5331 }
5332 }
5333 if (obj5) {
5334 {
5335 arg7 = static_cast<int >(SWIG_As_int(obj5));
5336 if (SWIG_arg_fail(7)) SWIG_fail;
5337 }
5338 }
5339 if (obj6) {
5340 {
5341 arg8 = static_cast<bool >(SWIG_As_bool(obj6));
5342 if (SWIG_arg_fail(8)) SWIG_fail;
5343 }
5344 }
5345 if (obj7) {
5346 {
5347 arg9 = static_cast<int >(SWIG_As_int(obj7));
5348 if (SWIG_arg_fail(9)) SWIG_fail;
5349 }
5350 }
5351 if (obj8) {
5352 {
5353 arg10 = static_cast<int >(SWIG_As_int(obj8));
5354 if (SWIG_arg_fail(10)) SWIG_fail;
5355 }
5356 }
5357 {
5358 if (!wxPyCheckForApp()) SWIG_fail;
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5361
5362 wxPyEndAllowThreads(__tstate);
5363 if (PyErr_Occurred()) SWIG_fail;
5364 }
5365 {
5366 #if wxUSE_UNICODE
5367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5368 #else
5369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5370 #endif
5371 }
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 resultobj;
5384 fail:
5385 {
5386 if (temp1)
5387 delete arg1;
5388 }
5389 {
5390 if (temp2)
5391 delete arg2;
5392 }
5393 {
5394 if (arg4) delete [] arg4;
5395 }
5396 return NULL;
5397 }
5398
5399
5400 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
5401 PyObject *resultobj = NULL;
5402 wxString *arg1 = 0 ;
5403 wxString *arg2 = 0 ;
5404 int arg3 ;
5405 wxString *arg4 = (wxString *) 0 ;
5406 wxWindow *arg5 = (wxWindow *) NULL ;
5407 int arg6 = (int) -1 ;
5408 int arg7 = (int) -1 ;
5409 bool arg8 = (bool) true ;
5410 int arg9 = (int) 150 ;
5411 int arg10 = (int) 200 ;
5412 int result;
5413 bool temp1 = false ;
5414 bool temp2 = false ;
5415 PyObject * obj0 = 0 ;
5416 PyObject * obj1 = 0 ;
5417 PyObject * obj2 = 0 ;
5418 PyObject * obj3 = 0 ;
5419 PyObject * obj4 = 0 ;
5420 PyObject * obj5 = 0 ;
5421 PyObject * obj6 = 0 ;
5422 PyObject * obj7 = 0 ;
5423 PyObject * obj8 = 0 ;
5424 char *kwnames[] = {
5425 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
5426 };
5427
5428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5429 {
5430 arg1 = wxString_in_helper(obj0);
5431 if (arg1 == NULL) SWIG_fail;
5432 temp1 = true;
5433 }
5434 {
5435 arg2 = wxString_in_helper(obj1);
5436 if (arg2 == NULL) SWIG_fail;
5437 temp2 = true;
5438 }
5439 {
5440 arg3 = PyList_Size(obj2);
5441 arg4 = wxString_LIST_helper(obj2);
5442 if (arg4 == NULL) SWIG_fail;
5443 }
5444 if (obj3) {
5445 SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5446 if (SWIG_arg_fail(5)) SWIG_fail;
5447 }
5448 if (obj4) {
5449 {
5450 arg6 = static_cast<int >(SWIG_As_int(obj4));
5451 if (SWIG_arg_fail(6)) SWIG_fail;
5452 }
5453 }
5454 if (obj5) {
5455 {
5456 arg7 = static_cast<int >(SWIG_As_int(obj5));
5457 if (SWIG_arg_fail(7)) SWIG_fail;
5458 }
5459 }
5460 if (obj6) {
5461 {
5462 arg8 = static_cast<bool >(SWIG_As_bool(obj6));
5463 if (SWIG_arg_fail(8)) SWIG_fail;
5464 }
5465 }
5466 if (obj7) {
5467 {
5468 arg9 = static_cast<int >(SWIG_As_int(obj7));
5469 if (SWIG_arg_fail(9)) SWIG_fail;
5470 }
5471 }
5472 if (obj8) {
5473 {
5474 arg10 = static_cast<int >(SWIG_As_int(obj8));
5475 if (SWIG_arg_fail(10)) SWIG_fail;
5476 }
5477 }
5478 {
5479 if (!wxPyCheckForApp()) SWIG_fail;
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5482
5483 wxPyEndAllowThreads(__tstate);
5484 if (PyErr_Occurred()) SWIG_fail;
5485 }
5486 {
5487 resultobj = SWIG_From_int(static_cast<int >(result));
5488 }
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 resultobj;
5501 fail:
5502 {
5503 if (temp1)
5504 delete arg1;
5505 }
5506 {
5507 if (temp2)
5508 delete arg2;
5509 }
5510 {
5511 if (arg4) delete [] arg4;
5512 }
5513 return NULL;
5514 }
5515
5516
5517 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
5518 PyObject *resultobj = NULL;
5519 wxString *arg1 = 0 ;
5520 wxString const &arg2_defvalue = wxPyEmptyString ;
5521 wxString *arg2 = (wxString *) &arg2_defvalue ;
5522 int arg3 = (int) wxOK|wxCENTRE ;
5523 wxWindow *arg4 = (wxWindow *) NULL ;
5524 int arg5 = (int) -1 ;
5525 int arg6 = (int) -1 ;
5526 int result;
5527 bool temp1 = false ;
5528 bool temp2 = false ;
5529 PyObject * obj0 = 0 ;
5530 PyObject * obj1 = 0 ;
5531 PyObject * obj2 = 0 ;
5532 PyObject * obj3 = 0 ;
5533 PyObject * obj4 = 0 ;
5534 PyObject * obj5 = 0 ;
5535 char *kwnames[] = {
5536 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
5537 };
5538
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5540 {
5541 arg1 = wxString_in_helper(obj0);
5542 if (arg1 == NULL) SWIG_fail;
5543 temp1 = true;
5544 }
5545 if (obj1) {
5546 {
5547 arg2 = wxString_in_helper(obj1);
5548 if (arg2 == NULL) SWIG_fail;
5549 temp2 = true;
5550 }
5551 }
5552 if (obj2) {
5553 {
5554 arg3 = static_cast<int >(SWIG_As_int(obj2));
5555 if (SWIG_arg_fail(3)) SWIG_fail;
5556 }
5557 }
5558 if (obj3) {
5559 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5560 if (SWIG_arg_fail(4)) SWIG_fail;
5561 }
5562 if (obj4) {
5563 {
5564 arg5 = static_cast<int >(SWIG_As_int(obj4));
5565 if (SWIG_arg_fail(5)) SWIG_fail;
5566 }
5567 }
5568 if (obj5) {
5569 {
5570 arg6 = static_cast<int >(SWIG_As_int(obj5));
5571 if (SWIG_arg_fail(6)) SWIG_fail;
5572 }
5573 }
5574 {
5575 if (!wxPyCheckForApp()) SWIG_fail;
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 {
5583 resultobj = SWIG_From_int(static_cast<int >(result));
5584 }
5585 {
5586 if (temp1)
5587 delete arg1;
5588 }
5589 {
5590 if (temp2)
5591 delete arg2;
5592 }
5593 return resultobj;
5594 fail:
5595 {
5596 if (temp1)
5597 delete arg1;
5598 }
5599 {
5600 if (temp2)
5601 delete arg2;
5602 }
5603 return NULL;
5604 }
5605
5606
5607 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
5608 PyObject *resultobj = NULL;
5609 bool result;
5610 char *kwnames[] = {
5611 NULL
5612 };
5613
5614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
5615 {
5616 if (!wxPyCheckForApp()) SWIG_fail;
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (bool)wxColourDisplay();
5619
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 }
5623 {
5624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5625 }
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5633 PyObject *resultobj = NULL;
5634 int result;
5635 char *kwnames[] = {
5636 NULL
5637 };
5638
5639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
5640 {
5641 if (!wxPyCheckForApp()) SWIG_fail;
5642 PyThreadState* __tstate = wxPyBeginAllowThreads();
5643 result = (int)wxDisplayDepth();
5644
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 {
5649 resultobj = SWIG_From_int(static_cast<int >(result));
5650 }
5651 return resultobj;
5652 fail:
5653 return NULL;
5654 }
5655
5656
5657 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj = NULL;
5659 int result;
5660 char *kwnames[] = {
5661 NULL
5662 };
5663
5664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
5665 {
5666 if (!wxPyCheckForApp()) SWIG_fail;
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (int)wxGetDisplayDepth();
5669
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 {
5674 resultobj = SWIG_From_int(static_cast<int >(result));
5675 }
5676 return resultobj;
5677 fail:
5678 return NULL;
5679 }
5680
5681
5682 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
5683 PyObject *resultobj = NULL;
5684 int *arg1 = (int *) 0 ;
5685 int *arg2 = (int *) 0 ;
5686 int temp1 ;
5687 int res1 = 0 ;
5688 int temp2 ;
5689 int res2 = 0 ;
5690 char *kwnames[] = {
5691 NULL
5692 };
5693
5694 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5695 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
5697 {
5698 if (!wxPyCheckForApp()) SWIG_fail;
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 wxDisplaySize(arg1,arg2);
5701
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 Py_INCREF(Py_None); resultobj = Py_None;
5706 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5707 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5708 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5709 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5710 return resultobj;
5711 fail:
5712 return NULL;
5713 }
5714
5715
5716 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
5717 PyObject *resultobj = NULL;
5718 wxSize result;
5719 char *kwnames[] = {
5720 NULL
5721 };
5722
5723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
5724 {
5725 if (!wxPyCheckForApp()) SWIG_fail;
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = wxGetDisplaySize();
5728
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 {
5733 wxSize * resultptr;
5734 resultptr = new wxSize(static_cast<wxSize & >(result));
5735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5736 }
5737 return resultobj;
5738 fail:
5739 return NULL;
5740 }
5741
5742
5743 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
5744 PyObject *resultobj = NULL;
5745 int *arg1 = (int *) 0 ;
5746 int *arg2 = (int *) 0 ;
5747 int temp1 ;
5748 int res1 = 0 ;
5749 int temp2 ;
5750 int res2 = 0 ;
5751 char *kwnames[] = {
5752 NULL
5753 };
5754
5755 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5756 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
5758 {
5759 if (!wxPyCheckForApp()) SWIG_fail;
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 wxDisplaySizeMM(arg1,arg2);
5762
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 Py_INCREF(Py_None); resultobj = Py_None;
5767 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5768 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5769 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5770 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj = NULL;
5779 wxSize result;
5780 char *kwnames[] = {
5781 NULL
5782 };
5783
5784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
5785 {
5786 if (!wxPyCheckForApp()) SWIG_fail;
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 result = wxGetDisplaySizeMM();
5789
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 {
5794 wxSize * resultptr;
5795 resultptr = new wxSize(static_cast<wxSize & >(result));
5796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5797 }
5798 return resultobj;
5799 fail:
5800 return NULL;
5801 }
5802
5803
5804 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
5805 PyObject *resultobj = NULL;
5806 int *arg1 = (int *) 0 ;
5807 int *arg2 = (int *) 0 ;
5808 int *arg3 = (int *) 0 ;
5809 int *arg4 = (int *) 0 ;
5810 int temp1 ;
5811 int res1 = 0 ;
5812 int temp2 ;
5813 int res2 = 0 ;
5814 int temp3 ;
5815 int res3 = 0 ;
5816 int temp4 ;
5817 int res4 = 0 ;
5818 char *kwnames[] = {
5819 NULL
5820 };
5821
5822 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5823 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5824 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5825 arg4 = &temp4; res4 = SWIG_NEWOBJ;
5826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
5827 {
5828 if (!wxPyCheckForApp()) SWIG_fail;
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 wxClientDisplayRect(arg1,arg2,arg3,arg4);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 Py_INCREF(Py_None); resultobj = Py_None;
5836 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5837 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5838 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5839 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5840 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5841 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5842 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
5843 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
5844 return resultobj;
5845 fail:
5846 return NULL;
5847 }
5848
5849
5850 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
5851 PyObject *resultobj = NULL;
5852 wxRect result;
5853 char *kwnames[] = {
5854 NULL
5855 };
5856
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
5858 {
5859 if (!wxPyCheckForApp()) SWIG_fail;
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 result = wxGetClientDisplayRect();
5862
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 {
5867 wxRect * resultptr;
5868 resultptr = new wxRect(static_cast<wxRect & >(result));
5869 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5870 }
5871 return resultobj;
5872 fail:
5873 return NULL;
5874 }
5875
5876
5877 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5878 PyObject *resultobj = NULL;
5879 wxCursor *arg1 = 0 ;
5880 PyObject * obj0 = 0 ;
5881 char *kwnames[] = {
5882 (char *) "cursor", NULL
5883 };
5884
5885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
5886 {
5887 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5888 if (SWIG_arg_fail(1)) SWIG_fail;
5889 if (arg1 == NULL) {
5890 SWIG_null_ref("wxCursor");
5891 }
5892 if (SWIG_arg_fail(1)) SWIG_fail;
5893 }
5894 {
5895 if (!wxPyCheckForApp()) SWIG_fail;
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 wxSetCursor(*arg1);
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 Py_INCREF(Py_None); resultobj = Py_None;
5903 return resultobj;
5904 fail:
5905 return NULL;
5906 }
5907
5908
5909 static PyObject *_wrap_GetXDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj = NULL;
5911 void *result;
5912 char *kwnames[] = {
5913 NULL
5914 };
5915
5916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetXDisplay",kwnames)) goto fail;
5917 {
5918 if (!wxPyCheckForApp()) SWIG_fail;
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 result = (void *)wxGetXDisplay();
5921
5922 wxPyEndAllowThreads(__tstate);
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
5926 return resultobj;
5927 fail:
5928 return NULL;
5929 }
5930
5931
5932 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5933 PyObject *resultobj = NULL;
5934 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5935 PyObject * obj0 = 0 ;
5936 char *kwnames[] = {
5937 (char *) "cursor", NULL
5938 };
5939
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
5941 if (obj0) {
5942 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5943 if (SWIG_arg_fail(1)) SWIG_fail;
5944 }
5945 {
5946 if (!wxPyCheckForApp()) SWIG_fail;
5947 PyThreadState* __tstate = wxPyBeginAllowThreads();
5948 wxBeginBusyCursor(arg1);
5949
5950 wxPyEndAllowThreads(__tstate);
5951 if (PyErr_Occurred()) SWIG_fail;
5952 }
5953 Py_INCREF(Py_None); resultobj = Py_None;
5954 return resultobj;
5955 fail:
5956 return NULL;
5957 }
5958
5959
5960 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
5961 PyObject *resultobj = NULL;
5962 wxPoint result;
5963 char *kwnames[] = {
5964 NULL
5965 };
5966
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
5968 {
5969 if (!wxPyCheckForApp()) SWIG_fail;
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
5971 result = wxGetMousePosition();
5972
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 {
5977 wxPoint * resultptr;
5978 resultptr = new wxPoint(static_cast<wxPoint & >(result));
5979 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5980 }
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject *_wrap_FindWindowAtPointer(PyObject *, PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj = NULL;
5989 wxWindow *result;
5990 char *kwnames[] = {
5991 NULL
5992 };
5993
5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FindWindowAtPointer",kwnames)) goto fail;
5995 {
5996 if (!wxPyCheckForApp()) SWIG_fail;
5997 PyThreadState* __tstate = wxPyBeginAllowThreads();
5998 result = (wxWindow *)FindWindowAtPointer();
5999
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
6003 {
6004 resultobj = wxPyMake_wxObject(result, 0);
6005 }
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj = NULL;
6014 wxWindow *result;
6015 char *kwnames[] = {
6016 NULL
6017 };
6018
6019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
6020 {
6021 if (!wxPyCheckForApp()) SWIG_fail;
6022 PyThreadState* __tstate = wxPyBeginAllowThreads();
6023 result = (wxWindow *)wxGetActiveWindow();
6024
6025 wxPyEndAllowThreads(__tstate);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 }
6028 {
6029 resultobj = wxPyMake_wxObject(result, 0);
6030 }
6031 return resultobj;
6032 fail:
6033 return NULL;
6034 }
6035
6036
6037 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6038 PyObject *resultobj = NULL;
6039 wxPoint *arg1 = 0 ;
6040 wxWindow *result;
6041 wxPoint temp1 ;
6042 PyObject * obj0 = 0 ;
6043 char *kwnames[] = {
6044 (char *) "pt", NULL
6045 };
6046
6047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
6048 {
6049 arg1 = &temp1;
6050 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6051 }
6052 {
6053 if (!wxPyCheckForApp()) SWIG_fail;
6054 PyThreadState* __tstate = wxPyBeginAllowThreads();
6055 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
6056
6057 wxPyEndAllowThreads(__tstate);
6058 if (PyErr_Occurred()) SWIG_fail;
6059 }
6060 {
6061 resultobj = wxPyMake_wxObject(result, 0);
6062 }
6063 return resultobj;
6064 fail:
6065 return NULL;
6066 }
6067
6068
6069 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj = NULL;
6071 wxPoint *arg1 = 0 ;
6072 wxWindow *result;
6073 wxPoint temp1 ;
6074 PyObject * obj0 = 0 ;
6075 char *kwnames[] = {
6076 (char *) "pt", NULL
6077 };
6078
6079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
6080 {
6081 arg1 = &temp1;
6082 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6083 }
6084 {
6085 if (!wxPyCheckForApp()) SWIG_fail;
6086 PyThreadState* __tstate = wxPyBeginAllowThreads();
6087 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
6088
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 {
6093 resultobj = wxPyMake_wxObject(result, 0);
6094 }
6095 return resultobj;
6096 fail:
6097 return NULL;
6098 }
6099
6100
6101 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
6102 PyObject *resultobj = NULL;
6103 wxWindow *arg1 = (wxWindow *) 0 ;
6104 wxWindow *result;
6105 PyObject * obj0 = 0 ;
6106 char *kwnames[] = {
6107 (char *) "win", NULL
6108 };
6109
6110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
6111 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
6112 if (SWIG_arg_fail(1)) SWIG_fail;
6113 {
6114 if (!wxPyCheckForApp()) SWIG_fail;
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = (wxWindow *)wxGetTopLevelParent(arg1);
6117
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 {
6122 resultobj = wxPyMake_wxObject(result, 0);
6123 }
6124 return resultobj;
6125 fail:
6126 return NULL;
6127 }
6128
6129
6130 static PyObject *_wrap_LaunchDefaultBrowser(PyObject *, PyObject *args, PyObject *kwargs) {
6131 PyObject *resultobj = NULL;
6132 wxString *arg1 = 0 ;
6133 bool result;
6134 bool temp1 = false ;
6135 PyObject * obj0 = 0 ;
6136 char *kwnames[] = {
6137 (char *) "url", NULL
6138 };
6139
6140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) goto fail;
6141 {
6142 arg1 = wxString_in_helper(obj0);
6143 if (arg1 == NULL) SWIG_fail;
6144 temp1 = true;
6145 }
6146 {
6147 PyThreadState* __tstate = wxPyBeginAllowThreads();
6148 result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1);
6149
6150 wxPyEndAllowThreads(__tstate);
6151 if (PyErr_Occurred()) SWIG_fail;
6152 }
6153 {
6154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6155 }
6156 {
6157 if (temp1)
6158 delete arg1;
6159 }
6160 return resultobj;
6161 fail:
6162 {
6163 if (temp1)
6164 delete arg1;
6165 }
6166 return NULL;
6167 }
6168
6169
6170 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj = NULL;
6172 wxKeyCode arg1 ;
6173 bool result;
6174 PyObject * obj0 = 0 ;
6175 char *kwnames[] = {
6176 (char *) "key", NULL
6177 };
6178
6179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
6180 {
6181 arg1 = static_cast<wxKeyCode >(SWIG_As_int(obj0));
6182 if (SWIG_arg_fail(1)) SWIG_fail;
6183 }
6184 {
6185 if (!wxPyCheckForApp()) SWIG_fail;
6186 PyThreadState* __tstate = wxPyBeginAllowThreads();
6187 result = (bool)wxGetKeyState(arg1);
6188
6189 wxPyEndAllowThreads(__tstate);
6190 if (PyErr_Occurred()) SWIG_fail;
6191 }
6192 {
6193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6194 }
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 static PyObject *_wrap_new_MouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj = NULL;
6203 wxMouseState *result;
6204 char *kwnames[] = {
6205 NULL
6206 };
6207
6208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MouseState",kwnames)) goto fail;
6209 {
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 result = (wxMouseState *)new wxMouseState();
6212
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseState, 1);
6217 return resultobj;
6218 fail:
6219 return NULL;
6220 }
6221
6222
6223 static PyObject *_wrap_delete_MouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj = NULL;
6225 wxMouseState *arg1 = (wxMouseState *) 0 ;
6226 PyObject * obj0 = 0 ;
6227 char *kwnames[] = {
6228 (char *) "self", NULL
6229 };
6230
6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MouseState",kwnames,&obj0)) goto fail;
6232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6233 if (SWIG_arg_fail(1)) SWIG_fail;
6234 {
6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
6236 delete arg1;
6237
6238 wxPyEndAllowThreads(__tstate);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 Py_INCREF(Py_None); resultobj = Py_None;
6242 return resultobj;
6243 fail:
6244 return NULL;
6245 }
6246
6247
6248 static PyObject *_wrap_MouseState_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
6249 PyObject *resultobj = NULL;
6250 wxMouseState *arg1 = (wxMouseState *) 0 ;
6251 int result;
6252 PyObject * obj0 = 0 ;
6253 char *kwnames[] = {
6254 (char *) "self", NULL
6255 };
6256
6257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetX",kwnames,&obj0)) goto fail;
6258 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6259 if (SWIG_arg_fail(1)) SWIG_fail;
6260 {
6261 PyThreadState* __tstate = wxPyBeginAllowThreads();
6262 result = (int)(arg1)->GetX();
6263
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 {
6268 resultobj = SWIG_From_int(static_cast<int >(result));
6269 }
6270 return resultobj;
6271 fail:
6272 return NULL;
6273 }
6274
6275
6276 static PyObject *_wrap_MouseState_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
6277 PyObject *resultobj = NULL;
6278 wxMouseState *arg1 = (wxMouseState *) 0 ;
6279 int result;
6280 PyObject * obj0 = 0 ;
6281 char *kwnames[] = {
6282 (char *) "self", NULL
6283 };
6284
6285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetY",kwnames,&obj0)) goto fail;
6286 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6287 if (SWIG_arg_fail(1)) SWIG_fail;
6288 {
6289 PyThreadState* __tstate = wxPyBeginAllowThreads();
6290 result = (int)(arg1)->GetY();
6291
6292 wxPyEndAllowThreads(__tstate);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 {
6296 resultobj = SWIG_From_int(static_cast<int >(result));
6297 }
6298 return resultobj;
6299 fail:
6300 return NULL;
6301 }
6302
6303
6304 static PyObject *_wrap_MouseState_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6305 PyObject *resultobj = NULL;
6306 wxMouseState *arg1 = (wxMouseState *) 0 ;
6307 bool result;
6308 PyObject * obj0 = 0 ;
6309 char *kwnames[] = {
6310 (char *) "self", NULL
6311 };
6312
6313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_LeftDown",kwnames,&obj0)) goto fail;
6314 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6315 if (SWIG_arg_fail(1)) SWIG_fail;
6316 {
6317 PyThreadState* __tstate = wxPyBeginAllowThreads();
6318 result = (bool)(arg1)->LeftDown();
6319
6320 wxPyEndAllowThreads(__tstate);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 {
6324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6325 }
6326 return resultobj;
6327 fail:
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_MouseState_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj = NULL;
6334 wxMouseState *arg1 = (wxMouseState *) 0 ;
6335 bool result;
6336 PyObject * obj0 = 0 ;
6337 char *kwnames[] = {
6338 (char *) "self", NULL
6339 };
6340
6341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MiddleDown",kwnames,&obj0)) goto fail;
6342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6343 if (SWIG_arg_fail(1)) SWIG_fail;
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 result = (bool)(arg1)->MiddleDown();
6347
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 {
6352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6353 }
6354 return resultobj;
6355 fail:
6356 return NULL;
6357 }
6358
6359
6360 static PyObject *_wrap_MouseState_RightDown(PyObject *, PyObject *args, PyObject *kwargs) {
6361 PyObject *resultobj = NULL;
6362 wxMouseState *arg1 = (wxMouseState *) 0 ;
6363 bool result;
6364 PyObject * obj0 = 0 ;
6365 char *kwnames[] = {
6366 (char *) "self", NULL
6367 };
6368
6369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_RightDown",kwnames,&obj0)) goto fail;
6370 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6371 if (SWIG_arg_fail(1)) SWIG_fail;
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 result = (bool)(arg1)->RightDown();
6375
6376 wxPyEndAllowThreads(__tstate);
6377 if (PyErr_Occurred()) SWIG_fail;
6378 }
6379 {
6380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6381 }
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 static PyObject *_wrap_MouseState_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
6389 PyObject *resultobj = NULL;
6390 wxMouseState *arg1 = (wxMouseState *) 0 ;
6391 bool result;
6392 PyObject * obj0 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "self", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ControlDown",kwnames,&obj0)) goto fail;
6398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6399 if (SWIG_arg_fail(1)) SWIG_fail;
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 result = (bool)(arg1)->ControlDown();
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 {
6408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6409 }
6410 return resultobj;
6411 fail:
6412 return NULL;
6413 }
6414
6415
6416 static PyObject *_wrap_MouseState_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6417 PyObject *resultobj = NULL;
6418 wxMouseState *arg1 = (wxMouseState *) 0 ;
6419 bool result;
6420 PyObject * obj0 = 0 ;
6421 char *kwnames[] = {
6422 (char *) "self", NULL
6423 };
6424
6425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ShiftDown",kwnames,&obj0)) goto fail;
6426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6427 if (SWIG_arg_fail(1)) SWIG_fail;
6428 {
6429 PyThreadState* __tstate = wxPyBeginAllowThreads();
6430 result = (bool)(arg1)->ShiftDown();
6431
6432 wxPyEndAllowThreads(__tstate);
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 {
6436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6437 }
6438 return resultobj;
6439 fail:
6440 return NULL;
6441 }
6442
6443
6444 static PyObject *_wrap_MouseState_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
6445 PyObject *resultobj = NULL;
6446 wxMouseState *arg1 = (wxMouseState *) 0 ;
6447 bool result;
6448 PyObject * obj0 = 0 ;
6449 char *kwnames[] = {
6450 (char *) "self", NULL
6451 };
6452
6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_AltDown",kwnames,&obj0)) goto fail;
6454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6455 if (SWIG_arg_fail(1)) SWIG_fail;
6456 {
6457 PyThreadState* __tstate = wxPyBeginAllowThreads();
6458 result = (bool)(arg1)->AltDown();
6459
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 {
6464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6465 }
6466 return resultobj;
6467 fail:
6468 return NULL;
6469 }
6470
6471
6472 static PyObject *_wrap_MouseState_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
6473 PyObject *resultobj = NULL;
6474 wxMouseState *arg1 = (wxMouseState *) 0 ;
6475 bool result;
6476 PyObject * obj0 = 0 ;
6477 char *kwnames[] = {
6478 (char *) "self", NULL
6479 };
6480
6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MetaDown",kwnames,&obj0)) goto fail;
6482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6483 if (SWIG_arg_fail(1)) SWIG_fail;
6484 {
6485 PyThreadState* __tstate = wxPyBeginAllowThreads();
6486 result = (bool)(arg1)->MetaDown();
6487
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 {
6492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6493 }
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 static PyObject *_wrap_MouseState_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
6501 PyObject *resultobj = NULL;
6502 wxMouseState *arg1 = (wxMouseState *) 0 ;
6503 bool result;
6504 PyObject * obj0 = 0 ;
6505 char *kwnames[] = {
6506 (char *) "self", NULL
6507 };
6508
6509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_CmdDown",kwnames,&obj0)) goto fail;
6510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6511 if (SWIG_arg_fail(1)) SWIG_fail;
6512 {
6513 PyThreadState* __tstate = wxPyBeginAllowThreads();
6514 result = (bool)(arg1)->CmdDown();
6515
6516 wxPyEndAllowThreads(__tstate);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 {
6520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6521 }
6522 return resultobj;
6523 fail:
6524 return NULL;
6525 }
6526
6527
6528 static PyObject *_wrap_MouseState_SetX(PyObject *, PyObject *args, PyObject *kwargs) {
6529 PyObject *resultobj = NULL;
6530 wxMouseState *arg1 = (wxMouseState *) 0 ;
6531 int arg2 ;
6532 PyObject * obj0 = 0 ;
6533 PyObject * obj1 = 0 ;
6534 char *kwnames[] = {
6535 (char *) "self",(char *) "x", NULL
6536 };
6537
6538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetX",kwnames,&obj0,&obj1)) goto fail;
6539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6540 if (SWIG_arg_fail(1)) SWIG_fail;
6541 {
6542 arg2 = static_cast<int >(SWIG_As_int(obj1));
6543 if (SWIG_arg_fail(2)) SWIG_fail;
6544 }
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->SetX(arg2);
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 Py_INCREF(Py_None); resultobj = Py_None;
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 static PyObject *_wrap_MouseState_SetY(PyObject *, PyObject *args, PyObject *kwargs) {
6560 PyObject *resultobj = NULL;
6561 wxMouseState *arg1 = (wxMouseState *) 0 ;
6562 int arg2 ;
6563 PyObject * obj0 = 0 ;
6564 PyObject * obj1 = 0 ;
6565 char *kwnames[] = {
6566 (char *) "self",(char *) "y", NULL
6567 };
6568
6569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetY",kwnames,&obj0,&obj1)) goto fail;
6570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6571 if (SWIG_arg_fail(1)) SWIG_fail;
6572 {
6573 arg2 = static_cast<int >(SWIG_As_int(obj1));
6574 if (SWIG_arg_fail(2)) SWIG_fail;
6575 }
6576 {
6577 PyThreadState* __tstate = wxPyBeginAllowThreads();
6578 (arg1)->SetY(arg2);
6579
6580 wxPyEndAllowThreads(__tstate);
6581 if (PyErr_Occurred()) SWIG_fail;
6582 }
6583 Py_INCREF(Py_None); resultobj = Py_None;
6584 return resultobj;
6585 fail:
6586 return NULL;
6587 }
6588
6589
6590 static PyObject *_wrap_MouseState_SetLeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6591 PyObject *resultobj = NULL;
6592 wxMouseState *arg1 = (wxMouseState *) 0 ;
6593 bool arg2 ;
6594 PyObject * obj0 = 0 ;
6595 PyObject * obj1 = 0 ;
6596 char *kwnames[] = {
6597 (char *) "self",(char *) "down", NULL
6598 };
6599
6600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetLeftDown",kwnames,&obj0,&obj1)) goto fail;
6601 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6602 if (SWIG_arg_fail(1)) SWIG_fail;
6603 {
6604 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6605 if (SWIG_arg_fail(2)) SWIG_fail;
6606 }
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 (arg1)->SetLeftDown(arg2);
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 Py_INCREF(Py_None); resultobj = Py_None;
6615 return resultobj;
6616 fail:
6617 return NULL;
6618 }
6619
6620
6621 static PyObject *_wrap_MouseState_SetMiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj = NULL;
6623 wxMouseState *arg1 = (wxMouseState *) 0 ;
6624 bool arg2 ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 char *kwnames[] = {
6628 (char *) "self",(char *) "down", NULL
6629 };
6630
6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMiddleDown",kwnames,&obj0,&obj1)) goto fail;
6632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6633 if (SWIG_arg_fail(1)) SWIG_fail;
6634 {
6635 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6636 if (SWIG_arg_fail(2)) SWIG_fail;
6637 }
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 (arg1)->SetMiddleDown(arg2);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 Py_INCREF(Py_None); resultobj = Py_None;
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 static PyObject *_wrap_MouseState_SetRightDown(PyObject *, PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj = NULL;
6654 wxMouseState *arg1 = (wxMouseState *) 0 ;
6655 bool arg2 ;
6656 PyObject * obj0 = 0 ;
6657 PyObject * obj1 = 0 ;
6658 char *kwnames[] = {
6659 (char *) "self",(char *) "down", NULL
6660 };
6661
6662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetRightDown",kwnames,&obj0,&obj1)) goto fail;
6663 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6664 if (SWIG_arg_fail(1)) SWIG_fail;
6665 {
6666 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6667 if (SWIG_arg_fail(2)) SWIG_fail;
6668 }
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 (arg1)->SetRightDown(arg2);
6672
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 Py_INCREF(Py_None); resultobj = Py_None;
6677 return resultobj;
6678 fail:
6679 return NULL;
6680 }
6681
6682
6683 static PyObject *_wrap_MouseState_SetControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
6684 PyObject *resultobj = NULL;
6685 wxMouseState *arg1 = (wxMouseState *) 0 ;
6686 bool arg2 ;
6687 PyObject * obj0 = 0 ;
6688 PyObject * obj1 = 0 ;
6689 char *kwnames[] = {
6690 (char *) "self",(char *) "down", NULL
6691 };
6692
6693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetControlDown",kwnames,&obj0,&obj1)) goto fail;
6694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6695 if (SWIG_arg_fail(1)) SWIG_fail;
6696 {
6697 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6698 if (SWIG_arg_fail(2)) SWIG_fail;
6699 }
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 (arg1)->SetControlDown(arg2);
6703
6704 wxPyEndAllowThreads(__tstate);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 Py_INCREF(Py_None); resultobj = Py_None;
6708 return resultobj;
6709 fail:
6710 return NULL;
6711 }
6712
6713
6714 static PyObject *_wrap_MouseState_SetShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj = NULL;
6716 wxMouseState *arg1 = (wxMouseState *) 0 ;
6717 bool arg2 ;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6720 char *kwnames[] = {
6721 (char *) "self",(char *) "down", NULL
6722 };
6723
6724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetShiftDown",kwnames,&obj0,&obj1)) goto fail;
6725 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6726 if (SWIG_arg_fail(1)) SWIG_fail;
6727 {
6728 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6729 if (SWIG_arg_fail(2)) SWIG_fail;
6730 }
6731 {
6732 PyThreadState* __tstate = wxPyBeginAllowThreads();
6733 (arg1)->SetShiftDown(arg2);
6734
6735 wxPyEndAllowThreads(__tstate);
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 Py_INCREF(Py_None); resultobj = Py_None;
6739 return resultobj;
6740 fail:
6741 return NULL;
6742 }
6743
6744
6745 static PyObject *_wrap_MouseState_SetAltDown(PyObject *, PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj = NULL;
6747 wxMouseState *arg1 = (wxMouseState *) 0 ;
6748 bool arg2 ;
6749 PyObject * obj0 = 0 ;
6750 PyObject * obj1 = 0 ;
6751 char *kwnames[] = {
6752 (char *) "self",(char *) "down", NULL
6753 };
6754
6755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetAltDown",kwnames,&obj0,&obj1)) goto fail;
6756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6757 if (SWIG_arg_fail(1)) SWIG_fail;
6758 {
6759 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6760 if (SWIG_arg_fail(2)) SWIG_fail;
6761 }
6762 {
6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
6764 (arg1)->SetAltDown(arg2);
6765
6766 wxPyEndAllowThreads(__tstate);
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 Py_INCREF(Py_None); resultobj = Py_None;
6770 return resultobj;
6771 fail:
6772 return NULL;
6773 }
6774
6775
6776 static PyObject *_wrap_MouseState_SetMetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj = NULL;
6778 wxMouseState *arg1 = (wxMouseState *) 0 ;
6779 bool arg2 ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self",(char *) "down", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMetaDown",kwnames,&obj0,&obj1)) goto fail;
6787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6788 if (SWIG_arg_fail(1)) SWIG_fail;
6789 {
6790 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6791 if (SWIG_arg_fail(2)) SWIG_fail;
6792 }
6793 {
6794 PyThreadState* __tstate = wxPyBeginAllowThreads();
6795 (arg1)->SetMetaDown(arg2);
6796
6797 wxPyEndAllowThreads(__tstate);
6798 if (PyErr_Occurred()) SWIG_fail;
6799 }
6800 Py_INCREF(Py_None); resultobj = Py_None;
6801 return resultobj;
6802 fail:
6803 return NULL;
6804 }
6805
6806
6807 static PyObject * MouseState_swigregister(PyObject *, PyObject *args) {
6808 PyObject *obj;
6809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6810 SWIG_TypeClientData(SWIGTYPE_p_wxMouseState, obj);
6811 Py_INCREF(obj);
6812 return Py_BuildValue((char *)"");
6813 }
6814 static PyObject *_wrap_GetMouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6815 PyObject *resultobj = NULL;
6816 wxMouseState result;
6817 char *kwnames[] = {
6818 NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMouseState",kwnames)) goto fail;
6822 {
6823 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824 result = wxGetMouseState();
6825
6826 wxPyEndAllowThreads(__tstate);
6827 if (PyErr_Occurred()) SWIG_fail;
6828 }
6829 {
6830 wxMouseState * resultptr;
6831 resultptr = new wxMouseState(static_cast<wxMouseState & >(result));
6832 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMouseState, 1);
6833 }
6834 return resultobj;
6835 fail:
6836 return NULL;
6837 }
6838
6839
6840 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
6841 PyObject *resultobj = NULL;
6842 char *kwnames[] = {
6843 NULL
6844 };
6845
6846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
6847 {
6848 if (!wxPyCheckForApp()) SWIG_fail;
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 wxWakeUpMainThread();
6851
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 Py_INCREF(Py_None); resultobj = Py_None;
6856 return resultobj;
6857 fail:
6858 return NULL;
6859 }
6860
6861
6862 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
6863 PyObject *resultobj = NULL;
6864 char *kwnames[] = {
6865 NULL
6866 };
6867
6868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
6869 {
6870 if (!wxPyCheckForApp()) SWIG_fail;
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 wxMutexGuiEnter();
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 Py_INCREF(Py_None); resultobj = Py_None;
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj = NULL;
6886 char *kwnames[] = {
6887 NULL
6888 };
6889
6890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 wxMutexGuiLeave();
6895
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 }
6899 Py_INCREF(Py_None); resultobj = Py_None;
6900 return resultobj;
6901 fail:
6902 return NULL;
6903 }
6904
6905
6906 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
6907 PyObject *resultobj = NULL;
6908 wxMutexGuiLocker *result;
6909 char *kwnames[] = {
6910 NULL
6911 };
6912
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
6914 {
6915 if (!wxPyCheckForApp()) SWIG_fail;
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj = NULL;
6931 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
6932 PyObject * obj0 = 0 ;
6933 char *kwnames[] = {
6934 (char *) "self", NULL
6935 };
6936
6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
6938 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_EXCEPTION | 0);
6939 if (SWIG_arg_fail(1)) SWIG_fail;
6940 {
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 delete arg1;
6943
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 Py_INCREF(Py_None); resultobj = Py_None;
6948 return resultobj;
6949 fail:
6950 return NULL;
6951 }
6952
6953
6954 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
6955 PyObject *obj;
6956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6957 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
6958 Py_INCREF(obj);
6959 return Py_BuildValue((char *)"");
6960 }
6961 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
6962 PyObject *resultobj = NULL;
6963 bool result;
6964 char *kwnames[] = {
6965 NULL
6966 };
6967
6968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
6969 {
6970 PyThreadState* __tstate = wxPyBeginAllowThreads();
6971 result = (bool)wxThread_IsMain();
6972
6973 wxPyEndAllowThreads(__tstate);
6974 if (PyErr_Occurred()) SWIG_fail;
6975 }
6976 {
6977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6978 }
6979 return resultobj;
6980 fail:
6981 return NULL;
6982 }
6983
6984
6985 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
6986 PyObject *resultobj = NULL;
6987 wxString *arg1 = 0 ;
6988 wxToolTip *result;
6989 bool temp1 = false ;
6990 PyObject * obj0 = 0 ;
6991 char *kwnames[] = {
6992 (char *) "tip", NULL
6993 };
6994
6995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
6996 {
6997 arg1 = wxString_in_helper(obj0);
6998 if (arg1 == NULL) SWIG_fail;
6999 temp1 = true;
7000 }
7001 {
7002 if (!wxPyCheckForApp()) SWIG_fail;
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 {
7010 resultobj = wxPyMake_wxObject(result, 1);
7011 }
7012 {
7013 if (temp1)
7014 delete arg1;
7015 }
7016 return resultobj;
7017 fail:
7018 {
7019 if (temp1)
7020 delete arg1;
7021 }
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj = NULL;
7028 wxToolTip *arg1 = (wxToolTip *) 0 ;
7029 wxString *arg2 = 0 ;
7030 bool temp2 = false ;
7031 PyObject * obj0 = 0 ;
7032 PyObject * obj1 = 0 ;
7033 char *kwnames[] = {
7034 (char *) "self",(char *) "tip", NULL
7035 };
7036
7037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
7038 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7039 if (SWIG_arg_fail(1)) SWIG_fail;
7040 {
7041 arg2 = wxString_in_helper(obj1);
7042 if (arg2 == NULL) SWIG_fail;
7043 temp2 = true;
7044 }
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 (arg1)->SetTip((wxString const &)*arg2);
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 Py_INCREF(Py_None); resultobj = Py_None;
7053 {
7054 if (temp2)
7055 delete arg2;
7056 }
7057 return resultobj;
7058 fail:
7059 {
7060 if (temp2)
7061 delete arg2;
7062 }
7063 return NULL;
7064 }
7065
7066
7067 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = NULL;
7069 wxToolTip *arg1 = (wxToolTip *) 0 ;
7070 wxString result;
7071 PyObject * obj0 = 0 ;
7072 char *kwnames[] = {
7073 (char *) "self", NULL
7074 };
7075
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
7077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7078 if (SWIG_arg_fail(1)) SWIG_fail;
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 result = (arg1)->GetTip();
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 {
7087 #if wxUSE_UNICODE
7088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7089 #else
7090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7091 #endif
7092 }
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj = NULL;
7101 wxToolTip *arg1 = (wxToolTip *) 0 ;
7102 wxWindow *result;
7103 PyObject * obj0 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "self", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
7109 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7110 if (SWIG_arg_fail(1)) SWIG_fail;
7111 {
7112 PyThreadState* __tstate = wxPyBeginAllowThreads();
7113 result = (wxWindow *)(arg1)->GetWindow();
7114
7115 wxPyEndAllowThreads(__tstate);
7116 if (PyErr_Occurred()) SWIG_fail;
7117 }
7118 {
7119 resultobj = wxPyMake_wxObject(result, 0);
7120 }
7121 return resultobj;
7122 fail:
7123 return NULL;
7124 }
7125
7126
7127 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
7128 PyObject *resultobj = NULL;
7129 bool arg1 ;
7130 PyObject * obj0 = 0 ;
7131 char *kwnames[] = {
7132 (char *) "flag", NULL
7133 };
7134
7135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
7136 {
7137 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
7138 if (SWIG_arg_fail(1)) SWIG_fail;
7139 }
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 wxToolTip::Enable(arg1);
7143
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 Py_INCREF(Py_None); resultobj = Py_None;
7148 return resultobj;
7149 fail:
7150 return NULL;
7151 }
7152
7153
7154 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
7155 PyObject *resultobj = NULL;
7156 long arg1 ;
7157 PyObject * obj0 = 0 ;
7158 char *kwnames[] = {
7159 (char *) "milliseconds", NULL
7160 };
7161
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
7163 {
7164 arg1 = static_cast<long >(SWIG_As_long(obj0));
7165 if (SWIG_arg_fail(1)) SWIG_fail;
7166 }
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 wxToolTip::SetDelay(arg1);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 Py_INCREF(Py_None); resultobj = Py_None;
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
7182 PyObject *obj;
7183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7184 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
7185 Py_INCREF(obj);
7186 return Py_BuildValue((char *)"");
7187 }
7188 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
7189 PyObject *resultobj = NULL;
7190 wxWindow *arg1 = (wxWindow *) 0 ;
7191 wxSize *arg2 = 0 ;
7192 wxCaret *result;
7193 wxSize temp2 ;
7194 PyObject * obj0 = 0 ;
7195 PyObject * obj1 = 0 ;
7196 char *kwnames[] = {
7197 (char *) "window",(char *) "size", NULL
7198 };
7199
7200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
7201 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
7202 if (SWIG_arg_fail(1)) SWIG_fail;
7203 {
7204 arg2 = &temp2;
7205 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7206 }
7207 {
7208 if (!wxPyCheckForApp()) SWIG_fail;
7209 PyThreadState* __tstate = wxPyBeginAllowThreads();
7210 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
7211
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj = NULL;
7224 wxCaret *arg1 = (wxCaret *) 0 ;
7225 PyObject * obj0 = 0 ;
7226 char *kwnames[] = {
7227 (char *) "self", NULL
7228 };
7229
7230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Destroy",kwnames,&obj0)) goto fail;
7231 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7232 if (SWIG_arg_fail(1)) SWIG_fail;
7233 {
7234 PyThreadState* __tstate = wxPyBeginAllowThreads();
7235 wxCaret_Destroy(arg1);
7236
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 Py_INCREF(Py_None); resultobj = Py_None;
7241 return resultobj;
7242 fail:
7243 return NULL;
7244 }
7245
7246
7247 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
7248 PyObject *resultobj = NULL;
7249 wxCaret *arg1 = (wxCaret *) 0 ;
7250 bool result;
7251 PyObject * obj0 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self", NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
7257 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7258 if (SWIG_arg_fail(1)) SWIG_fail;
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (bool)(arg1)->IsOk();
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 {
7267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7268 }
7269 return resultobj;
7270 fail:
7271 return NULL;
7272 }
7273
7274
7275 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
7276 PyObject *resultobj = NULL;
7277 wxCaret *arg1 = (wxCaret *) 0 ;
7278 bool result;
7279 PyObject * obj0 = 0 ;
7280 char *kwnames[] = {
7281 (char *) "self", NULL
7282 };
7283
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
7285 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7286 if (SWIG_arg_fail(1)) SWIG_fail;
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 result = (bool)(arg1)->IsVisible();
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 {
7295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7296 }
7297 return resultobj;
7298 fail:
7299 return NULL;
7300 }
7301
7302
7303 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
7304 PyObject *resultobj = NULL;
7305 wxCaret *arg1 = (wxCaret *) 0 ;
7306 wxPoint result;
7307 PyObject * obj0 = 0 ;
7308 char *kwnames[] = {
7309 (char *) "self", NULL
7310 };
7311
7312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
7313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7314 if (SWIG_arg_fail(1)) SWIG_fail;
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 result = (arg1)->GetPosition();
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 {
7323 wxPoint * resultptr;
7324 resultptr = new wxPoint(static_cast<wxPoint & >(result));
7325 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
7326 }
7327 return resultobj;
7328 fail:
7329 return NULL;
7330 }
7331
7332
7333 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
7334 PyObject *resultobj = NULL;
7335 wxCaret *arg1 = (wxCaret *) 0 ;
7336 int *arg2 = (int *) 0 ;
7337 int *arg3 = (int *) 0 ;
7338 int temp2 ;
7339 int res2 = 0 ;
7340 int temp3 ;
7341 int res3 = 0 ;
7342 PyObject * obj0 = 0 ;
7343 char *kwnames[] = {
7344 (char *) "self", NULL
7345 };
7346
7347 arg2 = &temp2; res2 = SWIG_NEWOBJ;
7348 arg3 = &temp3; res3 = SWIG_NEWOBJ;
7349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
7350 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7351 if (SWIG_arg_fail(1)) SWIG_fail;
7352 {
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 (arg1)->GetPosition(arg2,arg3);
7355
7356 wxPyEndAllowThreads(__tstate);
7357 if (PyErr_Occurred()) SWIG_fail;
7358 }
7359 Py_INCREF(Py_None); resultobj = Py_None;
7360 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
7361 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
7362 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
7363 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
7364 return resultobj;
7365 fail:
7366 return NULL;
7367 }
7368
7369
7370 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
7371 PyObject *resultobj = NULL;
7372 wxCaret *arg1 = (wxCaret *) 0 ;
7373 wxSize result;
7374 PyObject * obj0 = 0 ;
7375 char *kwnames[] = {
7376 (char *) "self", NULL
7377 };
7378
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
7380 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7381 if (SWIG_arg_fail(1)) SWIG_fail;
7382 {
7383 PyThreadState* __tstate = wxPyBeginAllowThreads();
7384 result = (arg1)->GetSize();
7385
7386 wxPyEndAllowThreads(__tstate);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 {
7390 wxSize * resultptr;
7391 resultptr = new wxSize(static_cast<wxSize & >(result));
7392 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
7393 }
7394 return resultobj;
7395 fail:
7396 return NULL;
7397 }
7398
7399
7400 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
7401 PyObject *resultobj = NULL;
7402 wxCaret *arg1 = (wxCaret *) 0 ;
7403 int *arg2 = (int *) 0 ;
7404 int *arg3 = (int *) 0 ;
7405 int temp2 ;
7406 int res2 = 0 ;
7407 int temp3 ;
7408 int res3 = 0 ;
7409 PyObject * obj0 = 0 ;
7410 char *kwnames[] = {
7411 (char *) "self", NULL
7412 };
7413
7414 arg2 = &temp2; res2 = SWIG_NEWOBJ;
7415 arg3 = &temp3; res3 = SWIG_NEWOBJ;
7416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
7417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7418 if (SWIG_arg_fail(1)) SWIG_fail;
7419 {
7420 PyThreadState* __tstate = wxPyBeginAllowThreads();
7421 (arg1)->GetSize(arg2,arg3);
7422
7423 wxPyEndAllowThreads(__tstate);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 Py_INCREF(Py_None); resultobj = Py_None;
7427 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
7428 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
7429 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
7430 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
7431 return resultobj;
7432 fail:
7433 return NULL;
7434 }
7435
7436
7437 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7438 PyObject *resultobj = NULL;
7439 wxCaret *arg1 = (wxCaret *) 0 ;
7440 wxWindow *result;
7441 PyObject * obj0 = 0 ;
7442 char *kwnames[] = {
7443 (char *) "self", NULL
7444 };
7445
7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
7447 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7448 if (SWIG_arg_fail(1)) SWIG_fail;
7449 {
7450 PyThreadState* __tstate = wxPyBeginAllowThreads();
7451 result = (wxWindow *)(arg1)->GetWindow();
7452
7453 wxPyEndAllowThreads(__tstate);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 {
7457 resultobj = wxPyMake_wxObject(result, 0);
7458 }
7459 return resultobj;
7460 fail:
7461 return NULL;
7462 }
7463
7464
7465 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
7466 PyObject *resultobj = NULL;
7467 wxCaret *arg1 = (wxCaret *) 0 ;
7468 int arg2 ;
7469 int arg3 ;
7470 PyObject * obj0 = 0 ;
7471 PyObject * obj1 = 0 ;
7472 PyObject * obj2 = 0 ;
7473 char *kwnames[] = {
7474 (char *) "self",(char *) "x",(char *) "y", NULL
7475 };
7476
7477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7478 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7479 if (SWIG_arg_fail(1)) SWIG_fail;
7480 {
7481 arg2 = static_cast<int >(SWIG_As_int(obj1));
7482 if (SWIG_arg_fail(2)) SWIG_fail;
7483 }
7484 {
7485 arg3 = static_cast<int >(SWIG_As_int(obj2));
7486 if (SWIG_arg_fail(3)) SWIG_fail;
7487 }
7488 {
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 (arg1)->Move(arg2,arg3);
7491
7492 wxPyEndAllowThreads(__tstate);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 Py_INCREF(Py_None); resultobj = Py_None;
7496 return resultobj;
7497 fail:
7498 return NULL;
7499 }
7500
7501
7502 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
7503 PyObject *resultobj = NULL;
7504 wxCaret *arg1 = (wxCaret *) 0 ;
7505 wxPoint *arg2 = 0 ;
7506 wxPoint temp2 ;
7507 PyObject * obj0 = 0 ;
7508 PyObject * obj1 = 0 ;
7509 char *kwnames[] = {
7510 (char *) "self",(char *) "pt", NULL
7511 };
7512
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
7514 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7515 if (SWIG_arg_fail(1)) SWIG_fail;
7516 {
7517 arg2 = &temp2;
7518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7519 }
7520 {
7521 PyThreadState* __tstate = wxPyBeginAllowThreads();
7522 (arg1)->Move((wxPoint const &)*arg2);
7523
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 Py_INCREF(Py_None); resultobj = Py_None;
7528 return resultobj;
7529 fail:
7530 return NULL;
7531 }
7532
7533
7534 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
7535 PyObject *resultobj = NULL;
7536 wxCaret *arg1 = (wxCaret *) 0 ;
7537 int arg2 ;
7538 int arg3 ;
7539 PyObject * obj0 = 0 ;
7540 PyObject * obj1 = 0 ;
7541 PyObject * obj2 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "self",(char *) "width",(char *) "height", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
7547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7548 if (SWIG_arg_fail(1)) SWIG_fail;
7549 {
7550 arg2 = static_cast<int >(SWIG_As_int(obj1));
7551 if (SWIG_arg_fail(2)) SWIG_fail;
7552 }
7553 {
7554 arg3 = static_cast<int >(SWIG_As_int(obj2));
7555 if (SWIG_arg_fail(3)) SWIG_fail;
7556 }
7557 {
7558 PyThreadState* __tstate = wxPyBeginAllowThreads();
7559 (arg1)->SetSize(arg2,arg3);
7560
7561 wxPyEndAllowThreads(__tstate);
7562 if (PyErr_Occurred()) SWIG_fail;
7563 }
7564 Py_INCREF(Py_None); resultobj = Py_None;
7565 return resultobj;
7566 fail:
7567 return NULL;
7568 }
7569
7570
7571 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
7572 PyObject *resultobj = NULL;
7573 wxCaret *arg1 = (wxCaret *) 0 ;
7574 wxSize *arg2 = 0 ;
7575 wxSize temp2 ;
7576 PyObject * obj0 = 0 ;
7577 PyObject * obj1 = 0 ;
7578 char *kwnames[] = {
7579 (char *) "self",(char *) "size", NULL
7580 };
7581
7582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
7583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7584 if (SWIG_arg_fail(1)) SWIG_fail;
7585 {
7586 arg2 = &temp2;
7587 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7588 }
7589 {
7590 PyThreadState* __tstate = wxPyBeginAllowThreads();
7591 (arg1)->SetSize((wxSize const &)*arg2);
7592
7593 wxPyEndAllowThreads(__tstate);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 Py_INCREF(Py_None); resultobj = Py_None;
7597 return resultobj;
7598 fail:
7599 return NULL;
7600 }
7601
7602
7603 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
7604 PyObject *resultobj = NULL;
7605 wxCaret *arg1 = (wxCaret *) 0 ;
7606 int arg2 = (int) true ;
7607 PyObject * obj0 = 0 ;
7608 PyObject * obj1 = 0 ;
7609 char *kwnames[] = {
7610 (char *) "self",(char *) "show", NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
7614 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7615 if (SWIG_arg_fail(1)) SWIG_fail;
7616 if (obj1) {
7617 {
7618 arg2 = static_cast<int >(SWIG_As_int(obj1));
7619 if (SWIG_arg_fail(2)) SWIG_fail;
7620 }
7621 }
7622 {
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 (arg1)->Show(arg2);
7625
7626 wxPyEndAllowThreads(__tstate);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 Py_INCREF(Py_None); resultobj = Py_None;
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj = NULL;
7638 wxCaret *arg1 = (wxCaret *) 0 ;
7639 PyObject * obj0 = 0 ;
7640 char *kwnames[] = {
7641 (char *) "self", NULL
7642 };
7643
7644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
7645 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7646 if (SWIG_arg_fail(1)) SWIG_fail;
7647 {
7648 PyThreadState* __tstate = wxPyBeginAllowThreads();
7649 (arg1)->Hide();
7650
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 Py_INCREF(Py_None); resultobj = Py_None;
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj = NULL;
7663 int result;
7664 char *kwnames[] = {
7665 NULL
7666 };
7667
7668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
7669 {
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 result = (int)wxCaret::GetBlinkTime();
7672
7673 wxPyEndAllowThreads(__tstate);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 {
7677 resultobj = SWIG_From_int(static_cast<int >(result));
7678 }
7679 return resultobj;
7680 fail:
7681 return NULL;
7682 }
7683
7684
7685 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
7686 PyObject *resultobj = NULL;
7687 int arg1 ;
7688 PyObject * obj0 = 0 ;
7689 char *kwnames[] = {
7690 (char *) "milliseconds", NULL
7691 };
7692
7693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
7694 {
7695 arg1 = static_cast<int >(SWIG_As_int(obj0));
7696 if (SWIG_arg_fail(1)) SWIG_fail;
7697 }
7698 {
7699 PyThreadState* __tstate = wxPyBeginAllowThreads();
7700 wxCaret::SetBlinkTime(arg1);
7701
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
7705 Py_INCREF(Py_None); resultobj = Py_None;
7706 return resultobj;
7707 fail:
7708 return NULL;
7709 }
7710
7711
7712 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
7713 PyObject *obj;
7714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7715 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
7716 Py_INCREF(obj);
7717 return Py_BuildValue((char *)"");
7718 }
7719 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
7720 PyObject *resultobj = NULL;
7721 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
7722 wxBusyCursor *result;
7723 PyObject * obj0 = 0 ;
7724 char *kwnames[] = {
7725 (char *) "cursor", NULL
7726 };
7727
7728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
7729 if (obj0) {
7730 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
7731 if (SWIG_arg_fail(1)) SWIG_fail;
7732 }
7733 {
7734 if (!wxPyCheckForApp()) SWIG_fail;
7735 PyThreadState* __tstate = wxPyBeginAllowThreads();
7736 result = (wxBusyCursor *)new wxBusyCursor(arg1);
7737
7738 wxPyEndAllowThreads(__tstate);
7739 if (PyErr_Occurred()) SWIG_fail;
7740 }
7741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
7742 return resultobj;
7743 fail:
7744 return NULL;
7745 }
7746
7747
7748 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
7749 PyObject *resultobj = NULL;
7750 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
7751 PyObject * obj0 = 0 ;
7752 char *kwnames[] = {
7753 (char *) "self", NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
7757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_EXCEPTION | 0);
7758 if (SWIG_arg_fail(1)) SWIG_fail;
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 delete arg1;
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 Py_INCREF(Py_None); resultobj = Py_None;
7767 return resultobj;
7768 fail:
7769 return NULL;
7770 }
7771
7772
7773 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
7774 PyObject *obj;
7775 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7776 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
7777 Py_INCREF(obj);
7778 return Py_BuildValue((char *)"");
7779 }
7780 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
7781 PyObject *resultobj = NULL;
7782 wxWindow *arg1 = (wxWindow *) NULL ;
7783 wxWindowDisabler *result;
7784 PyObject * obj0 = 0 ;
7785 char *kwnames[] = {
7786 (char *) "winToSkip", NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
7790 if (obj0) {
7791 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
7792 if (SWIG_arg_fail(1)) SWIG_fail;
7793 }
7794 {
7795 if (!wxPyCheckForApp()) SWIG_fail;
7796 PyThreadState* __tstate = wxPyBeginAllowThreads();
7797 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
7798
7799 wxPyEndAllowThreads(__tstate);
7800 if (PyErr_Occurred()) SWIG_fail;
7801 }
7802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
7803 return resultobj;
7804 fail:
7805 return NULL;
7806 }
7807
7808
7809 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
7810 PyObject *resultobj = NULL;
7811 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
7812 PyObject * obj0 = 0 ;
7813 char *kwnames[] = {
7814 (char *) "self", NULL
7815 };
7816
7817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
7818 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_EXCEPTION | 0);
7819 if (SWIG_arg_fail(1)) SWIG_fail;
7820 {
7821 PyThreadState* __tstate = wxPyBeginAllowThreads();
7822 delete arg1;
7823
7824 wxPyEndAllowThreads(__tstate);
7825 if (PyErr_Occurred()) SWIG_fail;
7826 }
7827 Py_INCREF(Py_None); resultobj = Py_None;
7828 return resultobj;
7829 fail:
7830 return NULL;
7831 }
7832
7833
7834 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
7835 PyObject *obj;
7836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7837 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
7838 Py_INCREF(obj);
7839 return Py_BuildValue((char *)"");
7840 }
7841 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = NULL;
7843 wxString *arg1 = 0 ;
7844 wxBusyInfo *result;
7845 bool temp1 = false ;
7846 PyObject * obj0 = 0 ;
7847 char *kwnames[] = {
7848 (char *) "message", NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
7852 {
7853 arg1 = wxString_in_helper(obj0);
7854 if (arg1 == NULL) SWIG_fail;
7855 temp1 = true;
7856 }
7857 {
7858 if (!wxPyCheckForApp()) SWIG_fail;
7859 PyThreadState* __tstate = wxPyBeginAllowThreads();
7860 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
7861
7862 wxPyEndAllowThreads(__tstate);
7863 if (PyErr_Occurred()) SWIG_fail;
7864 }
7865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
7866 {
7867 if (temp1)
7868 delete arg1;
7869 }
7870 return resultobj;
7871 fail:
7872 {
7873 if (temp1)
7874 delete arg1;
7875 }
7876 return NULL;
7877 }
7878
7879
7880 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7881 PyObject *resultobj = NULL;
7882 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
7883 PyObject * obj0 = 0 ;
7884 char *kwnames[] = {
7885 (char *) "self", NULL
7886 };
7887
7888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
7889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_EXCEPTION | 0);
7890 if (SWIG_arg_fail(1)) SWIG_fail;
7891 {
7892 PyThreadState* __tstate = wxPyBeginAllowThreads();
7893 delete arg1;
7894
7895 wxPyEndAllowThreads(__tstate);
7896 if (PyErr_Occurred()) SWIG_fail;
7897 }
7898 Py_INCREF(Py_None); resultobj = Py_None;
7899 return resultobj;
7900 fail:
7901 return NULL;
7902 }
7903
7904
7905 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
7906 PyObject *obj;
7907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7908 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
7909 Py_INCREF(obj);
7910 return Py_BuildValue((char *)"");
7911 }
7912 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj = NULL;
7914 wxStopWatch *result;
7915 char *kwnames[] = {
7916 NULL
7917 };
7918
7919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 result = (wxStopWatch *)new wxStopWatch();
7923
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
7928 return resultobj;
7929 fail:
7930 return NULL;
7931 }
7932
7933
7934 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj = NULL;
7936 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
7937 long arg2 = (long) 0 ;
7938 PyObject * obj0 = 0 ;
7939 PyObject * obj1 = 0 ;
7940 char *kwnames[] = {
7941 (char *) "self",(char *) "t0", NULL
7942 };
7943
7944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
7945 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
7946 if (SWIG_arg_fail(1)) SWIG_fail;
7947 if (obj1) {
7948 {
7949 arg2 = static_cast<long >(SWIG_As_long(obj1));
7950 if (SWIG_arg_fail(2)) SWIG_fail;
7951 }
7952 }
7953 {
7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
7955 (arg1)->Start(arg2);
7956
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
7960 Py_INCREF(Py_None); resultobj = Py_None;
7961 return resultobj;
7962 fail:
7963 return NULL;
7964 }
7965
7966
7967 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
7968 PyObject *resultobj = NULL;
7969 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
7970 PyObject * obj0 = 0 ;
7971 char *kwnames[] = {
7972 (char *) "self", NULL
7973 };
7974
7975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
7976 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
7977 if (SWIG_arg_fail(1)) SWIG_fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 (arg1)->Pause();
7981
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 Py_INCREF(Py_None); resultobj = Py_None;
7986 return resultobj;
7987 fail:
7988 return NULL;
7989 }
7990
7991
7992 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = NULL;
7994 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
7995 PyObject * obj0 = 0 ;
7996 char *kwnames[] = {
7997 (char *) "self", NULL
7998 };
7999
8000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
8001 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8002 if (SWIG_arg_fail(1)) SWIG_fail;
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 (arg1)->Resume();
8006
8007 wxPyEndAllowThreads(__tstate);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 Py_INCREF(Py_None); resultobj = Py_None;
8011 return resultobj;
8012 fail:
8013 return NULL;
8014 }
8015
8016
8017 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
8018 PyObject *resultobj = NULL;
8019 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
8020 long result;
8021 PyObject * obj0 = 0 ;
8022 char *kwnames[] = {
8023 (char *) "self", NULL
8024 };
8025
8026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
8027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8028 if (SWIG_arg_fail(1)) SWIG_fail;
8029 {
8030 PyThreadState* __tstate = wxPyBeginAllowThreads();
8031 result = (long)((wxStopWatch const *)arg1)->Time();
8032
8033 wxPyEndAllowThreads(__tstate);
8034 if (PyErr_Occurred()) SWIG_fail;
8035 }
8036 {
8037 resultobj = SWIG_From_long(static_cast<long >(result));
8038 }
8039 return resultobj;
8040 fail:
8041 return NULL;
8042 }
8043
8044
8045 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
8046 PyObject *obj;
8047 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8048 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
8049 Py_INCREF(obj);
8050 return Py_BuildValue((char *)"");
8051 }
8052 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj = NULL;
8054 int arg1 = (int) 9 ;
8055 int arg2 = (int) wxID_FILE1 ;
8056 wxFileHistory *result;
8057 PyObject * obj0 = 0 ;
8058 PyObject * obj1 = 0 ;
8059 char *kwnames[] = {
8060 (char *) "maxFiles",(char *) "idBase", NULL
8061 };
8062
8063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
8064 if (obj0) {
8065 {
8066 arg1 = static_cast<int >(SWIG_As_int(obj0));
8067 if (SWIG_arg_fail(1)) SWIG_fail;
8068 }
8069 }
8070 if (obj1) {
8071 {
8072 arg2 = static_cast<int >(SWIG_As_int(obj1));
8073 if (SWIG_arg_fail(2)) SWIG_fail;
8074 }
8075 }
8076 {
8077 PyThreadState* __tstate = wxPyBeginAllowThreads();
8078 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
8079
8080 wxPyEndAllowThreads(__tstate);
8081 if (PyErr_Occurred()) SWIG_fail;
8082 }
8083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
8084 return resultobj;
8085 fail:
8086 return NULL;
8087 }
8088
8089
8090 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8091 PyObject *resultobj = NULL;
8092 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8093 PyObject * obj0 = 0 ;
8094 char *kwnames[] = {
8095 (char *) "self", NULL
8096 };
8097
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
8099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8100 if (SWIG_arg_fail(1)) SWIG_fail;
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 delete arg1;
8104
8105 wxPyEndAllowThreads(__tstate);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 }
8108 Py_INCREF(Py_None); resultobj = Py_None;
8109 return resultobj;
8110 fail:
8111 return NULL;
8112 }
8113
8114
8115 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8116 PyObject *resultobj = NULL;
8117 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8118 wxString *arg2 = 0 ;
8119 bool temp2 = false ;
8120 PyObject * obj0 = 0 ;
8121 PyObject * obj1 = 0 ;
8122 char *kwnames[] = {
8123 (char *) "self",(char *) "file", NULL
8124 };
8125
8126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
8127 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8128 if (SWIG_arg_fail(1)) SWIG_fail;
8129 {
8130 arg2 = wxString_in_helper(obj1);
8131 if (arg2 == NULL) SWIG_fail;
8132 temp2 = true;
8133 }
8134 {
8135 PyThreadState* __tstate = wxPyBeginAllowThreads();
8136 (arg1)->AddFileToHistory((wxString const &)*arg2);
8137
8138 wxPyEndAllowThreads(__tstate);
8139 if (PyErr_Occurred()) SWIG_fail;
8140 }
8141 Py_INCREF(Py_None); resultobj = Py_None;
8142 {
8143 if (temp2)
8144 delete arg2;
8145 }
8146 return resultobj;
8147 fail:
8148 {
8149 if (temp2)
8150 delete arg2;
8151 }
8152 return NULL;
8153 }
8154
8155
8156 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8157 PyObject *resultobj = NULL;
8158 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8159 int arg2 ;
8160 PyObject * obj0 = 0 ;
8161 PyObject * obj1 = 0 ;
8162 char *kwnames[] = {
8163 (char *) "self",(char *) "i", NULL
8164 };
8165
8166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
8167 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8168 if (SWIG_arg_fail(1)) SWIG_fail;
8169 {
8170 arg2 = static_cast<int >(SWIG_As_int(obj1));
8171 if (SWIG_arg_fail(2)) SWIG_fail;
8172 }
8173 {
8174 PyThreadState* __tstate = wxPyBeginAllowThreads();
8175 (arg1)->RemoveFileFromHistory(arg2);
8176
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
8180 Py_INCREF(Py_None); resultobj = Py_None;
8181 return resultobj;
8182 fail:
8183 return NULL;
8184 }
8185
8186
8187 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
8188 PyObject *resultobj = NULL;
8189 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8190 int result;
8191 PyObject * obj0 = 0 ;
8192 char *kwnames[] = {
8193 (char *) "self", NULL
8194 };
8195
8196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
8197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8198 if (SWIG_arg_fail(1)) SWIG_fail;
8199 {
8200 PyThreadState* __tstate = wxPyBeginAllowThreads();
8201 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
8202
8203 wxPyEndAllowThreads(__tstate);
8204 if (PyErr_Occurred()) SWIG_fail;
8205 }
8206 {
8207 resultobj = SWIG_From_int(static_cast<int >(result));
8208 }
8209 return resultobj;
8210 fail:
8211 return NULL;
8212 }
8213
8214
8215 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8216 PyObject *resultobj = NULL;
8217 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8218 wxMenu *arg2 = (wxMenu *) 0 ;
8219 PyObject * obj0 = 0 ;
8220 PyObject * obj1 = 0 ;
8221 char *kwnames[] = {
8222 (char *) "self",(char *) "menu", NULL
8223 };
8224
8225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
8226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8227 if (SWIG_arg_fail(1)) SWIG_fail;
8228 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8229 if (SWIG_arg_fail(2)) SWIG_fail;
8230 {
8231 PyThreadState* __tstate = wxPyBeginAllowThreads();
8232 (arg1)->UseMenu(arg2);
8233
8234 wxPyEndAllowThreads(__tstate);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 Py_INCREF(Py_None); resultobj = Py_None;
8238 return resultobj;
8239 fail:
8240 return NULL;
8241 }
8242
8243
8244 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8245 PyObject *resultobj = NULL;
8246 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8247 wxMenu *arg2 = (wxMenu *) 0 ;
8248 PyObject * obj0 = 0 ;
8249 PyObject * obj1 = 0 ;
8250 char *kwnames[] = {
8251 (char *) "self",(char *) "menu", NULL
8252 };
8253
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
8255 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8256 if (SWIG_arg_fail(1)) SWIG_fail;
8257 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8258 if (SWIG_arg_fail(2)) SWIG_fail;
8259 {
8260 PyThreadState* __tstate = wxPyBeginAllowThreads();
8261 (arg1)->RemoveMenu(arg2);
8262
8263 wxPyEndAllowThreads(__tstate);
8264 if (PyErr_Occurred()) SWIG_fail;
8265 }
8266 Py_INCREF(Py_None); resultobj = Py_None;
8267 return resultobj;
8268 fail:
8269 return NULL;
8270 }
8271
8272
8273 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
8274 PyObject *resultobj = NULL;
8275 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8276 wxConfigBase *arg2 = 0 ;
8277 PyObject * obj0 = 0 ;
8278 PyObject * obj1 = 0 ;
8279 char *kwnames[] = {
8280 (char *) "self",(char *) "config", NULL
8281 };
8282
8283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
8284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8285 if (SWIG_arg_fail(1)) SWIG_fail;
8286 {
8287 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
8288 if (SWIG_arg_fail(2)) SWIG_fail;
8289 if (arg2 == NULL) {
8290 SWIG_null_ref("wxConfigBase");
8291 }
8292 if (SWIG_arg_fail(2)) SWIG_fail;
8293 }
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 (arg1)->Load(*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_Save(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_Save",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)->Save(*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_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8344 PyObject *resultobj = NULL;
8345 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8346 PyObject * obj0 = 0 ;
8347 char *kwnames[] = {
8348 (char *) "self", NULL
8349 };
8350
8351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
8352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8353 if (SWIG_arg_fail(1)) SWIG_fail;
8354 {
8355 PyThreadState* __tstate = wxPyBeginAllowThreads();
8356 (arg1)->AddFilesToMenu();
8357
8358 wxPyEndAllowThreads(__tstate);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 Py_INCREF(Py_None); resultobj = Py_None;
8362 return resultobj;
8363 fail:
8364 return NULL;
8365 }
8366
8367
8368 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj = NULL;
8370 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8371 wxMenu *arg2 = (wxMenu *) 0 ;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 char *kwnames[] = {
8375 (char *) "self",(char *) "menu", NULL
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
8379 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8380 if (SWIG_arg_fail(1)) SWIG_fail;
8381 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8382 if (SWIG_arg_fail(2)) SWIG_fail;
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 (arg1)->AddFilesToMenu(arg2);
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 Py_INCREF(Py_None); resultobj = Py_None;
8391 return resultobj;
8392 fail:
8393 return NULL;
8394 }
8395
8396
8397 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
8398 PyObject *resultobj = NULL;
8399 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8400 int arg2 ;
8401 wxString result;
8402 PyObject * obj0 = 0 ;
8403 PyObject * obj1 = 0 ;
8404 char *kwnames[] = {
8405 (char *) "self",(char *) "i", NULL
8406 };
8407
8408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
8409 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8410 if (SWIG_arg_fail(1)) SWIG_fail;
8411 {
8412 arg2 = static_cast<int >(SWIG_As_int(obj1));
8413 if (SWIG_arg_fail(2)) SWIG_fail;
8414 }
8415 {
8416 PyThreadState* __tstate = wxPyBeginAllowThreads();
8417 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
8418
8419 wxPyEndAllowThreads(__tstate);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 }
8422 {
8423 #if wxUSE_UNICODE
8424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8425 #else
8426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8427 #endif
8428 }
8429 return resultobj;
8430 fail:
8431 return NULL;
8432 }
8433
8434
8435 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
8436 PyObject *resultobj = NULL;
8437 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8438 int result;
8439 PyObject * obj0 = 0 ;
8440 char *kwnames[] = {
8441 (char *) "self", NULL
8442 };
8443
8444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
8445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8446 if (SWIG_arg_fail(1)) SWIG_fail;
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 result = (int)((wxFileHistory const *)arg1)->GetCount();
8450
8451 wxPyEndAllowThreads(__tstate);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 {
8455 resultobj = SWIG_From_int(static_cast<int >(result));
8456 }
8457 return resultobj;
8458 fail:
8459 return NULL;
8460 }
8461
8462
8463 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
8464 PyObject *obj;
8465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8466 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
8467 Py_INCREF(obj);
8468 return Py_BuildValue((char *)"");
8469 }
8470 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8471 PyObject *resultobj = NULL;
8472 wxString *arg1 = 0 ;
8473 wxString const &arg2_defvalue = wxPyEmptyString ;
8474 wxString *arg2 = (wxString *) &arg2_defvalue ;
8475 wxSingleInstanceChecker *result;
8476 bool temp1 = false ;
8477 bool temp2 = false ;
8478 PyObject * obj0 = 0 ;
8479 PyObject * obj1 = 0 ;
8480 char *kwnames[] = {
8481 (char *) "name",(char *) "path", NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
8485 {
8486 arg1 = wxString_in_helper(obj0);
8487 if (arg1 == NULL) SWIG_fail;
8488 temp1 = true;
8489 }
8490 if (obj1) {
8491 {
8492 arg2 = wxString_in_helper(obj1);
8493 if (arg2 == NULL) SWIG_fail;
8494 temp2 = true;
8495 }
8496 }
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
8505 {
8506 if (temp1)
8507 delete arg1;
8508 }
8509 {
8510 if (temp2)
8511 delete arg2;
8512 }
8513 return resultobj;
8514 fail:
8515 {
8516 if (temp1)
8517 delete arg1;
8518 }
8519 {
8520 if (temp2)
8521 delete arg2;
8522 }
8523 return NULL;
8524 }
8525
8526
8527 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8528 PyObject *resultobj = NULL;
8529 wxSingleInstanceChecker *result;
8530 char *kwnames[] = {
8531 NULL
8532 };
8533
8534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
8538
8539 wxPyEndAllowThreads(__tstate);
8540 if (PyErr_Occurred()) SWIG_fail;
8541 }
8542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
8543 return resultobj;
8544 fail:
8545 return NULL;
8546 }
8547
8548
8549 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8550 PyObject *resultobj = NULL;
8551 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8552 PyObject * obj0 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "self", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
8558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8559 if (SWIG_arg_fail(1)) SWIG_fail;
8560 {
8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
8562 delete arg1;
8563
8564 wxPyEndAllowThreads(__tstate);
8565 if (PyErr_Occurred()) SWIG_fail;
8566 }
8567 Py_INCREF(Py_None); resultobj = Py_None;
8568 return resultobj;
8569 fail:
8570 return NULL;
8571 }
8572
8573
8574 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj = NULL;
8576 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8577 wxString *arg2 = 0 ;
8578 wxString const &arg3_defvalue = wxPyEmptyString ;
8579 wxString *arg3 = (wxString *) &arg3_defvalue ;
8580 bool result;
8581 bool temp2 = false ;
8582 bool temp3 = false ;
8583 PyObject * obj0 = 0 ;
8584 PyObject * obj1 = 0 ;
8585 PyObject * obj2 = 0 ;
8586 char *kwnames[] = {
8587 (char *) "self",(char *) "name",(char *) "path", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8591 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8592 if (SWIG_arg_fail(1)) SWIG_fail;
8593 {
8594 arg2 = wxString_in_helper(obj1);
8595 if (arg2 == NULL) SWIG_fail;
8596 temp2 = true;
8597 }
8598 if (obj2) {
8599 {
8600 arg3 = wxString_in_helper(obj2);
8601 if (arg3 == NULL) SWIG_fail;
8602 temp3 = true;
8603 }
8604 }
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
8608
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 {
8613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8614 }
8615 {
8616 if (temp2)
8617 delete arg2;
8618 }
8619 {
8620 if (temp3)
8621 delete arg3;
8622 }
8623 return resultobj;
8624 fail:
8625 {
8626 if (temp2)
8627 delete arg2;
8628 }
8629 {
8630 if (temp3)
8631 delete arg3;
8632 }
8633 return NULL;
8634 }
8635
8636
8637 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
8638 PyObject *resultobj = NULL;
8639 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8640 bool result;
8641 PyObject * obj0 = 0 ;
8642 char *kwnames[] = {
8643 (char *) "self", NULL
8644 };
8645
8646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
8647 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8648 if (SWIG_arg_fail(1)) SWIG_fail;
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
8652
8653 wxPyEndAllowThreads(__tstate);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 }
8656 {
8657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8658 }
8659 return resultobj;
8660 fail:
8661 return NULL;
8662 }
8663
8664
8665 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
8666 PyObject *obj;
8667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8668 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
8669 Py_INCREF(obj);
8670 return Py_BuildValue((char *)"");
8671 }
8672 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
8673 PyObject *resultobj = NULL;
8674 wxWindow *arg1 = (wxWindow *) 0 ;
8675 wxDC *arg2 = 0 ;
8676 bool result;
8677 PyObject * obj0 = 0 ;
8678 PyObject * obj1 = 0 ;
8679 char *kwnames[] = {
8680 (char *) "window",(char *) "dc", NULL
8681 };
8682
8683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) goto fail;
8684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
8685 if (SWIG_arg_fail(1)) SWIG_fail;
8686 {
8687 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
8688 if (SWIG_arg_fail(2)) SWIG_fail;
8689 if (arg2 == NULL) {
8690 SWIG_null_ref("wxDC");
8691 }
8692 if (SWIG_arg_fail(2)) SWIG_fail;
8693 }
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2);
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 {
8702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8703 }
8704 return resultobj;
8705 fail:
8706 return NULL;
8707 }
8708
8709
8710 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8711 PyObject *resultobj = NULL;
8712 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8713 PyObject * obj0 = 0 ;
8714 char *kwnames[] = {
8715 (char *) "self", NULL
8716 };
8717
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
8719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8720 if (SWIG_arg_fail(1)) SWIG_fail;
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 delete arg1;
8724
8725 wxPyEndAllowThreads(__tstate);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 Py_INCREF(Py_None); resultobj = Py_None;
8729 return resultobj;
8730 fail:
8731 return NULL;
8732 }
8733
8734
8735 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj = NULL;
8737 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8738 wxString result;
8739 PyObject * obj0 = 0 ;
8740 char *kwnames[] = {
8741 (char *) "self", NULL
8742 };
8743
8744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
8745 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8746 if (SWIG_arg_fail(1)) SWIG_fail;
8747 {
8748 PyThreadState* __tstate = wxPyBeginAllowThreads();
8749 result = (arg1)->GetTip();
8750
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 {
8755 #if wxUSE_UNICODE
8756 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8757 #else
8758 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8759 #endif
8760 }
8761 return resultobj;
8762 fail:
8763 return NULL;
8764 }
8765
8766
8767 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
8768 PyObject *resultobj = NULL;
8769 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8770 size_t result;
8771 PyObject * obj0 = 0 ;
8772 char *kwnames[] = {
8773 (char *) "self", NULL
8774 };
8775
8776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
8777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8778 if (SWIG_arg_fail(1)) SWIG_fail;
8779 {
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 result = (size_t)(arg1)->GetCurrentTip();
8782
8783 wxPyEndAllowThreads(__tstate);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 {
8787 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
8788 }
8789 return resultobj;
8790 fail:
8791 return NULL;
8792 }
8793
8794
8795 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj = NULL;
8797 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8798 wxString *arg2 = 0 ;
8799 wxString result;
8800 bool temp2 = false ;
8801 PyObject * obj0 = 0 ;
8802 PyObject * obj1 = 0 ;
8803 char *kwnames[] = {
8804 (char *) "self",(char *) "tip", NULL
8805 };
8806
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
8808 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8809 if (SWIG_arg_fail(1)) SWIG_fail;
8810 {
8811 arg2 = wxString_in_helper(obj1);
8812 if (arg2 == NULL) SWIG_fail;
8813 temp2 = true;
8814 }
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 result = (arg1)->PreprocessTip((wxString const &)*arg2);
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 {
8823 #if wxUSE_UNICODE
8824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8825 #else
8826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8827 #endif
8828 }
8829 {
8830 if (temp2)
8831 delete arg2;
8832 }
8833 return resultobj;
8834 fail:
8835 {
8836 if (temp2)
8837 delete arg2;
8838 }
8839 return NULL;
8840 }
8841
8842
8843 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
8844 PyObject *obj;
8845 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8846 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
8847 Py_INCREF(obj);
8848 return Py_BuildValue((char *)"");
8849 }
8850 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj = NULL;
8852 size_t arg1 ;
8853 wxPyTipProvider *result;
8854 PyObject * obj0 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "currentTip", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
8860 {
8861 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
8862 if (SWIG_arg_fail(1)) SWIG_fail;
8863 }
8864 {
8865 PyThreadState* __tstate = wxPyBeginAllowThreads();
8866 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
8867
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
8872 return resultobj;
8873 fail:
8874 return NULL;
8875 }
8876
8877
8878 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8879 PyObject *resultobj = NULL;
8880 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
8881 PyObject *arg2 = (PyObject *) 0 ;
8882 PyObject *arg3 = (PyObject *) 0 ;
8883 PyObject * obj0 = 0 ;
8884 PyObject * obj1 = 0 ;
8885 PyObject * obj2 = 0 ;
8886 char *kwnames[] = {
8887 (char *) "self",(char *) "self",(char *) "_class", NULL
8888 };
8889
8890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8891 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_EXCEPTION | 0);
8892 if (SWIG_arg_fail(1)) SWIG_fail;
8893 arg2 = obj1;
8894 arg3 = obj2;
8895 {
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 (arg1)->_setCallbackInfo(arg2,arg3);
8898
8899 wxPyEndAllowThreads(__tstate);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 Py_INCREF(Py_None); resultobj = Py_None;
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
8910 PyObject *obj;
8911 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8912 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
8913 Py_INCREF(obj);
8914 return Py_BuildValue((char *)"");
8915 }
8916 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj = NULL;
8918 wxWindow *arg1 = (wxWindow *) 0 ;
8919 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
8920 bool arg3 = (bool) true ;
8921 bool result;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 PyObject * obj2 = 0 ;
8925 char *kwnames[] = {
8926 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
8927 };
8928
8929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
8930 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
8931 if (SWIG_arg_fail(1)) SWIG_fail;
8932 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8933 if (SWIG_arg_fail(2)) SWIG_fail;
8934 if (obj2) {
8935 {
8936 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
8937 if (SWIG_arg_fail(3)) SWIG_fail;
8938 }
8939 }
8940 {
8941 if (!wxPyCheckForApp()) SWIG_fail;
8942 PyThreadState* __tstate = wxPyBeginAllowThreads();
8943 result = (bool)wxShowTip(arg1,arg2,arg3);
8944
8945 wxPyEndAllowThreads(__tstate);
8946 if (PyErr_Occurred()) SWIG_fail;
8947 }
8948 {
8949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8950 }
8951 return resultobj;
8952 fail:
8953 return NULL;
8954 }
8955
8956
8957 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj = NULL;
8959 wxString *arg1 = 0 ;
8960 size_t arg2 ;
8961 wxTipProvider *result;
8962 bool temp1 = false ;
8963 PyObject * obj0 = 0 ;
8964 PyObject * obj1 = 0 ;
8965 char *kwnames[] = {
8966 (char *) "filename",(char *) "currentTip", NULL
8967 };
8968
8969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
8970 {
8971 arg1 = wxString_in_helper(obj0);
8972 if (arg1 == NULL) SWIG_fail;
8973 temp1 = true;
8974 }
8975 {
8976 arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1));
8977 if (SWIG_arg_fail(2)) SWIG_fail;
8978 }
8979 {
8980 if (!wxPyCheckForApp()) SWIG_fail;
8981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8982 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
8983
8984 wxPyEndAllowThreads(__tstate);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
8988 {
8989 if (temp1)
8990 delete arg1;
8991 }
8992 return resultobj;
8993 fail:
8994 {
8995 if (temp1)
8996 delete arg1;
8997 }
8998 return NULL;
8999 }
9000
9001
9002 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj = NULL;
9004 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9005 int arg2 = (int) -1 ;
9006 wxPyTimer *result;
9007 PyObject * obj0 = 0 ;
9008 PyObject * obj1 = 0 ;
9009 char *kwnames[] = {
9010 (char *) "owner",(char *) "id", NULL
9011 };
9012
9013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
9014 if (obj0) {
9015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
9016 if (SWIG_arg_fail(1)) SWIG_fail;
9017 }
9018 if (obj1) {
9019 {
9020 arg2 = static_cast<int >(SWIG_As_int(obj1));
9021 if (SWIG_arg_fail(2)) SWIG_fail;
9022 }
9023 }
9024 {
9025 if (!wxPyCheckForApp()) SWIG_fail;
9026 PyThreadState* __tstate = wxPyBeginAllowThreads();
9027 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
9028
9029 wxPyEndAllowThreads(__tstate);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 }
9032 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
9033 return resultobj;
9034 fail:
9035 return NULL;
9036 }
9037
9038
9039 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj = NULL;
9041 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9042 PyObject * obj0 = 0 ;
9043 char *kwnames[] = {
9044 (char *) "self", NULL
9045 };
9046
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
9048 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9049 if (SWIG_arg_fail(1)) SWIG_fail;
9050 {
9051 PyThreadState* __tstate = wxPyBeginAllowThreads();
9052 delete arg1;
9053
9054 wxPyEndAllowThreads(__tstate);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 Py_INCREF(Py_None); resultobj = Py_None;
9058 return resultobj;
9059 fail:
9060 return NULL;
9061 }
9062
9063
9064 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9065 PyObject *resultobj = NULL;
9066 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9067 PyObject *arg2 = (PyObject *) 0 ;
9068 PyObject *arg3 = (PyObject *) 0 ;
9069 int arg4 = (int) 1 ;
9070 PyObject * obj0 = 0 ;
9071 PyObject * obj1 = 0 ;
9072 PyObject * obj2 = 0 ;
9073 PyObject * obj3 = 0 ;
9074 char *kwnames[] = {
9075 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9076 };
9077
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9080 if (SWIG_arg_fail(1)) SWIG_fail;
9081 arg2 = obj1;
9082 arg3 = obj2;
9083 if (obj3) {
9084 {
9085 arg4 = static_cast<int >(SWIG_As_int(obj3));
9086 if (SWIG_arg_fail(4)) SWIG_fail;
9087 }
9088 }
9089 {
9090 PyThreadState* __tstate = wxPyBeginAllowThreads();
9091 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9092
9093 wxPyEndAllowThreads(__tstate);
9094 if (PyErr_Occurred()) SWIG_fail;
9095 }
9096 Py_INCREF(Py_None); resultobj = Py_None;
9097 return resultobj;
9098 fail:
9099 return NULL;
9100 }
9101
9102
9103 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
9104 PyObject *resultobj = NULL;
9105 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9106 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
9107 int arg3 = (int) -1 ;
9108 PyObject * obj0 = 0 ;
9109 PyObject * obj1 = 0 ;
9110 PyObject * obj2 = 0 ;
9111 char *kwnames[] = {
9112 (char *) "self",(char *) "owner",(char *) "id", NULL
9113 };
9114
9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
9116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9117 if (SWIG_arg_fail(1)) SWIG_fail;
9118 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
9119 if (SWIG_arg_fail(2)) SWIG_fail;
9120 if (obj2) {
9121 {
9122 arg3 = static_cast<int >(SWIG_As_int(obj2));
9123 if (SWIG_arg_fail(3)) SWIG_fail;
9124 }
9125 }
9126 {
9127 PyThreadState* __tstate = wxPyBeginAllowThreads();
9128 (arg1)->SetOwner(arg2,arg3);
9129
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) SWIG_fail;
9132 }
9133 Py_INCREF(Py_None); resultobj = Py_None;
9134 return resultobj;
9135 fail:
9136 return NULL;
9137 }
9138
9139
9140 static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj = NULL;
9142 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9143 wxEvtHandler *result;
9144 PyObject * obj0 = 0 ;
9145 char *kwnames[] = {
9146 (char *) "self", NULL
9147 };
9148
9149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
9150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9151 if (SWIG_arg_fail(1)) SWIG_fail;
9152 {
9153 PyThreadState* __tstate = wxPyBeginAllowThreads();
9154 result = (wxEvtHandler *)(arg1)->GetOwner();
9155
9156 wxPyEndAllowThreads(__tstate);
9157 if (PyErr_Occurred()) SWIG_fail;
9158 }
9159 {
9160 resultobj = wxPyMake_wxObject(result, 0);
9161 }
9162 return resultobj;
9163 fail:
9164 return NULL;
9165 }
9166
9167
9168 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
9169 PyObject *resultobj = NULL;
9170 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9171 int arg2 = (int) -1 ;
9172 bool arg3 = (bool) false ;
9173 bool result;
9174 PyObject * obj0 = 0 ;
9175 PyObject * obj1 = 0 ;
9176 PyObject * obj2 = 0 ;
9177 char *kwnames[] = {
9178 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
9179 };
9180
9181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
9182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9183 if (SWIG_arg_fail(1)) SWIG_fail;
9184 if (obj1) {
9185 {
9186 arg2 = static_cast<int >(SWIG_As_int(obj1));
9187 if (SWIG_arg_fail(2)) SWIG_fail;
9188 }
9189 }
9190 if (obj2) {
9191 {
9192 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9193 if (SWIG_arg_fail(3)) SWIG_fail;
9194 }
9195 }
9196 {
9197 PyThreadState* __tstate = wxPyBeginAllowThreads();
9198 result = (bool)(arg1)->Start(arg2,arg3);
9199
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 {
9204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9205 }
9206 return resultobj;
9207 fail:
9208 return NULL;
9209 }
9210
9211
9212 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
9213 PyObject *resultobj = NULL;
9214 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9215 PyObject * obj0 = 0 ;
9216 char *kwnames[] = {
9217 (char *) "self", NULL
9218 };
9219
9220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
9221 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9222 if (SWIG_arg_fail(1)) SWIG_fail;
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 (arg1)->Stop();
9226
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 Py_INCREF(Py_None); resultobj = Py_None;
9231 return resultobj;
9232 fail:
9233 return NULL;
9234 }
9235
9236
9237 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj = NULL;
9239 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9240 bool result;
9241 PyObject * obj0 = 0 ;
9242 char *kwnames[] = {
9243 (char *) "self", NULL
9244 };
9245
9246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
9247 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9248 if (SWIG_arg_fail(1)) SWIG_fail;
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
9252
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 {
9257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9258 }
9259 return resultobj;
9260 fail:
9261 return NULL;
9262 }
9263
9264
9265 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
9266 PyObject *resultobj = NULL;
9267 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9268 int result;
9269 PyObject * obj0 = 0 ;
9270 char *kwnames[] = {
9271 (char *) "self", NULL
9272 };
9273
9274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
9275 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9276 if (SWIG_arg_fail(1)) SWIG_fail;
9277 {
9278 PyThreadState* __tstate = wxPyBeginAllowThreads();
9279 result = (int)((wxPyTimer const *)arg1)->GetInterval();
9280
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 {
9285 resultobj = SWIG_From_int(static_cast<int >(result));
9286 }
9287 return resultobj;
9288 fail:
9289 return NULL;
9290 }
9291
9292
9293 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
9294 PyObject *resultobj = NULL;
9295 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9296 bool result;
9297 PyObject * obj0 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "self", NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
9303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9304 if (SWIG_arg_fail(1)) SWIG_fail;
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
9308
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 {
9313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9314 }
9315 return resultobj;
9316 fail:
9317 return NULL;
9318 }
9319
9320
9321 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj = NULL;
9323 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9324 int result;
9325 PyObject * obj0 = 0 ;
9326 char *kwnames[] = {
9327 (char *) "self", NULL
9328 };
9329
9330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
9331 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9332 if (SWIG_arg_fail(1)) SWIG_fail;
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 result = (int)((wxPyTimer const *)arg1)->GetId();
9336
9337 wxPyEndAllowThreads(__tstate);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 {
9341 resultobj = SWIG_From_int(static_cast<int >(result));
9342 }
9343 return resultobj;
9344 fail:
9345 return NULL;
9346 }
9347
9348
9349 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
9350 PyObject *obj;
9351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9352 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
9353 Py_INCREF(obj);
9354 return Py_BuildValue((char *)"");
9355 }
9356 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9357 PyObject *resultobj = NULL;
9358 int arg1 = (int) 0 ;
9359 int arg2 = (int) 0 ;
9360 wxTimerEvent *result;
9361 PyObject * obj0 = 0 ;
9362 PyObject * obj1 = 0 ;
9363 char *kwnames[] = {
9364 (char *) "timerid",(char *) "interval", NULL
9365 };
9366
9367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
9368 if (obj0) {
9369 {
9370 arg1 = static_cast<int >(SWIG_As_int(obj0));
9371 if (SWIG_arg_fail(1)) SWIG_fail;
9372 }
9373 }
9374 if (obj1) {
9375 {
9376 arg2 = static_cast<int >(SWIG_As_int(obj1));
9377 if (SWIG_arg_fail(2)) SWIG_fail;
9378 }
9379 }
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
9383
9384 wxPyEndAllowThreads(__tstate);
9385 if (PyErr_Occurred()) SWIG_fail;
9386 }
9387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
9388 return resultobj;
9389 fail:
9390 return NULL;
9391 }
9392
9393
9394 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
9395 PyObject *resultobj = NULL;
9396 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
9397 int result;
9398 PyObject * obj0 = 0 ;
9399 char *kwnames[] = {
9400 (char *) "self", NULL
9401 };
9402
9403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
9404 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_EXCEPTION | 0);
9405 if (SWIG_arg_fail(1)) SWIG_fail;
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
9409
9410 wxPyEndAllowThreads(__tstate);
9411 if (PyErr_Occurred()) SWIG_fail;
9412 }
9413 {
9414 resultobj = SWIG_From_int(static_cast<int >(result));
9415 }
9416 return resultobj;
9417 fail:
9418 return NULL;
9419 }
9420
9421
9422 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
9423 PyObject *obj;
9424 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9425 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
9426 Py_INCREF(obj);
9427 return Py_BuildValue((char *)"");
9428 }
9429 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
9430 PyObject *resultobj = NULL;
9431 wxTimer *arg1 = 0 ;
9432 wxTimerRunner *result;
9433 PyObject * obj0 = 0 ;
9434
9435 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
9436 {
9437 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
9438 if (SWIG_arg_fail(1)) SWIG_fail;
9439 if (arg1 == NULL) {
9440 SWIG_null_ref("wxTimer");
9441 }
9442 if (SWIG_arg_fail(1)) SWIG_fail;
9443 }
9444 {
9445 if (!wxPyCheckForApp()) SWIG_fail;
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
9453 return resultobj;
9454 fail:
9455 return NULL;
9456 }
9457
9458
9459 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
9460 PyObject *resultobj = NULL;
9461 wxTimer *arg1 = 0 ;
9462 int arg2 ;
9463 bool arg3 ;
9464 wxTimerRunner *result;
9465 PyObject * obj0 = 0 ;
9466 PyObject * obj1 = 0 ;
9467 PyObject * obj2 = 0 ;
9468
9469 if(!PyArg_ParseTuple(args,(char *)"OOO:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
9470 {
9471 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
9472 if (SWIG_arg_fail(1)) SWIG_fail;
9473 if (arg1 == NULL) {
9474 SWIG_null_ref("wxTimer");
9475 }
9476 if (SWIG_arg_fail(1)) SWIG_fail;
9477 }
9478 {
9479 arg2 = static_cast<int >(SWIG_As_int(obj1));
9480 if (SWIG_arg_fail(2)) SWIG_fail;
9481 }
9482 {
9483 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9484 if (SWIG_arg_fail(3)) SWIG_fail;
9485 }
9486 {
9487 if (!wxPyCheckForApp()) SWIG_fail;
9488 PyThreadState* __tstate = wxPyBeginAllowThreads();
9489 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
9490
9491 wxPyEndAllowThreads(__tstate);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
9495 return resultobj;
9496 fail:
9497 return NULL;
9498 }
9499
9500
9501 static PyObject *_wrap_new_TimerRunner__SWIG_2(PyObject *, PyObject *args) {
9502 PyObject *resultobj = NULL;
9503 wxTimer *arg1 = 0 ;
9504 int arg2 ;
9505 wxTimerRunner *result;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508
9509 if(!PyArg_ParseTuple(args,(char *)"OO:new_TimerRunner",&obj0,&obj1)) goto fail;
9510 {
9511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
9512 if (SWIG_arg_fail(1)) SWIG_fail;
9513 if (arg1 == NULL) {
9514 SWIG_null_ref("wxTimer");
9515 }
9516 if (SWIG_arg_fail(1)) SWIG_fail;
9517 }
9518 {
9519 arg2 = static_cast<int >(SWIG_As_int(obj1));
9520 if (SWIG_arg_fail(2)) SWIG_fail;
9521 }
9522 {
9523 if (!wxPyCheckForApp()) SWIG_fail;
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2);
9526
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
9538 int argc;
9539 PyObject *argv[4];
9540 int ii;
9541
9542 argc = PyObject_Length(args);
9543 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9544 argv[ii] = PyTuple_GetItem(args,ii);
9545 }
9546 if (argc == 1) {
9547 int _v;
9548 {
9549 void *ptr = 0;
9550 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
9551 _v = 0;
9552 PyErr_Clear();
9553 } else {
9554 _v = (ptr != 0);
9555 }
9556 }
9557 if (_v) {
9558 return _wrap_new_TimerRunner__SWIG_0(self,args);
9559 }
9560 }
9561 if (argc == 2) {
9562 int _v;
9563 {
9564 void *ptr = 0;
9565 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
9566 _v = 0;
9567 PyErr_Clear();
9568 } else {
9569 _v = (ptr != 0);
9570 }
9571 }
9572 if (_v) {
9573 _v = SWIG_Check_int(argv[1]);
9574 if (_v) {
9575 return _wrap_new_TimerRunner__SWIG_2(self,args);
9576 }
9577 }
9578 }
9579 if (argc == 3) {
9580 int _v;
9581 {
9582 void *ptr = 0;
9583 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
9584 _v = 0;
9585 PyErr_Clear();
9586 } else {
9587 _v = (ptr != 0);
9588 }
9589 }
9590 if (_v) {
9591 _v = SWIG_Check_int(argv[1]);
9592 if (_v) {
9593 _v = SWIG_Check_bool(argv[2]);
9594 if (_v) {
9595 return _wrap_new_TimerRunner__SWIG_1(self,args);
9596 }
9597 }
9598 }
9599 }
9600
9601 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'");
9602 return NULL;
9603 }
9604
9605
9606 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
9607 PyObject *resultobj = NULL;
9608 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
9609 PyObject * obj0 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self", NULL
9612 };
9613
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
9615 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0);
9616 if (SWIG_arg_fail(1)) SWIG_fail;
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 delete arg1;
9620
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 Py_INCREF(Py_None); resultobj = Py_None;
9625 return resultobj;
9626 fail:
9627 return NULL;
9628 }
9629
9630
9631 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
9632 PyObject *resultobj = NULL;
9633 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
9634 int arg2 ;
9635 bool arg3 = (bool) false ;
9636 PyObject * obj0 = 0 ;
9637 PyObject * obj1 = 0 ;
9638 PyObject * obj2 = 0 ;
9639 char *kwnames[] = {
9640 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
9641 };
9642
9643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
9644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0);
9645 if (SWIG_arg_fail(1)) SWIG_fail;
9646 {
9647 arg2 = static_cast<int >(SWIG_As_int(obj1));
9648 if (SWIG_arg_fail(2)) SWIG_fail;
9649 }
9650 if (obj2) {
9651 {
9652 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9653 if (SWIG_arg_fail(3)) SWIG_fail;
9654 }
9655 }
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 (arg1)->Start(arg2,arg3);
9659
9660 wxPyEndAllowThreads(__tstate);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 Py_INCREF(Py_None); resultobj = Py_None;
9664 return resultobj;
9665 fail:
9666 return NULL;
9667 }
9668
9669
9670 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
9671 PyObject *obj;
9672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9673 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
9674 Py_INCREF(obj);
9675 return Py_BuildValue((char *)"");
9676 }
9677 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
9678 PyObject *resultobj = NULL;
9679 wxLog *result;
9680 char *kwnames[] = {
9681 NULL
9682 };
9683
9684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
9687 result = (wxLog *)new wxLog();
9688
9689 wxPyEndAllowThreads(__tstate);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 }
9692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
9693 return resultobj;
9694 fail:
9695 return NULL;
9696 }
9697
9698
9699 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
9700 PyObject *resultobj = NULL;
9701 bool result;
9702 char *kwnames[] = {
9703 NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 result = (bool)wxLog::IsEnabled();
9710
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 {
9715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9716 }
9717 return resultobj;
9718 fail:
9719 return NULL;
9720 }
9721
9722
9723 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
9724 PyObject *resultobj = NULL;
9725 bool arg1 = (bool) true ;
9726 bool result;
9727 PyObject * obj0 = 0 ;
9728 char *kwnames[] = {
9729 (char *) "doIt", NULL
9730 };
9731
9732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
9733 if (obj0) {
9734 {
9735 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
9736 if (SWIG_arg_fail(1)) SWIG_fail;
9737 }
9738 }
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 result = (bool)wxLog::EnableLogging(arg1);
9742
9743 wxPyEndAllowThreads(__tstate);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 }
9746 {
9747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9748 }
9749 return resultobj;
9750 fail:
9751 return NULL;
9752 }
9753
9754
9755 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
9756 PyObject *resultobj = NULL;
9757 wxLogLevel arg1 ;
9758 wxChar *arg2 = (wxChar *) 0 ;
9759 time_t arg3 ;
9760 PyObject * obj0 = 0 ;
9761 PyObject * obj1 = 0 ;
9762 PyObject * obj2 = 0 ;
9763 char *kwnames[] = {
9764 (char *) "level",(char *) "szString",(char *) "t", NULL
9765 };
9766
9767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
9768 {
9769 arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0));
9770 if (SWIG_arg_fail(1)) SWIG_fail;
9771 }
9772 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
9773 if (SWIG_arg_fail(2)) SWIG_fail;
9774 {
9775 arg3 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj2));
9776 if (SWIG_arg_fail(3)) SWIG_fail;
9777 }
9778 {
9779 PyThreadState* __tstate = wxPyBeginAllowThreads();
9780 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
9781
9782 wxPyEndAllowThreads(__tstate);
9783 if (PyErr_Occurred()) SWIG_fail;
9784 }
9785 Py_INCREF(Py_None); resultobj = Py_None;
9786 return resultobj;
9787 fail:
9788 return NULL;
9789 }
9790
9791
9792 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
9793 PyObject *resultobj = NULL;
9794 wxLog *arg1 = (wxLog *) 0 ;
9795 PyObject * obj0 = 0 ;
9796 char *kwnames[] = {
9797 (char *) "self", NULL
9798 };
9799
9800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
9801 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
9802 if (SWIG_arg_fail(1)) SWIG_fail;
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 (arg1)->Flush();
9806
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 Py_INCREF(Py_None); resultobj = Py_None;
9811 return resultobj;
9812 fail:
9813 return NULL;
9814 }
9815
9816
9817 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj = NULL;
9819 char *kwnames[] = {
9820 NULL
9821 };
9822
9823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
9824 {
9825 PyThreadState* __tstate = wxPyBeginAllowThreads();
9826 wxLog::FlushActive();
9827
9828 wxPyEndAllowThreads(__tstate);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 }
9831 Py_INCREF(Py_None); resultobj = Py_None;
9832 return resultobj;
9833 fail:
9834 return NULL;
9835 }
9836
9837
9838 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
9839 PyObject *resultobj = NULL;
9840 wxLog *result;
9841 char *kwnames[] = {
9842 NULL
9843 };
9844
9845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 result = (wxLog *)wxLog::GetActiveTarget();
9849
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = NULL;
9862 wxLog *arg1 = (wxLog *) 0 ;
9863 wxLog *result;
9864 PyObject * obj0 = 0 ;
9865 char *kwnames[] = {
9866 (char *) "pLogger", NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
9870 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
9871 if (SWIG_arg_fail(1)) SWIG_fail;
9872 {
9873 PyThreadState* __tstate = wxPyBeginAllowThreads();
9874 result = (wxLog *)wxLog::SetActiveTarget(arg1);
9875
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
9880 return resultobj;
9881 fail:
9882 return NULL;
9883 }
9884
9885
9886 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj = NULL;
9888 char *kwnames[] = {
9889 NULL
9890 };
9891
9892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 wxLog::Suspend();
9896
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 Py_INCREF(Py_None); resultobj = Py_None;
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = NULL;
9909 char *kwnames[] = {
9910 NULL
9911 };
9912
9913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
9914 {
9915 PyThreadState* __tstate = wxPyBeginAllowThreads();
9916 wxLog::Resume();
9917
9918 wxPyEndAllowThreads(__tstate);
9919 if (PyErr_Occurred()) SWIG_fail;
9920 }
9921 Py_INCREF(Py_None); resultobj = Py_None;
9922 return resultobj;
9923 fail:
9924 return NULL;
9925 }
9926
9927
9928 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
9929 PyObject *resultobj = NULL;
9930 bool arg1 = (bool) true ;
9931 PyObject * obj0 = 0 ;
9932 char *kwnames[] = {
9933 (char *) "bVerbose", NULL
9934 };
9935
9936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
9937 if (obj0) {
9938 {
9939 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
9940 if (SWIG_arg_fail(1)) SWIG_fail;
9941 }
9942 }
9943 {
9944 PyThreadState* __tstate = wxPyBeginAllowThreads();
9945 wxLog::SetVerbose(arg1);
9946
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 Py_INCREF(Py_None); resultobj = Py_None;
9951 return resultobj;
9952 fail:
9953 return NULL;
9954 }
9955
9956
9957 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = NULL;
9959 wxLogLevel arg1 ;
9960 PyObject * obj0 = 0 ;
9961 char *kwnames[] = {
9962 (char *) "logLevel", NULL
9963 };
9964
9965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
9966 {
9967 arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0));
9968 if (SWIG_arg_fail(1)) SWIG_fail;
9969 }
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 wxLog::SetLogLevel(arg1);
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 Py_INCREF(Py_None); resultobj = Py_None;
9978 return resultobj;
9979 fail:
9980 return NULL;
9981 }
9982
9983
9984 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj = NULL;
9986 char *kwnames[] = {
9987 NULL
9988 };
9989
9990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
9991 {
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 wxLog::DontCreateOnDemand();
9994
9995 wxPyEndAllowThreads(__tstate);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 }
9998 Py_INCREF(Py_None); resultobj = Py_None;
9999 return resultobj;
10000 fail:
10001 return NULL;
10002 }
10003
10004
10005 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10006 PyObject *resultobj = NULL;
10007 wxTraceMask arg1 ;
10008 PyObject * obj0 = 0 ;
10009 char *kwnames[] = {
10010 (char *) "ulMask", NULL
10011 };
10012
10013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
10014 {
10015 arg1 = static_cast<wxTraceMask >(SWIG_As_unsigned_SS_long(obj0));
10016 if (SWIG_arg_fail(1)) SWIG_fail;
10017 }
10018 {
10019 PyThreadState* __tstate = wxPyBeginAllowThreads();
10020 wxLog::SetTraceMask(arg1);
10021
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 Py_INCREF(Py_None); resultobj = Py_None;
10026 return resultobj;
10027 fail:
10028 return NULL;
10029 }
10030
10031
10032 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10033 PyObject *resultobj = NULL;
10034 wxString *arg1 = 0 ;
10035 bool temp1 = false ;
10036 PyObject * obj0 = 0 ;
10037 char *kwnames[] = {
10038 (char *) "str", NULL
10039 };
10040
10041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
10042 {
10043 arg1 = wxString_in_helper(obj0);
10044 if (arg1 == NULL) SWIG_fail;
10045 temp1 = true;
10046 }
10047 {
10048 PyThreadState* __tstate = wxPyBeginAllowThreads();
10049 wxLog::AddTraceMask((wxString const &)*arg1);
10050
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 Py_INCREF(Py_None); resultobj = Py_None;
10055 {
10056 if (temp1)
10057 delete arg1;
10058 }
10059 return resultobj;
10060 fail:
10061 {
10062 if (temp1)
10063 delete arg1;
10064 }
10065 return NULL;
10066 }
10067
10068
10069 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10070 PyObject *resultobj = NULL;
10071 wxString *arg1 = 0 ;
10072 bool temp1 = false ;
10073 PyObject * obj0 = 0 ;
10074 char *kwnames[] = {
10075 (char *) "str", NULL
10076 };
10077
10078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
10079 {
10080 arg1 = wxString_in_helper(obj0);
10081 if (arg1 == NULL) SWIG_fail;
10082 temp1 = true;
10083 }
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 wxLog::RemoveTraceMask((wxString const &)*arg1);
10087
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) SWIG_fail;
10090 }
10091 Py_INCREF(Py_None); resultobj = Py_None;
10092 {
10093 if (temp1)
10094 delete arg1;
10095 }
10096 return resultobj;
10097 fail:
10098 {
10099 if (temp1)
10100 delete arg1;
10101 }
10102 return NULL;
10103 }
10104
10105
10106 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
10107 PyObject *resultobj = NULL;
10108 char *kwnames[] = {
10109 NULL
10110 };
10111
10112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
10113 {
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 wxLog::ClearTraceMasks();
10116
10117 wxPyEndAllowThreads(__tstate);
10118 if (PyErr_Occurred()) SWIG_fail;
10119 }
10120 Py_INCREF(Py_None); resultobj = Py_None;
10121 return resultobj;
10122 fail:
10123 return NULL;
10124 }
10125
10126
10127 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
10128 PyObject *resultobj = NULL;
10129 wxArrayString *result;
10130 char *kwnames[] = {
10131 NULL
10132 };
10133
10134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
10135 {
10136 PyThreadState* __tstate = wxPyBeginAllowThreads();
10137 {
10138 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
10139 result = (wxArrayString *) &_result_ref;
10140 }
10141
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 {
10146 resultobj = wxArrayString2PyList_helper(*result);
10147 }
10148 return resultobj;
10149 fail:
10150 return NULL;
10151 }
10152
10153
10154 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
10155 PyObject *resultobj = NULL;
10156 wxChar *arg1 = (wxChar *) 0 ;
10157 PyObject * obj0 = 0 ;
10158 char *kwnames[] = {
10159 (char *) "ts", NULL
10160 };
10161
10162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
10163 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
10164 if (SWIG_arg_fail(1)) SWIG_fail;
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 wxLog::SetTimestamp((wxChar const *)arg1);
10168
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 Py_INCREF(Py_None); resultobj = Py_None;
10173 return resultobj;
10174 fail:
10175 return NULL;
10176 }
10177
10178
10179 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj = NULL;
10181 bool result;
10182 char *kwnames[] = {
10183 NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
10187 {
10188 PyThreadState* __tstate = wxPyBeginAllowThreads();
10189 result = (bool)wxLog::GetVerbose();
10190
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 {
10195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10196 }
10197 return resultobj;
10198 fail:
10199 return NULL;
10200 }
10201
10202
10203 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj = NULL;
10205 wxTraceMask result;
10206 char *kwnames[] = {
10207 NULL
10208 };
10209
10210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 result = (wxTraceMask)wxLog::GetTraceMask();
10214
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 {
10219 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10220 }
10221 return resultobj;
10222 fail:
10223 return NULL;
10224 }
10225
10226
10227 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10228 PyObject *resultobj = NULL;
10229 wxChar *arg1 = (wxChar *) 0 ;
10230 bool result;
10231 PyObject * obj0 = 0 ;
10232 char *kwnames[] = {
10233 (char *) "mask", NULL
10234 };
10235
10236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
10237 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
10238 if (SWIG_arg_fail(1)) SWIG_fail;
10239 {
10240 PyThreadState* __tstate = wxPyBeginAllowThreads();
10241 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
10242
10243 wxPyEndAllowThreads(__tstate);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 {
10247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10248 }
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj = NULL;
10257 wxLogLevel result;
10258 char *kwnames[] = {
10259 NULL
10260 };
10261
10262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
10263 {
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 result = (wxLogLevel)wxLog::GetLogLevel();
10266
10267 wxPyEndAllowThreads(__tstate);
10268 if (PyErr_Occurred()) SWIG_fail;
10269 }
10270 {
10271 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10272 }
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = NULL;
10281 wxChar *result;
10282 char *kwnames[] = {
10283 NULL
10284 };
10285
10286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
10287 {
10288 PyThreadState* __tstate = wxPyBeginAllowThreads();
10289 result = (wxChar *)wxLog::GetTimestamp();
10290
10291 wxPyEndAllowThreads(__tstate);
10292 if (PyErr_Occurred()) SWIG_fail;
10293 }
10294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
10295 return resultobj;
10296 fail:
10297 return NULL;
10298 }
10299
10300
10301 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
10302 PyObject *resultobj = NULL;
10303 wxString result;
10304 char *kwnames[] = {
10305 NULL
10306 };
10307
10308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = wxLog_TimeStamp();
10312
10313 wxPyEndAllowThreads(__tstate);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 }
10316 {
10317 #if wxUSE_UNICODE
10318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10319 #else
10320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10321 #endif
10322 }
10323 return resultobj;
10324 fail:
10325 return NULL;
10326 }
10327
10328
10329 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj = NULL;
10331 wxLog *arg1 = (wxLog *) 0 ;
10332 PyObject * obj0 = 0 ;
10333 char *kwnames[] = {
10334 (char *) "self", NULL
10335 };
10336
10337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
10338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10339 if (SWIG_arg_fail(1)) SWIG_fail;
10340 {
10341 PyThreadState* __tstate = wxPyBeginAllowThreads();
10342 wxLog_Destroy(arg1);
10343
10344 wxPyEndAllowThreads(__tstate);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 Py_INCREF(Py_None); resultobj = Py_None;
10348 return resultobj;
10349 fail:
10350 return NULL;
10351 }
10352
10353
10354 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
10355 PyObject *obj;
10356 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10357 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
10358 Py_INCREF(obj);
10359 return Py_BuildValue((char *)"");
10360 }
10361 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
10362 PyObject *resultobj = NULL;
10363 wxLogStderr *result;
10364 char *kwnames[] = {
10365 NULL
10366 };
10367
10368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (wxLogStderr *)new wxLogStderr();
10372
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
10384 PyObject *obj;
10385 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10386 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
10387 Py_INCREF(obj);
10388 return Py_BuildValue((char *)"");
10389 }
10390 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
10391 PyObject *resultobj = NULL;
10392 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10393 wxLogTextCtrl *result;
10394 PyObject * obj0 = 0 ;
10395 char *kwnames[] = {
10396 (char *) "pTextCtrl", NULL
10397 };
10398
10399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
10400 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0);
10401 if (SWIG_arg_fail(1)) SWIG_fail;
10402 {
10403 PyThreadState* __tstate = wxPyBeginAllowThreads();
10404 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
10405
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
10410 return resultobj;
10411 fail:
10412 return NULL;
10413 }
10414
10415
10416 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
10417 PyObject *obj;
10418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10419 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
10420 Py_INCREF(obj);
10421 return Py_BuildValue((char *)"");
10422 }
10423 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
10424 PyObject *resultobj = NULL;
10425 wxLogGui *result;
10426 char *kwnames[] = {
10427 NULL
10428 };
10429
10430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 result = (wxLogGui *)new wxLogGui();
10434
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
10446 PyObject *obj;
10447 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10448 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
10449 Py_INCREF(obj);
10450 return Py_BuildValue((char *)"");
10451 }
10452 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
10453 PyObject *resultobj = NULL;
10454 wxFrame *arg1 = (wxFrame *) 0 ;
10455 wxString *arg2 = 0 ;
10456 bool arg3 = (bool) true ;
10457 bool arg4 = (bool) true ;
10458 wxLogWindow *result;
10459 bool temp2 = false ;
10460 PyObject * obj0 = 0 ;
10461 PyObject * obj1 = 0 ;
10462 PyObject * obj2 = 0 ;
10463 PyObject * obj3 = 0 ;
10464 char *kwnames[] = {
10465 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
10466 };
10467
10468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
10470 if (SWIG_arg_fail(1)) SWIG_fail;
10471 {
10472 arg2 = wxString_in_helper(obj1);
10473 if (arg2 == NULL) SWIG_fail;
10474 temp2 = true;
10475 }
10476 if (obj2) {
10477 {
10478 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
10479 if (SWIG_arg_fail(3)) SWIG_fail;
10480 }
10481 }
10482 if (obj3) {
10483 {
10484 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
10485 if (SWIG_arg_fail(4)) SWIG_fail;
10486 }
10487 }
10488 {
10489 PyThreadState* __tstate = wxPyBeginAllowThreads();
10490 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
10491
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
10495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
10496 {
10497 if (temp2)
10498 delete arg2;
10499 }
10500 return resultobj;
10501 fail:
10502 {
10503 if (temp2)
10504 delete arg2;
10505 }
10506 return NULL;
10507 }
10508
10509
10510 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
10511 PyObject *resultobj = NULL;
10512 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10513 bool arg2 = (bool) true ;
10514 PyObject * obj0 = 0 ;
10515 PyObject * obj1 = 0 ;
10516 char *kwnames[] = {
10517 (char *) "self",(char *) "bShow", NULL
10518 };
10519
10520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
10521 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10522 if (SWIG_arg_fail(1)) SWIG_fail;
10523 if (obj1) {
10524 {
10525 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10526 if (SWIG_arg_fail(2)) SWIG_fail;
10527 }
10528 }
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 (arg1)->Show(arg2);
10532
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 Py_INCREF(Py_None); resultobj = Py_None;
10537 return resultobj;
10538 fail:
10539 return NULL;
10540 }
10541
10542
10543 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj = NULL;
10545 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10546 wxFrame *result;
10547 PyObject * obj0 = 0 ;
10548 char *kwnames[] = {
10549 (char *) "self", NULL
10550 };
10551
10552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
10553 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10554 if (SWIG_arg_fail(1)) SWIG_fail;
10555 {
10556 PyThreadState* __tstate = wxPyBeginAllowThreads();
10557 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
10558
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 {
10563 resultobj = wxPyMake_wxObject(result, 0);
10564 }
10565 return resultobj;
10566 fail:
10567 return NULL;
10568 }
10569
10570
10571 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
10572 PyObject *resultobj = NULL;
10573 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10574 wxLog *result;
10575 PyObject * obj0 = 0 ;
10576 char *kwnames[] = {
10577 (char *) "self", NULL
10578 };
10579
10580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
10581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10582 if (SWIG_arg_fail(1)) SWIG_fail;
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
10586
10587 wxPyEndAllowThreads(__tstate);
10588 if (PyErr_Occurred()) SWIG_fail;
10589 }
10590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
10591 return resultobj;
10592 fail:
10593 return NULL;
10594 }
10595
10596
10597 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10598 PyObject *resultobj = NULL;
10599 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10600 bool result;
10601 PyObject * obj0 = 0 ;
10602 char *kwnames[] = {
10603 (char *) "self", NULL
10604 };
10605
10606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
10607 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10608 if (SWIG_arg_fail(1)) SWIG_fail;
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
10612
10613 wxPyEndAllowThreads(__tstate);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 }
10616 {
10617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10618 }
10619 return resultobj;
10620 fail:
10621 return NULL;
10622 }
10623
10624
10625 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj = NULL;
10627 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10628 bool arg2 ;
10629 PyObject * obj0 = 0 ;
10630 PyObject * obj1 = 0 ;
10631 char *kwnames[] = {
10632 (char *) "self",(char *) "bDoPass", NULL
10633 };
10634
10635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
10636 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10637 if (SWIG_arg_fail(1)) SWIG_fail;
10638 {
10639 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10640 if (SWIG_arg_fail(2)) SWIG_fail;
10641 }
10642 {
10643 PyThreadState* __tstate = wxPyBeginAllowThreads();
10644 (arg1)->PassMessages(arg2);
10645
10646 wxPyEndAllowThreads(__tstate);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 }
10649 Py_INCREF(Py_None); resultobj = Py_None;
10650 return resultobj;
10651 fail:
10652 return NULL;
10653 }
10654
10655
10656 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
10657 PyObject *obj;
10658 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10659 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
10660 Py_INCREF(obj);
10661 return Py_BuildValue((char *)"");
10662 }
10663 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj = NULL;
10665 wxLog *arg1 = (wxLog *) 0 ;
10666 wxLogChain *result;
10667 PyObject * obj0 = 0 ;
10668 char *kwnames[] = {
10669 (char *) "logger", NULL
10670 };
10671
10672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
10673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10674 if (SWIG_arg_fail(1)) SWIG_fail;
10675 {
10676 PyThreadState* __tstate = wxPyBeginAllowThreads();
10677 result = (wxLogChain *)new wxLogChain(arg1);
10678
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj = NULL;
10691 wxLogChain *arg1 = (wxLogChain *) 0 ;
10692 wxLog *arg2 = (wxLog *) 0 ;
10693 PyObject * obj0 = 0 ;
10694 PyObject * obj1 = 0 ;
10695 char *kwnames[] = {
10696 (char *) "self",(char *) "logger", NULL
10697 };
10698
10699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
10700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10701 if (SWIG_arg_fail(1)) SWIG_fail;
10702 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10703 if (SWIG_arg_fail(2)) SWIG_fail;
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->SetLog(arg2);
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 Py_INCREF(Py_None); resultobj = Py_None;
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj = NULL;
10720 wxLogChain *arg1 = (wxLogChain *) 0 ;
10721 bool arg2 ;
10722 PyObject * obj0 = 0 ;
10723 PyObject * obj1 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "self",(char *) "bDoPass", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
10729 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10730 if (SWIG_arg_fail(1)) SWIG_fail;
10731 {
10732 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10733 if (SWIG_arg_fail(2)) SWIG_fail;
10734 }
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 (arg1)->PassMessages(arg2);
10738
10739 wxPyEndAllowThreads(__tstate);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 }
10742 Py_INCREF(Py_None); resultobj = Py_None;
10743 return resultobj;
10744 fail:
10745 return NULL;
10746 }
10747
10748
10749 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10750 PyObject *resultobj = NULL;
10751 wxLogChain *arg1 = (wxLogChain *) 0 ;
10752 bool result;
10753 PyObject * obj0 = 0 ;
10754 char *kwnames[] = {
10755 (char *) "self", NULL
10756 };
10757
10758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
10759 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10760 if (SWIG_arg_fail(1)) SWIG_fail;
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 result = (bool)(arg1)->IsPassingMessages();
10764
10765 wxPyEndAllowThreads(__tstate);
10766 if (PyErr_Occurred()) SWIG_fail;
10767 }
10768 {
10769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10770 }
10771 return resultobj;
10772 fail:
10773 return NULL;
10774 }
10775
10776
10777 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
10778 PyObject *resultobj = NULL;
10779 wxLogChain *arg1 = (wxLogChain *) 0 ;
10780 wxLog *result;
10781 PyObject * obj0 = 0 ;
10782 char *kwnames[] = {
10783 (char *) "self", NULL
10784 };
10785
10786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
10787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10788 if (SWIG_arg_fail(1)) SWIG_fail;
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 result = (wxLog *)(arg1)->GetOldLog();
10792
10793 wxPyEndAllowThreads(__tstate);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 }
10796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
10797 return resultobj;
10798 fail:
10799 return NULL;
10800 }
10801
10802
10803 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
10804 PyObject *obj;
10805 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10806 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
10807 Py_INCREF(obj);
10808 return Py_BuildValue((char *)"");
10809 }
10810 static PyObject *_wrap_new_LogBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10811 PyObject *resultobj = NULL;
10812 wxLogBuffer *result;
10813 char *kwnames[] = {
10814 NULL
10815 };
10816
10817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogBuffer",kwnames)) goto fail;
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 result = (wxLogBuffer *)new wxLogBuffer();
10821
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
10825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogBuffer, 1);
10826 return resultobj;
10827 fail:
10828 return NULL;
10829 }
10830
10831
10832 static PyObject *_wrap_LogBuffer_GetBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10833 PyObject *resultobj = NULL;
10834 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
10835 wxString *result;
10836 PyObject * obj0 = 0 ;
10837 char *kwnames[] = {
10838 (char *) "self", NULL
10839 };
10840
10841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_GetBuffer",kwnames,&obj0)) goto fail;
10842 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0);
10843 if (SWIG_arg_fail(1)) SWIG_fail;
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 {
10847 wxString const &_result_ref = ((wxLogBuffer const *)arg1)->GetBuffer();
10848 result = (wxString *) &_result_ref;
10849 }
10850
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 {
10855 #if wxUSE_UNICODE
10856 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10857 #else
10858 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10859 #endif
10860 }
10861 return resultobj;
10862 fail:
10863 return NULL;
10864 }
10865
10866
10867 static PyObject *_wrap_LogBuffer_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
10868 PyObject *resultobj = NULL;
10869 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
10870 PyObject * obj0 = 0 ;
10871 char *kwnames[] = {
10872 (char *) "self", NULL
10873 };
10874
10875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_Flush",kwnames,&obj0)) goto fail;
10876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0);
10877 if (SWIG_arg_fail(1)) SWIG_fail;
10878 {
10879 PyThreadState* __tstate = wxPyBeginAllowThreads();
10880 (arg1)->Flush();
10881
10882 wxPyEndAllowThreads(__tstate);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 Py_INCREF(Py_None); resultobj = Py_None;
10886 return resultobj;
10887 fail:
10888 return NULL;
10889 }
10890
10891
10892 static PyObject * LogBuffer_swigregister(PyObject *, PyObject *args) {
10893 PyObject *obj;
10894 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10895 SWIG_TypeClientData(SWIGTYPE_p_wxLogBuffer, obj);
10896 Py_INCREF(obj);
10897 return Py_BuildValue((char *)"");
10898 }
10899 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
10900 PyObject *resultobj = NULL;
10901 unsigned long result;
10902 char *kwnames[] = {
10903 NULL
10904 };
10905
10906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (unsigned long)wxSysErrorCode();
10910
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 {
10915 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10916 }
10917 return resultobj;
10918 fail:
10919 return NULL;
10920 }
10921
10922
10923 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
10924 PyObject *resultobj = NULL;
10925 unsigned long arg1 = (unsigned long) 0 ;
10926 wxString result;
10927 PyObject * obj0 = 0 ;
10928 char *kwnames[] = {
10929 (char *) "nErrCode", NULL
10930 };
10931
10932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
10933 if (obj0) {
10934 {
10935 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
10936 if (SWIG_arg_fail(1)) SWIG_fail;
10937 }
10938 }
10939 {
10940 PyThreadState* __tstate = wxPyBeginAllowThreads();
10941 result = wxSysErrorMsg(arg1);
10942
10943 wxPyEndAllowThreads(__tstate);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 }
10946 {
10947 #if wxUSE_UNICODE
10948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10949 #else
10950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10951 #endif
10952 }
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj = NULL;
10961 wxString *arg1 = 0 ;
10962 bool temp1 = false ;
10963 PyObject * obj0 = 0 ;
10964 char *kwnames[] = {
10965 (char *) "msg", NULL
10966 };
10967
10968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
10969 {
10970 arg1 = wxString_in_helper(obj0);
10971 if (arg1 == NULL) SWIG_fail;
10972 temp1 = true;
10973 }
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 wxPyLogFatalError((wxString const &)*arg1);
10977
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 Py_INCREF(Py_None); resultobj = Py_None;
10982 {
10983 if (temp1)
10984 delete arg1;
10985 }
10986 return resultobj;
10987 fail:
10988 {
10989 if (temp1)
10990 delete arg1;
10991 }
10992 return NULL;
10993 }
10994
10995
10996 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
10997 PyObject *resultobj = NULL;
10998 wxString *arg1 = 0 ;
10999 bool temp1 = false ;
11000 PyObject * obj0 = 0 ;
11001 char *kwnames[] = {
11002 (char *) "msg", NULL
11003 };
11004
11005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
11006 {
11007 arg1 = wxString_in_helper(obj0);
11008 if (arg1 == NULL) SWIG_fail;
11009 temp1 = true;
11010 }
11011 {
11012 PyThreadState* __tstate = wxPyBeginAllowThreads();
11013 wxPyLogError((wxString const &)*arg1);
11014
11015 wxPyEndAllowThreads(__tstate);
11016 if (PyErr_Occurred()) SWIG_fail;
11017 }
11018 Py_INCREF(Py_None); resultobj = Py_None;
11019 {
11020 if (temp1)
11021 delete arg1;
11022 }
11023 return resultobj;
11024 fail:
11025 {
11026 if (temp1)
11027 delete arg1;
11028 }
11029 return NULL;
11030 }
11031
11032
11033 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
11034 PyObject *resultobj = NULL;
11035 wxString *arg1 = 0 ;
11036 bool temp1 = false ;
11037 PyObject * obj0 = 0 ;
11038 char *kwnames[] = {
11039 (char *) "msg", NULL
11040 };
11041
11042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
11043 {
11044 arg1 = wxString_in_helper(obj0);
11045 if (arg1 == NULL) SWIG_fail;
11046 temp1 = true;
11047 }
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 wxPyLogWarning((wxString const &)*arg1);
11051
11052 wxPyEndAllowThreads(__tstate);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 }
11055 Py_INCREF(Py_None); resultobj = Py_None;
11056 {
11057 if (temp1)
11058 delete arg1;
11059 }
11060 return resultobj;
11061 fail:
11062 {
11063 if (temp1)
11064 delete arg1;
11065 }
11066 return NULL;
11067 }
11068
11069
11070 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
11071 PyObject *resultobj = NULL;
11072 wxString *arg1 = 0 ;
11073 bool temp1 = false ;
11074 PyObject * obj0 = 0 ;
11075 char *kwnames[] = {
11076 (char *) "msg", NULL
11077 };
11078
11079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
11080 {
11081 arg1 = wxString_in_helper(obj0);
11082 if (arg1 == NULL) SWIG_fail;
11083 temp1 = true;
11084 }
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 wxPyLogMessage((wxString const &)*arg1);
11088
11089 wxPyEndAllowThreads(__tstate);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 }
11092 Py_INCREF(Py_None); resultobj = Py_None;
11093 {
11094 if (temp1)
11095 delete arg1;
11096 }
11097 return resultobj;
11098 fail:
11099 {
11100 if (temp1)
11101 delete arg1;
11102 }
11103 return NULL;
11104 }
11105
11106
11107 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11108 PyObject *resultobj = NULL;
11109 wxString *arg1 = 0 ;
11110 bool temp1 = false ;
11111 PyObject * obj0 = 0 ;
11112 char *kwnames[] = {
11113 (char *) "msg", NULL
11114 };
11115
11116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
11117 {
11118 arg1 = wxString_in_helper(obj0);
11119 if (arg1 == NULL) SWIG_fail;
11120 temp1 = true;
11121 }
11122 {
11123 PyThreadState* __tstate = wxPyBeginAllowThreads();
11124 wxPyLogInfo((wxString const &)*arg1);
11125
11126 wxPyEndAllowThreads(__tstate);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 }
11129 Py_INCREF(Py_None); resultobj = Py_None;
11130 {
11131 if (temp1)
11132 delete arg1;
11133 }
11134 return resultobj;
11135 fail:
11136 {
11137 if (temp1)
11138 delete arg1;
11139 }
11140 return NULL;
11141 }
11142
11143
11144 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
11145 PyObject *resultobj = NULL;
11146 wxString *arg1 = 0 ;
11147 bool temp1 = false ;
11148 PyObject * obj0 = 0 ;
11149 char *kwnames[] = {
11150 (char *) "msg", NULL
11151 };
11152
11153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
11154 {
11155 arg1 = wxString_in_helper(obj0);
11156 if (arg1 == NULL) SWIG_fail;
11157 temp1 = true;
11158 }
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 wxPyLogDebug((wxString const &)*arg1);
11162
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 Py_INCREF(Py_None); resultobj = Py_None;
11167 {
11168 if (temp1)
11169 delete arg1;
11170 }
11171 return resultobj;
11172 fail:
11173 {
11174 if (temp1)
11175 delete arg1;
11176 }
11177 return NULL;
11178 }
11179
11180
11181 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
11182 PyObject *resultobj = NULL;
11183 wxString *arg1 = 0 ;
11184 bool temp1 = false ;
11185 PyObject * obj0 = 0 ;
11186 char *kwnames[] = {
11187 (char *) "msg", NULL
11188 };
11189
11190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
11191 {
11192 arg1 = wxString_in_helper(obj0);
11193 if (arg1 == NULL) SWIG_fail;
11194 temp1 = true;
11195 }
11196 {
11197 PyThreadState* __tstate = wxPyBeginAllowThreads();
11198 wxPyLogVerbose((wxString const &)*arg1);
11199
11200 wxPyEndAllowThreads(__tstate);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 }
11203 Py_INCREF(Py_None); resultobj = Py_None;
11204 {
11205 if (temp1)
11206 delete arg1;
11207 }
11208 return resultobj;
11209 fail:
11210 {
11211 if (temp1)
11212 delete arg1;
11213 }
11214 return NULL;
11215 }
11216
11217
11218 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
11219 PyObject *resultobj = NULL;
11220 wxString *arg1 = 0 ;
11221 bool temp1 = false ;
11222 PyObject * obj0 = 0 ;
11223 char *kwnames[] = {
11224 (char *) "msg", NULL
11225 };
11226
11227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
11228 {
11229 arg1 = wxString_in_helper(obj0);
11230 if (arg1 == NULL) SWIG_fail;
11231 temp1 = true;
11232 }
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 wxPyLogStatus((wxString const &)*arg1);
11236
11237 wxPyEndAllowThreads(__tstate);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 }
11240 Py_INCREF(Py_None); resultobj = Py_None;
11241 {
11242 if (temp1)
11243 delete arg1;
11244 }
11245 return resultobj;
11246 fail:
11247 {
11248 if (temp1)
11249 delete arg1;
11250 }
11251 return NULL;
11252 }
11253
11254
11255 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj = NULL;
11257 wxFrame *arg1 = (wxFrame *) 0 ;
11258 wxString *arg2 = 0 ;
11259 bool temp2 = false ;
11260 PyObject * obj0 = 0 ;
11261 PyObject * obj1 = 0 ;
11262 char *kwnames[] = {
11263 (char *) "pFrame",(char *) "msg", NULL
11264 };
11265
11266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
11267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
11268 if (SWIG_arg_fail(1)) SWIG_fail;
11269 {
11270 arg2 = wxString_in_helper(obj1);
11271 if (arg2 == NULL) SWIG_fail;
11272 temp2 = true;
11273 }
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 wxPyLogStatusFrame(arg1,(wxString const &)*arg2);
11277
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 Py_INCREF(Py_None); resultobj = Py_None;
11282 {
11283 if (temp2)
11284 delete arg2;
11285 }
11286 return resultobj;
11287 fail:
11288 {
11289 if (temp2)
11290 delete arg2;
11291 }
11292 return NULL;
11293 }
11294
11295
11296 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
11297 PyObject *resultobj = NULL;
11298 wxString *arg1 = 0 ;
11299 bool temp1 = false ;
11300 PyObject * obj0 = 0 ;
11301 char *kwnames[] = {
11302 (char *) "msg", NULL
11303 };
11304
11305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
11306 {
11307 arg1 = wxString_in_helper(obj0);
11308 if (arg1 == NULL) SWIG_fail;
11309 temp1 = true;
11310 }
11311 {
11312 PyThreadState* __tstate = wxPyBeginAllowThreads();
11313 wxPyLogSysError((wxString const &)*arg1);
11314
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 Py_INCREF(Py_None); resultobj = Py_None;
11319 {
11320 if (temp1)
11321 delete arg1;
11322 }
11323 return resultobj;
11324 fail:
11325 {
11326 if (temp1)
11327 delete arg1;
11328 }
11329 return NULL;
11330 }
11331
11332
11333 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj = NULL;
11335 unsigned long arg1 ;
11336 wxString *arg2 = 0 ;
11337 bool temp2 = false ;
11338 PyObject * obj0 = 0 ;
11339 PyObject * obj1 = 0 ;
11340 char *kwnames[] = {
11341 (char *) "level",(char *) "msg", NULL
11342 };
11343
11344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
11345 {
11346 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
11347 if (SWIG_arg_fail(1)) SWIG_fail;
11348 }
11349 {
11350 arg2 = wxString_in_helper(obj1);
11351 if (arg2 == NULL) SWIG_fail;
11352 temp2 = true;
11353 }
11354 {
11355 PyThreadState* __tstate = wxPyBeginAllowThreads();
11356 wxPyLogGeneric(arg1,(wxString const &)*arg2);
11357
11358 wxPyEndAllowThreads(__tstate);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 }
11361 Py_INCREF(Py_None); resultobj = Py_None;
11362 {
11363 if (temp2)
11364 delete arg2;
11365 }
11366 return resultobj;
11367 fail:
11368 {
11369 if (temp2)
11370 delete arg2;
11371 }
11372 return NULL;
11373 }
11374
11375
11376 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
11377 PyObject *resultobj = NULL;
11378 unsigned long arg1 ;
11379 wxString *arg2 = 0 ;
11380 bool temp2 = false ;
11381 PyObject * obj0 = 0 ;
11382 PyObject * obj1 = 0 ;
11383
11384 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
11385 {
11386 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
11387 if (SWIG_arg_fail(1)) SWIG_fail;
11388 }
11389 {
11390 arg2 = wxString_in_helper(obj1);
11391 if (arg2 == NULL) SWIG_fail;
11392 temp2 = true;
11393 }
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 wxPyLogTrace(arg1,(wxString const &)*arg2);
11397
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 Py_INCREF(Py_None); resultobj = Py_None;
11402 {
11403 if (temp2)
11404 delete arg2;
11405 }
11406 return resultobj;
11407 fail:
11408 {
11409 if (temp2)
11410 delete arg2;
11411 }
11412 return NULL;
11413 }
11414
11415
11416 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
11417 PyObject *resultobj = NULL;
11418 wxString *arg1 = 0 ;
11419 wxString *arg2 = 0 ;
11420 bool temp1 = false ;
11421 bool temp2 = false ;
11422 PyObject * obj0 = 0 ;
11423 PyObject * obj1 = 0 ;
11424
11425 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
11426 {
11427 arg1 = wxString_in_helper(obj0);
11428 if (arg1 == NULL) SWIG_fail;
11429 temp1 = true;
11430 }
11431 {
11432 arg2 = wxString_in_helper(obj1);
11433 if (arg2 == NULL) SWIG_fail;
11434 temp2 = true;
11435 }
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
11439
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 Py_INCREF(Py_None); resultobj = Py_None;
11444 {
11445 if (temp1)
11446 delete arg1;
11447 }
11448 {
11449 if (temp2)
11450 delete arg2;
11451 }
11452 return resultobj;
11453 fail:
11454 {
11455 if (temp1)
11456 delete arg1;
11457 }
11458 {
11459 if (temp2)
11460 delete arg2;
11461 }
11462 return NULL;
11463 }
11464
11465
11466 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
11467 int argc;
11468 PyObject *argv[3];
11469 int ii;
11470
11471 argc = PyObject_Length(args);
11472 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11473 argv[ii] = PyTuple_GetItem(args,ii);
11474 }
11475 if (argc == 2) {
11476 int _v;
11477 {
11478 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11479 }
11480 if (_v) {
11481 {
11482 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11483 }
11484 if (_v) {
11485 return _wrap_LogTrace__SWIG_1(self,args);
11486 }
11487 }
11488 }
11489 if (argc == 2) {
11490 int _v;
11491 _v = SWIG_Check_unsigned_SS_long(argv[0]);
11492 if (_v) {
11493 {
11494 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11495 }
11496 if (_v) {
11497 return _wrap_LogTrace__SWIG_0(self,args);
11498 }
11499 }
11500 }
11501
11502 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'");
11503 return NULL;
11504 }
11505
11506
11507 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
11508 PyObject *resultobj = NULL;
11509 wxString *arg1 = 0 ;
11510 wxString *arg2 = 0 ;
11511 bool temp1 = false ;
11512 bool temp2 = false ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 char *kwnames[] = {
11516 (char *) "title",(char *) "text", NULL
11517 };
11518
11519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
11520 {
11521 arg1 = wxString_in_helper(obj0);
11522 if (arg1 == NULL) SWIG_fail;
11523 temp1 = true;
11524 }
11525 {
11526 arg2 = wxString_in_helper(obj1);
11527 if (arg2 == NULL) SWIG_fail;
11528 temp2 = true;
11529 }
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 Py_INCREF(Py_None); resultobj = Py_None;
11538 {
11539 if (temp1)
11540 delete arg1;
11541 }
11542 {
11543 if (temp2)
11544 delete arg2;
11545 }
11546 return resultobj;
11547 fail:
11548 {
11549 if (temp1)
11550 delete arg1;
11551 }
11552 {
11553 if (temp2)
11554 delete arg2;
11555 }
11556 return NULL;
11557 }
11558
11559
11560 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj = NULL;
11562 wxLogNull *result;
11563 char *kwnames[] = {
11564 NULL
11565 };
11566
11567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 result = (wxLogNull *)new wxLogNull();
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
11576 return resultobj;
11577 fail:
11578 return NULL;
11579 }
11580
11581
11582 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
11583 PyObject *resultobj = NULL;
11584 wxLogNull *arg1 = (wxLogNull *) 0 ;
11585 PyObject * obj0 = 0 ;
11586 char *kwnames[] = {
11587 (char *) "self", NULL
11588 };
11589
11590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
11591 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogNull, SWIG_POINTER_EXCEPTION | 0);
11592 if (SWIG_arg_fail(1)) SWIG_fail;
11593 {
11594 PyThreadState* __tstate = wxPyBeginAllowThreads();
11595 delete arg1;
11596
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 Py_INCREF(Py_None); resultobj = Py_None;
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
11608 PyObject *obj;
11609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11610 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
11611 Py_INCREF(obj);
11612 return Py_BuildValue((char *)"");
11613 }
11614 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj = NULL;
11616 wxPyLog *result;
11617 char *kwnames[] = {
11618 NULL
11619 };
11620
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
11622 {
11623 PyThreadState* __tstate = wxPyBeginAllowThreads();
11624 result = (wxPyLog *)new wxPyLog();
11625
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
11630 return resultobj;
11631 fail:
11632 return NULL;
11633 }
11634
11635
11636 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11637 PyObject *resultobj = NULL;
11638 wxPyLog *arg1 = (wxPyLog *) 0 ;
11639 PyObject *arg2 = (PyObject *) 0 ;
11640 PyObject *arg3 = (PyObject *) 0 ;
11641 PyObject * obj0 = 0 ;
11642 PyObject * obj1 = 0 ;
11643 PyObject * obj2 = 0 ;
11644 char *kwnames[] = {
11645 (char *) "self",(char *) "self",(char *) "_class", NULL
11646 };
11647
11648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
11649 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyLog, SWIG_POINTER_EXCEPTION | 0);
11650 if (SWIG_arg_fail(1)) SWIG_fail;
11651 arg2 = obj1;
11652 arg3 = obj2;
11653 {
11654 PyThreadState* __tstate = wxPyBeginAllowThreads();
11655 (arg1)->_setCallbackInfo(arg2,arg3);
11656
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 Py_INCREF(Py_None); resultobj = Py_None;
11661 return resultobj;
11662 fail:
11663 return NULL;
11664 }
11665
11666
11667 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
11668 PyObject *obj;
11669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11670 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
11671 Py_INCREF(obj);
11672 return Py_BuildValue((char *)"");
11673 }
11674 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
11675 PyObject *resultobj = NULL;
11676 int arg1 ;
11677 wxSignal arg2 = (wxSignal) wxSIGTERM ;
11678 int arg3 = (int) wxKILL_NOCHILDREN ;
11679 wxKillError result;
11680 PyObject * obj0 = 0 ;
11681 PyObject * obj1 = 0 ;
11682 PyObject * obj2 = 0 ;
11683 char *kwnames[] = {
11684 (char *) "pid",(char *) "sig",(char *) "flags", NULL
11685 };
11686
11687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail;
11688 {
11689 arg1 = static_cast<int >(SWIG_As_int(obj0));
11690 if (SWIG_arg_fail(1)) SWIG_fail;
11691 }
11692 if (obj1) {
11693 {
11694 arg2 = static_cast<wxSignal >(SWIG_As_int(obj1));
11695 if (SWIG_arg_fail(2)) SWIG_fail;
11696 }
11697 }
11698 if (obj2) {
11699 {
11700 arg3 = static_cast<int >(SWIG_As_int(obj2));
11701 if (SWIG_arg_fail(3)) SWIG_fail;
11702 }
11703 }
11704 {
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 result = (wxKillError)wxPyProcess::Kill(arg1,arg2,arg3);
11707
11708 wxPyEndAllowThreads(__tstate);
11709 if (PyErr_Occurred()) SWIG_fail;
11710 }
11711 resultobj = SWIG_From_int((result));
11712 return resultobj;
11713 fail:
11714 return NULL;
11715 }
11716
11717
11718 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
11719 PyObject *resultobj = NULL;
11720 int arg1 ;
11721 bool result;
11722 PyObject * obj0 = 0 ;
11723 char *kwnames[] = {
11724 (char *) "pid", NULL
11725 };
11726
11727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
11728 {
11729 arg1 = static_cast<int >(SWIG_As_int(obj0));
11730 if (SWIG_arg_fail(1)) SWIG_fail;
11731 }
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 result = (bool)wxPyProcess::Exists(arg1);
11735
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 {
11740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11741 }
11742 return resultobj;
11743 fail:
11744 return NULL;
11745 }
11746
11747
11748 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
11749 PyObject *resultobj = NULL;
11750 wxString *arg1 = 0 ;
11751 int arg2 = (int) wxEXEC_ASYNC ;
11752 wxPyProcess *result;
11753 bool temp1 = false ;
11754 PyObject * obj0 = 0 ;
11755 PyObject * obj1 = 0 ;
11756 char *kwnames[] = {
11757 (char *) "cmd",(char *) "flags", NULL
11758 };
11759
11760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
11761 {
11762 arg1 = wxString_in_helper(obj0);
11763 if (arg1 == NULL) SWIG_fail;
11764 temp1 = true;
11765 }
11766 if (obj1) {
11767 {
11768 arg2 = static_cast<int >(SWIG_As_int(obj1));
11769 if (SWIG_arg_fail(2)) SWIG_fail;
11770 }
11771 }
11772 {
11773 PyThreadState* __tstate = wxPyBeginAllowThreads();
11774 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
11775
11776 wxPyEndAllowThreads(__tstate);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 }
11779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
11780 {
11781 if (temp1)
11782 delete arg1;
11783 }
11784 return resultobj;
11785 fail:
11786 {
11787 if (temp1)
11788 delete arg1;
11789 }
11790 return NULL;
11791 }
11792
11793
11794 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj = NULL;
11796 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
11797 int arg2 = (int) -1 ;
11798 wxPyProcess *result;
11799 PyObject * obj0 = 0 ;
11800 PyObject * obj1 = 0 ;
11801 char *kwnames[] = {
11802 (char *) "parent",(char *) "id", NULL
11803 };
11804
11805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
11806 if (obj0) {
11807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
11808 if (SWIG_arg_fail(1)) SWIG_fail;
11809 }
11810 if (obj1) {
11811 {
11812 arg2 = static_cast<int >(SWIG_As_int(obj1));
11813 if (SWIG_arg_fail(2)) SWIG_fail;
11814 }
11815 }
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj = NULL;
11832 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11833 PyObject *arg2 = (PyObject *) 0 ;
11834 PyObject *arg3 = (PyObject *) 0 ;
11835 PyObject * obj0 = 0 ;
11836 PyObject * obj1 = 0 ;
11837 PyObject * obj2 = 0 ;
11838 char *kwnames[] = {
11839 (char *) "self",(char *) "self",(char *) "_class", NULL
11840 };
11841
11842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
11843 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11844 if (SWIG_arg_fail(1)) SWIG_fail;
11845 arg2 = obj1;
11846 arg3 = obj2;
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 (arg1)->_setCallbackInfo(arg2,arg3);
11850
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 Py_INCREF(Py_None); resultobj = Py_None;
11855 return resultobj;
11856 fail:
11857 return NULL;
11858 }
11859
11860
11861 static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
11862 PyObject *resultobj = NULL;
11863 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11864 int arg2 ;
11865 int arg3 ;
11866 PyObject * obj0 = 0 ;
11867 PyObject * obj1 = 0 ;
11868 PyObject * obj2 = 0 ;
11869 char *kwnames[] = {
11870 (char *) "self",(char *) "pid",(char *) "status", NULL
11871 };
11872
11873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
11874 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11875 if (SWIG_arg_fail(1)) SWIG_fail;
11876 {
11877 arg2 = static_cast<int >(SWIG_As_int(obj1));
11878 if (SWIG_arg_fail(2)) SWIG_fail;
11879 }
11880 {
11881 arg3 = static_cast<int >(SWIG_As_int(obj2));
11882 if (SWIG_arg_fail(3)) SWIG_fail;
11883 }
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 (arg1)->base_OnTerminate(arg2,arg3);
11887
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 Py_INCREF(Py_None); resultobj = Py_None;
11892 return resultobj;
11893 fail:
11894 return NULL;
11895 }
11896
11897
11898 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
11899 PyObject *resultobj = NULL;
11900 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11901 PyObject * obj0 = 0 ;
11902 char *kwnames[] = {
11903 (char *) "self", NULL
11904 };
11905
11906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
11907 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11908 if (SWIG_arg_fail(1)) SWIG_fail;
11909 {
11910 PyThreadState* __tstate = wxPyBeginAllowThreads();
11911 (arg1)->Redirect();
11912
11913 wxPyEndAllowThreads(__tstate);
11914 if (PyErr_Occurred()) SWIG_fail;
11915 }
11916 Py_INCREF(Py_None); resultobj = Py_None;
11917 return resultobj;
11918 fail:
11919 return NULL;
11920 }
11921
11922
11923 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
11924 PyObject *resultobj = NULL;
11925 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11926 bool result;
11927 PyObject * obj0 = 0 ;
11928 char *kwnames[] = {
11929 (char *) "self", NULL
11930 };
11931
11932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
11933 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11934 if (SWIG_arg_fail(1)) SWIG_fail;
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (bool)(arg1)->IsRedirected();
11938
11939 wxPyEndAllowThreads(__tstate);
11940 if (PyErr_Occurred()) SWIG_fail;
11941 }
11942 {
11943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11944 }
11945 return resultobj;
11946 fail:
11947 return NULL;
11948 }
11949
11950
11951 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj = NULL;
11953 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11954 PyObject * obj0 = 0 ;
11955 char *kwnames[] = {
11956 (char *) "self", NULL
11957 };
11958
11959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
11960 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11961 if (SWIG_arg_fail(1)) SWIG_fail;
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 (arg1)->Detach();
11965
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 Py_INCREF(Py_None); resultobj = Py_None;
11970 return resultobj;
11971 fail:
11972 return NULL;
11973 }
11974
11975
11976 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
11977 PyObject *resultobj = NULL;
11978 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11979 wxInputStream *result;
11980 PyObject * obj0 = 0 ;
11981 char *kwnames[] = {
11982 (char *) "self", NULL
11983 };
11984
11985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
11986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11987 if (SWIG_arg_fail(1)) SWIG_fail;
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 result = (wxInputStream *)(arg1)->GetInputStream();
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 {
11996 wxPyInputStream * _ptr = NULL;
11997
11998 if (result) {
11999 _ptr = new wxPyInputStream(result);
12000 }
12001 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12002 }
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
12010 PyObject *resultobj = NULL;
12011 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12012 wxInputStream *result;
12013 PyObject * obj0 = 0 ;
12014 char *kwnames[] = {
12015 (char *) "self", NULL
12016 };
12017
12018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
12019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12020 if (SWIG_arg_fail(1)) SWIG_fail;
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 result = (wxInputStream *)(arg1)->GetErrorStream();
12024
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 {
12029 wxPyInputStream * _ptr = NULL;
12030
12031 if (result) {
12032 _ptr = new wxPyInputStream(result);
12033 }
12034 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12035 }
12036 return resultobj;
12037 fail:
12038 return NULL;
12039 }
12040
12041
12042 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
12043 PyObject *resultobj = NULL;
12044 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12045 wxOutputStream *result;
12046 PyObject * obj0 = 0 ;
12047 char *kwnames[] = {
12048 (char *) "self", NULL
12049 };
12050
12051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
12052 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12053 if (SWIG_arg_fail(1)) SWIG_fail;
12054 {
12055 PyThreadState* __tstate = wxPyBeginAllowThreads();
12056 result = (wxOutputStream *)(arg1)->GetOutputStream();
12057
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
12062 return resultobj;
12063 fail:
12064 return NULL;
12065 }
12066
12067
12068 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj = NULL;
12070 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12071 PyObject * obj0 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self", NULL
12074 };
12075
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
12077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12078 if (SWIG_arg_fail(1)) SWIG_fail;
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->CloseOutput();
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 Py_INCREF(Py_None); resultobj = Py_None;
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj = NULL;
12095 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12096 bool result;
12097 PyObject * obj0 = 0 ;
12098 char *kwnames[] = {
12099 (char *) "self", NULL
12100 };
12101
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
12103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12104 if (SWIG_arg_fail(1)) SWIG_fail;
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
12108
12109 wxPyEndAllowThreads(__tstate);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 {
12113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12114 }
12115 return resultobj;
12116 fail:
12117 return NULL;
12118 }
12119
12120
12121 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
12122 PyObject *resultobj = NULL;
12123 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12124 bool result;
12125 PyObject * obj0 = 0 ;
12126 char *kwnames[] = {
12127 (char *) "self", NULL
12128 };
12129
12130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
12131 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12132 if (SWIG_arg_fail(1)) SWIG_fail;
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
12136
12137 wxPyEndAllowThreads(__tstate);
12138 if (PyErr_Occurred()) SWIG_fail;
12139 }
12140 {
12141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12142 }
12143 return resultobj;
12144 fail:
12145 return NULL;
12146 }
12147
12148
12149 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
12150 PyObject *resultobj = NULL;
12151 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12152 bool result;
12153 PyObject * obj0 = 0 ;
12154 char *kwnames[] = {
12155 (char *) "self", NULL
12156 };
12157
12158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
12159 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12160 if (SWIG_arg_fail(1)) SWIG_fail;
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
12164
12165 wxPyEndAllowThreads(__tstate);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 {
12169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12170 }
12171 return resultobj;
12172 fail:
12173 return NULL;
12174 }
12175
12176
12177 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
12178 PyObject *obj;
12179 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12180 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
12181 Py_INCREF(obj);
12182 return Py_BuildValue((char *)"");
12183 }
12184 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
12185 PyObject *resultobj = NULL;
12186 int arg1 = (int) 0 ;
12187 int arg2 = (int) 0 ;
12188 int arg3 = (int) 0 ;
12189 wxProcessEvent *result;
12190 PyObject * obj0 = 0 ;
12191 PyObject * obj1 = 0 ;
12192 PyObject * obj2 = 0 ;
12193 char *kwnames[] = {
12194 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
12195 };
12196
12197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12198 if (obj0) {
12199 {
12200 arg1 = static_cast<int >(SWIG_As_int(obj0));
12201 if (SWIG_arg_fail(1)) SWIG_fail;
12202 }
12203 }
12204 if (obj1) {
12205 {
12206 arg2 = static_cast<int >(SWIG_As_int(obj1));
12207 if (SWIG_arg_fail(2)) SWIG_fail;
12208 }
12209 }
12210 if (obj2) {
12211 {
12212 arg3 = static_cast<int >(SWIG_As_int(obj2));
12213 if (SWIG_arg_fail(3)) SWIG_fail;
12214 }
12215 }
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
12219
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj = NULL;
12232 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12233 int result;
12234 PyObject * obj0 = 0 ;
12235 char *kwnames[] = {
12236 (char *) "self", NULL
12237 };
12238
12239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
12240 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12241 if (SWIG_arg_fail(1)) SWIG_fail;
12242 {
12243 PyThreadState* __tstate = wxPyBeginAllowThreads();
12244 result = (int)(arg1)->GetPid();
12245
12246 wxPyEndAllowThreads(__tstate);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 }
12249 {
12250 resultobj = SWIG_From_int(static_cast<int >(result));
12251 }
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj = NULL;
12260 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12261 int result;
12262 PyObject * obj0 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "self", NULL
12265 };
12266
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
12268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12269 if (SWIG_arg_fail(1)) SWIG_fail;
12270 {
12271 PyThreadState* __tstate = wxPyBeginAllowThreads();
12272 result = (int)(arg1)->GetExitCode();
12273
12274 wxPyEndAllowThreads(__tstate);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 {
12278 resultobj = SWIG_From_int(static_cast<int >(result));
12279 }
12280 return resultobj;
12281 fail:
12282 return NULL;
12283 }
12284
12285
12286 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
12287 PyObject *resultobj = NULL;
12288 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12289 int arg2 ;
12290 PyObject * obj0 = 0 ;
12291 PyObject * obj1 = 0 ;
12292 char *kwnames[] = {
12293 (char *) "self",(char *) "m_pid", NULL
12294 };
12295
12296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
12297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12298 if (SWIG_arg_fail(1)) SWIG_fail;
12299 {
12300 arg2 = static_cast<int >(SWIG_As_int(obj1));
12301 if (SWIG_arg_fail(2)) SWIG_fail;
12302 }
12303 if (arg1) (arg1)->m_pid = arg2;
12304
12305 Py_INCREF(Py_None); resultobj = Py_None;
12306 return resultobj;
12307 fail:
12308 return NULL;
12309 }
12310
12311
12312 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
12313 PyObject *resultobj = NULL;
12314 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12315 int result;
12316 PyObject * obj0 = 0 ;
12317 char *kwnames[] = {
12318 (char *) "self", NULL
12319 };
12320
12321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
12322 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12323 if (SWIG_arg_fail(1)) SWIG_fail;
12324 result = (int) ((arg1)->m_pid);
12325
12326 {
12327 resultobj = SWIG_From_int(static_cast<int >(result));
12328 }
12329 return resultobj;
12330 fail:
12331 return NULL;
12332 }
12333
12334
12335 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
12336 PyObject *resultobj = NULL;
12337 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12338 int arg2 ;
12339 PyObject * obj0 = 0 ;
12340 PyObject * obj1 = 0 ;
12341 char *kwnames[] = {
12342 (char *) "self",(char *) "m_exitcode", NULL
12343 };
12344
12345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
12346 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12347 if (SWIG_arg_fail(1)) SWIG_fail;
12348 {
12349 arg2 = static_cast<int >(SWIG_As_int(obj1));
12350 if (SWIG_arg_fail(2)) SWIG_fail;
12351 }
12352 if (arg1) (arg1)->m_exitcode = arg2;
12353
12354 Py_INCREF(Py_None); resultobj = Py_None;
12355 return resultobj;
12356 fail:
12357 return NULL;
12358 }
12359
12360
12361 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj = NULL;
12363 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12364 int result;
12365 PyObject * obj0 = 0 ;
12366 char *kwnames[] = {
12367 (char *) "self", NULL
12368 };
12369
12370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
12371 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12372 if (SWIG_arg_fail(1)) SWIG_fail;
12373 result = (int) ((arg1)->m_exitcode);
12374
12375 {
12376 resultobj = SWIG_From_int(static_cast<int >(result));
12377 }
12378 return resultobj;
12379 fail:
12380 return NULL;
12381 }
12382
12383
12384 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
12385 PyObject *obj;
12386 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12387 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
12388 Py_INCREF(obj);
12389 return Py_BuildValue((char *)"");
12390 }
12391 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj = NULL;
12393 wxString *arg1 = 0 ;
12394 int arg2 = (int) wxEXEC_ASYNC ;
12395 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
12396 long result;
12397 bool temp1 = false ;
12398 PyObject * obj0 = 0 ;
12399 PyObject * obj1 = 0 ;
12400 PyObject * obj2 = 0 ;
12401 char *kwnames[] = {
12402 (char *) "command",(char *) "flags",(char *) "process", NULL
12403 };
12404
12405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
12406 {
12407 arg1 = wxString_in_helper(obj0);
12408 if (arg1 == NULL) SWIG_fail;
12409 temp1 = true;
12410 }
12411 if (obj1) {
12412 {
12413 arg2 = static_cast<int >(SWIG_As_int(obj1));
12414 if (SWIG_arg_fail(2)) SWIG_fail;
12415 }
12416 }
12417 if (obj2) {
12418 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12419 if (SWIG_arg_fail(3)) SWIG_fail;
12420 }
12421 {
12422 if (!wxPyCheckForApp()) SWIG_fail;
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
12425
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 {
12430 resultobj = SWIG_From_long(static_cast<long >(result));
12431 }
12432 {
12433 if (temp1)
12434 delete arg1;
12435 }
12436 return resultobj;
12437 fail:
12438 {
12439 if (temp1)
12440 delete arg1;
12441 }
12442 return NULL;
12443 }
12444
12445
12446 static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
12447 PyObject *resultobj = NULL;
12448 long arg1 ;
12449 wxSignal arg2 = (wxSignal) wxSIGTERM ;
12450 wxKillError *arg3 = (wxKillError *) 0 ;
12451 int arg4 = (int) wxKILL_NOCHILDREN ;
12452 int result;
12453 wxKillError temp3 ;
12454 PyObject * obj0 = 0 ;
12455 PyObject * obj1 = 0 ;
12456 PyObject * obj2 = 0 ;
12457 char *kwnames[] = {
12458 (char *) "pid",(char *) "sig",(char *) "flags", NULL
12459 };
12460
12461 {
12462 arg3 = &temp3;
12463 }
12464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail;
12465 {
12466 arg1 = static_cast<long >(SWIG_As_long(obj0));
12467 if (SWIG_arg_fail(1)) SWIG_fail;
12468 }
12469 if (obj1) {
12470 {
12471 arg2 = static_cast<wxSignal >(SWIG_As_int(obj1));
12472 if (SWIG_arg_fail(2)) SWIG_fail;
12473 }
12474 }
12475 if (obj2) {
12476 {
12477 arg4 = static_cast<int >(SWIG_As_int(obj2));
12478 if (SWIG_arg_fail(4)) SWIG_fail;
12479 }
12480 }
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 result = (int)wxKill(arg1,arg2,arg3,arg4);
12484
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 {
12489 resultobj = SWIG_From_int(static_cast<int >(result));
12490 }
12491 {
12492 PyObject* o;
12493 o = PyInt_FromLong((long) (*arg3));
12494 resultobj = t_output_helper(resultobj, o);
12495 }
12496 return resultobj;
12497 fail:
12498 return NULL;
12499 }
12500
12501
12502 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
12503 PyObject *resultobj = NULL;
12504 int arg1 = (int) wxJOYSTICK1 ;
12505 wxJoystick *result;
12506 PyObject * obj0 = 0 ;
12507 char *kwnames[] = {
12508 (char *) "joystick", NULL
12509 };
12510
12511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
12512 if (obj0) {
12513 {
12514 arg1 = static_cast<int >(SWIG_As_int(obj0));
12515 if (SWIG_arg_fail(1)) SWIG_fail;
12516 }
12517 }
12518 {
12519 if (!wxPyCheckForApp()) SWIG_fail;
12520 PyThreadState* __tstate = wxPyBeginAllowThreads();
12521 result = (wxJoystick *)new wxJoystick(arg1);
12522
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
12527 return resultobj;
12528 fail:
12529 return NULL;
12530 }
12531
12532
12533 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
12534 PyObject *resultobj = NULL;
12535 wxJoystick *arg1 = (wxJoystick *) 0 ;
12536 PyObject * obj0 = 0 ;
12537 char *kwnames[] = {
12538 (char *) "self", NULL
12539 };
12540
12541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
12542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12543 if (SWIG_arg_fail(1)) SWIG_fail;
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 delete arg1;
12547
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 Py_INCREF(Py_None); resultobj = Py_None;
12552 return resultobj;
12553 fail:
12554 return NULL;
12555 }
12556
12557
12558 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12559 PyObject *resultobj = NULL;
12560 wxJoystick *arg1 = (wxJoystick *) 0 ;
12561 wxPoint result;
12562 PyObject * obj0 = 0 ;
12563 char *kwnames[] = {
12564 (char *) "self", NULL
12565 };
12566
12567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
12568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12569 if (SWIG_arg_fail(1)) SWIG_fail;
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 result = (arg1)->GetPosition();
12573
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 {
12578 wxPoint * resultptr;
12579 resultptr = new wxPoint(static_cast<wxPoint & >(result));
12580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
12581 }
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj = NULL;
12590 wxJoystick *arg1 = (wxJoystick *) 0 ;
12591 int result;
12592 PyObject * obj0 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
12598 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12599 if (SWIG_arg_fail(1)) SWIG_fail;
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 result = (int)(arg1)->GetZPosition();
12603
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 {
12608 resultobj = SWIG_From_int(static_cast<int >(result));
12609 }
12610 return resultobj;
12611 fail:
12612 return NULL;
12613 }
12614
12615
12616 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
12617 PyObject *resultobj = NULL;
12618 wxJoystick *arg1 = (wxJoystick *) 0 ;
12619 int result;
12620 PyObject * obj0 = 0 ;
12621 char *kwnames[] = {
12622 (char *) "self", NULL
12623 };
12624
12625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
12626 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12627 if (SWIG_arg_fail(1)) SWIG_fail;
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 result = (int)(arg1)->GetButtonState();
12631
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 {
12636 resultobj = SWIG_From_int(static_cast<int >(result));
12637 }
12638 return resultobj;
12639 fail:
12640 return NULL;
12641 }
12642
12643
12644 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12645 PyObject *resultobj = NULL;
12646 wxJoystick *arg1 = (wxJoystick *) 0 ;
12647 int result;
12648 PyObject * obj0 = 0 ;
12649 char *kwnames[] = {
12650 (char *) "self", NULL
12651 };
12652
12653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
12654 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12655 if (SWIG_arg_fail(1)) SWIG_fail;
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 result = (int)(arg1)->GetPOVPosition();
12659
12660 wxPyEndAllowThreads(__tstate);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 {
12664 resultobj = SWIG_From_int(static_cast<int >(result));
12665 }
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj = NULL;
12674 wxJoystick *arg1 = (wxJoystick *) 0 ;
12675 int result;
12676 PyObject * obj0 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
12682 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12683 if (SWIG_arg_fail(1)) SWIG_fail;
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 result = (int)(arg1)->GetPOVCTSPosition();
12687
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 {
12692 resultobj = SWIG_From_int(static_cast<int >(result));
12693 }
12694 return resultobj;
12695 fail:
12696 return NULL;
12697 }
12698
12699
12700 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj = NULL;
12702 wxJoystick *arg1 = (wxJoystick *) 0 ;
12703 int result;
12704 PyObject * obj0 = 0 ;
12705 char *kwnames[] = {
12706 (char *) "self", NULL
12707 };
12708
12709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
12710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12711 if (SWIG_arg_fail(1)) SWIG_fail;
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 result = (int)(arg1)->GetRudderPosition();
12715
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 {
12720 resultobj = SWIG_From_int(static_cast<int >(result));
12721 }
12722 return resultobj;
12723 fail:
12724 return NULL;
12725 }
12726
12727
12728 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12729 PyObject *resultobj = NULL;
12730 wxJoystick *arg1 = (wxJoystick *) 0 ;
12731 int result;
12732 PyObject * obj0 = 0 ;
12733 char *kwnames[] = {
12734 (char *) "self", NULL
12735 };
12736
12737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
12738 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12739 if (SWIG_arg_fail(1)) SWIG_fail;
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 result = (int)(arg1)->GetUPosition();
12743
12744 wxPyEndAllowThreads(__tstate);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 {
12748 resultobj = SWIG_From_int(static_cast<int >(result));
12749 }
12750 return resultobj;
12751 fail:
12752 return NULL;
12753 }
12754
12755
12756 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12757 PyObject *resultobj = NULL;
12758 wxJoystick *arg1 = (wxJoystick *) 0 ;
12759 int result;
12760 PyObject * obj0 = 0 ;
12761 char *kwnames[] = {
12762 (char *) "self", NULL
12763 };
12764
12765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
12766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12767 if (SWIG_arg_fail(1)) SWIG_fail;
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = (int)(arg1)->GetVPosition();
12771
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 {
12776 resultobj = SWIG_From_int(static_cast<int >(result));
12777 }
12778 return resultobj;
12779 fail:
12780 return NULL;
12781 }
12782
12783
12784 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj = NULL;
12786 wxJoystick *arg1 = (wxJoystick *) 0 ;
12787 int result;
12788 PyObject * obj0 = 0 ;
12789 char *kwnames[] = {
12790 (char *) "self", NULL
12791 };
12792
12793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
12794 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12795 if (SWIG_arg_fail(1)) SWIG_fail;
12796 {
12797 PyThreadState* __tstate = wxPyBeginAllowThreads();
12798 result = (int)(arg1)->GetMovementThreshold();
12799
12800 wxPyEndAllowThreads(__tstate);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
12803 {
12804 resultobj = SWIG_From_int(static_cast<int >(result));
12805 }
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj = NULL;
12814 wxJoystick *arg1 = (wxJoystick *) 0 ;
12815 int arg2 ;
12816 PyObject * obj0 = 0 ;
12817 PyObject * obj1 = 0 ;
12818 char *kwnames[] = {
12819 (char *) "self",(char *) "threshold", NULL
12820 };
12821
12822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
12823 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12824 if (SWIG_arg_fail(1)) SWIG_fail;
12825 {
12826 arg2 = static_cast<int >(SWIG_As_int(obj1));
12827 if (SWIG_arg_fail(2)) SWIG_fail;
12828 }
12829 {
12830 PyThreadState* __tstate = wxPyBeginAllowThreads();
12831 (arg1)->SetMovementThreshold(arg2);
12832
12833 wxPyEndAllowThreads(__tstate);
12834 if (PyErr_Occurred()) SWIG_fail;
12835 }
12836 Py_INCREF(Py_None); resultobj = Py_None;
12837 return resultobj;
12838 fail:
12839 return NULL;
12840 }
12841
12842
12843 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12844 PyObject *resultobj = NULL;
12845 wxJoystick *arg1 = (wxJoystick *) 0 ;
12846 bool result;
12847 PyObject * obj0 = 0 ;
12848 char *kwnames[] = {
12849 (char *) "self", NULL
12850 };
12851
12852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
12853 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12854 if (SWIG_arg_fail(1)) SWIG_fail;
12855 {
12856 PyThreadState* __tstate = wxPyBeginAllowThreads();
12857 result = (bool)(arg1)->IsOk();
12858
12859 wxPyEndAllowThreads(__tstate);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 {
12863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12864 }
12865 return resultobj;
12866 fail:
12867 return NULL;
12868 }
12869
12870
12871 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
12872 PyObject *resultobj = NULL;
12873 wxJoystick *arg1 = (wxJoystick *) 0 ;
12874 int result;
12875 PyObject * obj0 = 0 ;
12876 char *kwnames[] = {
12877 (char *) "self", NULL
12878 };
12879
12880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
12881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12882 if (SWIG_arg_fail(1)) SWIG_fail;
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 result = (int)(arg1)->GetNumberJoysticks();
12886
12887 wxPyEndAllowThreads(__tstate);
12888 if (PyErr_Occurred()) SWIG_fail;
12889 }
12890 {
12891 resultobj = SWIG_From_int(static_cast<int >(result));
12892 }
12893 return resultobj;
12894 fail:
12895 return NULL;
12896 }
12897
12898
12899 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj = NULL;
12901 wxJoystick *arg1 = (wxJoystick *) 0 ;
12902 int result;
12903 PyObject * obj0 = 0 ;
12904 char *kwnames[] = {
12905 (char *) "self", NULL
12906 };
12907
12908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
12909 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12910 if (SWIG_arg_fail(1)) SWIG_fail;
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = (int)(arg1)->GetManufacturerId();
12914
12915 wxPyEndAllowThreads(__tstate);
12916 if (PyErr_Occurred()) SWIG_fail;
12917 }
12918 {
12919 resultobj = SWIG_From_int(static_cast<int >(result));
12920 }
12921 return resultobj;
12922 fail:
12923 return NULL;
12924 }
12925
12926
12927 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
12928 PyObject *resultobj = NULL;
12929 wxJoystick *arg1 = (wxJoystick *) 0 ;
12930 int result;
12931 PyObject * obj0 = 0 ;
12932 char *kwnames[] = {
12933 (char *) "self", NULL
12934 };
12935
12936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
12937 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12938 if (SWIG_arg_fail(1)) SWIG_fail;
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 result = (int)(arg1)->GetProductId();
12942
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 {
12947 resultobj = SWIG_From_int(static_cast<int >(result));
12948 }
12949 return resultobj;
12950 fail:
12951 return NULL;
12952 }
12953
12954
12955 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
12956 PyObject *resultobj = NULL;
12957 wxJoystick *arg1 = (wxJoystick *) 0 ;
12958 wxString result;
12959 PyObject * obj0 = 0 ;
12960 char *kwnames[] = {
12961 (char *) "self", NULL
12962 };
12963
12964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
12965 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12966 if (SWIG_arg_fail(1)) SWIG_fail;
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 result = (arg1)->GetProductName();
12970
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 {
12975 #if wxUSE_UNICODE
12976 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12977 #else
12978 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12979 #endif
12980 }
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj = NULL;
12989 wxJoystick *arg1 = (wxJoystick *) 0 ;
12990 int result;
12991 PyObject * obj0 = 0 ;
12992 char *kwnames[] = {
12993 (char *) "self", NULL
12994 };
12995
12996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
12997 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12998 if (SWIG_arg_fail(1)) SWIG_fail;
12999 {
13000 PyThreadState* __tstate = wxPyBeginAllowThreads();
13001 result = (int)(arg1)->GetXMin();
13002
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 {
13007 resultobj = SWIG_From_int(static_cast<int >(result));
13008 }
13009 return resultobj;
13010 fail:
13011 return NULL;
13012 }
13013
13014
13015 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj = NULL;
13017 wxJoystick *arg1 = (wxJoystick *) 0 ;
13018 int result;
13019 PyObject * obj0 = 0 ;
13020 char *kwnames[] = {
13021 (char *) "self", NULL
13022 };
13023
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
13025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13026 if (SWIG_arg_fail(1)) SWIG_fail;
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = (int)(arg1)->GetYMin();
13030
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 {
13035 resultobj = SWIG_From_int(static_cast<int >(result));
13036 }
13037 return resultobj;
13038 fail:
13039 return NULL;
13040 }
13041
13042
13043 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
13044 PyObject *resultobj = NULL;
13045 wxJoystick *arg1 = (wxJoystick *) 0 ;
13046 int result;
13047 PyObject * obj0 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
13053 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13054 if (SWIG_arg_fail(1)) SWIG_fail;
13055 {
13056 PyThreadState* __tstate = wxPyBeginAllowThreads();
13057 result = (int)(arg1)->GetZMin();
13058
13059 wxPyEndAllowThreads(__tstate);
13060 if (PyErr_Occurred()) SWIG_fail;
13061 }
13062 {
13063 resultobj = SWIG_From_int(static_cast<int >(result));
13064 }
13065 return resultobj;
13066 fail:
13067 return NULL;
13068 }
13069
13070
13071 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
13072 PyObject *resultobj = NULL;
13073 wxJoystick *arg1 = (wxJoystick *) 0 ;
13074 int result;
13075 PyObject * obj0 = 0 ;
13076 char *kwnames[] = {
13077 (char *) "self", NULL
13078 };
13079
13080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
13081 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13082 if (SWIG_arg_fail(1)) SWIG_fail;
13083 {
13084 PyThreadState* __tstate = wxPyBeginAllowThreads();
13085 result = (int)(arg1)->GetXMax();
13086
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 {
13091 resultobj = SWIG_From_int(static_cast<int >(result));
13092 }
13093 return resultobj;
13094 fail:
13095 return NULL;
13096 }
13097
13098
13099 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj = NULL;
13101 wxJoystick *arg1 = (wxJoystick *) 0 ;
13102 int result;
13103 PyObject * obj0 = 0 ;
13104 char *kwnames[] = {
13105 (char *) "self", NULL
13106 };
13107
13108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
13109 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13110 if (SWIG_arg_fail(1)) SWIG_fail;
13111 {
13112 PyThreadState* __tstate = wxPyBeginAllowThreads();
13113 result = (int)(arg1)->GetYMax();
13114
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 {
13119 resultobj = SWIG_From_int(static_cast<int >(result));
13120 }
13121 return resultobj;
13122 fail:
13123 return NULL;
13124 }
13125
13126
13127 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj = NULL;
13129 wxJoystick *arg1 = (wxJoystick *) 0 ;
13130 int result;
13131 PyObject * obj0 = 0 ;
13132 char *kwnames[] = {
13133 (char *) "self", NULL
13134 };
13135
13136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
13137 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13138 if (SWIG_arg_fail(1)) SWIG_fail;
13139 {
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 result = (int)(arg1)->GetZMax();
13142
13143 wxPyEndAllowThreads(__tstate);
13144 if (PyErr_Occurred()) SWIG_fail;
13145 }
13146 {
13147 resultobj = SWIG_From_int(static_cast<int >(result));
13148 }
13149 return resultobj;
13150 fail:
13151 return NULL;
13152 }
13153
13154
13155 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
13156 PyObject *resultobj = NULL;
13157 wxJoystick *arg1 = (wxJoystick *) 0 ;
13158 int result;
13159 PyObject * obj0 = 0 ;
13160 char *kwnames[] = {
13161 (char *) "self", NULL
13162 };
13163
13164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
13165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13166 if (SWIG_arg_fail(1)) SWIG_fail;
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 result = (int)(arg1)->GetNumberButtons();
13170
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 {
13175 resultobj = SWIG_From_int(static_cast<int >(result));
13176 }
13177 return resultobj;
13178 fail:
13179 return NULL;
13180 }
13181
13182
13183 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj = NULL;
13185 wxJoystick *arg1 = (wxJoystick *) 0 ;
13186 int result;
13187 PyObject * obj0 = 0 ;
13188 char *kwnames[] = {
13189 (char *) "self", NULL
13190 };
13191
13192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
13193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13194 if (SWIG_arg_fail(1)) SWIG_fail;
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 result = (int)(arg1)->GetNumberAxes();
13198
13199 wxPyEndAllowThreads(__tstate);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
13202 {
13203 resultobj = SWIG_From_int(static_cast<int >(result));
13204 }
13205 return resultobj;
13206 fail:
13207 return NULL;
13208 }
13209
13210
13211 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
13212 PyObject *resultobj = NULL;
13213 wxJoystick *arg1 = (wxJoystick *) 0 ;
13214 int result;
13215 PyObject * obj0 = 0 ;
13216 char *kwnames[] = {
13217 (char *) "self", NULL
13218 };
13219
13220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
13221 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13222 if (SWIG_arg_fail(1)) SWIG_fail;
13223 {
13224 PyThreadState* __tstate = wxPyBeginAllowThreads();
13225 result = (int)(arg1)->GetMaxButtons();
13226
13227 wxPyEndAllowThreads(__tstate);
13228 if (PyErr_Occurred()) SWIG_fail;
13229 }
13230 {
13231 resultobj = SWIG_From_int(static_cast<int >(result));
13232 }
13233 return resultobj;
13234 fail:
13235 return NULL;
13236 }
13237
13238
13239 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
13240 PyObject *resultobj = NULL;
13241 wxJoystick *arg1 = (wxJoystick *) 0 ;
13242 int result;
13243 PyObject * obj0 = 0 ;
13244 char *kwnames[] = {
13245 (char *) "self", NULL
13246 };
13247
13248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
13249 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13250 if (SWIG_arg_fail(1)) SWIG_fail;
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 result = (int)(arg1)->GetMaxAxes();
13254
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 {
13259 resultobj = SWIG_From_int(static_cast<int >(result));
13260 }
13261 return resultobj;
13262 fail:
13263 return NULL;
13264 }
13265
13266
13267 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
13268 PyObject *resultobj = NULL;
13269 wxJoystick *arg1 = (wxJoystick *) 0 ;
13270 int result;
13271 PyObject * obj0 = 0 ;
13272 char *kwnames[] = {
13273 (char *) "self", NULL
13274 };
13275
13276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
13277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13278 if (SWIG_arg_fail(1)) SWIG_fail;
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 result = (int)(arg1)->GetPollingMin();
13282
13283 wxPyEndAllowThreads(__tstate);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 {
13287 resultobj = SWIG_From_int(static_cast<int >(result));
13288 }
13289 return resultobj;
13290 fail:
13291 return NULL;
13292 }
13293
13294
13295 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
13296 PyObject *resultobj = NULL;
13297 wxJoystick *arg1 = (wxJoystick *) 0 ;
13298 int result;
13299 PyObject * obj0 = 0 ;
13300 char *kwnames[] = {
13301 (char *) "self", NULL
13302 };
13303
13304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
13305 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13306 if (SWIG_arg_fail(1)) SWIG_fail;
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (int)(arg1)->GetPollingMax();
13310
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 {
13315 resultobj = SWIG_From_int(static_cast<int >(result));
13316 }
13317 return resultobj;
13318 fail:
13319 return NULL;
13320 }
13321
13322
13323 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj = NULL;
13325 wxJoystick *arg1 = (wxJoystick *) 0 ;
13326 int result;
13327 PyObject * obj0 = 0 ;
13328 char *kwnames[] = {
13329 (char *) "self", NULL
13330 };
13331
13332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
13333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13334 if (SWIG_arg_fail(1)) SWIG_fail;
13335 {
13336 PyThreadState* __tstate = wxPyBeginAllowThreads();
13337 result = (int)(arg1)->GetRudderMin();
13338
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 {
13343 resultobj = SWIG_From_int(static_cast<int >(result));
13344 }
13345 return resultobj;
13346 fail:
13347 return NULL;
13348 }
13349
13350
13351 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
13352 PyObject *resultobj = NULL;
13353 wxJoystick *arg1 = (wxJoystick *) 0 ;
13354 int result;
13355 PyObject * obj0 = 0 ;
13356 char *kwnames[] = {
13357 (char *) "self", NULL
13358 };
13359
13360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
13361 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13362 if (SWIG_arg_fail(1)) SWIG_fail;
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (int)(arg1)->GetRudderMax();
13366
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 {
13371 resultobj = SWIG_From_int(static_cast<int >(result));
13372 }
13373 return resultobj;
13374 fail:
13375 return NULL;
13376 }
13377
13378
13379 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
13380 PyObject *resultobj = NULL;
13381 wxJoystick *arg1 = (wxJoystick *) 0 ;
13382 int result;
13383 PyObject * obj0 = 0 ;
13384 char *kwnames[] = {
13385 (char *) "self", NULL
13386 };
13387
13388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
13389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13390 if (SWIG_arg_fail(1)) SWIG_fail;
13391 {
13392 PyThreadState* __tstate = wxPyBeginAllowThreads();
13393 result = (int)(arg1)->GetUMin();
13394
13395 wxPyEndAllowThreads(__tstate);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 }
13398 {
13399 resultobj = SWIG_From_int(static_cast<int >(result));
13400 }
13401 return resultobj;
13402 fail:
13403 return NULL;
13404 }
13405
13406
13407 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
13408 PyObject *resultobj = NULL;
13409 wxJoystick *arg1 = (wxJoystick *) 0 ;
13410 int result;
13411 PyObject * obj0 = 0 ;
13412 char *kwnames[] = {
13413 (char *) "self", NULL
13414 };
13415
13416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
13417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13418 if (SWIG_arg_fail(1)) SWIG_fail;
13419 {
13420 PyThreadState* __tstate = wxPyBeginAllowThreads();
13421 result = (int)(arg1)->GetUMax();
13422
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 {
13427 resultobj = SWIG_From_int(static_cast<int >(result));
13428 }
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
13436 PyObject *resultobj = NULL;
13437 wxJoystick *arg1 = (wxJoystick *) 0 ;
13438 int result;
13439 PyObject * obj0 = 0 ;
13440 char *kwnames[] = {
13441 (char *) "self", NULL
13442 };
13443
13444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
13445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13446 if (SWIG_arg_fail(1)) SWIG_fail;
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (int)(arg1)->GetVMin();
13450
13451 wxPyEndAllowThreads(__tstate);
13452 if (PyErr_Occurred()) SWIG_fail;
13453 }
13454 {
13455 resultobj = SWIG_From_int(static_cast<int >(result));
13456 }
13457 return resultobj;
13458 fail:
13459 return NULL;
13460 }
13461
13462
13463 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
13464 PyObject *resultobj = NULL;
13465 wxJoystick *arg1 = (wxJoystick *) 0 ;
13466 int result;
13467 PyObject * obj0 = 0 ;
13468 char *kwnames[] = {
13469 (char *) "self", NULL
13470 };
13471
13472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
13473 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13474 if (SWIG_arg_fail(1)) SWIG_fail;
13475 {
13476 PyThreadState* __tstate = wxPyBeginAllowThreads();
13477 result = (int)(arg1)->GetVMax();
13478
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 {
13483 resultobj = SWIG_From_int(static_cast<int >(result));
13484 }
13485 return resultobj;
13486 fail:
13487 return NULL;
13488 }
13489
13490
13491 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
13492 PyObject *resultobj = NULL;
13493 wxJoystick *arg1 = (wxJoystick *) 0 ;
13494 bool result;
13495 PyObject * obj0 = 0 ;
13496 char *kwnames[] = {
13497 (char *) "self", NULL
13498 };
13499
13500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
13501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13502 if (SWIG_arg_fail(1)) SWIG_fail;
13503 {
13504 PyThreadState* __tstate = wxPyBeginAllowThreads();
13505 result = (bool)(arg1)->HasRudder();
13506
13507 wxPyEndAllowThreads(__tstate);
13508 if (PyErr_Occurred()) SWIG_fail;
13509 }
13510 {
13511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13512 }
13513 return resultobj;
13514 fail:
13515 return NULL;
13516 }
13517
13518
13519 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
13520 PyObject *resultobj = NULL;
13521 wxJoystick *arg1 = (wxJoystick *) 0 ;
13522 bool result;
13523 PyObject * obj0 = 0 ;
13524 char *kwnames[] = {
13525 (char *) "self", NULL
13526 };
13527
13528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
13529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13530 if (SWIG_arg_fail(1)) SWIG_fail;
13531 {
13532 PyThreadState* __tstate = wxPyBeginAllowThreads();
13533 result = (bool)(arg1)->HasZ();
13534
13535 wxPyEndAllowThreads(__tstate);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 {
13539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13540 }
13541 return resultobj;
13542 fail:
13543 return NULL;
13544 }
13545
13546
13547 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
13548 PyObject *resultobj = NULL;
13549 wxJoystick *arg1 = (wxJoystick *) 0 ;
13550 bool result;
13551 PyObject * obj0 = 0 ;
13552 char *kwnames[] = {
13553 (char *) "self", NULL
13554 };
13555
13556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
13557 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13558 if (SWIG_arg_fail(1)) SWIG_fail;
13559 {
13560 PyThreadState* __tstate = wxPyBeginAllowThreads();
13561 result = (bool)(arg1)->HasU();
13562
13563 wxPyEndAllowThreads(__tstate);
13564 if (PyErr_Occurred()) SWIG_fail;
13565 }
13566 {
13567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13568 }
13569 return resultobj;
13570 fail:
13571 return NULL;
13572 }
13573
13574
13575 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj = NULL;
13577 wxJoystick *arg1 = (wxJoystick *) 0 ;
13578 bool result;
13579 PyObject * obj0 = 0 ;
13580 char *kwnames[] = {
13581 (char *) "self", NULL
13582 };
13583
13584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
13585 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13586 if (SWIG_arg_fail(1)) SWIG_fail;
13587 {
13588 PyThreadState* __tstate = wxPyBeginAllowThreads();
13589 result = (bool)(arg1)->HasV();
13590
13591 wxPyEndAllowThreads(__tstate);
13592 if (PyErr_Occurred()) SWIG_fail;
13593 }
13594 {
13595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13596 }
13597 return resultobj;
13598 fail:
13599 return NULL;
13600 }
13601
13602
13603 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
13604 PyObject *resultobj = NULL;
13605 wxJoystick *arg1 = (wxJoystick *) 0 ;
13606 bool result;
13607 PyObject * obj0 = 0 ;
13608 char *kwnames[] = {
13609 (char *) "self", NULL
13610 };
13611
13612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
13613 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13614 if (SWIG_arg_fail(1)) SWIG_fail;
13615 {
13616 PyThreadState* __tstate = wxPyBeginAllowThreads();
13617 result = (bool)(arg1)->HasPOV();
13618
13619 wxPyEndAllowThreads(__tstate);
13620 if (PyErr_Occurred()) SWIG_fail;
13621 }
13622 {
13623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13624 }
13625 return resultobj;
13626 fail:
13627 return NULL;
13628 }
13629
13630
13631 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
13632 PyObject *resultobj = NULL;
13633 wxJoystick *arg1 = (wxJoystick *) 0 ;
13634 bool result;
13635 PyObject * obj0 = 0 ;
13636 char *kwnames[] = {
13637 (char *) "self", NULL
13638 };
13639
13640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
13641 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13642 if (SWIG_arg_fail(1)) SWIG_fail;
13643 {
13644 PyThreadState* __tstate = wxPyBeginAllowThreads();
13645 result = (bool)(arg1)->HasPOV4Dir();
13646
13647 wxPyEndAllowThreads(__tstate);
13648 if (PyErr_Occurred()) SWIG_fail;
13649 }
13650 {
13651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13652 }
13653 return resultobj;
13654 fail:
13655 return NULL;
13656 }
13657
13658
13659 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj = NULL;
13661 wxJoystick *arg1 = (wxJoystick *) 0 ;
13662 bool result;
13663 PyObject * obj0 = 0 ;
13664 char *kwnames[] = {
13665 (char *) "self", NULL
13666 };
13667
13668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
13669 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13670 if (SWIG_arg_fail(1)) SWIG_fail;
13671 {
13672 PyThreadState* __tstate = wxPyBeginAllowThreads();
13673 result = (bool)(arg1)->HasPOVCTS();
13674
13675 wxPyEndAllowThreads(__tstate);
13676 if (PyErr_Occurred()) SWIG_fail;
13677 }
13678 {
13679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13680 }
13681 return resultobj;
13682 fail:
13683 return NULL;
13684 }
13685
13686
13687 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
13688 PyObject *resultobj = NULL;
13689 wxJoystick *arg1 = (wxJoystick *) 0 ;
13690 wxWindow *arg2 = (wxWindow *) 0 ;
13691 int arg3 = (int) 0 ;
13692 bool result;
13693 PyObject * obj0 = 0 ;
13694 PyObject * obj1 = 0 ;
13695 PyObject * obj2 = 0 ;
13696 char *kwnames[] = {
13697 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
13698 };
13699
13700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
13701 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13702 if (SWIG_arg_fail(1)) SWIG_fail;
13703 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
13704 if (SWIG_arg_fail(2)) SWIG_fail;
13705 if (obj2) {
13706 {
13707 arg3 = static_cast<int >(SWIG_As_int(obj2));
13708 if (SWIG_arg_fail(3)) SWIG_fail;
13709 }
13710 }
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
13713 result = (bool)(arg1)->SetCapture(arg2,arg3);
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_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
13728 PyObject *resultobj = NULL;
13729 wxJoystick *arg1 = (wxJoystick *) 0 ;
13730 bool result;
13731 PyObject * obj0 = 0 ;
13732 char *kwnames[] = {
13733 (char *) "self", NULL
13734 };
13735
13736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
13737 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13738 if (SWIG_arg_fail(1)) SWIG_fail;
13739 {
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 result = (bool)(arg1)->ReleaseCapture();
13742
13743 wxPyEndAllowThreads(__tstate);
13744 if (PyErr_Occurred()) SWIG_fail;
13745 }
13746 {
13747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13748 }
13749 return resultobj;
13750 fail:
13751 return NULL;
13752 }
13753
13754
13755 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
13756 PyObject *obj;
13757 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13758 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
13759 Py_INCREF(obj);
13760 return Py_BuildValue((char *)"");
13761 }
13762 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj = NULL;
13764 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13765 int arg2 = (int) 0 ;
13766 int arg3 = (int) wxJOYSTICK1 ;
13767 int arg4 = (int) 0 ;
13768 wxJoystickEvent *result;
13769 PyObject * obj0 = 0 ;
13770 PyObject * obj1 = 0 ;
13771 PyObject * obj2 = 0 ;
13772 PyObject * obj3 = 0 ;
13773 char *kwnames[] = {
13774 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
13775 };
13776
13777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13778 if (obj0) {
13779 {
13780 arg1 = static_cast<wxEventType >(SWIG_As_int(obj0));
13781 if (SWIG_arg_fail(1)) SWIG_fail;
13782 }
13783 }
13784 if (obj1) {
13785 {
13786 arg2 = static_cast<int >(SWIG_As_int(obj1));
13787 if (SWIG_arg_fail(2)) SWIG_fail;
13788 }
13789 }
13790 if (obj2) {
13791 {
13792 arg3 = static_cast<int >(SWIG_As_int(obj2));
13793 if (SWIG_arg_fail(3)) SWIG_fail;
13794 }
13795 }
13796 if (obj3) {
13797 {
13798 arg4 = static_cast<int >(SWIG_As_int(obj3));
13799 if (SWIG_arg_fail(4)) SWIG_fail;
13800 }
13801 }
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
13805
13806 wxPyEndAllowThreads(__tstate);
13807 if (PyErr_Occurred()) SWIG_fail;
13808 }
13809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
13810 return resultobj;
13811 fail:
13812 return NULL;
13813 }
13814
13815
13816 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13817 PyObject *resultobj = NULL;
13818 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13819 wxPoint result;
13820 PyObject * obj0 = 0 ;
13821 char *kwnames[] = {
13822 (char *) "self", NULL
13823 };
13824
13825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
13826 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13827 if (SWIG_arg_fail(1)) SWIG_fail;
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 result = ((wxJoystickEvent const *)arg1)->GetPosition();
13831
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 {
13836 wxPoint * resultptr;
13837 resultptr = new wxPoint(static_cast<wxPoint & >(result));
13838 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
13839 }
13840 return resultobj;
13841 fail:
13842 return NULL;
13843 }
13844
13845
13846 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13847 PyObject *resultobj = NULL;
13848 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13849 int result;
13850 PyObject * obj0 = 0 ;
13851 char *kwnames[] = {
13852 (char *) "self", NULL
13853 };
13854
13855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
13856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13857 if (SWIG_arg_fail(1)) SWIG_fail;
13858 {
13859 PyThreadState* __tstate = wxPyBeginAllowThreads();
13860 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
13861
13862 wxPyEndAllowThreads(__tstate);
13863 if (PyErr_Occurred()) SWIG_fail;
13864 }
13865 {
13866 resultobj = SWIG_From_int(static_cast<int >(result));
13867 }
13868 return resultobj;
13869 fail:
13870 return NULL;
13871 }
13872
13873
13874 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
13875 PyObject *resultobj = NULL;
13876 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13877 int result;
13878 PyObject * obj0 = 0 ;
13879 char *kwnames[] = {
13880 (char *) "self", NULL
13881 };
13882
13883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
13884 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13885 if (SWIG_arg_fail(1)) SWIG_fail;
13886 {
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
13888 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
13889
13890 wxPyEndAllowThreads(__tstate);
13891 if (PyErr_Occurred()) SWIG_fail;
13892 }
13893 {
13894 resultobj = SWIG_From_int(static_cast<int >(result));
13895 }
13896 return resultobj;
13897 fail:
13898 return NULL;
13899 }
13900
13901
13902 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj = NULL;
13904 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13905 int result;
13906 PyObject * obj0 = 0 ;
13907 char *kwnames[] = {
13908 (char *) "self", NULL
13909 };
13910
13911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
13912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13913 if (SWIG_arg_fail(1)) SWIG_fail;
13914 {
13915 PyThreadState* __tstate = wxPyBeginAllowThreads();
13916 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
13917
13918 wxPyEndAllowThreads(__tstate);
13919 if (PyErr_Occurred()) SWIG_fail;
13920 }
13921 {
13922 resultobj = SWIG_From_int(static_cast<int >(result));
13923 }
13924 return resultobj;
13925 fail:
13926 return NULL;
13927 }
13928
13929
13930 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj = NULL;
13932 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13933 int result;
13934 PyObject * obj0 = 0 ;
13935 char *kwnames[] = {
13936 (char *) "self", NULL
13937 };
13938
13939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
13940 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13941 if (SWIG_arg_fail(1)) SWIG_fail;
13942 {
13943 PyThreadState* __tstate = wxPyBeginAllowThreads();
13944 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
13945
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 {
13950 resultobj = SWIG_From_int(static_cast<int >(result));
13951 }
13952 return resultobj;
13953 fail:
13954 return NULL;
13955 }
13956
13957
13958 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
13959 PyObject *resultobj = NULL;
13960 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13961 int arg2 ;
13962 PyObject * obj0 = 0 ;
13963 PyObject * obj1 = 0 ;
13964 char *kwnames[] = {
13965 (char *) "self",(char *) "stick", NULL
13966 };
13967
13968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
13969 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13970 if (SWIG_arg_fail(1)) SWIG_fail;
13971 {
13972 arg2 = static_cast<int >(SWIG_As_int(obj1));
13973 if (SWIG_arg_fail(2)) SWIG_fail;
13974 }
13975 {
13976 PyThreadState* __tstate = wxPyBeginAllowThreads();
13977 (arg1)->SetJoystick(arg2);
13978
13979 wxPyEndAllowThreads(__tstate);
13980 if (PyErr_Occurred()) SWIG_fail;
13981 }
13982 Py_INCREF(Py_None); resultobj = Py_None;
13983 return resultobj;
13984 fail:
13985 return NULL;
13986 }
13987
13988
13989 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
13990 PyObject *resultobj = NULL;
13991 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13992 int arg2 ;
13993 PyObject * obj0 = 0 ;
13994 PyObject * obj1 = 0 ;
13995 char *kwnames[] = {
13996 (char *) "self",(char *) "state", NULL
13997 };
13998
13999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
14000 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14001 if (SWIG_arg_fail(1)) SWIG_fail;
14002 {
14003 arg2 = static_cast<int >(SWIG_As_int(obj1));
14004 if (SWIG_arg_fail(2)) SWIG_fail;
14005 }
14006 {
14007 PyThreadState* __tstate = wxPyBeginAllowThreads();
14008 (arg1)->SetButtonState(arg2);
14009
14010 wxPyEndAllowThreads(__tstate);
14011 if (PyErr_Occurred()) SWIG_fail;
14012 }
14013 Py_INCREF(Py_None); resultobj = Py_None;
14014 return resultobj;
14015 fail:
14016 return NULL;
14017 }
14018
14019
14020 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
14021 PyObject *resultobj = NULL;
14022 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14023 int arg2 ;
14024 PyObject * obj0 = 0 ;
14025 PyObject * obj1 = 0 ;
14026 char *kwnames[] = {
14027 (char *) "self",(char *) "change", NULL
14028 };
14029
14030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
14031 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14032 if (SWIG_arg_fail(1)) SWIG_fail;
14033 {
14034 arg2 = static_cast<int >(SWIG_As_int(obj1));
14035 if (SWIG_arg_fail(2)) SWIG_fail;
14036 }
14037 {
14038 PyThreadState* __tstate = wxPyBeginAllowThreads();
14039 (arg1)->SetButtonChange(arg2);
14040
14041 wxPyEndAllowThreads(__tstate);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 }
14044 Py_INCREF(Py_None); resultobj = Py_None;
14045 return resultobj;
14046 fail:
14047 return NULL;
14048 }
14049
14050
14051 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14052 PyObject *resultobj = NULL;
14053 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14054 wxPoint *arg2 = 0 ;
14055 wxPoint temp2 ;
14056 PyObject * obj0 = 0 ;
14057 PyObject * obj1 = 0 ;
14058 char *kwnames[] = {
14059 (char *) "self",(char *) "pos", NULL
14060 };
14061
14062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
14063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14064 if (SWIG_arg_fail(1)) SWIG_fail;
14065 {
14066 arg2 = &temp2;
14067 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14068 }
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 (arg1)->SetPosition((wxPoint const &)*arg2);
14072
14073 wxPyEndAllowThreads(__tstate);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 Py_INCREF(Py_None); resultobj = Py_None;
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj = NULL;
14085 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14086 int arg2 ;
14087 PyObject * obj0 = 0 ;
14088 PyObject * obj1 = 0 ;
14089 char *kwnames[] = {
14090 (char *) "self",(char *) "zPos", NULL
14091 };
14092
14093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
14094 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14095 if (SWIG_arg_fail(1)) SWIG_fail;
14096 {
14097 arg2 = static_cast<int >(SWIG_As_int(obj1));
14098 if (SWIG_arg_fail(2)) SWIG_fail;
14099 }
14100 {
14101 PyThreadState* __tstate = wxPyBeginAllowThreads();
14102 (arg1)->SetZPosition(arg2);
14103
14104 wxPyEndAllowThreads(__tstate);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 Py_INCREF(Py_None); resultobj = Py_None;
14108 return resultobj;
14109 fail:
14110 return NULL;
14111 }
14112
14113
14114 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
14115 PyObject *resultobj = NULL;
14116 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14117 bool result;
14118 PyObject * obj0 = 0 ;
14119 char *kwnames[] = {
14120 (char *) "self", NULL
14121 };
14122
14123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
14124 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14125 if (SWIG_arg_fail(1)) SWIG_fail;
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
14129
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 {
14134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14135 }
14136 return resultobj;
14137 fail:
14138 return NULL;
14139 }
14140
14141
14142 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
14143 PyObject *resultobj = NULL;
14144 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14145 bool result;
14146 PyObject * obj0 = 0 ;
14147 char *kwnames[] = {
14148 (char *) "self", NULL
14149 };
14150
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
14152 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14153 if (SWIG_arg_fail(1)) SWIG_fail;
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 {
14162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14163 }
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
14171 PyObject *resultobj = NULL;
14172 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14173 bool result;
14174 PyObject * obj0 = 0 ;
14175 char *kwnames[] = {
14176 (char *) "self", NULL
14177 };
14178
14179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
14180 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14181 if (SWIG_arg_fail(1)) SWIG_fail;
14182 {
14183 PyThreadState* __tstate = wxPyBeginAllowThreads();
14184 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
14185
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 {
14190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14191 }
14192 return resultobj;
14193 fail:
14194 return NULL;
14195 }
14196
14197
14198 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
14199 PyObject *resultobj = NULL;
14200 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14201 int arg2 = (int) wxJOY_BUTTON_ANY ;
14202 bool result;
14203 PyObject * obj0 = 0 ;
14204 PyObject * obj1 = 0 ;
14205 char *kwnames[] = {
14206 (char *) "self",(char *) "but", NULL
14207 };
14208
14209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
14210 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14211 if (SWIG_arg_fail(1)) SWIG_fail;
14212 if (obj1) {
14213 {
14214 arg2 = static_cast<int >(SWIG_As_int(obj1));
14215 if (SWIG_arg_fail(2)) SWIG_fail;
14216 }
14217 }
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
14221
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 {
14226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14227 }
14228 return resultobj;
14229 fail:
14230 return NULL;
14231 }
14232
14233
14234 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
14235 PyObject *resultobj = NULL;
14236 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14237 int arg2 = (int) wxJOY_BUTTON_ANY ;
14238 bool result;
14239 PyObject * obj0 = 0 ;
14240 PyObject * obj1 = 0 ;
14241 char *kwnames[] = {
14242 (char *) "self",(char *) "but", NULL
14243 };
14244
14245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
14246 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14247 if (SWIG_arg_fail(1)) SWIG_fail;
14248 if (obj1) {
14249 {
14250 arg2 = static_cast<int >(SWIG_As_int(obj1));
14251 if (SWIG_arg_fail(2)) SWIG_fail;
14252 }
14253 }
14254 {
14255 PyThreadState* __tstate = wxPyBeginAllowThreads();
14256 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
14257
14258 wxPyEndAllowThreads(__tstate);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 }
14261 {
14262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14263 }
14264 return resultobj;
14265 fail:
14266 return NULL;
14267 }
14268
14269
14270 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
14271 PyObject *resultobj = NULL;
14272 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14273 int arg2 = (int) wxJOY_BUTTON_ANY ;
14274 bool result;
14275 PyObject * obj0 = 0 ;
14276 PyObject * obj1 = 0 ;
14277 char *kwnames[] = {
14278 (char *) "self",(char *) "but", NULL
14279 };
14280
14281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
14282 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14283 if (SWIG_arg_fail(1)) SWIG_fail;
14284 if (obj1) {
14285 {
14286 arg2 = static_cast<int >(SWIG_As_int(obj1));
14287 if (SWIG_arg_fail(2)) SWIG_fail;
14288 }
14289 }
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
14293
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 {
14298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14299 }
14300 return resultobj;
14301 fail:
14302 return NULL;
14303 }
14304
14305
14306 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
14307 PyObject *obj;
14308 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14309 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
14310 Py_INCREF(obj);
14311 return Py_BuildValue((char *)"");
14312 }
14313 static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
14314 PyObject *resultobj = NULL;
14315 wxString const &arg1_defvalue = wxPyEmptyString ;
14316 wxString *arg1 = (wxString *) &arg1_defvalue ;
14317 wxSound *result;
14318 bool temp1 = false ;
14319 PyObject * obj0 = 0 ;
14320 char *kwnames[] = {
14321 (char *) "fileName", NULL
14322 };
14323
14324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
14325 if (obj0) {
14326 {
14327 arg1 = wxString_in_helper(obj0);
14328 if (arg1 == NULL) SWIG_fail;
14329 temp1 = true;
14330 }
14331 }
14332 {
14333 if (!wxPyCheckForApp()) SWIG_fail;
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = (wxSound *)new_wxSound((wxString const &)*arg1);
14336
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
14341 {
14342 if (temp1)
14343 delete arg1;
14344 }
14345 return resultobj;
14346 fail:
14347 {
14348 if (temp1)
14349 delete arg1;
14350 }
14351 return NULL;
14352 }
14353
14354
14355 static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
14356 PyObject *resultobj = NULL;
14357 PyObject *arg1 = (PyObject *) 0 ;
14358 wxSound *result;
14359 PyObject * obj0 = 0 ;
14360 char *kwnames[] = {
14361 (char *) "data", NULL
14362 };
14363
14364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
14365 arg1 = obj0;
14366 {
14367 if (!wxPyCheckForApp()) SWIG_fail;
14368 PyThreadState* __tstate = wxPyBeginAllowThreads();
14369 result = (wxSound *)new_wxSound(arg1);
14370
14371 wxPyEndAllowThreads(__tstate);
14372 if (PyErr_Occurred()) SWIG_fail;
14373 }
14374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
14375 return resultobj;
14376 fail:
14377 return NULL;
14378 }
14379
14380
14381 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
14382 PyObject *resultobj = NULL;
14383 wxSound *arg1 = (wxSound *) 0 ;
14384 PyObject * obj0 = 0 ;
14385 char *kwnames[] = {
14386 (char *) "self", NULL
14387 };
14388
14389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
14390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14391 if (SWIG_arg_fail(1)) SWIG_fail;
14392 {
14393 PyThreadState* __tstate = wxPyBeginAllowThreads();
14394 delete arg1;
14395
14396 wxPyEndAllowThreads(__tstate);
14397 if (PyErr_Occurred()) SWIG_fail;
14398 }
14399 Py_INCREF(Py_None); resultobj = Py_None;
14400 return resultobj;
14401 fail:
14402 return NULL;
14403 }
14404
14405
14406 static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14407 PyObject *resultobj = NULL;
14408 wxSound *arg1 = (wxSound *) 0 ;
14409 wxString *arg2 = 0 ;
14410 bool result;
14411 bool temp2 = false ;
14412 PyObject * obj0 = 0 ;
14413 PyObject * obj1 = 0 ;
14414 char *kwnames[] = {
14415 (char *) "self",(char *) "fileName", NULL
14416 };
14417
14418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
14419 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14420 if (SWIG_arg_fail(1)) SWIG_fail;
14421 {
14422 arg2 = wxString_in_helper(obj1);
14423 if (arg2 == NULL) SWIG_fail;
14424 temp2 = true;
14425 }
14426 {
14427 PyThreadState* __tstate = wxPyBeginAllowThreads();
14428 result = (bool)(arg1)->Create((wxString const &)*arg2);
14429
14430 wxPyEndAllowThreads(__tstate);
14431 if (PyErr_Occurred()) SWIG_fail;
14432 }
14433 {
14434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14435 }
14436 {
14437 if (temp2)
14438 delete arg2;
14439 }
14440 return resultobj;
14441 fail:
14442 {
14443 if (temp2)
14444 delete arg2;
14445 }
14446 return NULL;
14447 }
14448
14449
14450 static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
14451 PyObject *resultobj = NULL;
14452 wxSound *arg1 = (wxSound *) 0 ;
14453 PyObject *arg2 = (PyObject *) 0 ;
14454 bool result;
14455 PyObject * obj0 = 0 ;
14456 PyObject * obj1 = 0 ;
14457 char *kwnames[] = {
14458 (char *) "self",(char *) "data", NULL
14459 };
14460
14461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
14462 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14463 if (SWIG_arg_fail(1)) SWIG_fail;
14464 arg2 = obj1;
14465 {
14466 PyThreadState* __tstate = wxPyBeginAllowThreads();
14467 result = (bool)wxSound_CreateFromData(arg1,arg2);
14468
14469 wxPyEndAllowThreads(__tstate);
14470 if (PyErr_Occurred()) SWIG_fail;
14471 }
14472 {
14473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14474 }
14475 return resultobj;
14476 fail:
14477 return NULL;
14478 }
14479
14480
14481 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
14482 PyObject *resultobj = NULL;
14483 wxSound *arg1 = (wxSound *) 0 ;
14484 bool result;
14485 PyObject * obj0 = 0 ;
14486 char *kwnames[] = {
14487 (char *) "self", NULL
14488 };
14489
14490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
14491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14492 if (SWIG_arg_fail(1)) SWIG_fail;
14493 {
14494 PyThreadState* __tstate = wxPyBeginAllowThreads();
14495 result = (bool)(arg1)->IsOk();
14496
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 {
14501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14502 }
14503 return resultobj;
14504 fail:
14505 return NULL;
14506 }
14507
14508
14509 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
14510 PyObject *resultobj = NULL;
14511 wxSound *arg1 = (wxSound *) 0 ;
14512 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
14513 bool result;
14514 PyObject * obj0 = 0 ;
14515 PyObject * obj1 = 0 ;
14516 char *kwnames[] = {
14517 (char *) "self",(char *) "flags", NULL
14518 };
14519
14520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
14521 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14522 if (SWIG_arg_fail(1)) SWIG_fail;
14523 if (obj1) {
14524 {
14525 arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1));
14526 if (SWIG_arg_fail(2)) SWIG_fail;
14527 }
14528 }
14529 {
14530 if (!wxPyCheckForApp()) SWIG_fail;
14531 PyThreadState* __tstate = wxPyBeginAllowThreads();
14532 result = (bool)((wxSound const *)arg1)->Play(arg2);
14533
14534 wxPyEndAllowThreads(__tstate);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 {
14538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14539 }
14540 return resultobj;
14541 fail:
14542 return NULL;
14543 }
14544
14545
14546 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
14547 PyObject *resultobj = NULL;
14548 wxString *arg1 = 0 ;
14549 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
14550 bool result;
14551 bool temp1 = false ;
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
14554 char *kwnames[] = {
14555 (char *) "filename",(char *) "flags", NULL
14556 };
14557
14558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
14559 {
14560 arg1 = wxString_in_helper(obj0);
14561 if (arg1 == NULL) SWIG_fail;
14562 temp1 = true;
14563 }
14564 if (obj1) {
14565 {
14566 arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1));
14567 if (SWIG_arg_fail(2)) SWIG_fail;
14568 }
14569 }
14570 {
14571 if (!wxPyCheckForApp()) SWIG_fail;
14572 PyThreadState* __tstate = wxPyBeginAllowThreads();
14573 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
14574
14575 wxPyEndAllowThreads(__tstate);
14576 if (PyErr_Occurred()) SWIG_fail;
14577 }
14578 {
14579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14580 }
14581 {
14582 if (temp1)
14583 delete arg1;
14584 }
14585 return resultobj;
14586 fail:
14587 {
14588 if (temp1)
14589 delete arg1;
14590 }
14591 return NULL;
14592 }
14593
14594
14595 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
14596 PyObject *resultobj = NULL;
14597 char *kwnames[] = {
14598 NULL
14599 };
14600
14601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
14602 {
14603 if (!wxPyCheckForApp()) SWIG_fail;
14604 PyThreadState* __tstate = wxPyBeginAllowThreads();
14605 wxSound::Stop();
14606
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 Py_INCREF(Py_None); resultobj = Py_None;
14611 return resultobj;
14612 fail:
14613 return NULL;
14614 }
14615
14616
14617 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
14618 PyObject *obj;
14619 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14620 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
14621 Py_INCREF(obj);
14622 return Py_BuildValue((char *)"");
14623 }
14624 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14625 PyObject *resultobj = NULL;
14626 wxString *arg1 = 0 ;
14627 wxString *arg2 = 0 ;
14628 wxString *arg3 = 0 ;
14629 wxString *arg4 = 0 ;
14630 wxFileTypeInfo *result;
14631 bool temp1 = false ;
14632 bool temp2 = false ;
14633 bool temp3 = false ;
14634 bool temp4 = false ;
14635 PyObject * obj0 = 0 ;
14636 PyObject * obj1 = 0 ;
14637 PyObject * obj2 = 0 ;
14638 PyObject * obj3 = 0 ;
14639 char *kwnames[] = {
14640 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
14641 };
14642
14643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14644 {
14645 arg1 = wxString_in_helper(obj0);
14646 if (arg1 == NULL) SWIG_fail;
14647 temp1 = true;
14648 }
14649 {
14650 arg2 = wxString_in_helper(obj1);
14651 if (arg2 == NULL) SWIG_fail;
14652 temp2 = true;
14653 }
14654 {
14655 arg3 = wxString_in_helper(obj2);
14656 if (arg3 == NULL) SWIG_fail;
14657 temp3 = true;
14658 }
14659 {
14660 arg4 = wxString_in_helper(obj3);
14661 if (arg4 == NULL) SWIG_fail;
14662 temp4 = true;
14663 }
14664 {
14665 PyThreadState* __tstate = wxPyBeginAllowThreads();
14666 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
14667
14668 wxPyEndAllowThreads(__tstate);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 }
14671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14672 {
14673 if (temp1)
14674 delete arg1;
14675 }
14676 {
14677 if (temp2)
14678 delete arg2;
14679 }
14680 {
14681 if (temp3)
14682 delete arg3;
14683 }
14684 {
14685 if (temp4)
14686 delete arg4;
14687 }
14688 return resultobj;
14689 fail:
14690 {
14691 if (temp1)
14692 delete arg1;
14693 }
14694 {
14695 if (temp2)
14696 delete arg2;
14697 }
14698 {
14699 if (temp3)
14700 delete arg3;
14701 }
14702 {
14703 if (temp4)
14704 delete arg4;
14705 }
14706 return NULL;
14707 }
14708
14709
14710 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
14711 PyObject *resultobj = NULL;
14712 wxArrayString *arg1 = 0 ;
14713 wxFileTypeInfo *result;
14714 bool temp1 = false ;
14715 PyObject * obj0 = 0 ;
14716 char *kwnames[] = {
14717 (char *) "sArray", NULL
14718 };
14719
14720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
14721 {
14722 if (! PySequence_Check(obj0)) {
14723 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
14724 SWIG_fail;
14725 }
14726 arg1 = new wxArrayString;
14727 temp1 = true;
14728 int i, len=PySequence_Length(obj0);
14729 for (i=0; i<len; i++) {
14730 PyObject* item = PySequence_GetItem(obj0, i);
14731 wxString* s = wxString_in_helper(item);
14732 if (PyErr_Occurred()) SWIG_fail;
14733 arg1->Add(*s);
14734 delete s;
14735 Py_DECREF(item);
14736 }
14737 }
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
14741
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14746 {
14747 if (temp1) delete arg1;
14748 }
14749 return resultobj;
14750 fail:
14751 {
14752 if (temp1) delete arg1;
14753 }
14754 return NULL;
14755 }
14756
14757
14758 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14759 PyObject *resultobj = NULL;
14760 wxFileTypeInfo *result;
14761 char *kwnames[] = {
14762 NULL
14763 };
14764
14765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 result = (wxFileTypeInfo *)new wxFileTypeInfo();
14769
14770 wxPyEndAllowThreads(__tstate);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 }
14773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14774 return resultobj;
14775 fail:
14776 return NULL;
14777 }
14778
14779
14780 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
14781 PyObject *resultobj = NULL;
14782 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14783 bool result;
14784 PyObject * obj0 = 0 ;
14785 char *kwnames[] = {
14786 (char *) "self", NULL
14787 };
14788
14789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
14790 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14791 if (SWIG_arg_fail(1)) SWIG_fail;
14792 {
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
14795
14796 wxPyEndAllowThreads(__tstate);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 {
14800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14801 }
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj = NULL;
14810 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14811 wxString *arg2 = 0 ;
14812 int arg3 = (int) 0 ;
14813 bool temp2 = false ;
14814 PyObject * obj0 = 0 ;
14815 PyObject * obj1 = 0 ;
14816 PyObject * obj2 = 0 ;
14817 char *kwnames[] = {
14818 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
14819 };
14820
14821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14823 if (SWIG_arg_fail(1)) SWIG_fail;
14824 {
14825 arg2 = wxString_in_helper(obj1);
14826 if (arg2 == NULL) SWIG_fail;
14827 temp2 = true;
14828 }
14829 if (obj2) {
14830 {
14831 arg3 = static_cast<int >(SWIG_As_int(obj2));
14832 if (SWIG_arg_fail(3)) SWIG_fail;
14833 }
14834 }
14835 {
14836 PyThreadState* __tstate = wxPyBeginAllowThreads();
14837 (arg1)->SetIcon((wxString const &)*arg2,arg3);
14838
14839 wxPyEndAllowThreads(__tstate);
14840 if (PyErr_Occurred()) SWIG_fail;
14841 }
14842 Py_INCREF(Py_None); resultobj = Py_None;
14843 {
14844 if (temp2)
14845 delete arg2;
14846 }
14847 return resultobj;
14848 fail:
14849 {
14850 if (temp2)
14851 delete arg2;
14852 }
14853 return NULL;
14854 }
14855
14856
14857 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
14858 PyObject *resultobj = NULL;
14859 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14860 wxString *arg2 = 0 ;
14861 bool temp2 = false ;
14862 PyObject * obj0 = 0 ;
14863 PyObject * obj1 = 0 ;
14864 char *kwnames[] = {
14865 (char *) "self",(char *) "shortDesc", NULL
14866 };
14867
14868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
14869 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14870 if (SWIG_arg_fail(1)) SWIG_fail;
14871 {
14872 arg2 = wxString_in_helper(obj1);
14873 if (arg2 == NULL) SWIG_fail;
14874 temp2 = true;
14875 }
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->SetShortDesc((wxString const &)*arg2);
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 Py_INCREF(Py_None); resultobj = Py_None;
14884 {
14885 if (temp2)
14886 delete arg2;
14887 }
14888 return resultobj;
14889 fail:
14890 {
14891 if (temp2)
14892 delete arg2;
14893 }
14894 return NULL;
14895 }
14896
14897
14898 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
14899 PyObject *resultobj = NULL;
14900 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14901 wxString *result;
14902 PyObject * obj0 = 0 ;
14903 char *kwnames[] = {
14904 (char *) "self", NULL
14905 };
14906
14907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
14908 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14909 if (SWIG_arg_fail(1)) SWIG_fail;
14910 {
14911 PyThreadState* __tstate = wxPyBeginAllowThreads();
14912 {
14913 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
14914 result = (wxString *) &_result_ref;
14915 }
14916
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 {
14921 #if wxUSE_UNICODE
14922 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14923 #else
14924 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14925 #endif
14926 }
14927 return resultobj;
14928 fail:
14929 return NULL;
14930 }
14931
14932
14933 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
14934 PyObject *resultobj = NULL;
14935 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14936 wxString *result;
14937 PyObject * obj0 = 0 ;
14938 char *kwnames[] = {
14939 (char *) "self", NULL
14940 };
14941
14942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
14943 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14944 if (SWIG_arg_fail(1)) SWIG_fail;
14945 {
14946 PyThreadState* __tstate = wxPyBeginAllowThreads();
14947 {
14948 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
14949 result = (wxString *) &_result_ref;
14950 }
14951
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 {
14956 #if wxUSE_UNICODE
14957 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14958 #else
14959 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14960 #endif
14961 }
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
14969 PyObject *resultobj = NULL;
14970 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14971 wxString *result;
14972 PyObject * obj0 = 0 ;
14973 char *kwnames[] = {
14974 (char *) "self", NULL
14975 };
14976
14977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
14978 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14979 if (SWIG_arg_fail(1)) SWIG_fail;
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 {
14983 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
14984 result = (wxString *) &_result_ref;
14985 }
14986
14987 wxPyEndAllowThreads(__tstate);
14988 if (PyErr_Occurred()) SWIG_fail;
14989 }
14990 {
14991 #if wxUSE_UNICODE
14992 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14993 #else
14994 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14995 #endif
14996 }
14997 return resultobj;
14998 fail:
14999 return NULL;
15000 }
15001
15002
15003 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
15004 PyObject *resultobj = NULL;
15005 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15006 wxString *result;
15007 PyObject * obj0 = 0 ;
15008 char *kwnames[] = {
15009 (char *) "self", NULL
15010 };
15011
15012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
15013 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15014 if (SWIG_arg_fail(1)) SWIG_fail;
15015 {
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 {
15018 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
15019 result = (wxString *) &_result_ref;
15020 }
15021
15022 wxPyEndAllowThreads(__tstate);
15023 if (PyErr_Occurred()) SWIG_fail;
15024 }
15025 {
15026 #if wxUSE_UNICODE
15027 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15028 #else
15029 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15030 #endif
15031 }
15032 return resultobj;
15033 fail:
15034 return NULL;
15035 }
15036
15037
15038 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
15039 PyObject *resultobj = NULL;
15040 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15041 wxString *result;
15042 PyObject * obj0 = 0 ;
15043 char *kwnames[] = {
15044 (char *) "self", NULL
15045 };
15046
15047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
15048 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15049 if (SWIG_arg_fail(1)) SWIG_fail;
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 {
15053 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
15054 result = (wxString *) &_result_ref;
15055 }
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 {
15061 #if wxUSE_UNICODE
15062 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15063 #else
15064 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15065 #endif
15066 }
15067 return resultobj;
15068 fail:
15069 return NULL;
15070 }
15071
15072
15073 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
15074 PyObject *resultobj = NULL;
15075 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15076 wxArrayString *result;
15077 PyObject * obj0 = 0 ;
15078 char *kwnames[] = {
15079 (char *) "self", NULL
15080 };
15081
15082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
15083 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15084 if (SWIG_arg_fail(1)) SWIG_fail;
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 {
15088 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
15089 result = (wxArrayString *) &_result_ref;
15090 }
15091
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 {
15096 resultobj = wxArrayString2PyList_helper(*result);
15097 }
15098 return resultobj;
15099 fail:
15100 return NULL;
15101 }
15102
15103
15104 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
15105 PyObject *resultobj = NULL;
15106 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15107 int result;
15108 PyObject * obj0 = 0 ;
15109 char *kwnames[] = {
15110 (char *) "self", NULL
15111 };
15112
15113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
15114 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15115 if (SWIG_arg_fail(1)) SWIG_fail;
15116 {
15117 PyThreadState* __tstate = wxPyBeginAllowThreads();
15118 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
15119
15120 wxPyEndAllowThreads(__tstate);
15121 if (PyErr_Occurred()) SWIG_fail;
15122 }
15123 {
15124 resultobj = SWIG_From_int(static_cast<int >(result));
15125 }
15126 return resultobj;
15127 fail:
15128 return NULL;
15129 }
15130
15131
15132 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
15133 PyObject *resultobj = NULL;
15134 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15135 wxString *result;
15136 PyObject * obj0 = 0 ;
15137 char *kwnames[] = {
15138 (char *) "self", NULL
15139 };
15140
15141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
15142 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15143 if (SWIG_arg_fail(1)) SWIG_fail;
15144 {
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
15146 {
15147 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
15148 result = (wxString *) &_result_ref;
15149 }
15150
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 {
15155 #if wxUSE_UNICODE
15156 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15157 #else
15158 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15159 #endif
15160 }
15161 return resultobj;
15162 fail:
15163 return NULL;
15164 }
15165
15166
15167 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
15168 PyObject *resultobj = NULL;
15169 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15170 int result;
15171 PyObject * obj0 = 0 ;
15172 char *kwnames[] = {
15173 (char *) "self", NULL
15174 };
15175
15176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
15177 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15178 if (SWIG_arg_fail(1)) SWIG_fail;
15179 {
15180 PyThreadState* __tstate = wxPyBeginAllowThreads();
15181 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
15182
15183 wxPyEndAllowThreads(__tstate);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
15186 {
15187 resultobj = SWIG_From_int(static_cast<int >(result));
15188 }
15189 return resultobj;
15190 fail:
15191 return NULL;
15192 }
15193
15194
15195 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
15196 PyObject *obj;
15197 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15198 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
15199 Py_INCREF(obj);
15200 return Py_BuildValue((char *)"");
15201 }
15202 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
15203 PyObject *resultobj = NULL;
15204 wxFileTypeInfo *arg1 = 0 ;
15205 wxFileType *result;
15206 PyObject * obj0 = 0 ;
15207 char *kwnames[] = {
15208 (char *) "ftInfo", NULL
15209 };
15210
15211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
15212 {
15213 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15214 if (SWIG_arg_fail(1)) SWIG_fail;
15215 if (arg1 == NULL) {
15216 SWIG_null_ref("wxFileTypeInfo");
15217 }
15218 if (SWIG_arg_fail(1)) SWIG_fail;
15219 }
15220 {
15221 PyThreadState* __tstate = wxPyBeginAllowThreads();
15222 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
15223
15224 wxPyEndAllowThreads(__tstate);
15225 if (PyErr_Occurred()) SWIG_fail;
15226 }
15227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
15228 return resultobj;
15229 fail:
15230 return NULL;
15231 }
15232
15233
15234 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
15235 PyObject *resultobj = NULL;
15236 wxFileType *arg1 = (wxFileType *) 0 ;
15237 PyObject * obj0 = 0 ;
15238 char *kwnames[] = {
15239 (char *) "self", NULL
15240 };
15241
15242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
15243 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15244 if (SWIG_arg_fail(1)) SWIG_fail;
15245 {
15246 PyThreadState* __tstate = wxPyBeginAllowThreads();
15247 delete arg1;
15248
15249 wxPyEndAllowThreads(__tstate);
15250 if (PyErr_Occurred()) SWIG_fail;
15251 }
15252 Py_INCREF(Py_None); resultobj = Py_None;
15253 return resultobj;
15254 fail:
15255 return NULL;
15256 }
15257
15258
15259 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
15260 PyObject *resultobj = NULL;
15261 wxFileType *arg1 = (wxFileType *) 0 ;
15262 PyObject *result;
15263 PyObject * obj0 = 0 ;
15264 char *kwnames[] = {
15265 (char *) "self", NULL
15266 };
15267
15268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
15269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15270 if (SWIG_arg_fail(1)) SWIG_fail;
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (PyObject *)wxFileType_GetMimeType(arg1);
15274
15275 wxPyEndAllowThreads(__tstate);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 resultobj = result;
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
15286 PyObject *resultobj = NULL;
15287 wxFileType *arg1 = (wxFileType *) 0 ;
15288 PyObject *result;
15289 PyObject * obj0 = 0 ;
15290 char *kwnames[] = {
15291 (char *) "self", NULL
15292 };
15293
15294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
15295 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15296 if (SWIG_arg_fail(1)) SWIG_fail;
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
15300
15301 wxPyEndAllowThreads(__tstate);
15302 if (PyErr_Occurred()) SWIG_fail;
15303 }
15304 resultobj = result;
15305 return resultobj;
15306 fail:
15307 return NULL;
15308 }
15309
15310
15311 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
15312 PyObject *resultobj = NULL;
15313 wxFileType *arg1 = (wxFileType *) 0 ;
15314 PyObject *result;
15315 PyObject * obj0 = 0 ;
15316 char *kwnames[] = {
15317 (char *) "self", NULL
15318 };
15319
15320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
15321 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15322 if (SWIG_arg_fail(1)) SWIG_fail;
15323 {
15324 PyThreadState* __tstate = wxPyBeginAllowThreads();
15325 result = (PyObject *)wxFileType_GetExtensions(arg1);
15326
15327 wxPyEndAllowThreads(__tstate);
15328 if (PyErr_Occurred()) SWIG_fail;
15329 }
15330 resultobj = result;
15331 return resultobj;
15332 fail:
15333 return NULL;
15334 }
15335
15336
15337 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
15338 PyObject *resultobj = NULL;
15339 wxFileType *arg1 = (wxFileType *) 0 ;
15340 wxIcon *result;
15341 PyObject * obj0 = 0 ;
15342 char *kwnames[] = {
15343 (char *) "self", NULL
15344 };
15345
15346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
15347 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15348 if (SWIG_arg_fail(1)) SWIG_fail;
15349 {
15350 PyThreadState* __tstate = wxPyBeginAllowThreads();
15351 result = (wxIcon *)wxFileType_GetIcon(arg1);
15352
15353 wxPyEndAllowThreads(__tstate);
15354 if (PyErr_Occurred()) SWIG_fail;
15355 }
15356 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
15357 return resultobj;
15358 fail:
15359 return NULL;
15360 }
15361
15362
15363 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
15364 PyObject *resultobj = NULL;
15365 wxFileType *arg1 = (wxFileType *) 0 ;
15366 PyObject *result;
15367 PyObject * obj0 = 0 ;
15368 char *kwnames[] = {
15369 (char *) "self", NULL
15370 };
15371
15372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
15373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15374 if (SWIG_arg_fail(1)) SWIG_fail;
15375 {
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 result = (PyObject *)wxFileType_GetIconInfo(arg1);
15378
15379 wxPyEndAllowThreads(__tstate);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 resultobj = result;
15383 return resultobj;
15384 fail:
15385 return NULL;
15386 }
15387
15388
15389 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
15390 PyObject *resultobj = NULL;
15391 wxFileType *arg1 = (wxFileType *) 0 ;
15392 PyObject *result;
15393 PyObject * obj0 = 0 ;
15394 char *kwnames[] = {
15395 (char *) "self", NULL
15396 };
15397
15398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
15399 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15400 if (SWIG_arg_fail(1)) SWIG_fail;
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (PyObject *)wxFileType_GetDescription(arg1);
15404
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = result;
15409 return resultobj;
15410 fail:
15411 return NULL;
15412 }
15413
15414
15415 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj = NULL;
15417 wxFileType *arg1 = (wxFileType *) 0 ;
15418 wxString *arg2 = 0 ;
15419 wxString const &arg3_defvalue = wxPyEmptyString ;
15420 wxString *arg3 = (wxString *) &arg3_defvalue ;
15421 PyObject *result;
15422 bool temp2 = false ;
15423 bool temp3 = false ;
15424 PyObject * obj0 = 0 ;
15425 PyObject * obj1 = 0 ;
15426 PyObject * obj2 = 0 ;
15427 char *kwnames[] = {
15428 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15429 };
15430
15431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15433 if (SWIG_arg_fail(1)) SWIG_fail;
15434 {
15435 arg2 = wxString_in_helper(obj1);
15436 if (arg2 == NULL) SWIG_fail;
15437 temp2 = true;
15438 }
15439 if (obj2) {
15440 {
15441 arg3 = wxString_in_helper(obj2);
15442 if (arg3 == NULL) SWIG_fail;
15443 temp3 = true;
15444 }
15445 }
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15449
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 resultobj = result;
15454 {
15455 if (temp2)
15456 delete arg2;
15457 }
15458 {
15459 if (temp3)
15460 delete arg3;
15461 }
15462 return resultobj;
15463 fail:
15464 {
15465 if (temp2)
15466 delete arg2;
15467 }
15468 {
15469 if (temp3)
15470 delete arg3;
15471 }
15472 return NULL;
15473 }
15474
15475
15476 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj = NULL;
15478 wxFileType *arg1 = (wxFileType *) 0 ;
15479 wxString *arg2 = 0 ;
15480 wxString const &arg3_defvalue = wxPyEmptyString ;
15481 wxString *arg3 = (wxString *) &arg3_defvalue ;
15482 PyObject *result;
15483 bool temp2 = false ;
15484 bool temp3 = false ;
15485 PyObject * obj0 = 0 ;
15486 PyObject * obj1 = 0 ;
15487 PyObject * obj2 = 0 ;
15488 char *kwnames[] = {
15489 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15490 };
15491
15492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15493 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15494 if (SWIG_arg_fail(1)) SWIG_fail;
15495 {
15496 arg2 = wxString_in_helper(obj1);
15497 if (arg2 == NULL) SWIG_fail;
15498 temp2 = true;
15499 }
15500 if (obj2) {
15501 {
15502 arg3 = wxString_in_helper(obj2);
15503 if (arg3 == NULL) SWIG_fail;
15504 temp3 = true;
15505 }
15506 }
15507 {
15508 PyThreadState* __tstate = wxPyBeginAllowThreads();
15509 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15510
15511 wxPyEndAllowThreads(__tstate);
15512 if (PyErr_Occurred()) SWIG_fail;
15513 }
15514 resultobj = result;
15515 {
15516 if (temp2)
15517 delete arg2;
15518 }
15519 {
15520 if (temp3)
15521 delete arg3;
15522 }
15523 return resultobj;
15524 fail:
15525 {
15526 if (temp2)
15527 delete arg2;
15528 }
15529 {
15530 if (temp3)
15531 delete arg3;
15532 }
15533 return NULL;
15534 }
15535
15536
15537 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj = NULL;
15539 wxFileType *arg1 = (wxFileType *) 0 ;
15540 wxString *arg2 = 0 ;
15541 wxString const &arg3_defvalue = wxPyEmptyString ;
15542 wxString *arg3 = (wxString *) &arg3_defvalue ;
15543 PyObject *result;
15544 bool temp2 = false ;
15545 bool temp3 = false ;
15546 PyObject * obj0 = 0 ;
15547 PyObject * obj1 = 0 ;
15548 PyObject * obj2 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
15554 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15555 if (SWIG_arg_fail(1)) SWIG_fail;
15556 {
15557 arg2 = wxString_in_helper(obj1);
15558 if (arg2 == NULL) SWIG_fail;
15559 temp2 = true;
15560 }
15561 if (obj2) {
15562 {
15563 arg3 = wxString_in_helper(obj2);
15564 if (arg3 == NULL) SWIG_fail;
15565 temp3 = true;
15566 }
15567 }
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15571
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 resultobj = result;
15576 {
15577 if (temp2)
15578 delete arg2;
15579 }
15580 {
15581 if (temp3)
15582 delete arg3;
15583 }
15584 return resultobj;
15585 fail:
15586 {
15587 if (temp2)
15588 delete arg2;
15589 }
15590 {
15591 if (temp3)
15592 delete arg3;
15593 }
15594 return NULL;
15595 }
15596
15597
15598 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15599 PyObject *resultobj = NULL;
15600 wxFileType *arg1 = (wxFileType *) 0 ;
15601 wxString *arg2 = 0 ;
15602 wxString *arg3 = 0 ;
15603 bool arg4 = (bool) true ;
15604 bool result;
15605 bool temp2 = false ;
15606 bool temp3 = false ;
15607 PyObject * obj0 = 0 ;
15608 PyObject * obj1 = 0 ;
15609 PyObject * obj2 = 0 ;
15610 PyObject * obj3 = 0 ;
15611 char *kwnames[] = {
15612 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
15613 };
15614
15615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15617 if (SWIG_arg_fail(1)) SWIG_fail;
15618 {
15619 arg2 = wxString_in_helper(obj1);
15620 if (arg2 == NULL) SWIG_fail;
15621 temp2 = true;
15622 }
15623 {
15624 arg3 = wxString_in_helper(obj2);
15625 if (arg3 == NULL) SWIG_fail;
15626 temp3 = true;
15627 }
15628 if (obj3) {
15629 {
15630 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
15631 if (SWIG_arg_fail(4)) SWIG_fail;
15632 }
15633 }
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
15637
15638 wxPyEndAllowThreads(__tstate);
15639 if (PyErr_Occurred()) SWIG_fail;
15640 }
15641 {
15642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15643 }
15644 {
15645 if (temp2)
15646 delete arg2;
15647 }
15648 {
15649 if (temp3)
15650 delete arg3;
15651 }
15652 return resultobj;
15653 fail:
15654 {
15655 if (temp2)
15656 delete arg2;
15657 }
15658 {
15659 if (temp3)
15660 delete arg3;
15661 }
15662 return NULL;
15663 }
15664
15665
15666 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj = NULL;
15668 wxFileType *arg1 = (wxFileType *) 0 ;
15669 wxString const &arg2_defvalue = wxPyEmptyString ;
15670 wxString *arg2 = (wxString *) &arg2_defvalue ;
15671 int arg3 = (int) 0 ;
15672 bool result;
15673 bool temp2 = false ;
15674 PyObject * obj0 = 0 ;
15675 PyObject * obj1 = 0 ;
15676 PyObject * obj2 = 0 ;
15677 char *kwnames[] = {
15678 (char *) "self",(char *) "cmd",(char *) "index", NULL
15679 };
15680
15681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15682 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15683 if (SWIG_arg_fail(1)) SWIG_fail;
15684 if (obj1) {
15685 {
15686 arg2 = wxString_in_helper(obj1);
15687 if (arg2 == NULL) SWIG_fail;
15688 temp2 = true;
15689 }
15690 }
15691 if (obj2) {
15692 {
15693 arg3 = static_cast<int >(SWIG_As_int(obj2));
15694 if (SWIG_arg_fail(3)) SWIG_fail;
15695 }
15696 }
15697 {
15698 PyThreadState* __tstate = wxPyBeginAllowThreads();
15699 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
15700
15701 wxPyEndAllowThreads(__tstate);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 }
15704 {
15705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15706 }
15707 {
15708 if (temp2)
15709 delete arg2;
15710 }
15711 return resultobj;
15712 fail:
15713 {
15714 if (temp2)
15715 delete arg2;
15716 }
15717 return NULL;
15718 }
15719
15720
15721 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
15722 PyObject *resultobj = NULL;
15723 wxFileType *arg1 = (wxFileType *) 0 ;
15724 bool result;
15725 PyObject * obj0 = 0 ;
15726 char *kwnames[] = {
15727 (char *) "self", NULL
15728 };
15729
15730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
15731 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15732 if (SWIG_arg_fail(1)) SWIG_fail;
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 result = (bool)(arg1)->Unassociate();
15736
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 {
15741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15742 }
15743 return resultobj;
15744 fail:
15745 return NULL;
15746 }
15747
15748
15749 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15750 PyObject *resultobj = NULL;
15751 wxString *arg1 = 0 ;
15752 wxString *arg2 = 0 ;
15753 wxString const &arg3_defvalue = wxPyEmptyString ;
15754 wxString *arg3 = (wxString *) &arg3_defvalue ;
15755 wxString result;
15756 bool temp1 = false ;
15757 bool temp2 = false ;
15758 bool temp3 = false ;
15759 PyObject * obj0 = 0 ;
15760 PyObject * obj1 = 0 ;
15761 PyObject * obj2 = 0 ;
15762 char *kwnames[] = {
15763 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
15764 };
15765
15766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15767 {
15768 arg1 = wxString_in_helper(obj0);
15769 if (arg1 == NULL) SWIG_fail;
15770 temp1 = true;
15771 }
15772 {
15773 arg2 = wxString_in_helper(obj1);
15774 if (arg2 == NULL) SWIG_fail;
15775 temp2 = true;
15776 }
15777 if (obj2) {
15778 {
15779 arg3 = wxString_in_helper(obj2);
15780 if (arg3 == NULL) SWIG_fail;
15781 temp3 = true;
15782 }
15783 }
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 result = wxFileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15787
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 {
15792 #if wxUSE_UNICODE
15793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15794 #else
15795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15796 #endif
15797 }
15798 {
15799 if (temp1)
15800 delete arg1;
15801 }
15802 {
15803 if (temp2)
15804 delete arg2;
15805 }
15806 {
15807 if (temp3)
15808 delete arg3;
15809 }
15810 return resultobj;
15811 fail:
15812 {
15813 if (temp1)
15814 delete arg1;
15815 }
15816 {
15817 if (temp2)
15818 delete arg2;
15819 }
15820 {
15821 if (temp3)
15822 delete arg3;
15823 }
15824 return NULL;
15825 }
15826
15827
15828 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
15829 PyObject *obj;
15830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15831 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
15832 Py_INCREF(obj);
15833 return Py_BuildValue((char *)"");
15834 }
15835 static int _wrap_TheMimeTypesManager_set(PyObject *) {
15836 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
15837 return 1;
15838 }
15839
15840
15841 static PyObject *_wrap_TheMimeTypesManager_get(void) {
15842 PyObject *pyobj = NULL;
15843
15844 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
15845 return pyobj;
15846 }
15847
15848
15849 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
15850 PyObject *resultobj = NULL;
15851 wxString *arg1 = 0 ;
15852 wxString *arg2 = 0 ;
15853 bool result;
15854 bool temp1 = false ;
15855 bool temp2 = false ;
15856 PyObject * obj0 = 0 ;
15857 PyObject * obj1 = 0 ;
15858 char *kwnames[] = {
15859 (char *) "mimeType",(char *) "wildcard", NULL
15860 };
15861
15862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
15863 {
15864 arg1 = wxString_in_helper(obj0);
15865 if (arg1 == NULL) SWIG_fail;
15866 temp1 = true;
15867 }
15868 {
15869 arg2 = wxString_in_helper(obj1);
15870 if (arg2 == NULL) SWIG_fail;
15871 temp2 = true;
15872 }
15873 {
15874 PyThreadState* __tstate = wxPyBeginAllowThreads();
15875 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
15876
15877 wxPyEndAllowThreads(__tstate);
15878 if (PyErr_Occurred()) SWIG_fail;
15879 }
15880 {
15881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15882 }
15883 {
15884 if (temp1)
15885 delete arg1;
15886 }
15887 {
15888 if (temp2)
15889 delete arg2;
15890 }
15891 return resultobj;
15892 fail:
15893 {
15894 if (temp1)
15895 delete arg1;
15896 }
15897 {
15898 if (temp2)
15899 delete arg2;
15900 }
15901 return NULL;
15902 }
15903
15904
15905 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj = NULL;
15907 wxMimeTypesManager *result;
15908 char *kwnames[] = {
15909 NULL
15910 };
15911
15912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 result = (wxMimeTypesManager *)new wxMimeTypesManager();
15916
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
15928 PyObject *resultobj = NULL;
15929 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
15930 int arg2 = (int) wxMAILCAP_ALL ;
15931 wxString const &arg3_defvalue = wxPyEmptyString ;
15932 wxString *arg3 = (wxString *) &arg3_defvalue ;
15933 bool temp3 = false ;
15934 PyObject * obj0 = 0 ;
15935 PyObject * obj1 = 0 ;
15936 PyObject * obj2 = 0 ;
15937 char *kwnames[] = {
15938 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
15939 };
15940
15941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15942 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
15943 if (SWIG_arg_fail(1)) SWIG_fail;
15944 if (obj1) {
15945 {
15946 arg2 = static_cast<int >(SWIG_As_int(obj1));
15947 if (SWIG_arg_fail(2)) SWIG_fail;
15948 }
15949 }
15950 if (obj2) {
15951 {
15952 arg3 = wxString_in_helper(obj2);
15953 if (arg3 == NULL) SWIG_fail;
15954 temp3 = true;
15955 }
15956 }
15957 {
15958 PyThreadState* __tstate = wxPyBeginAllowThreads();
15959 (arg1)->Initialize(arg2,(wxString const &)*arg3);
15960
15961 wxPyEndAllowThreads(__tstate);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 }
15964 Py_INCREF(Py_None); resultobj = Py_None;
15965 {
15966 if (temp3)
15967 delete arg3;
15968 }
15969 return resultobj;
15970 fail:
15971 {
15972 if (temp3)
15973 delete arg3;
15974 }
15975 return NULL;
15976 }
15977
15978
15979 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj = NULL;
15981 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
15982 PyObject * obj0 = 0 ;
15983 char *kwnames[] = {
15984 (char *) "self", NULL
15985 };
15986
15987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
15988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
15989 if (SWIG_arg_fail(1)) SWIG_fail;
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 (arg1)->ClearData();
15993
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 Py_INCREF(Py_None); resultobj = Py_None;
15998 return resultobj;
15999 fail:
16000 return NULL;
16001 }
16002
16003
16004 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj = NULL;
16006 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16007 wxString *arg2 = 0 ;
16008 wxFileType *result;
16009 bool temp2 = false ;
16010 PyObject * obj0 = 0 ;
16011 PyObject * obj1 = 0 ;
16012 char *kwnames[] = {
16013 (char *) "self",(char *) "ext", NULL
16014 };
16015
16016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
16017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16018 if (SWIG_arg_fail(1)) SWIG_fail;
16019 {
16020 arg2 = wxString_in_helper(obj1);
16021 if (arg2 == NULL) SWIG_fail;
16022 temp2 = true;
16023 }
16024 {
16025 PyThreadState* __tstate = wxPyBeginAllowThreads();
16026 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
16027
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16032 {
16033 if (temp2)
16034 delete arg2;
16035 }
16036 return resultobj;
16037 fail:
16038 {
16039 if (temp2)
16040 delete arg2;
16041 }
16042 return NULL;
16043 }
16044
16045
16046 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
16047 PyObject *resultobj = NULL;
16048 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16049 wxString *arg2 = 0 ;
16050 wxFileType *result;
16051 bool temp2 = false ;
16052 PyObject * obj0 = 0 ;
16053 PyObject * obj1 = 0 ;
16054 char *kwnames[] = {
16055 (char *) "self",(char *) "mimeType", NULL
16056 };
16057
16058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
16059 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16060 if (SWIG_arg_fail(1)) SWIG_fail;
16061 {
16062 arg2 = wxString_in_helper(obj1);
16063 if (arg2 == NULL) SWIG_fail;
16064 temp2 = true;
16065 }
16066 {
16067 PyThreadState* __tstate = wxPyBeginAllowThreads();
16068 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
16069
16070 wxPyEndAllowThreads(__tstate);
16071 if (PyErr_Occurred()) SWIG_fail;
16072 }
16073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16074 {
16075 if (temp2)
16076 delete arg2;
16077 }
16078 return resultobj;
16079 fail:
16080 {
16081 if (temp2)
16082 delete arg2;
16083 }
16084 return NULL;
16085 }
16086
16087
16088 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
16089 PyObject *resultobj = NULL;
16090 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16091 wxString *arg2 = 0 ;
16092 bool arg3 = (bool) false ;
16093 bool result;
16094 bool temp2 = false ;
16095 PyObject * obj0 = 0 ;
16096 PyObject * obj1 = 0 ;
16097 PyObject * obj2 = 0 ;
16098 char *kwnames[] = {
16099 (char *) "self",(char *) "filename",(char *) "fallback", NULL
16100 };
16101
16102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
16103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16104 if (SWIG_arg_fail(1)) SWIG_fail;
16105 {
16106 arg2 = wxString_in_helper(obj1);
16107 if (arg2 == NULL) SWIG_fail;
16108 temp2 = true;
16109 }
16110 if (obj2) {
16111 {
16112 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
16113 if (SWIG_arg_fail(3)) SWIG_fail;
16114 }
16115 }
16116 {
16117 PyThreadState* __tstate = wxPyBeginAllowThreads();
16118 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
16119
16120 wxPyEndAllowThreads(__tstate);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 {
16124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16125 }
16126 {
16127 if (temp2)
16128 delete arg2;
16129 }
16130 return resultobj;
16131 fail:
16132 {
16133 if (temp2)
16134 delete arg2;
16135 }
16136 return NULL;
16137 }
16138
16139
16140 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
16141 PyObject *resultobj = NULL;
16142 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16143 wxString *arg2 = 0 ;
16144 bool result;
16145 bool temp2 = false ;
16146 PyObject * obj0 = 0 ;
16147 PyObject * obj1 = 0 ;
16148 char *kwnames[] = {
16149 (char *) "self",(char *) "filename", NULL
16150 };
16151
16152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
16153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16154 if (SWIG_arg_fail(1)) SWIG_fail;
16155 {
16156 arg2 = wxString_in_helper(obj1);
16157 if (arg2 == NULL) SWIG_fail;
16158 temp2 = true;
16159 }
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 {
16168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16169 }
16170 {
16171 if (temp2)
16172 delete arg2;
16173 }
16174 return resultobj;
16175 fail:
16176 {
16177 if (temp2)
16178 delete arg2;
16179 }
16180 return NULL;
16181 }
16182
16183
16184 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
16185 PyObject *resultobj = NULL;
16186 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16187 PyObject *result;
16188 PyObject * obj0 = 0 ;
16189 char *kwnames[] = {
16190 (char *) "self", NULL
16191 };
16192
16193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
16194 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16195 if (SWIG_arg_fail(1)) SWIG_fail;
16196 {
16197 PyThreadState* __tstate = wxPyBeginAllowThreads();
16198 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
16199
16200 wxPyEndAllowThreads(__tstate);
16201 if (PyErr_Occurred()) SWIG_fail;
16202 }
16203 resultobj = result;
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
16211 PyObject *resultobj = NULL;
16212 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16213 wxFileTypeInfo *arg2 = 0 ;
16214 PyObject * obj0 = 0 ;
16215 PyObject * obj1 = 0 ;
16216 char *kwnames[] = {
16217 (char *) "self",(char *) "ft", NULL
16218 };
16219
16220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
16221 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16222 if (SWIG_arg_fail(1)) SWIG_fail;
16223 {
16224 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
16225 if (SWIG_arg_fail(2)) SWIG_fail;
16226 if (arg2 == NULL) {
16227 SWIG_null_ref("wxFileTypeInfo");
16228 }
16229 if (SWIG_arg_fail(2)) SWIG_fail;
16230 }
16231 {
16232 PyThreadState* __tstate = wxPyBeginAllowThreads();
16233 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
16234
16235 wxPyEndAllowThreads(__tstate);
16236 if (PyErr_Occurred()) SWIG_fail;
16237 }
16238 Py_INCREF(Py_None); resultobj = Py_None;
16239 return resultobj;
16240 fail:
16241 return NULL;
16242 }
16243
16244
16245 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
16246 PyObject *resultobj = NULL;
16247 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16248 wxFileTypeInfo *arg2 = 0 ;
16249 wxFileType *result;
16250 PyObject * obj0 = 0 ;
16251 PyObject * obj1 = 0 ;
16252 char *kwnames[] = {
16253 (char *) "self",(char *) "ftInfo", NULL
16254 };
16255
16256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
16257 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16258 if (SWIG_arg_fail(1)) SWIG_fail;
16259 {
16260 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
16261 if (SWIG_arg_fail(2)) SWIG_fail;
16262 if (arg2 == NULL) {
16263 SWIG_null_ref("wxFileTypeInfo");
16264 }
16265 if (SWIG_arg_fail(2)) SWIG_fail;
16266 }
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
16270
16271 wxPyEndAllowThreads(__tstate);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16275 return resultobj;
16276 fail:
16277 return NULL;
16278 }
16279
16280
16281 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
16282 PyObject *resultobj = NULL;
16283 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16284 wxFileType *arg2 = (wxFileType *) 0 ;
16285 bool result;
16286 PyObject * obj0 = 0 ;
16287 PyObject * obj1 = 0 ;
16288 char *kwnames[] = {
16289 (char *) "self",(char *) "ft", NULL
16290 };
16291
16292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
16293 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16294 if (SWIG_arg_fail(1)) SWIG_fail;
16295 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
16296 if (SWIG_arg_fail(2)) SWIG_fail;
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 result = (bool)(arg1)->Unassociate(arg2);
16300
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 {
16305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16306 }
16307 return resultobj;
16308 fail:
16309 return NULL;
16310 }
16311
16312
16313 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
16314 PyObject *resultobj = NULL;
16315 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16316 PyObject * obj0 = 0 ;
16317 char *kwnames[] = {
16318 (char *) "self", NULL
16319 };
16320
16321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
16322 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16323 if (SWIG_arg_fail(1)) SWIG_fail;
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 delete arg1;
16327
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 Py_INCREF(Py_None); resultobj = Py_None;
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
16339 PyObject *obj;
16340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16341 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
16342 Py_INCREF(obj);
16343 return Py_BuildValue((char *)"");
16344 }
16345 static int _wrap_ART_TOOLBAR_set(PyObject *) {
16346 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
16347 return 1;
16348 }
16349
16350
16351 static PyObject *_wrap_ART_TOOLBAR_get(void) {
16352 PyObject *pyobj = NULL;
16353
16354 {
16355 #if wxUSE_UNICODE
16356 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
16357 #else
16358 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
16359 #endif
16360 }
16361 return pyobj;
16362 }
16363
16364
16365 static int _wrap_ART_MENU_set(PyObject *) {
16366 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
16367 return 1;
16368 }
16369
16370
16371 static PyObject *_wrap_ART_MENU_get(void) {
16372 PyObject *pyobj = NULL;
16373
16374 {
16375 #if wxUSE_UNICODE
16376 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
16377 #else
16378 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
16379 #endif
16380 }
16381 return pyobj;
16382 }
16383
16384
16385 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
16386 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
16387 return 1;
16388 }
16389
16390
16391 static PyObject *_wrap_ART_FRAME_ICON_get(void) {
16392 PyObject *pyobj = NULL;
16393
16394 {
16395 #if wxUSE_UNICODE
16396 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
16397 #else
16398 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
16399 #endif
16400 }
16401 return pyobj;
16402 }
16403
16404
16405 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
16406 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
16407 return 1;
16408 }
16409
16410
16411 static PyObject *_wrap_ART_CMN_DIALOG_get(void) {
16412 PyObject *pyobj = NULL;
16413
16414 {
16415 #if wxUSE_UNICODE
16416 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
16417 #else
16418 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
16419 #endif
16420 }
16421 return pyobj;
16422 }
16423
16424
16425 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
16426 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
16427 return 1;
16428 }
16429
16430
16431 static PyObject *_wrap_ART_HELP_BROWSER_get(void) {
16432 PyObject *pyobj = NULL;
16433
16434 {
16435 #if wxUSE_UNICODE
16436 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
16437 #else
16438 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
16439 #endif
16440 }
16441 return pyobj;
16442 }
16443
16444
16445 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
16446 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
16447 return 1;
16448 }
16449
16450
16451 static PyObject *_wrap_ART_MESSAGE_BOX_get(void) {
16452 PyObject *pyobj = NULL;
16453
16454 {
16455 #if wxUSE_UNICODE
16456 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
16457 #else
16458 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
16459 #endif
16460 }
16461 return pyobj;
16462 }
16463
16464
16465 static int _wrap_ART_BUTTON_set(PyObject *) {
16466 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
16467 return 1;
16468 }
16469
16470
16471 static PyObject *_wrap_ART_BUTTON_get(void) {
16472 PyObject *pyobj = NULL;
16473
16474 {
16475 #if wxUSE_UNICODE
16476 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
16477 #else
16478 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
16479 #endif
16480 }
16481 return pyobj;
16482 }
16483
16484
16485 static int _wrap_ART_OTHER_set(PyObject *) {
16486 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
16487 return 1;
16488 }
16489
16490
16491 static PyObject *_wrap_ART_OTHER_get(void) {
16492 PyObject *pyobj = NULL;
16493
16494 {
16495 #if wxUSE_UNICODE
16496 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
16497 #else
16498 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
16499 #endif
16500 }
16501 return pyobj;
16502 }
16503
16504
16505 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
16506 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
16507 return 1;
16508 }
16509
16510
16511 static PyObject *_wrap_ART_ADD_BOOKMARK_get(void) {
16512 PyObject *pyobj = NULL;
16513
16514 {
16515 #if wxUSE_UNICODE
16516 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
16517 #else
16518 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
16519 #endif
16520 }
16521 return pyobj;
16522 }
16523
16524
16525 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
16526 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
16527 return 1;
16528 }
16529
16530
16531 static PyObject *_wrap_ART_DEL_BOOKMARK_get(void) {
16532 PyObject *pyobj = NULL;
16533
16534 {
16535 #if wxUSE_UNICODE
16536 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
16537 #else
16538 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
16539 #endif
16540 }
16541 return pyobj;
16542 }
16543
16544
16545 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
16546 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
16547 return 1;
16548 }
16549
16550
16551 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get(void) {
16552 PyObject *pyobj = NULL;
16553
16554 {
16555 #if wxUSE_UNICODE
16556 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
16557 #else
16558 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
16559 #endif
16560 }
16561 return pyobj;
16562 }
16563
16564
16565 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
16566 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
16567 return 1;
16568 }
16569
16570
16571 static PyObject *_wrap_ART_HELP_SETTINGS_get(void) {
16572 PyObject *pyobj = NULL;
16573
16574 {
16575 #if wxUSE_UNICODE
16576 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
16577 #else
16578 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
16579 #endif
16580 }
16581 return pyobj;
16582 }
16583
16584
16585 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
16586 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
16587 return 1;
16588 }
16589
16590
16591 static PyObject *_wrap_ART_HELP_BOOK_get(void) {
16592 PyObject *pyobj = NULL;
16593
16594 {
16595 #if wxUSE_UNICODE
16596 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
16597 #else
16598 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
16599 #endif
16600 }
16601 return pyobj;
16602 }
16603
16604
16605 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
16606 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
16607 return 1;
16608 }
16609
16610
16611 static PyObject *_wrap_ART_HELP_FOLDER_get(void) {
16612 PyObject *pyobj = NULL;
16613
16614 {
16615 #if wxUSE_UNICODE
16616 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
16617 #else
16618 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
16619 #endif
16620 }
16621 return pyobj;
16622 }
16623
16624
16625 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
16626 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
16627 return 1;
16628 }
16629
16630
16631 static PyObject *_wrap_ART_HELP_PAGE_get(void) {
16632 PyObject *pyobj = NULL;
16633
16634 {
16635 #if wxUSE_UNICODE
16636 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
16637 #else
16638 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
16639 #endif
16640 }
16641 return pyobj;
16642 }
16643
16644
16645 static int _wrap_ART_GO_BACK_set(PyObject *) {
16646 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
16647 return 1;
16648 }
16649
16650
16651 static PyObject *_wrap_ART_GO_BACK_get(void) {
16652 PyObject *pyobj = NULL;
16653
16654 {
16655 #if wxUSE_UNICODE
16656 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
16657 #else
16658 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
16659 #endif
16660 }
16661 return pyobj;
16662 }
16663
16664
16665 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
16666 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
16667 return 1;
16668 }
16669
16670
16671 static PyObject *_wrap_ART_GO_FORWARD_get(void) {
16672 PyObject *pyobj = NULL;
16673
16674 {
16675 #if wxUSE_UNICODE
16676 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
16677 #else
16678 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
16679 #endif
16680 }
16681 return pyobj;
16682 }
16683
16684
16685 static int _wrap_ART_GO_UP_set(PyObject *) {
16686 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
16687 return 1;
16688 }
16689
16690
16691 static PyObject *_wrap_ART_GO_UP_get(void) {
16692 PyObject *pyobj = NULL;
16693
16694 {
16695 #if wxUSE_UNICODE
16696 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
16697 #else
16698 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
16699 #endif
16700 }
16701 return pyobj;
16702 }
16703
16704
16705 static int _wrap_ART_GO_DOWN_set(PyObject *) {
16706 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
16707 return 1;
16708 }
16709
16710
16711 static PyObject *_wrap_ART_GO_DOWN_get(void) {
16712 PyObject *pyobj = NULL;
16713
16714 {
16715 #if wxUSE_UNICODE
16716 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
16717 #else
16718 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
16719 #endif
16720 }
16721 return pyobj;
16722 }
16723
16724
16725 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
16726 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
16727 return 1;
16728 }
16729
16730
16731 static PyObject *_wrap_ART_GO_TO_PARENT_get(void) {
16732 PyObject *pyobj = NULL;
16733
16734 {
16735 #if wxUSE_UNICODE
16736 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
16737 #else
16738 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
16739 #endif
16740 }
16741 return pyobj;
16742 }
16743
16744
16745 static int _wrap_ART_GO_HOME_set(PyObject *) {
16746 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
16747 return 1;
16748 }
16749
16750
16751 static PyObject *_wrap_ART_GO_HOME_get(void) {
16752 PyObject *pyobj = NULL;
16753
16754 {
16755 #if wxUSE_UNICODE
16756 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
16757 #else
16758 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
16759 #endif
16760 }
16761 return pyobj;
16762 }
16763
16764
16765 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
16766 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
16767 return 1;
16768 }
16769
16770
16771 static PyObject *_wrap_ART_FILE_OPEN_get(void) {
16772 PyObject *pyobj = NULL;
16773
16774 {
16775 #if wxUSE_UNICODE
16776 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
16777 #else
16778 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
16779 #endif
16780 }
16781 return pyobj;
16782 }
16783
16784
16785 static int _wrap_ART_FILE_SAVE_set(PyObject *) {
16786 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE is read-only.");
16787 return 1;
16788 }
16789
16790
16791 static PyObject *_wrap_ART_FILE_SAVE_get(void) {
16792 PyObject *pyobj = NULL;
16793
16794 {
16795 #if wxUSE_UNICODE
16796 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
16797 #else
16798 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
16799 #endif
16800 }
16801 return pyobj;
16802 }
16803
16804
16805 static int _wrap_ART_FILE_SAVE_AS_set(PyObject *) {
16806 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE_AS is read-only.");
16807 return 1;
16808 }
16809
16810
16811 static PyObject *_wrap_ART_FILE_SAVE_AS_get(void) {
16812 PyObject *pyobj = NULL;
16813
16814 {
16815 #if wxUSE_UNICODE
16816 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
16817 #else
16818 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
16819 #endif
16820 }
16821 return pyobj;
16822 }
16823
16824
16825 static int _wrap_ART_PRINT_set(PyObject *) {
16826 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
16827 return 1;
16828 }
16829
16830
16831 static PyObject *_wrap_ART_PRINT_get(void) {
16832 PyObject *pyobj = NULL;
16833
16834 {
16835 #if wxUSE_UNICODE
16836 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
16837 #else
16838 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
16839 #endif
16840 }
16841 return pyobj;
16842 }
16843
16844
16845 static int _wrap_ART_HELP_set(PyObject *) {
16846 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
16847 return 1;
16848 }
16849
16850
16851 static PyObject *_wrap_ART_HELP_get(void) {
16852 PyObject *pyobj = NULL;
16853
16854 {
16855 #if wxUSE_UNICODE
16856 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
16857 #else
16858 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
16859 #endif
16860 }
16861 return pyobj;
16862 }
16863
16864
16865 static int _wrap_ART_TIP_set(PyObject *) {
16866 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
16867 return 1;
16868 }
16869
16870
16871 static PyObject *_wrap_ART_TIP_get(void) {
16872 PyObject *pyobj = NULL;
16873
16874 {
16875 #if wxUSE_UNICODE
16876 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
16877 #else
16878 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
16879 #endif
16880 }
16881 return pyobj;
16882 }
16883
16884
16885 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
16886 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
16887 return 1;
16888 }
16889
16890
16891 static PyObject *_wrap_ART_REPORT_VIEW_get(void) {
16892 PyObject *pyobj = NULL;
16893
16894 {
16895 #if wxUSE_UNICODE
16896 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
16897 #else
16898 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
16899 #endif
16900 }
16901 return pyobj;
16902 }
16903
16904
16905 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
16906 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
16907 return 1;
16908 }
16909
16910
16911 static PyObject *_wrap_ART_LIST_VIEW_get(void) {
16912 PyObject *pyobj = NULL;
16913
16914 {
16915 #if wxUSE_UNICODE
16916 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
16917 #else
16918 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
16919 #endif
16920 }
16921 return pyobj;
16922 }
16923
16924
16925 static int _wrap_ART_NEW_DIR_set(PyObject *) {
16926 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
16927 return 1;
16928 }
16929
16930
16931 static PyObject *_wrap_ART_NEW_DIR_get(void) {
16932 PyObject *pyobj = NULL;
16933
16934 {
16935 #if wxUSE_UNICODE
16936 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
16937 #else
16938 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
16939 #endif
16940 }
16941 return pyobj;
16942 }
16943
16944
16945 static int _wrap_ART_HARDDISK_set(PyObject *) {
16946 PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only.");
16947 return 1;
16948 }
16949
16950
16951 static PyObject *_wrap_ART_HARDDISK_get(void) {
16952 PyObject *pyobj = NULL;
16953
16954 {
16955 #if wxUSE_UNICODE
16956 pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
16957 #else
16958 pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
16959 #endif
16960 }
16961 return pyobj;
16962 }
16963
16964
16965 static int _wrap_ART_FLOPPY_set(PyObject *) {
16966 PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only.");
16967 return 1;
16968 }
16969
16970
16971 static PyObject *_wrap_ART_FLOPPY_get(void) {
16972 PyObject *pyobj = NULL;
16973
16974 {
16975 #if wxUSE_UNICODE
16976 pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
16977 #else
16978 pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
16979 #endif
16980 }
16981 return pyobj;
16982 }
16983
16984
16985 static int _wrap_ART_CDROM_set(PyObject *) {
16986 PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only.");
16987 return 1;
16988 }
16989
16990
16991 static PyObject *_wrap_ART_CDROM_get(void) {
16992 PyObject *pyobj = NULL;
16993
16994 {
16995 #if wxUSE_UNICODE
16996 pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
16997 #else
16998 pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
16999 #endif
17000 }
17001 return pyobj;
17002 }
17003
17004
17005 static int _wrap_ART_REMOVABLE_set(PyObject *) {
17006 PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only.");
17007 return 1;
17008 }
17009
17010
17011 static PyObject *_wrap_ART_REMOVABLE_get(void) {
17012 PyObject *pyobj = NULL;
17013
17014 {
17015 #if wxUSE_UNICODE
17016 pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
17017 #else
17018 pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
17019 #endif
17020 }
17021 return pyobj;
17022 }
17023
17024
17025 static int _wrap_ART_FOLDER_set(PyObject *) {
17026 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
17027 return 1;
17028 }
17029
17030
17031 static PyObject *_wrap_ART_FOLDER_get(void) {
17032 PyObject *pyobj = NULL;
17033
17034 {
17035 #if wxUSE_UNICODE
17036 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
17037 #else
17038 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
17039 #endif
17040 }
17041 return pyobj;
17042 }
17043
17044
17045 static int _wrap_ART_FOLDER_OPEN_set(PyObject *) {
17046 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only.");
17047 return 1;
17048 }
17049
17050
17051 static PyObject *_wrap_ART_FOLDER_OPEN_get(void) {
17052 PyObject *pyobj = NULL;
17053
17054 {
17055 #if wxUSE_UNICODE
17056 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
17057 #else
17058 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
17059 #endif
17060 }
17061 return pyobj;
17062 }
17063
17064
17065 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
17066 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
17067 return 1;
17068 }
17069
17070
17071 static PyObject *_wrap_ART_GO_DIR_UP_get(void) {
17072 PyObject *pyobj = NULL;
17073
17074 {
17075 #if wxUSE_UNICODE
17076 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
17077 #else
17078 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
17079 #endif
17080 }
17081 return pyobj;
17082 }
17083
17084
17085 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
17086 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
17087 return 1;
17088 }
17089
17090
17091 static PyObject *_wrap_ART_EXECUTABLE_FILE_get(void) {
17092 PyObject *pyobj = NULL;
17093
17094 {
17095 #if wxUSE_UNICODE
17096 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
17097 #else
17098 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
17099 #endif
17100 }
17101 return pyobj;
17102 }
17103
17104
17105 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
17106 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
17107 return 1;
17108 }
17109
17110
17111 static PyObject *_wrap_ART_NORMAL_FILE_get(void) {
17112 PyObject *pyobj = NULL;
17113
17114 {
17115 #if wxUSE_UNICODE
17116 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
17117 #else
17118 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
17119 #endif
17120 }
17121 return pyobj;
17122 }
17123
17124
17125 static int _wrap_ART_TICK_MARK_set(PyObject *) {
17126 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
17127 return 1;
17128 }
17129
17130
17131 static PyObject *_wrap_ART_TICK_MARK_get(void) {
17132 PyObject *pyobj = NULL;
17133
17134 {
17135 #if wxUSE_UNICODE
17136 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
17137 #else
17138 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
17139 #endif
17140 }
17141 return pyobj;
17142 }
17143
17144
17145 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
17146 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
17147 return 1;
17148 }
17149
17150
17151 static PyObject *_wrap_ART_CROSS_MARK_get(void) {
17152 PyObject *pyobj = NULL;
17153
17154 {
17155 #if wxUSE_UNICODE
17156 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
17157 #else
17158 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
17159 #endif
17160 }
17161 return pyobj;
17162 }
17163
17164
17165 static int _wrap_ART_ERROR_set(PyObject *) {
17166 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
17167 return 1;
17168 }
17169
17170
17171 static PyObject *_wrap_ART_ERROR_get(void) {
17172 PyObject *pyobj = NULL;
17173
17174 {
17175 #if wxUSE_UNICODE
17176 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
17177 #else
17178 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
17179 #endif
17180 }
17181 return pyobj;
17182 }
17183
17184
17185 static int _wrap_ART_QUESTION_set(PyObject *) {
17186 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
17187 return 1;
17188 }
17189
17190
17191 static PyObject *_wrap_ART_QUESTION_get(void) {
17192 PyObject *pyobj = NULL;
17193
17194 {
17195 #if wxUSE_UNICODE
17196 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
17197 #else
17198 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
17199 #endif
17200 }
17201 return pyobj;
17202 }
17203
17204
17205 static int _wrap_ART_WARNING_set(PyObject *) {
17206 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
17207 return 1;
17208 }
17209
17210
17211 static PyObject *_wrap_ART_WARNING_get(void) {
17212 PyObject *pyobj = NULL;
17213
17214 {
17215 #if wxUSE_UNICODE
17216 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
17217 #else
17218 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
17219 #endif
17220 }
17221 return pyobj;
17222 }
17223
17224
17225 static int _wrap_ART_INFORMATION_set(PyObject *) {
17226 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
17227 return 1;
17228 }
17229
17230
17231 static PyObject *_wrap_ART_INFORMATION_get(void) {
17232 PyObject *pyobj = NULL;
17233
17234 {
17235 #if wxUSE_UNICODE
17236 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
17237 #else
17238 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
17239 #endif
17240 }
17241 return pyobj;
17242 }
17243
17244
17245 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
17246 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
17247 return 1;
17248 }
17249
17250
17251 static PyObject *_wrap_ART_MISSING_IMAGE_get(void) {
17252 PyObject *pyobj = NULL;
17253
17254 {
17255 #if wxUSE_UNICODE
17256 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
17257 #else
17258 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
17259 #endif
17260 }
17261 return pyobj;
17262 }
17263
17264
17265 static int _wrap_ART_COPY_set(PyObject *) {
17266 PyErr_SetString(PyExc_TypeError,"Variable ART_COPY is read-only.");
17267 return 1;
17268 }
17269
17270
17271 static PyObject *_wrap_ART_COPY_get(void) {
17272 PyObject *pyobj = NULL;
17273
17274 {
17275 #if wxUSE_UNICODE
17276 pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
17277 #else
17278 pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
17279 #endif
17280 }
17281 return pyobj;
17282 }
17283
17284
17285 static int _wrap_ART_CUT_set(PyObject *) {
17286 PyErr_SetString(PyExc_TypeError,"Variable ART_CUT is read-only.");
17287 return 1;
17288 }
17289
17290
17291 static PyObject *_wrap_ART_CUT_get(void) {
17292 PyObject *pyobj = NULL;
17293
17294 {
17295 #if wxUSE_UNICODE
17296 pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
17297 #else
17298 pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
17299 #endif
17300 }
17301 return pyobj;
17302 }
17303
17304
17305 static int _wrap_ART_PASTE_set(PyObject *) {
17306 PyErr_SetString(PyExc_TypeError,"Variable ART_PASTE is read-only.");
17307 return 1;
17308 }
17309
17310
17311 static PyObject *_wrap_ART_PASTE_get(void) {
17312 PyObject *pyobj = NULL;
17313
17314 {
17315 #if wxUSE_UNICODE
17316 pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
17317 #else
17318 pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
17319 #endif
17320 }
17321 return pyobj;
17322 }
17323
17324
17325 static int _wrap_ART_DELETE_set(PyObject *) {
17326 PyErr_SetString(PyExc_TypeError,"Variable ART_DELETE is read-only.");
17327 return 1;
17328 }
17329
17330
17331 static PyObject *_wrap_ART_DELETE_get(void) {
17332 PyObject *pyobj = NULL;
17333
17334 {
17335 #if wxUSE_UNICODE
17336 pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
17337 #else
17338 pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
17339 #endif
17340 }
17341 return pyobj;
17342 }
17343
17344
17345 static int _wrap_ART_NEW_set(PyObject *) {
17346 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW is read-only.");
17347 return 1;
17348 }
17349
17350
17351 static PyObject *_wrap_ART_NEW_get(void) {
17352 PyObject *pyobj = NULL;
17353
17354 {
17355 #if wxUSE_UNICODE
17356 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
17357 #else
17358 pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
17359 #endif
17360 }
17361 return pyobj;
17362 }
17363
17364
17365 static int _wrap_ART_UNDO_set(PyObject *) {
17366 PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only.");
17367 return 1;
17368 }
17369
17370
17371 static PyObject *_wrap_ART_UNDO_get(void) {
17372 PyObject *pyobj = NULL;
17373
17374 {
17375 #if wxUSE_UNICODE
17376 pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
17377 #else
17378 pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
17379 #endif
17380 }
17381 return pyobj;
17382 }
17383
17384
17385 static int _wrap_ART_REDO_set(PyObject *) {
17386 PyErr_SetString(PyExc_TypeError,"Variable ART_REDO is read-only.");
17387 return 1;
17388 }
17389
17390
17391 static PyObject *_wrap_ART_REDO_get(void) {
17392 PyObject *pyobj = NULL;
17393
17394 {
17395 #if wxUSE_UNICODE
17396 pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
17397 #else
17398 pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
17399 #endif
17400 }
17401 return pyobj;
17402 }
17403
17404
17405 static int _wrap_ART_QUIT_set(PyObject *) {
17406 PyErr_SetString(PyExc_TypeError,"Variable ART_QUIT is read-only.");
17407 return 1;
17408 }
17409
17410
17411 static PyObject *_wrap_ART_QUIT_get(void) {
17412 PyObject *pyobj = NULL;
17413
17414 {
17415 #if wxUSE_UNICODE
17416 pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
17417 #else
17418 pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
17419 #endif
17420 }
17421 return pyobj;
17422 }
17423
17424
17425 static int _wrap_ART_FIND_set(PyObject *) {
17426 PyErr_SetString(PyExc_TypeError,"Variable ART_FIND is read-only.");
17427 return 1;
17428 }
17429
17430
17431 static PyObject *_wrap_ART_FIND_get(void) {
17432 PyObject *pyobj = NULL;
17433
17434 {
17435 #if wxUSE_UNICODE
17436 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
17437 #else
17438 pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
17439 #endif
17440 }
17441 return pyobj;
17442 }
17443
17444
17445 static int _wrap_ART_FIND_AND_REPLACE_set(PyObject *) {
17446 PyErr_SetString(PyExc_TypeError,"Variable ART_FIND_AND_REPLACE is read-only.");
17447 return 1;
17448 }
17449
17450
17451 static PyObject *_wrap_ART_FIND_AND_REPLACE_get(void) {
17452 PyObject *pyobj = NULL;
17453
17454 {
17455 #if wxUSE_UNICODE
17456 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
17457 #else
17458 pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
17459 #endif
17460 }
17461 return pyobj;
17462 }
17463
17464
17465 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17466 PyObject *resultobj = NULL;
17467 wxPyArtProvider *result;
17468 char *kwnames[] = {
17469 NULL
17470 };
17471
17472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
17473 {
17474 if (!wxPyCheckForApp()) SWIG_fail;
17475 PyThreadState* __tstate = wxPyBeginAllowThreads();
17476 result = (wxPyArtProvider *)new wxPyArtProvider();
17477
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
17482 return resultobj;
17483 fail:
17484 return NULL;
17485 }
17486
17487
17488 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
17489 PyObject *resultobj = NULL;
17490 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17491 PyObject *arg2 = (PyObject *) 0 ;
17492 PyObject *arg3 = (PyObject *) 0 ;
17493 PyObject * obj0 = 0 ;
17494 PyObject * obj1 = 0 ;
17495 PyObject * obj2 = 0 ;
17496 char *kwnames[] = {
17497 (char *) "self",(char *) "self",(char *) "_class", NULL
17498 };
17499
17500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
17501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17502 if (SWIG_arg_fail(1)) SWIG_fail;
17503 arg2 = obj1;
17504 arg3 = obj2;
17505 {
17506 PyThreadState* __tstate = wxPyBeginAllowThreads();
17507 (arg1)->_setCallbackInfo(arg2,arg3);
17508
17509 wxPyEndAllowThreads(__tstate);
17510 if (PyErr_Occurred()) SWIG_fail;
17511 }
17512 Py_INCREF(Py_None); resultobj = Py_None;
17513 return resultobj;
17514 fail:
17515 return NULL;
17516 }
17517
17518
17519 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17520 PyObject *resultobj = NULL;
17521 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17522 PyObject * obj0 = 0 ;
17523 char *kwnames[] = {
17524 (char *) "provider", NULL
17525 };
17526
17527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
17528 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17529 if (SWIG_arg_fail(1)) SWIG_fail;
17530 {
17531 PyThreadState* __tstate = wxPyBeginAllowThreads();
17532 wxPyArtProvider::PushProvider(arg1);
17533
17534 wxPyEndAllowThreads(__tstate);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 }
17537 Py_INCREF(Py_None); resultobj = Py_None;
17538 return resultobj;
17539 fail:
17540 return NULL;
17541 }
17542
17543
17544 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17545 PyObject *resultobj = NULL;
17546 bool result;
17547 char *kwnames[] = {
17548 NULL
17549 };
17550
17551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
17552 {
17553 PyThreadState* __tstate = wxPyBeginAllowThreads();
17554 result = (bool)wxPyArtProvider::PopProvider();
17555
17556 wxPyEndAllowThreads(__tstate);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 }
17559 {
17560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17561 }
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj = NULL;
17570 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17571 bool result;
17572 PyObject * obj0 = 0 ;
17573 char *kwnames[] = {
17574 (char *) "provider", NULL
17575 };
17576
17577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
17578 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17579 if (SWIG_arg_fail(1)) SWIG_fail;
17580 {
17581 PyThreadState* __tstate = wxPyBeginAllowThreads();
17582 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
17583
17584 wxPyEndAllowThreads(__tstate);
17585 if (PyErr_Occurred()) SWIG_fail;
17586 }
17587 {
17588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17589 }
17590 return resultobj;
17591 fail:
17592 return NULL;
17593 }
17594
17595
17596 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17597 PyObject *resultobj = NULL;
17598 wxString *arg1 = 0 ;
17599 wxString const &arg2_defvalue = wxPyART_OTHER ;
17600 wxString *arg2 = (wxString *) &arg2_defvalue ;
17601 wxSize const &arg3_defvalue = wxDefaultSize ;
17602 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
17603 wxBitmap result;
17604 bool temp1 = false ;
17605 bool temp2 = false ;
17606 wxSize temp3 ;
17607 PyObject * obj0 = 0 ;
17608 PyObject * obj1 = 0 ;
17609 PyObject * obj2 = 0 ;
17610 char *kwnames[] = {
17611 (char *) "id",(char *) "client",(char *) "size", NULL
17612 };
17613
17614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
17615 {
17616 arg1 = wxString_in_helper(obj0);
17617 if (arg1 == NULL) SWIG_fail;
17618 temp1 = true;
17619 }
17620 if (obj1) {
17621 {
17622 arg2 = wxString_in_helper(obj1);
17623 if (arg2 == NULL) SWIG_fail;
17624 temp2 = true;
17625 }
17626 }
17627 if (obj2) {
17628 {
17629 arg3 = &temp3;
17630 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17631 }
17632 }
17633 {
17634 if (!wxPyCheckForApp()) SWIG_fail;
17635 PyThreadState* __tstate = wxPyBeginAllowThreads();
17636 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
17637
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 {
17642 wxBitmap * resultptr;
17643 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
17644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
17645 }
17646 {
17647 if (temp1)
17648 delete arg1;
17649 }
17650 {
17651 if (temp2)
17652 delete arg2;
17653 }
17654 return resultobj;
17655 fail:
17656 {
17657 if (temp1)
17658 delete arg1;
17659 }
17660 {
17661 if (temp2)
17662 delete arg2;
17663 }
17664 return NULL;
17665 }
17666
17667
17668 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj = NULL;
17670 wxString *arg1 = 0 ;
17671 wxString const &arg2_defvalue = wxPyART_OTHER ;
17672 wxString *arg2 = (wxString *) &arg2_defvalue ;
17673 wxSize const &arg3_defvalue = wxDefaultSize ;
17674 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
17675 wxIcon result;
17676 bool temp1 = false ;
17677 bool temp2 = false ;
17678 wxSize temp3 ;
17679 PyObject * obj0 = 0 ;
17680 PyObject * obj1 = 0 ;
17681 PyObject * obj2 = 0 ;
17682 char *kwnames[] = {
17683 (char *) "id",(char *) "client",(char *) "size", NULL
17684 };
17685
17686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
17687 {
17688 arg1 = wxString_in_helper(obj0);
17689 if (arg1 == NULL) SWIG_fail;
17690 temp1 = true;
17691 }
17692 if (obj1) {
17693 {
17694 arg2 = wxString_in_helper(obj1);
17695 if (arg2 == NULL) SWIG_fail;
17696 temp2 = true;
17697 }
17698 }
17699 if (obj2) {
17700 {
17701 arg3 = &temp3;
17702 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17703 }
17704 }
17705 {
17706 if (!wxPyCheckForApp()) SWIG_fail;
17707 PyThreadState* __tstate = wxPyBeginAllowThreads();
17708 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
17709
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 {
17714 wxIcon * resultptr;
17715 resultptr = new wxIcon(static_cast<wxIcon & >(result));
17716 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
17717 }
17718 {
17719 if (temp1)
17720 delete arg1;
17721 }
17722 {
17723 if (temp2)
17724 delete arg2;
17725 }
17726 return resultobj;
17727 fail:
17728 {
17729 if (temp1)
17730 delete arg1;
17731 }
17732 {
17733 if (temp2)
17734 delete arg2;
17735 }
17736 return NULL;
17737 }
17738
17739
17740 static PyObject *_wrap_ArtProvider_GetSizeHint(PyObject *, PyObject *args, PyObject *kwargs) {
17741 PyObject *resultobj = NULL;
17742 wxString *arg1 = 0 ;
17743 bool arg2 = (bool) false ;
17744 wxSize result;
17745 bool temp1 = false ;
17746 PyObject * obj0 = 0 ;
17747 PyObject * obj1 = 0 ;
17748 char *kwnames[] = {
17749 (char *) "client",(char *) "platform_dependent", NULL
17750 };
17751
17752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSizeHint",kwnames,&obj0,&obj1)) goto fail;
17753 {
17754 arg1 = wxString_in_helper(obj0);
17755 if (arg1 == NULL) SWIG_fail;
17756 temp1 = true;
17757 }
17758 if (obj1) {
17759 {
17760 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
17761 if (SWIG_arg_fail(2)) SWIG_fail;
17762 }
17763 }
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = wxPyArtProvider::GetSizeHint((wxString const &)*arg1,arg2);
17767
17768 wxPyEndAllowThreads(__tstate);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 }
17771 {
17772 wxSize * resultptr;
17773 resultptr = new wxSize(static_cast<wxSize & >(result));
17774 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17775 }
17776 {
17777 if (temp1)
17778 delete arg1;
17779 }
17780 return resultobj;
17781 fail:
17782 {
17783 if (temp1)
17784 delete arg1;
17785 }
17786 return NULL;
17787 }
17788
17789
17790 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj = NULL;
17792 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17793 PyObject * obj0 = 0 ;
17794 char *kwnames[] = {
17795 (char *) "self", NULL
17796 };
17797
17798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
17799 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17800 if (SWIG_arg_fail(1)) SWIG_fail;
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 wxPyArtProvider_Destroy(arg1);
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 Py_INCREF(Py_None); resultobj = Py_None;
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
17816 PyObject *obj;
17817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17818 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
17819 Py_INCREF(obj);
17820 return Py_BuildValue((char *)"");
17821 }
17822 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
17823 PyObject *resultobj = NULL;
17824 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17825 PyObject * obj0 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "self", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
17831 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
17832 if (SWIG_arg_fail(1)) SWIG_fail;
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 delete arg1;
17836
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 Py_INCREF(Py_None); resultobj = Py_None;
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj = NULL;
17849 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17850 wxConfigBase *result;
17851 PyObject * obj0 = 0 ;
17852 char *kwnames[] = {
17853 (char *) "config", NULL
17854 };
17855
17856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
17857 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
17858 if (SWIG_arg_fail(1)) SWIG_fail;
17859 {
17860 PyThreadState* __tstate = wxPyBeginAllowThreads();
17861 result = (wxConfigBase *)wxConfigBase::Set(arg1);
17862
17863 wxPyEndAllowThreads(__tstate);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17867 return resultobj;
17868 fail:
17869 return NULL;
17870 }
17871
17872
17873 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
17874 PyObject *resultobj = NULL;
17875 bool arg1 = (bool) true ;
17876 wxConfigBase *result;
17877 PyObject * obj0 = 0 ;
17878 char *kwnames[] = {
17879 (char *) "createOnDemand", NULL
17880 };
17881
17882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
17883 if (obj0) {
17884 {
17885 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
17886 if (SWIG_arg_fail(1)) SWIG_fail;
17887 }
17888 }
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 result = (wxConfigBase *)wxConfigBase::Get(arg1);
17892
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17897 return resultobj;
17898 fail:
17899 return NULL;
17900 }
17901
17902
17903 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
17904 PyObject *resultobj = NULL;
17905 wxConfigBase *result;
17906 char *kwnames[] = {
17907 NULL
17908 };
17909
17910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
17911 {
17912 PyThreadState* __tstate = wxPyBeginAllowThreads();
17913 result = (wxConfigBase *)wxConfigBase::Create();
17914
17915 wxPyEndAllowThreads(__tstate);
17916 if (PyErr_Occurred()) SWIG_fail;
17917 }
17918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17919 return resultobj;
17920 fail:
17921 return NULL;
17922 }
17923
17924
17925 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
17926 PyObject *resultobj = NULL;
17927 char *kwnames[] = {
17928 NULL
17929 };
17930
17931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
17932 {
17933 PyThreadState* __tstate = wxPyBeginAllowThreads();
17934 wxConfigBase::DontCreateOnDemand();
17935
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 Py_INCREF(Py_None); resultobj = Py_None;
17940 return resultobj;
17941 fail:
17942 return NULL;
17943 }
17944
17945
17946 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
17947 PyObject *resultobj = NULL;
17948 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17949 wxString *arg2 = 0 ;
17950 bool temp2 = false ;
17951 PyObject * obj0 = 0 ;
17952 PyObject * obj1 = 0 ;
17953 char *kwnames[] = {
17954 (char *) "self",(char *) "path", NULL
17955 };
17956
17957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
17958 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
17959 if (SWIG_arg_fail(1)) SWIG_fail;
17960 {
17961 arg2 = wxString_in_helper(obj1);
17962 if (arg2 == NULL) SWIG_fail;
17963 temp2 = true;
17964 }
17965 {
17966 PyThreadState* __tstate = wxPyBeginAllowThreads();
17967 (arg1)->SetPath((wxString const &)*arg2);
17968
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 Py_INCREF(Py_None); resultobj = Py_None;
17973 {
17974 if (temp2)
17975 delete arg2;
17976 }
17977 return resultobj;
17978 fail:
17979 {
17980 if (temp2)
17981 delete arg2;
17982 }
17983 return NULL;
17984 }
17985
17986
17987 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
17988 PyObject *resultobj = NULL;
17989 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17990 wxString *result;
17991 PyObject * obj0 = 0 ;
17992 char *kwnames[] = {
17993 (char *) "self", NULL
17994 };
17995
17996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
17997 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
17998 if (SWIG_arg_fail(1)) SWIG_fail;
17999 {
18000 PyThreadState* __tstate = wxPyBeginAllowThreads();
18001 {
18002 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
18003 result = (wxString *) &_result_ref;
18004 }
18005
18006 wxPyEndAllowThreads(__tstate);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 {
18010 #if wxUSE_UNICODE
18011 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18012 #else
18013 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18014 #endif
18015 }
18016 return resultobj;
18017 fail:
18018 return NULL;
18019 }
18020
18021
18022 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18023 PyObject *resultobj = NULL;
18024 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18025 PyObject *result;
18026 PyObject * obj0 = 0 ;
18027 char *kwnames[] = {
18028 (char *) "self", NULL
18029 };
18030
18031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
18032 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18033 if (SWIG_arg_fail(1)) SWIG_fail;
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
18037
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 resultobj = result;
18042 return resultobj;
18043 fail:
18044 return NULL;
18045 }
18046
18047
18048 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = NULL;
18050 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18051 long arg2 ;
18052 PyObject *result;
18053 PyObject * obj0 = 0 ;
18054 PyObject * obj1 = 0 ;
18055 char *kwnames[] = {
18056 (char *) "self",(char *) "index", NULL
18057 };
18058
18059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
18060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18061 if (SWIG_arg_fail(1)) SWIG_fail;
18062 {
18063 arg2 = static_cast<long >(SWIG_As_long(obj1));
18064 if (SWIG_arg_fail(2)) SWIG_fail;
18065 }
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
18069
18070 wxPyEndAllowThreads(__tstate);
18071 if (PyErr_Occurred()) SWIG_fail;
18072 }
18073 resultobj = result;
18074 return resultobj;
18075 fail:
18076 return NULL;
18077 }
18078
18079
18080 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18081 PyObject *resultobj = NULL;
18082 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18083 PyObject *result;
18084 PyObject * obj0 = 0 ;
18085 char *kwnames[] = {
18086 (char *) "self", NULL
18087 };
18088
18089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
18090 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18091 if (SWIG_arg_fail(1)) SWIG_fail;
18092 {
18093 PyThreadState* __tstate = wxPyBeginAllowThreads();
18094 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
18095
18096 wxPyEndAllowThreads(__tstate);
18097 if (PyErr_Occurred()) SWIG_fail;
18098 }
18099 resultobj = result;
18100 return resultobj;
18101 fail:
18102 return NULL;
18103 }
18104
18105
18106 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18107 PyObject *resultobj = NULL;
18108 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18109 long arg2 ;
18110 PyObject *result;
18111 PyObject * obj0 = 0 ;
18112 PyObject * obj1 = 0 ;
18113 char *kwnames[] = {
18114 (char *) "self",(char *) "index", NULL
18115 };
18116
18117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
18118 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18119 if (SWIG_arg_fail(1)) SWIG_fail;
18120 {
18121 arg2 = static_cast<long >(SWIG_As_long(obj1));
18122 if (SWIG_arg_fail(2)) SWIG_fail;
18123 }
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
18127
18128 wxPyEndAllowThreads(__tstate);
18129 if (PyErr_Occurred()) SWIG_fail;
18130 }
18131 resultobj = result;
18132 return resultobj;
18133 fail:
18134 return NULL;
18135 }
18136
18137
18138 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
18139 PyObject *resultobj = NULL;
18140 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18141 bool arg2 = (bool) false ;
18142 size_t result;
18143 PyObject * obj0 = 0 ;
18144 PyObject * obj1 = 0 ;
18145 char *kwnames[] = {
18146 (char *) "self",(char *) "recursive", NULL
18147 };
18148
18149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
18150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18151 if (SWIG_arg_fail(1)) SWIG_fail;
18152 if (obj1) {
18153 {
18154 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18155 if (SWIG_arg_fail(2)) SWIG_fail;
18156 }
18157 }
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
18161
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 {
18166 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
18167 }
18168 return resultobj;
18169 fail:
18170 return NULL;
18171 }
18172
18173
18174 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
18175 PyObject *resultobj = NULL;
18176 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18177 bool arg2 = (bool) false ;
18178 size_t result;
18179 PyObject * obj0 = 0 ;
18180 PyObject * obj1 = 0 ;
18181 char *kwnames[] = {
18182 (char *) "self",(char *) "recursive", NULL
18183 };
18184
18185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
18186 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18187 if (SWIG_arg_fail(1)) SWIG_fail;
18188 if (obj1) {
18189 {
18190 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18191 if (SWIG_arg_fail(2)) SWIG_fail;
18192 }
18193 }
18194 {
18195 PyThreadState* __tstate = wxPyBeginAllowThreads();
18196 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
18197
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 {
18202 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
18203 }
18204 return resultobj;
18205 fail:
18206 return NULL;
18207 }
18208
18209
18210 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18211 PyObject *resultobj = NULL;
18212 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18213 wxString *arg2 = 0 ;
18214 bool result;
18215 bool temp2 = false ;
18216 PyObject * obj0 = 0 ;
18217 PyObject * obj1 = 0 ;
18218 char *kwnames[] = {
18219 (char *) "self",(char *) "name", NULL
18220 };
18221
18222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
18223 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18224 if (SWIG_arg_fail(1)) SWIG_fail;
18225 {
18226 arg2 = wxString_in_helper(obj1);
18227 if (arg2 == NULL) SWIG_fail;
18228 temp2 = true;
18229 }
18230 {
18231 PyThreadState* __tstate = wxPyBeginAllowThreads();
18232 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
18233
18234 wxPyEndAllowThreads(__tstate);
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 {
18238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18239 }
18240 {
18241 if (temp2)
18242 delete arg2;
18243 }
18244 return resultobj;
18245 fail:
18246 {
18247 if (temp2)
18248 delete arg2;
18249 }
18250 return NULL;
18251 }
18252
18253
18254 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18255 PyObject *resultobj = NULL;
18256 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18257 wxString *arg2 = 0 ;
18258 bool result;
18259 bool temp2 = false ;
18260 PyObject * obj0 = 0 ;
18261 PyObject * obj1 = 0 ;
18262 char *kwnames[] = {
18263 (char *) "self",(char *) "name", NULL
18264 };
18265
18266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
18267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18268 if (SWIG_arg_fail(1)) SWIG_fail;
18269 {
18270 arg2 = wxString_in_helper(obj1);
18271 if (arg2 == NULL) SWIG_fail;
18272 temp2 = true;
18273 }
18274 {
18275 PyThreadState* __tstate = wxPyBeginAllowThreads();
18276 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
18277
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 {
18282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18283 }
18284 {
18285 if (temp2)
18286 delete arg2;
18287 }
18288 return resultobj;
18289 fail:
18290 {
18291 if (temp2)
18292 delete arg2;
18293 }
18294 return NULL;
18295 }
18296
18297
18298 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
18299 PyObject *resultobj = NULL;
18300 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18301 wxString *arg2 = 0 ;
18302 bool result;
18303 bool temp2 = false ;
18304 PyObject * obj0 = 0 ;
18305 PyObject * obj1 = 0 ;
18306 char *kwnames[] = {
18307 (char *) "self",(char *) "name", NULL
18308 };
18309
18310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
18311 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18312 if (SWIG_arg_fail(1)) SWIG_fail;
18313 {
18314 arg2 = wxString_in_helper(obj1);
18315 if (arg2 == NULL) SWIG_fail;
18316 temp2 = true;
18317 }
18318 {
18319 PyThreadState* __tstate = wxPyBeginAllowThreads();
18320 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
18321
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 {
18326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18327 }
18328 {
18329 if (temp2)
18330 delete arg2;
18331 }
18332 return resultobj;
18333 fail:
18334 {
18335 if (temp2)
18336 delete arg2;
18337 }
18338 return NULL;
18339 }
18340
18341
18342 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
18343 PyObject *resultobj = NULL;
18344 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18345 wxString *arg2 = 0 ;
18346 wxConfigBase::EntryType result;
18347 bool temp2 = false ;
18348 PyObject * obj0 = 0 ;
18349 PyObject * obj1 = 0 ;
18350 char *kwnames[] = {
18351 (char *) "self",(char *) "name", NULL
18352 };
18353
18354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
18355 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18356 if (SWIG_arg_fail(1)) SWIG_fail;
18357 {
18358 arg2 = wxString_in_helper(obj1);
18359 if (arg2 == NULL) SWIG_fail;
18360 temp2 = true;
18361 }
18362 {
18363 PyThreadState* __tstate = wxPyBeginAllowThreads();
18364 result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
18365
18366 wxPyEndAllowThreads(__tstate);
18367 if (PyErr_Occurred()) SWIG_fail;
18368 }
18369 resultobj = SWIG_From_int((result));
18370 {
18371 if (temp2)
18372 delete arg2;
18373 }
18374 return resultobj;
18375 fail:
18376 {
18377 if (temp2)
18378 delete arg2;
18379 }
18380 return NULL;
18381 }
18382
18383
18384 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
18385 PyObject *resultobj = NULL;
18386 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18387 wxString *arg2 = 0 ;
18388 wxString const &arg3_defvalue = wxPyEmptyString ;
18389 wxString *arg3 = (wxString *) &arg3_defvalue ;
18390 wxString result;
18391 bool temp2 = false ;
18392 bool temp3 = false ;
18393 PyObject * obj0 = 0 ;
18394 PyObject * obj1 = 0 ;
18395 PyObject * obj2 = 0 ;
18396 char *kwnames[] = {
18397 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18398 };
18399
18400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
18401 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18402 if (SWIG_arg_fail(1)) SWIG_fail;
18403 {
18404 arg2 = wxString_in_helper(obj1);
18405 if (arg2 == NULL) SWIG_fail;
18406 temp2 = true;
18407 }
18408 if (obj2) {
18409 {
18410 arg3 = wxString_in_helper(obj2);
18411 if (arg3 == NULL) SWIG_fail;
18412 temp3 = true;
18413 }
18414 }
18415 {
18416 PyThreadState* __tstate = wxPyBeginAllowThreads();
18417 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
18418
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 {
18423 #if wxUSE_UNICODE
18424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18425 #else
18426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18427 #endif
18428 }
18429 {
18430 if (temp2)
18431 delete arg2;
18432 }
18433 {
18434 if (temp3)
18435 delete arg3;
18436 }
18437 return resultobj;
18438 fail:
18439 {
18440 if (temp2)
18441 delete arg2;
18442 }
18443 {
18444 if (temp3)
18445 delete arg3;
18446 }
18447 return NULL;
18448 }
18449
18450
18451 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
18452 PyObject *resultobj = NULL;
18453 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18454 wxString *arg2 = 0 ;
18455 long arg3 = (long) 0 ;
18456 long result;
18457 bool temp2 = 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_ReadInt",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 = static_cast<long >(SWIG_As_long(obj2));
18476 if (SWIG_arg_fail(3)) SWIG_fail;
18477 }
18478 }
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
18482
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 {
18487 resultobj = SWIG_From_long(static_cast<long >(result));
18488 }
18489 {
18490 if (temp2)
18491 delete arg2;
18492 }
18493 return resultobj;
18494 fail:
18495 {
18496 if (temp2)
18497 delete arg2;
18498 }
18499 return NULL;
18500 }
18501
18502
18503 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj = NULL;
18505 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18506 wxString *arg2 = 0 ;
18507 double arg3 = (double) 0.0 ;
18508 double result;
18509 bool temp2 = false ;
18510 PyObject * obj0 = 0 ;
18511 PyObject * obj1 = 0 ;
18512 PyObject * obj2 = 0 ;
18513 char *kwnames[] = {
18514 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18515 };
18516
18517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
18518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18519 if (SWIG_arg_fail(1)) SWIG_fail;
18520 {
18521 arg2 = wxString_in_helper(obj1);
18522 if (arg2 == NULL) SWIG_fail;
18523 temp2 = true;
18524 }
18525 if (obj2) {
18526 {
18527 arg3 = static_cast<double >(SWIG_As_double(obj2));
18528 if (SWIG_arg_fail(3)) SWIG_fail;
18529 }
18530 }
18531 {
18532 PyThreadState* __tstate = wxPyBeginAllowThreads();
18533 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
18534
18535 wxPyEndAllowThreads(__tstate);
18536 if (PyErr_Occurred()) SWIG_fail;
18537 }
18538 {
18539 resultobj = SWIG_From_double(static_cast<double >(result));
18540 }
18541 {
18542 if (temp2)
18543 delete arg2;
18544 }
18545 return resultobj;
18546 fail:
18547 {
18548 if (temp2)
18549 delete arg2;
18550 }
18551 return NULL;
18552 }
18553
18554
18555 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
18556 PyObject *resultobj = NULL;
18557 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18558 wxString *arg2 = 0 ;
18559 bool arg3 = (bool) false ;
18560 bool result;
18561 bool temp2 = false ;
18562 PyObject * obj0 = 0 ;
18563 PyObject * obj1 = 0 ;
18564 PyObject * obj2 = 0 ;
18565 char *kwnames[] = {
18566 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18567 };
18568
18569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18571 if (SWIG_arg_fail(1)) SWIG_fail;
18572 {
18573 arg2 = wxString_in_helper(obj1);
18574 if (arg2 == NULL) SWIG_fail;
18575 temp2 = true;
18576 }
18577 if (obj2) {
18578 {
18579 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
18580 if (SWIG_arg_fail(3)) SWIG_fail;
18581 }
18582 }
18583 {
18584 PyThreadState* __tstate = wxPyBeginAllowThreads();
18585 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
18586
18587 wxPyEndAllowThreads(__tstate);
18588 if (PyErr_Occurred()) SWIG_fail;
18589 }
18590 {
18591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18592 }
18593 {
18594 if (temp2)
18595 delete arg2;
18596 }
18597 return resultobj;
18598 fail:
18599 {
18600 if (temp2)
18601 delete arg2;
18602 }
18603 return NULL;
18604 }
18605
18606
18607 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
18608 PyObject *resultobj = NULL;
18609 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18610 wxString *arg2 = 0 ;
18611 wxString *arg3 = 0 ;
18612 bool result;
18613 bool temp2 = false ;
18614 bool temp3 = false ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 PyObject * obj2 = 0 ;
18618 char *kwnames[] = {
18619 (char *) "self",(char *) "key",(char *) "value", NULL
18620 };
18621
18622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
18623 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18624 if (SWIG_arg_fail(1)) SWIG_fail;
18625 {
18626 arg2 = wxString_in_helper(obj1);
18627 if (arg2 == NULL) SWIG_fail;
18628 temp2 = true;
18629 }
18630 {
18631 arg3 = wxString_in_helper(obj2);
18632 if (arg3 == NULL) SWIG_fail;
18633 temp3 = true;
18634 }
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
18638
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 {
18643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18644 }
18645 {
18646 if (temp2)
18647 delete arg2;
18648 }
18649 {
18650 if (temp3)
18651 delete arg3;
18652 }
18653 return resultobj;
18654 fail:
18655 {
18656 if (temp2)
18657 delete arg2;
18658 }
18659 {
18660 if (temp3)
18661 delete arg3;
18662 }
18663 return NULL;
18664 }
18665
18666
18667 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
18668 PyObject *resultobj = NULL;
18669 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18670 wxString *arg2 = 0 ;
18671 long arg3 ;
18672 bool result;
18673 bool temp2 = false ;
18674 PyObject * obj0 = 0 ;
18675 PyObject * obj1 = 0 ;
18676 PyObject * obj2 = 0 ;
18677 char *kwnames[] = {
18678 (char *) "self",(char *) "key",(char *) "value", NULL
18679 };
18680
18681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
18682 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18683 if (SWIG_arg_fail(1)) SWIG_fail;
18684 {
18685 arg2 = wxString_in_helper(obj1);
18686 if (arg2 == NULL) SWIG_fail;
18687 temp2 = true;
18688 }
18689 {
18690 arg3 = static_cast<long >(SWIG_As_long(obj2));
18691 if (SWIG_arg_fail(3)) SWIG_fail;
18692 }
18693 {
18694 PyThreadState* __tstate = wxPyBeginAllowThreads();
18695 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18696
18697 wxPyEndAllowThreads(__tstate);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
18700 {
18701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18702 }
18703 {
18704 if (temp2)
18705 delete arg2;
18706 }
18707 return resultobj;
18708 fail:
18709 {
18710 if (temp2)
18711 delete arg2;
18712 }
18713 return NULL;
18714 }
18715
18716
18717 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
18718 PyObject *resultobj = NULL;
18719 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18720 wxString *arg2 = 0 ;
18721 double arg3 ;
18722 bool result;
18723 bool temp2 = false ;
18724 PyObject * obj0 = 0 ;
18725 PyObject * obj1 = 0 ;
18726 PyObject * obj2 = 0 ;
18727 char *kwnames[] = {
18728 (char *) "self",(char *) "key",(char *) "value", NULL
18729 };
18730
18731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
18732 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18733 if (SWIG_arg_fail(1)) SWIG_fail;
18734 {
18735 arg2 = wxString_in_helper(obj1);
18736 if (arg2 == NULL) SWIG_fail;
18737 temp2 = true;
18738 }
18739 {
18740 arg3 = static_cast<double >(SWIG_As_double(obj2));
18741 if (SWIG_arg_fail(3)) SWIG_fail;
18742 }
18743 {
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18746
18747 wxPyEndAllowThreads(__tstate);
18748 if (PyErr_Occurred()) SWIG_fail;
18749 }
18750 {
18751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18752 }
18753 {
18754 if (temp2)
18755 delete arg2;
18756 }
18757 return resultobj;
18758 fail:
18759 {
18760 if (temp2)
18761 delete arg2;
18762 }
18763 return NULL;
18764 }
18765
18766
18767 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
18768 PyObject *resultobj = NULL;
18769 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18770 wxString *arg2 = 0 ;
18771 bool arg3 ;
18772 bool result;
18773 bool temp2 = false ;
18774 PyObject * obj0 = 0 ;
18775 PyObject * obj1 = 0 ;
18776 PyObject * obj2 = 0 ;
18777 char *kwnames[] = {
18778 (char *) "self",(char *) "key",(char *) "value", NULL
18779 };
18780
18781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18782 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18783 if (SWIG_arg_fail(1)) SWIG_fail;
18784 {
18785 arg2 = wxString_in_helper(obj1);
18786 if (arg2 == NULL) SWIG_fail;
18787 temp2 = true;
18788 }
18789 {
18790 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
18791 if (SWIG_arg_fail(3)) SWIG_fail;
18792 }
18793 {
18794 PyThreadState* __tstate = wxPyBeginAllowThreads();
18795 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18796
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 {
18801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18802 }
18803 {
18804 if (temp2)
18805 delete arg2;
18806 }
18807 return resultobj;
18808 fail:
18809 {
18810 if (temp2)
18811 delete arg2;
18812 }
18813 return NULL;
18814 }
18815
18816
18817 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
18818 PyObject *resultobj = NULL;
18819 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18820 bool arg2 = (bool) false ;
18821 bool result;
18822 PyObject * obj0 = 0 ;
18823 PyObject * obj1 = 0 ;
18824 char *kwnames[] = {
18825 (char *) "self",(char *) "currentOnly", NULL
18826 };
18827
18828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
18829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18830 if (SWIG_arg_fail(1)) SWIG_fail;
18831 if (obj1) {
18832 {
18833 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18834 if (SWIG_arg_fail(2)) SWIG_fail;
18835 }
18836 }
18837 {
18838 PyThreadState* __tstate = wxPyBeginAllowThreads();
18839 result = (bool)(arg1)->Flush(arg2);
18840
18841 wxPyEndAllowThreads(__tstate);
18842 if (PyErr_Occurred()) SWIG_fail;
18843 }
18844 {
18845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18846 }
18847 return resultobj;
18848 fail:
18849 return NULL;
18850 }
18851
18852
18853 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18854 PyObject *resultobj = NULL;
18855 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18856 wxString *arg2 = 0 ;
18857 wxString *arg3 = 0 ;
18858 bool result;
18859 bool temp2 = false ;
18860 bool temp3 = false ;
18861 PyObject * obj0 = 0 ;
18862 PyObject * obj1 = 0 ;
18863 PyObject * obj2 = 0 ;
18864 char *kwnames[] = {
18865 (char *) "self",(char *) "oldName",(char *) "newName", NULL
18866 };
18867
18868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
18869 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18870 if (SWIG_arg_fail(1)) SWIG_fail;
18871 {
18872 arg2 = wxString_in_helper(obj1);
18873 if (arg2 == NULL) SWIG_fail;
18874 temp2 = true;
18875 }
18876 {
18877 arg3 = wxString_in_helper(obj2);
18878 if (arg3 == NULL) SWIG_fail;
18879 temp3 = true;
18880 }
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
18884
18885 wxPyEndAllowThreads(__tstate);
18886 if (PyErr_Occurred()) SWIG_fail;
18887 }
18888 {
18889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18890 }
18891 {
18892 if (temp2)
18893 delete arg2;
18894 }
18895 {
18896 if (temp3)
18897 delete arg3;
18898 }
18899 return resultobj;
18900 fail:
18901 {
18902 if (temp2)
18903 delete arg2;
18904 }
18905 {
18906 if (temp3)
18907 delete arg3;
18908 }
18909 return NULL;
18910 }
18911
18912
18913 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18914 PyObject *resultobj = NULL;
18915 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18916 wxString *arg2 = 0 ;
18917 wxString *arg3 = 0 ;
18918 bool result;
18919 bool temp2 = false ;
18920 bool temp3 = false ;
18921 PyObject * obj0 = 0 ;
18922 PyObject * obj1 = 0 ;
18923 PyObject * obj2 = 0 ;
18924 char *kwnames[] = {
18925 (char *) "self",(char *) "oldName",(char *) "newName", NULL
18926 };
18927
18928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
18929 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18930 if (SWIG_arg_fail(1)) SWIG_fail;
18931 {
18932 arg2 = wxString_in_helper(obj1);
18933 if (arg2 == NULL) SWIG_fail;
18934 temp2 = true;
18935 }
18936 {
18937 arg3 = wxString_in_helper(obj2);
18938 if (arg3 == NULL) SWIG_fail;
18939 temp3 = true;
18940 }
18941 {
18942 PyThreadState* __tstate = wxPyBeginAllowThreads();
18943 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
18944
18945 wxPyEndAllowThreads(__tstate);
18946 if (PyErr_Occurred()) SWIG_fail;
18947 }
18948 {
18949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18950 }
18951 {
18952 if (temp2)
18953 delete arg2;
18954 }
18955 {
18956 if (temp3)
18957 delete arg3;
18958 }
18959 return resultobj;
18960 fail:
18961 {
18962 if (temp2)
18963 delete arg2;
18964 }
18965 {
18966 if (temp3)
18967 delete arg3;
18968 }
18969 return NULL;
18970 }
18971
18972
18973 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18974 PyObject *resultobj = NULL;
18975 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18976 wxString *arg2 = 0 ;
18977 bool arg3 = (bool) true ;
18978 bool result;
18979 bool temp2 = false ;
18980 PyObject * obj0 = 0 ;
18981 PyObject * obj1 = 0 ;
18982 PyObject * obj2 = 0 ;
18983 char *kwnames[] = {
18984 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
18985 };
18986
18987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
18988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18989 if (SWIG_arg_fail(1)) SWIG_fail;
18990 {
18991 arg2 = wxString_in_helper(obj1);
18992 if (arg2 == NULL) SWIG_fail;
18993 temp2 = true;
18994 }
18995 if (obj2) {
18996 {
18997 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
18998 if (SWIG_arg_fail(3)) SWIG_fail;
18999 }
19000 }
19001 {
19002 PyThreadState* __tstate = wxPyBeginAllowThreads();
19003 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
19004
19005 wxPyEndAllowThreads(__tstate);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 {
19009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19010 }
19011 {
19012 if (temp2)
19013 delete arg2;
19014 }
19015 return resultobj;
19016 fail:
19017 {
19018 if (temp2)
19019 delete arg2;
19020 }
19021 return NULL;
19022 }
19023
19024
19025 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
19026 PyObject *resultobj = NULL;
19027 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19028 wxString *arg2 = 0 ;
19029 bool result;
19030 bool temp2 = false ;
19031 PyObject * obj0 = 0 ;
19032 PyObject * obj1 = 0 ;
19033 char *kwnames[] = {
19034 (char *) "self",(char *) "key", NULL
19035 };
19036
19037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
19038 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19039 if (SWIG_arg_fail(1)) SWIG_fail;
19040 {
19041 arg2 = wxString_in_helper(obj1);
19042 if (arg2 == NULL) SWIG_fail;
19043 temp2 = true;
19044 }
19045 {
19046 PyThreadState* __tstate = wxPyBeginAllowThreads();
19047 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
19048
19049 wxPyEndAllowThreads(__tstate);
19050 if (PyErr_Occurred()) SWIG_fail;
19051 }
19052 {
19053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19054 }
19055 {
19056 if (temp2)
19057 delete arg2;
19058 }
19059 return resultobj;
19060 fail:
19061 {
19062 if (temp2)
19063 delete arg2;
19064 }
19065 return NULL;
19066 }
19067
19068
19069 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj = NULL;
19071 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19072 bool result;
19073 PyObject * obj0 = 0 ;
19074 char *kwnames[] = {
19075 (char *) "self", NULL
19076 };
19077
19078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
19079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19080 if (SWIG_arg_fail(1)) SWIG_fail;
19081 {
19082 PyThreadState* __tstate = wxPyBeginAllowThreads();
19083 result = (bool)(arg1)->DeleteAll();
19084
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
19088 {
19089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19090 }
19091 return resultobj;
19092 fail:
19093 return NULL;
19094 }
19095
19096
19097 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19098 PyObject *resultobj = NULL;
19099 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19100 bool arg2 = (bool) true ;
19101 PyObject * obj0 = 0 ;
19102 PyObject * obj1 = 0 ;
19103 char *kwnames[] = {
19104 (char *) "self",(char *) "doIt", NULL
19105 };
19106
19107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
19108 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19109 if (SWIG_arg_fail(1)) SWIG_fail;
19110 if (obj1) {
19111 {
19112 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
19113 if (SWIG_arg_fail(2)) SWIG_fail;
19114 }
19115 }
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 (arg1)->SetExpandEnvVars(arg2);
19119
19120 wxPyEndAllowThreads(__tstate);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 Py_INCREF(Py_None); resultobj = Py_None;
19124 return resultobj;
19125 fail:
19126 return NULL;
19127 }
19128
19129
19130 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj = NULL;
19132 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19133 bool result;
19134 PyObject * obj0 = 0 ;
19135 char *kwnames[] = {
19136 (char *) "self", NULL
19137 };
19138
19139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
19140 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19141 if (SWIG_arg_fail(1)) SWIG_fail;
19142 {
19143 PyThreadState* __tstate = wxPyBeginAllowThreads();
19144 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
19145
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 {
19150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19151 }
19152 return resultobj;
19153 fail:
19154 return NULL;
19155 }
19156
19157
19158 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
19159 PyObject *resultobj = NULL;
19160 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19161 bool arg2 = (bool) true ;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 char *kwnames[] = {
19165 (char *) "self",(char *) "doIt", NULL
19166 };
19167
19168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
19169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19170 if (SWIG_arg_fail(1)) SWIG_fail;
19171 if (obj1) {
19172 {
19173 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
19174 if (SWIG_arg_fail(2)) SWIG_fail;
19175 }
19176 }
19177 {
19178 PyThreadState* __tstate = wxPyBeginAllowThreads();
19179 (arg1)->SetRecordDefaults(arg2);
19180
19181 wxPyEndAllowThreads(__tstate);
19182 if (PyErr_Occurred()) SWIG_fail;
19183 }
19184 Py_INCREF(Py_None); resultobj = Py_None;
19185 return resultobj;
19186 fail:
19187 return NULL;
19188 }
19189
19190
19191 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
19192 PyObject *resultobj = NULL;
19193 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19194 bool result;
19195 PyObject * obj0 = 0 ;
19196 char *kwnames[] = {
19197 (char *) "self", NULL
19198 };
19199
19200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
19201 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19202 if (SWIG_arg_fail(1)) SWIG_fail;
19203 {
19204 PyThreadState* __tstate = wxPyBeginAllowThreads();
19205 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
19206
19207 wxPyEndAllowThreads(__tstate);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 }
19210 {
19211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19212 }
19213 return resultobj;
19214 fail:
19215 return NULL;
19216 }
19217
19218
19219 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19220 PyObject *resultobj = NULL;
19221 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19222 wxString *arg2 = 0 ;
19223 wxString result;
19224 bool temp2 = false ;
19225 PyObject * obj0 = 0 ;
19226 PyObject * obj1 = 0 ;
19227 char *kwnames[] = {
19228 (char *) "self",(char *) "str", NULL
19229 };
19230
19231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
19232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19233 if (SWIG_arg_fail(1)) SWIG_fail;
19234 {
19235 arg2 = wxString_in_helper(obj1);
19236 if (arg2 == NULL) SWIG_fail;
19237 temp2 = true;
19238 }
19239 {
19240 PyThreadState* __tstate = wxPyBeginAllowThreads();
19241 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
19242
19243 wxPyEndAllowThreads(__tstate);
19244 if (PyErr_Occurred()) SWIG_fail;
19245 }
19246 {
19247 #if wxUSE_UNICODE
19248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19249 #else
19250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19251 #endif
19252 }
19253 {
19254 if (temp2)
19255 delete arg2;
19256 }
19257 return resultobj;
19258 fail:
19259 {
19260 if (temp2)
19261 delete arg2;
19262 }
19263 return NULL;
19264 }
19265
19266
19267 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
19268 PyObject *resultobj = NULL;
19269 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19270 wxString result;
19271 PyObject * obj0 = 0 ;
19272 char *kwnames[] = {
19273 (char *) "self", NULL
19274 };
19275
19276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
19277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19278 if (SWIG_arg_fail(1)) SWIG_fail;
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = ((wxConfigBase const *)arg1)->GetAppName();
19282
19283 wxPyEndAllowThreads(__tstate);
19284 if (PyErr_Occurred()) SWIG_fail;
19285 }
19286 {
19287 #if wxUSE_UNICODE
19288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19289 #else
19290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19291 #endif
19292 }
19293 return resultobj;
19294 fail:
19295 return NULL;
19296 }
19297
19298
19299 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
19300 PyObject *resultobj = NULL;
19301 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19302 wxString result;
19303 PyObject * obj0 = 0 ;
19304 char *kwnames[] = {
19305 (char *) "self", NULL
19306 };
19307
19308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
19309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19310 if (SWIG_arg_fail(1)) SWIG_fail;
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 result = ((wxConfigBase const *)arg1)->GetVendorName();
19314
19315 wxPyEndAllowThreads(__tstate);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
19318 {
19319 #if wxUSE_UNICODE
19320 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19321 #else
19322 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19323 #endif
19324 }
19325 return resultobj;
19326 fail:
19327 return NULL;
19328 }
19329
19330
19331 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
19332 PyObject *resultobj = NULL;
19333 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19334 wxString *arg2 = 0 ;
19335 bool temp2 = false ;
19336 PyObject * obj0 = 0 ;
19337 PyObject * obj1 = 0 ;
19338 char *kwnames[] = {
19339 (char *) "self",(char *) "appName", NULL
19340 };
19341
19342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19343 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19344 if (SWIG_arg_fail(1)) SWIG_fail;
19345 {
19346 arg2 = wxString_in_helper(obj1);
19347 if (arg2 == NULL) SWIG_fail;
19348 temp2 = true;
19349 }
19350 {
19351 PyThreadState* __tstate = wxPyBeginAllowThreads();
19352 (arg1)->SetAppName((wxString const &)*arg2);
19353
19354 wxPyEndAllowThreads(__tstate);
19355 if (PyErr_Occurred()) SWIG_fail;
19356 }
19357 Py_INCREF(Py_None); resultobj = Py_None;
19358 {
19359 if (temp2)
19360 delete arg2;
19361 }
19362 return resultobj;
19363 fail:
19364 {
19365 if (temp2)
19366 delete arg2;
19367 }
19368 return NULL;
19369 }
19370
19371
19372 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
19373 PyObject *resultobj = NULL;
19374 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19375 wxString *arg2 = 0 ;
19376 bool temp2 = false ;
19377 PyObject * obj0 = 0 ;
19378 PyObject * obj1 = 0 ;
19379 char *kwnames[] = {
19380 (char *) "self",(char *) "vendorName", NULL
19381 };
19382
19383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19385 if (SWIG_arg_fail(1)) SWIG_fail;
19386 {
19387 arg2 = wxString_in_helper(obj1);
19388 if (arg2 == NULL) SWIG_fail;
19389 temp2 = true;
19390 }
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 (arg1)->SetVendorName((wxString const &)*arg2);
19394
19395 wxPyEndAllowThreads(__tstate);
19396 if (PyErr_Occurred()) SWIG_fail;
19397 }
19398 Py_INCREF(Py_None); resultobj = Py_None;
19399 {
19400 if (temp2)
19401 delete arg2;
19402 }
19403 return resultobj;
19404 fail:
19405 {
19406 if (temp2)
19407 delete arg2;
19408 }
19409 return NULL;
19410 }
19411
19412
19413 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
19414 PyObject *resultobj = NULL;
19415 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19416 long arg2 ;
19417 PyObject * obj0 = 0 ;
19418 PyObject * obj1 = 0 ;
19419 char *kwnames[] = {
19420 (char *) "self",(char *) "style", NULL
19421 };
19422
19423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
19424 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19425 if (SWIG_arg_fail(1)) SWIG_fail;
19426 {
19427 arg2 = static_cast<long >(SWIG_As_long(obj1));
19428 if (SWIG_arg_fail(2)) SWIG_fail;
19429 }
19430 {
19431 PyThreadState* __tstate = wxPyBeginAllowThreads();
19432 (arg1)->SetStyle(arg2);
19433
19434 wxPyEndAllowThreads(__tstate);
19435 if (PyErr_Occurred()) SWIG_fail;
19436 }
19437 Py_INCREF(Py_None); resultobj = Py_None;
19438 return resultobj;
19439 fail:
19440 return NULL;
19441 }
19442
19443
19444 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
19445 PyObject *resultobj = NULL;
19446 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19447 long result;
19448 PyObject * obj0 = 0 ;
19449 char *kwnames[] = {
19450 (char *) "self", NULL
19451 };
19452
19453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
19454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19455 if (SWIG_arg_fail(1)) SWIG_fail;
19456 {
19457 PyThreadState* __tstate = wxPyBeginAllowThreads();
19458 result = (long)((wxConfigBase const *)arg1)->GetStyle();
19459
19460 wxPyEndAllowThreads(__tstate);
19461 if (PyErr_Occurred()) SWIG_fail;
19462 }
19463 {
19464 resultobj = SWIG_From_long(static_cast<long >(result));
19465 }
19466 return resultobj;
19467 fail:
19468 return NULL;
19469 }
19470
19471
19472 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
19473 PyObject *obj;
19474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19475 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
19476 Py_INCREF(obj);
19477 return Py_BuildValue((char *)"");
19478 }
19479 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
19480 PyObject *resultobj = NULL;
19481 wxString const &arg1_defvalue = wxPyEmptyString ;
19482 wxString *arg1 = (wxString *) &arg1_defvalue ;
19483 wxString const &arg2_defvalue = wxPyEmptyString ;
19484 wxString *arg2 = (wxString *) &arg2_defvalue ;
19485 wxString const &arg3_defvalue = wxPyEmptyString ;
19486 wxString *arg3 = (wxString *) &arg3_defvalue ;
19487 wxString const &arg4_defvalue = wxPyEmptyString ;
19488 wxString *arg4 = (wxString *) &arg4_defvalue ;
19489 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
19490 wxConfig *result;
19491 bool temp1 = false ;
19492 bool temp2 = false ;
19493 bool temp3 = false ;
19494 bool temp4 = false ;
19495 PyObject * obj0 = 0 ;
19496 PyObject * obj1 = 0 ;
19497 PyObject * obj2 = 0 ;
19498 PyObject * obj3 = 0 ;
19499 PyObject * obj4 = 0 ;
19500 char *kwnames[] = {
19501 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
19502 };
19503
19504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
19505 if (obj0) {
19506 {
19507 arg1 = wxString_in_helper(obj0);
19508 if (arg1 == NULL) SWIG_fail;
19509 temp1 = true;
19510 }
19511 }
19512 if (obj1) {
19513 {
19514 arg2 = wxString_in_helper(obj1);
19515 if (arg2 == NULL) SWIG_fail;
19516 temp2 = true;
19517 }
19518 }
19519 if (obj2) {
19520 {
19521 arg3 = wxString_in_helper(obj2);
19522 if (arg3 == NULL) SWIG_fail;
19523 temp3 = true;
19524 }
19525 }
19526 if (obj3) {
19527 {
19528 arg4 = wxString_in_helper(obj3);
19529 if (arg4 == NULL) SWIG_fail;
19530 temp4 = true;
19531 }
19532 }
19533 if (obj4) {
19534 {
19535 arg5 = static_cast<long >(SWIG_As_long(obj4));
19536 if (SWIG_arg_fail(5)) SWIG_fail;
19537 }
19538 }
19539 {
19540 PyThreadState* __tstate = wxPyBeginAllowThreads();
19541 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
19542
19543 wxPyEndAllowThreads(__tstate);
19544 if (PyErr_Occurred()) SWIG_fail;
19545 }
19546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
19547 {
19548 if (temp1)
19549 delete arg1;
19550 }
19551 {
19552 if (temp2)
19553 delete arg2;
19554 }
19555 {
19556 if (temp3)
19557 delete arg3;
19558 }
19559 {
19560 if (temp4)
19561 delete arg4;
19562 }
19563 return resultobj;
19564 fail:
19565 {
19566 if (temp1)
19567 delete arg1;
19568 }
19569 {
19570 if (temp2)
19571 delete arg2;
19572 }
19573 {
19574 if (temp3)
19575 delete arg3;
19576 }
19577 {
19578 if (temp4)
19579 delete arg4;
19580 }
19581 return NULL;
19582 }
19583
19584
19585 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj = NULL;
19587 wxConfig *arg1 = (wxConfig *) 0 ;
19588 PyObject * obj0 = 0 ;
19589 char *kwnames[] = {
19590 (char *) "self", NULL
19591 };
19592
19593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
19594 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfig, SWIG_POINTER_EXCEPTION | 0);
19595 if (SWIG_arg_fail(1)) SWIG_fail;
19596 {
19597 PyThreadState* __tstate = wxPyBeginAllowThreads();
19598 delete arg1;
19599
19600 wxPyEndAllowThreads(__tstate);
19601 if (PyErr_Occurred()) SWIG_fail;
19602 }
19603 Py_INCREF(Py_None); resultobj = Py_None;
19604 return resultobj;
19605 fail:
19606 return NULL;
19607 }
19608
19609
19610 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
19611 PyObject *obj;
19612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19613 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
19614 Py_INCREF(obj);
19615 return Py_BuildValue((char *)"");
19616 }
19617 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
19618 PyObject *resultobj = NULL;
19619 wxString const &arg1_defvalue = wxPyEmptyString ;
19620 wxString *arg1 = (wxString *) &arg1_defvalue ;
19621 wxString const &arg2_defvalue = wxPyEmptyString ;
19622 wxString *arg2 = (wxString *) &arg2_defvalue ;
19623 wxString const &arg3_defvalue = wxPyEmptyString ;
19624 wxString *arg3 = (wxString *) &arg3_defvalue ;
19625 wxString const &arg4_defvalue = wxPyEmptyString ;
19626 wxString *arg4 = (wxString *) &arg4_defvalue ;
19627 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
19628 wxFileConfig *result;
19629 bool temp1 = false ;
19630 bool temp2 = false ;
19631 bool temp3 = false ;
19632 bool temp4 = false ;
19633 PyObject * obj0 = 0 ;
19634 PyObject * obj1 = 0 ;
19635 PyObject * obj2 = 0 ;
19636 PyObject * obj3 = 0 ;
19637 PyObject * obj4 = 0 ;
19638 char *kwnames[] = {
19639 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
19640 };
19641
19642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
19643 if (obj0) {
19644 {
19645 arg1 = wxString_in_helper(obj0);
19646 if (arg1 == NULL) SWIG_fail;
19647 temp1 = true;
19648 }
19649 }
19650 if (obj1) {
19651 {
19652 arg2 = wxString_in_helper(obj1);
19653 if (arg2 == NULL) SWIG_fail;
19654 temp2 = true;
19655 }
19656 }
19657 if (obj2) {
19658 {
19659 arg3 = wxString_in_helper(obj2);
19660 if (arg3 == NULL) SWIG_fail;
19661 temp3 = true;
19662 }
19663 }
19664 if (obj3) {
19665 {
19666 arg4 = wxString_in_helper(obj3);
19667 if (arg4 == NULL) SWIG_fail;
19668 temp4 = true;
19669 }
19670 }
19671 if (obj4) {
19672 {
19673 arg5 = static_cast<long >(SWIG_As_long(obj4));
19674 if (SWIG_arg_fail(5)) SWIG_fail;
19675 }
19676 }
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
19680
19681 wxPyEndAllowThreads(__tstate);
19682 if (PyErr_Occurred()) SWIG_fail;
19683 }
19684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
19685 {
19686 if (temp1)
19687 delete arg1;
19688 }
19689 {
19690 if (temp2)
19691 delete arg2;
19692 }
19693 {
19694 if (temp3)
19695 delete arg3;
19696 }
19697 {
19698 if (temp4)
19699 delete arg4;
19700 }
19701 return resultobj;
19702 fail:
19703 {
19704 if (temp1)
19705 delete arg1;
19706 }
19707 {
19708 if (temp2)
19709 delete arg2;
19710 }
19711 {
19712 if (temp3)
19713 delete arg3;
19714 }
19715 {
19716 if (temp4)
19717 delete arg4;
19718 }
19719 return NULL;
19720 }
19721
19722
19723 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
19724 PyObject *resultobj = NULL;
19725 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
19726 PyObject * obj0 = 0 ;
19727 char *kwnames[] = {
19728 (char *) "self", NULL
19729 };
19730
19731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
19732 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileConfig, SWIG_POINTER_EXCEPTION | 0);
19733 if (SWIG_arg_fail(1)) SWIG_fail;
19734 {
19735 PyThreadState* __tstate = wxPyBeginAllowThreads();
19736 delete arg1;
19737
19738 wxPyEndAllowThreads(__tstate);
19739 if (PyErr_Occurred()) SWIG_fail;
19740 }
19741 Py_INCREF(Py_None); resultobj = Py_None;
19742 return resultobj;
19743 fail:
19744 return NULL;
19745 }
19746
19747
19748 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
19749 PyObject *obj;
19750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19751 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
19752 Py_INCREF(obj);
19753 return Py_BuildValue((char *)"");
19754 }
19755 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
19756 PyObject *resultobj = NULL;
19757 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19758 wxString *arg2 = 0 ;
19759 wxConfigPathChanger *result;
19760 bool temp2 = false ;
19761 PyObject * obj0 = 0 ;
19762 PyObject * obj1 = 0 ;
19763 char *kwnames[] = {
19764 (char *) "config",(char *) "entry", NULL
19765 };
19766
19767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
19768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19769 if (SWIG_arg_fail(1)) SWIG_fail;
19770 {
19771 arg2 = wxString_in_helper(obj1);
19772 if (arg2 == NULL) SWIG_fail;
19773 temp2 = true;
19774 }
19775 {
19776 PyThreadState* __tstate = wxPyBeginAllowThreads();
19777 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
19778
19779 wxPyEndAllowThreads(__tstate);
19780 if (PyErr_Occurred()) SWIG_fail;
19781 }
19782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
19783 {
19784 if (temp2)
19785 delete arg2;
19786 }
19787 return resultobj;
19788 fail:
19789 {
19790 if (temp2)
19791 delete arg2;
19792 }
19793 return NULL;
19794 }
19795
19796
19797 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
19798 PyObject *resultobj = NULL;
19799 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
19800 PyObject * obj0 = 0 ;
19801 char *kwnames[] = {
19802 (char *) "self", NULL
19803 };
19804
19805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
19806 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0);
19807 if (SWIG_arg_fail(1)) SWIG_fail;
19808 {
19809 PyThreadState* __tstate = wxPyBeginAllowThreads();
19810 delete arg1;
19811
19812 wxPyEndAllowThreads(__tstate);
19813 if (PyErr_Occurred()) SWIG_fail;
19814 }
19815 Py_INCREF(Py_None); resultobj = Py_None;
19816 return resultobj;
19817 fail:
19818 return NULL;
19819 }
19820
19821
19822 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
19823 PyObject *resultobj = NULL;
19824 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
19825 wxString *result;
19826 PyObject * obj0 = 0 ;
19827 char *kwnames[] = {
19828 (char *) "self", NULL
19829 };
19830
19831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
19832 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0);
19833 if (SWIG_arg_fail(1)) SWIG_fail;
19834 {
19835 PyThreadState* __tstate = wxPyBeginAllowThreads();
19836 {
19837 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
19838 result = (wxString *) &_result_ref;
19839 }
19840
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 {
19845 #if wxUSE_UNICODE
19846 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19847 #else
19848 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19849 #endif
19850 }
19851 return resultobj;
19852 fail:
19853 return NULL;
19854 }
19855
19856
19857 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
19858 PyObject *obj;
19859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19860 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
19861 Py_INCREF(obj);
19862 return Py_BuildValue((char *)"");
19863 }
19864 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19865 PyObject *resultobj = NULL;
19866 wxString *arg1 = 0 ;
19867 wxString result;
19868 bool temp1 = false ;
19869 PyObject * obj0 = 0 ;
19870 char *kwnames[] = {
19871 (char *) "sz", NULL
19872 };
19873
19874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
19875 {
19876 arg1 = wxString_in_helper(obj0);
19877 if (arg1 == NULL) SWIG_fail;
19878 temp1 = true;
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 result = wxExpandEnvVars((wxString const &)*arg1);
19883
19884 wxPyEndAllowThreads(__tstate);
19885 if (PyErr_Occurred()) SWIG_fail;
19886 }
19887 {
19888 #if wxUSE_UNICODE
19889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19890 #else
19891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19892 #endif
19893 }
19894 {
19895 if (temp1)
19896 delete arg1;
19897 }
19898 return resultobj;
19899 fail:
19900 {
19901 if (temp1)
19902 delete arg1;
19903 }
19904 return NULL;
19905 }
19906
19907
19908 static int _wrap_DefaultDateTimeFormat_set(PyObject *) {
19909 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTimeFormat is read-only.");
19910 return 1;
19911 }
19912
19913
19914 static PyObject *_wrap_DefaultDateTimeFormat_get(void) {
19915 PyObject *pyobj = NULL;
19916
19917 {
19918 #if wxUSE_UNICODE
19919 pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
19920 #else
19921 pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
19922 #endif
19923 }
19924 return pyobj;
19925 }
19926
19927
19928 static int _wrap_DefaultTimeSpanFormat_set(PyObject *) {
19929 PyErr_SetString(PyExc_TypeError,"Variable DefaultTimeSpanFormat is read-only.");
19930 return 1;
19931 }
19932
19933
19934 static PyObject *_wrap_DefaultTimeSpanFormat_get(void) {
19935 PyObject *pyobj = NULL;
19936
19937 {
19938 #if wxUSE_UNICODE
19939 pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
19940 #else
19941 pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
19942 #endif
19943 }
19944 return pyobj;
19945 }
19946
19947
19948 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
19949 PyObject *resultobj = NULL;
19950 wxDateTime::Country arg1 ;
19951 PyObject * obj0 = 0 ;
19952 char *kwnames[] = {
19953 (char *) "country", NULL
19954 };
19955
19956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
19957 {
19958 arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0));
19959 if (SWIG_arg_fail(1)) SWIG_fail;
19960 }
19961 {
19962 PyThreadState* __tstate = wxPyBeginAllowThreads();
19963 wxDateTime::SetCountry(arg1);
19964
19965 wxPyEndAllowThreads(__tstate);
19966 if (PyErr_Occurred()) SWIG_fail;
19967 }
19968 Py_INCREF(Py_None); resultobj = Py_None;
19969 return resultobj;
19970 fail:
19971 return NULL;
19972 }
19973
19974
19975 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj = NULL;
19977 wxDateTime::Country result;
19978 char *kwnames[] = {
19979 NULL
19980 };
19981
19982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
19983 {
19984 PyThreadState* __tstate = wxPyBeginAllowThreads();
19985 result = (wxDateTime::Country)wxDateTime::GetCountry();
19986
19987 wxPyEndAllowThreads(__tstate);
19988 if (PyErr_Occurred()) SWIG_fail;
19989 }
19990 resultobj = SWIG_From_int((result));
19991 return resultobj;
19992 fail:
19993 return NULL;
19994 }
19995
19996
19997 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
19998 PyObject *resultobj = NULL;
19999 wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ;
20000 bool result;
20001 PyObject * obj0 = 0 ;
20002 char *kwnames[] = {
20003 (char *) "country", NULL
20004 };
20005
20006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
20007 if (obj0) {
20008 {
20009 arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0));
20010 if (SWIG_arg_fail(1)) SWIG_fail;
20011 }
20012 }
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 result = (bool)wxDateTime::IsWestEuropeanCountry(arg1);
20016
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 {
20021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20022 }
20023 return resultobj;
20024 fail:
20025 return NULL;
20026 }
20027
20028
20029 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
20030 PyObject *resultobj = NULL;
20031 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20032 int result;
20033 PyObject * obj0 = 0 ;
20034 char *kwnames[] = {
20035 (char *) "cal", NULL
20036 };
20037
20038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
20039 if (obj0) {
20040 {
20041 arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0));
20042 if (SWIG_arg_fail(1)) SWIG_fail;
20043 }
20044 }
20045 {
20046 PyThreadState* __tstate = wxPyBeginAllowThreads();
20047 result = (int)wxDateTime::GetCurrentYear(arg1);
20048
20049 wxPyEndAllowThreads(__tstate);
20050 if (PyErr_Occurred()) SWIG_fail;
20051 }
20052 {
20053 resultobj = SWIG_From_int(static_cast<int >(result));
20054 }
20055 return resultobj;
20056 fail:
20057 return NULL;
20058 }
20059
20060
20061 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
20062 PyObject *resultobj = NULL;
20063 int arg1 ;
20064 int result;
20065 PyObject * obj0 = 0 ;
20066 char *kwnames[] = {
20067 (char *) "year", NULL
20068 };
20069
20070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
20071 {
20072 arg1 = static_cast<int >(SWIG_As_int(obj0));
20073 if (SWIG_arg_fail(1)) SWIG_fail;
20074 }
20075 {
20076 PyThreadState* __tstate = wxPyBeginAllowThreads();
20077 result = (int)wxDateTime::ConvertYearToBC(arg1);
20078
20079 wxPyEndAllowThreads(__tstate);
20080 if (PyErr_Occurred()) SWIG_fail;
20081 }
20082 {
20083 resultobj = SWIG_From_int(static_cast<int >(result));
20084 }
20085 return resultobj;
20086 fail:
20087 return NULL;
20088 }
20089
20090
20091 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
20092 PyObject *resultobj = NULL;
20093 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20094 wxDateTime::Month result;
20095 PyObject * obj0 = 0 ;
20096 char *kwnames[] = {
20097 (char *) "cal", NULL
20098 };
20099
20100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
20101 if (obj0) {
20102 {
20103 arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0));
20104 if (SWIG_arg_fail(1)) SWIG_fail;
20105 }
20106 }
20107 {
20108 PyThreadState* __tstate = wxPyBeginAllowThreads();
20109 result = (wxDateTime::Month)wxDateTime::GetCurrentMonth(arg1);
20110
20111 wxPyEndAllowThreads(__tstate);
20112 if (PyErr_Occurred()) SWIG_fail;
20113 }
20114 resultobj = SWIG_From_int((result));
20115 return resultobj;
20116 fail:
20117 return NULL;
20118 }
20119
20120
20121 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
20122 PyObject *resultobj = NULL;
20123 int arg1 = (int) wxDateTime::Inv_Year ;
20124 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20125 bool result;
20126 PyObject * obj0 = 0 ;
20127 PyObject * obj1 = 0 ;
20128 char *kwnames[] = {
20129 (char *) "year",(char *) "cal", NULL
20130 };
20131
20132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
20133 if (obj0) {
20134 {
20135 arg1 = static_cast<int >(SWIG_As_int(obj0));
20136 if (SWIG_arg_fail(1)) SWIG_fail;
20137 }
20138 }
20139 if (obj1) {
20140 {
20141 arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1));
20142 if (SWIG_arg_fail(2)) SWIG_fail;
20143 }
20144 }
20145 {
20146 PyThreadState* __tstate = wxPyBeginAllowThreads();
20147 result = (bool)wxDateTime::IsLeapYear(arg1,arg2);
20148
20149 wxPyEndAllowThreads(__tstate);
20150 if (PyErr_Occurred()) SWIG_fail;
20151 }
20152 {
20153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20154 }
20155 return resultobj;
20156 fail:
20157 return NULL;
20158 }
20159
20160
20161 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
20162 PyObject *resultobj = NULL;
20163 int arg1 = (int) wxDateTime::Inv_Year ;
20164 int result;
20165 PyObject * obj0 = 0 ;
20166 char *kwnames[] = {
20167 (char *) "year", NULL
20168 };
20169
20170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
20171 if (obj0) {
20172 {
20173 arg1 = static_cast<int >(SWIG_As_int(obj0));
20174 if (SWIG_arg_fail(1)) SWIG_fail;
20175 }
20176 }
20177 {
20178 PyThreadState* __tstate = wxPyBeginAllowThreads();
20179 result = (int)wxDateTime::GetCentury(arg1);
20180
20181 wxPyEndAllowThreads(__tstate);
20182 if (PyErr_Occurred()) SWIG_fail;
20183 }
20184 {
20185 resultobj = SWIG_From_int(static_cast<int >(result));
20186 }
20187 return resultobj;
20188 fail:
20189 return NULL;
20190 }
20191
20192
20193 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
20194 PyObject *resultobj = NULL;
20195 int arg1 ;
20196 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20197 int result;
20198 PyObject * obj0 = 0 ;
20199 PyObject * obj1 = 0 ;
20200 char *kwnames[] = {
20201 (char *) "year",(char *) "cal", NULL
20202 };
20203
20204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
20205 {
20206 arg1 = static_cast<int >(SWIG_As_int(obj0));
20207 if (SWIG_arg_fail(1)) SWIG_fail;
20208 }
20209 if (obj1) {
20210 {
20211 arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1));
20212 if (SWIG_arg_fail(2)) SWIG_fail;
20213 }
20214 }
20215 {
20216 PyThreadState* __tstate = wxPyBeginAllowThreads();
20217 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2);
20218
20219 wxPyEndAllowThreads(__tstate);
20220 if (PyErr_Occurred()) SWIG_fail;
20221 }
20222 {
20223 resultobj = SWIG_From_int(static_cast<int >(result));
20224 }
20225 return resultobj;
20226 fail:
20227 return NULL;
20228 }
20229
20230
20231 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
20232 PyObject *resultobj = NULL;
20233 wxDateTime::Month arg1 ;
20234 int arg2 = (int) wxDateTime::Inv_Year ;
20235 wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20236 int result;
20237 PyObject * obj0 = 0 ;
20238 PyObject * obj1 = 0 ;
20239 PyObject * obj2 = 0 ;
20240 char *kwnames[] = {
20241 (char *) "month",(char *) "year",(char *) "cal", NULL
20242 };
20243
20244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20245 {
20246 arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0));
20247 if (SWIG_arg_fail(1)) SWIG_fail;
20248 }
20249 if (obj1) {
20250 {
20251 arg2 = static_cast<int >(SWIG_As_int(obj1));
20252 if (SWIG_arg_fail(2)) SWIG_fail;
20253 }
20254 }
20255 if (obj2) {
20256 {
20257 arg3 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj2));
20258 if (SWIG_arg_fail(3)) SWIG_fail;
20259 }
20260 }
20261 {
20262 PyThreadState* __tstate = wxPyBeginAllowThreads();
20263 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2,arg3);
20264
20265 wxPyEndAllowThreads(__tstate);
20266 if (PyErr_Occurred()) SWIG_fail;
20267 }
20268 {
20269 resultobj = SWIG_From_int(static_cast<int >(result));
20270 }
20271 return resultobj;
20272 fail:
20273 return NULL;
20274 }
20275
20276
20277 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
20278 PyObject *resultobj = NULL;
20279 wxDateTime::Month arg1 ;
20280 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
20281 wxString result;
20282 PyObject * obj0 = 0 ;
20283 PyObject * obj1 = 0 ;
20284 char *kwnames[] = {
20285 (char *) "month",(char *) "flags", NULL
20286 };
20287
20288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
20289 {
20290 arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0));
20291 if (SWIG_arg_fail(1)) SWIG_fail;
20292 }
20293 if (obj1) {
20294 {
20295 arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1));
20296 if (SWIG_arg_fail(2)) SWIG_fail;
20297 }
20298 }
20299 {
20300 PyThreadState* __tstate = wxPyBeginAllowThreads();
20301 result = wxDateTime::GetMonthName(arg1,arg2);
20302
20303 wxPyEndAllowThreads(__tstate);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 }
20306 {
20307 #if wxUSE_UNICODE
20308 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20309 #else
20310 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20311 #endif
20312 }
20313 return resultobj;
20314 fail:
20315 return NULL;
20316 }
20317
20318
20319 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
20320 PyObject *resultobj = NULL;
20321 wxDateTime::WeekDay arg1 ;
20322 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
20323 wxString result;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 char *kwnames[] = {
20327 (char *) "weekday",(char *) "flags", NULL
20328 };
20329
20330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
20331 {
20332 arg1 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj0));
20333 if (SWIG_arg_fail(1)) SWIG_fail;
20334 }
20335 if (obj1) {
20336 {
20337 arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1));
20338 if (SWIG_arg_fail(2)) SWIG_fail;
20339 }
20340 }
20341 {
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 result = wxDateTime::GetWeekDayName(arg1,arg2);
20344
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 {
20349 #if wxUSE_UNICODE
20350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20351 #else
20352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20353 #endif
20354 }
20355 return resultobj;
20356 fail:
20357 return NULL;
20358 }
20359
20360
20361 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = NULL;
20363 PyObject *result;
20364 char *kwnames[] = {
20365 NULL
20366 };
20367
20368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetAmPmStrings",kwnames)) goto fail;
20369 {
20370 PyThreadState* __tstate = wxPyBeginAllowThreads();
20371 result = (PyObject *)wxDateTime_GetAmPmStrings();
20372
20373 wxPyEndAllowThreads(__tstate);
20374 if (PyErr_Occurred()) SWIG_fail;
20375 }
20376 resultobj = result;
20377 return resultobj;
20378 fail:
20379 return NULL;
20380 }
20381
20382
20383 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
20384 PyObject *resultobj = NULL;
20385 int arg1 = (int) wxDateTime::Inv_Year ;
20386 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20387 bool result;
20388 PyObject * obj0 = 0 ;
20389 PyObject * obj1 = 0 ;
20390 char *kwnames[] = {
20391 (char *) "year",(char *) "country", NULL
20392 };
20393
20394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
20395 if (obj0) {
20396 {
20397 arg1 = static_cast<int >(SWIG_As_int(obj0));
20398 if (SWIG_arg_fail(1)) SWIG_fail;
20399 }
20400 }
20401 if (obj1) {
20402 {
20403 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20404 if (SWIG_arg_fail(2)) SWIG_fail;
20405 }
20406 }
20407 {
20408 PyThreadState* __tstate = wxPyBeginAllowThreads();
20409 result = (bool)wxDateTime::IsDSTApplicable(arg1,arg2);
20410
20411 wxPyEndAllowThreads(__tstate);
20412 if (PyErr_Occurred()) SWIG_fail;
20413 }
20414 {
20415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20416 }
20417 return resultobj;
20418 fail:
20419 return NULL;
20420 }
20421
20422
20423 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
20424 PyObject *resultobj = NULL;
20425 int arg1 = (int) wxDateTime::Inv_Year ;
20426 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20427 wxDateTime result;
20428 PyObject * obj0 = 0 ;
20429 PyObject * obj1 = 0 ;
20430 char *kwnames[] = {
20431 (char *) "year",(char *) "country", NULL
20432 };
20433
20434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
20435 if (obj0) {
20436 {
20437 arg1 = static_cast<int >(SWIG_As_int(obj0));
20438 if (SWIG_arg_fail(1)) SWIG_fail;
20439 }
20440 }
20441 if (obj1) {
20442 {
20443 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20444 if (SWIG_arg_fail(2)) SWIG_fail;
20445 }
20446 }
20447 {
20448 PyThreadState* __tstate = wxPyBeginAllowThreads();
20449 result = wxDateTime::GetBeginDST(arg1,arg2);
20450
20451 wxPyEndAllowThreads(__tstate);
20452 if (PyErr_Occurred()) SWIG_fail;
20453 }
20454 {
20455 wxDateTime * resultptr;
20456 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20458 }
20459 return resultobj;
20460 fail:
20461 return NULL;
20462 }
20463
20464
20465 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
20466 PyObject *resultobj = NULL;
20467 int arg1 = (int) wxDateTime::Inv_Year ;
20468 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20469 wxDateTime result;
20470 PyObject * obj0 = 0 ;
20471 PyObject * obj1 = 0 ;
20472 char *kwnames[] = {
20473 (char *) "year",(char *) "country", NULL
20474 };
20475
20476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
20477 if (obj0) {
20478 {
20479 arg1 = static_cast<int >(SWIG_As_int(obj0));
20480 if (SWIG_arg_fail(1)) SWIG_fail;
20481 }
20482 }
20483 if (obj1) {
20484 {
20485 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20486 if (SWIG_arg_fail(2)) SWIG_fail;
20487 }
20488 }
20489 {
20490 PyThreadState* __tstate = wxPyBeginAllowThreads();
20491 result = wxDateTime::GetEndDST(arg1,arg2);
20492
20493 wxPyEndAllowThreads(__tstate);
20494 if (PyErr_Occurred()) SWIG_fail;
20495 }
20496 {
20497 wxDateTime * resultptr;
20498 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20499 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20500 }
20501 return resultobj;
20502 fail:
20503 return NULL;
20504 }
20505
20506
20507 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
20508 PyObject *resultobj = NULL;
20509 wxDateTime result;
20510 char *kwnames[] = {
20511 NULL
20512 };
20513
20514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
20515 {
20516 PyThreadState* __tstate = wxPyBeginAllowThreads();
20517 result = wxDateTime::Now();
20518
20519 wxPyEndAllowThreads(__tstate);
20520 if (PyErr_Occurred()) SWIG_fail;
20521 }
20522 {
20523 wxDateTime * resultptr;
20524 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20526 }
20527 return resultobj;
20528 fail:
20529 return NULL;
20530 }
20531
20532
20533 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
20534 PyObject *resultobj = NULL;
20535 wxDateTime result;
20536 char *kwnames[] = {
20537 NULL
20538 };
20539
20540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
20541 {
20542 PyThreadState* __tstate = wxPyBeginAllowThreads();
20543 result = wxDateTime::UNow();
20544
20545 wxPyEndAllowThreads(__tstate);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 }
20548 {
20549 wxDateTime * resultptr;
20550 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20552 }
20553 return resultobj;
20554 fail:
20555 return NULL;
20556 }
20557
20558
20559 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
20560 PyObject *resultobj = NULL;
20561 wxDateTime result;
20562 char *kwnames[] = {
20563 NULL
20564 };
20565
20566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 result = wxDateTime::Today();
20570
20571 wxPyEndAllowThreads(__tstate);
20572 if (PyErr_Occurred()) SWIG_fail;
20573 }
20574 {
20575 wxDateTime * resultptr;
20576 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20577 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20578 }
20579 return resultobj;
20580 fail:
20581 return NULL;
20582 }
20583
20584
20585 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20586 PyObject *resultobj = NULL;
20587 wxDateTime *result;
20588 char *kwnames[] = {
20589 NULL
20590 };
20591
20592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
20593 {
20594 PyThreadState* __tstate = wxPyBeginAllowThreads();
20595 result = (wxDateTime *)new wxDateTime();
20596
20597 wxPyEndAllowThreads(__tstate);
20598 if (PyErr_Occurred()) SWIG_fail;
20599 }
20600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20601 return resultobj;
20602 fail:
20603 return NULL;
20604 }
20605
20606
20607 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
20608 PyObject *resultobj = NULL;
20609 time_t arg1 ;
20610 wxDateTime *result;
20611 PyObject * obj0 = 0 ;
20612 char *kwnames[] = {
20613 (char *) "timet", NULL
20614 };
20615
20616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
20617 {
20618 arg1 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj0));
20619 if (SWIG_arg_fail(1)) SWIG_fail;
20620 }
20621 {
20622 PyThreadState* __tstate = wxPyBeginAllowThreads();
20623 result = (wxDateTime *)new wxDateTime(arg1);
20624
20625 wxPyEndAllowThreads(__tstate);
20626 if (PyErr_Occurred()) SWIG_fail;
20627 }
20628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20629 return resultobj;
20630 fail:
20631 return NULL;
20632 }
20633
20634
20635 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
20636 PyObject *resultobj = NULL;
20637 double arg1 ;
20638 wxDateTime *result;
20639 PyObject * obj0 = 0 ;
20640 char *kwnames[] = {
20641 (char *) "jdn", NULL
20642 };
20643
20644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
20645 {
20646 arg1 = static_cast<double >(SWIG_As_double(obj0));
20647 if (SWIG_arg_fail(1)) SWIG_fail;
20648 }
20649 {
20650 PyThreadState* __tstate = wxPyBeginAllowThreads();
20651 result = (wxDateTime *)new wxDateTime(arg1);
20652
20653 wxPyEndAllowThreads(__tstate);
20654 if (PyErr_Occurred()) SWIG_fail;
20655 }
20656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20657 return resultobj;
20658 fail:
20659 return NULL;
20660 }
20661
20662
20663 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
20664 PyObject *resultobj = NULL;
20665 int arg1 ;
20666 int arg2 = (int) 0 ;
20667 int arg3 = (int) 0 ;
20668 int arg4 = (int) 0 ;
20669 wxDateTime *result;
20670 PyObject * obj0 = 0 ;
20671 PyObject * obj1 = 0 ;
20672 PyObject * obj2 = 0 ;
20673 PyObject * obj3 = 0 ;
20674 char *kwnames[] = {
20675 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20676 };
20677
20678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20679 {
20680 arg1 = static_cast<int >(SWIG_As_int(obj0));
20681 if (SWIG_arg_fail(1)) SWIG_fail;
20682 }
20683 if (obj1) {
20684 {
20685 arg2 = static_cast<int >(SWIG_As_int(obj1));
20686 if (SWIG_arg_fail(2)) SWIG_fail;
20687 }
20688 }
20689 if (obj2) {
20690 {
20691 arg3 = static_cast<int >(SWIG_As_int(obj2));
20692 if (SWIG_arg_fail(3)) SWIG_fail;
20693 }
20694 }
20695 if (obj3) {
20696 {
20697 arg4 = static_cast<int >(SWIG_As_int(obj3));
20698 if (SWIG_arg_fail(4)) SWIG_fail;
20699 }
20700 }
20701 {
20702 PyThreadState* __tstate = wxPyBeginAllowThreads();
20703 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
20704
20705 wxPyEndAllowThreads(__tstate);
20706 if (PyErr_Occurred()) SWIG_fail;
20707 }
20708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20709 return resultobj;
20710 fail:
20711 return NULL;
20712 }
20713
20714
20715 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
20716 PyObject *resultobj = NULL;
20717 int arg1 ;
20718 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
20719 int arg3 = (int) wxDateTime::Inv_Year ;
20720 int arg4 = (int) 0 ;
20721 int arg5 = (int) 0 ;
20722 int arg6 = (int) 0 ;
20723 int arg7 = (int) 0 ;
20724 wxDateTime *result;
20725 PyObject * obj0 = 0 ;
20726 PyObject * obj1 = 0 ;
20727 PyObject * obj2 = 0 ;
20728 PyObject * obj3 = 0 ;
20729 PyObject * obj4 = 0 ;
20730 PyObject * obj5 = 0 ;
20731 PyObject * obj6 = 0 ;
20732 char *kwnames[] = {
20733 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20734 };
20735
20736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20737 {
20738 arg1 = static_cast<int >(SWIG_As_int(obj0));
20739 if (SWIG_arg_fail(1)) SWIG_fail;
20740 }
20741 if (obj1) {
20742 {
20743 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
20744 if (SWIG_arg_fail(2)) SWIG_fail;
20745 }
20746 }
20747 if (obj2) {
20748 {
20749 arg3 = static_cast<int >(SWIG_As_int(obj2));
20750 if (SWIG_arg_fail(3)) SWIG_fail;
20751 }
20752 }
20753 if (obj3) {
20754 {
20755 arg4 = static_cast<int >(SWIG_As_int(obj3));
20756 if (SWIG_arg_fail(4)) SWIG_fail;
20757 }
20758 }
20759 if (obj4) {
20760 {
20761 arg5 = static_cast<int >(SWIG_As_int(obj4));
20762 if (SWIG_arg_fail(5)) SWIG_fail;
20763 }
20764 }
20765 if (obj5) {
20766 {
20767 arg6 = static_cast<int >(SWIG_As_int(obj5));
20768 if (SWIG_arg_fail(6)) SWIG_fail;
20769 }
20770 }
20771 if (obj6) {
20772 {
20773 arg7 = static_cast<int >(SWIG_As_int(obj6));
20774 if (SWIG_arg_fail(7)) SWIG_fail;
20775 }
20776 }
20777 {
20778 PyThreadState* __tstate = wxPyBeginAllowThreads();
20779 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
20780
20781 wxPyEndAllowThreads(__tstate);
20782 if (PyErr_Occurred()) SWIG_fail;
20783 }
20784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20785 return resultobj;
20786 fail:
20787 return NULL;
20788 }
20789
20790
20791 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20792 PyObject *resultobj = NULL;
20793 wxDateTime *arg1 = (wxDateTime *) 0 ;
20794 PyObject * obj0 = 0 ;
20795 char *kwnames[] = {
20796 (char *) "self", NULL
20797 };
20798
20799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
20800 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20801 if (SWIG_arg_fail(1)) SWIG_fail;
20802 {
20803 PyThreadState* __tstate = wxPyBeginAllowThreads();
20804 delete arg1;
20805
20806 wxPyEndAllowThreads(__tstate);
20807 if (PyErr_Occurred()) SWIG_fail;
20808 }
20809 Py_INCREF(Py_None); resultobj = Py_None;
20810 return resultobj;
20811 fail:
20812 return NULL;
20813 }
20814
20815
20816 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
20817 PyObject *resultobj = NULL;
20818 wxDateTime *arg1 = (wxDateTime *) 0 ;
20819 wxDateTime *result;
20820 PyObject * obj0 = 0 ;
20821 char *kwnames[] = {
20822 (char *) "self", NULL
20823 };
20824
20825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
20826 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20827 if (SWIG_arg_fail(1)) SWIG_fail;
20828 {
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 {
20831 wxDateTime &_result_ref = (arg1)->SetToCurrent();
20832 result = (wxDateTime *) &_result_ref;
20833 }
20834
20835 wxPyEndAllowThreads(__tstate);
20836 if (PyErr_Occurred()) SWIG_fail;
20837 }
20838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20839 return resultobj;
20840 fail:
20841 return NULL;
20842 }
20843
20844
20845 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
20846 PyObject *resultobj = NULL;
20847 wxDateTime *arg1 = (wxDateTime *) 0 ;
20848 time_t arg2 ;
20849 wxDateTime *result;
20850 PyObject * obj0 = 0 ;
20851 PyObject * obj1 = 0 ;
20852 char *kwnames[] = {
20853 (char *) "self",(char *) "timet", NULL
20854 };
20855
20856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
20857 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20858 if (SWIG_arg_fail(1)) SWIG_fail;
20859 {
20860 arg2 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj1));
20861 if (SWIG_arg_fail(2)) SWIG_fail;
20862 }
20863 {
20864 PyThreadState* __tstate = wxPyBeginAllowThreads();
20865 {
20866 wxDateTime &_result_ref = (arg1)->Set(arg2);
20867 result = (wxDateTime *) &_result_ref;
20868 }
20869
20870 wxPyEndAllowThreads(__tstate);
20871 if (PyErr_Occurred()) SWIG_fail;
20872 }
20873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20874 return resultobj;
20875 fail:
20876 return NULL;
20877 }
20878
20879
20880 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
20881 PyObject *resultobj = NULL;
20882 wxDateTime *arg1 = (wxDateTime *) 0 ;
20883 double arg2 ;
20884 wxDateTime *result;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887 char *kwnames[] = {
20888 (char *) "self",(char *) "jdn", NULL
20889 };
20890
20891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
20892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20893 if (SWIG_arg_fail(1)) SWIG_fail;
20894 {
20895 arg2 = static_cast<double >(SWIG_As_double(obj1));
20896 if (SWIG_arg_fail(2)) SWIG_fail;
20897 }
20898 {
20899 PyThreadState* __tstate = wxPyBeginAllowThreads();
20900 {
20901 wxDateTime &_result_ref = (arg1)->Set(arg2);
20902 result = (wxDateTime *) &_result_ref;
20903 }
20904
20905 wxPyEndAllowThreads(__tstate);
20906 if (PyErr_Occurred()) SWIG_fail;
20907 }
20908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20909 return resultobj;
20910 fail:
20911 return NULL;
20912 }
20913
20914
20915 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
20916 PyObject *resultobj = NULL;
20917 wxDateTime *arg1 = (wxDateTime *) 0 ;
20918 int arg2 ;
20919 int arg3 = (int) 0 ;
20920 int arg4 = (int) 0 ;
20921 int arg5 = (int) 0 ;
20922 wxDateTime *result;
20923 PyObject * obj0 = 0 ;
20924 PyObject * obj1 = 0 ;
20925 PyObject * obj2 = 0 ;
20926 PyObject * obj3 = 0 ;
20927 PyObject * obj4 = 0 ;
20928 char *kwnames[] = {
20929 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20930 };
20931
20932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20933 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20934 if (SWIG_arg_fail(1)) SWIG_fail;
20935 {
20936 arg2 = static_cast<int >(SWIG_As_int(obj1));
20937 if (SWIG_arg_fail(2)) SWIG_fail;
20938 }
20939 if (obj2) {
20940 {
20941 arg3 = static_cast<int >(SWIG_As_int(obj2));
20942 if (SWIG_arg_fail(3)) SWIG_fail;
20943 }
20944 }
20945 if (obj3) {
20946 {
20947 arg4 = static_cast<int >(SWIG_As_int(obj3));
20948 if (SWIG_arg_fail(4)) SWIG_fail;
20949 }
20950 }
20951 if (obj4) {
20952 {
20953 arg5 = static_cast<int >(SWIG_As_int(obj4));
20954 if (SWIG_arg_fail(5)) SWIG_fail;
20955 }
20956 }
20957 {
20958 PyThreadState* __tstate = wxPyBeginAllowThreads();
20959 {
20960 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
20961 result = (wxDateTime *) &_result_ref;
20962 }
20963
20964 wxPyEndAllowThreads(__tstate);
20965 if (PyErr_Occurred()) SWIG_fail;
20966 }
20967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20968 return resultobj;
20969 fail:
20970 return NULL;
20971 }
20972
20973
20974 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
20975 PyObject *resultobj = NULL;
20976 wxDateTime *arg1 = (wxDateTime *) 0 ;
20977 int arg2 ;
20978 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
20979 int arg4 = (int) wxDateTime::Inv_Year ;
20980 int arg5 = (int) 0 ;
20981 int arg6 = (int) 0 ;
20982 int arg7 = (int) 0 ;
20983 int arg8 = (int) 0 ;
20984 wxDateTime *result;
20985 PyObject * obj0 = 0 ;
20986 PyObject * obj1 = 0 ;
20987 PyObject * obj2 = 0 ;
20988 PyObject * obj3 = 0 ;
20989 PyObject * obj4 = 0 ;
20990 PyObject * obj5 = 0 ;
20991 PyObject * obj6 = 0 ;
20992 PyObject * obj7 = 0 ;
20993 char *kwnames[] = {
20994 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20995 };
20996
20997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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<wxDateTime::Month >(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 if (obj5) {
21023 {
21024 arg6 = static_cast<int >(SWIG_As_int(obj5));
21025 if (SWIG_arg_fail(6)) SWIG_fail;
21026 }
21027 }
21028 if (obj6) {
21029 {
21030 arg7 = static_cast<int >(SWIG_As_int(obj6));
21031 if (SWIG_arg_fail(7)) SWIG_fail;
21032 }
21033 }
21034 if (obj7) {
21035 {
21036 arg8 = static_cast<int >(SWIG_As_int(obj7));
21037 if (SWIG_arg_fail(8)) SWIG_fail;
21038 }
21039 }
21040 {
21041 PyThreadState* __tstate = wxPyBeginAllowThreads();
21042 {
21043 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
21044 result = (wxDateTime *) &_result_ref;
21045 }
21046
21047 wxPyEndAllowThreads(__tstate);
21048 if (PyErr_Occurred()) SWIG_fail;
21049 }
21050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21051 return resultobj;
21052 fail:
21053 return NULL;
21054 }
21055
21056
21057 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
21058 PyObject *resultobj = NULL;
21059 wxDateTime *arg1 = (wxDateTime *) 0 ;
21060 wxDateTime *result;
21061 PyObject * obj0 = 0 ;
21062 char *kwnames[] = {
21063 (char *) "self", NULL
21064 };
21065
21066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
21067 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21068 if (SWIG_arg_fail(1)) SWIG_fail;
21069 {
21070 PyThreadState* __tstate = wxPyBeginAllowThreads();
21071 {
21072 wxDateTime &_result_ref = (arg1)->ResetTime();
21073 result = (wxDateTime *) &_result_ref;
21074 }
21075
21076 wxPyEndAllowThreads(__tstate);
21077 if (PyErr_Occurred()) SWIG_fail;
21078 }
21079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21080 return resultobj;
21081 fail:
21082 return NULL;
21083 }
21084
21085
21086 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
21087 PyObject *resultobj = NULL;
21088 wxDateTime *arg1 = (wxDateTime *) 0 ;
21089 int arg2 ;
21090 wxDateTime *result;
21091 PyObject * obj0 = 0 ;
21092 PyObject * obj1 = 0 ;
21093 char *kwnames[] = {
21094 (char *) "self",(char *) "year", NULL
21095 };
21096
21097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
21098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21099 if (SWIG_arg_fail(1)) SWIG_fail;
21100 {
21101 arg2 = static_cast<int >(SWIG_As_int(obj1));
21102 if (SWIG_arg_fail(2)) SWIG_fail;
21103 }
21104 {
21105 PyThreadState* __tstate = wxPyBeginAllowThreads();
21106 {
21107 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
21108 result = (wxDateTime *) &_result_ref;
21109 }
21110
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21115 return resultobj;
21116 fail:
21117 return NULL;
21118 }
21119
21120
21121 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
21122 PyObject *resultobj = NULL;
21123 wxDateTime *arg1 = (wxDateTime *) 0 ;
21124 wxDateTime::Month arg2 ;
21125 wxDateTime *result;
21126 PyObject * obj0 = 0 ;
21127 PyObject * obj1 = 0 ;
21128 char *kwnames[] = {
21129 (char *) "self",(char *) "month", NULL
21130 };
21131
21132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
21133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21134 if (SWIG_arg_fail(1)) SWIG_fail;
21135 {
21136 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21137 if (SWIG_arg_fail(2)) SWIG_fail;
21138 }
21139 {
21140 PyThreadState* __tstate = wxPyBeginAllowThreads();
21141 {
21142 wxDateTime &_result_ref = (arg1)->SetMonth(arg2);
21143 result = (wxDateTime *) &_result_ref;
21144 }
21145
21146 wxPyEndAllowThreads(__tstate);
21147 if (PyErr_Occurred()) SWIG_fail;
21148 }
21149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21150 return resultobj;
21151 fail:
21152 return NULL;
21153 }
21154
21155
21156 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
21157 PyObject *resultobj = NULL;
21158 wxDateTime *arg1 = (wxDateTime *) 0 ;
21159 int arg2 ;
21160 wxDateTime *result;
21161 PyObject * obj0 = 0 ;
21162 PyObject * obj1 = 0 ;
21163 char *kwnames[] = {
21164 (char *) "self",(char *) "day", NULL
21165 };
21166
21167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
21168 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21169 if (SWIG_arg_fail(1)) SWIG_fail;
21170 {
21171 arg2 = static_cast<int >(SWIG_As_int(obj1));
21172 if (SWIG_arg_fail(2)) SWIG_fail;
21173 }
21174 {
21175 PyThreadState* __tstate = wxPyBeginAllowThreads();
21176 {
21177 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
21178 result = (wxDateTime *) &_result_ref;
21179 }
21180
21181 wxPyEndAllowThreads(__tstate);
21182 if (PyErr_Occurred()) SWIG_fail;
21183 }
21184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21185 return resultobj;
21186 fail:
21187 return NULL;
21188 }
21189
21190
21191 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
21192 PyObject *resultobj = NULL;
21193 wxDateTime *arg1 = (wxDateTime *) 0 ;
21194 int arg2 ;
21195 wxDateTime *result;
21196 PyObject * obj0 = 0 ;
21197 PyObject * obj1 = 0 ;
21198 char *kwnames[] = {
21199 (char *) "self",(char *) "hour", NULL
21200 };
21201
21202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
21203 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21204 if (SWIG_arg_fail(1)) SWIG_fail;
21205 {
21206 arg2 = static_cast<int >(SWIG_As_int(obj1));
21207 if (SWIG_arg_fail(2)) SWIG_fail;
21208 }
21209 {
21210 PyThreadState* __tstate = wxPyBeginAllowThreads();
21211 {
21212 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
21213 result = (wxDateTime *) &_result_ref;
21214 }
21215
21216 wxPyEndAllowThreads(__tstate);
21217 if (PyErr_Occurred()) SWIG_fail;
21218 }
21219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21220 return resultobj;
21221 fail:
21222 return NULL;
21223 }
21224
21225
21226 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
21227 PyObject *resultobj = NULL;
21228 wxDateTime *arg1 = (wxDateTime *) 0 ;
21229 int arg2 ;
21230 wxDateTime *result;
21231 PyObject * obj0 = 0 ;
21232 PyObject * obj1 = 0 ;
21233 char *kwnames[] = {
21234 (char *) "self",(char *) "minute", NULL
21235 };
21236
21237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
21238 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21239 if (SWIG_arg_fail(1)) SWIG_fail;
21240 {
21241 arg2 = static_cast<int >(SWIG_As_int(obj1));
21242 if (SWIG_arg_fail(2)) SWIG_fail;
21243 }
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 {
21247 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
21248 result = (wxDateTime *) &_result_ref;
21249 }
21250
21251 wxPyEndAllowThreads(__tstate);
21252 if (PyErr_Occurred()) SWIG_fail;
21253 }
21254 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21255 return resultobj;
21256 fail:
21257 return NULL;
21258 }
21259
21260
21261 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
21262 PyObject *resultobj = NULL;
21263 wxDateTime *arg1 = (wxDateTime *) 0 ;
21264 int arg2 ;
21265 wxDateTime *result;
21266 PyObject * obj0 = 0 ;
21267 PyObject * obj1 = 0 ;
21268 char *kwnames[] = {
21269 (char *) "self",(char *) "second", NULL
21270 };
21271
21272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
21273 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21274 if (SWIG_arg_fail(1)) SWIG_fail;
21275 {
21276 arg2 = static_cast<int >(SWIG_As_int(obj1));
21277 if (SWIG_arg_fail(2)) SWIG_fail;
21278 }
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 {
21282 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
21283 result = (wxDateTime *) &_result_ref;
21284 }
21285
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
21289 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21290 return resultobj;
21291 fail:
21292 return NULL;
21293 }
21294
21295
21296 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
21297 PyObject *resultobj = NULL;
21298 wxDateTime *arg1 = (wxDateTime *) 0 ;
21299 int arg2 ;
21300 wxDateTime *result;
21301 PyObject * obj0 = 0 ;
21302 PyObject * obj1 = 0 ;
21303 char *kwnames[] = {
21304 (char *) "self",(char *) "millisecond", NULL
21305 };
21306
21307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
21308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21309 if (SWIG_arg_fail(1)) SWIG_fail;
21310 {
21311 arg2 = static_cast<int >(SWIG_As_int(obj1));
21312 if (SWIG_arg_fail(2)) SWIG_fail;
21313 }
21314 {
21315 PyThreadState* __tstate = wxPyBeginAllowThreads();
21316 {
21317 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
21318 result = (wxDateTime *) &_result_ref;
21319 }
21320
21321 wxPyEndAllowThreads(__tstate);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 }
21324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21325 return resultobj;
21326 fail:
21327 return NULL;
21328 }
21329
21330
21331 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21332 PyObject *resultobj = NULL;
21333 wxDateTime *arg1 = (wxDateTime *) 0 ;
21334 wxDateTime::WeekDay arg2 ;
21335 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21336 wxDateTime *result;
21337 PyObject * obj0 = 0 ;
21338 PyObject * obj1 = 0 ;
21339 PyObject * obj2 = 0 ;
21340 char *kwnames[] = {
21341 (char *) "self",(char *) "weekday",(char *) "flags", NULL
21342 };
21343
21344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
21345 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21346 if (SWIG_arg_fail(1)) SWIG_fail;
21347 {
21348 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21349 if (SWIG_arg_fail(2)) SWIG_fail;
21350 }
21351 if (obj2) {
21352 {
21353 arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2));
21354 if (SWIG_arg_fail(3)) SWIG_fail;
21355 }
21356 }
21357 {
21358 PyThreadState* __tstate = wxPyBeginAllowThreads();
21359 {
21360 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek(arg2,arg3);
21361 result = (wxDateTime *) &_result_ref;
21362 }
21363
21364 wxPyEndAllowThreads(__tstate);
21365 if (PyErr_Occurred()) SWIG_fail;
21366 }
21367 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21368 return resultobj;
21369 fail:
21370 return NULL;
21371 }
21372
21373
21374 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21375 PyObject *resultobj = NULL;
21376 wxDateTime *arg1 = (wxDateTime *) 0 ;
21377 wxDateTime::WeekDay arg2 ;
21378 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21379 wxDateTime result;
21380 PyObject * obj0 = 0 ;
21381 PyObject * obj1 = 0 ;
21382 PyObject * obj2 = 0 ;
21383 char *kwnames[] = {
21384 (char *) "self",(char *) "weekday",(char *) "flags", NULL
21385 };
21386
21387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
21388 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21389 if (SWIG_arg_fail(1)) SWIG_fail;
21390 {
21391 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21392 if (SWIG_arg_fail(2)) SWIG_fail;
21393 }
21394 if (obj2) {
21395 {
21396 arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2));
21397 if (SWIG_arg_fail(3)) SWIG_fail;
21398 }
21399 }
21400 {
21401 PyThreadState* __tstate = wxPyBeginAllowThreads();
21402 result = (arg1)->GetWeekDayInSameWeek(arg2,arg3);
21403
21404 wxPyEndAllowThreads(__tstate);
21405 if (PyErr_Occurred()) SWIG_fail;
21406 }
21407 {
21408 wxDateTime * resultptr;
21409 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21410 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21411 }
21412 return resultobj;
21413 fail:
21414 return NULL;
21415 }
21416
21417
21418 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21419 PyObject *resultobj = NULL;
21420 wxDateTime *arg1 = (wxDateTime *) 0 ;
21421 wxDateTime::WeekDay arg2 ;
21422 wxDateTime *result;
21423 PyObject * obj0 = 0 ;
21424 PyObject * obj1 = 0 ;
21425 char *kwnames[] = {
21426 (char *) "self",(char *) "weekday", NULL
21427 };
21428
21429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
21430 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21431 if (SWIG_arg_fail(1)) SWIG_fail;
21432 {
21433 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21434 if (SWIG_arg_fail(2)) SWIG_fail;
21435 }
21436 {
21437 PyThreadState* __tstate = wxPyBeginAllowThreads();
21438 {
21439 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay(arg2);
21440 result = (wxDateTime *) &_result_ref;
21441 }
21442
21443 wxPyEndAllowThreads(__tstate);
21444 if (PyErr_Occurred()) SWIG_fail;
21445 }
21446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21447 return resultobj;
21448 fail:
21449 return NULL;
21450 }
21451
21452
21453 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21454 PyObject *resultobj = NULL;
21455 wxDateTime *arg1 = (wxDateTime *) 0 ;
21456 wxDateTime::WeekDay arg2 ;
21457 wxDateTime result;
21458 PyObject * obj0 = 0 ;
21459 PyObject * obj1 = 0 ;
21460 char *kwnames[] = {
21461 (char *) "self",(char *) "weekday", NULL
21462 };
21463
21464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
21465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21466 if (SWIG_arg_fail(1)) SWIG_fail;
21467 {
21468 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21469 if (SWIG_arg_fail(2)) SWIG_fail;
21470 }
21471 {
21472 PyThreadState* __tstate = wxPyBeginAllowThreads();
21473 result = (arg1)->GetNextWeekDay(arg2);
21474
21475 wxPyEndAllowThreads(__tstate);
21476 if (PyErr_Occurred()) SWIG_fail;
21477 }
21478 {
21479 wxDateTime * resultptr;
21480 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21481 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21482 }
21483 return resultobj;
21484 fail:
21485 return NULL;
21486 }
21487
21488
21489 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21490 PyObject *resultobj = NULL;
21491 wxDateTime *arg1 = (wxDateTime *) 0 ;
21492 wxDateTime::WeekDay arg2 ;
21493 wxDateTime *result;
21494 PyObject * obj0 = 0 ;
21495 PyObject * obj1 = 0 ;
21496 char *kwnames[] = {
21497 (char *) "self",(char *) "weekday", NULL
21498 };
21499
21500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
21501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21502 if (SWIG_arg_fail(1)) SWIG_fail;
21503 {
21504 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21505 if (SWIG_arg_fail(2)) SWIG_fail;
21506 }
21507 {
21508 PyThreadState* __tstate = wxPyBeginAllowThreads();
21509 {
21510 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay(arg2);
21511 result = (wxDateTime *) &_result_ref;
21512 }
21513
21514 wxPyEndAllowThreads(__tstate);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21518 return resultobj;
21519 fail:
21520 return NULL;
21521 }
21522
21523
21524 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21525 PyObject *resultobj = NULL;
21526 wxDateTime *arg1 = (wxDateTime *) 0 ;
21527 wxDateTime::WeekDay arg2 ;
21528 wxDateTime result;
21529 PyObject * obj0 = 0 ;
21530 PyObject * obj1 = 0 ;
21531 char *kwnames[] = {
21532 (char *) "self",(char *) "weekday", NULL
21533 };
21534
21535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
21536 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21537 if (SWIG_arg_fail(1)) SWIG_fail;
21538 {
21539 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21540 if (SWIG_arg_fail(2)) SWIG_fail;
21541 }
21542 {
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 result = (arg1)->GetPrevWeekDay(arg2);
21545
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 {
21550 wxDateTime * resultptr;
21551 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21553 }
21554 return resultobj;
21555 fail:
21556 return NULL;
21557 }
21558
21559
21560 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21561 PyObject *resultobj = NULL;
21562 wxDateTime *arg1 = (wxDateTime *) 0 ;
21563 wxDateTime::WeekDay arg2 ;
21564 int arg3 = (int) 1 ;
21565 wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21566 int arg5 = (int) wxDateTime::Inv_Year ;
21567 bool result;
21568 PyObject * obj0 = 0 ;
21569 PyObject * obj1 = 0 ;
21570 PyObject * obj2 = 0 ;
21571 PyObject * obj3 = 0 ;
21572 PyObject * obj4 = 0 ;
21573 char *kwnames[] = {
21574 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
21575 };
21576
21577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21578 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21579 if (SWIG_arg_fail(1)) SWIG_fail;
21580 {
21581 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21582 if (SWIG_arg_fail(2)) SWIG_fail;
21583 }
21584 if (obj2) {
21585 {
21586 arg3 = static_cast<int >(SWIG_As_int(obj2));
21587 if (SWIG_arg_fail(3)) SWIG_fail;
21588 }
21589 }
21590 if (obj3) {
21591 {
21592 arg4 = static_cast<wxDateTime::Month >(SWIG_As_int(obj3));
21593 if (SWIG_arg_fail(4)) SWIG_fail;
21594 }
21595 }
21596 if (obj4) {
21597 {
21598 arg5 = static_cast<int >(SWIG_As_int(obj4));
21599 if (SWIG_arg_fail(5)) SWIG_fail;
21600 }
21601 }
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 result = (bool)(arg1)->SetToWeekDay(arg2,arg3,arg4,arg5);
21605
21606 wxPyEndAllowThreads(__tstate);
21607 if (PyErr_Occurred()) SWIG_fail;
21608 }
21609 {
21610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21611 }
21612 return resultobj;
21613 fail:
21614 return NULL;
21615 }
21616
21617
21618 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj = NULL;
21620 wxDateTime *arg1 = (wxDateTime *) 0 ;
21621 wxDateTime::WeekDay arg2 ;
21622 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21623 int arg4 = (int) wxDateTime::Inv_Year ;
21624 bool result;
21625 PyObject * obj0 = 0 ;
21626 PyObject * obj1 = 0 ;
21627 PyObject * obj2 = 0 ;
21628 PyObject * obj3 = 0 ;
21629 char *kwnames[] = {
21630 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
21631 };
21632
21633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21635 if (SWIG_arg_fail(1)) SWIG_fail;
21636 {
21637 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21638 if (SWIG_arg_fail(2)) SWIG_fail;
21639 }
21640 if (obj2) {
21641 {
21642 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21643 if (SWIG_arg_fail(3)) SWIG_fail;
21644 }
21645 }
21646 if (obj3) {
21647 {
21648 arg4 = static_cast<int >(SWIG_As_int(obj3));
21649 if (SWIG_arg_fail(4)) SWIG_fail;
21650 }
21651 }
21652 {
21653 PyThreadState* __tstate = wxPyBeginAllowThreads();
21654 result = (bool)(arg1)->SetToLastWeekDay(arg2,arg3,arg4);
21655
21656 wxPyEndAllowThreads(__tstate);
21657 if (PyErr_Occurred()) SWIG_fail;
21658 }
21659 {
21660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21661 }
21662 return resultobj;
21663 fail:
21664 return NULL;
21665 }
21666
21667
21668 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21669 PyObject *resultobj = NULL;
21670 wxDateTime *arg1 = (wxDateTime *) 0 ;
21671 wxDateTime::WeekDay arg2 ;
21672 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21673 int arg4 = (int) wxDateTime::Inv_Year ;
21674 wxDateTime result;
21675 PyObject * obj0 = 0 ;
21676 PyObject * obj1 = 0 ;
21677 PyObject * obj2 = 0 ;
21678 PyObject * obj3 = 0 ;
21679 char *kwnames[] = {
21680 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
21681 };
21682
21683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21685 if (SWIG_arg_fail(1)) SWIG_fail;
21686 {
21687 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21688 if (SWIG_arg_fail(2)) SWIG_fail;
21689 }
21690 if (obj2) {
21691 {
21692 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21693 if (SWIG_arg_fail(3)) SWIG_fail;
21694 }
21695 }
21696 if (obj3) {
21697 {
21698 arg4 = static_cast<int >(SWIG_As_int(obj3));
21699 if (SWIG_arg_fail(4)) SWIG_fail;
21700 }
21701 }
21702 {
21703 PyThreadState* __tstate = wxPyBeginAllowThreads();
21704 result = (arg1)->GetLastWeekDay(arg2,arg3,arg4);
21705
21706 wxPyEndAllowThreads(__tstate);
21707 if (PyErr_Occurred()) SWIG_fail;
21708 }
21709 {
21710 wxDateTime * resultptr;
21711 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21713 }
21714 return resultobj;
21715 fail:
21716 return NULL;
21717 }
21718
21719
21720 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21721 PyObject *resultobj = NULL;
21722 wxDateTime *arg1 = (wxDateTime *) 0 ;
21723 int arg2 ;
21724 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21725 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21726 bool result;
21727 PyObject * obj0 = 0 ;
21728 PyObject * obj1 = 0 ;
21729 PyObject * obj2 = 0 ;
21730 PyObject * obj3 = 0 ;
21731 char *kwnames[] = {
21732 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
21733 };
21734
21735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21737 if (SWIG_arg_fail(1)) SWIG_fail;
21738 {
21739 arg2 = static_cast<int >(SWIG_As_int(obj1));
21740 if (SWIG_arg_fail(2)) SWIG_fail;
21741 }
21742 if (obj2) {
21743 {
21744 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21745 if (SWIG_arg_fail(3)) SWIG_fail;
21746 }
21747 }
21748 if (obj3) {
21749 {
21750 arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3));
21751 if (SWIG_arg_fail(4)) SWIG_fail;
21752 }
21753 }
21754 {
21755 PyThreadState* __tstate = wxPyBeginAllowThreads();
21756 result = (bool)(arg1)->SetToTheWeek(arg2,arg3,arg4);
21757
21758 wxPyEndAllowThreads(__tstate);
21759 if (PyErr_Occurred()) SWIG_fail;
21760 }
21761 {
21762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21763 }
21764 return resultobj;
21765 fail:
21766 return NULL;
21767 }
21768
21769
21770 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21771 PyObject *resultobj = NULL;
21772 wxDateTime *arg1 = (wxDateTime *) 0 ;
21773 int arg2 ;
21774 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21775 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21776 wxDateTime result;
21777 PyObject * obj0 = 0 ;
21778 PyObject * obj1 = 0 ;
21779 PyObject * obj2 = 0 ;
21780 PyObject * obj3 = 0 ;
21781 char *kwnames[] = {
21782 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
21783 };
21784
21785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21786 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21787 if (SWIG_arg_fail(1)) SWIG_fail;
21788 {
21789 arg2 = static_cast<int >(SWIG_As_int(obj1));
21790 if (SWIG_arg_fail(2)) SWIG_fail;
21791 }
21792 if (obj2) {
21793 {
21794 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21795 if (SWIG_arg_fail(3)) SWIG_fail;
21796 }
21797 }
21798 if (obj3) {
21799 {
21800 arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3));
21801 if (SWIG_arg_fail(4)) SWIG_fail;
21802 }
21803 }
21804 {
21805 PyThreadState* __tstate = wxPyBeginAllowThreads();
21806 result = (arg1)->GetWeek(arg2,arg3,arg4);
21807
21808 wxPyEndAllowThreads(__tstate);
21809 if (PyErr_Occurred()) SWIG_fail;
21810 }
21811 {
21812 wxDateTime * resultptr;
21813 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21814 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21815 }
21816 return resultobj;
21817 fail:
21818 return NULL;
21819 }
21820
21821
21822 static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
21823 PyObject *resultobj = NULL;
21824 int arg1 ;
21825 int arg2 ;
21826 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21827 wxDateTime result;
21828 PyObject * obj0 = 0 ;
21829 PyObject * obj1 = 0 ;
21830 PyObject * obj2 = 0 ;
21831 char *kwnames[] = {
21832 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
21833 };
21834
21835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
21836 {
21837 arg1 = static_cast<int >(SWIG_As_int(obj0));
21838 if (SWIG_arg_fail(1)) SWIG_fail;
21839 }
21840 {
21841 arg2 = static_cast<int >(SWIG_As_int(obj1));
21842 if (SWIG_arg_fail(2)) SWIG_fail;
21843 }
21844 if (obj2) {
21845 {
21846 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21847 if (SWIG_arg_fail(3)) SWIG_fail;
21848 }
21849 }
21850 {
21851 PyThreadState* __tstate = wxPyBeginAllowThreads();
21852 result = wxDateTime::SetToWeekOfYear(arg1,arg2,arg3);
21853
21854 wxPyEndAllowThreads(__tstate);
21855 if (PyErr_Occurred()) SWIG_fail;
21856 }
21857 {
21858 wxDateTime * resultptr;
21859 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21860 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21861 }
21862 return resultobj;
21863 fail:
21864 return NULL;
21865 }
21866
21867
21868 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
21869 PyObject *resultobj = NULL;
21870 wxDateTime *arg1 = (wxDateTime *) 0 ;
21871 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21872 int arg3 = (int) wxDateTime::Inv_Year ;
21873 wxDateTime *result;
21874 PyObject * obj0 = 0 ;
21875 PyObject * obj1 = 0 ;
21876 PyObject * obj2 = 0 ;
21877 char *kwnames[] = {
21878 (char *) "self",(char *) "month",(char *) "year", NULL
21879 };
21880
21881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
21882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21883 if (SWIG_arg_fail(1)) SWIG_fail;
21884 if (obj1) {
21885 {
21886 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21887 if (SWIG_arg_fail(2)) SWIG_fail;
21888 }
21889 }
21890 if (obj2) {
21891 {
21892 arg3 = static_cast<int >(SWIG_As_int(obj2));
21893 if (SWIG_arg_fail(3)) SWIG_fail;
21894 }
21895 }
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
21898 {
21899 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay(arg2,arg3);
21900 result = (wxDateTime *) &_result_ref;
21901 }
21902
21903 wxPyEndAllowThreads(__tstate);
21904 if (PyErr_Occurred()) SWIG_fail;
21905 }
21906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21907 return resultobj;
21908 fail:
21909 return NULL;
21910 }
21911
21912
21913 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
21914 PyObject *resultobj = NULL;
21915 wxDateTime *arg1 = (wxDateTime *) 0 ;
21916 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21917 int arg3 = (int) wxDateTime::Inv_Year ;
21918 wxDateTime result;
21919 PyObject * obj0 = 0 ;
21920 PyObject * obj1 = 0 ;
21921 PyObject * obj2 = 0 ;
21922 char *kwnames[] = {
21923 (char *) "self",(char *) "month",(char *) "year", NULL
21924 };
21925
21926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
21927 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21928 if (SWIG_arg_fail(1)) SWIG_fail;
21929 if (obj1) {
21930 {
21931 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21932 if (SWIG_arg_fail(2)) SWIG_fail;
21933 }
21934 }
21935 if (obj2) {
21936 {
21937 arg3 = static_cast<int >(SWIG_As_int(obj2));
21938 if (SWIG_arg_fail(3)) SWIG_fail;
21939 }
21940 }
21941 {
21942 PyThreadState* __tstate = wxPyBeginAllowThreads();
21943 result = (arg1)->GetLastMonthDay(arg2,arg3);
21944
21945 wxPyEndAllowThreads(__tstate);
21946 if (PyErr_Occurred()) SWIG_fail;
21947 }
21948 {
21949 wxDateTime * resultptr;
21950 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21951 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21952 }
21953 return resultobj;
21954 fail:
21955 return NULL;
21956 }
21957
21958
21959 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
21960 PyObject *resultobj = NULL;
21961 wxDateTime *arg1 = (wxDateTime *) 0 ;
21962 int arg2 ;
21963 wxDateTime *result;
21964 PyObject * obj0 = 0 ;
21965 PyObject * obj1 = 0 ;
21966 char *kwnames[] = {
21967 (char *) "self",(char *) "yday", NULL
21968 };
21969
21970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
21971 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21972 if (SWIG_arg_fail(1)) SWIG_fail;
21973 {
21974 arg2 = static_cast<int >(SWIG_As_int(obj1));
21975 if (SWIG_arg_fail(2)) SWIG_fail;
21976 }
21977 {
21978 PyThreadState* __tstate = wxPyBeginAllowThreads();
21979 {
21980 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
21981 result = (wxDateTime *) &_result_ref;
21982 }
21983
21984 wxPyEndAllowThreads(__tstate);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 }
21987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21988 return resultobj;
21989 fail:
21990 return NULL;
21991 }
21992
21993
21994 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
21995 PyObject *resultobj = NULL;
21996 wxDateTime *arg1 = (wxDateTime *) 0 ;
21997 int arg2 ;
21998 wxDateTime result;
21999 PyObject * obj0 = 0 ;
22000 PyObject * obj1 = 0 ;
22001 char *kwnames[] = {
22002 (char *) "self",(char *) "yday", NULL
22003 };
22004
22005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
22006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22007 if (SWIG_arg_fail(1)) SWIG_fail;
22008 {
22009 arg2 = static_cast<int >(SWIG_As_int(obj1));
22010 if (SWIG_arg_fail(2)) SWIG_fail;
22011 }
22012 {
22013 PyThreadState* __tstate = wxPyBeginAllowThreads();
22014 result = (arg1)->GetYearDay(arg2);
22015
22016 wxPyEndAllowThreads(__tstate);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 }
22019 {
22020 wxDateTime * resultptr;
22021 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22022 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22023 }
22024 return resultobj;
22025 fail:
22026 return NULL;
22027 }
22028
22029
22030 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
22031 PyObject *resultobj = NULL;
22032 wxDateTime *arg1 = (wxDateTime *) 0 ;
22033 double result;
22034 PyObject * obj0 = 0 ;
22035 char *kwnames[] = {
22036 (char *) "self", NULL
22037 };
22038
22039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
22040 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22041 if (SWIG_arg_fail(1)) SWIG_fail;
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 result = (double)(arg1)->GetJulianDayNumber();
22045
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 {
22050 resultobj = SWIG_From_double(static_cast<double >(result));
22051 }
22052 return resultobj;
22053 fail:
22054 return NULL;
22055 }
22056
22057
22058 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
22059 PyObject *resultobj = NULL;
22060 wxDateTime *arg1 = (wxDateTime *) 0 ;
22061 double result;
22062 PyObject * obj0 = 0 ;
22063 char *kwnames[] = {
22064 (char *) "self", NULL
22065 };
22066
22067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
22068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22069 if (SWIG_arg_fail(1)) SWIG_fail;
22070 {
22071 PyThreadState* __tstate = wxPyBeginAllowThreads();
22072 result = (double)(arg1)->GetJDN();
22073
22074 wxPyEndAllowThreads(__tstate);
22075 if (PyErr_Occurred()) SWIG_fail;
22076 }
22077 {
22078 resultobj = SWIG_From_double(static_cast<double >(result));
22079 }
22080 return resultobj;
22081 fail:
22082 return NULL;
22083 }
22084
22085
22086 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
22087 PyObject *resultobj = NULL;
22088 wxDateTime *arg1 = (wxDateTime *) 0 ;
22089 double result;
22090 PyObject * obj0 = 0 ;
22091 char *kwnames[] = {
22092 (char *) "self", NULL
22093 };
22094
22095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
22096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22097 if (SWIG_arg_fail(1)) SWIG_fail;
22098 {
22099 PyThreadState* __tstate = wxPyBeginAllowThreads();
22100 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
22101
22102 wxPyEndAllowThreads(__tstate);
22103 if (PyErr_Occurred()) SWIG_fail;
22104 }
22105 {
22106 resultobj = SWIG_From_double(static_cast<double >(result));
22107 }
22108 return resultobj;
22109 fail:
22110 return NULL;
22111 }
22112
22113
22114 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
22115 PyObject *resultobj = NULL;
22116 wxDateTime *arg1 = (wxDateTime *) 0 ;
22117 double result;
22118 PyObject * obj0 = 0 ;
22119 char *kwnames[] = {
22120 (char *) "self", NULL
22121 };
22122
22123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
22124 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22125 if (SWIG_arg_fail(1)) SWIG_fail;
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 result = (double)(arg1)->GetMJD();
22129
22130 wxPyEndAllowThreads(__tstate);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 }
22133 {
22134 resultobj = SWIG_From_double(static_cast<double >(result));
22135 }
22136 return resultobj;
22137 fail:
22138 return NULL;
22139 }
22140
22141
22142 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj = NULL;
22144 wxDateTime *arg1 = (wxDateTime *) 0 ;
22145 double result;
22146 PyObject * obj0 = 0 ;
22147 char *kwnames[] = {
22148 (char *) "self", NULL
22149 };
22150
22151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
22152 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22153 if (SWIG_arg_fail(1)) SWIG_fail;
22154 {
22155 PyThreadState* __tstate = wxPyBeginAllowThreads();
22156 result = (double)(arg1)->GetRataDie();
22157
22158 wxPyEndAllowThreads(__tstate);
22159 if (PyErr_Occurred()) SWIG_fail;
22160 }
22161 {
22162 resultobj = SWIG_From_double(static_cast<double >(result));
22163 }
22164 return resultobj;
22165 fail:
22166 return NULL;
22167 }
22168
22169
22170 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj = NULL;
22172 wxDateTime *arg1 = (wxDateTime *) 0 ;
22173 wxDateTime::TimeZone *arg2 = 0 ;
22174 bool arg3 = (bool) false ;
22175 wxDateTime result;
22176 bool temp2 = false ;
22177 PyObject * obj0 = 0 ;
22178 PyObject * obj1 = 0 ;
22179 PyObject * obj2 = 0 ;
22180 char *kwnames[] = {
22181 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22182 };
22183
22184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22186 if (SWIG_arg_fail(1)) SWIG_fail;
22187 {
22188 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22189 temp2 = true;
22190 }
22191 if (obj2) {
22192 {
22193 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22194 if (SWIG_arg_fail(3)) SWIG_fail;
22195 }
22196 }
22197 {
22198 PyThreadState* __tstate = wxPyBeginAllowThreads();
22199 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22200
22201 wxPyEndAllowThreads(__tstate);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 }
22204 {
22205 wxDateTime * resultptr;
22206 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22207 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22208 }
22209 {
22210 if (temp2) delete arg2;
22211 }
22212 return resultobj;
22213 fail:
22214 {
22215 if (temp2) delete arg2;
22216 }
22217 return NULL;
22218 }
22219
22220
22221 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22222 PyObject *resultobj = NULL;
22223 wxDateTime *arg1 = (wxDateTime *) 0 ;
22224 wxDateTime::TimeZone *arg2 = 0 ;
22225 bool arg3 = (bool) false ;
22226 wxDateTime *result;
22227 bool temp2 = false ;
22228 PyObject * obj0 = 0 ;
22229 PyObject * obj1 = 0 ;
22230 PyObject * obj2 = 0 ;
22231 char *kwnames[] = {
22232 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22233 };
22234
22235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22236 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22237 if (SWIG_arg_fail(1)) SWIG_fail;
22238 {
22239 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22240 temp2 = true;
22241 }
22242 if (obj2) {
22243 {
22244 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22245 if (SWIG_arg_fail(3)) SWIG_fail;
22246 }
22247 }
22248 {
22249 PyThreadState* __tstate = wxPyBeginAllowThreads();
22250 {
22251 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22252 result = (wxDateTime *) &_result_ref;
22253 }
22254
22255 wxPyEndAllowThreads(__tstate);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22259 {
22260 if (temp2) delete arg2;
22261 }
22262 return resultobj;
22263 fail:
22264 {
22265 if (temp2) delete arg2;
22266 }
22267 return NULL;
22268 }
22269
22270
22271 static PyObject *_wrap_DateTime_FromTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22272 PyObject *resultobj = NULL;
22273 wxDateTime *arg1 = (wxDateTime *) 0 ;
22274 wxDateTime::TimeZone *arg2 = 0 ;
22275 bool arg3 = (bool) false ;
22276 wxDateTime result;
22277 bool temp2 = false ;
22278 PyObject * obj0 = 0 ;
22279 PyObject * obj1 = 0 ;
22280 PyObject * obj2 = 0 ;
22281 char *kwnames[] = {
22282 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22283 };
22284
22285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_FromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22286 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22287 if (SWIG_arg_fail(1)) SWIG_fail;
22288 {
22289 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22290 temp2 = true;
22291 }
22292 if (obj2) {
22293 {
22294 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22295 if (SWIG_arg_fail(3)) SWIG_fail;
22296 }
22297 }
22298 {
22299 PyThreadState* __tstate = wxPyBeginAllowThreads();
22300 result = ((wxDateTime const *)arg1)->FromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22301
22302 wxPyEndAllowThreads(__tstate);
22303 if (PyErr_Occurred()) SWIG_fail;
22304 }
22305 {
22306 wxDateTime * resultptr;
22307 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22308 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22309 }
22310 {
22311 if (temp2) delete arg2;
22312 }
22313 return resultobj;
22314 fail:
22315 {
22316 if (temp2) delete arg2;
22317 }
22318 return NULL;
22319 }
22320
22321
22322 static PyObject *_wrap_DateTime_MakeFromTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22323 PyObject *resultobj = NULL;
22324 wxDateTime *arg1 = (wxDateTime *) 0 ;
22325 wxDateTime::TimeZone *arg2 = 0 ;
22326 bool arg3 = (bool) false ;
22327 wxDateTime *result;
22328 bool temp2 = false ;
22329 PyObject * obj0 = 0 ;
22330 PyObject * obj1 = 0 ;
22331 PyObject * obj2 = 0 ;
22332 char *kwnames[] = {
22333 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22334 };
22335
22336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeFromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22337 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22338 if (SWIG_arg_fail(1)) SWIG_fail;
22339 {
22340 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22341 temp2 = true;
22342 }
22343 if (obj2) {
22344 {
22345 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22346 if (SWIG_arg_fail(3)) SWIG_fail;
22347 }
22348 }
22349 {
22350 PyThreadState* __tstate = wxPyBeginAllowThreads();
22351 {
22352 wxDateTime &_result_ref = (arg1)->MakeFromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22353 result = (wxDateTime *) &_result_ref;
22354 }
22355
22356 wxPyEndAllowThreads(__tstate);
22357 if (PyErr_Occurred()) SWIG_fail;
22358 }
22359 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22360 {
22361 if (temp2) delete arg2;
22362 }
22363 return resultobj;
22364 fail:
22365 {
22366 if (temp2) delete arg2;
22367 }
22368 return NULL;
22369 }
22370
22371
22372 static PyObject *_wrap_DateTime_ToUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22373 PyObject *resultobj = NULL;
22374 wxDateTime *arg1 = (wxDateTime *) 0 ;
22375 bool arg2 = (bool) false ;
22376 wxDateTime result;
22377 PyObject * obj0 = 0 ;
22378 PyObject * obj1 = 0 ;
22379 char *kwnames[] = {
22380 (char *) "self",(char *) "noDST", NULL
22381 };
22382
22383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToUTC",kwnames,&obj0,&obj1)) goto fail;
22384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22385 if (SWIG_arg_fail(1)) SWIG_fail;
22386 if (obj1) {
22387 {
22388 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22389 if (SWIG_arg_fail(2)) SWIG_fail;
22390 }
22391 }
22392 {
22393 PyThreadState* __tstate = wxPyBeginAllowThreads();
22394 result = ((wxDateTime const *)arg1)->ToUTC(arg2);
22395
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 {
22400 wxDateTime * resultptr;
22401 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22402 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22403 }
22404 return resultobj;
22405 fail:
22406 return NULL;
22407 }
22408
22409
22410 static PyObject *_wrap_DateTime_MakeUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22411 PyObject *resultobj = NULL;
22412 wxDateTime *arg1 = (wxDateTime *) 0 ;
22413 bool arg2 = (bool) false ;
22414 wxDateTime *result;
22415 PyObject * obj0 = 0 ;
22416 PyObject * obj1 = 0 ;
22417 char *kwnames[] = {
22418 (char *) "self",(char *) "noDST", NULL
22419 };
22420
22421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeUTC",kwnames,&obj0,&obj1)) goto fail;
22422 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22423 if (SWIG_arg_fail(1)) SWIG_fail;
22424 if (obj1) {
22425 {
22426 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22427 if (SWIG_arg_fail(2)) SWIG_fail;
22428 }
22429 }
22430 {
22431 PyThreadState* __tstate = wxPyBeginAllowThreads();
22432 {
22433 wxDateTime &_result_ref = (arg1)->MakeUTC(arg2);
22434 result = (wxDateTime *) &_result_ref;
22435 }
22436
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22441 return resultobj;
22442 fail:
22443 return NULL;
22444 }
22445
22446
22447 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
22448 PyObject *resultobj = NULL;
22449 wxDateTime *arg1 = (wxDateTime *) 0 ;
22450 bool arg2 = (bool) false ;
22451 wxDateTime result;
22452 PyObject * obj0 = 0 ;
22453 PyObject * obj1 = 0 ;
22454 char *kwnames[] = {
22455 (char *) "self",(char *) "noDST", NULL
22456 };
22457
22458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
22459 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22460 if (SWIG_arg_fail(1)) SWIG_fail;
22461 if (obj1) {
22462 {
22463 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22464 if (SWIG_arg_fail(2)) SWIG_fail;
22465 }
22466 }
22467 {
22468 PyThreadState* __tstate = wxPyBeginAllowThreads();
22469 result = ((wxDateTime const *)arg1)->ToGMT(arg2);
22470
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 {
22475 wxDateTime * resultptr;
22476 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22478 }
22479 return resultobj;
22480 fail:
22481 return NULL;
22482 }
22483
22484
22485 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
22486 PyObject *resultobj = NULL;
22487 wxDateTime *arg1 = (wxDateTime *) 0 ;
22488 bool arg2 = (bool) false ;
22489 wxDateTime *result;
22490 PyObject * obj0 = 0 ;
22491 PyObject * obj1 = 0 ;
22492 char *kwnames[] = {
22493 (char *) "self",(char *) "noDST", NULL
22494 };
22495
22496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
22497 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22498 if (SWIG_arg_fail(1)) SWIG_fail;
22499 if (obj1) {
22500 {
22501 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22502 if (SWIG_arg_fail(2)) SWIG_fail;
22503 }
22504 }
22505 {
22506 PyThreadState* __tstate = wxPyBeginAllowThreads();
22507 {
22508 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
22509 result = (wxDateTime *) &_result_ref;
22510 }
22511
22512 wxPyEndAllowThreads(__tstate);
22513 if (PyErr_Occurred()) SWIG_fail;
22514 }
22515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22516 return resultobj;
22517 fail:
22518 return NULL;
22519 }
22520
22521
22522 static PyObject *_wrap_DateTime_FromUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22523 PyObject *resultobj = NULL;
22524 wxDateTime *arg1 = (wxDateTime *) 0 ;
22525 bool arg2 = (bool) false ;
22526 wxDateTime result;
22527 PyObject * obj0 = 0 ;
22528 PyObject * obj1 = 0 ;
22529 char *kwnames[] = {
22530 (char *) "self",(char *) "noDST", NULL
22531 };
22532
22533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_FromUTC",kwnames,&obj0,&obj1)) goto fail;
22534 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22535 if (SWIG_arg_fail(1)) SWIG_fail;
22536 if (obj1) {
22537 {
22538 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22539 if (SWIG_arg_fail(2)) SWIG_fail;
22540 }
22541 }
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 result = ((wxDateTime const *)arg1)->FromUTC(arg2);
22545
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 {
22550 wxDateTime * resultptr;
22551 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22553 }
22554 return resultobj;
22555 fail:
22556 return NULL;
22557 }
22558
22559
22560 static PyObject *_wrap_DateTime_MakeFromUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22561 PyObject *resultobj = NULL;
22562 wxDateTime *arg1 = (wxDateTime *) 0 ;
22563 bool arg2 = (bool) false ;
22564 wxDateTime *result;
22565 PyObject * obj0 = 0 ;
22566 PyObject * obj1 = 0 ;
22567 char *kwnames[] = {
22568 (char *) "self",(char *) "noDST", NULL
22569 };
22570
22571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeFromUTC",kwnames,&obj0,&obj1)) goto fail;
22572 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22573 if (SWIG_arg_fail(1)) SWIG_fail;
22574 if (obj1) {
22575 {
22576 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22577 if (SWIG_arg_fail(2)) SWIG_fail;
22578 }
22579 }
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 {
22583 wxDateTime &_result_ref = (arg1)->MakeFromUTC(arg2);
22584 result = (wxDateTime *) &_result_ref;
22585 }
22586
22587 wxPyEndAllowThreads(__tstate);
22588 if (PyErr_Occurred()) SWIG_fail;
22589 }
22590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22591 return resultobj;
22592 fail:
22593 return NULL;
22594 }
22595
22596
22597 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
22598 PyObject *resultobj = NULL;
22599 wxDateTime *arg1 = (wxDateTime *) 0 ;
22600 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
22601 int result;
22602 PyObject * obj0 = 0 ;
22603 PyObject * obj1 = 0 ;
22604 char *kwnames[] = {
22605 (char *) "self",(char *) "country", NULL
22606 };
22607
22608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
22609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22610 if (SWIG_arg_fail(1)) SWIG_fail;
22611 if (obj1) {
22612 {
22613 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
22614 if (SWIG_arg_fail(2)) SWIG_fail;
22615 }
22616 }
22617 {
22618 PyThreadState* __tstate = wxPyBeginAllowThreads();
22619 result = (int)(arg1)->IsDST(arg2);
22620
22621 wxPyEndAllowThreads(__tstate);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 {
22625 resultobj = SWIG_From_int(static_cast<int >(result));
22626 }
22627 return resultobj;
22628 fail:
22629 return NULL;
22630 }
22631
22632
22633 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
22634 PyObject *resultobj = NULL;
22635 wxDateTime *arg1 = (wxDateTime *) 0 ;
22636 bool result;
22637 PyObject * obj0 = 0 ;
22638 char *kwnames[] = {
22639 (char *) "self", NULL
22640 };
22641
22642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
22643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22644 if (SWIG_arg_fail(1)) SWIG_fail;
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 result = (bool)((wxDateTime const *)arg1)->IsValid();
22648
22649 wxPyEndAllowThreads(__tstate);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 }
22652 {
22653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22654 }
22655 return resultobj;
22656 fail:
22657 return NULL;
22658 }
22659
22660
22661 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
22662 PyObject *resultobj = NULL;
22663 wxDateTime *arg1 = (wxDateTime *) 0 ;
22664 time_t result;
22665 PyObject * obj0 = 0 ;
22666 char *kwnames[] = {
22667 (char *) "self", NULL
22668 };
22669
22670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
22671 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22672 if (SWIG_arg_fail(1)) SWIG_fail;
22673 {
22674 PyThreadState* __tstate = wxPyBeginAllowThreads();
22675 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
22676
22677 wxPyEndAllowThreads(__tstate);
22678 if (PyErr_Occurred()) SWIG_fail;
22679 }
22680 {
22681 resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result));
22682 }
22683 return resultobj;
22684 fail:
22685 return NULL;
22686 }
22687
22688
22689 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
22690 PyObject *resultobj = NULL;
22691 wxDateTime *arg1 = (wxDateTime *) 0 ;
22692 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22693 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22694 int result;
22695 bool temp2 = false ;
22696 PyObject * obj0 = 0 ;
22697 PyObject * obj1 = 0 ;
22698 char *kwnames[] = {
22699 (char *) "self",(char *) "tz", NULL
22700 };
22701
22702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
22703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22704 if (SWIG_arg_fail(1)) SWIG_fail;
22705 if (obj1) {
22706 {
22707 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22708 temp2 = true;
22709 }
22710 }
22711 {
22712 PyThreadState* __tstate = wxPyBeginAllowThreads();
22713 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
22714
22715 wxPyEndAllowThreads(__tstate);
22716 if (PyErr_Occurred()) SWIG_fail;
22717 }
22718 {
22719 resultobj = SWIG_From_int(static_cast<int >(result));
22720 }
22721 {
22722 if (temp2) delete arg2;
22723 }
22724 return resultobj;
22725 fail:
22726 {
22727 if (temp2) delete arg2;
22728 }
22729 return NULL;
22730 }
22731
22732
22733 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
22734 PyObject *resultobj = NULL;
22735 wxDateTime *arg1 = (wxDateTime *) 0 ;
22736 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22737 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22738 wxDateTime::Month result;
22739 bool temp2 = false ;
22740 PyObject * obj0 = 0 ;
22741 PyObject * obj1 = 0 ;
22742 char *kwnames[] = {
22743 (char *) "self",(char *) "tz", NULL
22744 };
22745
22746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
22747 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22748 if (SWIG_arg_fail(1)) SWIG_fail;
22749 if (obj1) {
22750 {
22751 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22752 temp2 = true;
22753 }
22754 }
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
22758
22759 wxPyEndAllowThreads(__tstate);
22760 if (PyErr_Occurred()) SWIG_fail;
22761 }
22762 resultobj = SWIG_From_int((result));
22763 {
22764 if (temp2) delete arg2;
22765 }
22766 return resultobj;
22767 fail:
22768 {
22769 if (temp2) delete arg2;
22770 }
22771 return NULL;
22772 }
22773
22774
22775 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
22776 PyObject *resultobj = NULL;
22777 wxDateTime *arg1 = (wxDateTime *) 0 ;
22778 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22779 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22780 int result;
22781 bool temp2 = false ;
22782 PyObject * obj0 = 0 ;
22783 PyObject * obj1 = 0 ;
22784 char *kwnames[] = {
22785 (char *) "self",(char *) "tz", NULL
22786 };
22787
22788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
22789 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22790 if (SWIG_arg_fail(1)) SWIG_fail;
22791 if (obj1) {
22792 {
22793 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22794 temp2 = true;
22795 }
22796 }
22797 {
22798 PyThreadState* __tstate = wxPyBeginAllowThreads();
22799 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
22800
22801 wxPyEndAllowThreads(__tstate);
22802 if (PyErr_Occurred()) SWIG_fail;
22803 }
22804 {
22805 resultobj = SWIG_From_int(static_cast<int >(result));
22806 }
22807 {
22808 if (temp2) delete arg2;
22809 }
22810 return resultobj;
22811 fail:
22812 {
22813 if (temp2) delete arg2;
22814 }
22815 return NULL;
22816 }
22817
22818
22819 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
22820 PyObject *resultobj = NULL;
22821 wxDateTime *arg1 = (wxDateTime *) 0 ;
22822 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22823 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22824 wxDateTime::WeekDay result;
22825 bool temp2 = false ;
22826 PyObject * obj0 = 0 ;
22827 PyObject * obj1 = 0 ;
22828 char *kwnames[] = {
22829 (char *) "self",(char *) "tz", NULL
22830 };
22831
22832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
22833 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22834 if (SWIG_arg_fail(1)) SWIG_fail;
22835 if (obj1) {
22836 {
22837 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22838 temp2 = true;
22839 }
22840 }
22841 {
22842 PyThreadState* __tstate = wxPyBeginAllowThreads();
22843 result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
22844
22845 wxPyEndAllowThreads(__tstate);
22846 if (PyErr_Occurred()) SWIG_fail;
22847 }
22848 resultobj = SWIG_From_int((result));
22849 {
22850 if (temp2) delete arg2;
22851 }
22852 return resultobj;
22853 fail:
22854 {
22855 if (temp2) delete arg2;
22856 }
22857 return NULL;
22858 }
22859
22860
22861 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
22862 PyObject *resultobj = NULL;
22863 wxDateTime *arg1 = (wxDateTime *) 0 ;
22864 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22865 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22866 int result;
22867 bool temp2 = false ;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 char *kwnames[] = {
22871 (char *) "self",(char *) "tz", NULL
22872 };
22873
22874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
22875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22876 if (SWIG_arg_fail(1)) SWIG_fail;
22877 if (obj1) {
22878 {
22879 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22880 temp2 = true;
22881 }
22882 }
22883 {
22884 PyThreadState* __tstate = wxPyBeginAllowThreads();
22885 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
22886
22887 wxPyEndAllowThreads(__tstate);
22888 if (PyErr_Occurred()) SWIG_fail;
22889 }
22890 {
22891 resultobj = SWIG_From_int(static_cast<int >(result));
22892 }
22893 {
22894 if (temp2) delete arg2;
22895 }
22896 return resultobj;
22897 fail:
22898 {
22899 if (temp2) delete arg2;
22900 }
22901 return NULL;
22902 }
22903
22904
22905 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
22906 PyObject *resultobj = NULL;
22907 wxDateTime *arg1 = (wxDateTime *) 0 ;
22908 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22909 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22910 int result;
22911 bool temp2 = false ;
22912 PyObject * obj0 = 0 ;
22913 PyObject * obj1 = 0 ;
22914 char *kwnames[] = {
22915 (char *) "self",(char *) "tz", NULL
22916 };
22917
22918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
22919 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22920 if (SWIG_arg_fail(1)) SWIG_fail;
22921 if (obj1) {
22922 {
22923 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22924 temp2 = true;
22925 }
22926 }
22927 {
22928 PyThreadState* __tstate = wxPyBeginAllowThreads();
22929 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
22930
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 {
22935 resultobj = SWIG_From_int(static_cast<int >(result));
22936 }
22937 {
22938 if (temp2) delete arg2;
22939 }
22940 return resultobj;
22941 fail:
22942 {
22943 if (temp2) delete arg2;
22944 }
22945 return NULL;
22946 }
22947
22948
22949 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj = NULL;
22951 wxDateTime *arg1 = (wxDateTime *) 0 ;
22952 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22953 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22954 int result;
22955 bool temp2 = false ;
22956 PyObject * obj0 = 0 ;
22957 PyObject * obj1 = 0 ;
22958 char *kwnames[] = {
22959 (char *) "self",(char *) "tz", NULL
22960 };
22961
22962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
22963 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22964 if (SWIG_arg_fail(1)) SWIG_fail;
22965 if (obj1) {
22966 {
22967 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22968 temp2 = true;
22969 }
22970 }
22971 {
22972 PyThreadState* __tstate = wxPyBeginAllowThreads();
22973 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
22974
22975 wxPyEndAllowThreads(__tstate);
22976 if (PyErr_Occurred()) SWIG_fail;
22977 }
22978 {
22979 resultobj = SWIG_From_int(static_cast<int >(result));
22980 }
22981 {
22982 if (temp2) delete arg2;
22983 }
22984 return resultobj;
22985 fail:
22986 {
22987 if (temp2) delete arg2;
22988 }
22989 return NULL;
22990 }
22991
22992
22993 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
22994 PyObject *resultobj = NULL;
22995 wxDateTime *arg1 = (wxDateTime *) 0 ;
22996 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22997 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22998 int result;
22999 bool temp2 = false ;
23000 PyObject * obj0 = 0 ;
23001 PyObject * obj1 = 0 ;
23002 char *kwnames[] = {
23003 (char *) "self",(char *) "tz", NULL
23004 };
23005
23006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
23007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23008 if (SWIG_arg_fail(1)) SWIG_fail;
23009 if (obj1) {
23010 {
23011 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23012 temp2 = true;
23013 }
23014 }
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
23018
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 {
23023 resultobj = SWIG_From_int(static_cast<int >(result));
23024 }
23025 {
23026 if (temp2) delete arg2;
23027 }
23028 return resultobj;
23029 fail:
23030 {
23031 if (temp2) delete arg2;
23032 }
23033 return NULL;
23034 }
23035
23036
23037 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
23038 PyObject *resultobj = NULL;
23039 wxDateTime *arg1 = (wxDateTime *) 0 ;
23040 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
23041 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
23042 int result;
23043 bool temp2 = false ;
23044 PyObject * obj0 = 0 ;
23045 PyObject * obj1 = 0 ;
23046 char *kwnames[] = {
23047 (char *) "self",(char *) "tz", NULL
23048 };
23049
23050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
23051 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23052 if (SWIG_arg_fail(1)) SWIG_fail;
23053 if (obj1) {
23054 {
23055 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23056 temp2 = true;
23057 }
23058 }
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
23062
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 {
23067 resultobj = SWIG_From_int(static_cast<int >(result));
23068 }
23069 {
23070 if (temp2) delete arg2;
23071 }
23072 return resultobj;
23073 fail:
23074 {
23075 if (temp2) delete arg2;
23076 }
23077 return NULL;
23078 }
23079
23080
23081 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
23082 PyObject *resultobj = NULL;
23083 wxDateTime *arg1 = (wxDateTime *) 0 ;
23084 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
23085 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
23086 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
23087 int result;
23088 bool temp3 = false ;
23089 PyObject * obj0 = 0 ;
23090 PyObject * obj1 = 0 ;
23091 PyObject * obj2 = 0 ;
23092 char *kwnames[] = {
23093 (char *) "self",(char *) "flags",(char *) "tz", NULL
23094 };
23095
23096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
23097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23098 if (SWIG_arg_fail(1)) SWIG_fail;
23099 if (obj1) {
23100 {
23101 arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1));
23102 if (SWIG_arg_fail(2)) SWIG_fail;
23103 }
23104 }
23105 if (obj2) {
23106 {
23107 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
23108 temp3 = true;
23109 }
23110 }
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear(arg2,(wxDateTime::TimeZone const &)*arg3);
23114
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 {
23119 resultobj = SWIG_From_int(static_cast<int >(result));
23120 }
23121 {
23122 if (temp3) delete arg3;
23123 }
23124 return resultobj;
23125 fail:
23126 {
23127 if (temp3) delete arg3;
23128 }
23129 return NULL;
23130 }
23131
23132
23133 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj = NULL;
23135 wxDateTime *arg1 = (wxDateTime *) 0 ;
23136 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
23137 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
23138 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
23139 int result;
23140 bool temp3 = false ;
23141 PyObject * obj0 = 0 ;
23142 PyObject * obj1 = 0 ;
23143 PyObject * obj2 = 0 ;
23144 char *kwnames[] = {
23145 (char *) "self",(char *) "flags",(char *) "tz", NULL
23146 };
23147
23148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
23149 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23150 if (SWIG_arg_fail(1)) SWIG_fail;
23151 if (obj1) {
23152 {
23153 arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1));
23154 if (SWIG_arg_fail(2)) SWIG_fail;
23155 }
23156 }
23157 if (obj2) {
23158 {
23159 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
23160 temp3 = true;
23161 }
23162 }
23163 {
23164 PyThreadState* __tstate = wxPyBeginAllowThreads();
23165 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth(arg2,(wxDateTime::TimeZone const &)*arg3);
23166
23167 wxPyEndAllowThreads(__tstate);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 }
23170 {
23171 resultobj = SWIG_From_int(static_cast<int >(result));
23172 }
23173 {
23174 if (temp3) delete arg3;
23175 }
23176 return resultobj;
23177 fail:
23178 {
23179 if (temp3) delete arg3;
23180 }
23181 return NULL;
23182 }
23183
23184
23185 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj = NULL;
23187 wxDateTime *arg1 = (wxDateTime *) 0 ;
23188 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23189 bool result;
23190 PyObject * obj0 = 0 ;
23191 PyObject * obj1 = 0 ;
23192 char *kwnames[] = {
23193 (char *) "self",(char *) "country", NULL
23194 };
23195
23196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
23197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23198 if (SWIG_arg_fail(1)) SWIG_fail;
23199 if (obj1) {
23200 {
23201 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
23202 if (SWIG_arg_fail(2)) SWIG_fail;
23203 }
23204 }
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 result = (bool)((wxDateTime const *)arg1)->IsWorkDay(arg2);
23208
23209 wxPyEndAllowThreads(__tstate);
23210 if (PyErr_Occurred()) SWIG_fail;
23211 }
23212 {
23213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23214 }
23215 return resultobj;
23216 fail:
23217 return NULL;
23218 }
23219
23220
23221 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
23222 PyObject *resultobj = NULL;
23223 wxDateTime *arg1 = (wxDateTime *) 0 ;
23224 wxDateTime *arg2 = 0 ;
23225 bool result;
23226 PyObject * obj0 = 0 ;
23227 PyObject * obj1 = 0 ;
23228 char *kwnames[] = {
23229 (char *) "self",(char *) "datetime", NULL
23230 };
23231
23232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
23233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23234 if (SWIG_arg_fail(1)) SWIG_fail;
23235 {
23236 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23237 if (SWIG_arg_fail(2)) SWIG_fail;
23238 if (arg2 == NULL) {
23239 SWIG_null_ref("wxDateTime");
23240 }
23241 if (SWIG_arg_fail(2)) SWIG_fail;
23242 }
23243 {
23244 PyThreadState* __tstate = wxPyBeginAllowThreads();
23245 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
23246
23247 wxPyEndAllowThreads(__tstate);
23248 if (PyErr_Occurred()) SWIG_fail;
23249 }
23250 {
23251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23252 }
23253 return resultobj;
23254 fail:
23255 return NULL;
23256 }
23257
23258
23259 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
23260 PyObject *resultobj = NULL;
23261 wxDateTime *arg1 = (wxDateTime *) 0 ;
23262 wxDateTime *arg2 = 0 ;
23263 bool result;
23264 PyObject * obj0 = 0 ;
23265 PyObject * obj1 = 0 ;
23266 char *kwnames[] = {
23267 (char *) "self",(char *) "datetime", NULL
23268 };
23269
23270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
23271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23272 if (SWIG_arg_fail(1)) SWIG_fail;
23273 {
23274 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23275 if (SWIG_arg_fail(2)) SWIG_fail;
23276 if (arg2 == NULL) {
23277 SWIG_null_ref("wxDateTime");
23278 }
23279 if (SWIG_arg_fail(2)) SWIG_fail;
23280 }
23281 {
23282 PyThreadState* __tstate = wxPyBeginAllowThreads();
23283 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
23284
23285 wxPyEndAllowThreads(__tstate);
23286 if (PyErr_Occurred()) SWIG_fail;
23287 }
23288 {
23289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23290 }
23291 return resultobj;
23292 fail:
23293 return NULL;
23294 }
23295
23296
23297 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
23298 PyObject *resultobj = NULL;
23299 wxDateTime *arg1 = (wxDateTime *) 0 ;
23300 wxDateTime *arg2 = 0 ;
23301 bool result;
23302 PyObject * obj0 = 0 ;
23303 PyObject * obj1 = 0 ;
23304 char *kwnames[] = {
23305 (char *) "self",(char *) "datetime", NULL
23306 };
23307
23308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
23309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23310 if (SWIG_arg_fail(1)) SWIG_fail;
23311 {
23312 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23313 if (SWIG_arg_fail(2)) SWIG_fail;
23314 if (arg2 == NULL) {
23315 SWIG_null_ref("wxDateTime");
23316 }
23317 if (SWIG_arg_fail(2)) SWIG_fail;
23318 }
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
23322
23323 wxPyEndAllowThreads(__tstate);
23324 if (PyErr_Occurred()) SWIG_fail;
23325 }
23326 {
23327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23328 }
23329 return resultobj;
23330 fail:
23331 return NULL;
23332 }
23333
23334
23335 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
23336 PyObject *resultobj = NULL;
23337 wxDateTime *arg1 = (wxDateTime *) 0 ;
23338 wxDateTime *arg2 = 0 ;
23339 wxDateTime *arg3 = 0 ;
23340 bool result;
23341 PyObject * obj0 = 0 ;
23342 PyObject * obj1 = 0 ;
23343 PyObject * obj2 = 0 ;
23344 char *kwnames[] = {
23345 (char *) "self",(char *) "t1",(char *) "t2", NULL
23346 };
23347
23348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
23349 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23350 if (SWIG_arg_fail(1)) SWIG_fail;
23351 {
23352 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23353 if (SWIG_arg_fail(2)) SWIG_fail;
23354 if (arg2 == NULL) {
23355 SWIG_null_ref("wxDateTime");
23356 }
23357 if (SWIG_arg_fail(2)) SWIG_fail;
23358 }
23359 {
23360 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23361 if (SWIG_arg_fail(3)) SWIG_fail;
23362 if (arg3 == NULL) {
23363 SWIG_null_ref("wxDateTime");
23364 }
23365 if (SWIG_arg_fail(3)) SWIG_fail;
23366 }
23367 {
23368 PyThreadState* __tstate = wxPyBeginAllowThreads();
23369 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
23370
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 {
23375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23376 }
23377 return resultobj;
23378 fail:
23379 return NULL;
23380 }
23381
23382
23383 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
23384 PyObject *resultobj = NULL;
23385 wxDateTime *arg1 = (wxDateTime *) 0 ;
23386 wxDateTime *arg2 = 0 ;
23387 wxDateTime *arg3 = 0 ;
23388 bool result;
23389 PyObject * obj0 = 0 ;
23390 PyObject * obj1 = 0 ;
23391 PyObject * obj2 = 0 ;
23392 char *kwnames[] = {
23393 (char *) "self",(char *) "t1",(char *) "t2", NULL
23394 };
23395
23396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
23397 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23398 if (SWIG_arg_fail(1)) SWIG_fail;
23399 {
23400 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23401 if (SWIG_arg_fail(2)) SWIG_fail;
23402 if (arg2 == NULL) {
23403 SWIG_null_ref("wxDateTime");
23404 }
23405 if (SWIG_arg_fail(2)) SWIG_fail;
23406 }
23407 {
23408 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23409 if (SWIG_arg_fail(3)) SWIG_fail;
23410 if (arg3 == NULL) {
23411 SWIG_null_ref("wxDateTime");
23412 }
23413 if (SWIG_arg_fail(3)) SWIG_fail;
23414 }
23415 {
23416 PyThreadState* __tstate = wxPyBeginAllowThreads();
23417 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
23418
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 {
23423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23424 }
23425 return resultobj;
23426 fail:
23427 return NULL;
23428 }
23429
23430
23431 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
23432 PyObject *resultobj = NULL;
23433 wxDateTime *arg1 = (wxDateTime *) 0 ;
23434 wxDateTime *arg2 = 0 ;
23435 bool result;
23436 PyObject * obj0 = 0 ;
23437 PyObject * obj1 = 0 ;
23438 char *kwnames[] = {
23439 (char *) "self",(char *) "dt", NULL
23440 };
23441
23442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
23443 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23444 if (SWIG_arg_fail(1)) SWIG_fail;
23445 {
23446 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23447 if (SWIG_arg_fail(2)) SWIG_fail;
23448 if (arg2 == NULL) {
23449 SWIG_null_ref("wxDateTime");
23450 }
23451 if (SWIG_arg_fail(2)) SWIG_fail;
23452 }
23453 {
23454 PyThreadState* __tstate = wxPyBeginAllowThreads();
23455 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
23456
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 {
23461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23462 }
23463 return resultobj;
23464 fail:
23465 return NULL;
23466 }
23467
23468
23469 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
23470 PyObject *resultobj = NULL;
23471 wxDateTime *arg1 = (wxDateTime *) 0 ;
23472 wxDateTime *arg2 = 0 ;
23473 bool result;
23474 PyObject * obj0 = 0 ;
23475 PyObject * obj1 = 0 ;
23476 char *kwnames[] = {
23477 (char *) "self",(char *) "dt", NULL
23478 };
23479
23480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
23481 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23482 if (SWIG_arg_fail(1)) SWIG_fail;
23483 {
23484 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23485 if (SWIG_arg_fail(2)) SWIG_fail;
23486 if (arg2 == NULL) {
23487 SWIG_null_ref("wxDateTime");
23488 }
23489 if (SWIG_arg_fail(2)) SWIG_fail;
23490 }
23491 {
23492 PyThreadState* __tstate = wxPyBeginAllowThreads();
23493 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
23494
23495 wxPyEndAllowThreads(__tstate);
23496 if (PyErr_Occurred()) SWIG_fail;
23497 }
23498 {
23499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23500 }
23501 return resultobj;
23502 fail:
23503 return NULL;
23504 }
23505
23506
23507 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
23508 PyObject *resultobj = NULL;
23509 wxDateTime *arg1 = (wxDateTime *) 0 ;
23510 wxDateTime *arg2 = 0 ;
23511 wxTimeSpan *arg3 = 0 ;
23512 bool result;
23513 PyObject * obj0 = 0 ;
23514 PyObject * obj1 = 0 ;
23515 PyObject * obj2 = 0 ;
23516 char *kwnames[] = {
23517 (char *) "self",(char *) "dt",(char *) "ts", NULL
23518 };
23519
23520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23521 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23522 if (SWIG_arg_fail(1)) SWIG_fail;
23523 {
23524 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23525 if (SWIG_arg_fail(2)) SWIG_fail;
23526 if (arg2 == NULL) {
23527 SWIG_null_ref("wxDateTime");
23528 }
23529 if (SWIG_arg_fail(2)) SWIG_fail;
23530 }
23531 {
23532 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23533 if (SWIG_arg_fail(3)) SWIG_fail;
23534 if (arg3 == NULL) {
23535 SWIG_null_ref("wxTimeSpan");
23536 }
23537 if (SWIG_arg_fail(3)) SWIG_fail;
23538 }
23539 {
23540 PyThreadState* __tstate = wxPyBeginAllowThreads();
23541 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
23542
23543 wxPyEndAllowThreads(__tstate);
23544 if (PyErr_Occurred()) SWIG_fail;
23545 }
23546 {
23547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23548 }
23549 return resultobj;
23550 fail:
23551 return NULL;
23552 }
23553
23554
23555 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
23556 PyObject *resultobj = NULL;
23557 wxDateTime *arg1 = (wxDateTime *) 0 ;
23558 wxTimeSpan *arg2 = 0 ;
23559 wxDateTime *result;
23560 PyObject * obj0 = 0 ;
23561 PyObject * obj1 = 0 ;
23562 char *kwnames[] = {
23563 (char *) "self",(char *) "diff", NULL
23564 };
23565
23566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
23567 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23568 if (SWIG_arg_fail(1)) SWIG_fail;
23569 {
23570 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23571 if (SWIG_arg_fail(2)) SWIG_fail;
23572 if (arg2 == NULL) {
23573 SWIG_null_ref("wxTimeSpan");
23574 }
23575 if (SWIG_arg_fail(2)) SWIG_fail;
23576 }
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 {
23580 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
23581 result = (wxDateTime *) &_result_ref;
23582 }
23583
23584 wxPyEndAllowThreads(__tstate);
23585 if (PyErr_Occurred()) SWIG_fail;
23586 }
23587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23588 return resultobj;
23589 fail:
23590 return NULL;
23591 }
23592
23593
23594 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
23595 PyObject *resultobj = NULL;
23596 wxDateTime *arg1 = (wxDateTime *) 0 ;
23597 wxDateSpan *arg2 = 0 ;
23598 wxDateTime *result;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 char *kwnames[] = {
23602 (char *) "self",(char *) "diff", NULL
23603 };
23604
23605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
23606 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23607 if (SWIG_arg_fail(1)) SWIG_fail;
23608 {
23609 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23610 if (SWIG_arg_fail(2)) SWIG_fail;
23611 if (arg2 == NULL) {
23612 SWIG_null_ref("wxDateSpan");
23613 }
23614 if (SWIG_arg_fail(2)) SWIG_fail;
23615 }
23616 {
23617 PyThreadState* __tstate = wxPyBeginAllowThreads();
23618 {
23619 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23620 result = (wxDateTime *) &_result_ref;
23621 }
23622
23623 wxPyEndAllowThreads(__tstate);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23627 return resultobj;
23628 fail:
23629 return NULL;
23630 }
23631
23632
23633 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
23634 PyObject *resultobj = NULL;
23635 wxDateTime *arg1 = (wxDateTime *) 0 ;
23636 wxTimeSpan *arg2 = 0 ;
23637 wxDateTime *result;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640 char *kwnames[] = {
23641 (char *) "self",(char *) "diff", NULL
23642 };
23643
23644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
23645 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23646 if (SWIG_arg_fail(1)) SWIG_fail;
23647 {
23648 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23649 if (SWIG_arg_fail(2)) SWIG_fail;
23650 if (arg2 == NULL) {
23651 SWIG_null_ref("wxTimeSpan");
23652 }
23653 if (SWIG_arg_fail(2)) SWIG_fail;
23654 }
23655 {
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 {
23658 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
23659 result = (wxDateTime *) &_result_ref;
23660 }
23661
23662 wxPyEndAllowThreads(__tstate);
23663 if (PyErr_Occurred()) SWIG_fail;
23664 }
23665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23666 return resultobj;
23667 fail:
23668 return NULL;
23669 }
23670
23671
23672 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
23673 PyObject *resultobj = NULL;
23674 wxDateTime *arg1 = (wxDateTime *) 0 ;
23675 wxDateSpan *arg2 = 0 ;
23676 wxDateTime *result;
23677 PyObject * obj0 = 0 ;
23678 PyObject * obj1 = 0 ;
23679 char *kwnames[] = {
23680 (char *) "self",(char *) "diff", NULL
23681 };
23682
23683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
23684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23685 if (SWIG_arg_fail(1)) SWIG_fail;
23686 {
23687 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23688 if (SWIG_arg_fail(2)) SWIG_fail;
23689 if (arg2 == NULL) {
23690 SWIG_null_ref("wxDateSpan");
23691 }
23692 if (SWIG_arg_fail(2)) SWIG_fail;
23693 }
23694 {
23695 PyThreadState* __tstate = wxPyBeginAllowThreads();
23696 {
23697 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23698 result = (wxDateTime *) &_result_ref;
23699 }
23700
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23705 return resultobj;
23706 fail:
23707 return NULL;
23708 }
23709
23710
23711 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23712 PyObject *resultobj = NULL;
23713 wxDateTime *arg1 = (wxDateTime *) 0 ;
23714 wxDateTime *arg2 = 0 ;
23715 wxTimeSpan result;
23716 PyObject * obj0 = 0 ;
23717 PyObject * obj1 = 0 ;
23718 char *kwnames[] = {
23719 (char *) "self",(char *) "dt", NULL
23720 };
23721
23722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
23723 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23724 if (SWIG_arg_fail(1)) SWIG_fail;
23725 {
23726 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23727 if (SWIG_arg_fail(2)) SWIG_fail;
23728 if (arg2 == NULL) {
23729 SWIG_null_ref("wxDateTime");
23730 }
23731 if (SWIG_arg_fail(2)) SWIG_fail;
23732 }
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
23736
23737 wxPyEndAllowThreads(__tstate);
23738 if (PyErr_Occurred()) SWIG_fail;
23739 }
23740 {
23741 wxTimeSpan * resultptr;
23742 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
23743 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
23744 }
23745 return resultobj;
23746 fail:
23747 return NULL;
23748 }
23749
23750
23751 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
23752 PyObject *resultobj = NULL;
23753 wxDateTime *arg1 = (wxDateTime *) 0 ;
23754 wxTimeSpan *arg2 = 0 ;
23755 wxDateTime *result;
23756 PyObject * obj0 = 0 ;
23757 PyObject * obj1 = 0 ;
23758
23759 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
23760 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23761 if (SWIG_arg_fail(1)) SWIG_fail;
23762 {
23763 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23764 if (SWIG_arg_fail(2)) SWIG_fail;
23765 if (arg2 == NULL) {
23766 SWIG_null_ref("wxTimeSpan");
23767 }
23768 if (SWIG_arg_fail(2)) SWIG_fail;
23769 }
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 {
23773 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
23774 result = (wxDateTime *) &_result_ref;
23775 }
23776
23777 wxPyEndAllowThreads(__tstate);
23778 if (PyErr_Occurred()) SWIG_fail;
23779 }
23780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23781 return resultobj;
23782 fail:
23783 return NULL;
23784 }
23785
23786
23787 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
23788 PyObject *resultobj = NULL;
23789 wxDateTime *arg1 = (wxDateTime *) 0 ;
23790 wxDateSpan *arg2 = 0 ;
23791 wxDateTime *result;
23792 PyObject * obj0 = 0 ;
23793 PyObject * obj1 = 0 ;
23794
23795 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
23796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23797 if (SWIG_arg_fail(1)) SWIG_fail;
23798 {
23799 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23800 if (SWIG_arg_fail(2)) SWIG_fail;
23801 if (arg2 == NULL) {
23802 SWIG_null_ref("wxDateSpan");
23803 }
23804 if (SWIG_arg_fail(2)) SWIG_fail;
23805 }
23806 {
23807 PyThreadState* __tstate = wxPyBeginAllowThreads();
23808 {
23809 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23810 result = (wxDateTime *) &_result_ref;
23811 }
23812
23813 wxPyEndAllowThreads(__tstate);
23814 if (PyErr_Occurred()) SWIG_fail;
23815 }
23816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23817 return resultobj;
23818 fail:
23819 return NULL;
23820 }
23821
23822
23823 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
23824 int argc;
23825 PyObject *argv[3];
23826 int ii;
23827
23828 argc = PyObject_Length(args);
23829 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23830 argv[ii] = PyTuple_GetItem(args,ii);
23831 }
23832 if (argc == 2) {
23833 int _v;
23834 {
23835 void *ptr;
23836 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
23837 _v = 0;
23838 PyErr_Clear();
23839 } else {
23840 _v = 1;
23841 }
23842 }
23843 if (_v) {
23844 {
23845 void *ptr = 0;
23846 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
23847 _v = 0;
23848 PyErr_Clear();
23849 } else {
23850 _v = (ptr != 0);
23851 }
23852 }
23853 if (_v) {
23854 return _wrap_DateTime___iadd____SWIG_0(self,args);
23855 }
23856 }
23857 }
23858 if (argc == 2) {
23859 int _v;
23860 {
23861 void *ptr;
23862 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
23863 _v = 0;
23864 PyErr_Clear();
23865 } else {
23866 _v = 1;
23867 }
23868 }
23869 if (_v) {
23870 {
23871 void *ptr = 0;
23872 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
23873 _v = 0;
23874 PyErr_Clear();
23875 } else {
23876 _v = (ptr != 0);
23877 }
23878 }
23879 if (_v) {
23880 return _wrap_DateTime___iadd____SWIG_1(self,args);
23881 }
23882 }
23883 }
23884
23885 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'");
23886 return NULL;
23887 }
23888
23889
23890 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
23891 PyObject *resultobj = NULL;
23892 wxDateTime *arg1 = (wxDateTime *) 0 ;
23893 wxTimeSpan *arg2 = 0 ;
23894 wxDateTime *result;
23895 PyObject * obj0 = 0 ;
23896 PyObject * obj1 = 0 ;
23897
23898 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
23899 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23900 if (SWIG_arg_fail(1)) SWIG_fail;
23901 {
23902 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23903 if (SWIG_arg_fail(2)) SWIG_fail;
23904 if (arg2 == NULL) {
23905 SWIG_null_ref("wxTimeSpan");
23906 }
23907 if (SWIG_arg_fail(2)) SWIG_fail;
23908 }
23909 {
23910 PyThreadState* __tstate = wxPyBeginAllowThreads();
23911 {
23912 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
23913 result = (wxDateTime *) &_result_ref;
23914 }
23915
23916 wxPyEndAllowThreads(__tstate);
23917 if (PyErr_Occurred()) SWIG_fail;
23918 }
23919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23920 return resultobj;
23921 fail:
23922 return NULL;
23923 }
23924
23925
23926 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
23927 PyObject *resultobj = NULL;
23928 wxDateTime *arg1 = (wxDateTime *) 0 ;
23929 wxDateSpan *arg2 = 0 ;
23930 wxDateTime *result;
23931 PyObject * obj0 = 0 ;
23932 PyObject * obj1 = 0 ;
23933
23934 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
23935 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23936 if (SWIG_arg_fail(1)) SWIG_fail;
23937 {
23938 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23939 if (SWIG_arg_fail(2)) SWIG_fail;
23940 if (arg2 == NULL) {
23941 SWIG_null_ref("wxDateSpan");
23942 }
23943 if (SWIG_arg_fail(2)) SWIG_fail;
23944 }
23945 {
23946 PyThreadState* __tstate = wxPyBeginAllowThreads();
23947 {
23948 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23949 result = (wxDateTime *) &_result_ref;
23950 }
23951
23952 wxPyEndAllowThreads(__tstate);
23953 if (PyErr_Occurred()) SWIG_fail;
23954 }
23955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23956 return resultobj;
23957 fail:
23958 return NULL;
23959 }
23960
23961
23962 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
23963 int argc;
23964 PyObject *argv[3];
23965 int ii;
23966
23967 argc = PyObject_Length(args);
23968 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23969 argv[ii] = PyTuple_GetItem(args,ii);
23970 }
23971 if (argc == 2) {
23972 int _v;
23973 {
23974 void *ptr;
23975 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
23976 _v = 0;
23977 PyErr_Clear();
23978 } else {
23979 _v = 1;
23980 }
23981 }
23982 if (_v) {
23983 {
23984 void *ptr = 0;
23985 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
23986 _v = 0;
23987 PyErr_Clear();
23988 } else {
23989 _v = (ptr != 0);
23990 }
23991 }
23992 if (_v) {
23993 return _wrap_DateTime___isub____SWIG_0(self,args);
23994 }
23995 }
23996 }
23997 if (argc == 2) {
23998 int _v;
23999 {
24000 void *ptr;
24001 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24002 _v = 0;
24003 PyErr_Clear();
24004 } else {
24005 _v = 1;
24006 }
24007 }
24008 if (_v) {
24009 {
24010 void *ptr = 0;
24011 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24012 _v = 0;
24013 PyErr_Clear();
24014 } else {
24015 _v = (ptr != 0);
24016 }
24017 }
24018 if (_v) {
24019 return _wrap_DateTime___isub____SWIG_1(self,args);
24020 }
24021 }
24022 }
24023
24024 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'");
24025 return NULL;
24026 }
24027
24028
24029 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
24030 PyObject *resultobj = NULL;
24031 wxDateTime *arg1 = (wxDateTime *) 0 ;
24032 wxTimeSpan *arg2 = 0 ;
24033 wxDateTime result;
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036
24037 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
24038 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24039 if (SWIG_arg_fail(1)) SWIG_fail;
24040 {
24041 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
24042 if (SWIG_arg_fail(2)) SWIG_fail;
24043 if (arg2 == NULL) {
24044 SWIG_null_ref("wxTimeSpan");
24045 }
24046 if (SWIG_arg_fail(2)) SWIG_fail;
24047 }
24048 {
24049 PyThreadState* __tstate = wxPyBeginAllowThreads();
24050 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
24051
24052 wxPyEndAllowThreads(__tstate);
24053 if (PyErr_Occurred()) SWIG_fail;
24054 }
24055 {
24056 wxDateTime * resultptr;
24057 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24058 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24059 }
24060 return resultobj;
24061 fail:
24062 return NULL;
24063 }
24064
24065
24066 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
24067 PyObject *resultobj = NULL;
24068 wxDateTime *arg1 = (wxDateTime *) 0 ;
24069 wxDateSpan *arg2 = 0 ;
24070 wxDateTime result;
24071 PyObject * obj0 = 0 ;
24072 PyObject * obj1 = 0 ;
24073
24074 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
24075 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24076 if (SWIG_arg_fail(1)) SWIG_fail;
24077 {
24078 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24079 if (SWIG_arg_fail(2)) SWIG_fail;
24080 if (arg2 == NULL) {
24081 SWIG_null_ref("wxDateSpan");
24082 }
24083 if (SWIG_arg_fail(2)) SWIG_fail;
24084 }
24085 {
24086 PyThreadState* __tstate = wxPyBeginAllowThreads();
24087 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
24088
24089 wxPyEndAllowThreads(__tstate);
24090 if (PyErr_Occurred()) SWIG_fail;
24091 }
24092 {
24093 wxDateTime * resultptr;
24094 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24095 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24096 }
24097 return resultobj;
24098 fail:
24099 return NULL;
24100 }
24101
24102
24103 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
24104 int argc;
24105 PyObject *argv[3];
24106 int ii;
24107
24108 argc = PyObject_Length(args);
24109 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24110 argv[ii] = PyTuple_GetItem(args,ii);
24111 }
24112 if (argc == 2) {
24113 int _v;
24114 {
24115 void *ptr;
24116 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24117 _v = 0;
24118 PyErr_Clear();
24119 } else {
24120 _v = 1;
24121 }
24122 }
24123 if (_v) {
24124 {
24125 void *ptr = 0;
24126 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24127 _v = 0;
24128 PyErr_Clear();
24129 } else {
24130 _v = (ptr != 0);
24131 }
24132 }
24133 if (_v) {
24134 return _wrap_DateTime___add____SWIG_0(self,args);
24135 }
24136 }
24137 }
24138 if (argc == 2) {
24139 int _v;
24140 {
24141 void *ptr;
24142 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24143 _v = 0;
24144 PyErr_Clear();
24145 } else {
24146 _v = 1;
24147 }
24148 }
24149 if (_v) {
24150 {
24151 void *ptr = 0;
24152 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24153 _v = 0;
24154 PyErr_Clear();
24155 } else {
24156 _v = (ptr != 0);
24157 }
24158 }
24159 if (_v) {
24160 return _wrap_DateTime___add____SWIG_1(self,args);
24161 }
24162 }
24163 }
24164
24165 Py_INCREF(Py_NotImplemented);
24166 return Py_NotImplemented;
24167 }
24168
24169
24170 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
24171 PyObject *resultobj = NULL;
24172 wxDateTime *arg1 = (wxDateTime *) 0 ;
24173 wxDateTime *arg2 = 0 ;
24174 wxTimeSpan result;
24175 PyObject * obj0 = 0 ;
24176 PyObject * obj1 = 0 ;
24177
24178 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24179 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24180 if (SWIG_arg_fail(1)) SWIG_fail;
24181 {
24182 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24183 if (SWIG_arg_fail(2)) SWIG_fail;
24184 if (arg2 == NULL) {
24185 SWIG_null_ref("wxDateTime");
24186 }
24187 if (SWIG_arg_fail(2)) SWIG_fail;
24188 }
24189 {
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
24192
24193 wxPyEndAllowThreads(__tstate);
24194 if (PyErr_Occurred()) SWIG_fail;
24195 }
24196 {
24197 wxTimeSpan * resultptr;
24198 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
24199 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
24200 }
24201 return resultobj;
24202 fail:
24203 return NULL;
24204 }
24205
24206
24207 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
24208 PyObject *resultobj = NULL;
24209 wxDateTime *arg1 = (wxDateTime *) 0 ;
24210 wxTimeSpan *arg2 = 0 ;
24211 wxDateTime result;
24212 PyObject * obj0 = 0 ;
24213 PyObject * obj1 = 0 ;
24214
24215 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24217 if (SWIG_arg_fail(1)) SWIG_fail;
24218 {
24219 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
24220 if (SWIG_arg_fail(2)) SWIG_fail;
24221 if (arg2 == NULL) {
24222 SWIG_null_ref("wxTimeSpan");
24223 }
24224 if (SWIG_arg_fail(2)) SWIG_fail;
24225 }
24226 {
24227 PyThreadState* __tstate = wxPyBeginAllowThreads();
24228 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
24229
24230 wxPyEndAllowThreads(__tstate);
24231 if (PyErr_Occurred()) SWIG_fail;
24232 }
24233 {
24234 wxDateTime * resultptr;
24235 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24236 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24237 }
24238 return resultobj;
24239 fail:
24240 return NULL;
24241 }
24242
24243
24244 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
24245 PyObject *resultobj = NULL;
24246 wxDateTime *arg1 = (wxDateTime *) 0 ;
24247 wxDateSpan *arg2 = 0 ;
24248 wxDateTime result;
24249 PyObject * obj0 = 0 ;
24250 PyObject * obj1 = 0 ;
24251
24252 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24253 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24254 if (SWIG_arg_fail(1)) SWIG_fail;
24255 {
24256 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24257 if (SWIG_arg_fail(2)) SWIG_fail;
24258 if (arg2 == NULL) {
24259 SWIG_null_ref("wxDateSpan");
24260 }
24261 if (SWIG_arg_fail(2)) SWIG_fail;
24262 }
24263 {
24264 PyThreadState* __tstate = wxPyBeginAllowThreads();
24265 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
24266
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 {
24271 wxDateTime * resultptr;
24272 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24273 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24274 }
24275 return resultobj;
24276 fail:
24277 return NULL;
24278 }
24279
24280
24281 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
24282 int argc;
24283 PyObject *argv[3];
24284 int ii;
24285
24286 argc = PyObject_Length(args);
24287 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24288 argv[ii] = PyTuple_GetItem(args,ii);
24289 }
24290 if (argc == 2) {
24291 int _v;
24292 {
24293 void *ptr;
24294 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24295 _v = 0;
24296 PyErr_Clear();
24297 } else {
24298 _v = 1;
24299 }
24300 }
24301 if (_v) {
24302 {
24303 void *ptr = 0;
24304 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24305 _v = 0;
24306 PyErr_Clear();
24307 } else {
24308 _v = (ptr != 0);
24309 }
24310 }
24311 if (_v) {
24312 return _wrap_DateTime___sub____SWIG_0(self,args);
24313 }
24314 }
24315 }
24316 if (argc == 2) {
24317 int _v;
24318 {
24319 void *ptr;
24320 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24321 _v = 0;
24322 PyErr_Clear();
24323 } else {
24324 _v = 1;
24325 }
24326 }
24327 if (_v) {
24328 {
24329 void *ptr = 0;
24330 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24331 _v = 0;
24332 PyErr_Clear();
24333 } else {
24334 _v = (ptr != 0);
24335 }
24336 }
24337 if (_v) {
24338 return _wrap_DateTime___sub____SWIG_1(self,args);
24339 }
24340 }
24341 }
24342 if (argc == 2) {
24343 int _v;
24344 {
24345 void *ptr;
24346 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24347 _v = 0;
24348 PyErr_Clear();
24349 } else {
24350 _v = 1;
24351 }
24352 }
24353 if (_v) {
24354 {
24355 void *ptr = 0;
24356 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24357 _v = 0;
24358 PyErr_Clear();
24359 } else {
24360 _v = (ptr != 0);
24361 }
24362 }
24363 if (_v) {
24364 return _wrap_DateTime___sub____SWIG_2(self,args);
24365 }
24366 }
24367 }
24368
24369 Py_INCREF(Py_NotImplemented);
24370 return Py_NotImplemented;
24371 }
24372
24373
24374 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
24375 PyObject *resultobj = NULL;
24376 wxDateTime *arg1 = (wxDateTime *) 0 ;
24377 wxDateTime *arg2 = (wxDateTime *) 0 ;
24378 bool result;
24379 PyObject * obj0 = 0 ;
24380 PyObject * obj1 = 0 ;
24381 char *kwnames[] = {
24382 (char *) "self",(char *) "other", NULL
24383 };
24384
24385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) goto fail;
24386 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24387 if (SWIG_arg_fail(1)) SWIG_fail;
24388 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24389 if (SWIG_arg_fail(2)) SWIG_fail;
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
24393
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 {
24398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24399 }
24400 return resultobj;
24401 fail:
24402 return NULL;
24403 }
24404
24405
24406 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args, PyObject *kwargs) {
24407 PyObject *resultobj = NULL;
24408 wxDateTime *arg1 = (wxDateTime *) 0 ;
24409 wxDateTime *arg2 = (wxDateTime *) 0 ;
24410 bool result;
24411 PyObject * obj0 = 0 ;
24412 PyObject * obj1 = 0 ;
24413 char *kwnames[] = {
24414 (char *) "self",(char *) "other", NULL
24415 };
24416
24417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) goto fail;
24418 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24419 if (SWIG_arg_fail(1)) SWIG_fail;
24420 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24421 if (SWIG_arg_fail(2)) SWIG_fail;
24422 {
24423 PyThreadState* __tstate = wxPyBeginAllowThreads();
24424 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
24425
24426 wxPyEndAllowThreads(__tstate);
24427 if (PyErr_Occurred()) SWIG_fail;
24428 }
24429 {
24430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24431 }
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj = NULL;
24440 wxDateTime *arg1 = (wxDateTime *) 0 ;
24441 wxDateTime *arg2 = (wxDateTime *) 0 ;
24442 bool result;
24443 PyObject * obj0 = 0 ;
24444 PyObject * obj1 = 0 ;
24445 char *kwnames[] = {
24446 (char *) "self",(char *) "other", NULL
24447 };
24448
24449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) goto fail;
24450 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24451 if (SWIG_arg_fail(1)) SWIG_fail;
24452 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24453 if (SWIG_arg_fail(2)) SWIG_fail;
24454 {
24455 PyThreadState* __tstate = wxPyBeginAllowThreads();
24456 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
24457
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 {
24462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24463 }
24464 return resultobj;
24465 fail:
24466 return NULL;
24467 }
24468
24469
24470 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = NULL;
24472 wxDateTime *arg1 = (wxDateTime *) 0 ;
24473 wxDateTime *arg2 = (wxDateTime *) 0 ;
24474 bool result;
24475 PyObject * obj0 = 0 ;
24476 PyObject * obj1 = 0 ;
24477 char *kwnames[] = {
24478 (char *) "self",(char *) "other", NULL
24479 };
24480
24481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) goto fail;
24482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24483 if (SWIG_arg_fail(1)) SWIG_fail;
24484 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24485 if (SWIG_arg_fail(2)) SWIG_fail;
24486 {
24487 PyThreadState* __tstate = wxPyBeginAllowThreads();
24488 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
24489
24490 wxPyEndAllowThreads(__tstate);
24491 if (PyErr_Occurred()) SWIG_fail;
24492 }
24493 {
24494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24495 }
24496 return resultobj;
24497 fail:
24498 return NULL;
24499 }
24500
24501
24502 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24503 PyObject *resultobj = NULL;
24504 wxDateTime *arg1 = (wxDateTime *) 0 ;
24505 wxDateTime *arg2 = (wxDateTime *) 0 ;
24506 bool result;
24507 PyObject * obj0 = 0 ;
24508 PyObject * obj1 = 0 ;
24509 char *kwnames[] = {
24510 (char *) "self",(char *) "other", NULL
24511 };
24512
24513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) goto fail;
24514 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24515 if (SWIG_arg_fail(1)) SWIG_fail;
24516 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24517 if (SWIG_arg_fail(2)) SWIG_fail;
24518 {
24519 PyThreadState* __tstate = wxPyBeginAllowThreads();
24520 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
24521
24522 wxPyEndAllowThreads(__tstate);
24523 if (PyErr_Occurred()) SWIG_fail;
24524 }
24525 {
24526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24527 }
24528 return resultobj;
24529 fail:
24530 return NULL;
24531 }
24532
24533
24534 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24535 PyObject *resultobj = NULL;
24536 wxDateTime *arg1 = (wxDateTime *) 0 ;
24537 wxDateTime *arg2 = (wxDateTime *) 0 ;
24538 bool result;
24539 PyObject * obj0 = 0 ;
24540 PyObject * obj1 = 0 ;
24541 char *kwnames[] = {
24542 (char *) "self",(char *) "other", NULL
24543 };
24544
24545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) goto fail;
24546 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24547 if (SWIG_arg_fail(1)) SWIG_fail;
24548 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24549 if (SWIG_arg_fail(2)) SWIG_fail;
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
24553
24554 wxPyEndAllowThreads(__tstate);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 {
24558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24559 }
24560 return resultobj;
24561 fail:
24562 return NULL;
24563 }
24564
24565
24566 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
24567 PyObject *resultobj = NULL;
24568 wxDateTime *arg1 = (wxDateTime *) 0 ;
24569 wxString *arg2 = 0 ;
24570 int result;
24571 bool temp2 = false ;
24572 PyObject * obj0 = 0 ;
24573 PyObject * obj1 = 0 ;
24574 char *kwnames[] = {
24575 (char *) "self",(char *) "date", NULL
24576 };
24577
24578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",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 {
24582 arg2 = wxString_in_helper(obj1);
24583 if (arg2 == NULL) SWIG_fail;
24584 temp2 = true;
24585 }
24586 {
24587 PyThreadState* __tstate = wxPyBeginAllowThreads();
24588 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
24589
24590 wxPyEndAllowThreads(__tstate);
24591 if (PyErr_Occurred()) SWIG_fail;
24592 }
24593 {
24594 resultobj = SWIG_From_int(static_cast<int >(result));
24595 }
24596 {
24597 if (temp2)
24598 delete arg2;
24599 }
24600 return resultobj;
24601 fail:
24602 {
24603 if (temp2)
24604 delete arg2;
24605 }
24606 return NULL;
24607 }
24608
24609
24610 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj = NULL;
24612 wxDateTime *arg1 = (wxDateTime *) 0 ;
24613 wxString *arg2 = 0 ;
24614 wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ;
24615 wxString *arg3 = (wxString *) &arg3_defvalue ;
24616 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
24617 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
24618 int result;
24619 bool temp2 = false ;
24620 bool temp3 = false ;
24621 PyObject * obj0 = 0 ;
24622 PyObject * obj1 = 0 ;
24623 PyObject * obj2 = 0 ;
24624 PyObject * obj3 = 0 ;
24625 char *kwnames[] = {
24626 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
24627 };
24628
24629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24630 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24631 if (SWIG_arg_fail(1)) SWIG_fail;
24632 {
24633 arg2 = wxString_in_helper(obj1);
24634 if (arg2 == NULL) SWIG_fail;
24635 temp2 = true;
24636 }
24637 if (obj2) {
24638 {
24639 arg3 = wxString_in_helper(obj2);
24640 if (arg3 == NULL) SWIG_fail;
24641 temp3 = true;
24642 }
24643 }
24644 if (obj3) {
24645 {
24646 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24647 if (SWIG_arg_fail(4)) SWIG_fail;
24648 if (arg4 == NULL) {
24649 SWIG_null_ref("wxDateTime");
24650 }
24651 if (SWIG_arg_fail(4)) SWIG_fail;
24652 }
24653 }
24654 {
24655 PyThreadState* __tstate = wxPyBeginAllowThreads();
24656 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
24657
24658 wxPyEndAllowThreads(__tstate);
24659 if (PyErr_Occurred()) SWIG_fail;
24660 }
24661 {
24662 resultobj = SWIG_From_int(static_cast<int >(result));
24663 }
24664 {
24665 if (temp2)
24666 delete arg2;
24667 }
24668 {
24669 if (temp3)
24670 delete arg3;
24671 }
24672 return resultobj;
24673 fail:
24674 {
24675 if (temp2)
24676 delete arg2;
24677 }
24678 {
24679 if (temp3)
24680 delete arg3;
24681 }
24682 return NULL;
24683 }
24684
24685
24686 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
24687 PyObject *resultobj = NULL;
24688 wxDateTime *arg1 = (wxDateTime *) 0 ;
24689 wxString *arg2 = 0 ;
24690 int result;
24691 bool temp2 = false ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 char *kwnames[] = {
24695 (char *) "self",(char *) "datetime", NULL
24696 };
24697
24698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
24699 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24700 if (SWIG_arg_fail(1)) SWIG_fail;
24701 {
24702 arg2 = wxString_in_helper(obj1);
24703 if (arg2 == NULL) SWIG_fail;
24704 temp2 = true;
24705 }
24706 {
24707 PyThreadState* __tstate = wxPyBeginAllowThreads();
24708 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
24709
24710 wxPyEndAllowThreads(__tstate);
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 {
24714 resultobj = SWIG_From_int(static_cast<int >(result));
24715 }
24716 {
24717 if (temp2)
24718 delete arg2;
24719 }
24720 return resultobj;
24721 fail:
24722 {
24723 if (temp2)
24724 delete arg2;
24725 }
24726 return NULL;
24727 }
24728
24729
24730 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
24731 PyObject *resultobj = NULL;
24732 wxDateTime *arg1 = (wxDateTime *) 0 ;
24733 wxString *arg2 = 0 ;
24734 int result;
24735 bool temp2 = false ;
24736 PyObject * obj0 = 0 ;
24737 PyObject * obj1 = 0 ;
24738 char *kwnames[] = {
24739 (char *) "self",(char *) "date", NULL
24740 };
24741
24742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
24743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24744 if (SWIG_arg_fail(1)) SWIG_fail;
24745 {
24746 arg2 = wxString_in_helper(obj1);
24747 if (arg2 == NULL) SWIG_fail;
24748 temp2 = true;
24749 }
24750 {
24751 PyThreadState* __tstate = wxPyBeginAllowThreads();
24752 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
24753
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 {
24758 resultobj = SWIG_From_int(static_cast<int >(result));
24759 }
24760 {
24761 if (temp2)
24762 delete arg2;
24763 }
24764 return resultobj;
24765 fail:
24766 {
24767 if (temp2)
24768 delete arg2;
24769 }
24770 return NULL;
24771 }
24772
24773
24774 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
24775 PyObject *resultobj = NULL;
24776 wxDateTime *arg1 = (wxDateTime *) 0 ;
24777 wxString *arg2 = 0 ;
24778 int result;
24779 bool temp2 = false ;
24780 PyObject * obj0 = 0 ;
24781 PyObject * obj1 = 0 ;
24782 char *kwnames[] = {
24783 (char *) "self",(char *) "time", NULL
24784 };
24785
24786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
24787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24788 if (SWIG_arg_fail(1)) SWIG_fail;
24789 {
24790 arg2 = wxString_in_helper(obj1);
24791 if (arg2 == NULL) SWIG_fail;
24792 temp2 = true;
24793 }
24794 {
24795 PyThreadState* __tstate = wxPyBeginAllowThreads();
24796 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
24797
24798 wxPyEndAllowThreads(__tstate);
24799 if (PyErr_Occurred()) SWIG_fail;
24800 }
24801 {
24802 resultobj = SWIG_From_int(static_cast<int >(result));
24803 }
24804 {
24805 if (temp2)
24806 delete arg2;
24807 }
24808 return resultobj;
24809 fail:
24810 {
24811 if (temp2)
24812 delete arg2;
24813 }
24814 return NULL;
24815 }
24816
24817
24818 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
24819 PyObject *resultobj = NULL;
24820 wxDateTime *arg1 = (wxDateTime *) 0 ;
24821 wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ;
24822 wxString *arg2 = (wxString *) &arg2_defvalue ;
24823 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
24824 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
24825 wxString result;
24826 bool temp2 = false ;
24827 bool temp3 = false ;
24828 PyObject * obj0 = 0 ;
24829 PyObject * obj1 = 0 ;
24830 PyObject * obj2 = 0 ;
24831 char *kwnames[] = {
24832 (char *) "self",(char *) "format",(char *) "tz", NULL
24833 };
24834
24835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
24836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24837 if (SWIG_arg_fail(1)) SWIG_fail;
24838 if (obj1) {
24839 {
24840 arg2 = wxString_in_helper(obj1);
24841 if (arg2 == NULL) SWIG_fail;
24842 temp2 = true;
24843 }
24844 }
24845 if (obj2) {
24846 {
24847 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
24848 temp3 = true;
24849 }
24850 }
24851 {
24852 PyThreadState* __tstate = wxPyBeginAllowThreads();
24853 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
24854
24855 wxPyEndAllowThreads(__tstate);
24856 if (PyErr_Occurred()) SWIG_fail;
24857 }
24858 {
24859 #if wxUSE_UNICODE
24860 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24861 #else
24862 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24863 #endif
24864 }
24865 {
24866 if (temp2)
24867 delete arg2;
24868 }
24869 {
24870 if (temp3) delete arg3;
24871 }
24872 return resultobj;
24873 fail:
24874 {
24875 if (temp2)
24876 delete arg2;
24877 }
24878 {
24879 if (temp3) delete arg3;
24880 }
24881 return NULL;
24882 }
24883
24884
24885 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
24886 PyObject *resultobj = NULL;
24887 wxDateTime *arg1 = (wxDateTime *) 0 ;
24888 wxString result;
24889 PyObject * obj0 = 0 ;
24890 char *kwnames[] = {
24891 (char *) "self", NULL
24892 };
24893
24894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
24895 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24896 if (SWIG_arg_fail(1)) SWIG_fail;
24897 {
24898 PyThreadState* __tstate = wxPyBeginAllowThreads();
24899 result = ((wxDateTime const *)arg1)->FormatDate();
24900
24901 wxPyEndAllowThreads(__tstate);
24902 if (PyErr_Occurred()) SWIG_fail;
24903 }
24904 {
24905 #if wxUSE_UNICODE
24906 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24907 #else
24908 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24909 #endif
24910 }
24911 return resultobj;
24912 fail:
24913 return NULL;
24914 }
24915
24916
24917 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
24918 PyObject *resultobj = NULL;
24919 wxDateTime *arg1 = (wxDateTime *) 0 ;
24920 wxString result;
24921 PyObject * obj0 = 0 ;
24922 char *kwnames[] = {
24923 (char *) "self", NULL
24924 };
24925
24926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
24927 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24928 if (SWIG_arg_fail(1)) SWIG_fail;
24929 {
24930 PyThreadState* __tstate = wxPyBeginAllowThreads();
24931 result = ((wxDateTime const *)arg1)->FormatTime();
24932
24933 wxPyEndAllowThreads(__tstate);
24934 if (PyErr_Occurred()) SWIG_fail;
24935 }
24936 {
24937 #if wxUSE_UNICODE
24938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24939 #else
24940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24941 #endif
24942 }
24943 return resultobj;
24944 fail:
24945 return NULL;
24946 }
24947
24948
24949 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
24950 PyObject *resultobj = NULL;
24951 wxDateTime *arg1 = (wxDateTime *) 0 ;
24952 wxString result;
24953 PyObject * obj0 = 0 ;
24954 char *kwnames[] = {
24955 (char *) "self", NULL
24956 };
24957
24958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
24959 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24960 if (SWIG_arg_fail(1)) SWIG_fail;
24961 {
24962 PyThreadState* __tstate = wxPyBeginAllowThreads();
24963 result = ((wxDateTime const *)arg1)->FormatISODate();
24964
24965 wxPyEndAllowThreads(__tstate);
24966 if (PyErr_Occurred()) SWIG_fail;
24967 }
24968 {
24969 #if wxUSE_UNICODE
24970 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24971 #else
24972 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24973 #endif
24974 }
24975 return resultobj;
24976 fail:
24977 return NULL;
24978 }
24979
24980
24981 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
24982 PyObject *resultobj = NULL;
24983 wxDateTime *arg1 = (wxDateTime *) 0 ;
24984 wxString result;
24985 PyObject * obj0 = 0 ;
24986 char *kwnames[] = {
24987 (char *) "self", NULL
24988 };
24989
24990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
24991 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24992 if (SWIG_arg_fail(1)) SWIG_fail;
24993 {
24994 PyThreadState* __tstate = wxPyBeginAllowThreads();
24995 result = ((wxDateTime const *)arg1)->FormatISOTime();
24996
24997 wxPyEndAllowThreads(__tstate);
24998 if (PyErr_Occurred()) SWIG_fail;
24999 }
25000 {
25001 #if wxUSE_UNICODE
25002 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25003 #else
25004 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25005 #endif
25006 }
25007 return resultobj;
25008 fail:
25009 return NULL;
25010 }
25011
25012
25013 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
25014 PyObject *obj;
25015 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25016 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
25017 Py_INCREF(obj);
25018 return Py_BuildValue((char *)"");
25019 }
25020 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
25021 PyObject *resultobj = NULL;
25022 long arg1 ;
25023 wxTimeSpan result;
25024 PyObject * obj0 = 0 ;
25025 char *kwnames[] = {
25026 (char *) "sec", NULL
25027 };
25028
25029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
25030 {
25031 arg1 = static_cast<long >(SWIG_As_long(obj0));
25032 if (SWIG_arg_fail(1)) SWIG_fail;
25033 }
25034 {
25035 PyThreadState* __tstate = wxPyBeginAllowThreads();
25036 result = wxTimeSpan::Seconds(arg1);
25037
25038 wxPyEndAllowThreads(__tstate);
25039 if (PyErr_Occurred()) SWIG_fail;
25040 }
25041 {
25042 wxTimeSpan * resultptr;
25043 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25045 }
25046 return resultobj;
25047 fail:
25048 return NULL;
25049 }
25050
25051
25052 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
25053 PyObject *resultobj = NULL;
25054 wxTimeSpan result;
25055 char *kwnames[] = {
25056 NULL
25057 };
25058
25059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
25060 {
25061 PyThreadState* __tstate = wxPyBeginAllowThreads();
25062 result = wxTimeSpan::Second();
25063
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 {
25068 wxTimeSpan * resultptr;
25069 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25070 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25071 }
25072 return resultobj;
25073 fail:
25074 return NULL;
25075 }
25076
25077
25078 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
25079 PyObject *resultobj = NULL;
25080 long arg1 ;
25081 wxTimeSpan result;
25082 PyObject * obj0 = 0 ;
25083 char *kwnames[] = {
25084 (char *) "min", NULL
25085 };
25086
25087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
25088 {
25089 arg1 = static_cast<long >(SWIG_As_long(obj0));
25090 if (SWIG_arg_fail(1)) SWIG_fail;
25091 }
25092 {
25093 PyThreadState* __tstate = wxPyBeginAllowThreads();
25094 result = wxTimeSpan::Minutes(arg1);
25095
25096 wxPyEndAllowThreads(__tstate);
25097 if (PyErr_Occurred()) SWIG_fail;
25098 }
25099 {
25100 wxTimeSpan * resultptr;
25101 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25102 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25103 }
25104 return resultobj;
25105 fail:
25106 return NULL;
25107 }
25108
25109
25110 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj = NULL;
25112 wxTimeSpan result;
25113 char *kwnames[] = {
25114 NULL
25115 };
25116
25117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
25118 {
25119 PyThreadState* __tstate = wxPyBeginAllowThreads();
25120 result = wxTimeSpan::Minute();
25121
25122 wxPyEndAllowThreads(__tstate);
25123 if (PyErr_Occurred()) SWIG_fail;
25124 }
25125 {
25126 wxTimeSpan * resultptr;
25127 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25128 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25129 }
25130 return resultobj;
25131 fail:
25132 return NULL;
25133 }
25134
25135
25136 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
25137 PyObject *resultobj = NULL;
25138 long arg1 ;
25139 wxTimeSpan result;
25140 PyObject * obj0 = 0 ;
25141 char *kwnames[] = {
25142 (char *) "hours", NULL
25143 };
25144
25145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
25146 {
25147 arg1 = static_cast<long >(SWIG_As_long(obj0));
25148 if (SWIG_arg_fail(1)) SWIG_fail;
25149 }
25150 {
25151 PyThreadState* __tstate = wxPyBeginAllowThreads();
25152 result = wxTimeSpan::Hours(arg1);
25153
25154 wxPyEndAllowThreads(__tstate);
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 {
25158 wxTimeSpan * resultptr;
25159 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25160 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25161 }
25162 return resultobj;
25163 fail:
25164 return NULL;
25165 }
25166
25167
25168 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
25169 PyObject *resultobj = NULL;
25170 wxTimeSpan result;
25171 char *kwnames[] = {
25172 NULL
25173 };
25174
25175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
25176 {
25177 PyThreadState* __tstate = wxPyBeginAllowThreads();
25178 result = wxTimeSpan::Hour();
25179
25180 wxPyEndAllowThreads(__tstate);
25181 if (PyErr_Occurred()) SWIG_fail;
25182 }
25183 {
25184 wxTimeSpan * resultptr;
25185 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25187 }
25188 return resultobj;
25189 fail:
25190 return NULL;
25191 }
25192
25193
25194 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
25195 PyObject *resultobj = NULL;
25196 long arg1 ;
25197 wxTimeSpan result;
25198 PyObject * obj0 = 0 ;
25199 char *kwnames[] = {
25200 (char *) "days", NULL
25201 };
25202
25203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
25204 {
25205 arg1 = static_cast<long >(SWIG_As_long(obj0));
25206 if (SWIG_arg_fail(1)) SWIG_fail;
25207 }
25208 {
25209 PyThreadState* __tstate = wxPyBeginAllowThreads();
25210 result = wxTimeSpan::Days(arg1);
25211
25212 wxPyEndAllowThreads(__tstate);
25213 if (PyErr_Occurred()) SWIG_fail;
25214 }
25215 {
25216 wxTimeSpan * resultptr;
25217 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25219 }
25220 return resultobj;
25221 fail:
25222 return NULL;
25223 }
25224
25225
25226 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
25227 PyObject *resultobj = NULL;
25228 wxTimeSpan result;
25229 char *kwnames[] = {
25230 NULL
25231 };
25232
25233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
25234 {
25235 PyThreadState* __tstate = wxPyBeginAllowThreads();
25236 result = wxTimeSpan::Day();
25237
25238 wxPyEndAllowThreads(__tstate);
25239 if (PyErr_Occurred()) SWIG_fail;
25240 }
25241 {
25242 wxTimeSpan * resultptr;
25243 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25245 }
25246 return resultobj;
25247 fail:
25248 return NULL;
25249 }
25250
25251
25252 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
25253 PyObject *resultobj = NULL;
25254 long arg1 ;
25255 wxTimeSpan result;
25256 PyObject * obj0 = 0 ;
25257 char *kwnames[] = {
25258 (char *) "days", NULL
25259 };
25260
25261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
25262 {
25263 arg1 = static_cast<long >(SWIG_As_long(obj0));
25264 if (SWIG_arg_fail(1)) SWIG_fail;
25265 }
25266 {
25267 PyThreadState* __tstate = wxPyBeginAllowThreads();
25268 result = wxTimeSpan::Weeks(arg1);
25269
25270 wxPyEndAllowThreads(__tstate);
25271 if (PyErr_Occurred()) SWIG_fail;
25272 }
25273 {
25274 wxTimeSpan * resultptr;
25275 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25276 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25277 }
25278 return resultobj;
25279 fail:
25280 return NULL;
25281 }
25282
25283
25284 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
25285 PyObject *resultobj = NULL;
25286 wxTimeSpan result;
25287 char *kwnames[] = {
25288 NULL
25289 };
25290
25291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
25292 {
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 result = wxTimeSpan::Week();
25295
25296 wxPyEndAllowThreads(__tstate);
25297 if (PyErr_Occurred()) SWIG_fail;
25298 }
25299 {
25300 wxTimeSpan * resultptr;
25301 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25302 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25303 }
25304 return resultobj;
25305 fail:
25306 return NULL;
25307 }
25308
25309
25310 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
25311 PyObject *resultobj = NULL;
25312 long arg1 = (long) 0 ;
25313 long arg2 = (long) 0 ;
25314 long arg3 = (long) 0 ;
25315 long arg4 = (long) 0 ;
25316 wxTimeSpan *result;
25317 PyObject * obj0 = 0 ;
25318 PyObject * obj1 = 0 ;
25319 PyObject * obj2 = 0 ;
25320 PyObject * obj3 = 0 ;
25321 char *kwnames[] = {
25322 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
25323 };
25324
25325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25326 if (obj0) {
25327 {
25328 arg1 = static_cast<long >(SWIG_As_long(obj0));
25329 if (SWIG_arg_fail(1)) SWIG_fail;
25330 }
25331 }
25332 if (obj1) {
25333 {
25334 arg2 = static_cast<long >(SWIG_As_long(obj1));
25335 if (SWIG_arg_fail(2)) SWIG_fail;
25336 }
25337 }
25338 if (obj2) {
25339 {
25340 arg3 = static_cast<long >(SWIG_As_long(obj2));
25341 if (SWIG_arg_fail(3)) SWIG_fail;
25342 }
25343 }
25344 if (obj3) {
25345 {
25346 arg4 = static_cast<long >(SWIG_As_long(obj3));
25347 if (SWIG_arg_fail(4)) SWIG_fail;
25348 }
25349 }
25350 {
25351 PyThreadState* __tstate = wxPyBeginAllowThreads();
25352 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
25353
25354 wxPyEndAllowThreads(__tstate);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25358 return resultobj;
25359 fail:
25360 return NULL;
25361 }
25362
25363
25364 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
25365 PyObject *resultobj = NULL;
25366 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25367 PyObject * obj0 = 0 ;
25368 char *kwnames[] = {
25369 (char *) "self", NULL
25370 };
25371
25372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
25373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25374 if (SWIG_arg_fail(1)) SWIG_fail;
25375 {
25376 PyThreadState* __tstate = wxPyBeginAllowThreads();
25377 delete arg1;
25378
25379 wxPyEndAllowThreads(__tstate);
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 Py_INCREF(Py_None); resultobj = Py_None;
25383 return resultobj;
25384 fail:
25385 return NULL;
25386 }
25387
25388
25389 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
25390 PyObject *resultobj = NULL;
25391 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25392 wxTimeSpan *arg2 = 0 ;
25393 wxTimeSpan *result;
25394 PyObject * obj0 = 0 ;
25395 PyObject * obj1 = 0 ;
25396 char *kwnames[] = {
25397 (char *) "self",(char *) "diff", NULL
25398 };
25399
25400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
25401 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25402 if (SWIG_arg_fail(1)) SWIG_fail;
25403 {
25404 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25405 if (SWIG_arg_fail(2)) SWIG_fail;
25406 if (arg2 == NULL) {
25407 SWIG_null_ref("wxTimeSpan");
25408 }
25409 if (SWIG_arg_fail(2)) SWIG_fail;
25410 }
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 {
25414 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
25415 result = (wxTimeSpan *) &_result_ref;
25416 }
25417
25418 wxPyEndAllowThreads(__tstate);
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
25421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25422 return resultobj;
25423 fail:
25424 return NULL;
25425 }
25426
25427
25428 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
25429 PyObject *resultobj = NULL;
25430 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25431 wxTimeSpan *arg2 = 0 ;
25432 wxTimeSpan *result;
25433 PyObject * obj0 = 0 ;
25434 PyObject * obj1 = 0 ;
25435 char *kwnames[] = {
25436 (char *) "self",(char *) "diff", NULL
25437 };
25438
25439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
25440 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25441 if (SWIG_arg_fail(1)) SWIG_fail;
25442 {
25443 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25444 if (SWIG_arg_fail(2)) SWIG_fail;
25445 if (arg2 == NULL) {
25446 SWIG_null_ref("wxTimeSpan");
25447 }
25448 if (SWIG_arg_fail(2)) SWIG_fail;
25449 }
25450 {
25451 PyThreadState* __tstate = wxPyBeginAllowThreads();
25452 {
25453 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
25454 result = (wxTimeSpan *) &_result_ref;
25455 }
25456
25457 wxPyEndAllowThreads(__tstate);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25461 return resultobj;
25462 fail:
25463 return NULL;
25464 }
25465
25466
25467 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
25468 PyObject *resultobj = NULL;
25469 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25470 int arg2 ;
25471 wxTimeSpan *result;
25472 PyObject * obj0 = 0 ;
25473 PyObject * obj1 = 0 ;
25474 char *kwnames[] = {
25475 (char *) "self",(char *) "n", NULL
25476 };
25477
25478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
25479 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25480 if (SWIG_arg_fail(1)) SWIG_fail;
25481 {
25482 arg2 = static_cast<int >(SWIG_As_int(obj1));
25483 if (SWIG_arg_fail(2)) SWIG_fail;
25484 }
25485 {
25486 PyThreadState* __tstate = wxPyBeginAllowThreads();
25487 {
25488 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
25489 result = (wxTimeSpan *) &_result_ref;
25490 }
25491
25492 wxPyEndAllowThreads(__tstate);
25493 if (PyErr_Occurred()) SWIG_fail;
25494 }
25495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25496 return resultobj;
25497 fail:
25498 return NULL;
25499 }
25500
25501
25502 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
25503 PyObject *resultobj = NULL;
25504 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25505 wxTimeSpan *result;
25506 PyObject * obj0 = 0 ;
25507 char *kwnames[] = {
25508 (char *) "self", NULL
25509 };
25510
25511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
25512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25513 if (SWIG_arg_fail(1)) SWIG_fail;
25514 {
25515 PyThreadState* __tstate = wxPyBeginAllowThreads();
25516 {
25517 wxTimeSpan &_result_ref = (arg1)->Neg();
25518 result = (wxTimeSpan *) &_result_ref;
25519 }
25520
25521 wxPyEndAllowThreads(__tstate);
25522 if (PyErr_Occurred()) SWIG_fail;
25523 }
25524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25525 return resultobj;
25526 fail:
25527 return NULL;
25528 }
25529
25530
25531 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
25532 PyObject *resultobj = NULL;
25533 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25534 wxTimeSpan result;
25535 PyObject * obj0 = 0 ;
25536 char *kwnames[] = {
25537 (char *) "self", NULL
25538 };
25539
25540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
25541 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25542 if (SWIG_arg_fail(1)) SWIG_fail;
25543 {
25544 PyThreadState* __tstate = wxPyBeginAllowThreads();
25545 result = ((wxTimeSpan const *)arg1)->Abs();
25546
25547 wxPyEndAllowThreads(__tstate);
25548 if (PyErr_Occurred()) SWIG_fail;
25549 }
25550 {
25551 wxTimeSpan * resultptr;
25552 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25553 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25554 }
25555 return resultobj;
25556 fail:
25557 return NULL;
25558 }
25559
25560
25561 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
25562 PyObject *resultobj = NULL;
25563 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25564 wxTimeSpan *arg2 = 0 ;
25565 wxTimeSpan *result;
25566 PyObject * obj0 = 0 ;
25567 PyObject * obj1 = 0 ;
25568 char *kwnames[] = {
25569 (char *) "self",(char *) "diff", NULL
25570 };
25571
25572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
25573 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25574 if (SWIG_arg_fail(1)) SWIG_fail;
25575 {
25576 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25577 if (SWIG_arg_fail(2)) SWIG_fail;
25578 if (arg2 == NULL) {
25579 SWIG_null_ref("wxTimeSpan");
25580 }
25581 if (SWIG_arg_fail(2)) SWIG_fail;
25582 }
25583 {
25584 PyThreadState* __tstate = wxPyBeginAllowThreads();
25585 {
25586 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
25587 result = (wxTimeSpan *) &_result_ref;
25588 }
25589
25590 wxPyEndAllowThreads(__tstate);
25591 if (PyErr_Occurred()) SWIG_fail;
25592 }
25593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25594 return resultobj;
25595 fail:
25596 return NULL;
25597 }
25598
25599
25600 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
25601 PyObject *resultobj = NULL;
25602 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25603 wxTimeSpan *arg2 = 0 ;
25604 wxTimeSpan *result;
25605 PyObject * obj0 = 0 ;
25606 PyObject * obj1 = 0 ;
25607 char *kwnames[] = {
25608 (char *) "self",(char *) "diff", NULL
25609 };
25610
25611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
25612 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25613 if (SWIG_arg_fail(1)) SWIG_fail;
25614 {
25615 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25616 if (SWIG_arg_fail(2)) SWIG_fail;
25617 if (arg2 == NULL) {
25618 SWIG_null_ref("wxTimeSpan");
25619 }
25620 if (SWIG_arg_fail(2)) SWIG_fail;
25621 }
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 {
25625 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
25626 result = (wxTimeSpan *) &_result_ref;
25627 }
25628
25629 wxPyEndAllowThreads(__tstate);
25630 if (PyErr_Occurred()) SWIG_fail;
25631 }
25632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25633 return resultobj;
25634 fail:
25635 return NULL;
25636 }
25637
25638
25639 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
25640 PyObject *resultobj = NULL;
25641 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25642 int arg2 ;
25643 wxTimeSpan *result;
25644 PyObject * obj0 = 0 ;
25645 PyObject * obj1 = 0 ;
25646 char *kwnames[] = {
25647 (char *) "self",(char *) "n", NULL
25648 };
25649
25650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
25651 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25652 if (SWIG_arg_fail(1)) SWIG_fail;
25653 {
25654 arg2 = static_cast<int >(SWIG_As_int(obj1));
25655 if (SWIG_arg_fail(2)) SWIG_fail;
25656 }
25657 {
25658 PyThreadState* __tstate = wxPyBeginAllowThreads();
25659 {
25660 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
25661 result = (wxTimeSpan *) &_result_ref;
25662 }
25663
25664 wxPyEndAllowThreads(__tstate);
25665 if (PyErr_Occurred()) SWIG_fail;
25666 }
25667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25668 return resultobj;
25669 fail:
25670 return NULL;
25671 }
25672
25673
25674 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
25675 PyObject *resultobj = NULL;
25676 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25677 wxTimeSpan *result;
25678 PyObject * obj0 = 0 ;
25679 char *kwnames[] = {
25680 (char *) "self", NULL
25681 };
25682
25683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
25684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25685 if (SWIG_arg_fail(1)) SWIG_fail;
25686 {
25687 PyThreadState* __tstate = wxPyBeginAllowThreads();
25688 {
25689 wxTimeSpan &_result_ref = (arg1)->operator -();
25690 result = (wxTimeSpan *) &_result_ref;
25691 }
25692
25693 wxPyEndAllowThreads(__tstate);
25694 if (PyErr_Occurred()) SWIG_fail;
25695 }
25696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25697 return resultobj;
25698 fail:
25699 return NULL;
25700 }
25701
25702
25703 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
25704 PyObject *resultobj = NULL;
25705 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25706 wxTimeSpan *arg2 = 0 ;
25707 wxTimeSpan result;
25708 PyObject * obj0 = 0 ;
25709 PyObject * obj1 = 0 ;
25710 char *kwnames[] = {
25711 (char *) "self",(char *) "other", NULL
25712 };
25713
25714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
25715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25716 if (SWIG_arg_fail(1)) SWIG_fail;
25717 {
25718 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25719 if (SWIG_arg_fail(2)) SWIG_fail;
25720 if (arg2 == NULL) {
25721 SWIG_null_ref("wxTimeSpan");
25722 }
25723 if (SWIG_arg_fail(2)) SWIG_fail;
25724 }
25725 {
25726 PyThreadState* __tstate = wxPyBeginAllowThreads();
25727 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
25728
25729 wxPyEndAllowThreads(__tstate);
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 {
25733 wxTimeSpan * resultptr;
25734 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25736 }
25737 return resultobj;
25738 fail:
25739 return NULL;
25740 }
25741
25742
25743 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
25744 PyObject *resultobj = NULL;
25745 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25746 wxTimeSpan *arg2 = 0 ;
25747 wxTimeSpan result;
25748 PyObject * obj0 = 0 ;
25749 PyObject * obj1 = 0 ;
25750 char *kwnames[] = {
25751 (char *) "self",(char *) "other", NULL
25752 };
25753
25754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
25755 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25756 if (SWIG_arg_fail(1)) SWIG_fail;
25757 {
25758 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25759 if (SWIG_arg_fail(2)) SWIG_fail;
25760 if (arg2 == NULL) {
25761 SWIG_null_ref("wxTimeSpan");
25762 }
25763 if (SWIG_arg_fail(2)) SWIG_fail;
25764 }
25765 {
25766 PyThreadState* __tstate = wxPyBeginAllowThreads();
25767 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
25768
25769 wxPyEndAllowThreads(__tstate);
25770 if (PyErr_Occurred()) SWIG_fail;
25771 }
25772 {
25773 wxTimeSpan * resultptr;
25774 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25775 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25776 }
25777 return resultobj;
25778 fail:
25779 return NULL;
25780 }
25781
25782
25783 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
25784 PyObject *resultobj = NULL;
25785 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25786 int arg2 ;
25787 wxTimeSpan result;
25788 PyObject * obj0 = 0 ;
25789 PyObject * obj1 = 0 ;
25790 char *kwnames[] = {
25791 (char *) "self",(char *) "n", NULL
25792 };
25793
25794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
25795 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25796 if (SWIG_arg_fail(1)) SWIG_fail;
25797 {
25798 arg2 = static_cast<int >(SWIG_As_int(obj1));
25799 if (SWIG_arg_fail(2)) SWIG_fail;
25800 }
25801 {
25802 PyThreadState* __tstate = wxPyBeginAllowThreads();
25803 result = wxTimeSpan___mul__(arg1,arg2);
25804
25805 wxPyEndAllowThreads(__tstate);
25806 if (PyErr_Occurred()) SWIG_fail;
25807 }
25808 {
25809 wxTimeSpan * resultptr;
25810 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25812 }
25813 return resultobj;
25814 fail:
25815 return NULL;
25816 }
25817
25818
25819 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
25820 PyObject *resultobj = NULL;
25821 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25822 int arg2 ;
25823 wxTimeSpan result;
25824 PyObject * obj0 = 0 ;
25825 PyObject * obj1 = 0 ;
25826 char *kwnames[] = {
25827 (char *) "self",(char *) "n", NULL
25828 };
25829
25830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
25831 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25832 if (SWIG_arg_fail(1)) SWIG_fail;
25833 {
25834 arg2 = static_cast<int >(SWIG_As_int(obj1));
25835 if (SWIG_arg_fail(2)) SWIG_fail;
25836 }
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 result = wxTimeSpan___rmul__(arg1,arg2);
25840
25841 wxPyEndAllowThreads(__tstate);
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 {
25845 wxTimeSpan * resultptr;
25846 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25848 }
25849 return resultobj;
25850 fail:
25851 return NULL;
25852 }
25853
25854
25855 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
25856 PyObject *resultobj = NULL;
25857 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25858 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25859 bool result;
25860 PyObject * obj0 = 0 ;
25861 PyObject * obj1 = 0 ;
25862 char *kwnames[] = {
25863 (char *) "self",(char *) "other", NULL
25864 };
25865
25866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
25867 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25868 if (SWIG_arg_fail(1)) SWIG_fail;
25869 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25870 if (SWIG_arg_fail(2)) SWIG_fail;
25871 {
25872 PyThreadState* __tstate = wxPyBeginAllowThreads();
25873 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
25874
25875 wxPyEndAllowThreads(__tstate);
25876 if (PyErr_Occurred()) SWIG_fail;
25877 }
25878 {
25879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25880 }
25881 return resultobj;
25882 fail:
25883 return NULL;
25884 }
25885
25886
25887 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
25888 PyObject *resultobj = NULL;
25889 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25890 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25891 bool result;
25892 PyObject * obj0 = 0 ;
25893 PyObject * obj1 = 0 ;
25894 char *kwnames[] = {
25895 (char *) "self",(char *) "other", NULL
25896 };
25897
25898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
25899 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25900 if (SWIG_arg_fail(1)) SWIG_fail;
25901 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25902 if (SWIG_arg_fail(2)) SWIG_fail;
25903 {
25904 PyThreadState* __tstate = wxPyBeginAllowThreads();
25905 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
25906
25907 wxPyEndAllowThreads(__tstate);
25908 if (PyErr_Occurred()) SWIG_fail;
25909 }
25910 {
25911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25912 }
25913 return resultobj;
25914 fail:
25915 return NULL;
25916 }
25917
25918
25919 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
25920 PyObject *resultobj = NULL;
25921 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25922 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25923 bool result;
25924 PyObject * obj0 = 0 ;
25925 PyObject * obj1 = 0 ;
25926 char *kwnames[] = {
25927 (char *) "self",(char *) "other", NULL
25928 };
25929
25930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
25931 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25932 if (SWIG_arg_fail(1)) SWIG_fail;
25933 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25934 if (SWIG_arg_fail(2)) SWIG_fail;
25935 {
25936 PyThreadState* __tstate = wxPyBeginAllowThreads();
25937 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
25938
25939 wxPyEndAllowThreads(__tstate);
25940 if (PyErr_Occurred()) SWIG_fail;
25941 }
25942 {
25943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25944 }
25945 return resultobj;
25946 fail:
25947 return NULL;
25948 }
25949
25950
25951 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
25952 PyObject *resultobj = NULL;
25953 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25954 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25955 bool result;
25956 PyObject * obj0 = 0 ;
25957 PyObject * obj1 = 0 ;
25958 char *kwnames[] = {
25959 (char *) "self",(char *) "other", NULL
25960 };
25961
25962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
25963 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25964 if (SWIG_arg_fail(1)) SWIG_fail;
25965 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25966 if (SWIG_arg_fail(2)) SWIG_fail;
25967 {
25968 PyThreadState* __tstate = wxPyBeginAllowThreads();
25969 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
25970
25971 wxPyEndAllowThreads(__tstate);
25972 if (PyErr_Occurred()) SWIG_fail;
25973 }
25974 {
25975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25976 }
25977 return resultobj;
25978 fail:
25979 return NULL;
25980 }
25981
25982
25983 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
25984 PyObject *resultobj = NULL;
25985 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25986 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
25987 bool result;
25988 PyObject * obj0 = 0 ;
25989 PyObject * obj1 = 0 ;
25990 char *kwnames[] = {
25991 (char *) "self",(char *) "other", NULL
25992 };
25993
25994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
25995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25996 if (SWIG_arg_fail(1)) SWIG_fail;
25997 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25998 if (SWIG_arg_fail(2)) SWIG_fail;
25999 {
26000 PyThreadState* __tstate = wxPyBeginAllowThreads();
26001 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
26002
26003 wxPyEndAllowThreads(__tstate);
26004 if (PyErr_Occurred()) SWIG_fail;
26005 }
26006 {
26007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26008 }
26009 return resultobj;
26010 fail:
26011 return NULL;
26012 }
26013
26014
26015 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
26016 PyObject *resultobj = NULL;
26017 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26018 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
26019 bool result;
26020 PyObject * obj0 = 0 ;
26021 PyObject * obj1 = 0 ;
26022 char *kwnames[] = {
26023 (char *) "self",(char *) "other", NULL
26024 };
26025
26026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
26027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26028 if (SWIG_arg_fail(1)) SWIG_fail;
26029 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26030 if (SWIG_arg_fail(2)) SWIG_fail;
26031 {
26032 PyThreadState* __tstate = wxPyBeginAllowThreads();
26033 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
26034
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 {
26039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26040 }
26041 return resultobj;
26042 fail:
26043 return NULL;
26044 }
26045
26046
26047 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
26048 PyObject *resultobj = NULL;
26049 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26050 bool result;
26051 PyObject * obj0 = 0 ;
26052 char *kwnames[] = {
26053 (char *) "self", NULL
26054 };
26055
26056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
26057 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26058 if (SWIG_arg_fail(1)) SWIG_fail;
26059 {
26060 PyThreadState* __tstate = wxPyBeginAllowThreads();
26061 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
26062
26063 wxPyEndAllowThreads(__tstate);
26064 if (PyErr_Occurred()) SWIG_fail;
26065 }
26066 {
26067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26068 }
26069 return resultobj;
26070 fail:
26071 return NULL;
26072 }
26073
26074
26075 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
26076 PyObject *resultobj = NULL;
26077 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26078 bool result;
26079 PyObject * obj0 = 0 ;
26080 char *kwnames[] = {
26081 (char *) "self", NULL
26082 };
26083
26084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
26085 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26086 if (SWIG_arg_fail(1)) SWIG_fail;
26087 {
26088 PyThreadState* __tstate = wxPyBeginAllowThreads();
26089 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
26090
26091 wxPyEndAllowThreads(__tstate);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 }
26094 {
26095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26096 }
26097 return resultobj;
26098 fail:
26099 return NULL;
26100 }
26101
26102
26103 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
26104 PyObject *resultobj = NULL;
26105 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26106 bool result;
26107 PyObject * obj0 = 0 ;
26108 char *kwnames[] = {
26109 (char *) "self", NULL
26110 };
26111
26112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
26113 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26114 if (SWIG_arg_fail(1)) SWIG_fail;
26115 {
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
26118
26119 wxPyEndAllowThreads(__tstate);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 {
26123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26124 }
26125 return resultobj;
26126 fail:
26127 return NULL;
26128 }
26129
26130
26131 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
26132 PyObject *resultobj = NULL;
26133 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26134 wxTimeSpan *arg2 = 0 ;
26135 bool result;
26136 PyObject * obj0 = 0 ;
26137 PyObject * obj1 = 0 ;
26138 char *kwnames[] = {
26139 (char *) "self",(char *) "ts", NULL
26140 };
26141
26142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
26143 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26144 if (SWIG_arg_fail(1)) SWIG_fail;
26145 {
26146 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26147 if (SWIG_arg_fail(2)) SWIG_fail;
26148 if (arg2 == NULL) {
26149 SWIG_null_ref("wxTimeSpan");
26150 }
26151 if (SWIG_arg_fail(2)) SWIG_fail;
26152 }
26153 {
26154 PyThreadState* __tstate = wxPyBeginAllowThreads();
26155 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
26156
26157 wxPyEndAllowThreads(__tstate);
26158 if (PyErr_Occurred()) SWIG_fail;
26159 }
26160 {
26161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26162 }
26163 return resultobj;
26164 fail:
26165 return NULL;
26166 }
26167
26168
26169 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
26170 PyObject *resultobj = NULL;
26171 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26172 wxTimeSpan *arg2 = 0 ;
26173 bool result;
26174 PyObject * obj0 = 0 ;
26175 PyObject * obj1 = 0 ;
26176 char *kwnames[] = {
26177 (char *) "self",(char *) "ts", NULL
26178 };
26179
26180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
26181 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26182 if (SWIG_arg_fail(1)) SWIG_fail;
26183 {
26184 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26185 if (SWIG_arg_fail(2)) SWIG_fail;
26186 if (arg2 == NULL) {
26187 SWIG_null_ref("wxTimeSpan");
26188 }
26189 if (SWIG_arg_fail(2)) SWIG_fail;
26190 }
26191 {
26192 PyThreadState* __tstate = wxPyBeginAllowThreads();
26193 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
26194
26195 wxPyEndAllowThreads(__tstate);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 }
26198 {
26199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26200 }
26201 return resultobj;
26202 fail:
26203 return NULL;
26204 }
26205
26206
26207 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
26208 PyObject *resultobj = NULL;
26209 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26210 wxTimeSpan *arg2 = 0 ;
26211 bool result;
26212 PyObject * obj0 = 0 ;
26213 PyObject * obj1 = 0 ;
26214 char *kwnames[] = {
26215 (char *) "self",(char *) "t", NULL
26216 };
26217
26218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
26219 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26220 if (SWIG_arg_fail(1)) SWIG_fail;
26221 {
26222 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26223 if (SWIG_arg_fail(2)) SWIG_fail;
26224 if (arg2 == NULL) {
26225 SWIG_null_ref("wxTimeSpan");
26226 }
26227 if (SWIG_arg_fail(2)) SWIG_fail;
26228 }
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
26232
26233 wxPyEndAllowThreads(__tstate);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 {
26237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26238 }
26239 return resultobj;
26240 fail:
26241 return NULL;
26242 }
26243
26244
26245 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
26246 PyObject *resultobj = NULL;
26247 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26248 int result;
26249 PyObject * obj0 = 0 ;
26250 char *kwnames[] = {
26251 (char *) "self", NULL
26252 };
26253
26254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
26255 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26256 if (SWIG_arg_fail(1)) SWIG_fail;
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
26260
26261 wxPyEndAllowThreads(__tstate);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 {
26265 resultobj = SWIG_From_int(static_cast<int >(result));
26266 }
26267 return resultobj;
26268 fail:
26269 return NULL;
26270 }
26271
26272
26273 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
26274 PyObject *resultobj = NULL;
26275 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26276 int result;
26277 PyObject * obj0 = 0 ;
26278 char *kwnames[] = {
26279 (char *) "self", NULL
26280 };
26281
26282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
26283 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26284 if (SWIG_arg_fail(1)) SWIG_fail;
26285 {
26286 PyThreadState* __tstate = wxPyBeginAllowThreads();
26287 result = (int)((wxTimeSpan const *)arg1)->GetDays();
26288
26289 wxPyEndAllowThreads(__tstate);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 {
26293 resultobj = SWIG_From_int(static_cast<int >(result));
26294 }
26295 return resultobj;
26296 fail:
26297 return NULL;
26298 }
26299
26300
26301 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
26302 PyObject *resultobj = NULL;
26303 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26304 int result;
26305 PyObject * obj0 = 0 ;
26306 char *kwnames[] = {
26307 (char *) "self", NULL
26308 };
26309
26310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
26311 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26312 if (SWIG_arg_fail(1)) SWIG_fail;
26313 {
26314 PyThreadState* __tstate = wxPyBeginAllowThreads();
26315 result = (int)((wxTimeSpan const *)arg1)->GetHours();
26316
26317 wxPyEndAllowThreads(__tstate);
26318 if (PyErr_Occurred()) SWIG_fail;
26319 }
26320 {
26321 resultobj = SWIG_From_int(static_cast<int >(result));
26322 }
26323 return resultobj;
26324 fail:
26325 return NULL;
26326 }
26327
26328
26329 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
26330 PyObject *resultobj = NULL;
26331 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26332 int result;
26333 PyObject * obj0 = 0 ;
26334 char *kwnames[] = {
26335 (char *) "self", NULL
26336 };
26337
26338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
26339 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26340 if (SWIG_arg_fail(1)) SWIG_fail;
26341 {
26342 PyThreadState* __tstate = wxPyBeginAllowThreads();
26343 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
26344
26345 wxPyEndAllowThreads(__tstate);
26346 if (PyErr_Occurred()) SWIG_fail;
26347 }
26348 {
26349 resultobj = SWIG_From_int(static_cast<int >(result));
26350 }
26351 return resultobj;
26352 fail:
26353 return NULL;
26354 }
26355
26356
26357 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
26358 PyObject *resultobj = NULL;
26359 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26360 wxLongLong result;
26361 PyObject * obj0 = 0 ;
26362 char *kwnames[] = {
26363 (char *) "self", NULL
26364 };
26365
26366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
26367 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26368 if (SWIG_arg_fail(1)) SWIG_fail;
26369 {
26370 PyThreadState* __tstate = wxPyBeginAllowThreads();
26371 result = ((wxTimeSpan const *)arg1)->GetSeconds();
26372
26373 wxPyEndAllowThreads(__tstate);
26374 if (PyErr_Occurred()) SWIG_fail;
26375 }
26376 {
26377 PyObject *hi, *lo, *shifter, *shifted;
26378 hi = PyLong_FromLong( (&result)->GetHi() );
26379 lo = PyLong_FromLong( (&result)->GetLo() );
26380 shifter = PyLong_FromLong(32);
26381 shifted = PyNumber_Lshift(hi, shifter);
26382 resultobj = PyNumber_Or(shifted, lo);
26383 Py_DECREF(hi);
26384 Py_DECREF(lo);
26385 Py_DECREF(shifter);
26386 Py_DECREF(shifted);
26387 }
26388 return resultobj;
26389 fail:
26390 return NULL;
26391 }
26392
26393
26394 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
26395 PyObject *resultobj = NULL;
26396 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26397 wxLongLong result;
26398 PyObject * obj0 = 0 ;
26399 char *kwnames[] = {
26400 (char *) "self", NULL
26401 };
26402
26403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",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 = ((wxTimeSpan const *)arg1)->GetMilliseconds();
26409
26410 wxPyEndAllowThreads(__tstate);
26411 if (PyErr_Occurred()) SWIG_fail;
26412 }
26413 {
26414 PyObject *hi, *lo, *shifter, *shifted;
26415 hi = PyLong_FromLong( (&result)->GetHi() );
26416 lo = PyLong_FromLong( (&result)->GetLo() );
26417 shifter = PyLong_FromLong(32);
26418 shifted = PyNumber_Lshift(hi, shifter);
26419 resultobj = PyNumber_Or(shifted, lo);
26420 Py_DECREF(hi);
26421 Py_DECREF(lo);
26422 Py_DECREF(shifter);
26423 Py_DECREF(shifted);
26424 }
26425 return resultobj;
26426 fail:
26427 return NULL;
26428 }
26429
26430
26431 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
26432 PyObject *resultobj = NULL;
26433 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26434 wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ;
26435 wxString *arg2 = (wxString *) &arg2_defvalue ;
26436 wxString result;
26437 bool temp2 = false ;
26438 PyObject * obj0 = 0 ;
26439 PyObject * obj1 = 0 ;
26440 char *kwnames[] = {
26441 (char *) "self",(char *) "format", NULL
26442 };
26443
26444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
26445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26446 if (SWIG_arg_fail(1)) SWIG_fail;
26447 if (obj1) {
26448 {
26449 arg2 = wxString_in_helper(obj1);
26450 if (arg2 == NULL) SWIG_fail;
26451 temp2 = true;
26452 }
26453 }
26454 {
26455 PyThreadState* __tstate = wxPyBeginAllowThreads();
26456 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
26457
26458 wxPyEndAllowThreads(__tstate);
26459 if (PyErr_Occurred()) SWIG_fail;
26460 }
26461 {
26462 #if wxUSE_UNICODE
26463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26464 #else
26465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26466 #endif
26467 }
26468 {
26469 if (temp2)
26470 delete arg2;
26471 }
26472 return resultobj;
26473 fail:
26474 {
26475 if (temp2)
26476 delete arg2;
26477 }
26478 return NULL;
26479 }
26480
26481
26482 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
26483 PyObject *obj;
26484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26485 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
26486 Py_INCREF(obj);
26487 return Py_BuildValue((char *)"");
26488 }
26489 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
26490 PyObject *resultobj = NULL;
26491 int arg1 = (int) 0 ;
26492 int arg2 = (int) 0 ;
26493 int arg3 = (int) 0 ;
26494 int arg4 = (int) 0 ;
26495 wxDateSpan *result;
26496 PyObject * obj0 = 0 ;
26497 PyObject * obj1 = 0 ;
26498 PyObject * obj2 = 0 ;
26499 PyObject * obj3 = 0 ;
26500 char *kwnames[] = {
26501 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
26502 };
26503
26504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26505 if (obj0) {
26506 {
26507 arg1 = static_cast<int >(SWIG_As_int(obj0));
26508 if (SWIG_arg_fail(1)) SWIG_fail;
26509 }
26510 }
26511 if (obj1) {
26512 {
26513 arg2 = static_cast<int >(SWIG_As_int(obj1));
26514 if (SWIG_arg_fail(2)) SWIG_fail;
26515 }
26516 }
26517 if (obj2) {
26518 {
26519 arg3 = static_cast<int >(SWIG_As_int(obj2));
26520 if (SWIG_arg_fail(3)) SWIG_fail;
26521 }
26522 }
26523 if (obj3) {
26524 {
26525 arg4 = static_cast<int >(SWIG_As_int(obj3));
26526 if (SWIG_arg_fail(4)) SWIG_fail;
26527 }
26528 }
26529 {
26530 PyThreadState* __tstate = wxPyBeginAllowThreads();
26531 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
26532
26533 wxPyEndAllowThreads(__tstate);
26534 if (PyErr_Occurred()) SWIG_fail;
26535 }
26536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
26537 return resultobj;
26538 fail:
26539 return NULL;
26540 }
26541
26542
26543 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
26544 PyObject *resultobj = NULL;
26545 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26546 PyObject * obj0 = 0 ;
26547 char *kwnames[] = {
26548 (char *) "self", NULL
26549 };
26550
26551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
26552 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26553 if (SWIG_arg_fail(1)) SWIG_fail;
26554 {
26555 PyThreadState* __tstate = wxPyBeginAllowThreads();
26556 delete arg1;
26557
26558 wxPyEndAllowThreads(__tstate);
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 Py_INCREF(Py_None); resultobj = Py_None;
26562 return resultobj;
26563 fail:
26564 return NULL;
26565 }
26566
26567
26568 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
26569 PyObject *resultobj = NULL;
26570 int arg1 ;
26571 wxDateSpan result;
26572 PyObject * obj0 = 0 ;
26573 char *kwnames[] = {
26574 (char *) "days", NULL
26575 };
26576
26577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
26578 {
26579 arg1 = static_cast<int >(SWIG_As_int(obj0));
26580 if (SWIG_arg_fail(1)) SWIG_fail;
26581 }
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 result = wxDateSpan::Days(arg1);
26585
26586 wxPyEndAllowThreads(__tstate);
26587 if (PyErr_Occurred()) SWIG_fail;
26588 }
26589 {
26590 wxDateSpan * resultptr;
26591 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26592 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26593 }
26594 return resultobj;
26595 fail:
26596 return NULL;
26597 }
26598
26599
26600 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
26601 PyObject *resultobj = NULL;
26602 wxDateSpan result;
26603 char *kwnames[] = {
26604 NULL
26605 };
26606
26607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
26608 {
26609 PyThreadState* __tstate = wxPyBeginAllowThreads();
26610 result = wxDateSpan::Day();
26611
26612 wxPyEndAllowThreads(__tstate);
26613 if (PyErr_Occurred()) SWIG_fail;
26614 }
26615 {
26616 wxDateSpan * resultptr;
26617 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26618 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26619 }
26620 return resultobj;
26621 fail:
26622 return NULL;
26623 }
26624
26625
26626 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
26627 PyObject *resultobj = NULL;
26628 int arg1 ;
26629 wxDateSpan result;
26630 PyObject * obj0 = 0 ;
26631 char *kwnames[] = {
26632 (char *) "weeks", NULL
26633 };
26634
26635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
26636 {
26637 arg1 = static_cast<int >(SWIG_As_int(obj0));
26638 if (SWIG_arg_fail(1)) SWIG_fail;
26639 }
26640 {
26641 PyThreadState* __tstate = wxPyBeginAllowThreads();
26642 result = wxDateSpan::Weeks(arg1);
26643
26644 wxPyEndAllowThreads(__tstate);
26645 if (PyErr_Occurred()) SWIG_fail;
26646 }
26647 {
26648 wxDateSpan * resultptr;
26649 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26650 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26651 }
26652 return resultobj;
26653 fail:
26654 return NULL;
26655 }
26656
26657
26658 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
26659 PyObject *resultobj = NULL;
26660 wxDateSpan result;
26661 char *kwnames[] = {
26662 NULL
26663 };
26664
26665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
26666 {
26667 PyThreadState* __tstate = wxPyBeginAllowThreads();
26668 result = wxDateSpan::Week();
26669
26670 wxPyEndAllowThreads(__tstate);
26671 if (PyErr_Occurred()) SWIG_fail;
26672 }
26673 {
26674 wxDateSpan * resultptr;
26675 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26676 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26677 }
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj = NULL;
26686 int arg1 ;
26687 wxDateSpan result;
26688 PyObject * obj0 = 0 ;
26689 char *kwnames[] = {
26690 (char *) "mon", NULL
26691 };
26692
26693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
26694 {
26695 arg1 = static_cast<int >(SWIG_As_int(obj0));
26696 if (SWIG_arg_fail(1)) SWIG_fail;
26697 }
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 result = wxDateSpan::Months(arg1);
26701
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 {
26706 wxDateSpan * resultptr;
26707 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26708 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26709 }
26710 return resultobj;
26711 fail:
26712 return NULL;
26713 }
26714
26715
26716 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj = NULL;
26718 wxDateSpan result;
26719 char *kwnames[] = {
26720 NULL
26721 };
26722
26723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
26724 {
26725 PyThreadState* __tstate = wxPyBeginAllowThreads();
26726 result = wxDateSpan::Month();
26727
26728 wxPyEndAllowThreads(__tstate);
26729 if (PyErr_Occurred()) SWIG_fail;
26730 }
26731 {
26732 wxDateSpan * resultptr;
26733 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26735 }
26736 return resultobj;
26737 fail:
26738 return NULL;
26739 }
26740
26741
26742 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
26743 PyObject *resultobj = NULL;
26744 int arg1 ;
26745 wxDateSpan result;
26746 PyObject * obj0 = 0 ;
26747 char *kwnames[] = {
26748 (char *) "years", NULL
26749 };
26750
26751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
26752 {
26753 arg1 = static_cast<int >(SWIG_As_int(obj0));
26754 if (SWIG_arg_fail(1)) SWIG_fail;
26755 }
26756 {
26757 PyThreadState* __tstate = wxPyBeginAllowThreads();
26758 result = wxDateSpan::Years(arg1);
26759
26760 wxPyEndAllowThreads(__tstate);
26761 if (PyErr_Occurred()) SWIG_fail;
26762 }
26763 {
26764 wxDateSpan * resultptr;
26765 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26767 }
26768 return resultobj;
26769 fail:
26770 return NULL;
26771 }
26772
26773
26774 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
26775 PyObject *resultobj = NULL;
26776 wxDateSpan result;
26777 char *kwnames[] = {
26778 NULL
26779 };
26780
26781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
26782 {
26783 PyThreadState* __tstate = wxPyBeginAllowThreads();
26784 result = wxDateSpan::Year();
26785
26786 wxPyEndAllowThreads(__tstate);
26787 if (PyErr_Occurred()) SWIG_fail;
26788 }
26789 {
26790 wxDateSpan * resultptr;
26791 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26793 }
26794 return resultobj;
26795 fail:
26796 return NULL;
26797 }
26798
26799
26800 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
26801 PyObject *resultobj = NULL;
26802 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26803 int arg2 ;
26804 wxDateSpan *result;
26805 PyObject * obj0 = 0 ;
26806 PyObject * obj1 = 0 ;
26807 char *kwnames[] = {
26808 (char *) "self",(char *) "n", NULL
26809 };
26810
26811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
26812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26813 if (SWIG_arg_fail(1)) SWIG_fail;
26814 {
26815 arg2 = static_cast<int >(SWIG_As_int(obj1));
26816 if (SWIG_arg_fail(2)) SWIG_fail;
26817 }
26818 {
26819 PyThreadState* __tstate = wxPyBeginAllowThreads();
26820 {
26821 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
26822 result = (wxDateSpan *) &_result_ref;
26823 }
26824
26825 wxPyEndAllowThreads(__tstate);
26826 if (PyErr_Occurred()) SWIG_fail;
26827 }
26828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26829 return resultobj;
26830 fail:
26831 return NULL;
26832 }
26833
26834
26835 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
26836 PyObject *resultobj = NULL;
26837 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26838 int arg2 ;
26839 wxDateSpan *result;
26840 PyObject * obj0 = 0 ;
26841 PyObject * obj1 = 0 ;
26842 char *kwnames[] = {
26843 (char *) "self",(char *) "n", NULL
26844 };
26845
26846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
26847 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26848 if (SWIG_arg_fail(1)) SWIG_fail;
26849 {
26850 arg2 = static_cast<int >(SWIG_As_int(obj1));
26851 if (SWIG_arg_fail(2)) SWIG_fail;
26852 }
26853 {
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 {
26856 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
26857 result = (wxDateSpan *) &_result_ref;
26858 }
26859
26860 wxPyEndAllowThreads(__tstate);
26861 if (PyErr_Occurred()) SWIG_fail;
26862 }
26863 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26864 return resultobj;
26865 fail:
26866 return NULL;
26867 }
26868
26869
26870 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
26871 PyObject *resultobj = NULL;
26872 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26873 int arg2 ;
26874 wxDateSpan *result;
26875 PyObject * obj0 = 0 ;
26876 PyObject * obj1 = 0 ;
26877 char *kwnames[] = {
26878 (char *) "self",(char *) "n", NULL
26879 };
26880
26881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
26882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26883 if (SWIG_arg_fail(1)) SWIG_fail;
26884 {
26885 arg2 = static_cast<int >(SWIG_As_int(obj1));
26886 if (SWIG_arg_fail(2)) SWIG_fail;
26887 }
26888 {
26889 PyThreadState* __tstate = wxPyBeginAllowThreads();
26890 {
26891 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
26892 result = (wxDateSpan *) &_result_ref;
26893 }
26894
26895 wxPyEndAllowThreads(__tstate);
26896 if (PyErr_Occurred()) SWIG_fail;
26897 }
26898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26899 return resultobj;
26900 fail:
26901 return NULL;
26902 }
26903
26904
26905 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
26906 PyObject *resultobj = NULL;
26907 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26908 int arg2 ;
26909 wxDateSpan *result;
26910 PyObject * obj0 = 0 ;
26911 PyObject * obj1 = 0 ;
26912 char *kwnames[] = {
26913 (char *) "self",(char *) "n", NULL
26914 };
26915
26916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
26917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26918 if (SWIG_arg_fail(1)) SWIG_fail;
26919 {
26920 arg2 = static_cast<int >(SWIG_As_int(obj1));
26921 if (SWIG_arg_fail(2)) SWIG_fail;
26922 }
26923 {
26924 PyThreadState* __tstate = wxPyBeginAllowThreads();
26925 {
26926 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
26927 result = (wxDateSpan *) &_result_ref;
26928 }
26929
26930 wxPyEndAllowThreads(__tstate);
26931 if (PyErr_Occurred()) SWIG_fail;
26932 }
26933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26934 return resultobj;
26935 fail:
26936 return NULL;
26937 }
26938
26939
26940 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
26941 PyObject *resultobj = NULL;
26942 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26943 int result;
26944 PyObject * obj0 = 0 ;
26945 char *kwnames[] = {
26946 (char *) "self", NULL
26947 };
26948
26949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
26950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26951 if (SWIG_arg_fail(1)) SWIG_fail;
26952 {
26953 PyThreadState* __tstate = wxPyBeginAllowThreads();
26954 result = (int)((wxDateSpan const *)arg1)->GetYears();
26955
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 {
26960 resultobj = SWIG_From_int(static_cast<int >(result));
26961 }
26962 return resultobj;
26963 fail:
26964 return NULL;
26965 }
26966
26967
26968 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
26969 PyObject *resultobj = NULL;
26970 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26971 int result;
26972 PyObject * obj0 = 0 ;
26973 char *kwnames[] = {
26974 (char *) "self", NULL
26975 };
26976
26977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
26978 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26979 if (SWIG_arg_fail(1)) SWIG_fail;
26980 {
26981 PyThreadState* __tstate = wxPyBeginAllowThreads();
26982 result = (int)((wxDateSpan const *)arg1)->GetMonths();
26983
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 {
26988 resultobj = SWIG_From_int(static_cast<int >(result));
26989 }
26990 return resultobj;
26991 fail:
26992 return NULL;
26993 }
26994
26995
26996 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
26997 PyObject *resultobj = NULL;
26998 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26999 int result;
27000 PyObject * obj0 = 0 ;
27001 char *kwnames[] = {
27002 (char *) "self", NULL
27003 };
27004
27005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
27006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27007 if (SWIG_arg_fail(1)) SWIG_fail;
27008 {
27009 PyThreadState* __tstate = wxPyBeginAllowThreads();
27010 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
27011
27012 wxPyEndAllowThreads(__tstate);
27013 if (PyErr_Occurred()) SWIG_fail;
27014 }
27015 {
27016 resultobj = SWIG_From_int(static_cast<int >(result));
27017 }
27018 return resultobj;
27019 fail:
27020 return NULL;
27021 }
27022
27023
27024 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
27025 PyObject *resultobj = NULL;
27026 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27027 int result;
27028 PyObject * obj0 = 0 ;
27029 char *kwnames[] = {
27030 (char *) "self", NULL
27031 };
27032
27033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
27034 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27035 if (SWIG_arg_fail(1)) SWIG_fail;
27036 {
27037 PyThreadState* __tstate = wxPyBeginAllowThreads();
27038 result = (int)((wxDateSpan const *)arg1)->GetDays();
27039
27040 wxPyEndAllowThreads(__tstate);
27041 if (PyErr_Occurred()) SWIG_fail;
27042 }
27043 {
27044 resultobj = SWIG_From_int(static_cast<int >(result));
27045 }
27046 return resultobj;
27047 fail:
27048 return NULL;
27049 }
27050
27051
27052 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
27053 PyObject *resultobj = NULL;
27054 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27055 int result;
27056 PyObject * obj0 = 0 ;
27057 char *kwnames[] = {
27058 (char *) "self", NULL
27059 };
27060
27061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
27062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27063 if (SWIG_arg_fail(1)) SWIG_fail;
27064 {
27065 PyThreadState* __tstate = wxPyBeginAllowThreads();
27066 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
27067
27068 wxPyEndAllowThreads(__tstate);
27069 if (PyErr_Occurred()) SWIG_fail;
27070 }
27071 {
27072 resultobj = SWIG_From_int(static_cast<int >(result));
27073 }
27074 return resultobj;
27075 fail:
27076 return NULL;
27077 }
27078
27079
27080 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
27081 PyObject *resultobj = NULL;
27082 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27083 wxDateSpan *arg2 = 0 ;
27084 wxDateSpan *result;
27085 PyObject * obj0 = 0 ;
27086 PyObject * obj1 = 0 ;
27087 char *kwnames[] = {
27088 (char *) "self",(char *) "other", NULL
27089 };
27090
27091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
27092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27093 if (SWIG_arg_fail(1)) SWIG_fail;
27094 {
27095 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27096 if (SWIG_arg_fail(2)) SWIG_fail;
27097 if (arg2 == NULL) {
27098 SWIG_null_ref("wxDateSpan");
27099 }
27100 if (SWIG_arg_fail(2)) SWIG_fail;
27101 }
27102 {
27103 PyThreadState* __tstate = wxPyBeginAllowThreads();
27104 {
27105 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
27106 result = (wxDateSpan *) &_result_ref;
27107 }
27108
27109 wxPyEndAllowThreads(__tstate);
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27113 return resultobj;
27114 fail:
27115 return NULL;
27116 }
27117
27118
27119 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
27120 PyObject *resultobj = NULL;
27121 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27122 wxDateSpan *arg2 = 0 ;
27123 wxDateSpan *result;
27124 PyObject * obj0 = 0 ;
27125 PyObject * obj1 = 0 ;
27126 char *kwnames[] = {
27127 (char *) "self",(char *) "other", NULL
27128 };
27129
27130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
27131 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27132 if (SWIG_arg_fail(1)) SWIG_fail;
27133 {
27134 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27135 if (SWIG_arg_fail(2)) SWIG_fail;
27136 if (arg2 == NULL) {
27137 SWIG_null_ref("wxDateSpan");
27138 }
27139 if (SWIG_arg_fail(2)) SWIG_fail;
27140 }
27141 {
27142 PyThreadState* __tstate = wxPyBeginAllowThreads();
27143 {
27144 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
27145 result = (wxDateSpan *) &_result_ref;
27146 }
27147
27148 wxPyEndAllowThreads(__tstate);
27149 if (PyErr_Occurred()) SWIG_fail;
27150 }
27151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27152 return resultobj;
27153 fail:
27154 return NULL;
27155 }
27156
27157
27158 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
27159 PyObject *resultobj = NULL;
27160 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27161 wxDateSpan *result;
27162 PyObject * obj0 = 0 ;
27163 char *kwnames[] = {
27164 (char *) "self", NULL
27165 };
27166
27167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
27168 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27169 if (SWIG_arg_fail(1)) SWIG_fail;
27170 {
27171 PyThreadState* __tstate = wxPyBeginAllowThreads();
27172 {
27173 wxDateSpan &_result_ref = (arg1)->Neg();
27174 result = (wxDateSpan *) &_result_ref;
27175 }
27176
27177 wxPyEndAllowThreads(__tstate);
27178 if (PyErr_Occurred()) SWIG_fail;
27179 }
27180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27181 return resultobj;
27182 fail:
27183 return NULL;
27184 }
27185
27186
27187 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
27188 PyObject *resultobj = NULL;
27189 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27190 int arg2 ;
27191 wxDateSpan *result;
27192 PyObject * obj0 = 0 ;
27193 PyObject * obj1 = 0 ;
27194 char *kwnames[] = {
27195 (char *) "self",(char *) "factor", NULL
27196 };
27197
27198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
27199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27200 if (SWIG_arg_fail(1)) SWIG_fail;
27201 {
27202 arg2 = static_cast<int >(SWIG_As_int(obj1));
27203 if (SWIG_arg_fail(2)) SWIG_fail;
27204 }
27205 {
27206 PyThreadState* __tstate = wxPyBeginAllowThreads();
27207 {
27208 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
27209 result = (wxDateSpan *) &_result_ref;
27210 }
27211
27212 wxPyEndAllowThreads(__tstate);
27213 if (PyErr_Occurred()) SWIG_fail;
27214 }
27215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27216 return resultobj;
27217 fail:
27218 return NULL;
27219 }
27220
27221
27222 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
27223 PyObject *resultobj = NULL;
27224 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27225 wxDateSpan *arg2 = 0 ;
27226 wxDateSpan *result;
27227 PyObject * obj0 = 0 ;
27228 PyObject * obj1 = 0 ;
27229 char *kwnames[] = {
27230 (char *) "self",(char *) "other", NULL
27231 };
27232
27233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
27234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27235 if (SWIG_arg_fail(1)) SWIG_fail;
27236 {
27237 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27238 if (SWIG_arg_fail(2)) SWIG_fail;
27239 if (arg2 == NULL) {
27240 SWIG_null_ref("wxDateSpan");
27241 }
27242 if (SWIG_arg_fail(2)) SWIG_fail;
27243 }
27244 {
27245 PyThreadState* __tstate = wxPyBeginAllowThreads();
27246 {
27247 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
27248 result = (wxDateSpan *) &_result_ref;
27249 }
27250
27251 wxPyEndAllowThreads(__tstate);
27252 if (PyErr_Occurred()) SWIG_fail;
27253 }
27254 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27255 return resultobj;
27256 fail:
27257 return NULL;
27258 }
27259
27260
27261 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
27262 PyObject *resultobj = NULL;
27263 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27264 wxDateSpan *arg2 = 0 ;
27265 wxDateSpan *result;
27266 PyObject * obj0 = 0 ;
27267 PyObject * obj1 = 0 ;
27268 char *kwnames[] = {
27269 (char *) "self",(char *) "other", NULL
27270 };
27271
27272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
27273 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27274 if (SWIG_arg_fail(1)) SWIG_fail;
27275 {
27276 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27277 if (SWIG_arg_fail(2)) SWIG_fail;
27278 if (arg2 == NULL) {
27279 SWIG_null_ref("wxDateSpan");
27280 }
27281 if (SWIG_arg_fail(2)) SWIG_fail;
27282 }
27283 {
27284 PyThreadState* __tstate = wxPyBeginAllowThreads();
27285 {
27286 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
27287 result = (wxDateSpan *) &_result_ref;
27288 }
27289
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27294 return resultobj;
27295 fail:
27296 return NULL;
27297 }
27298
27299
27300 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
27301 PyObject *resultobj = NULL;
27302 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27303 wxDateSpan *result;
27304 PyObject * obj0 = 0 ;
27305 char *kwnames[] = {
27306 (char *) "self", NULL
27307 };
27308
27309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
27310 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27311 if (SWIG_arg_fail(1)) SWIG_fail;
27312 {
27313 PyThreadState* __tstate = wxPyBeginAllowThreads();
27314 {
27315 wxDateSpan &_result_ref = (arg1)->operator -();
27316 result = (wxDateSpan *) &_result_ref;
27317 }
27318
27319 wxPyEndAllowThreads(__tstate);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27323 return resultobj;
27324 fail:
27325 return NULL;
27326 }
27327
27328
27329 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
27330 PyObject *resultobj = NULL;
27331 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27332 int arg2 ;
27333 wxDateSpan *result;
27334 PyObject * obj0 = 0 ;
27335 PyObject * obj1 = 0 ;
27336 char *kwnames[] = {
27337 (char *) "self",(char *) "factor", NULL
27338 };
27339
27340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
27341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27342 if (SWIG_arg_fail(1)) SWIG_fail;
27343 {
27344 arg2 = static_cast<int >(SWIG_As_int(obj1));
27345 if (SWIG_arg_fail(2)) SWIG_fail;
27346 }
27347 {
27348 PyThreadState* __tstate = wxPyBeginAllowThreads();
27349 {
27350 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
27351 result = (wxDateSpan *) &_result_ref;
27352 }
27353
27354 wxPyEndAllowThreads(__tstate);
27355 if (PyErr_Occurred()) SWIG_fail;
27356 }
27357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27358 return resultobj;
27359 fail:
27360 return NULL;
27361 }
27362
27363
27364 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
27365 PyObject *resultobj = NULL;
27366 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27367 wxDateSpan *arg2 = 0 ;
27368 wxDateSpan result;
27369 PyObject * obj0 = 0 ;
27370 PyObject * obj1 = 0 ;
27371 char *kwnames[] = {
27372 (char *) "self",(char *) "other", NULL
27373 };
27374
27375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
27376 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27377 if (SWIG_arg_fail(1)) SWIG_fail;
27378 {
27379 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27380 if (SWIG_arg_fail(2)) SWIG_fail;
27381 if (arg2 == NULL) {
27382 SWIG_null_ref("wxDateSpan");
27383 }
27384 if (SWIG_arg_fail(2)) SWIG_fail;
27385 }
27386 {
27387 PyThreadState* __tstate = wxPyBeginAllowThreads();
27388 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
27389
27390 wxPyEndAllowThreads(__tstate);
27391 if (PyErr_Occurred()) SWIG_fail;
27392 }
27393 {
27394 wxDateSpan * resultptr;
27395 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27396 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27397 }
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
27405 PyObject *resultobj = NULL;
27406 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27407 wxDateSpan *arg2 = 0 ;
27408 wxDateSpan result;
27409 PyObject * obj0 = 0 ;
27410 PyObject * obj1 = 0 ;
27411 char *kwnames[] = {
27412 (char *) "self",(char *) "other", NULL
27413 };
27414
27415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
27416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27417 if (SWIG_arg_fail(1)) SWIG_fail;
27418 {
27419 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27420 if (SWIG_arg_fail(2)) SWIG_fail;
27421 if (arg2 == NULL) {
27422 SWIG_null_ref("wxDateSpan");
27423 }
27424 if (SWIG_arg_fail(2)) SWIG_fail;
27425 }
27426 {
27427 PyThreadState* __tstate = wxPyBeginAllowThreads();
27428 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
27429
27430 wxPyEndAllowThreads(__tstate);
27431 if (PyErr_Occurred()) SWIG_fail;
27432 }
27433 {
27434 wxDateSpan * resultptr;
27435 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27436 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27437 }
27438 return resultobj;
27439 fail:
27440 return NULL;
27441 }
27442
27443
27444 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
27445 PyObject *resultobj = NULL;
27446 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27447 int arg2 ;
27448 wxDateSpan result;
27449 PyObject * obj0 = 0 ;
27450 PyObject * obj1 = 0 ;
27451 char *kwnames[] = {
27452 (char *) "self",(char *) "n", NULL
27453 };
27454
27455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
27456 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27457 if (SWIG_arg_fail(1)) SWIG_fail;
27458 {
27459 arg2 = static_cast<int >(SWIG_As_int(obj1));
27460 if (SWIG_arg_fail(2)) SWIG_fail;
27461 }
27462 {
27463 PyThreadState* __tstate = wxPyBeginAllowThreads();
27464 result = wxDateSpan___mul__(arg1,arg2);
27465
27466 wxPyEndAllowThreads(__tstate);
27467 if (PyErr_Occurred()) SWIG_fail;
27468 }
27469 {
27470 wxDateSpan * resultptr;
27471 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27473 }
27474 return resultobj;
27475 fail:
27476 return NULL;
27477 }
27478
27479
27480 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
27481 PyObject *resultobj = NULL;
27482 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27483 int arg2 ;
27484 wxDateSpan result;
27485 PyObject * obj0 = 0 ;
27486 PyObject * obj1 = 0 ;
27487 char *kwnames[] = {
27488 (char *) "self",(char *) "n", NULL
27489 };
27490
27491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
27492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27493 if (SWIG_arg_fail(1)) SWIG_fail;
27494 {
27495 arg2 = static_cast<int >(SWIG_As_int(obj1));
27496 if (SWIG_arg_fail(2)) SWIG_fail;
27497 }
27498 {
27499 PyThreadState* __tstate = wxPyBeginAllowThreads();
27500 result = wxDateSpan___rmul__(arg1,arg2);
27501
27502 wxPyEndAllowThreads(__tstate);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 {
27506 wxDateSpan * resultptr;
27507 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27508 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27509 }
27510 return resultobj;
27511 fail:
27512 return NULL;
27513 }
27514
27515
27516 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
27517 PyObject *resultobj = NULL;
27518 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27519 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
27520 bool result;
27521 PyObject * obj0 = 0 ;
27522 PyObject * obj1 = 0 ;
27523 char *kwnames[] = {
27524 (char *) "self",(char *) "other", NULL
27525 };
27526
27527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
27528 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27529 if (SWIG_arg_fail(1)) SWIG_fail;
27530 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27531 if (SWIG_arg_fail(2)) SWIG_fail;
27532 {
27533 PyThreadState* __tstate = wxPyBeginAllowThreads();
27534 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
27535
27536 wxPyEndAllowThreads(__tstate);
27537 if (PyErr_Occurred()) SWIG_fail;
27538 }
27539 {
27540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27541 }
27542 return resultobj;
27543 fail:
27544 return NULL;
27545 }
27546
27547
27548 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
27549 PyObject *resultobj = NULL;
27550 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27551 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
27552 bool result;
27553 PyObject * obj0 = 0 ;
27554 PyObject * obj1 = 0 ;
27555 char *kwnames[] = {
27556 (char *) "self",(char *) "other", NULL
27557 };
27558
27559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
27560 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27561 if (SWIG_arg_fail(1)) SWIG_fail;
27562 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27563 if (SWIG_arg_fail(2)) SWIG_fail;
27564 {
27565 PyThreadState* __tstate = wxPyBeginAllowThreads();
27566 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
27567
27568 wxPyEndAllowThreads(__tstate);
27569 if (PyErr_Occurred()) SWIG_fail;
27570 }
27571 {
27572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27573 }
27574 return resultobj;
27575 fail:
27576 return NULL;
27577 }
27578
27579
27580 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
27581 PyObject *obj;
27582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27583 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
27584 Py_INCREF(obj);
27585 return Py_BuildValue((char *)"");
27586 }
27587 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
27588 PyObject *resultobj = NULL;
27589 long result;
27590 char *kwnames[] = {
27591 NULL
27592 };
27593
27594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
27595 {
27596 PyThreadState* __tstate = wxPyBeginAllowThreads();
27597 result = (long)wxGetLocalTime();
27598
27599 wxPyEndAllowThreads(__tstate);
27600 if (PyErr_Occurred()) SWIG_fail;
27601 }
27602 {
27603 resultobj = SWIG_From_long(static_cast<long >(result));
27604 }
27605 return resultobj;
27606 fail:
27607 return NULL;
27608 }
27609
27610
27611 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
27612 PyObject *resultobj = NULL;
27613 long result;
27614 char *kwnames[] = {
27615 NULL
27616 };
27617
27618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
27619 {
27620 PyThreadState* __tstate = wxPyBeginAllowThreads();
27621 result = (long)wxGetUTCTime();
27622
27623 wxPyEndAllowThreads(__tstate);
27624 if (PyErr_Occurred()) SWIG_fail;
27625 }
27626 {
27627 resultobj = SWIG_From_long(static_cast<long >(result));
27628 }
27629 return resultobj;
27630 fail:
27631 return NULL;
27632 }
27633
27634
27635 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
27636 PyObject *resultobj = NULL;
27637 long result;
27638 char *kwnames[] = {
27639 NULL
27640 };
27641
27642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
27643 {
27644 PyThreadState* __tstate = wxPyBeginAllowThreads();
27645 result = (long)wxGetCurrentTime();
27646
27647 wxPyEndAllowThreads(__tstate);
27648 if (PyErr_Occurred()) SWIG_fail;
27649 }
27650 {
27651 resultobj = SWIG_From_long(static_cast<long >(result));
27652 }
27653 return resultobj;
27654 fail:
27655 return NULL;
27656 }
27657
27658
27659 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
27660 PyObject *resultobj = NULL;
27661 wxLongLong result;
27662 char *kwnames[] = {
27663 NULL
27664 };
27665
27666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
27667 {
27668 PyThreadState* __tstate = wxPyBeginAllowThreads();
27669 result = wxGetLocalTimeMillis();
27670
27671 wxPyEndAllowThreads(__tstate);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 {
27675 PyObject *hi, *lo, *shifter, *shifted;
27676 hi = PyLong_FromLong( (&result)->GetHi() );
27677 lo = PyLong_FromLong( (&result)->GetLo() );
27678 shifter = PyLong_FromLong(32);
27679 shifted = PyNumber_Lshift(hi, shifter);
27680 resultobj = PyNumber_Or(shifted, lo);
27681 Py_DECREF(hi);
27682 Py_DECREF(lo);
27683 Py_DECREF(shifter);
27684 Py_DECREF(shifted);
27685 }
27686 return resultobj;
27687 fail:
27688 return NULL;
27689 }
27690
27691
27692 static int _wrap_DefaultDateTime_set(PyObject *) {
27693 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
27694 return 1;
27695 }
27696
27697
27698 static PyObject *_wrap_DefaultDateTime_get(void) {
27699 PyObject *pyobj = NULL;
27700
27701 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
27702 return pyobj;
27703 }
27704
27705
27706 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27707 PyObject *resultobj = NULL;
27708 wxDataFormatId arg1 ;
27709 wxDataFormat *result;
27710 PyObject * obj0 = 0 ;
27711 char *kwnames[] = {
27712 (char *) "type", NULL
27713 };
27714
27715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
27716 {
27717 arg1 = static_cast<wxDataFormatId >(SWIG_As_int(obj0));
27718 if (SWIG_arg_fail(1)) SWIG_fail;
27719 }
27720 {
27721 PyThreadState* __tstate = wxPyBeginAllowThreads();
27722 result = (wxDataFormat *)new wxDataFormat(arg1);
27723
27724 wxPyEndAllowThreads(__tstate);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 }
27727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
27728 return resultobj;
27729 fail:
27730 return NULL;
27731 }
27732
27733
27734 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27735 PyObject *resultobj = NULL;
27736 wxString *arg1 = 0 ;
27737 wxDataFormat *result;
27738 bool temp1 = false ;
27739 PyObject * obj0 = 0 ;
27740 char *kwnames[] = {
27741 (char *) "format", NULL
27742 };
27743
27744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
27745 {
27746 arg1 = wxString_in_helper(obj0);
27747 if (arg1 == NULL) SWIG_fail;
27748 temp1 = true;
27749 }
27750 {
27751 PyThreadState* __tstate = wxPyBeginAllowThreads();
27752 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
27753
27754 wxPyEndAllowThreads(__tstate);
27755 if (PyErr_Occurred()) SWIG_fail;
27756 }
27757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
27758 {
27759 if (temp1)
27760 delete arg1;
27761 }
27762 return resultobj;
27763 fail:
27764 {
27765 if (temp1)
27766 delete arg1;
27767 }
27768 return NULL;
27769 }
27770
27771
27772 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27773 PyObject *resultobj = NULL;
27774 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27775 PyObject * obj0 = 0 ;
27776 char *kwnames[] = {
27777 (char *) "self", NULL
27778 };
27779
27780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
27781 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27782 if (SWIG_arg_fail(1)) SWIG_fail;
27783 {
27784 PyThreadState* __tstate = wxPyBeginAllowThreads();
27785 delete arg1;
27786
27787 wxPyEndAllowThreads(__tstate);
27788 if (PyErr_Occurred()) SWIG_fail;
27789 }
27790 Py_INCREF(Py_None); resultobj = Py_None;
27791 return resultobj;
27792 fail:
27793 return NULL;
27794 }
27795
27796
27797 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
27798 PyObject *resultobj = NULL;
27799 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27800 wxDataFormatId arg2 ;
27801 bool result;
27802 PyObject * obj0 = 0 ;
27803 PyObject * obj1 = 0 ;
27804
27805 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
27806 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27807 if (SWIG_arg_fail(1)) SWIG_fail;
27808 {
27809 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
27810 if (SWIG_arg_fail(2)) SWIG_fail;
27811 }
27812 {
27813 PyThreadState* __tstate = wxPyBeginAllowThreads();
27814 result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2);
27815
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 {
27820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27821 }
27822 return resultobj;
27823 fail:
27824 return NULL;
27825 }
27826
27827
27828 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
27829 PyObject *resultobj = NULL;
27830 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27831 wxDataFormatId arg2 ;
27832 bool result;
27833 PyObject * obj0 = 0 ;
27834 PyObject * obj1 = 0 ;
27835
27836 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
27837 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27838 if (SWIG_arg_fail(1)) SWIG_fail;
27839 {
27840 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
27841 if (SWIG_arg_fail(2)) SWIG_fail;
27842 }
27843 {
27844 PyThreadState* __tstate = wxPyBeginAllowThreads();
27845 result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2);
27846
27847 wxPyEndAllowThreads(__tstate);
27848 if (PyErr_Occurred()) SWIG_fail;
27849 }
27850 {
27851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27852 }
27853 return resultobj;
27854 fail:
27855 return NULL;
27856 }
27857
27858
27859 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
27860 PyObject *resultobj = NULL;
27861 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27862 wxDataFormat *arg2 = 0 ;
27863 bool result;
27864 PyObject * obj0 = 0 ;
27865 PyObject * obj1 = 0 ;
27866
27867 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
27868 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27869 if (SWIG_arg_fail(1)) SWIG_fail;
27870 {
27871 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27872 if (SWIG_arg_fail(2)) SWIG_fail;
27873 if (arg2 == NULL) {
27874 SWIG_null_ref("wxDataFormat");
27875 }
27876 if (SWIG_arg_fail(2)) SWIG_fail;
27877 }
27878 {
27879 PyThreadState* __tstate = wxPyBeginAllowThreads();
27880 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
27881
27882 wxPyEndAllowThreads(__tstate);
27883 if (PyErr_Occurred()) SWIG_fail;
27884 }
27885 {
27886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27887 }
27888 return resultobj;
27889 fail:
27890 return NULL;
27891 }
27892
27893
27894 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
27895 int argc;
27896 PyObject *argv[3];
27897 int ii;
27898
27899 argc = PyObject_Length(args);
27900 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27901 argv[ii] = PyTuple_GetItem(args,ii);
27902 }
27903 if (argc == 2) {
27904 int _v;
27905 {
27906 void *ptr;
27907 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27908 _v = 0;
27909 PyErr_Clear();
27910 } else {
27911 _v = 1;
27912 }
27913 }
27914 if (_v) {
27915 {
27916 void *ptr = 0;
27917 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27918 _v = 0;
27919 PyErr_Clear();
27920 } else {
27921 _v = (ptr != 0);
27922 }
27923 }
27924 if (_v) {
27925 return _wrap_DataFormat___eq____SWIG_1(self,args);
27926 }
27927 }
27928 }
27929 if (argc == 2) {
27930 int _v;
27931 {
27932 void *ptr;
27933 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27934 _v = 0;
27935 PyErr_Clear();
27936 } else {
27937 _v = 1;
27938 }
27939 }
27940 if (_v) {
27941 _v = SWIG_Check_int(argv[1]);
27942 if (_v) {
27943 return _wrap_DataFormat___eq____SWIG_0(self,args);
27944 }
27945 }
27946 }
27947
27948 Py_INCREF(Py_NotImplemented);
27949 return Py_NotImplemented;
27950 }
27951
27952
27953 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
27954 PyObject *resultobj = NULL;
27955 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27956 wxDataFormat *arg2 = 0 ;
27957 bool result;
27958 PyObject * obj0 = 0 ;
27959 PyObject * obj1 = 0 ;
27960
27961 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
27962 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27963 if (SWIG_arg_fail(1)) SWIG_fail;
27964 {
27965 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27966 if (SWIG_arg_fail(2)) SWIG_fail;
27967 if (arg2 == NULL) {
27968 SWIG_null_ref("wxDataFormat");
27969 }
27970 if (SWIG_arg_fail(2)) SWIG_fail;
27971 }
27972 {
27973 PyThreadState* __tstate = wxPyBeginAllowThreads();
27974 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
27975
27976 wxPyEndAllowThreads(__tstate);
27977 if (PyErr_Occurred()) SWIG_fail;
27978 }
27979 {
27980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27981 }
27982 return resultobj;
27983 fail:
27984 return NULL;
27985 }
27986
27987
27988 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
27989 int argc;
27990 PyObject *argv[3];
27991 int ii;
27992
27993 argc = PyObject_Length(args);
27994 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27995 argv[ii] = PyTuple_GetItem(args,ii);
27996 }
27997 if (argc == 2) {
27998 int _v;
27999 {
28000 void *ptr;
28001 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28002 _v = 0;
28003 PyErr_Clear();
28004 } else {
28005 _v = 1;
28006 }
28007 }
28008 if (_v) {
28009 {
28010 void *ptr = 0;
28011 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28012 _v = 0;
28013 PyErr_Clear();
28014 } else {
28015 _v = (ptr != 0);
28016 }
28017 }
28018 if (_v) {
28019 return _wrap_DataFormat___ne____SWIG_1(self,args);
28020 }
28021 }
28022 }
28023 if (argc == 2) {
28024 int _v;
28025 {
28026 void *ptr;
28027 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28028 _v = 0;
28029 PyErr_Clear();
28030 } else {
28031 _v = 1;
28032 }
28033 }
28034 if (_v) {
28035 _v = SWIG_Check_int(argv[1]);
28036 if (_v) {
28037 return _wrap_DataFormat___ne____SWIG_0(self,args);
28038 }
28039 }
28040 }
28041
28042 Py_INCREF(Py_NotImplemented);
28043 return Py_NotImplemented;
28044 }
28045
28046
28047 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
28048 PyObject *resultobj = NULL;
28049 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28050 wxDataFormatId arg2 ;
28051 PyObject * obj0 = 0 ;
28052 PyObject * obj1 = 0 ;
28053 char *kwnames[] = {
28054 (char *) "self",(char *) "format", NULL
28055 };
28056
28057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
28058 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28059 if (SWIG_arg_fail(1)) SWIG_fail;
28060 {
28061 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
28062 if (SWIG_arg_fail(2)) SWIG_fail;
28063 }
28064 {
28065 PyThreadState* __tstate = wxPyBeginAllowThreads();
28066 (arg1)->SetType(arg2);
28067
28068 wxPyEndAllowThreads(__tstate);
28069 if (PyErr_Occurred()) SWIG_fail;
28070 }
28071 Py_INCREF(Py_None); resultobj = Py_None;
28072 return resultobj;
28073 fail:
28074 return NULL;
28075 }
28076
28077
28078 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
28079 PyObject *resultobj = NULL;
28080 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28081 wxDataFormatId result;
28082 PyObject * obj0 = 0 ;
28083 char *kwnames[] = {
28084 (char *) "self", NULL
28085 };
28086
28087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
28088 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28089 if (SWIG_arg_fail(1)) SWIG_fail;
28090 {
28091 PyThreadState* __tstate = wxPyBeginAllowThreads();
28092 result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType();
28093
28094 wxPyEndAllowThreads(__tstate);
28095 if (PyErr_Occurred()) SWIG_fail;
28096 }
28097 resultobj = SWIG_From_int((result));
28098 return resultobj;
28099 fail:
28100 return NULL;
28101 }
28102
28103
28104 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
28105 PyObject *resultobj = NULL;
28106 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28107 wxString result;
28108 PyObject * obj0 = 0 ;
28109 char *kwnames[] = {
28110 (char *) "self", NULL
28111 };
28112
28113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
28114 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28115 if (SWIG_arg_fail(1)) SWIG_fail;
28116 {
28117 PyThreadState* __tstate = wxPyBeginAllowThreads();
28118 result = ((wxDataFormat const *)arg1)->GetId();
28119
28120 wxPyEndAllowThreads(__tstate);
28121 if (PyErr_Occurred()) SWIG_fail;
28122 }
28123 {
28124 #if wxUSE_UNICODE
28125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28126 #else
28127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28128 #endif
28129 }
28130 return resultobj;
28131 fail:
28132 return NULL;
28133 }
28134
28135
28136 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
28137 PyObject *resultobj = NULL;
28138 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28139 wxString *arg2 = 0 ;
28140 bool temp2 = false ;
28141 PyObject * obj0 = 0 ;
28142 PyObject * obj1 = 0 ;
28143 char *kwnames[] = {
28144 (char *) "self",(char *) "format", NULL
28145 };
28146
28147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
28148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28149 if (SWIG_arg_fail(1)) SWIG_fail;
28150 {
28151 arg2 = wxString_in_helper(obj1);
28152 if (arg2 == NULL) SWIG_fail;
28153 temp2 = true;
28154 }
28155 {
28156 PyThreadState* __tstate = wxPyBeginAllowThreads();
28157 (arg1)->SetId((wxString const &)*arg2);
28158
28159 wxPyEndAllowThreads(__tstate);
28160 if (PyErr_Occurred()) SWIG_fail;
28161 }
28162 Py_INCREF(Py_None); resultobj = Py_None;
28163 {
28164 if (temp2)
28165 delete arg2;
28166 }
28167 return resultobj;
28168 fail:
28169 {
28170 if (temp2)
28171 delete arg2;
28172 }
28173 return NULL;
28174 }
28175
28176
28177 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
28178 PyObject *obj;
28179 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28180 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
28181 Py_INCREF(obj);
28182 return Py_BuildValue((char *)"");
28183 }
28184 static int _wrap_FormatInvalid_set(PyObject *) {
28185 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
28186 return 1;
28187 }
28188
28189
28190 static PyObject *_wrap_FormatInvalid_get(void) {
28191 PyObject *pyobj = NULL;
28192
28193 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
28194 return pyobj;
28195 }
28196
28197
28198 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
28199 PyObject *resultobj = NULL;
28200 wxDataObject *arg1 = (wxDataObject *) 0 ;
28201 PyObject * obj0 = 0 ;
28202 char *kwnames[] = {
28203 (char *) "self", NULL
28204 };
28205
28206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
28207 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28208 if (SWIG_arg_fail(1)) SWIG_fail;
28209 {
28210 PyThreadState* __tstate = wxPyBeginAllowThreads();
28211 delete arg1;
28212
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 Py_INCREF(Py_None); resultobj = Py_None;
28217 return resultobj;
28218 fail:
28219 return NULL;
28220 }
28221
28222
28223 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28224 PyObject *resultobj = NULL;
28225 wxDataObject *arg1 = (wxDataObject *) 0 ;
28226 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28227 SwigValueWrapper<wxDataFormat > result;
28228 PyObject * obj0 = 0 ;
28229 PyObject * obj1 = 0 ;
28230 char *kwnames[] = {
28231 (char *) "self",(char *) "dir", NULL
28232 };
28233
28234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
28235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28236 if (SWIG_arg_fail(1)) SWIG_fail;
28237 if (obj1) {
28238 {
28239 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28240 if (SWIG_arg_fail(2)) SWIG_fail;
28241 }
28242 }
28243 {
28244 PyThreadState* __tstate = wxPyBeginAllowThreads();
28245 result = ((wxDataObject const *)arg1)->GetPreferredFormat(arg2);
28246
28247 wxPyEndAllowThreads(__tstate);
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 {
28251 wxDataFormat * resultptr;
28252 resultptr = new wxDataFormat(static_cast<wxDataFormat & >(result));
28253 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
28254 }
28255 return resultobj;
28256 fail:
28257 return NULL;
28258 }
28259
28260
28261 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
28262 PyObject *resultobj = NULL;
28263 wxDataObject *arg1 = (wxDataObject *) 0 ;
28264 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28265 size_t result;
28266 PyObject * obj0 = 0 ;
28267 PyObject * obj1 = 0 ;
28268 char *kwnames[] = {
28269 (char *) "self",(char *) "dir", NULL
28270 };
28271
28272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
28273 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28274 if (SWIG_arg_fail(1)) SWIG_fail;
28275 if (obj1) {
28276 {
28277 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28278 if (SWIG_arg_fail(2)) SWIG_fail;
28279 }
28280 }
28281 {
28282 PyThreadState* __tstate = wxPyBeginAllowThreads();
28283 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount(arg2);
28284
28285 wxPyEndAllowThreads(__tstate);
28286 if (PyErr_Occurred()) SWIG_fail;
28287 }
28288 {
28289 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28290 }
28291 return resultobj;
28292 fail:
28293 return NULL;
28294 }
28295
28296
28297 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
28298 PyObject *resultobj = NULL;
28299 wxDataObject *arg1 = (wxDataObject *) 0 ;
28300 wxDataFormat *arg2 = 0 ;
28301 wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ;
28302 bool result;
28303 PyObject * obj0 = 0 ;
28304 PyObject * obj1 = 0 ;
28305 PyObject * obj2 = 0 ;
28306 char *kwnames[] = {
28307 (char *) "self",(char *) "format",(char *) "dir", NULL
28308 };
28309
28310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
28311 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28312 if (SWIG_arg_fail(1)) SWIG_fail;
28313 {
28314 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28315 if (SWIG_arg_fail(2)) SWIG_fail;
28316 if (arg2 == NULL) {
28317 SWIG_null_ref("wxDataFormat");
28318 }
28319 if (SWIG_arg_fail(2)) SWIG_fail;
28320 }
28321 if (obj2) {
28322 {
28323 arg3 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj2));
28324 if (SWIG_arg_fail(3)) SWIG_fail;
28325 }
28326 }
28327 {
28328 PyThreadState* __tstate = wxPyBeginAllowThreads();
28329 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,arg3);
28330
28331 wxPyEndAllowThreads(__tstate);
28332 if (PyErr_Occurred()) SWIG_fail;
28333 }
28334 {
28335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28336 }
28337 return resultobj;
28338 fail:
28339 return NULL;
28340 }
28341
28342
28343 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
28344 PyObject *resultobj = NULL;
28345 wxDataObject *arg1 = (wxDataObject *) 0 ;
28346 wxDataFormat *arg2 = 0 ;
28347 size_t result;
28348 PyObject * obj0 = 0 ;
28349 PyObject * obj1 = 0 ;
28350 char *kwnames[] = {
28351 (char *) "self",(char *) "format", NULL
28352 };
28353
28354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
28355 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28356 if (SWIG_arg_fail(1)) SWIG_fail;
28357 {
28358 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28359 if (SWIG_arg_fail(2)) SWIG_fail;
28360 if (arg2 == NULL) {
28361 SWIG_null_ref("wxDataFormat");
28362 }
28363 if (SWIG_arg_fail(2)) SWIG_fail;
28364 }
28365 {
28366 PyThreadState* __tstate = wxPyBeginAllowThreads();
28367 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
28368
28369 wxPyEndAllowThreads(__tstate);
28370 if (PyErr_Occurred()) SWIG_fail;
28371 }
28372 {
28373 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28374 }
28375 return resultobj;
28376 fail:
28377 return NULL;
28378 }
28379
28380
28381 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
28382 PyObject *resultobj = NULL;
28383 wxDataObject *arg1 = (wxDataObject *) 0 ;
28384 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28385 PyObject *result;
28386 PyObject * obj0 = 0 ;
28387 PyObject * obj1 = 0 ;
28388 char *kwnames[] = {
28389 (char *) "self",(char *) "dir", NULL
28390 };
28391
28392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
28393 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28394 if (SWIG_arg_fail(1)) SWIG_fail;
28395 if (obj1) {
28396 {
28397 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28398 if (SWIG_arg_fail(2)) SWIG_fail;
28399 }
28400 }
28401 {
28402 PyThreadState* __tstate = wxPyBeginAllowThreads();
28403 result = (PyObject *)wxDataObject_GetAllFormats(arg1,arg2);
28404
28405 wxPyEndAllowThreads(__tstate);
28406 if (PyErr_Occurred()) SWIG_fail;
28407 }
28408 resultobj = result;
28409 return resultobj;
28410 fail:
28411 return NULL;
28412 }
28413
28414
28415 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
28416 PyObject *resultobj = NULL;
28417 wxDataObject *arg1 = (wxDataObject *) 0 ;
28418 wxDataFormat *arg2 = 0 ;
28419 PyObject *result;
28420 PyObject * obj0 = 0 ;
28421 PyObject * obj1 = 0 ;
28422 char *kwnames[] = {
28423 (char *) "self",(char *) "format", NULL
28424 };
28425
28426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
28427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28428 if (SWIG_arg_fail(1)) SWIG_fail;
28429 {
28430 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28431 if (SWIG_arg_fail(2)) SWIG_fail;
28432 if (arg2 == NULL) {
28433 SWIG_null_ref("wxDataFormat");
28434 }
28435 if (SWIG_arg_fail(2)) SWIG_fail;
28436 }
28437 {
28438 PyThreadState* __tstate = wxPyBeginAllowThreads();
28439 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
28440
28441 wxPyEndAllowThreads(__tstate);
28442 if (PyErr_Occurred()) SWIG_fail;
28443 }
28444 resultobj = result;
28445 return resultobj;
28446 fail:
28447 return NULL;
28448 }
28449
28450
28451 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
28452 PyObject *resultobj = NULL;
28453 wxDataObject *arg1 = (wxDataObject *) 0 ;
28454 wxDataFormat *arg2 = 0 ;
28455 PyObject *arg3 = (PyObject *) 0 ;
28456 bool result;
28457 PyObject * obj0 = 0 ;
28458 PyObject * obj1 = 0 ;
28459 PyObject * obj2 = 0 ;
28460 char *kwnames[] = {
28461 (char *) "self",(char *) "format",(char *) "data", NULL
28462 };
28463
28464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
28465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28466 if (SWIG_arg_fail(1)) SWIG_fail;
28467 {
28468 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28469 if (SWIG_arg_fail(2)) SWIG_fail;
28470 if (arg2 == NULL) {
28471 SWIG_null_ref("wxDataFormat");
28472 }
28473 if (SWIG_arg_fail(2)) SWIG_fail;
28474 }
28475 arg3 = obj2;
28476 {
28477 PyThreadState* __tstate = wxPyBeginAllowThreads();
28478 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
28479
28480 wxPyEndAllowThreads(__tstate);
28481 if (PyErr_Occurred()) SWIG_fail;
28482 }
28483 {
28484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28485 }
28486 return resultobj;
28487 fail:
28488 return NULL;
28489 }
28490
28491
28492 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
28493 PyObject *obj;
28494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28495 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
28496 Py_INCREF(obj);
28497 return Py_BuildValue((char *)"");
28498 }
28499 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
28500 PyObject *resultobj = NULL;
28501 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
28502 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
28503 wxDataObjectSimple *result;
28504 PyObject * obj0 = 0 ;
28505 char *kwnames[] = {
28506 (char *) "format", NULL
28507 };
28508
28509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
28510 if (obj0) {
28511 {
28512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28513 if (SWIG_arg_fail(1)) SWIG_fail;
28514 if (arg1 == NULL) {
28515 SWIG_null_ref("wxDataFormat");
28516 }
28517 if (SWIG_arg_fail(1)) SWIG_fail;
28518 }
28519 }
28520 {
28521 PyThreadState* __tstate = wxPyBeginAllowThreads();
28522 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
28523
28524 wxPyEndAllowThreads(__tstate);
28525 if (PyErr_Occurred()) SWIG_fail;
28526 }
28527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
28528 return resultobj;
28529 fail:
28530 return NULL;
28531 }
28532
28533
28534 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28535 PyObject *resultobj = NULL;
28536 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28537 wxDataFormat *result;
28538 PyObject * obj0 = 0 ;
28539 char *kwnames[] = {
28540 (char *) "self", NULL
28541 };
28542
28543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
28544 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28545 if (SWIG_arg_fail(1)) SWIG_fail;
28546 {
28547 PyThreadState* __tstate = wxPyBeginAllowThreads();
28548 {
28549 wxDataFormat const &_result_ref = (arg1)->GetFormat();
28550 result = (wxDataFormat *) &_result_ref;
28551 }
28552
28553 wxPyEndAllowThreads(__tstate);
28554 if (PyErr_Occurred()) SWIG_fail;
28555 }
28556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
28557 return resultobj;
28558 fail:
28559 return NULL;
28560 }
28561
28562
28563 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28564 PyObject *resultobj = NULL;
28565 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28566 wxDataFormat *arg2 = 0 ;
28567 PyObject * obj0 = 0 ;
28568 PyObject * obj1 = 0 ;
28569 char *kwnames[] = {
28570 (char *) "self",(char *) "format", NULL
28571 };
28572
28573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
28574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28575 if (SWIG_arg_fail(1)) SWIG_fail;
28576 {
28577 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28578 if (SWIG_arg_fail(2)) SWIG_fail;
28579 if (arg2 == NULL) {
28580 SWIG_null_ref("wxDataFormat");
28581 }
28582 if (SWIG_arg_fail(2)) SWIG_fail;
28583 }
28584 {
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 (arg1)->SetFormat((wxDataFormat const &)*arg2);
28587
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 Py_INCREF(Py_None); resultobj = Py_None;
28592 return resultobj;
28593 fail:
28594 return NULL;
28595 }
28596
28597
28598 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
28599 PyObject *resultobj = NULL;
28600 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28601 size_t result;
28602 PyObject * obj0 = 0 ;
28603 char *kwnames[] = {
28604 (char *) "self", NULL
28605 };
28606
28607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
28608 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28609 if (SWIG_arg_fail(1)) SWIG_fail;
28610 {
28611 PyThreadState* __tstate = wxPyBeginAllowThreads();
28612 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
28613
28614 wxPyEndAllowThreads(__tstate);
28615 if (PyErr_Occurred()) SWIG_fail;
28616 }
28617 {
28618 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28619 }
28620 return resultobj;
28621 fail:
28622 return NULL;
28623 }
28624
28625
28626 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
28627 PyObject *resultobj = NULL;
28628 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28629 PyObject *result;
28630 PyObject * obj0 = 0 ;
28631 char *kwnames[] = {
28632 (char *) "self", NULL
28633 };
28634
28635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
28636 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28637 if (SWIG_arg_fail(1)) SWIG_fail;
28638 {
28639 PyThreadState* __tstate = wxPyBeginAllowThreads();
28640 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
28641
28642 wxPyEndAllowThreads(__tstate);
28643 if (PyErr_Occurred()) SWIG_fail;
28644 }
28645 resultobj = result;
28646 return resultobj;
28647 fail:
28648 return NULL;
28649 }
28650
28651
28652 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
28653 PyObject *resultobj = NULL;
28654 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28655 PyObject *arg2 = (PyObject *) 0 ;
28656 bool result;
28657 PyObject * obj0 = 0 ;
28658 PyObject * obj1 = 0 ;
28659 char *kwnames[] = {
28660 (char *) "self",(char *) "data", NULL
28661 };
28662
28663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
28664 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28665 if (SWIG_arg_fail(1)) SWIG_fail;
28666 arg2 = obj1;
28667 {
28668 PyThreadState* __tstate = wxPyBeginAllowThreads();
28669 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
28670
28671 wxPyEndAllowThreads(__tstate);
28672 if (PyErr_Occurred()) SWIG_fail;
28673 }
28674 {
28675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28676 }
28677 return resultobj;
28678 fail:
28679 return NULL;
28680 }
28681
28682
28683 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
28684 PyObject *obj;
28685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28686 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
28687 Py_INCREF(obj);
28688 return Py_BuildValue((char *)"");
28689 }
28690 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
28691 PyObject *resultobj = NULL;
28692 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
28693 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
28694 wxPyDataObjectSimple *result;
28695 PyObject * obj0 = 0 ;
28696 char *kwnames[] = {
28697 (char *) "format", NULL
28698 };
28699
28700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
28701 if (obj0) {
28702 {
28703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28704 if (SWIG_arg_fail(1)) SWIG_fail;
28705 if (arg1 == NULL) {
28706 SWIG_null_ref("wxDataFormat");
28707 }
28708 if (SWIG_arg_fail(1)) SWIG_fail;
28709 }
28710 }
28711 {
28712 PyThreadState* __tstate = wxPyBeginAllowThreads();
28713 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
28714
28715 wxPyEndAllowThreads(__tstate);
28716 if (PyErr_Occurred()) SWIG_fail;
28717 }
28718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
28719 return resultobj;
28720 fail:
28721 return NULL;
28722 }
28723
28724
28725 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
28726 PyObject *resultobj = NULL;
28727 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
28728 PyObject *arg2 = (PyObject *) 0 ;
28729 PyObject *arg3 = (PyObject *) 0 ;
28730 PyObject * obj0 = 0 ;
28731 PyObject * obj1 = 0 ;
28732 PyObject * obj2 = 0 ;
28733 char *kwnames[] = {
28734 (char *) "self",(char *) "self",(char *) "_class", NULL
28735 };
28736
28737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28738 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28739 if (SWIG_arg_fail(1)) SWIG_fail;
28740 arg2 = obj1;
28741 arg3 = obj2;
28742 {
28743 PyThreadState* __tstate = wxPyBeginAllowThreads();
28744 (arg1)->_setCallbackInfo(arg2,arg3);
28745
28746 wxPyEndAllowThreads(__tstate);
28747 if (PyErr_Occurred()) SWIG_fail;
28748 }
28749 Py_INCREF(Py_None); resultobj = Py_None;
28750 return resultobj;
28751 fail:
28752 return NULL;
28753 }
28754
28755
28756 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
28757 PyObject *obj;
28758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28759 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
28760 Py_INCREF(obj);
28761 return Py_BuildValue((char *)"");
28762 }
28763 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
28764 PyObject *resultobj = NULL;
28765 wxDataObjectComposite *result;
28766 char *kwnames[] = {
28767 NULL
28768 };
28769
28770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
28771 {
28772 PyThreadState* __tstate = wxPyBeginAllowThreads();
28773 result = (wxDataObjectComposite *)new wxDataObjectComposite();
28774
28775 wxPyEndAllowThreads(__tstate);
28776 if (PyErr_Occurred()) SWIG_fail;
28777 }
28778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
28779 return resultobj;
28780 fail:
28781 return NULL;
28782 }
28783
28784
28785 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
28786 PyObject *resultobj = NULL;
28787 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
28788 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
28789 bool arg3 = (bool) false ;
28790 PyObject * obj0 = 0 ;
28791 PyObject * obj1 = 0 ;
28792 PyObject * obj2 = 0 ;
28793 char *kwnames[] = {
28794 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
28795 };
28796
28797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
28798 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_EXCEPTION | 0);
28799 if (SWIG_arg_fail(1)) SWIG_fail;
28800 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
28801 if (SWIG_arg_fail(2)) SWIG_fail;
28802 if (obj2) {
28803 {
28804 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
28805 if (SWIG_arg_fail(3)) SWIG_fail;
28806 }
28807 }
28808 {
28809 PyThreadState* __tstate = wxPyBeginAllowThreads();
28810 (arg1)->Add(arg2,arg3);
28811
28812 wxPyEndAllowThreads(__tstate);
28813 if (PyErr_Occurred()) SWIG_fail;
28814 }
28815 Py_INCREF(Py_None); resultobj = Py_None;
28816 return resultobj;
28817 fail:
28818 return NULL;
28819 }
28820
28821
28822 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
28823 PyObject *obj;
28824 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28825 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
28826 Py_INCREF(obj);
28827 return Py_BuildValue((char *)"");
28828 }
28829 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
28830 PyObject *resultobj = NULL;
28831 wxString const &arg1_defvalue = wxPyEmptyString ;
28832 wxString *arg1 = (wxString *) &arg1_defvalue ;
28833 wxTextDataObject *result;
28834 bool temp1 = false ;
28835 PyObject * obj0 = 0 ;
28836 char *kwnames[] = {
28837 (char *) "text", NULL
28838 };
28839
28840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
28841 if (obj0) {
28842 {
28843 arg1 = wxString_in_helper(obj0);
28844 if (arg1 == NULL) SWIG_fail;
28845 temp1 = true;
28846 }
28847 }
28848 {
28849 PyThreadState* __tstate = wxPyBeginAllowThreads();
28850 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
28851
28852 wxPyEndAllowThreads(__tstate);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
28856 {
28857 if (temp1)
28858 delete arg1;
28859 }
28860 return resultobj;
28861 fail:
28862 {
28863 if (temp1)
28864 delete arg1;
28865 }
28866 return NULL;
28867 }
28868
28869
28870 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
28871 PyObject *resultobj = NULL;
28872 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28873 size_t result;
28874 PyObject * obj0 = 0 ;
28875 char *kwnames[] = {
28876 (char *) "self", NULL
28877 };
28878
28879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
28880 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
28881 if (SWIG_arg_fail(1)) SWIG_fail;
28882 {
28883 PyThreadState* __tstate = wxPyBeginAllowThreads();
28884 result = (size_t)(arg1)->GetTextLength();
28885
28886 wxPyEndAllowThreads(__tstate);
28887 if (PyErr_Occurred()) SWIG_fail;
28888 }
28889 {
28890 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28891 }
28892 return resultobj;
28893 fail:
28894 return NULL;
28895 }
28896
28897
28898 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
28899 PyObject *resultobj = NULL;
28900 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28901 wxString result;
28902 PyObject * obj0 = 0 ;
28903 char *kwnames[] = {
28904 (char *) "self", NULL
28905 };
28906
28907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
28908 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
28909 if (SWIG_arg_fail(1)) SWIG_fail;
28910 {
28911 PyThreadState* __tstate = wxPyBeginAllowThreads();
28912 result = (arg1)->GetText();
28913
28914 wxPyEndAllowThreads(__tstate);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 {
28918 #if wxUSE_UNICODE
28919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28920 #else
28921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28922 #endif
28923 }
28924 return resultobj;
28925 fail:
28926 return NULL;
28927 }
28928
28929
28930 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
28931 PyObject *resultobj = NULL;
28932 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28933 wxString *arg2 = 0 ;
28934 bool temp2 = false ;
28935 PyObject * obj0 = 0 ;
28936 PyObject * obj1 = 0 ;
28937 char *kwnames[] = {
28938 (char *) "self",(char *) "text", NULL
28939 };
28940
28941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
28942 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
28943 if (SWIG_arg_fail(1)) SWIG_fail;
28944 {
28945 arg2 = wxString_in_helper(obj1);
28946 if (arg2 == NULL) SWIG_fail;
28947 temp2 = true;
28948 }
28949 {
28950 PyThreadState* __tstate = wxPyBeginAllowThreads();
28951 (arg1)->SetText((wxString const &)*arg2);
28952
28953 wxPyEndAllowThreads(__tstate);
28954 if (PyErr_Occurred()) SWIG_fail;
28955 }
28956 Py_INCREF(Py_None); resultobj = Py_None;
28957 {
28958 if (temp2)
28959 delete arg2;
28960 }
28961 return resultobj;
28962 fail:
28963 {
28964 if (temp2)
28965 delete arg2;
28966 }
28967 return NULL;
28968 }
28969
28970
28971 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
28972 PyObject *obj;
28973 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28974 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
28975 Py_INCREF(obj);
28976 return Py_BuildValue((char *)"");
28977 }
28978 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
28979 PyObject *resultobj = NULL;
28980 wxString const &arg1_defvalue = wxPyEmptyString ;
28981 wxString *arg1 = (wxString *) &arg1_defvalue ;
28982 wxPyTextDataObject *result;
28983 bool temp1 = false ;
28984 PyObject * obj0 = 0 ;
28985 char *kwnames[] = {
28986 (char *) "text", NULL
28987 };
28988
28989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
28990 if (obj0) {
28991 {
28992 arg1 = wxString_in_helper(obj0);
28993 if (arg1 == NULL) SWIG_fail;
28994 temp1 = true;
28995 }
28996 }
28997 {
28998 PyThreadState* __tstate = wxPyBeginAllowThreads();
28999 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
29000
29001 wxPyEndAllowThreads(__tstate);
29002 if (PyErr_Occurred()) SWIG_fail;
29003 }
29004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
29005 {
29006 if (temp1)
29007 delete arg1;
29008 }
29009 return resultobj;
29010 fail:
29011 {
29012 if (temp1)
29013 delete arg1;
29014 }
29015 return NULL;
29016 }
29017
29018
29019 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29020 PyObject *resultobj = NULL;
29021 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
29022 PyObject *arg2 = (PyObject *) 0 ;
29023 PyObject *arg3 = (PyObject *) 0 ;
29024 PyObject * obj0 = 0 ;
29025 PyObject * obj1 = 0 ;
29026 PyObject * obj2 = 0 ;
29027 char *kwnames[] = {
29028 (char *) "self",(char *) "self",(char *) "_class", NULL
29029 };
29030
29031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29032 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_EXCEPTION | 0);
29033 if (SWIG_arg_fail(1)) SWIG_fail;
29034 arg2 = obj1;
29035 arg3 = obj2;
29036 {
29037 PyThreadState* __tstate = wxPyBeginAllowThreads();
29038 (arg1)->_setCallbackInfo(arg2,arg3);
29039
29040 wxPyEndAllowThreads(__tstate);
29041 if (PyErr_Occurred()) SWIG_fail;
29042 }
29043 Py_INCREF(Py_None); resultobj = Py_None;
29044 return resultobj;
29045 fail:
29046 return NULL;
29047 }
29048
29049
29050 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
29051 PyObject *obj;
29052 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29053 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
29054 Py_INCREF(obj);
29055 return Py_BuildValue((char *)"");
29056 }
29057 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29058 PyObject *resultobj = NULL;
29059 wxBitmap const &arg1_defvalue = wxNullBitmap ;
29060 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
29061 wxBitmapDataObject *result;
29062 PyObject * obj0 = 0 ;
29063 char *kwnames[] = {
29064 (char *) "bitmap", NULL
29065 };
29066
29067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
29068 if (obj0) {
29069 {
29070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29071 if (SWIG_arg_fail(1)) SWIG_fail;
29072 if (arg1 == NULL) {
29073 SWIG_null_ref("wxBitmap");
29074 }
29075 if (SWIG_arg_fail(1)) SWIG_fail;
29076 }
29077 }
29078 {
29079 PyThreadState* __tstate = wxPyBeginAllowThreads();
29080 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
29081
29082 wxPyEndAllowThreads(__tstate);
29083 if (PyErr_Occurred()) SWIG_fail;
29084 }
29085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
29086 return resultobj;
29087 fail:
29088 return NULL;
29089 }
29090
29091
29092 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
29093 PyObject *resultobj = NULL;
29094 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
29095 wxBitmap result;
29096 PyObject * obj0 = 0 ;
29097 char *kwnames[] = {
29098 (char *) "self", NULL
29099 };
29100
29101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
29102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29103 if (SWIG_arg_fail(1)) SWIG_fail;
29104 {
29105 PyThreadState* __tstate = wxPyBeginAllowThreads();
29106 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
29107
29108 wxPyEndAllowThreads(__tstate);
29109 if (PyErr_Occurred()) SWIG_fail;
29110 }
29111 {
29112 wxBitmap * resultptr;
29113 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
29114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
29115 }
29116 return resultobj;
29117 fail:
29118 return NULL;
29119 }
29120
29121
29122 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
29123 PyObject *resultobj = NULL;
29124 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
29125 wxBitmap *arg2 = 0 ;
29126 PyObject * obj0 = 0 ;
29127 PyObject * obj1 = 0 ;
29128 char *kwnames[] = {
29129 (char *) "self",(char *) "bitmap", NULL
29130 };
29131
29132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
29133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29134 if (SWIG_arg_fail(1)) SWIG_fail;
29135 {
29136 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29137 if (SWIG_arg_fail(2)) SWIG_fail;
29138 if (arg2 == NULL) {
29139 SWIG_null_ref("wxBitmap");
29140 }
29141 if (SWIG_arg_fail(2)) SWIG_fail;
29142 }
29143 {
29144 PyThreadState* __tstate = wxPyBeginAllowThreads();
29145 (arg1)->SetBitmap((wxBitmap const &)*arg2);
29146
29147 wxPyEndAllowThreads(__tstate);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 }
29150 Py_INCREF(Py_None); resultobj = Py_None;
29151 return resultobj;
29152 fail:
29153 return NULL;
29154 }
29155
29156
29157 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
29158 PyObject *obj;
29159 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29160 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
29161 Py_INCREF(obj);
29162 return Py_BuildValue((char *)"");
29163 }
29164 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29165 PyObject *resultobj = NULL;
29166 wxBitmap const &arg1_defvalue = wxNullBitmap ;
29167 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
29168 wxPyBitmapDataObject *result;
29169 PyObject * obj0 = 0 ;
29170 char *kwnames[] = {
29171 (char *) "bitmap", NULL
29172 };
29173
29174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
29175 if (obj0) {
29176 {
29177 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29178 if (SWIG_arg_fail(1)) SWIG_fail;
29179 if (arg1 == NULL) {
29180 SWIG_null_ref("wxBitmap");
29181 }
29182 if (SWIG_arg_fail(1)) SWIG_fail;
29183 }
29184 }
29185 {
29186 PyThreadState* __tstate = wxPyBeginAllowThreads();
29187 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
29188
29189 wxPyEndAllowThreads(__tstate);
29190 if (PyErr_Occurred()) SWIG_fail;
29191 }
29192 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
29193 return resultobj;
29194 fail:
29195 return NULL;
29196 }
29197
29198
29199 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29200 PyObject *resultobj = NULL;
29201 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
29202 PyObject *arg2 = (PyObject *) 0 ;
29203 PyObject *arg3 = (PyObject *) 0 ;
29204 PyObject * obj0 = 0 ;
29205 PyObject * obj1 = 0 ;
29206 PyObject * obj2 = 0 ;
29207 char *kwnames[] = {
29208 (char *) "self",(char *) "self",(char *) "_class", NULL
29209 };
29210
29211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29213 if (SWIG_arg_fail(1)) SWIG_fail;
29214 arg2 = obj1;
29215 arg3 = obj2;
29216 {
29217 PyThreadState* __tstate = wxPyBeginAllowThreads();
29218 (arg1)->_setCallbackInfo(arg2,arg3);
29219
29220 wxPyEndAllowThreads(__tstate);
29221 if (PyErr_Occurred()) SWIG_fail;
29222 }
29223 Py_INCREF(Py_None); resultobj = Py_None;
29224 return resultobj;
29225 fail:
29226 return NULL;
29227 }
29228
29229
29230 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
29231 PyObject *obj;
29232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29233 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
29234 Py_INCREF(obj);
29235 return Py_BuildValue((char *)"");
29236 }
29237 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29238 PyObject *resultobj = NULL;
29239 wxFileDataObject *result;
29240 char *kwnames[] = {
29241 NULL
29242 };
29243
29244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
29245 {
29246 PyThreadState* __tstate = wxPyBeginAllowThreads();
29247 result = (wxFileDataObject *)new wxFileDataObject();
29248
29249 wxPyEndAllowThreads(__tstate);
29250 if (PyErr_Occurred()) SWIG_fail;
29251 }
29252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
29253 return resultobj;
29254 fail:
29255 return NULL;
29256 }
29257
29258
29259 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
29260 PyObject *resultobj = NULL;
29261 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
29262 wxArrayString *result;
29263 PyObject * obj0 = 0 ;
29264 char *kwnames[] = {
29265 (char *) "self", NULL
29266 };
29267
29268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
29269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0);
29270 if (SWIG_arg_fail(1)) SWIG_fail;
29271 {
29272 PyThreadState* __tstate = wxPyBeginAllowThreads();
29273 {
29274 wxArrayString const &_result_ref = (arg1)->GetFilenames();
29275 result = (wxArrayString *) &_result_ref;
29276 }
29277
29278 wxPyEndAllowThreads(__tstate);
29279 if (PyErr_Occurred()) SWIG_fail;
29280 }
29281 {
29282 resultobj = wxArrayString2PyList_helper(*result);
29283 }
29284 return resultobj;
29285 fail:
29286 return NULL;
29287 }
29288
29289
29290 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
29291 PyObject *resultobj = NULL;
29292 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
29293 wxString *arg2 = 0 ;
29294 bool temp2 = false ;
29295 PyObject * obj0 = 0 ;
29296 PyObject * obj1 = 0 ;
29297 char *kwnames[] = {
29298 (char *) "self",(char *) "filename", NULL
29299 };
29300
29301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
29302 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0);
29303 if (SWIG_arg_fail(1)) SWIG_fail;
29304 {
29305 arg2 = wxString_in_helper(obj1);
29306 if (arg2 == NULL) SWIG_fail;
29307 temp2 = true;
29308 }
29309 {
29310 PyThreadState* __tstate = wxPyBeginAllowThreads();
29311 (arg1)->AddFile((wxString const &)*arg2);
29312
29313 wxPyEndAllowThreads(__tstate);
29314 if (PyErr_Occurred()) SWIG_fail;
29315 }
29316 Py_INCREF(Py_None); resultobj = Py_None;
29317 {
29318 if (temp2)
29319 delete arg2;
29320 }
29321 return resultobj;
29322 fail:
29323 {
29324 if (temp2)
29325 delete arg2;
29326 }
29327 return NULL;
29328 }
29329
29330
29331 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
29332 PyObject *obj;
29333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29334 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
29335 Py_INCREF(obj);
29336 return Py_BuildValue((char *)"");
29337 }
29338 static PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *, PyObject *args) {
29339 PyObject *resultobj = NULL;
29340 wxDataFormat *arg1 = 0 ;
29341 wxCustomDataObject *result;
29342 PyObject * obj0 = 0 ;
29343
29344 if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail;
29345 {
29346 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
29347 if (SWIG_arg_fail(1)) SWIG_fail;
29348 if (arg1 == NULL) {
29349 SWIG_null_ref("wxDataFormat");
29350 }
29351 if (SWIG_arg_fail(1)) SWIG_fail;
29352 }
29353 {
29354 PyThreadState* __tstate = wxPyBeginAllowThreads();
29355 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
29356
29357 wxPyEndAllowThreads(__tstate);
29358 if (PyErr_Occurred()) SWIG_fail;
29359 }
29360 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29361 return resultobj;
29362 fail:
29363 return NULL;
29364 }
29365
29366
29367 static PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *, PyObject *args) {
29368 PyObject *resultobj = NULL;
29369 wxString *arg1 = 0 ;
29370 wxCustomDataObject *result;
29371 bool temp1 = false ;
29372 PyObject * obj0 = 0 ;
29373
29374 if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail;
29375 {
29376 arg1 = wxString_in_helper(obj0);
29377 if (arg1 == NULL) SWIG_fail;
29378 temp1 = true;
29379 }
29380 {
29381 PyThreadState* __tstate = wxPyBeginAllowThreads();
29382 result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1);
29383
29384 wxPyEndAllowThreads(__tstate);
29385 if (PyErr_Occurred()) SWIG_fail;
29386 }
29387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29388 {
29389 if (temp1)
29390 delete arg1;
29391 }
29392 return resultobj;
29393 fail:
29394 {
29395 if (temp1)
29396 delete arg1;
29397 }
29398 return NULL;
29399 }
29400
29401
29402 static PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *, PyObject *args) {
29403 PyObject *resultobj = NULL;
29404 wxCustomDataObject *result;
29405
29406 if(!PyArg_ParseTuple(args,(char *)":new_CustomDataObject")) goto fail;
29407 {
29408 PyThreadState* __tstate = wxPyBeginAllowThreads();
29409 result = (wxCustomDataObject *)new wxCustomDataObject();
29410
29411 wxPyEndAllowThreads(__tstate);
29412 if (PyErr_Occurred()) SWIG_fail;
29413 }
29414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29415 return resultobj;
29416 fail:
29417 return NULL;
29418 }
29419
29420
29421 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) {
29422 int argc;
29423 PyObject *argv[2];
29424 int ii;
29425
29426 argc = PyObject_Length(args);
29427 for (ii = 0; (ii < argc) && (ii < 1); ii++) {
29428 argv[ii] = PyTuple_GetItem(args,ii);
29429 }
29430 if (argc == 0) {
29431 return _wrap_new_CustomDataObject__SWIG_2(self,args);
29432 }
29433 if (argc == 1) {
29434 int _v;
29435 {
29436 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
29437 }
29438 if (_v) {
29439 return _wrap_new_CustomDataObject__SWIG_1(self,args);
29440 }
29441 }
29442 if (argc == 1) {
29443 int _v;
29444 {
29445 void *ptr = 0;
29446 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
29447 _v = 0;
29448 PyErr_Clear();
29449 } else {
29450 _v = (ptr != 0);
29451 }
29452 }
29453 if (_v) {
29454 return _wrap_new_CustomDataObject__SWIG_0(self,args);
29455 }
29456 }
29457
29458 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'");
29459 return NULL;
29460 }
29461
29462
29463 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
29464 PyObject *resultobj = NULL;
29465 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29466 PyObject *arg2 = (PyObject *) 0 ;
29467 bool result;
29468 PyObject * obj0 = 0 ;
29469 PyObject * obj1 = 0 ;
29470 char *kwnames[] = {
29471 (char *) "self",(char *) "data", NULL
29472 };
29473
29474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
29475 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29476 if (SWIG_arg_fail(1)) SWIG_fail;
29477 arg2 = obj1;
29478 {
29479 PyThreadState* __tstate = wxPyBeginAllowThreads();
29480 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
29481
29482 wxPyEndAllowThreads(__tstate);
29483 if (PyErr_Occurred()) SWIG_fail;
29484 }
29485 {
29486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29487 }
29488 return resultobj;
29489 fail:
29490 return NULL;
29491 }
29492
29493
29494 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29495 PyObject *resultobj = NULL;
29496 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29497 size_t result;
29498 PyObject * obj0 = 0 ;
29499 char *kwnames[] = {
29500 (char *) "self", NULL
29501 };
29502
29503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
29504 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29505 if (SWIG_arg_fail(1)) SWIG_fail;
29506 {
29507 PyThreadState* __tstate = wxPyBeginAllowThreads();
29508 result = (size_t)(arg1)->GetSize();
29509
29510 wxPyEndAllowThreads(__tstate);
29511 if (PyErr_Occurred()) SWIG_fail;
29512 }
29513 {
29514 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
29515 }
29516 return resultobj;
29517 fail:
29518 return NULL;
29519 }
29520
29521
29522 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
29523 PyObject *resultobj = NULL;
29524 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29525 PyObject *result;
29526 PyObject * obj0 = 0 ;
29527 char *kwnames[] = {
29528 (char *) "self", NULL
29529 };
29530
29531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
29532 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29533 if (SWIG_arg_fail(1)) SWIG_fail;
29534 {
29535 PyThreadState* __tstate = wxPyBeginAllowThreads();
29536 result = (PyObject *)wxCustomDataObject_GetData(arg1);
29537
29538 wxPyEndAllowThreads(__tstate);
29539 if (PyErr_Occurred()) SWIG_fail;
29540 }
29541 resultobj = result;
29542 return resultobj;
29543 fail:
29544 return NULL;
29545 }
29546
29547
29548 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
29549 PyObject *obj;
29550 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29551 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
29552 Py_INCREF(obj);
29553 return Py_BuildValue((char *)"");
29554 }
29555 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29556 PyObject *resultobj = NULL;
29557 wxURLDataObject *result;
29558 char *kwnames[] = {
29559 NULL
29560 };
29561
29562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
29563 {
29564 PyThreadState* __tstate = wxPyBeginAllowThreads();
29565 result = (wxURLDataObject *)new wxURLDataObject();
29566
29567 wxPyEndAllowThreads(__tstate);
29568 if (PyErr_Occurred()) SWIG_fail;
29569 }
29570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
29571 return resultobj;
29572 fail:
29573 return NULL;
29574 }
29575
29576
29577 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
29578 PyObject *resultobj = NULL;
29579 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
29580 wxString result;
29581 PyObject * obj0 = 0 ;
29582 char *kwnames[] = {
29583 (char *) "self", NULL
29584 };
29585
29586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
29587 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0);
29588 if (SWIG_arg_fail(1)) SWIG_fail;
29589 {
29590 PyThreadState* __tstate = wxPyBeginAllowThreads();
29591 result = (arg1)->GetURL();
29592
29593 wxPyEndAllowThreads(__tstate);
29594 if (PyErr_Occurred()) SWIG_fail;
29595 }
29596 {
29597 #if wxUSE_UNICODE
29598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29599 #else
29600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29601 #endif
29602 }
29603 return resultobj;
29604 fail:
29605 return NULL;
29606 }
29607
29608
29609 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
29610 PyObject *resultobj = NULL;
29611 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
29612 wxString *arg2 = 0 ;
29613 bool temp2 = false ;
29614 PyObject * obj0 = 0 ;
29615 PyObject * obj1 = 0 ;
29616 char *kwnames[] = {
29617 (char *) "self",(char *) "url", NULL
29618 };
29619
29620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
29621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0);
29622 if (SWIG_arg_fail(1)) SWIG_fail;
29623 {
29624 arg2 = wxString_in_helper(obj1);
29625 if (arg2 == NULL) SWIG_fail;
29626 temp2 = true;
29627 }
29628 {
29629 PyThreadState* __tstate = wxPyBeginAllowThreads();
29630 (arg1)->SetURL((wxString const &)*arg2);
29631
29632 wxPyEndAllowThreads(__tstate);
29633 if (PyErr_Occurred()) SWIG_fail;
29634 }
29635 Py_INCREF(Py_None); resultobj = Py_None;
29636 {
29637 if (temp2)
29638 delete arg2;
29639 }
29640 return resultobj;
29641 fail:
29642 {
29643 if (temp2)
29644 delete arg2;
29645 }
29646 return NULL;
29647 }
29648
29649
29650 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
29651 PyObject *obj;
29652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29653 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
29654 Py_INCREF(obj);
29655 return Py_BuildValue((char *)"");
29656 }
29657 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29658 PyObject *resultobj = NULL;
29659 wxMetafileDataObject *result;
29660 char *kwnames[] = {
29661 NULL
29662 };
29663
29664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
29665 {
29666 PyThreadState* __tstate = wxPyBeginAllowThreads();
29667 result = (wxMetafileDataObject *)new wxMetafileDataObject();
29668
29669 wxPyEndAllowThreads(__tstate);
29670 if (PyErr_Occurred()) SWIG_fail;
29671 }
29672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
29673 return resultobj;
29674 fail:
29675 return NULL;
29676 }
29677
29678
29679 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
29680 PyObject *resultobj = NULL;
29681 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
29682 wxMetafile *arg2 = 0 ;
29683 PyObject * obj0 = 0 ;
29684 PyObject * obj1 = 0 ;
29685 char *kwnames[] = {
29686 (char *) "self",(char *) "metafile", NULL
29687 };
29688
29689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
29690 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0);
29691 if (SWIG_arg_fail(1)) SWIG_fail;
29692 {
29693 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMetafile, SWIG_POINTER_EXCEPTION | 0);
29694 if (SWIG_arg_fail(2)) SWIG_fail;
29695 if (arg2 == NULL) {
29696 SWIG_null_ref("wxMetafile");
29697 }
29698 if (SWIG_arg_fail(2)) SWIG_fail;
29699 }
29700 {
29701 PyThreadState* __tstate = wxPyBeginAllowThreads();
29702 (arg1)->SetMetafile((wxMetafile const &)*arg2);
29703
29704 wxPyEndAllowThreads(__tstate);
29705 if (PyErr_Occurred()) SWIG_fail;
29706 }
29707 Py_INCREF(Py_None); resultobj = Py_None;
29708 return resultobj;
29709 fail:
29710 return NULL;
29711 }
29712
29713
29714 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
29715 PyObject *resultobj = NULL;
29716 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
29717 wxMetafile result;
29718 PyObject * obj0 = 0 ;
29719 char *kwnames[] = {
29720 (char *) "self", NULL
29721 };
29722
29723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
29724 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0);
29725 if (SWIG_arg_fail(1)) SWIG_fail;
29726 {
29727 PyThreadState* __tstate = wxPyBeginAllowThreads();
29728 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
29729
29730 wxPyEndAllowThreads(__tstate);
29731 if (PyErr_Occurred()) SWIG_fail;
29732 }
29733 {
29734 wxMetafile * resultptr;
29735 resultptr = new wxMetafile(static_cast<wxMetafile & >(result));
29736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
29737 }
29738 return resultobj;
29739 fail:
29740 return NULL;
29741 }
29742
29743
29744 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
29745 PyObject *obj;
29746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29747 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
29748 Py_INCREF(obj);
29749 return Py_BuildValue((char *)"");
29750 }
29751 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
29752 PyObject *resultobj = NULL;
29753 wxDragResult arg1 ;
29754 bool result;
29755 PyObject * obj0 = 0 ;
29756 char *kwnames[] = {
29757 (char *) "res", NULL
29758 };
29759
29760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
29761 {
29762 arg1 = static_cast<wxDragResult >(SWIG_As_int(obj0));
29763 if (SWIG_arg_fail(1)) SWIG_fail;
29764 }
29765 {
29766 PyThreadState* __tstate = wxPyBeginAllowThreads();
29767 result = (bool)wxIsDragResultOk(arg1);
29768
29769 wxPyEndAllowThreads(__tstate);
29770 if (PyErr_Occurred()) SWIG_fail;
29771 }
29772 {
29773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29774 }
29775 return resultobj;
29776 fail:
29777 return NULL;
29778 }
29779
29780
29781 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
29782 PyObject *resultobj = NULL;
29783 wxWindow *arg1 = (wxWindow *) 0 ;
29784 wxCursor const &arg2_defvalue = wxNullCursor ;
29785 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29786 wxCursor const &arg3_defvalue = wxNullCursor ;
29787 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
29788 wxCursor const &arg4_defvalue = wxNullCursor ;
29789 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
29790 wxPyDropSource *result;
29791 PyObject * obj0 = 0 ;
29792 PyObject * obj1 = 0 ;
29793 PyObject * obj2 = 0 ;
29794 PyObject * obj3 = 0 ;
29795 char *kwnames[] = {
29796 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
29797 };
29798
29799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29800 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29801 if (SWIG_arg_fail(1)) SWIG_fail;
29802 if (obj1) {
29803 {
29804 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29805 if (SWIG_arg_fail(2)) SWIG_fail;
29806 if (arg2 == NULL) {
29807 SWIG_null_ref("wxCursor");
29808 }
29809 if (SWIG_arg_fail(2)) SWIG_fail;
29810 }
29811 }
29812 if (obj2) {
29813 {
29814 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29815 if (SWIG_arg_fail(3)) SWIG_fail;
29816 if (arg3 == NULL) {
29817 SWIG_null_ref("wxCursor");
29818 }
29819 if (SWIG_arg_fail(3)) SWIG_fail;
29820 }
29821 }
29822 if (obj3) {
29823 {
29824 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29825 if (SWIG_arg_fail(4)) SWIG_fail;
29826 if (arg4 == NULL) {
29827 SWIG_null_ref("wxCursor");
29828 }
29829 if (SWIG_arg_fail(4)) SWIG_fail;
29830 }
29831 }
29832 {
29833 PyThreadState* __tstate = wxPyBeginAllowThreads();
29834 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
29835
29836 wxPyEndAllowThreads(__tstate);
29837 if (PyErr_Occurred()) SWIG_fail;
29838 }
29839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
29840 return resultobj;
29841 fail:
29842 return NULL;
29843 }
29844
29845
29846 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29847 PyObject *resultobj = NULL;
29848 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29849 PyObject *arg2 = (PyObject *) 0 ;
29850 PyObject *arg3 = (PyObject *) 0 ;
29851 int arg4 ;
29852 PyObject * obj0 = 0 ;
29853 PyObject * obj1 = 0 ;
29854 PyObject * obj2 = 0 ;
29855 PyObject * obj3 = 0 ;
29856 char *kwnames[] = {
29857 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
29858 };
29859
29860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29862 if (SWIG_arg_fail(1)) SWIG_fail;
29863 arg2 = obj1;
29864 arg3 = obj2;
29865 {
29866 arg4 = static_cast<int >(SWIG_As_int(obj3));
29867 if (SWIG_arg_fail(4)) SWIG_fail;
29868 }
29869 {
29870 PyThreadState* __tstate = wxPyBeginAllowThreads();
29871 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
29872
29873 wxPyEndAllowThreads(__tstate);
29874 if (PyErr_Occurred()) SWIG_fail;
29875 }
29876 Py_INCREF(Py_None); resultobj = Py_None;
29877 return resultobj;
29878 fail:
29879 return NULL;
29880 }
29881
29882
29883 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
29884 PyObject *resultobj = NULL;
29885 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29886 PyObject * obj0 = 0 ;
29887 char *kwnames[] = {
29888 (char *) "self", NULL
29889 };
29890
29891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
29892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29893 if (SWIG_arg_fail(1)) SWIG_fail;
29894 {
29895 PyThreadState* __tstate = wxPyBeginAllowThreads();
29896 delete arg1;
29897
29898 wxPyEndAllowThreads(__tstate);
29899 if (PyErr_Occurred()) SWIG_fail;
29900 }
29901 Py_INCREF(Py_None); resultobj = Py_None;
29902 return resultobj;
29903 fail:
29904 return NULL;
29905 }
29906
29907
29908 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
29909 PyObject *resultobj = NULL;
29910 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29911 wxDataObject *arg2 = 0 ;
29912 PyObject * obj0 = 0 ;
29913 PyObject * obj1 = 0 ;
29914 char *kwnames[] = {
29915 (char *) "self",(char *) "data", NULL
29916 };
29917
29918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
29919 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29920 if (SWIG_arg_fail(1)) SWIG_fail;
29921 {
29922 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
29923 if (SWIG_arg_fail(2)) SWIG_fail;
29924 if (arg2 == NULL) {
29925 SWIG_null_ref("wxDataObject");
29926 }
29927 if (SWIG_arg_fail(2)) SWIG_fail;
29928 }
29929 {
29930 PyThreadState* __tstate = wxPyBeginAllowThreads();
29931 (arg1)->SetData(*arg2);
29932
29933 wxPyEndAllowThreads(__tstate);
29934 if (PyErr_Occurred()) SWIG_fail;
29935 }
29936 Py_INCREF(Py_None); resultobj = Py_None;
29937 return resultobj;
29938 fail:
29939 return NULL;
29940 }
29941
29942
29943 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29944 PyObject *resultobj = NULL;
29945 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29946 wxDataObject *result;
29947 PyObject * obj0 = 0 ;
29948 char *kwnames[] = {
29949 (char *) "self", NULL
29950 };
29951
29952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
29953 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29954 if (SWIG_arg_fail(1)) SWIG_fail;
29955 {
29956 PyThreadState* __tstate = wxPyBeginAllowThreads();
29957 result = (wxDataObject *)(arg1)->GetDataObject();
29958
29959 wxPyEndAllowThreads(__tstate);
29960 if (PyErr_Occurred()) SWIG_fail;
29961 }
29962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
29963 return resultobj;
29964 fail:
29965 return NULL;
29966 }
29967
29968
29969 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
29970 PyObject *resultobj = NULL;
29971 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29972 wxDragResult arg2 ;
29973 wxCursor *arg3 = 0 ;
29974 PyObject * obj0 = 0 ;
29975 PyObject * obj1 = 0 ;
29976 PyObject * obj2 = 0 ;
29977 char *kwnames[] = {
29978 (char *) "self",(char *) "res",(char *) "cursor", NULL
29979 };
29980
29981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
29982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29983 if (SWIG_arg_fail(1)) SWIG_fail;
29984 {
29985 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
29986 if (SWIG_arg_fail(2)) SWIG_fail;
29987 }
29988 {
29989 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29990 if (SWIG_arg_fail(3)) SWIG_fail;
29991 if (arg3 == NULL) {
29992 SWIG_null_ref("wxCursor");
29993 }
29994 if (SWIG_arg_fail(3)) SWIG_fail;
29995 }
29996 {
29997 PyThreadState* __tstate = wxPyBeginAllowThreads();
29998 (arg1)->SetCursor(arg2,(wxCursor const &)*arg3);
29999
30000 wxPyEndAllowThreads(__tstate);
30001 if (PyErr_Occurred()) SWIG_fail;
30002 }
30003 Py_INCREF(Py_None); resultobj = Py_None;
30004 return resultobj;
30005 fail:
30006 return NULL;
30007 }
30008
30009
30010 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30011 PyObject *resultobj = NULL;
30012 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30013 int arg2 = (int) wxDrag_CopyOnly ;
30014 wxDragResult result;
30015 PyObject * obj0 = 0 ;
30016 PyObject * obj1 = 0 ;
30017 char *kwnames[] = {
30018 (char *) "self",(char *) "flags", NULL
30019 };
30020
30021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
30022 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30023 if (SWIG_arg_fail(1)) SWIG_fail;
30024 if (obj1) {
30025 {
30026 arg2 = static_cast<int >(SWIG_As_int(obj1));
30027 if (SWIG_arg_fail(2)) SWIG_fail;
30028 }
30029 }
30030 {
30031 PyThreadState* __tstate = wxPyBeginAllowThreads();
30032 result = (wxDragResult)(arg1)->DoDragDrop(arg2);
30033
30034 wxPyEndAllowThreads(__tstate);
30035 if (PyErr_Occurred()) SWIG_fail;
30036 }
30037 resultobj = SWIG_From_int((result));
30038 return resultobj;
30039 fail:
30040 return NULL;
30041 }
30042
30043
30044 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
30045 PyObject *resultobj = NULL;
30046 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30047 wxDragResult arg2 ;
30048 bool result;
30049 PyObject * obj0 = 0 ;
30050 PyObject * obj1 = 0 ;
30051 char *kwnames[] = {
30052 (char *) "self",(char *) "effect", NULL
30053 };
30054
30055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
30056 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30057 if (SWIG_arg_fail(1)) SWIG_fail;
30058 {
30059 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
30060 if (SWIG_arg_fail(2)) SWIG_fail;
30061 }
30062 {
30063 PyThreadState* __tstate = wxPyBeginAllowThreads();
30064 result = (bool)(arg1)->base_GiveFeedback(arg2);
30065
30066 wxPyEndAllowThreads(__tstate);
30067 if (PyErr_Occurred()) SWIG_fail;
30068 }
30069 {
30070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30071 }
30072 return resultobj;
30073 fail:
30074 return NULL;
30075 }
30076
30077
30078 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
30079 PyObject *obj;
30080 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30081 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
30082 Py_INCREF(obj);
30083 return Py_BuildValue((char *)"");
30084 }
30085 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30086 PyObject *resultobj = NULL;
30087 wxDataObject *arg1 = (wxDataObject *) NULL ;
30088 wxPyDropTarget *result;
30089 PyObject * obj0 = 0 ;
30090 char *kwnames[] = {
30091 (char *) "dataObject", NULL
30092 };
30093
30094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
30095 if (obj0) {
30096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
30097 if (SWIG_arg_fail(1)) SWIG_fail;
30098 }
30099 {
30100 PyThreadState* __tstate = wxPyBeginAllowThreads();
30101 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
30102
30103 wxPyEndAllowThreads(__tstate);
30104 if (PyErr_Occurred()) SWIG_fail;
30105 }
30106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
30107 return resultobj;
30108 fail:
30109 return NULL;
30110 }
30111
30112
30113 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30114 PyObject *resultobj = NULL;
30115 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30116 PyObject *arg2 = (PyObject *) 0 ;
30117 PyObject *arg3 = (PyObject *) 0 ;
30118 PyObject * obj0 = 0 ;
30119 PyObject * obj1 = 0 ;
30120 PyObject * obj2 = 0 ;
30121 char *kwnames[] = {
30122 (char *) "self",(char *) "self",(char *) "_class", NULL
30123 };
30124
30125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30126 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30127 if (SWIG_arg_fail(1)) SWIG_fail;
30128 arg2 = obj1;
30129 arg3 = obj2;
30130 {
30131 PyThreadState* __tstate = wxPyBeginAllowThreads();
30132 (arg1)->_setCallbackInfo(arg2,arg3);
30133
30134 wxPyEndAllowThreads(__tstate);
30135 if (PyErr_Occurred()) SWIG_fail;
30136 }
30137 Py_INCREF(Py_None); resultobj = Py_None;
30138 return resultobj;
30139 fail:
30140 return NULL;
30141 }
30142
30143
30144 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30145 PyObject *resultobj = NULL;
30146 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30147 PyObject * obj0 = 0 ;
30148 char *kwnames[] = {
30149 (char *) "self", NULL
30150 };
30151
30152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
30153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30154 if (SWIG_arg_fail(1)) SWIG_fail;
30155 {
30156 PyThreadState* __tstate = wxPyBeginAllowThreads();
30157 delete arg1;
30158
30159 wxPyEndAllowThreads(__tstate);
30160 if (PyErr_Occurred()) SWIG_fail;
30161 }
30162 Py_INCREF(Py_None); resultobj = Py_None;
30163 return resultobj;
30164 fail:
30165 return NULL;
30166 }
30167
30168
30169 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30170 PyObject *resultobj = NULL;
30171 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30172 wxDataObject *result;
30173 PyObject * obj0 = 0 ;
30174 char *kwnames[] = {
30175 (char *) "self", NULL
30176 };
30177
30178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
30179 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30180 if (SWIG_arg_fail(1)) SWIG_fail;
30181 {
30182 PyThreadState* __tstate = wxPyBeginAllowThreads();
30183 result = (wxDataObject *)(arg1)->GetDataObject();
30184
30185 wxPyEndAllowThreads(__tstate);
30186 if (PyErr_Occurred()) SWIG_fail;
30187 }
30188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
30189 return resultobj;
30190 fail:
30191 return NULL;
30192 }
30193
30194
30195 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30196 PyObject *resultobj = NULL;
30197 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30198 wxDataObject *arg2 = (wxDataObject *) 0 ;
30199 PyObject * obj0 = 0 ;
30200 PyObject * obj1 = 0 ;
30201 char *kwnames[] = {
30202 (char *) "self",(char *) "dataObject", NULL
30203 };
30204
30205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
30206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30207 if (SWIG_arg_fail(1)) SWIG_fail;
30208 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
30209 if (SWIG_arg_fail(2)) SWIG_fail;
30210 {
30211 PyThreadState* __tstate = wxPyBeginAllowThreads();
30212 (arg1)->SetDataObject(arg2);
30213
30214 wxPyEndAllowThreads(__tstate);
30215 if (PyErr_Occurred()) SWIG_fail;
30216 }
30217 Py_INCREF(Py_None); resultobj = Py_None;
30218 return resultobj;
30219 fail:
30220 return NULL;
30221 }
30222
30223
30224 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30225 PyObject *resultobj = NULL;
30226 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30227 int arg2 ;
30228 int arg3 ;
30229 wxDragResult arg4 ;
30230 wxDragResult result;
30231 PyObject * obj0 = 0 ;
30232 PyObject * obj1 = 0 ;
30233 PyObject * obj2 = 0 ;
30234 PyObject * obj3 = 0 ;
30235 char *kwnames[] = {
30236 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30237 };
30238
30239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30240 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30241 if (SWIG_arg_fail(1)) SWIG_fail;
30242 {
30243 arg2 = static_cast<int >(SWIG_As_int(obj1));
30244 if (SWIG_arg_fail(2)) SWIG_fail;
30245 }
30246 {
30247 arg3 = static_cast<int >(SWIG_As_int(obj2));
30248 if (SWIG_arg_fail(3)) SWIG_fail;
30249 }
30250 {
30251 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30252 if (SWIG_arg_fail(4)) SWIG_fail;
30253 }
30254 {
30255 PyThreadState* __tstate = wxPyBeginAllowThreads();
30256 result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,arg4);
30257
30258 wxPyEndAllowThreads(__tstate);
30259 if (PyErr_Occurred()) SWIG_fail;
30260 }
30261 resultobj = SWIG_From_int((result));
30262 return resultobj;
30263 fail:
30264 return NULL;
30265 }
30266
30267
30268 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
30269 PyObject *resultobj = NULL;
30270 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30271 int arg2 ;
30272 int arg3 ;
30273 wxDragResult arg4 ;
30274 wxDragResult result;
30275 PyObject * obj0 = 0 ;
30276 PyObject * obj1 = 0 ;
30277 PyObject * obj2 = 0 ;
30278 PyObject * obj3 = 0 ;
30279 char *kwnames[] = {
30280 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30281 };
30282
30283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30285 if (SWIG_arg_fail(1)) SWIG_fail;
30286 {
30287 arg2 = static_cast<int >(SWIG_As_int(obj1));
30288 if (SWIG_arg_fail(2)) SWIG_fail;
30289 }
30290 {
30291 arg3 = static_cast<int >(SWIG_As_int(obj2));
30292 if (SWIG_arg_fail(3)) SWIG_fail;
30293 }
30294 {
30295 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30296 if (SWIG_arg_fail(4)) SWIG_fail;
30297 }
30298 {
30299 PyThreadState* __tstate = wxPyBeginAllowThreads();
30300 result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,arg4);
30301
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_From_int((result));
30306 return resultobj;
30307 fail:
30308 return NULL;
30309 }
30310
30311
30312 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj = NULL;
30314 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30315 PyObject * obj0 = 0 ;
30316 char *kwnames[] = {
30317 (char *) "self", NULL
30318 };
30319
30320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
30321 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30322 if (SWIG_arg_fail(1)) SWIG_fail;
30323 {
30324 PyThreadState* __tstate = wxPyBeginAllowThreads();
30325 (arg1)->base_OnLeave();
30326
30327 wxPyEndAllowThreads(__tstate);
30328 if (PyErr_Occurred()) SWIG_fail;
30329 }
30330 Py_INCREF(Py_None); resultobj = Py_None;
30331 return resultobj;
30332 fail:
30333 return NULL;
30334 }
30335
30336
30337 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30338 PyObject *resultobj = NULL;
30339 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30340 int arg2 ;
30341 int arg3 ;
30342 bool result;
30343 PyObject * obj0 = 0 ;
30344 PyObject * obj1 = 0 ;
30345 PyObject * obj2 = 0 ;
30346 char *kwnames[] = {
30347 (char *) "self",(char *) "x",(char *) "y", NULL
30348 };
30349
30350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30351 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30352 if (SWIG_arg_fail(1)) SWIG_fail;
30353 {
30354 arg2 = static_cast<int >(SWIG_As_int(obj1));
30355 if (SWIG_arg_fail(2)) SWIG_fail;
30356 }
30357 {
30358 arg3 = static_cast<int >(SWIG_As_int(obj2));
30359 if (SWIG_arg_fail(3)) SWIG_fail;
30360 }
30361 {
30362 PyThreadState* __tstate = wxPyBeginAllowThreads();
30363 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
30364
30365 wxPyEndAllowThreads(__tstate);
30366 if (PyErr_Occurred()) SWIG_fail;
30367 }
30368 {
30369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30370 }
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = NULL;
30379 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30380 bool result;
30381 PyObject * obj0 = 0 ;
30382 char *kwnames[] = {
30383 (char *) "self", NULL
30384 };
30385
30386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
30387 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30388 if (SWIG_arg_fail(1)) SWIG_fail;
30389 {
30390 PyThreadState* __tstate = wxPyBeginAllowThreads();
30391 result = (bool)(arg1)->GetData();
30392
30393 wxPyEndAllowThreads(__tstate);
30394 if (PyErr_Occurred()) SWIG_fail;
30395 }
30396 {
30397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30398 }
30399 return resultobj;
30400 fail:
30401 return NULL;
30402 }
30403
30404
30405 static PyObject *_wrap_DropTarget_SetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) {
30406 PyObject *resultobj = NULL;
30407 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30408 wxDragResult arg2 ;
30409 PyObject * obj0 = 0 ;
30410 PyObject * obj1 = 0 ;
30411 char *kwnames[] = {
30412 (char *) "self",(char *) "action", NULL
30413 };
30414
30415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDefaultAction",kwnames,&obj0,&obj1)) 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<wxDragResult >(SWIG_As_int(obj1));
30420 if (SWIG_arg_fail(2)) SWIG_fail;
30421 }
30422 {
30423 PyThreadState* __tstate = wxPyBeginAllowThreads();
30424 (arg1)->SetDefaultAction(arg2);
30425
30426 wxPyEndAllowThreads(__tstate);
30427 if (PyErr_Occurred()) SWIG_fail;
30428 }
30429 Py_INCREF(Py_None); resultobj = Py_None;
30430 return resultobj;
30431 fail:
30432 return NULL;
30433 }
30434
30435
30436 static PyObject *_wrap_DropTarget_GetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) {
30437 PyObject *resultobj = NULL;
30438 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30439 wxDragResult result;
30440 PyObject * obj0 = 0 ;
30441 char *kwnames[] = {
30442 (char *) "self", NULL
30443 };
30444
30445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDefaultAction",kwnames,&obj0)) goto fail;
30446 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30447 if (SWIG_arg_fail(1)) SWIG_fail;
30448 {
30449 PyThreadState* __tstate = wxPyBeginAllowThreads();
30450 result = (wxDragResult)(arg1)->GetDefaultAction();
30451
30452 wxPyEndAllowThreads(__tstate);
30453 if (PyErr_Occurred()) SWIG_fail;
30454 }
30455 resultobj = SWIG_From_int((result));
30456 return resultobj;
30457 fail:
30458 return NULL;
30459 }
30460
30461
30462 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
30463 PyObject *obj;
30464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30465 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
30466 Py_INCREF(obj);
30467 return Py_BuildValue((char *)"");
30468 }
30469 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30470 PyObject *resultobj = NULL;
30471 wxPyTextDropTarget *result;
30472 char *kwnames[] = {
30473 NULL
30474 };
30475
30476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
30477 {
30478 PyThreadState* __tstate = wxPyBeginAllowThreads();
30479 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
30480
30481 wxPyEndAllowThreads(__tstate);
30482 if (PyErr_Occurred()) SWIG_fail;
30483 }
30484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
30485 return resultobj;
30486 fail:
30487 return NULL;
30488 }
30489
30490
30491 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30492 PyObject *resultobj = NULL;
30493 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30494 PyObject *arg2 = (PyObject *) 0 ;
30495 PyObject *arg3 = (PyObject *) 0 ;
30496 PyObject * obj0 = 0 ;
30497 PyObject * obj1 = 0 ;
30498 PyObject * obj2 = 0 ;
30499 char *kwnames[] = {
30500 (char *) "self",(char *) "self",(char *) "_class", NULL
30501 };
30502
30503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30504 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30505 if (SWIG_arg_fail(1)) SWIG_fail;
30506 arg2 = obj1;
30507 arg3 = obj2;
30508 {
30509 PyThreadState* __tstate = wxPyBeginAllowThreads();
30510 (arg1)->_setCallbackInfo(arg2,arg3);
30511
30512 wxPyEndAllowThreads(__tstate);
30513 if (PyErr_Occurred()) SWIG_fail;
30514 }
30515 Py_INCREF(Py_None); resultobj = Py_None;
30516 return resultobj;
30517 fail:
30518 return NULL;
30519 }
30520
30521
30522 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30523 PyObject *resultobj = NULL;
30524 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30525 int arg2 ;
30526 int arg3 ;
30527 wxDragResult arg4 ;
30528 wxDragResult result;
30529 PyObject * obj0 = 0 ;
30530 PyObject * obj1 = 0 ;
30531 PyObject * obj2 = 0 ;
30532 PyObject * obj3 = 0 ;
30533 char *kwnames[] = {
30534 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30535 };
30536
30537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30538 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30539 if (SWIG_arg_fail(1)) SWIG_fail;
30540 {
30541 arg2 = static_cast<int >(SWIG_As_int(obj1));
30542 if (SWIG_arg_fail(2)) SWIG_fail;
30543 }
30544 {
30545 arg3 = static_cast<int >(SWIG_As_int(obj2));
30546 if (SWIG_arg_fail(3)) SWIG_fail;
30547 }
30548 {
30549 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30550 if (SWIG_arg_fail(4)) SWIG_fail;
30551 }
30552 {
30553 PyThreadState* __tstate = wxPyBeginAllowThreads();
30554 result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,arg4);
30555
30556 wxPyEndAllowThreads(__tstate);
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
30559 resultobj = SWIG_From_int((result));
30560 return resultobj;
30561 fail:
30562 return NULL;
30563 }
30564
30565
30566 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
30567 PyObject *resultobj = NULL;
30568 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30569 int arg2 ;
30570 int arg3 ;
30571 wxDragResult arg4 ;
30572 wxDragResult result;
30573 PyObject * obj0 = 0 ;
30574 PyObject * obj1 = 0 ;
30575 PyObject * obj2 = 0 ;
30576 PyObject * obj3 = 0 ;
30577 char *kwnames[] = {
30578 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30579 };
30580
30581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30582 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30583 if (SWIG_arg_fail(1)) SWIG_fail;
30584 {
30585 arg2 = static_cast<int >(SWIG_As_int(obj1));
30586 if (SWIG_arg_fail(2)) SWIG_fail;
30587 }
30588 {
30589 arg3 = static_cast<int >(SWIG_As_int(obj2));
30590 if (SWIG_arg_fail(3)) SWIG_fail;
30591 }
30592 {
30593 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30594 if (SWIG_arg_fail(4)) SWIG_fail;
30595 }
30596 {
30597 PyThreadState* __tstate = wxPyBeginAllowThreads();
30598 result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,arg4);
30599
30600 wxPyEndAllowThreads(__tstate);
30601 if (PyErr_Occurred()) SWIG_fail;
30602 }
30603 resultobj = SWIG_From_int((result));
30604 return resultobj;
30605 fail:
30606 return NULL;
30607 }
30608
30609
30610 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
30611 PyObject *resultobj = NULL;
30612 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30613 PyObject * obj0 = 0 ;
30614 char *kwnames[] = {
30615 (char *) "self", NULL
30616 };
30617
30618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
30619 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30620 if (SWIG_arg_fail(1)) SWIG_fail;
30621 {
30622 PyThreadState* __tstate = wxPyBeginAllowThreads();
30623 (arg1)->base_OnLeave();
30624
30625 wxPyEndAllowThreads(__tstate);
30626 if (PyErr_Occurred()) SWIG_fail;
30627 }
30628 Py_INCREF(Py_None); resultobj = Py_None;
30629 return resultobj;
30630 fail:
30631 return NULL;
30632 }
30633
30634
30635 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30636 PyObject *resultobj = NULL;
30637 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30638 int arg2 ;
30639 int arg3 ;
30640 bool result;
30641 PyObject * obj0 = 0 ;
30642 PyObject * obj1 = 0 ;
30643 PyObject * obj2 = 0 ;
30644 char *kwnames[] = {
30645 (char *) "self",(char *) "x",(char *) "y", NULL
30646 };
30647
30648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30649 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30650 if (SWIG_arg_fail(1)) SWIG_fail;
30651 {
30652 arg2 = static_cast<int >(SWIG_As_int(obj1));
30653 if (SWIG_arg_fail(2)) SWIG_fail;
30654 }
30655 {
30656 arg3 = static_cast<int >(SWIG_As_int(obj2));
30657 if (SWIG_arg_fail(3)) SWIG_fail;
30658 }
30659 {
30660 PyThreadState* __tstate = wxPyBeginAllowThreads();
30661 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
30662
30663 wxPyEndAllowThreads(__tstate);
30664 if (PyErr_Occurred()) SWIG_fail;
30665 }
30666 {
30667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30668 }
30669 return resultobj;
30670 fail:
30671 return NULL;
30672 }
30673
30674
30675 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
30676 PyObject *resultobj = NULL;
30677 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30678 int arg2 ;
30679 int arg3 ;
30680 wxDragResult arg4 ;
30681 wxDragResult result;
30682 PyObject * obj0 = 0 ;
30683 PyObject * obj1 = 0 ;
30684 PyObject * obj2 = 0 ;
30685 PyObject * obj3 = 0 ;
30686 char *kwnames[] = {
30687 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30688 };
30689
30690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30691 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30692 if (SWIG_arg_fail(1)) SWIG_fail;
30693 {
30694 arg2 = static_cast<int >(SWIG_As_int(obj1));
30695 if (SWIG_arg_fail(2)) SWIG_fail;
30696 }
30697 {
30698 arg3 = static_cast<int >(SWIG_As_int(obj2));
30699 if (SWIG_arg_fail(3)) SWIG_fail;
30700 }
30701 {
30702 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30703 if (SWIG_arg_fail(4)) SWIG_fail;
30704 }
30705 {
30706 PyThreadState* __tstate = wxPyBeginAllowThreads();
30707 result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,arg4);
30708
30709 wxPyEndAllowThreads(__tstate);
30710 if (PyErr_Occurred()) SWIG_fail;
30711 }
30712 resultobj = SWIG_From_int((result));
30713 return resultobj;
30714 fail:
30715 return NULL;
30716 }
30717
30718
30719 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
30720 PyObject *obj;
30721 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30722 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
30723 Py_INCREF(obj);
30724 return Py_BuildValue((char *)"");
30725 }
30726 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30727 PyObject *resultobj = NULL;
30728 wxPyFileDropTarget *result;
30729 char *kwnames[] = {
30730 NULL
30731 };
30732
30733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
30734 {
30735 PyThreadState* __tstate = wxPyBeginAllowThreads();
30736 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
30737
30738 wxPyEndAllowThreads(__tstate);
30739 if (PyErr_Occurred()) SWIG_fail;
30740 }
30741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
30742 return resultobj;
30743 fail:
30744 return NULL;
30745 }
30746
30747
30748 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30749 PyObject *resultobj = NULL;
30750 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30751 PyObject *arg2 = (PyObject *) 0 ;
30752 PyObject *arg3 = (PyObject *) 0 ;
30753 PyObject * obj0 = 0 ;
30754 PyObject * obj1 = 0 ;
30755 PyObject * obj2 = 0 ;
30756 char *kwnames[] = {
30757 (char *) "self",(char *) "self",(char *) "_class", NULL
30758 };
30759
30760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30761 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30762 if (SWIG_arg_fail(1)) SWIG_fail;
30763 arg2 = obj1;
30764 arg3 = obj2;
30765 {
30766 PyThreadState* __tstate = wxPyBeginAllowThreads();
30767 (arg1)->_setCallbackInfo(arg2,arg3);
30768
30769 wxPyEndAllowThreads(__tstate);
30770 if (PyErr_Occurred()) SWIG_fail;
30771 }
30772 Py_INCREF(Py_None); resultobj = Py_None;
30773 return resultobj;
30774 fail:
30775 return NULL;
30776 }
30777
30778
30779 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30780 PyObject *resultobj = NULL;
30781 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30782 int arg2 ;
30783 int arg3 ;
30784 wxDragResult arg4 ;
30785 wxDragResult result;
30786 PyObject * obj0 = 0 ;
30787 PyObject * obj1 = 0 ;
30788 PyObject * obj2 = 0 ;
30789 PyObject * obj3 = 0 ;
30790 char *kwnames[] = {
30791 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30792 };
30793
30794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30795 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30796 if (SWIG_arg_fail(1)) SWIG_fail;
30797 {
30798 arg2 = static_cast<int >(SWIG_As_int(obj1));
30799 if (SWIG_arg_fail(2)) SWIG_fail;
30800 }
30801 {
30802 arg3 = static_cast<int >(SWIG_As_int(obj2));
30803 if (SWIG_arg_fail(3)) SWIG_fail;
30804 }
30805 {
30806 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30807 if (SWIG_arg_fail(4)) SWIG_fail;
30808 }
30809 {
30810 PyThreadState* __tstate = wxPyBeginAllowThreads();
30811 result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,arg4);
30812
30813 wxPyEndAllowThreads(__tstate);
30814 if (PyErr_Occurred()) SWIG_fail;
30815 }
30816 resultobj = SWIG_From_int((result));
30817 return resultobj;
30818 fail:
30819 return NULL;
30820 }
30821
30822
30823 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
30824 PyObject *resultobj = NULL;
30825 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30826 int arg2 ;
30827 int arg3 ;
30828 wxDragResult arg4 ;
30829 wxDragResult result;
30830 PyObject * obj0 = 0 ;
30831 PyObject * obj1 = 0 ;
30832 PyObject * obj2 = 0 ;
30833 PyObject * obj3 = 0 ;
30834 char *kwnames[] = {
30835 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30836 };
30837
30838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30839 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30840 if (SWIG_arg_fail(1)) SWIG_fail;
30841 {
30842 arg2 = static_cast<int >(SWIG_As_int(obj1));
30843 if (SWIG_arg_fail(2)) SWIG_fail;
30844 }
30845 {
30846 arg3 = static_cast<int >(SWIG_As_int(obj2));
30847 if (SWIG_arg_fail(3)) SWIG_fail;
30848 }
30849 {
30850 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30851 if (SWIG_arg_fail(4)) SWIG_fail;
30852 }
30853 {
30854 PyThreadState* __tstate = wxPyBeginAllowThreads();
30855 result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,arg4);
30856
30857 wxPyEndAllowThreads(__tstate);
30858 if (PyErr_Occurred()) SWIG_fail;
30859 }
30860 resultobj = SWIG_From_int((result));
30861 return resultobj;
30862 fail:
30863 return NULL;
30864 }
30865
30866
30867 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
30868 PyObject *resultobj = NULL;
30869 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30870 PyObject * obj0 = 0 ;
30871 char *kwnames[] = {
30872 (char *) "self", NULL
30873 };
30874
30875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
30876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30877 if (SWIG_arg_fail(1)) SWIG_fail;
30878 {
30879 PyThreadState* __tstate = wxPyBeginAllowThreads();
30880 (arg1)->base_OnLeave();
30881
30882 wxPyEndAllowThreads(__tstate);
30883 if (PyErr_Occurred()) SWIG_fail;
30884 }
30885 Py_INCREF(Py_None); resultobj = Py_None;
30886 return resultobj;
30887 fail:
30888 return NULL;
30889 }
30890
30891
30892 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30893 PyObject *resultobj = NULL;
30894 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30895 int arg2 ;
30896 int arg3 ;
30897 bool result;
30898 PyObject * obj0 = 0 ;
30899 PyObject * obj1 = 0 ;
30900 PyObject * obj2 = 0 ;
30901 char *kwnames[] = {
30902 (char *) "self",(char *) "x",(char *) "y", NULL
30903 };
30904
30905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30906 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30907 if (SWIG_arg_fail(1)) SWIG_fail;
30908 {
30909 arg2 = static_cast<int >(SWIG_As_int(obj1));
30910 if (SWIG_arg_fail(2)) SWIG_fail;
30911 }
30912 {
30913 arg3 = static_cast<int >(SWIG_As_int(obj2));
30914 if (SWIG_arg_fail(3)) SWIG_fail;
30915 }
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
30919
30920 wxPyEndAllowThreads(__tstate);
30921 if (PyErr_Occurred()) SWIG_fail;
30922 }
30923 {
30924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30925 }
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
30933 PyObject *resultobj = NULL;
30934 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30935 int arg2 ;
30936 int arg3 ;
30937 wxDragResult arg4 ;
30938 wxDragResult result;
30939 PyObject * obj0 = 0 ;
30940 PyObject * obj1 = 0 ;
30941 PyObject * obj2 = 0 ;
30942 PyObject * obj3 = 0 ;
30943 char *kwnames[] = {
30944 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30945 };
30946
30947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30949 if (SWIG_arg_fail(1)) SWIG_fail;
30950 {
30951 arg2 = static_cast<int >(SWIG_As_int(obj1));
30952 if (SWIG_arg_fail(2)) SWIG_fail;
30953 }
30954 {
30955 arg3 = static_cast<int >(SWIG_As_int(obj2));
30956 if (SWIG_arg_fail(3)) SWIG_fail;
30957 }
30958 {
30959 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30960 if (SWIG_arg_fail(4)) SWIG_fail;
30961 }
30962 {
30963 PyThreadState* __tstate = wxPyBeginAllowThreads();
30964 result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,arg4);
30965
30966 wxPyEndAllowThreads(__tstate);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 }
30969 resultobj = SWIG_From_int((result));
30970 return resultobj;
30971 fail:
30972 return NULL;
30973 }
30974
30975
30976 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
30977 PyObject *obj;
30978 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30979 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
30980 Py_INCREF(obj);
30981 return Py_BuildValue((char *)"");
30982 }
30983 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
30984 PyObject *resultobj = NULL;
30985 wxClipboard *result;
30986 char *kwnames[] = {
30987 NULL
30988 };
30989
30990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
30991 {
30992 PyThreadState* __tstate = wxPyBeginAllowThreads();
30993 result = (wxClipboard *)new wxClipboard();
30994
30995 wxPyEndAllowThreads(__tstate);
30996 if (PyErr_Occurred()) SWIG_fail;
30997 }
30998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
30999 return resultobj;
31000 fail:
31001 return NULL;
31002 }
31003
31004
31005 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
31006 PyObject *resultobj = NULL;
31007 wxClipboard *arg1 = (wxClipboard *) 0 ;
31008 PyObject * obj0 = 0 ;
31009 char *kwnames[] = {
31010 (char *) "self", NULL
31011 };
31012
31013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
31014 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31015 if (SWIG_arg_fail(1)) SWIG_fail;
31016 {
31017 PyThreadState* __tstate = wxPyBeginAllowThreads();
31018 delete arg1;
31019
31020 wxPyEndAllowThreads(__tstate);
31021 if (PyErr_Occurred()) SWIG_fail;
31022 }
31023 Py_INCREF(Py_None); resultobj = Py_None;
31024 return resultobj;
31025 fail:
31026 return NULL;
31027 }
31028
31029
31030 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
31031 PyObject *resultobj = NULL;
31032 wxClipboard *arg1 = (wxClipboard *) 0 ;
31033 bool result;
31034 PyObject * obj0 = 0 ;
31035 char *kwnames[] = {
31036 (char *) "self", NULL
31037 };
31038
31039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
31040 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31041 if (SWIG_arg_fail(1)) SWIG_fail;
31042 {
31043 PyThreadState* __tstate = wxPyBeginAllowThreads();
31044 result = (bool)(arg1)->Open();
31045
31046 wxPyEndAllowThreads(__tstate);
31047 if (PyErr_Occurred()) SWIG_fail;
31048 }
31049 {
31050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31051 }
31052 return resultobj;
31053 fail:
31054 return NULL;
31055 }
31056
31057
31058 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
31059 PyObject *resultobj = NULL;
31060 wxClipboard *arg1 = (wxClipboard *) 0 ;
31061 PyObject * obj0 = 0 ;
31062 char *kwnames[] = {
31063 (char *) "self", NULL
31064 };
31065
31066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
31067 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31068 if (SWIG_arg_fail(1)) SWIG_fail;
31069 {
31070 PyThreadState* __tstate = wxPyBeginAllowThreads();
31071 (arg1)->Close();
31072
31073 wxPyEndAllowThreads(__tstate);
31074 if (PyErr_Occurred()) SWIG_fail;
31075 }
31076 Py_INCREF(Py_None); resultobj = Py_None;
31077 return resultobj;
31078 fail:
31079 return NULL;
31080 }
31081
31082
31083 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
31084 PyObject *resultobj = NULL;
31085 wxClipboard *arg1 = (wxClipboard *) 0 ;
31086 bool result;
31087 PyObject * obj0 = 0 ;
31088 char *kwnames[] = {
31089 (char *) "self", NULL
31090 };
31091
31092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
31093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31094 if (SWIG_arg_fail(1)) SWIG_fail;
31095 {
31096 PyThreadState* __tstate = wxPyBeginAllowThreads();
31097 result = (bool)((wxClipboard const *)arg1)->IsOpened();
31098
31099 wxPyEndAllowThreads(__tstate);
31100 if (PyErr_Occurred()) SWIG_fail;
31101 }
31102 {
31103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31104 }
31105 return resultobj;
31106 fail:
31107 return NULL;
31108 }
31109
31110
31111 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
31112 PyObject *resultobj = NULL;
31113 wxClipboard *arg1 = (wxClipboard *) 0 ;
31114 wxDataObject *arg2 = (wxDataObject *) 0 ;
31115 bool result;
31116 PyObject * obj0 = 0 ;
31117 PyObject * obj1 = 0 ;
31118 char *kwnames[] = {
31119 (char *) "self",(char *) "data", NULL
31120 };
31121
31122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
31123 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31124 if (SWIG_arg_fail(1)) SWIG_fail;
31125 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
31126 if (SWIG_arg_fail(2)) SWIG_fail;
31127 {
31128 PyThreadState* __tstate = wxPyBeginAllowThreads();
31129 result = (bool)(arg1)->AddData(arg2);
31130
31131 wxPyEndAllowThreads(__tstate);
31132 if (PyErr_Occurred()) SWIG_fail;
31133 }
31134 {
31135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31136 }
31137 return resultobj;
31138 fail:
31139 return NULL;
31140 }
31141
31142
31143 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
31144 PyObject *resultobj = NULL;
31145 wxClipboard *arg1 = (wxClipboard *) 0 ;
31146 wxDataObject *arg2 = (wxDataObject *) 0 ;
31147 bool result;
31148 PyObject * obj0 = 0 ;
31149 PyObject * obj1 = 0 ;
31150 char *kwnames[] = {
31151 (char *) "self",(char *) "data", NULL
31152 };
31153
31154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
31155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31156 if (SWIG_arg_fail(1)) SWIG_fail;
31157 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
31158 if (SWIG_arg_fail(2)) SWIG_fail;
31159 {
31160 PyThreadState* __tstate = wxPyBeginAllowThreads();
31161 result = (bool)(arg1)->SetData(arg2);
31162
31163 wxPyEndAllowThreads(__tstate);
31164 if (PyErr_Occurred()) SWIG_fail;
31165 }
31166 {
31167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31168 }
31169 return resultobj;
31170 fail:
31171 return NULL;
31172 }
31173
31174
31175 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
31176 PyObject *resultobj = NULL;
31177 wxClipboard *arg1 = (wxClipboard *) 0 ;
31178 wxDataFormat *arg2 = 0 ;
31179 bool result;
31180 PyObject * obj0 = 0 ;
31181 PyObject * obj1 = 0 ;
31182 char *kwnames[] = {
31183 (char *) "self",(char *) "format", NULL
31184 };
31185
31186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
31187 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31188 if (SWIG_arg_fail(1)) SWIG_fail;
31189 {
31190 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
31191 if (SWIG_arg_fail(2)) SWIG_fail;
31192 if (arg2 == NULL) {
31193 SWIG_null_ref("wxDataFormat");
31194 }
31195 if (SWIG_arg_fail(2)) SWIG_fail;
31196 }
31197 {
31198 PyThreadState* __tstate = wxPyBeginAllowThreads();
31199 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
31200
31201 wxPyEndAllowThreads(__tstate);
31202 if (PyErr_Occurred()) SWIG_fail;
31203 }
31204 {
31205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31206 }
31207 return resultobj;
31208 fail:
31209 return NULL;
31210 }
31211
31212
31213 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
31214 PyObject *resultobj = NULL;
31215 wxClipboard *arg1 = (wxClipboard *) 0 ;
31216 wxDataObject *arg2 = 0 ;
31217 bool result;
31218 PyObject * obj0 = 0 ;
31219 PyObject * obj1 = 0 ;
31220 char *kwnames[] = {
31221 (char *) "self",(char *) "data", NULL
31222 };
31223
31224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
31225 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31226 if (SWIG_arg_fail(1)) SWIG_fail;
31227 {
31228 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
31229 if (SWIG_arg_fail(2)) SWIG_fail;
31230 if (arg2 == NULL) {
31231 SWIG_null_ref("wxDataObject");
31232 }
31233 if (SWIG_arg_fail(2)) SWIG_fail;
31234 }
31235 {
31236 PyThreadState* __tstate = wxPyBeginAllowThreads();
31237 result = (bool)(arg1)->GetData(*arg2);
31238
31239 wxPyEndAllowThreads(__tstate);
31240 if (PyErr_Occurred()) SWIG_fail;
31241 }
31242 {
31243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31244 }
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
31252 PyObject *resultobj = NULL;
31253 wxClipboard *arg1 = (wxClipboard *) 0 ;
31254 PyObject * obj0 = 0 ;
31255 char *kwnames[] = {
31256 (char *) "self", NULL
31257 };
31258
31259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
31260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31261 if (SWIG_arg_fail(1)) SWIG_fail;
31262 {
31263 PyThreadState* __tstate = wxPyBeginAllowThreads();
31264 (arg1)->Clear();
31265
31266 wxPyEndAllowThreads(__tstate);
31267 if (PyErr_Occurred()) SWIG_fail;
31268 }
31269 Py_INCREF(Py_None); resultobj = Py_None;
31270 return resultobj;
31271 fail:
31272 return NULL;
31273 }
31274
31275
31276 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
31277 PyObject *resultobj = NULL;
31278 wxClipboard *arg1 = (wxClipboard *) 0 ;
31279 bool result;
31280 PyObject * obj0 = 0 ;
31281 char *kwnames[] = {
31282 (char *) "self", NULL
31283 };
31284
31285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
31286 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31287 if (SWIG_arg_fail(1)) SWIG_fail;
31288 {
31289 PyThreadState* __tstate = wxPyBeginAllowThreads();
31290 result = (bool)(arg1)->Flush();
31291
31292 wxPyEndAllowThreads(__tstate);
31293 if (PyErr_Occurred()) SWIG_fail;
31294 }
31295 {
31296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31297 }
31298 return resultobj;
31299 fail:
31300 return NULL;
31301 }
31302
31303
31304 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
31305 PyObject *resultobj = NULL;
31306 wxClipboard *arg1 = (wxClipboard *) 0 ;
31307 bool arg2 = (bool) true ;
31308 PyObject * obj0 = 0 ;
31309 PyObject * obj1 = 0 ;
31310 char *kwnames[] = {
31311 (char *) "self",(char *) "primary", NULL
31312 };
31313
31314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
31315 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31316 if (SWIG_arg_fail(1)) SWIG_fail;
31317 if (obj1) {
31318 {
31319 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
31320 if (SWIG_arg_fail(2)) SWIG_fail;
31321 }
31322 }
31323 {
31324 PyThreadState* __tstate = wxPyBeginAllowThreads();
31325 (arg1)->UsePrimarySelection(arg2);
31326
31327 wxPyEndAllowThreads(__tstate);
31328 if (PyErr_Occurred()) SWIG_fail;
31329 }
31330 Py_INCREF(Py_None); resultobj = Py_None;
31331 return resultobj;
31332 fail:
31333 return NULL;
31334 }
31335
31336
31337 static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
31338 PyObject *resultobj = NULL;
31339 wxClipboard *result;
31340 char *kwnames[] = {
31341 NULL
31342 };
31343
31344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
31345 {
31346 PyThreadState* __tstate = wxPyBeginAllowThreads();
31347 result = (wxClipboard *)wxClipboard::Get();
31348
31349 wxPyEndAllowThreads(__tstate);
31350 if (PyErr_Occurred()) SWIG_fail;
31351 }
31352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
31353 return resultobj;
31354 fail:
31355 return NULL;
31356 }
31357
31358
31359 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
31360 PyObject *obj;
31361 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31362 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
31363 Py_INCREF(obj);
31364 return Py_BuildValue((char *)"");
31365 }
31366 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
31367 PyObject *resultobj = NULL;
31368 wxClipboard *arg1 = (wxClipboard *) NULL ;
31369 wxClipboardLocker *result;
31370 PyObject * obj0 = 0 ;
31371 char *kwnames[] = {
31372 (char *) "clipboard", NULL
31373 };
31374
31375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
31376 if (obj0) {
31377 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31378 if (SWIG_arg_fail(1)) SWIG_fail;
31379 }
31380 {
31381 PyThreadState* __tstate = wxPyBeginAllowThreads();
31382 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
31383
31384 wxPyEndAllowThreads(__tstate);
31385 if (PyErr_Occurred()) SWIG_fail;
31386 }
31387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
31388 return resultobj;
31389 fail:
31390 return NULL;
31391 }
31392
31393
31394 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
31395 PyObject *resultobj = NULL;
31396 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
31397 PyObject * obj0 = 0 ;
31398 char *kwnames[] = {
31399 (char *) "self", NULL
31400 };
31401
31402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
31403 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0);
31404 if (SWIG_arg_fail(1)) SWIG_fail;
31405 {
31406 PyThreadState* __tstate = wxPyBeginAllowThreads();
31407 delete arg1;
31408
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 Py_INCREF(Py_None); resultobj = Py_None;
31413 return resultobj;
31414 fail:
31415 return NULL;
31416 }
31417
31418
31419 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
31420 PyObject *resultobj = NULL;
31421 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
31422 bool result;
31423 PyObject * obj0 = 0 ;
31424 char *kwnames[] = {
31425 (char *) "self", NULL
31426 };
31427
31428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
31429 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0);
31430 if (SWIG_arg_fail(1)) SWIG_fail;
31431 {
31432 PyThreadState* __tstate = wxPyBeginAllowThreads();
31433 result = (bool)wxClipboardLocker___nonzero__(arg1);
31434
31435 wxPyEndAllowThreads(__tstate);
31436 if (PyErr_Occurred()) SWIG_fail;
31437 }
31438 {
31439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31440 }
31441 return resultobj;
31442 fail:
31443 return NULL;
31444 }
31445
31446
31447 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
31448 PyObject *obj;
31449 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31450 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
31451 Py_INCREF(obj);
31452 return Py_BuildValue((char *)"");
31453 }
31454 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
31455 PyObject *resultobj = NULL;
31456 int arg1 = (int) 0 ;
31457 int arg2 = (int) 0 ;
31458 int arg3 = (int) 0 ;
31459 int arg4 = (int) 0 ;
31460 wxVideoMode *result;
31461 PyObject * obj0 = 0 ;
31462 PyObject * obj1 = 0 ;
31463 PyObject * obj2 = 0 ;
31464 PyObject * obj3 = 0 ;
31465 char *kwnames[] = {
31466 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
31467 };
31468
31469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31470 if (obj0) {
31471 {
31472 arg1 = static_cast<int >(SWIG_As_int(obj0));
31473 if (SWIG_arg_fail(1)) SWIG_fail;
31474 }
31475 }
31476 if (obj1) {
31477 {
31478 arg2 = static_cast<int >(SWIG_As_int(obj1));
31479 if (SWIG_arg_fail(2)) SWIG_fail;
31480 }
31481 }
31482 if (obj2) {
31483 {
31484 arg3 = static_cast<int >(SWIG_As_int(obj2));
31485 if (SWIG_arg_fail(3)) SWIG_fail;
31486 }
31487 }
31488 if (obj3) {
31489 {
31490 arg4 = static_cast<int >(SWIG_As_int(obj3));
31491 if (SWIG_arg_fail(4)) SWIG_fail;
31492 }
31493 }
31494 {
31495 PyThreadState* __tstate = wxPyBeginAllowThreads();
31496 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
31497
31498 wxPyEndAllowThreads(__tstate);
31499 if (PyErr_Occurred()) SWIG_fail;
31500 }
31501 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
31502 return resultobj;
31503 fail:
31504 return NULL;
31505 }
31506
31507
31508 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
31509 PyObject *resultobj = NULL;
31510 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31511 PyObject * obj0 = 0 ;
31512 char *kwnames[] = {
31513 (char *) "self", NULL
31514 };
31515
31516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
31517 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31518 if (SWIG_arg_fail(1)) SWIG_fail;
31519 {
31520 PyThreadState* __tstate = wxPyBeginAllowThreads();
31521 delete arg1;
31522
31523 wxPyEndAllowThreads(__tstate);
31524 if (PyErr_Occurred()) SWIG_fail;
31525 }
31526 Py_INCREF(Py_None); resultobj = Py_None;
31527 return resultobj;
31528 fail:
31529 return NULL;
31530 }
31531
31532
31533 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
31534 PyObject *resultobj = NULL;
31535 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31536 wxVideoMode *arg2 = 0 ;
31537 bool result;
31538 PyObject * obj0 = 0 ;
31539 PyObject * obj1 = 0 ;
31540 char *kwnames[] = {
31541 (char *) "self",(char *) "other", NULL
31542 };
31543
31544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
31545 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31546 if (SWIG_arg_fail(1)) SWIG_fail;
31547 {
31548 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31549 if (SWIG_arg_fail(2)) SWIG_fail;
31550 if (arg2 == NULL) {
31551 SWIG_null_ref("wxVideoMode");
31552 }
31553 if (SWIG_arg_fail(2)) SWIG_fail;
31554 }
31555 {
31556 PyThreadState* __tstate = wxPyBeginAllowThreads();
31557 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
31558
31559 wxPyEndAllowThreads(__tstate);
31560 if (PyErr_Occurred()) SWIG_fail;
31561 }
31562 {
31563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31564 }
31565 return resultobj;
31566 fail:
31567 return NULL;
31568 }
31569
31570
31571 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
31572 PyObject *resultobj = NULL;
31573 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31574 int result;
31575 PyObject * obj0 = 0 ;
31576 char *kwnames[] = {
31577 (char *) "self", NULL
31578 };
31579
31580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
31581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31582 if (SWIG_arg_fail(1)) SWIG_fail;
31583 {
31584 PyThreadState* __tstate = wxPyBeginAllowThreads();
31585 result = (int)((wxVideoMode const *)arg1)->GetWidth();
31586
31587 wxPyEndAllowThreads(__tstate);
31588 if (PyErr_Occurred()) SWIG_fail;
31589 }
31590 {
31591 resultobj = SWIG_From_int(static_cast<int >(result));
31592 }
31593 return resultobj;
31594 fail:
31595 return NULL;
31596 }
31597
31598
31599 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
31600 PyObject *resultobj = NULL;
31601 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31602 int result;
31603 PyObject * obj0 = 0 ;
31604 char *kwnames[] = {
31605 (char *) "self", NULL
31606 };
31607
31608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
31609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31610 if (SWIG_arg_fail(1)) SWIG_fail;
31611 {
31612 PyThreadState* __tstate = wxPyBeginAllowThreads();
31613 result = (int)((wxVideoMode const *)arg1)->GetHeight();
31614
31615 wxPyEndAllowThreads(__tstate);
31616 if (PyErr_Occurred()) SWIG_fail;
31617 }
31618 {
31619 resultobj = SWIG_From_int(static_cast<int >(result));
31620 }
31621 return resultobj;
31622 fail:
31623 return NULL;
31624 }
31625
31626
31627 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
31628 PyObject *resultobj = NULL;
31629 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31630 int result;
31631 PyObject * obj0 = 0 ;
31632 char *kwnames[] = {
31633 (char *) "self", NULL
31634 };
31635
31636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
31637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31638 if (SWIG_arg_fail(1)) SWIG_fail;
31639 {
31640 PyThreadState* __tstate = wxPyBeginAllowThreads();
31641 result = (int)((wxVideoMode const *)arg1)->GetDepth();
31642
31643 wxPyEndAllowThreads(__tstate);
31644 if (PyErr_Occurred()) SWIG_fail;
31645 }
31646 {
31647 resultobj = SWIG_From_int(static_cast<int >(result));
31648 }
31649 return resultobj;
31650 fail:
31651 return NULL;
31652 }
31653
31654
31655 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
31656 PyObject *resultobj = NULL;
31657 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31658 bool result;
31659 PyObject * obj0 = 0 ;
31660 char *kwnames[] = {
31661 (char *) "self", NULL
31662 };
31663
31664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
31665 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31666 if (SWIG_arg_fail(1)) SWIG_fail;
31667 {
31668 PyThreadState* __tstate = wxPyBeginAllowThreads();
31669 result = (bool)((wxVideoMode const *)arg1)->IsOk();
31670
31671 wxPyEndAllowThreads(__tstate);
31672 if (PyErr_Occurred()) SWIG_fail;
31673 }
31674 {
31675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31676 }
31677 return resultobj;
31678 fail:
31679 return NULL;
31680 }
31681
31682
31683 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
31684 PyObject *resultobj = NULL;
31685 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31686 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
31687 bool result;
31688 PyObject * obj0 = 0 ;
31689 PyObject * obj1 = 0 ;
31690 char *kwnames[] = {
31691 (char *) "self",(char *) "other", NULL
31692 };
31693
31694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
31695 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31696 if (SWIG_arg_fail(1)) SWIG_fail;
31697 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31698 if (SWIG_arg_fail(2)) SWIG_fail;
31699 {
31700 PyThreadState* __tstate = wxPyBeginAllowThreads();
31701 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
31702
31703 wxPyEndAllowThreads(__tstate);
31704 if (PyErr_Occurred()) SWIG_fail;
31705 }
31706 {
31707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31708 }
31709 return resultobj;
31710 fail:
31711 return NULL;
31712 }
31713
31714
31715 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
31716 PyObject *resultobj = NULL;
31717 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31718 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
31719 bool result;
31720 PyObject * obj0 = 0 ;
31721 PyObject * obj1 = 0 ;
31722 char *kwnames[] = {
31723 (char *) "self",(char *) "other", NULL
31724 };
31725
31726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
31727 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31728 if (SWIG_arg_fail(1)) SWIG_fail;
31729 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31730 if (SWIG_arg_fail(2)) SWIG_fail;
31731 {
31732 PyThreadState* __tstate = wxPyBeginAllowThreads();
31733 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
31734
31735 wxPyEndAllowThreads(__tstate);
31736 if (PyErr_Occurred()) SWIG_fail;
31737 }
31738 {
31739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31740 }
31741 return resultobj;
31742 fail:
31743 return NULL;
31744 }
31745
31746
31747 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
31748 PyObject *resultobj = NULL;
31749 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31750 int arg2 ;
31751 PyObject * obj0 = 0 ;
31752 PyObject * obj1 = 0 ;
31753 char *kwnames[] = {
31754 (char *) "self",(char *) "w", NULL
31755 };
31756
31757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
31758 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31759 if (SWIG_arg_fail(1)) SWIG_fail;
31760 {
31761 arg2 = static_cast<int >(SWIG_As_int(obj1));
31762 if (SWIG_arg_fail(2)) SWIG_fail;
31763 }
31764 if (arg1) (arg1)->w = arg2;
31765
31766 Py_INCREF(Py_None); resultobj = Py_None;
31767 return resultobj;
31768 fail:
31769 return NULL;
31770 }
31771
31772
31773 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
31774 PyObject *resultobj = NULL;
31775 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31776 int result;
31777 PyObject * obj0 = 0 ;
31778 char *kwnames[] = {
31779 (char *) "self", NULL
31780 };
31781
31782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
31783 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31784 if (SWIG_arg_fail(1)) SWIG_fail;
31785 result = (int) ((arg1)->w);
31786
31787 {
31788 resultobj = SWIG_From_int(static_cast<int >(result));
31789 }
31790 return resultobj;
31791 fail:
31792 return NULL;
31793 }
31794
31795
31796 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
31797 PyObject *resultobj = NULL;
31798 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31799 int arg2 ;
31800 PyObject * obj0 = 0 ;
31801 PyObject * obj1 = 0 ;
31802 char *kwnames[] = {
31803 (char *) "self",(char *) "h", NULL
31804 };
31805
31806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
31807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31808 if (SWIG_arg_fail(1)) SWIG_fail;
31809 {
31810 arg2 = static_cast<int >(SWIG_As_int(obj1));
31811 if (SWIG_arg_fail(2)) SWIG_fail;
31812 }
31813 if (arg1) (arg1)->h = arg2;
31814
31815 Py_INCREF(Py_None); resultobj = Py_None;
31816 return resultobj;
31817 fail:
31818 return NULL;
31819 }
31820
31821
31822 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
31823 PyObject *resultobj = NULL;
31824 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31825 int result;
31826 PyObject * obj0 = 0 ;
31827 char *kwnames[] = {
31828 (char *) "self", NULL
31829 };
31830
31831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
31832 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31833 if (SWIG_arg_fail(1)) SWIG_fail;
31834 result = (int) ((arg1)->h);
31835
31836 {
31837 resultobj = SWIG_From_int(static_cast<int >(result));
31838 }
31839 return resultobj;
31840 fail:
31841 return NULL;
31842 }
31843
31844
31845 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
31846 PyObject *resultobj = NULL;
31847 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31848 int arg2 ;
31849 PyObject * obj0 = 0 ;
31850 PyObject * obj1 = 0 ;
31851 char *kwnames[] = {
31852 (char *) "self",(char *) "bpp", NULL
31853 };
31854
31855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
31856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31857 if (SWIG_arg_fail(1)) SWIG_fail;
31858 {
31859 arg2 = static_cast<int >(SWIG_As_int(obj1));
31860 if (SWIG_arg_fail(2)) SWIG_fail;
31861 }
31862 if (arg1) (arg1)->bpp = arg2;
31863
31864 Py_INCREF(Py_None); resultobj = Py_None;
31865 return resultobj;
31866 fail:
31867 return NULL;
31868 }
31869
31870
31871 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
31872 PyObject *resultobj = NULL;
31873 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31874 int result;
31875 PyObject * obj0 = 0 ;
31876 char *kwnames[] = {
31877 (char *) "self", NULL
31878 };
31879
31880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
31881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31882 if (SWIG_arg_fail(1)) SWIG_fail;
31883 result = (int) ((arg1)->bpp);
31884
31885 {
31886 resultobj = SWIG_From_int(static_cast<int >(result));
31887 }
31888 return resultobj;
31889 fail:
31890 return NULL;
31891 }
31892
31893
31894 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
31895 PyObject *resultobj = NULL;
31896 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31897 int arg2 ;
31898 PyObject * obj0 = 0 ;
31899 PyObject * obj1 = 0 ;
31900 char *kwnames[] = {
31901 (char *) "self",(char *) "refresh", NULL
31902 };
31903
31904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
31905 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31906 if (SWIG_arg_fail(1)) SWIG_fail;
31907 {
31908 arg2 = static_cast<int >(SWIG_As_int(obj1));
31909 if (SWIG_arg_fail(2)) SWIG_fail;
31910 }
31911 if (arg1) (arg1)->refresh = arg2;
31912
31913 Py_INCREF(Py_None); resultobj = Py_None;
31914 return resultobj;
31915 fail:
31916 return NULL;
31917 }
31918
31919
31920 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
31921 PyObject *resultobj = NULL;
31922 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31923 int result;
31924 PyObject * obj0 = 0 ;
31925 char *kwnames[] = {
31926 (char *) "self", NULL
31927 };
31928
31929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
31930 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31931 if (SWIG_arg_fail(1)) SWIG_fail;
31932 result = (int) ((arg1)->refresh);
31933
31934 {
31935 resultobj = SWIG_From_int(static_cast<int >(result));
31936 }
31937 return resultobj;
31938 fail:
31939 return NULL;
31940 }
31941
31942
31943 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
31944 PyObject *obj;
31945 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31946 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
31947 Py_INCREF(obj);
31948 return Py_BuildValue((char *)"");
31949 }
31950 static int _wrap_DefaultVideoMode_set(PyObject *) {
31951 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
31952 return 1;
31953 }
31954
31955
31956 static PyObject *_wrap_DefaultVideoMode_get(void) {
31957 PyObject *pyobj = NULL;
31958
31959 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
31960 return pyobj;
31961 }
31962
31963
31964 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
31965 PyObject *resultobj = NULL;
31966 size_t arg1 = (size_t) 0 ;
31967 wxDisplay *result;
31968 PyObject * obj0 = 0 ;
31969 char *kwnames[] = {
31970 (char *) "index", NULL
31971 };
31972
31973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
31974 if (obj0) {
31975 {
31976 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
31977 if (SWIG_arg_fail(1)) SWIG_fail;
31978 }
31979 }
31980 {
31981 PyThreadState* __tstate = wxPyBeginAllowThreads();
31982 result = (wxDisplay *)new wxDisplay(arg1);
31983
31984 wxPyEndAllowThreads(__tstate);
31985 if (PyErr_Occurred()) SWIG_fail;
31986 }
31987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
31988 return resultobj;
31989 fail:
31990 return NULL;
31991 }
31992
31993
31994 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
31995 PyObject *resultobj = NULL;
31996 wxDisplay *arg1 = (wxDisplay *) 0 ;
31997 PyObject * obj0 = 0 ;
31998 char *kwnames[] = {
31999 (char *) "self", NULL
32000 };
32001
32002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
32003 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32004 if (SWIG_arg_fail(1)) SWIG_fail;
32005 {
32006 PyThreadState* __tstate = wxPyBeginAllowThreads();
32007 delete arg1;
32008
32009 wxPyEndAllowThreads(__tstate);
32010 if (PyErr_Occurred()) SWIG_fail;
32011 }
32012 Py_INCREF(Py_None); resultobj = Py_None;
32013 return resultobj;
32014 fail:
32015 return NULL;
32016 }
32017
32018
32019 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
32020 PyObject *resultobj = NULL;
32021 size_t result;
32022 char *kwnames[] = {
32023 NULL
32024 };
32025
32026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
32027 {
32028 PyThreadState* __tstate = wxPyBeginAllowThreads();
32029 result = (size_t)wxDisplay::GetCount();
32030
32031 wxPyEndAllowThreads(__tstate);
32032 if (PyErr_Occurred()) SWIG_fail;
32033 }
32034 {
32035 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
32036 }
32037 return resultobj;
32038 fail:
32039 return NULL;
32040 }
32041
32042
32043 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
32044 PyObject *resultobj = NULL;
32045 wxPoint *arg1 = 0 ;
32046 int result;
32047 wxPoint temp1 ;
32048 PyObject * obj0 = 0 ;
32049 char *kwnames[] = {
32050 (char *) "pt", NULL
32051 };
32052
32053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
32054 {
32055 arg1 = &temp1;
32056 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
32057 }
32058 {
32059 PyThreadState* __tstate = wxPyBeginAllowThreads();
32060 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
32061
32062 wxPyEndAllowThreads(__tstate);
32063 if (PyErr_Occurred()) SWIG_fail;
32064 }
32065 {
32066 resultobj = SWIG_From_int(static_cast<int >(result));
32067 }
32068 return resultobj;
32069 fail:
32070 return NULL;
32071 }
32072
32073
32074 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32075 PyObject *resultobj = NULL;
32076 wxWindow *arg1 = (wxWindow *) 0 ;
32077 int result;
32078 PyObject * obj0 = 0 ;
32079 char *kwnames[] = {
32080 (char *) "window", NULL
32081 };
32082
32083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
32084 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32085 if (SWIG_arg_fail(1)) SWIG_fail;
32086 {
32087 PyThreadState* __tstate = wxPyBeginAllowThreads();
32088 result = (int)wxDisplay_GetFromWindow(arg1);
32089
32090 wxPyEndAllowThreads(__tstate);
32091 if (PyErr_Occurred()) SWIG_fail;
32092 }
32093 {
32094 resultobj = SWIG_From_int(static_cast<int >(result));
32095 }
32096 return resultobj;
32097 fail:
32098 return NULL;
32099 }
32100
32101
32102 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
32103 PyObject *resultobj = NULL;
32104 wxDisplay *arg1 = (wxDisplay *) 0 ;
32105 bool result;
32106 PyObject * obj0 = 0 ;
32107 char *kwnames[] = {
32108 (char *) "self", NULL
32109 };
32110
32111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
32112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32113 if (SWIG_arg_fail(1)) SWIG_fail;
32114 {
32115 PyThreadState* __tstate = wxPyBeginAllowThreads();
32116 result = (bool)((wxDisplay const *)arg1)->IsOk();
32117
32118 wxPyEndAllowThreads(__tstate);
32119 if (PyErr_Occurred()) SWIG_fail;
32120 }
32121 {
32122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32123 }
32124 return resultobj;
32125 fail:
32126 return NULL;
32127 }
32128
32129
32130 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
32131 PyObject *resultobj = NULL;
32132 wxDisplay *arg1 = (wxDisplay *) 0 ;
32133 wxRect result;
32134 PyObject * obj0 = 0 ;
32135 char *kwnames[] = {
32136 (char *) "self", NULL
32137 };
32138
32139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
32140 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32141 if (SWIG_arg_fail(1)) SWIG_fail;
32142 {
32143 PyThreadState* __tstate = wxPyBeginAllowThreads();
32144 result = ((wxDisplay const *)arg1)->GetGeometry();
32145
32146 wxPyEndAllowThreads(__tstate);
32147 if (PyErr_Occurred()) SWIG_fail;
32148 }
32149 {
32150 wxRect * resultptr;
32151 resultptr = new wxRect(static_cast<wxRect & >(result));
32152 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
32153 }
32154 return resultobj;
32155 fail:
32156 return NULL;
32157 }
32158
32159
32160 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
32161 PyObject *resultobj = NULL;
32162 wxDisplay *arg1 = (wxDisplay *) 0 ;
32163 wxString result;
32164 PyObject * obj0 = 0 ;
32165 char *kwnames[] = {
32166 (char *) "self", NULL
32167 };
32168
32169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
32170 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32171 if (SWIG_arg_fail(1)) SWIG_fail;
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 result = ((wxDisplay const *)arg1)->GetName();
32175
32176 wxPyEndAllowThreads(__tstate);
32177 if (PyErr_Occurred()) SWIG_fail;
32178 }
32179 {
32180 #if wxUSE_UNICODE
32181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32182 #else
32183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32184 #endif
32185 }
32186 return resultobj;
32187 fail:
32188 return NULL;
32189 }
32190
32191
32192 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
32193 PyObject *resultobj = NULL;
32194 wxDisplay *arg1 = (wxDisplay *) 0 ;
32195 bool result;
32196 PyObject * obj0 = 0 ;
32197 char *kwnames[] = {
32198 (char *) "self", NULL
32199 };
32200
32201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
32202 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32203 if (SWIG_arg_fail(1)) SWIG_fail;
32204 {
32205 PyThreadState* __tstate = wxPyBeginAllowThreads();
32206 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
32207
32208 wxPyEndAllowThreads(__tstate);
32209 if (PyErr_Occurred()) SWIG_fail;
32210 }
32211 {
32212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32213 }
32214 return resultobj;
32215 fail:
32216 return NULL;
32217 }
32218
32219
32220 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
32221 PyObject *resultobj = NULL;
32222 wxDisplay *arg1 = (wxDisplay *) 0 ;
32223 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
32224 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
32225 PyObject *result;
32226 PyObject * obj0 = 0 ;
32227 PyObject * obj1 = 0 ;
32228 char *kwnames[] = {
32229 (char *) "self",(char *) "mode", NULL
32230 };
32231
32232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
32233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32234 if (SWIG_arg_fail(1)) SWIG_fail;
32235 if (obj1) {
32236 {
32237 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32238 if (SWIG_arg_fail(2)) SWIG_fail;
32239 if (arg2 == NULL) {
32240 SWIG_null_ref("wxVideoMode");
32241 }
32242 if (SWIG_arg_fail(2)) SWIG_fail;
32243 }
32244 }
32245 {
32246 PyThreadState* __tstate = wxPyBeginAllowThreads();
32247 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
32248
32249 wxPyEndAllowThreads(__tstate);
32250 if (PyErr_Occurred()) SWIG_fail;
32251 }
32252 resultobj = result;
32253 return resultobj;
32254 fail:
32255 return NULL;
32256 }
32257
32258
32259 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
32260 PyObject *resultobj = NULL;
32261 wxDisplay *arg1 = (wxDisplay *) 0 ;
32262 wxVideoMode result;
32263 PyObject * obj0 = 0 ;
32264 char *kwnames[] = {
32265 (char *) "self", NULL
32266 };
32267
32268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
32269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32270 if (SWIG_arg_fail(1)) SWIG_fail;
32271 {
32272 PyThreadState* __tstate = wxPyBeginAllowThreads();
32273 result = ((wxDisplay const *)arg1)->GetCurrentMode();
32274
32275 wxPyEndAllowThreads(__tstate);
32276 if (PyErr_Occurred()) SWIG_fail;
32277 }
32278 {
32279 wxVideoMode * resultptr;
32280 resultptr = new wxVideoMode(static_cast<wxVideoMode & >(result));
32281 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
32282 }
32283 return resultobj;
32284 fail:
32285 return NULL;
32286 }
32287
32288
32289 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
32290 PyObject *resultobj = NULL;
32291 wxDisplay *arg1 = (wxDisplay *) 0 ;
32292 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
32293 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
32294 bool result;
32295 PyObject * obj0 = 0 ;
32296 PyObject * obj1 = 0 ;
32297 char *kwnames[] = {
32298 (char *) "self",(char *) "mode", NULL
32299 };
32300
32301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
32302 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32303 if (SWIG_arg_fail(1)) SWIG_fail;
32304 if (obj1) {
32305 {
32306 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32307 if (SWIG_arg_fail(2)) SWIG_fail;
32308 if (arg2 == NULL) {
32309 SWIG_null_ref("wxVideoMode");
32310 }
32311 if (SWIG_arg_fail(2)) SWIG_fail;
32312 }
32313 }
32314 {
32315 PyThreadState* __tstate = wxPyBeginAllowThreads();
32316 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
32317
32318 wxPyEndAllowThreads(__tstate);
32319 if (PyErr_Occurred()) SWIG_fail;
32320 }
32321 {
32322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32323 }
32324 return resultobj;
32325 fail:
32326 return NULL;
32327 }
32328
32329
32330 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
32331 PyObject *resultobj = NULL;
32332 wxDisplay *arg1 = (wxDisplay *) 0 ;
32333 PyObject * obj0 = 0 ;
32334 char *kwnames[] = {
32335 (char *) "self", NULL
32336 };
32337
32338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
32339 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32340 if (SWIG_arg_fail(1)) SWIG_fail;
32341 {
32342 PyThreadState* __tstate = wxPyBeginAllowThreads();
32343 (arg1)->ResetMode();
32344
32345 wxPyEndAllowThreads(__tstate);
32346 if (PyErr_Occurred()) SWIG_fail;
32347 }
32348 Py_INCREF(Py_None); resultobj = Py_None;
32349 return resultobj;
32350 fail:
32351 return NULL;
32352 }
32353
32354
32355 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
32356 PyObject *obj;
32357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32358 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
32359 Py_INCREF(obj);
32360 return Py_BuildValue((char *)"");
32361 }
32362 static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) {
32363 PyObject *resultobj = NULL;
32364 wxStandardPaths *result;
32365 char *kwnames[] = {
32366 NULL
32367 };
32368
32369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail;
32370 {
32371 PyThreadState* __tstate = wxPyBeginAllowThreads();
32372 result = (wxStandardPaths *)wxStandardPaths_Get();
32373
32374 wxPyEndAllowThreads(__tstate);
32375 if (PyErr_Occurred()) SWIG_fail;
32376 }
32377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0);
32378 return resultobj;
32379 fail:
32380 return NULL;
32381 }
32382
32383
32384 static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
32385 PyObject *resultobj = NULL;
32386 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32387 wxString result;
32388 PyObject * obj0 = 0 ;
32389 char *kwnames[] = {
32390 (char *) "self", NULL
32391 };
32392
32393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail;
32394 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32395 if (SWIG_arg_fail(1)) SWIG_fail;
32396 {
32397 PyThreadState* __tstate = wxPyBeginAllowThreads();
32398 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
32399
32400 wxPyEndAllowThreads(__tstate);
32401 if (PyErr_Occurred()) SWIG_fail;
32402 }
32403 {
32404 #if wxUSE_UNICODE
32405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32406 #else
32407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32408 #endif
32409 }
32410 return resultobj;
32411 fail:
32412 return NULL;
32413 }
32414
32415
32416 static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
32417 PyObject *resultobj = NULL;
32418 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32419 wxString result;
32420 PyObject * obj0 = 0 ;
32421 char *kwnames[] = {
32422 (char *) "self", NULL
32423 };
32424
32425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail;
32426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32427 if (SWIG_arg_fail(1)) SWIG_fail;
32428 {
32429 PyThreadState* __tstate = wxPyBeginAllowThreads();
32430 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
32431
32432 wxPyEndAllowThreads(__tstate);
32433 if (PyErr_Occurred()) SWIG_fail;
32434 }
32435 {
32436 #if wxUSE_UNICODE
32437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32438 #else
32439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32440 #endif
32441 }
32442 return resultobj;
32443 fail:
32444 return NULL;
32445 }
32446
32447
32448 static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32449 PyObject *resultobj = NULL;
32450 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32451 wxString result;
32452 PyObject * obj0 = 0 ;
32453 char *kwnames[] = {
32454 (char *) "self", NULL
32455 };
32456
32457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail;
32458 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32459 if (SWIG_arg_fail(1)) SWIG_fail;
32460 {
32461 PyThreadState* __tstate = wxPyBeginAllowThreads();
32462 result = ((wxStandardPaths const *)arg1)->GetDataDir();
32463
32464 wxPyEndAllowThreads(__tstate);
32465 if (PyErr_Occurred()) SWIG_fail;
32466 }
32467 {
32468 #if wxUSE_UNICODE
32469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32470 #else
32471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32472 #endif
32473 }
32474 return resultobj;
32475 fail:
32476 return NULL;
32477 }
32478
32479
32480 static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32481 PyObject *resultobj = NULL;
32482 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32483 wxString result;
32484 PyObject * obj0 = 0 ;
32485 char *kwnames[] = {
32486 (char *) "self", NULL
32487 };
32488
32489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail;
32490 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32491 if (SWIG_arg_fail(1)) SWIG_fail;
32492 {
32493 PyThreadState* __tstate = wxPyBeginAllowThreads();
32494 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
32495
32496 wxPyEndAllowThreads(__tstate);
32497 if (PyErr_Occurred()) SWIG_fail;
32498 }
32499 {
32500 #if wxUSE_UNICODE
32501 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32502 #else
32503 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32504 #endif
32505 }
32506 return resultobj;
32507 fail:
32508 return NULL;
32509 }
32510
32511
32512 static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32513 PyObject *resultobj = NULL;
32514 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32515 wxString result;
32516 PyObject * obj0 = 0 ;
32517 char *kwnames[] = {
32518 (char *) "self", NULL
32519 };
32520
32521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail;
32522 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32523 if (SWIG_arg_fail(1)) SWIG_fail;
32524 {
32525 PyThreadState* __tstate = wxPyBeginAllowThreads();
32526 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
32527
32528 wxPyEndAllowThreads(__tstate);
32529 if (PyErr_Occurred()) SWIG_fail;
32530 }
32531 {
32532 #if wxUSE_UNICODE
32533 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32534 #else
32535 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32536 #endif
32537 }
32538 return resultobj;
32539 fail:
32540 return NULL;
32541 }
32542
32543
32544 static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32545 PyObject *resultobj = NULL;
32546 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32547 wxString result;
32548 PyObject * obj0 = 0 ;
32549 char *kwnames[] = {
32550 (char *) "self", NULL
32551 };
32552
32553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail;
32554 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32555 if (SWIG_arg_fail(1)) SWIG_fail;
32556 {
32557 PyThreadState* __tstate = wxPyBeginAllowThreads();
32558 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
32559
32560 wxPyEndAllowThreads(__tstate);
32561 if (PyErr_Occurred()) SWIG_fail;
32562 }
32563 {
32564 #if wxUSE_UNICODE
32565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32566 #else
32567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32568 #endif
32569 }
32570 return resultobj;
32571 fail:
32572 return NULL;
32573 }
32574
32575
32576 static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) {
32577 PyObject *resultobj = NULL;
32578 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32579 wxString result;
32580 PyObject * obj0 = 0 ;
32581 char *kwnames[] = {
32582 (char *) "self", NULL
32583 };
32584
32585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail;
32586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32587 if (SWIG_arg_fail(1)) SWIG_fail;
32588 {
32589 PyThreadState* __tstate = wxPyBeginAllowThreads();
32590 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
32591
32592 wxPyEndAllowThreads(__tstate);
32593 if (PyErr_Occurred()) SWIG_fail;
32594 }
32595 {
32596 #if wxUSE_UNICODE
32597 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32598 #else
32599 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32600 #endif
32601 }
32602 return resultobj;
32603 fail:
32604 return NULL;
32605 }
32606
32607
32608 static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
32609 PyObject *resultobj = NULL;
32610 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32611 wxString *arg2 = 0 ;
32612 bool temp2 = false ;
32613 PyObject * obj0 = 0 ;
32614 PyObject * obj1 = 0 ;
32615 char *kwnames[] = {
32616 (char *) "self",(char *) "prefix", NULL
32617 };
32618
32619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail;
32620 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32621 if (SWIG_arg_fail(1)) SWIG_fail;
32622 {
32623 arg2 = wxString_in_helper(obj1);
32624 if (arg2 == NULL) SWIG_fail;
32625 temp2 = true;
32626 }
32627 {
32628 PyThreadState* __tstate = wxPyBeginAllowThreads();
32629 wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2);
32630
32631 wxPyEndAllowThreads(__tstate);
32632 if (PyErr_Occurred()) SWIG_fail;
32633 }
32634 Py_INCREF(Py_None); resultobj = Py_None;
32635 {
32636 if (temp2)
32637 delete arg2;
32638 }
32639 return resultobj;
32640 fail:
32641 {
32642 if (temp2)
32643 delete arg2;
32644 }
32645 return NULL;
32646 }
32647
32648
32649 static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
32650 PyObject *resultobj = NULL;
32651 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32652 wxString result;
32653 PyObject * obj0 = 0 ;
32654 char *kwnames[] = {
32655 (char *) "self", NULL
32656 };
32657
32658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail;
32659 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32660 if (SWIG_arg_fail(1)) SWIG_fail;
32661 {
32662 PyThreadState* __tstate = wxPyBeginAllowThreads();
32663 result = wxStandardPaths_GetInstallPrefix(arg1);
32664
32665 wxPyEndAllowThreads(__tstate);
32666 if (PyErr_Occurred()) SWIG_fail;
32667 }
32668 {
32669 #if wxUSE_UNICODE
32670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32671 #else
32672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32673 #endif
32674 }
32675 return resultobj;
32676 fail:
32677 return NULL;
32678 }
32679
32680
32681 static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) {
32682 PyObject *obj;
32683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32684 SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj);
32685 Py_INCREF(obj);
32686 return Py_BuildValue((char *)"");
32687 }
32688 static PyMethodDef SwigMethods[] = {
32689 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32690 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32691 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL},
32692 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL},
32693 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
32694 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
32695 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL},
32696 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL},
32697 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
32698 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
32699 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
32700 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
32701 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
32702 { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL},
32703 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL},
32704 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL},
32705 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL},
32706 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL},
32707 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL},
32708 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32709 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32710 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL},
32711 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32712 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL},
32713 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL},
32714 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL},
32715 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL},
32716 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL},
32717 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32718 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL},
32719 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL},
32720 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL},
32721 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL},
32722 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL},
32723 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL},
32724 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL},
32725 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL},
32726 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL},
32727 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL},
32728 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL},
32729 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL},
32730 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL},
32731 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL},
32732 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL},
32733 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL},
32734 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL},
32735 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32736 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32737 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32738 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32739 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
32740 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
32741 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL},
32742 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL},
32743 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL},
32744 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL},
32745 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32746 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32747 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL},
32748 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL},
32749 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
32750 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
32751 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL},
32752 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL},
32753 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32754 { (char *)"GetXDisplay", (PyCFunction) _wrap_GetXDisplay, METH_VARARGS | METH_KEYWORDS, NULL},
32755 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32756 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL},
32757 { (char *)"FindWindowAtPointer", (PyCFunction) _wrap_FindWindowAtPointer, METH_VARARGS | METH_KEYWORDS, NULL},
32758 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32759 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32760 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32761 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL},
32762 { (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL},
32763 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL},
32764 { (char *)"new_MouseState", (PyCFunction) _wrap_new_MouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32765 { (char *)"delete_MouseState", (PyCFunction) _wrap_delete_MouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32766 { (char *)"MouseState_GetX", (PyCFunction) _wrap_MouseState_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
32767 { (char *)"MouseState_GetY", (PyCFunction) _wrap_MouseState_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
32768 { (char *)"MouseState_LeftDown", (PyCFunction) _wrap_MouseState_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32769 { (char *)"MouseState_MiddleDown", (PyCFunction) _wrap_MouseState_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
32770 { (char *)"MouseState_RightDown", (PyCFunction) _wrap_MouseState_RightDown, METH_VARARGS | METH_KEYWORDS, NULL},
32771 { (char *)"MouseState_ControlDown", (PyCFunction) _wrap_MouseState_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
32772 { (char *)"MouseState_ShiftDown", (PyCFunction) _wrap_MouseState_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32773 { (char *)"MouseState_AltDown", (PyCFunction) _wrap_MouseState_AltDown, METH_VARARGS | METH_KEYWORDS, NULL},
32774 { (char *)"MouseState_MetaDown", (PyCFunction) _wrap_MouseState_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
32775 { (char *)"MouseState_CmdDown", (PyCFunction) _wrap_MouseState_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL},
32776 { (char *)"MouseState_SetX", (PyCFunction) _wrap_MouseState_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
32777 { (char *)"MouseState_SetY", (PyCFunction) _wrap_MouseState_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
32778 { (char *)"MouseState_SetLeftDown", (PyCFunction) _wrap_MouseState_SetLeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32779 { (char *)"MouseState_SetMiddleDown", (PyCFunction) _wrap_MouseState_SetMiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
32780 { (char *)"MouseState_SetRightDown", (PyCFunction) _wrap_MouseState_SetRightDown, METH_VARARGS | METH_KEYWORDS, NULL},
32781 { (char *)"MouseState_SetControlDown", (PyCFunction) _wrap_MouseState_SetControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
32782 { (char *)"MouseState_SetShiftDown", (PyCFunction) _wrap_MouseState_SetShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32783 { (char *)"MouseState_SetAltDown", (PyCFunction) _wrap_MouseState_SetAltDown, METH_VARARGS | METH_KEYWORDS, NULL},
32784 { (char *)"MouseState_SetMetaDown", (PyCFunction) _wrap_MouseState_SetMetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
32785 { (char *)"MouseState_swigregister", MouseState_swigregister, METH_VARARGS, NULL},
32786 { (char *)"GetMouseState", (PyCFunction) _wrap_GetMouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32787 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL},
32788 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL},
32789 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL},
32790 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL},
32791 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL},
32792 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL},
32793 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL},
32794 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
32795 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL},
32796 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
32797 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32798 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
32799 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL},
32800 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL},
32801 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
32802 { (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
32803 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
32804 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
32805 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32806 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL},
32807 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32808 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
32809 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32810 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
32811 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL},
32812 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
32813 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32814 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL},
32815 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL},
32816 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
32817 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
32818 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL},
32819 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32820 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32821 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL},
32822 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
32823 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
32824 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL},
32825 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32826 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32827 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL},
32828 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL},
32829 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL},
32830 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL},
32831 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL},
32832 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL},
32833 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL},
32834 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
32835 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
32836 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL},
32837 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL},
32838 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL},
32839 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL},
32840 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL},
32841 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL},
32842 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL},
32843 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL},
32844 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL},
32845 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL},
32846 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
32847 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL},
32848 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
32849 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
32850 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
32851 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL},
32852 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL},
32853 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL},
32854 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL},
32855 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
32856 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
32857 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL},
32858 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL},
32859 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL},
32860 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
32861 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32862 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL},
32863 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL},
32864 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
32865 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
32866 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
32867 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32868 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
32869 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
32870 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL},
32871 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
32872 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL},
32873 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL},
32874 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL},
32875 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
32876 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL},
32877 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
32878 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL},
32879 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL},
32880 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL},
32881 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL},
32882 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL},
32883 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL},
32884 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL},
32885 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
32886 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL},
32887 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL},
32888 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
32889 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL},
32890 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
32891 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
32892 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL},
32893 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL},
32894 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
32895 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
32896 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL},
32897 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
32898 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
32899 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
32900 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL},
32901 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL},
32902 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
32903 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
32904 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
32905 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
32906 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
32907 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
32908 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL},
32909 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
32910 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL},
32911 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL},
32912 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL},
32913 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
32914 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL},
32915 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL},
32916 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL},
32917 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32918 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL},
32919 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL},
32920 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL},
32921 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL},
32922 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
32923 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL},
32924 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL},
32925 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL},
32926 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
32927 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL},
32928 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL},
32929 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL},
32930 { (char *)"new_LogBuffer", (PyCFunction) _wrap_new_LogBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
32931 { (char *)"LogBuffer_GetBuffer", (PyCFunction) _wrap_LogBuffer_GetBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
32932 { (char *)"LogBuffer_Flush", (PyCFunction) _wrap_LogBuffer_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
32933 { (char *)"LogBuffer_swigregister", LogBuffer_swigregister, METH_VARARGS, NULL},
32934 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL},
32935 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL},
32936 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL},
32937 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL},
32938 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL},
32939 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL},
32940 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32941 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL},
32942 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
32943 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL},
32944 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL},
32945 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL},
32946 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
32947 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL},
32948 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL},
32949 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL},
32950 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL},
32951 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL},
32952 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL},
32953 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32954 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL},
32955 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
32956 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
32957 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
32958 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
32959 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32960 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
32961 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL},
32962 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL},
32963 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
32964 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL},
32965 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL},
32966 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL},
32967 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL},
32968 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL},
32969 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
32970 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
32971 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL},
32972 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
32973 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL},
32974 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL},
32975 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL},
32976 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL},
32977 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL},
32978 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL},
32979 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL},
32980 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL},
32981 { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
32982 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
32983 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
32984 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32985 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32986 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
32987 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32988 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32989 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32990 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32991 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32992 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
32993 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
32994 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
32995 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL},
32996 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL},
32997 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL},
32998 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL},
32999 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL},
33000 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL},
33001 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL},
33002 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL},
33003 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL},
33004 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL},
33005 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL},
33006 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL},
33007 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL},
33008 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL},
33009 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL},
33010 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL},
33011 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL},
33012 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL},
33013 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL},
33014 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL},
33015 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL},
33016 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL},
33017 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL},
33018 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL},
33019 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL},
33020 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL},
33021 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL},
33022 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL},
33023 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL},
33024 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL},
33025 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL},
33026 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL},
33027 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL},
33028 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33029 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33030 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33031 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
33032 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
33033 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
33034 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33035 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
33036 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33037 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33038 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL},
33039 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL},
33040 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL},
33041 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
33042 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
33043 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
33044 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL},
33045 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
33046 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL},
33047 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
33048 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33049 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL},
33050 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33051 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL},
33052 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL},
33053 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
33054 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL},
33055 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33056 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL},
33057 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33058 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL},
33059 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33060 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
33061 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33062 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33063 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33064 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
33065 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
33066 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL},
33067 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL},
33068 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL},
33069 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL},
33070 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL},
33071 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
33072 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
33073 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33074 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33075 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL},
33076 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33077 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33078 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
33079 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33080 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33081 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL},
33082 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33083 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33084 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
33085 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33086 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL},
33087 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL},
33088 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
33089 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL},
33090 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL},
33091 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL},
33092 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33093 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL},
33094 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33095 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33096 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL},
33097 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL},
33098 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
33099 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
33100 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL},
33101 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33102 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33103 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33104 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33105 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33106 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33107 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33108 { (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL},
33109 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
33110 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL},
33111 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL},
33112 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL},
33113 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33114 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33115 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL},
33116 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
33117 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL},
33118 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33119 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33120 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33121 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33122 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL},
33123 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL},
33124 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33125 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33126 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
33127 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL},
33128 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL},
33129 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL},
33130 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL},
33131 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL},
33132 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL},
33133 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL},
33134 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL},
33135 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL},
33136 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33137 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33138 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33139 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33140 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33141 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL},
33142 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33143 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33144 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
33145 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
33146 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33147 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
33148 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
33149 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
33150 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
33151 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33152 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33153 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL},
33154 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL},
33155 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL},
33156 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL},
33157 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
33158 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
33159 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL},
33160 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
33161 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
33162 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL},
33163 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL},
33164 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33165 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33166 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33167 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33168 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL},
33169 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL},
33170 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33171 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL},
33172 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL},
33173 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL},
33174 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33175 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL},
33176 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL},
33177 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL},
33178 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL},
33179 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL},
33180 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL},
33181 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL},
33182 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL},
33183 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL},
33184 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33185 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
33186 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33187 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL},
33188 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL},
33189 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33190 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL},
33191 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
33192 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33193 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL},
33194 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL},
33195 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL},
33196 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL},
33197 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33198 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL},
33199 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL},
33200 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
33201 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
33202 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
33203 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33204 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33205 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33206 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33207 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33208 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33209 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33210 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33211 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33212 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33213 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33214 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33215 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
33216 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
33217 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
33218 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
33219 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL},
33220 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33221 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL},
33222 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL},
33223 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL},
33224 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33225 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33226 { (char *)"DateTime_FromTimezone", (PyCFunction) _wrap_DateTime_FromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33227 { (char *)"DateTime_MakeFromTimezone", (PyCFunction) _wrap_DateTime_MakeFromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33228 { (char *)"DateTime_ToUTC", (PyCFunction) _wrap_DateTime_ToUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33229 { (char *)"DateTime_MakeUTC", (PyCFunction) _wrap_DateTime_MakeUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33230 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL},
33231 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL},
33232 { (char *)"DateTime_FromUTC", (PyCFunction) _wrap_DateTime_FromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33233 { (char *)"DateTime_MakeFromUTC", (PyCFunction) _wrap_DateTime_MakeFromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33234 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL},
33235 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL},
33236 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL},
33237 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL},
33238 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33239 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL},
33240 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33241 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL},
33242 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
33243 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
33244 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
33245 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33246 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33247 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33248 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL},
33249 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
33250 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL},
33251 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL},
33252 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL},
33253 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL},
33254 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL},
33255 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL},
33256 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL},
33257 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL},
33258 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL},
33259 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL},
33260 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL},
33261 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33262 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL},
33263 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL},
33264 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL},
33265 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL},
33266 { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
33267 { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL},
33268 { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
33269 { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
33270 { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33271 { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33272 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL},
33273 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33274 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33275 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL},
33276 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL},
33277 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL},
33278 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL},
33279 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL},
33280 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL},
33281 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL},
33282 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL},
33283 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL},
33284 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL},
33285 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL},
33286 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL},
33287 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL},
33288 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL},
33289 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
33290 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL},
33291 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
33292 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL},
33293 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33294 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33295 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33296 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33297 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
33298 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL},
33299 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL},
33300 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
33301 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
33302 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
33303 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL},
33304 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
33305 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
33306 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
33307 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
33308 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
33309 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL},
33310 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
33311 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
33312 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33313 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33314 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
33315 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL},
33316 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL},
33317 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
33318 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL},
33319 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL},
33320 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33321 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33322 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL},
33323 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL},
33324 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL},
33325 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL},
33326 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL},
33327 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL},
33328 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33329 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33330 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
33331 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL},
33332 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
33333 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL},
33334 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL},
33335 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL},
33336 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL},
33337 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL},
33338 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL},
33339 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
33340 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33341 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33342 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL},
33343 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
33344 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33345 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33346 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL},
33347 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33348 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33349 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL},
33350 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
33351 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
33352 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
33353 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL},
33354 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
33355 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
33356 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
33357 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
33358 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
33359 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33360 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33361 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL},
33362 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL},
33363 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL},
33364 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL},
33365 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL},
33366 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33367 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33368 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33369 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL},
33370 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL},
33371 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
33372 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL},
33373 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
33374 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
33375 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL},
33376 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33377 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33378 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL},
33379 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
33380 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
33381 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL},
33382 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
33383 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33384 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL},
33385 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
33386 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33387 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33388 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
33389 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
33390 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33391 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL},
33392 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
33393 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33394 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL},
33395 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL},
33396 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33397 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL},
33398 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33399 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL},
33400 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
33401 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
33402 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL},
33403 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33404 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33405 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL},
33406 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33407 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33408 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33409 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL},
33410 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33411 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33412 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL},
33413 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33414 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL},
33415 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL},
33416 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL},
33417 { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL},
33418 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33419 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
33420 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33421 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL},
33422 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33423 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL},
33424 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
33425 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL},
33426 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33427 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL},
33428 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL},
33429 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL},
33430 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL},
33431 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
33432 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33433 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
33434 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33435 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33436 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
33437 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33438 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL},
33439 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL},
33440 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33441 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33442 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33443 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33444 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33445 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33446 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33447 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33448 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33449 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33450 { (char *)"DropTarget_SetDefaultAction", (PyCFunction) _wrap_DropTarget_SetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
33451 { (char *)"DropTarget_GetDefaultAction", (PyCFunction) _wrap_DropTarget_GetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
33452 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL},
33453 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33454 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33455 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33456 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33457 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33458 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33459 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
33460 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL},
33461 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33462 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33463 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33464 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33465 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33466 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33467 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
33468 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL},
33469 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL},
33470 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL},
33471 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL},
33472 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL},
33473 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL},
33474 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL},
33475 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33476 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
33477 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33478 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
33479 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33480 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
33481 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33482 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
33483 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
33484 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
33485 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
33486 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL},
33487 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
33488 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
33489 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL},
33490 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
33491 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
33492 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
33493 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33494 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33495 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33496 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL},
33497 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL},
33498 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL},
33499 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL},
33500 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL},
33501 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL},
33502 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL},
33503 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL},
33504 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL},
33505 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL},
33506 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL},
33507 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
33508 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
33509 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
33510 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33511 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL},
33512 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
33513 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL},
33514 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL},
33515 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL},
33516 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL},
33517 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL},
33518 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
33519 { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33520 { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL},
33521 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL},
33522 { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33523 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33524 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33525 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33526 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL},
33527 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
33528 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
33529 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL},
33530 { NULL, NULL, 0, NULL }
33531 };
33532
33533
33534 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
33535
33536 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
33537 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
33538 }
33539 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
33540 return (void *)((wxEvent *) ((wxMenuEvent *) x));
33541 }
33542 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
33543 return (void *)((wxEvent *) ((wxCloseEvent *) x));
33544 }
33545 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
33546 return (void *)((wxEvent *) ((wxMouseEvent *) x));
33547 }
33548 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
33549 return (void *)((wxEvent *) ((wxEraseEvent *) x));
33550 }
33551 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
33552 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
33553 }
33554 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
33555 return (void *)((wxEvent *) ((wxTimerEvent *) x));
33556 }
33557 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
33558 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
33559 }
33560 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
33561 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
33562 }
33563 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
33564 return (void *)((wxEvent *) ((wxPyEvent *) x));
33565 }
33566 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
33567 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
33568 }
33569 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
33570 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
33571 }
33572 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
33573 return (void *)((wxEvent *) ((wxIdleEvent *) x));
33574 }
33575 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
33576 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
33577 }
33578 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
33579 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
33580 }
33581 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
33582 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
33583 }
33584 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
33585 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
33586 }
33587 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
33588 return (void *)((wxEvent *) ((wxActivateEvent *) x));
33589 }
33590 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
33591 return (void *)((wxEvent *) ((wxSizeEvent *) x));
33592 }
33593 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
33594 return (void *)((wxEvent *) ((wxMoveEvent *) x));
33595 }
33596 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
33597 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
33598 }
33599 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
33600 return (void *)((wxEvent *) ((wxPaintEvent *) x));
33601 }
33602 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
33603 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
33604 }
33605 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
33606 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
33607 }
33608 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
33609 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
33610 }
33611 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
33612 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
33613 }
33614 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
33615 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33616 }
33617 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
33618 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
33619 }
33620 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
33621 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
33622 }
33623 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
33624 return (void *)((wxEvent *) ((wxFocusEvent *) x));
33625 }
33626 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
33627 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
33628 }
33629 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
33630 return (void *)((wxEvent *) ((wxProcessEvent *) x));
33631 }
33632 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
33633 return (void *)((wxEvent *) ((wxShowEvent *) x));
33634 }
33635 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
33636 return (void *)((wxEvent *) ((wxCommandEvent *) x));
33637 }
33638 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
33639 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
33640 }
33641 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
33642 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33643 }
33644 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
33645 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
33646 }
33647 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
33648 return (void *)((wxEvent *) ((wxKeyEvent *) x));
33649 }
33650 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
33651 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
33652 }
33653 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
33654 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
33655 }
33656 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
33657 return (void *)((wxConfigBase *) ((wxConfig *) x));
33658 }
33659 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
33660 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33661 }
33662 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
33663 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
33664 }
33665 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
33666 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
33667 }
33668 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
33669 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
33670 }
33671 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
33672 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
33673 }
33674 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
33675 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
33676 }
33677 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
33678 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
33679 }
33680 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
33681 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
33682 }
33683 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
33684 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33685 }
33686 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
33687 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
33688 }
33689 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
33690 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
33691 }
33692 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
33693 return (void *)((wxDataObject *) ((wxURLDataObject *) x));
33694 }
33695 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
33696 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
33697 }
33698 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
33699 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
33700 }
33701 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
33702 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
33703 }
33704 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
33705 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
33706 }
33707 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
33708 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
33709 }
33710 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
33711 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33712 }
33713 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
33714 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
33715 }
33716 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
33717 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
33718 }
33719 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
33720 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
33721 }
33722 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
33723 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
33724 }
33725 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
33726 return (void *)((wxEvtHandler *) ((wxWindow *) x));
33727 }
33728 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
33729 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33730 }
33731 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
33732 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
33733 }
33734 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
33735 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
33736 }
33737 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
33738 return (void *)((wxEvtHandler *) ((wxValidator *) x));
33739 }
33740 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
33741 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
33742 }
33743 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
33744 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
33745 }
33746 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
33747 return (void *)((wxEvtHandler *) ((wxMenu *) x));
33748 }
33749 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
33750 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
33751 }
33752 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
33753 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
33754 }
33755 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33756 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33757 }
33758 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33759 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33760 }
33761 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33762 return (void *)((wxObject *) ((wxSizerItem *) x));
33763 }
33764 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33765 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33766 }
33767 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33768 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33769 }
33770 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33771 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33772 }
33773 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33774 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33775 }
33776 static void *_p_wxSizerTo_p_wxObject(void *x) {
33777 return (void *)((wxObject *) ((wxSizer *) x));
33778 }
33779 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33780 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33781 }
33782 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
33783 return (void *)((wxObject *) ((wxFileHistory *) x));
33784 }
33785 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33786 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33787 }
33788 static void *_p_wxEventTo_p_wxObject(void *x) {
33789 return (void *)((wxObject *) ((wxEvent *) x));
33790 }
33791 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33792 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33793 }
33794 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33795 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33796 }
33797 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33798 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33799 }
33800 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33801 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33802 }
33803 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33804 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33805 }
33806 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33807 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33808 }
33809 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33810 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33811 }
33812 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33813 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33814 }
33815 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33816 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33817 }
33818 static void *_p_wxControlTo_p_wxObject(void *x) {
33819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33820 }
33821 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33822 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33823 }
33824 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
33825 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
33826 }
33827 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33828 return (void *)((wxObject *) ((wxFSFile *) x));
33829 }
33830 static void *_p_wxClipboardTo_p_wxObject(void *x) {
33831 return (void *)((wxObject *) ((wxClipboard *) x));
33832 }
33833 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33834 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33835 }
33836 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33837 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33838 }
33839 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33840 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33841 }
33842 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33843 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33844 }
33845 static void *_p_wxToolTipTo_p_wxObject(void *x) {
33846 return (void *)((wxObject *) ((wxToolTip *) x));
33847 }
33848 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33849 return (void *)((wxObject *) ((wxMenuItem *) x));
33850 }
33851 static void *_p_wxDateEventTo_p_wxObject(void *x) {
33852 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
33853 }
33854 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33855 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33856 }
33857 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33858 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33859 }
33860 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33861 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33862 }
33863 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33864 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33865 }
33866 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33867 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33868 }
33869 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33870 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33871 }
33872 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33873 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33874 }
33875 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33876 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33877 }
33878 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33879 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33880 }
33881 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33882 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33883 }
33884 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33885 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33886 }
33887 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33888 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33889 }
33890 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33891 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33892 }
33893 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33894 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33895 }
33896 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33897 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33898 }
33899 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33900 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33901 }
33902 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33903 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33904 }
33905 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
33906 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
33907 }
33908 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33909 return (void *)((wxObject *) ((wxImageHandler *) x));
33910 }
33911 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33912 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33913 }
33914 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33915 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33916 }
33917 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33918 return (void *)((wxObject *) ((wxEvtHandler *) x));
33919 }
33920 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
33921 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
33922 }
33923 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33924 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33925 }
33926 static void *_p_wxImageTo_p_wxObject(void *x) {
33927 return (void *)((wxObject *) ((wxImage *) x));
33928 }
33929 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33930 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33931 }
33932 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
33933 return (void *)((wxObject *) ((wxSystemOptions *) x));
33934 }
33935 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
33936 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
33937 }
33938 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33939 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33940 }
33941 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33942 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33943 }
33944 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33945 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33946 }
33947 static void *_p_wxWindowTo_p_wxObject(void *x) {
33948 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33949 }
33950 static void *_p_wxMenuTo_p_wxObject(void *x) {
33951 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33952 }
33953 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33954 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33955 }
33956 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
33957 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
33958 }
33959 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33960 return (void *)((wxObject *) ((wxFileSystem *) x));
33961 }
33962 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33963 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33964 }
33965 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33966 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33967 }
33968 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33969 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33970 }
33971 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33972 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33973 }
33974 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33975 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33976 }
33977 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33978 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33979 }
33980 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
33981 return (void *)((wxObject *) ((wxBusyInfo *) x));
33982 }
33983 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33984 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33985 }
33986 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33987 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33988 }
33989 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33990 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33991 }
33992 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33993 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33994 }
33995 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33996 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33997 }
33998 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
33999 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
34000 }
34001 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
34002 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
34003 }
34004 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
34005 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
34006 }
34007 static void *_p_wxValidatorTo_p_wxObject(void *x) {
34008 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
34009 }
34010 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
34011 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
34012 }
34013 static void *_p_wxLogBufferTo_p_wxLog(void *x) {
34014 return (void *)((wxLog *) ((wxLogBuffer *) x));
34015 }
34016 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
34017 return (void *)((wxLog *) ((wxLogStderr *) x));
34018 }
34019 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
34020 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
34021 }
34022 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
34023 return (void *)((wxLog *) ((wxLogWindow *) x));
34024 }
34025 static void *_p_wxLogChainTo_p_wxLog(void *x) {
34026 return (void *)((wxLog *) ((wxLogChain *) x));
34027 }
34028 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
34029 return (void *)((wxLog *) ((wxLogGui *) x));
34030 }
34031 static void *_p_wxPyLogTo_p_wxLog(void *x) {
34032 return (void *)((wxLog *) ((wxPyLog *) x));
34033 }
34034 static void *_p_wxControlTo_p_wxWindow(void *x) {
34035 return (void *)((wxWindow *) ((wxControl *) x));
34036 }
34037 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
34038 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
34039 }
34040 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
34041 return (void *)((wxWindow *) ((wxMenuBar *) x));
34042 }
34043 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
34044 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
34045 }
34046 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
34047 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
34048 }
34049 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
34050 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
34051 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
34052 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
34053 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
34054 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, 0};
34055 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0};
34056 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, 0};
34057 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
34058 static swig_type_info _swigt__p_wxBitmapDataObject = {"_p_wxBitmapDataObject", "wxBitmapDataObject *", 0, 0, 0};
34059 static swig_type_info _swigt__p_wxBusyCursor = {"_p_wxBusyCursor", "wxBusyCursor *", 0, 0, 0};
34060 static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", "wxBusyInfo *", 0, 0, 0};
34061 static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, 0};
34062 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, 0};
34063 static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", "wxClipboard *", 0, 0, 0};
34064 static swig_type_info _swigt__p_wxClipboardLocker = {"_p_wxClipboardLocker", "wxClipboardLocker *", 0, 0, 0};
34065 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
34066 static swig_type_info _swigt__p_wxConfig = {"_p_wxConfig", "wxConfig *", 0, 0, 0};
34067 static swig_type_info _swigt__p_wxConfigBase = {"_p_wxConfigBase", "wxConfigBase *", 0, 0, 0};
34068 static swig_type_info _swigt__p_wxConfigPathChanger = {"_p_wxConfigPathChanger", "wxConfigPathChanger *", 0, 0, 0};
34069 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0};
34070 static swig_type_info _swigt__p_wxCustomDataObject = {"_p_wxCustomDataObject", "wxCustomDataObject *", 0, 0, 0};
34071 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0};
34072 static swig_type_info _swigt__p_wxDataFormat = {"_p_wxDataFormat", "wxDataFormat *", 0, 0, 0};
34073 static swig_type_info _swigt__p_wxDataObject = {"_p_wxDataObject", "wxDataObject *", 0, 0, 0};
34074 static swig_type_info _swigt__p_wxDataObjectComposite = {"_p_wxDataObjectComposite", "wxDataObjectComposite *", 0, 0, 0};
34075 static swig_type_info _swigt__p_wxDataObjectSimple = {"_p_wxDataObjectSimple", "wxDataObjectSimple *", 0, 0, 0};
34076 static swig_type_info _swigt__p_wxDateSpan = {"_p_wxDateSpan", "wxDateSpan *", 0, 0, 0};
34077 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0};
34078 static swig_type_info _swigt__p_wxDateTime__TimeZone = {"_p_wxDateTime__TimeZone", "wxDateTime::TimeZone *", 0, 0, 0};
34079 static swig_type_info _swigt__p_wxDisplay = {"_p_wxDisplay", "wxDisplay *", 0, 0, 0};
34080 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
34081 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0};
34082 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
34083 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
34084 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
34085 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
34086 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
34087 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
34088 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
34089 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
34090 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
34091 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
34092 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
34093 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
34094 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
34095 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
34096 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
34097 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
34098 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
34099 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
34100 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
34101 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
34102 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
34103 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
34104 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
34105 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
34106 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
34107 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
34108 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
34109 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
34110 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
34111 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
34112 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
34113 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
34114 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
34115 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
34116 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
34117 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
34118 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
34119 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
34120 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
34121 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
34122 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
34123 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
34124 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
34125 static swig_type_info _swigt__p_wxFileConfig = {"_p_wxFileConfig", "wxFileConfig *", 0, 0, 0};
34126 static swig_type_info _swigt__p_wxFileDataObject = {"_p_wxFileDataObject", "wxFileDataObject *", 0, 0, 0};
34127 static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", "wxFileHistory *", 0, 0, 0};
34128 static swig_type_info _swigt__p_wxFileType = {"_p_wxFileType", "wxFileType *", 0, 0, 0};
34129 static swig_type_info _swigt__p_wxFileTypeInfo = {"_p_wxFileTypeInfo", "wxFileTypeInfo *", 0, 0, 0};
34130 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
34131 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, 0};
34132 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
34133 static swig_type_info _swigt__p_wxJoystick = {"_p_wxJoystick", "wxJoystick *", 0, 0, 0};
34134 static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", "wxJoystickEvent *", 0, 0, 0};
34135 static swig_type_info _swigt__p_wxKillError = {"_p_wxKillError", "enum wxKillError *|wxKillError *", 0, 0, 0};
34136 static swig_type_info _swigt__p_wxLog = {"_p_wxLog", "wxLog *", 0, 0, 0};
34137 static swig_type_info _swigt__p_wxLogBuffer = {"_p_wxLogBuffer", "wxLogBuffer *", 0, 0, 0};
34138 static swig_type_info _swigt__p_wxLogChain = {"_p_wxLogChain", "wxLogChain *", 0, 0, 0};
34139 static swig_type_info _swigt__p_wxLogGui = {"_p_wxLogGui", "wxLogGui *", 0, 0, 0};
34140 static swig_type_info _swigt__p_wxLogNull = {"_p_wxLogNull", "wxLogNull *", 0, 0, 0};
34141 static swig_type_info _swigt__p_wxLogStderr = {"_p_wxLogStderr", "wxLogStderr *", 0, 0, 0};
34142 static swig_type_info _swigt__p_wxLogTextCtrl = {"_p_wxLogTextCtrl", "wxLogTextCtrl *", 0, 0, 0};
34143 static swig_type_info _swigt__p_wxLogWindow = {"_p_wxLogWindow", "wxLogWindow *", 0, 0, 0};
34144 static swig_type_info _swigt__p_wxMemorySize = {"_p_wxMemorySize", "wxMemorySize *", 0, 0, 0};
34145 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, 0};
34146 static swig_type_info _swigt__p_wxMetafile = {"_p_wxMetafile", "wxMetafile *", 0, 0, 0};
34147 static swig_type_info _swigt__p_wxMetafileDataObject = {"_p_wxMetafileDataObject", "wxMetafileDataObject *", 0, 0, 0};
34148 static swig_type_info _swigt__p_wxMimeTypesManager = {"_p_wxMimeTypesManager", "wxMimeTypesManager *", 0, 0, 0};
34149 static swig_type_info _swigt__p_wxMouseState = {"_p_wxMouseState", "wxMouseState *", 0, 0, 0};
34150 static swig_type_info _swigt__p_wxMutexGuiLocker = {"_p_wxMutexGuiLocker", "wxMutexGuiLocker *", 0, 0, 0};
34151 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
34152 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
34153 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
34154 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
34155 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
34156 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
34157 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
34158 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
34159 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
34160 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
34161 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
34162 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
34163 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
34164 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
34165 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
34166 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
34167 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
34168 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
34169 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
34170 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
34171 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
34172 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
34173 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
34174 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
34175 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
34176 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
34177 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
34178 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
34179 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
34180 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
34181 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
34182 static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, 0};
34183 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
34184 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
34185 static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", "wxProcessEvent *", 0, 0, 0};
34186 static swig_type_info _swigt__p_wxPyArtProvider = {"_p_wxPyArtProvider", "wxPyArtProvider *", 0, 0, 0};
34187 static swig_type_info _swigt__p_wxPyBitmapDataObject = {"_p_wxPyBitmapDataObject", "wxPyBitmapDataObject *", 0, 0, 0};
34188 static swig_type_info _swigt__p_wxPyDataObjectSimple = {"_p_wxPyDataObjectSimple", "wxPyDataObjectSimple *", 0, 0, 0};
34189 static swig_type_info _swigt__p_wxPyDropSource = {"_p_wxPyDropSource", "wxPyDropSource *", 0, 0, 0};
34190 static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, 0};
34191 static swig_type_info _swigt__p_wxPyFileDropTarget = {"_p_wxPyFileDropTarget", "wxPyFileDropTarget *", 0, 0, 0};
34192 static swig_type_info _swigt__p_wxPyLog = {"_p_wxPyLog", "wxPyLog *", 0, 0, 0};
34193 static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", "wxPyProcess *", 0, 0, 0};
34194 static swig_type_info _swigt__p_wxPyTextDataObject = {"_p_wxPyTextDataObject", "wxPyTextDataObject *", 0, 0, 0};
34195 static swig_type_info _swigt__p_wxPyTextDropTarget = {"_p_wxPyTextDropTarget", "wxPyTextDropTarget *", 0, 0, 0};
34196 static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", "wxPyTimer *", 0, 0, 0};
34197 static swig_type_info _swigt__p_wxPyTipProvider = {"_p_wxPyTipProvider", "wxPyTipProvider *", 0, 0, 0};
34198 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0};
34199 static swig_type_info _swigt__p_wxSingleInstanceChecker = {"_p_wxSingleInstanceChecker", "wxSingleInstanceChecker *", 0, 0, 0};
34200 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
34201 static swig_type_info _swigt__p_wxSound = {"_p_wxSound", "wxSound *", 0, 0, 0};
34202 static swig_type_info _swigt__p_wxStandardPaths = {"_p_wxStandardPaths", "wxStandardPaths *", 0, 0, 0};
34203 static swig_type_info _swigt__p_wxStopWatch = {"_p_wxStopWatch", "wxStopWatch *", 0, 0, 0};
34204 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0};
34205 static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", "wxSystemOptions *", 0, 0, 0};
34206 static swig_type_info _swigt__p_wxSystemSettings = {"_p_wxSystemSettings", "wxSystemSettings *", 0, 0, 0};
34207 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, 0};
34208 static swig_type_info _swigt__p_wxTextDataObject = {"_p_wxTextDataObject", "wxTextDataObject *", 0, 0, 0};
34209 static swig_type_info _swigt__p_wxTimeSpan = {"_p_wxTimeSpan", "wxTimeSpan *", 0, 0, 0};
34210 static swig_type_info _swigt__p_wxTimer = {"_p_wxTimer", "wxTimer *", 0, 0, 0};
34211 static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", "wxTimerEvent *", 0, 0, 0};
34212 static swig_type_info _swigt__p_wxTimerRunner = {"_p_wxTimerRunner", "wxTimerRunner *", 0, 0, 0};
34213 static swig_type_info _swigt__p_wxTipProvider = {"_p_wxTipProvider", "wxTipProvider *", 0, 0, 0};
34214 static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, 0};
34215 static swig_type_info _swigt__p_wxURLDataObject = {"_p_wxURLDataObject", "wxURLDataObject *", 0, 0, 0};
34216 static swig_type_info _swigt__p_wxVideoMode = {"_p_wxVideoMode", "wxVideoMode *", 0, 0, 0};
34217 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
34218 static swig_type_info _swigt__p_wxWindowDisabler = {"_p_wxWindowDisabler", "wxWindowDisabler *", 0, 0, 0};
34219 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
34220 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
34221 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
34222
34223 static swig_type_info *swig_type_initial[] = {
34224 &_swigt__p_char,
34225 &_swigt__p_form_ops_t,
34226 &_swigt__p_int,
34227 &_swigt__p_unsigned_char,
34228 &_swigt__p_unsigned_int,
34229 &_swigt__p_unsigned_long,
34230 &_swigt__p_void,
34231 &_swigt__p_wxANIHandler,
34232 &_swigt__p_wxAcceleratorTable,
34233 &_swigt__p_wxActivateEvent,
34234 &_swigt__p_wxArrayString,
34235 &_swigt__p_wxBMPHandler,
34236 &_swigt__p_wxBitmap,
34237 &_swigt__p_wxBitmapDataObject,
34238 &_swigt__p_wxBoxSizer,
34239 &_swigt__p_wxBusyCursor,
34240 &_swigt__p_wxBusyInfo,
34241 &_swigt__p_wxCURHandler,
34242 &_swigt__p_wxCaret,
34243 &_swigt__p_wxChar,
34244 &_swigt__p_wxChildFocusEvent,
34245 &_swigt__p_wxClipboard,
34246 &_swigt__p_wxClipboardLocker,
34247 &_swigt__p_wxCloseEvent,
34248 &_swigt__p_wxColour,
34249 &_swigt__p_wxCommandEvent,
34250 &_swigt__p_wxConfig,
34251 &_swigt__p_wxConfigBase,
34252 &_swigt__p_wxConfigPathChanger,
34253 &_swigt__p_wxContextMenuEvent,
34254 &_swigt__p_wxControl,
34255 &_swigt__p_wxControlWithItems,
34256 &_swigt__p_wxCursor,
34257 &_swigt__p_wxCustomDataObject,
34258 &_swigt__p_wxDC,
34259 &_swigt__p_wxDataFormat,
34260 &_swigt__p_wxDataObject,
34261 &_swigt__p_wxDataObjectComposite,
34262 &_swigt__p_wxDataObjectSimple,
34263 &_swigt__p_wxDateEvent,
34264 &_swigt__p_wxDateSpan,
34265 &_swigt__p_wxDateTime,
34266 &_swigt__p_wxDateTime__TimeZone,
34267 &_swigt__p_wxDisplay,
34268 &_swigt__p_wxDisplayChangedEvent,
34269 &_swigt__p_wxDropFilesEvent,
34270 &_swigt__p_wxDuplexMode,
34271 &_swigt__p_wxEraseEvent,
34272 &_swigt__p_wxEvent,
34273 &_swigt__p_wxEvtHandler,
34274 &_swigt__p_wxFSFile,
34275 &_swigt__p_wxFileConfig,
34276 &_swigt__p_wxFileDataObject,
34277 &_swigt__p_wxFileHistory,
34278 &_swigt__p_wxFileSystem,
34279 &_swigt__p_wxFileType,
34280 &_swigt__p_wxFileTypeInfo,
34281 &_swigt__p_wxFlexGridSizer,
34282 &_swigt__p_wxFocusEvent,
34283 &_swigt__p_wxFont,
34284 &_swigt__p_wxFrame,
34285 &_swigt__p_wxGBSizerItem,
34286 &_swigt__p_wxGIFHandler,
34287 &_swigt__p_wxGridBagSizer,
34288 &_swigt__p_wxGridSizer,
34289 &_swigt__p_wxICOHandler,
34290 &_swigt__p_wxIcon,
34291 &_swigt__p_wxIconizeEvent,
34292 &_swigt__p_wxIdleEvent,
34293 &_swigt__p_wxImage,
34294 &_swigt__p_wxImageHandler,
34295 &_swigt__p_wxIndividualLayoutConstraint,
34296 &_swigt__p_wxInitDialogEvent,
34297 &_swigt__p_wxJPEGHandler,
34298 &_swigt__p_wxJoystick,
34299 &_swigt__p_wxJoystickEvent,
34300 &_swigt__p_wxKeyEvent,
34301 &_swigt__p_wxKillError,
34302 &_swigt__p_wxLayoutConstraints,
34303 &_swigt__p_wxLog,
34304 &_swigt__p_wxLogBuffer,
34305 &_swigt__p_wxLogChain,
34306 &_swigt__p_wxLogGui,
34307 &_swigt__p_wxLogNull,
34308 &_swigt__p_wxLogStderr,
34309 &_swigt__p_wxLogTextCtrl,
34310 &_swigt__p_wxLogWindow,
34311 &_swigt__p_wxMaximizeEvent,
34312 &_swigt__p_wxMemorySize,
34313 &_swigt__p_wxMenu,
34314 &_swigt__p_wxMenuBar,
34315 &_swigt__p_wxMenuEvent,
34316 &_swigt__p_wxMenuItem,
34317 &_swigt__p_wxMetafile,
34318 &_swigt__p_wxMetafileDataObject,
34319 &_swigt__p_wxMimeTypesManager,
34320 &_swigt__p_wxMouseCaptureChangedEvent,
34321 &_swigt__p_wxMouseEvent,
34322 &_swigt__p_wxMouseState,
34323 &_swigt__p_wxMoveEvent,
34324 &_swigt__p_wxMutexGuiLocker,
34325 &_swigt__p_wxNavigationKeyEvent,
34326 &_swigt__p_wxNcPaintEvent,
34327 &_swigt__p_wxNotifyEvent,
34328 &_swigt__p_wxObject,
34329 &_swigt__p_wxOutputStream,
34330 &_swigt__p_wxPCXHandler,
34331 &_swigt__p_wxPNGHandler,
34332 &_swigt__p_wxPNMHandler,
34333 &_swigt__p_wxPaintEvent,
34334 &_swigt__p_wxPaletteChangedEvent,
34335 &_swigt__p_wxPaperSize,
34336 &_swigt__p_wxPoint,
34337 &_swigt__p_wxProcessEvent,
34338 &_swigt__p_wxPyApp,
34339 &_swigt__p_wxPyArtProvider,
34340 &_swigt__p_wxPyBitmapDataObject,
34341 &_swigt__p_wxPyCommandEvent,
34342 &_swigt__p_wxPyDataObjectSimple,
34343 &_swigt__p_wxPyDropSource,
34344 &_swigt__p_wxPyDropTarget,
34345 &_swigt__p_wxPyEvent,
34346 &_swigt__p_wxPyFileDropTarget,
34347 &_swigt__p_wxPyImageHandler,
34348 &_swigt__p_wxPyLog,
34349 &_swigt__p_wxPyProcess,
34350 &_swigt__p_wxPySizer,
34351 &_swigt__p_wxPyTextDataObject,
34352 &_swigt__p_wxPyTextDropTarget,
34353 &_swigt__p_wxPyTimer,
34354 &_swigt__p_wxPyTipProvider,
34355 &_swigt__p_wxPyValidator,
34356 &_swigt__p_wxQueryNewPaletteEvent,
34357 &_swigt__p_wxRect,
34358 &_swigt__p_wxScrollEvent,
34359 &_swigt__p_wxScrollWinEvent,
34360 &_swigt__p_wxSetCursorEvent,
34361 &_swigt__p_wxShowEvent,
34362 &_swigt__p_wxSingleInstanceChecker,
34363 &_swigt__p_wxSize,
34364 &_swigt__p_wxSizeEvent,
34365 &_swigt__p_wxSizer,
34366 &_swigt__p_wxSizerItem,
34367 &_swigt__p_wxSound,
34368 &_swigt__p_wxStandardPaths,
34369 &_swigt__p_wxStaticBoxSizer,
34370 &_swigt__p_wxStdDialogButtonSizer,
34371 &_swigt__p_wxStopWatch,
34372 &_swigt__p_wxString,
34373 &_swigt__p_wxSysColourChangedEvent,
34374 &_swigt__p_wxSystemOptions,
34375 &_swigt__p_wxSystemSettings,
34376 &_swigt__p_wxTIFFHandler,
34377 &_swigt__p_wxTextCtrl,
34378 &_swigt__p_wxTextDataObject,
34379 &_swigt__p_wxTimeSpan,
34380 &_swigt__p_wxTimer,
34381 &_swigt__p_wxTimerEvent,
34382 &_swigt__p_wxTimerRunner,
34383 &_swigt__p_wxTipProvider,
34384 &_swigt__p_wxToolTip,
34385 &_swigt__p_wxURLDataObject,
34386 &_swigt__p_wxUpdateUIEvent,
34387 &_swigt__p_wxValidator,
34388 &_swigt__p_wxVideoMode,
34389 &_swigt__p_wxWindow,
34390 &_swigt__p_wxWindowCreateEvent,
34391 &_swigt__p_wxWindowDestroyEvent,
34392 &_swigt__p_wxWindowDisabler,
34393 &_swigt__p_wxXPMHandler,
34394 &_swigt__ptrdiff_t,
34395 &_swigt__std__ptrdiff_t,
34396 &_swigt__unsigned_int,
34397 };
34398
34399 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
34400 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
34401 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
34402 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
34403 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
34404 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
34405 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
34406 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
34407 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
34408 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}};
34409 static swig_cast_info _swigc__p_wxBusyCursor[] = { {&_swigt__p_wxBusyCursor, 0, 0, 0},{0, 0, 0, 0}};
34410 static swig_cast_info _swigc__p_wxBusyInfo[] = { {&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}};
34411 static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
34412 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
34413 static swig_cast_info _swigc__p_wxClipboard[] = { {&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}};
34414 static swig_cast_info _swigc__p_wxClipboardLocker[] = { {&_swigt__p_wxClipboardLocker, 0, 0, 0},{0, 0, 0, 0}};
34415 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
34416 static swig_cast_info _swigc__p_wxConfig[] = { {&_swigt__p_wxConfig, 0, 0, 0},{0, 0, 0, 0}};
34417 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}};
34418 static swig_cast_info _swigc__p_wxConfigPathChanger[] = { {&_swigt__p_wxConfigPathChanger, 0, 0, 0},{0, 0, 0, 0}};
34419 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
34420 static swig_cast_info _swigc__p_wxCustomDataObject[] = { {&_swigt__p_wxCustomDataObject, 0, 0, 0},{0, 0, 0, 0}};
34421 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
34422 static swig_cast_info _swigc__p_wxDataFormat[] = { {&_swigt__p_wxDataFormat, 0, 0, 0},{0, 0, 0, 0}};
34423 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}};
34424 static swig_cast_info _swigc__p_wxDataObjectComposite[] = { {&_swigt__p_wxDataObjectComposite, 0, 0, 0},{0, 0, 0, 0}};
34425 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}};
34426 static swig_cast_info _swigc__p_wxDateSpan[] = { {&_swigt__p_wxDateSpan, 0, 0, 0},{0, 0, 0, 0}};
34427 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
34428 static swig_cast_info _swigc__p_wxDateTime__TimeZone[] = { {&_swigt__p_wxDateTime__TimeZone, 0, 0, 0},{0, 0, 0, 0}};
34429 static swig_cast_info _swigc__p_wxDisplay[] = { {&_swigt__p_wxDisplay, 0, 0, 0},{0, 0, 0, 0}};
34430 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
34431 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
34432 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
34433 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
34434 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
34435 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
34436 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
34437 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
34438 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
34439 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34440 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
34441 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
34442 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
34443 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
34444 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34445 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34446 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
34447 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34448 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34449 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
34450 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
34451 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
34452 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
34453 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34454 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34455 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34456 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34457 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
34458 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
34459 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
34460 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
34461 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
34462 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
34463 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
34464 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
34465 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
34466 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34467 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}};
34468 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
34469 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
34470 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
34471 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
34472 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
34473 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
34474 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}};
34475 static swig_cast_info _swigc__p_wxFileConfig[] = { {&_swigt__p_wxFileConfig, 0, 0, 0},{0, 0, 0, 0}};
34476 static swig_cast_info _swigc__p_wxFileDataObject[] = { {&_swigt__p_wxFileDataObject, 0, 0, 0},{0, 0, 0, 0}};
34477 static swig_cast_info _swigc__p_wxFileHistory[] = { {&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}};
34478 static swig_cast_info _swigc__p_wxFileType[] = { {&_swigt__p_wxFileType, 0, 0, 0},{0, 0, 0, 0}};
34479 static swig_cast_info _swigc__p_wxFileTypeInfo[] = { {&_swigt__p_wxFileTypeInfo, 0, 0, 0},{0, 0, 0, 0}};
34480 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
34481 static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
34482 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
34483 static swig_cast_info _swigc__p_wxJoystick[] = { {&_swigt__p_wxJoystick, 0, 0, 0},{0, 0, 0, 0}};
34484 static swig_cast_info _swigc__p_wxJoystickEvent[] = { {&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}};
34485 static swig_cast_info _swigc__p_wxKillError[] = { {&_swigt__p_wxKillError, 0, 0, 0},{0, 0, 0, 0}};
34486 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}};
34487 static swig_cast_info _swigc__p_wxLogBuffer[] = { {&_swigt__p_wxLogBuffer, 0, 0, 0},{0, 0, 0, 0}};
34488 static swig_cast_info _swigc__p_wxLogChain[] = { {&_swigt__p_wxLogChain, 0, 0, 0},{0, 0, 0, 0}};
34489 static swig_cast_info _swigc__p_wxLogGui[] = { {&_swigt__p_wxLogGui, 0, 0, 0},{0, 0, 0, 0}};
34490 static swig_cast_info _swigc__p_wxLogNull[] = { {&_swigt__p_wxLogNull, 0, 0, 0},{0, 0, 0, 0}};
34491 static swig_cast_info _swigc__p_wxLogStderr[] = { {&_swigt__p_wxLogStderr, 0, 0, 0},{0, 0, 0, 0}};
34492 static swig_cast_info _swigc__p_wxLogTextCtrl[] = { {&_swigt__p_wxLogTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
34493 static swig_cast_info _swigc__p_wxLogWindow[] = { {&_swigt__p_wxLogWindow, 0, 0, 0},{0, 0, 0, 0}};
34494 static swig_cast_info _swigc__p_wxMemorySize[] = { {&_swigt__p_wxMemorySize, 0, 0, 0},{0, 0, 0, 0}};
34495 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
34496 static swig_cast_info _swigc__p_wxMetafile[] = { {&_swigt__p_wxMetafile, 0, 0, 0},{0, 0, 0, 0}};
34497 static swig_cast_info _swigc__p_wxMetafileDataObject[] = { {&_swigt__p_wxMetafileDataObject, 0, 0, 0},{0, 0, 0, 0}};
34498 static swig_cast_info _swigc__p_wxMimeTypesManager[] = { {&_swigt__p_wxMimeTypesManager, 0, 0, 0},{0, 0, 0, 0}};
34499 static swig_cast_info _swigc__p_wxMouseState[] = { {&_swigt__p_wxMouseState, 0, 0, 0},{0, 0, 0, 0}};
34500 static swig_cast_info _swigc__p_wxMutexGuiLocker[] = { {&_swigt__p_wxMutexGuiLocker, 0, 0, 0},{0, 0, 0, 0}};
34501 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
34502 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34503 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34504 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
34505 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
34506 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
34507 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
34508 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
34509 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
34510 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
34511 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
34512 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
34513 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
34514 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
34515 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
34516 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
34517 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
34518 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
34519 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
34520 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
34521 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
34522 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
34523 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
34524 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
34525 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
34526 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34527 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
34528 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
34529 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
34530 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34531 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}};
34532 static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
34533 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
34534 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
34535 static swig_cast_info _swigc__p_wxProcessEvent[] = { {&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}};
34536 static swig_cast_info _swigc__p_wxPyArtProvider[] = { {&_swigt__p_wxPyArtProvider, 0, 0, 0},{0, 0, 0, 0}};
34537 static swig_cast_info _swigc__p_wxPyBitmapDataObject[] = { {&_swigt__p_wxPyBitmapDataObject, 0, 0, 0},{0, 0, 0, 0}};
34538 static swig_cast_info _swigc__p_wxPyDataObjectSimple[] = { {&_swigt__p_wxPyDataObjectSimple, 0, 0, 0},{0, 0, 0, 0}};
34539 static swig_cast_info _swigc__p_wxPyDropSource[] = { {&_swigt__p_wxPyDropSource, 0, 0, 0},{0, 0, 0, 0}};
34540 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}};
34541 static swig_cast_info _swigc__p_wxPyFileDropTarget[] = { {&_swigt__p_wxPyFileDropTarget, 0, 0, 0},{0, 0, 0, 0}};
34542 static swig_cast_info _swigc__p_wxPyLog[] = { {&_swigt__p_wxPyLog, 0, 0, 0},{0, 0, 0, 0}};
34543 static swig_cast_info _swigc__p_wxPyProcess[] = { {&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}};
34544 static swig_cast_info _swigc__p_wxPyTextDataObject[] = { {&_swigt__p_wxPyTextDataObject, 0, 0, 0},{0, 0, 0, 0}};
34545 static swig_cast_info _swigc__p_wxPyTextDropTarget[] = { {&_swigt__p_wxPyTextDropTarget, 0, 0, 0},{0, 0, 0, 0}};
34546 static swig_cast_info _swigc__p_wxPyTimer[] = { {&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}};
34547 static swig_cast_info _swigc__p_wxPyTipProvider[] = { {&_swigt__p_wxPyTipProvider, 0, 0, 0},{0, 0, 0, 0}};
34548 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
34549 static swig_cast_info _swigc__p_wxSingleInstanceChecker[] = { {&_swigt__p_wxSingleInstanceChecker, 0, 0, 0},{0, 0, 0, 0}};
34550 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
34551 static swig_cast_info _swigc__p_wxSound[] = { {&_swigt__p_wxSound, 0, 0, 0},{0, 0, 0, 0}};
34552 static swig_cast_info _swigc__p_wxStandardPaths[] = { {&_swigt__p_wxStandardPaths, 0, 0, 0},{0, 0, 0, 0}};
34553 static swig_cast_info _swigc__p_wxStopWatch[] = { {&_swigt__p_wxStopWatch, 0, 0, 0},{0, 0, 0, 0}};
34554 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
34555 static swig_cast_info _swigc__p_wxSystemOptions[] = { {&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}};
34556 static swig_cast_info _swigc__p_wxSystemSettings[] = { {&_swigt__p_wxSystemSettings, 0, 0, 0},{0, 0, 0, 0}};
34557 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
34558 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}};
34559 static swig_cast_info _swigc__p_wxTimeSpan[] = { {&_swigt__p_wxTimeSpan, 0, 0, 0},{0, 0, 0, 0}};
34560 static swig_cast_info _swigc__p_wxTimer[] = { {&_swigt__p_wxTimer, 0, 0, 0},{0, 0, 0, 0}};
34561 static swig_cast_info _swigc__p_wxTimerEvent[] = { {&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}};
34562 static swig_cast_info _swigc__p_wxTimerRunner[] = { {&_swigt__p_wxTimerRunner, 0, 0, 0},{0, 0, 0, 0}};
34563 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}};
34564 static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
34565 static swig_cast_info _swigc__p_wxURLDataObject[] = { {&_swigt__p_wxURLDataObject, 0, 0, 0},{0, 0, 0, 0}};
34566 static swig_cast_info _swigc__p_wxVideoMode[] = { {&_swigt__p_wxVideoMode, 0, 0, 0},{0, 0, 0, 0}};
34567 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}};
34568 static swig_cast_info _swigc__p_wxWindowDisabler[] = { {&_swigt__p_wxWindowDisabler, 0, 0, 0},{0, 0, 0, 0}};
34569 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
34570 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
34571 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
34572
34573 static swig_cast_info *swig_cast_initial[] = {
34574 _swigc__p_char,
34575 _swigc__p_form_ops_t,
34576 _swigc__p_int,
34577 _swigc__p_unsigned_char,
34578 _swigc__p_unsigned_int,
34579 _swigc__p_unsigned_long,
34580 _swigc__p_void,
34581 _swigc__p_wxANIHandler,
34582 _swigc__p_wxAcceleratorTable,
34583 _swigc__p_wxActivateEvent,
34584 _swigc__p_wxArrayString,
34585 _swigc__p_wxBMPHandler,
34586 _swigc__p_wxBitmap,
34587 _swigc__p_wxBitmapDataObject,
34588 _swigc__p_wxBoxSizer,
34589 _swigc__p_wxBusyCursor,
34590 _swigc__p_wxBusyInfo,
34591 _swigc__p_wxCURHandler,
34592 _swigc__p_wxCaret,
34593 _swigc__p_wxChar,
34594 _swigc__p_wxChildFocusEvent,
34595 _swigc__p_wxClipboard,
34596 _swigc__p_wxClipboardLocker,
34597 _swigc__p_wxCloseEvent,
34598 _swigc__p_wxColour,
34599 _swigc__p_wxCommandEvent,
34600 _swigc__p_wxConfig,
34601 _swigc__p_wxConfigBase,
34602 _swigc__p_wxConfigPathChanger,
34603 _swigc__p_wxContextMenuEvent,
34604 _swigc__p_wxControl,
34605 _swigc__p_wxControlWithItems,
34606 _swigc__p_wxCursor,
34607 _swigc__p_wxCustomDataObject,
34608 _swigc__p_wxDC,
34609 _swigc__p_wxDataFormat,
34610 _swigc__p_wxDataObject,
34611 _swigc__p_wxDataObjectComposite,
34612 _swigc__p_wxDataObjectSimple,
34613 _swigc__p_wxDateEvent,
34614 _swigc__p_wxDateSpan,
34615 _swigc__p_wxDateTime,
34616 _swigc__p_wxDateTime__TimeZone,
34617 _swigc__p_wxDisplay,
34618 _swigc__p_wxDisplayChangedEvent,
34619 _swigc__p_wxDropFilesEvent,
34620 _swigc__p_wxDuplexMode,
34621 _swigc__p_wxEraseEvent,
34622 _swigc__p_wxEvent,
34623 _swigc__p_wxEvtHandler,
34624 _swigc__p_wxFSFile,
34625 _swigc__p_wxFileConfig,
34626 _swigc__p_wxFileDataObject,
34627 _swigc__p_wxFileHistory,
34628 _swigc__p_wxFileSystem,
34629 _swigc__p_wxFileType,
34630 _swigc__p_wxFileTypeInfo,
34631 _swigc__p_wxFlexGridSizer,
34632 _swigc__p_wxFocusEvent,
34633 _swigc__p_wxFont,
34634 _swigc__p_wxFrame,
34635 _swigc__p_wxGBSizerItem,
34636 _swigc__p_wxGIFHandler,
34637 _swigc__p_wxGridBagSizer,
34638 _swigc__p_wxGridSizer,
34639 _swigc__p_wxICOHandler,
34640 _swigc__p_wxIcon,
34641 _swigc__p_wxIconizeEvent,
34642 _swigc__p_wxIdleEvent,
34643 _swigc__p_wxImage,
34644 _swigc__p_wxImageHandler,
34645 _swigc__p_wxIndividualLayoutConstraint,
34646 _swigc__p_wxInitDialogEvent,
34647 _swigc__p_wxJPEGHandler,
34648 _swigc__p_wxJoystick,
34649 _swigc__p_wxJoystickEvent,
34650 _swigc__p_wxKeyEvent,
34651 _swigc__p_wxKillError,
34652 _swigc__p_wxLayoutConstraints,
34653 _swigc__p_wxLog,
34654 _swigc__p_wxLogBuffer,
34655 _swigc__p_wxLogChain,
34656 _swigc__p_wxLogGui,
34657 _swigc__p_wxLogNull,
34658 _swigc__p_wxLogStderr,
34659 _swigc__p_wxLogTextCtrl,
34660 _swigc__p_wxLogWindow,
34661 _swigc__p_wxMaximizeEvent,
34662 _swigc__p_wxMemorySize,
34663 _swigc__p_wxMenu,
34664 _swigc__p_wxMenuBar,
34665 _swigc__p_wxMenuEvent,
34666 _swigc__p_wxMenuItem,
34667 _swigc__p_wxMetafile,
34668 _swigc__p_wxMetafileDataObject,
34669 _swigc__p_wxMimeTypesManager,
34670 _swigc__p_wxMouseCaptureChangedEvent,
34671 _swigc__p_wxMouseEvent,
34672 _swigc__p_wxMouseState,
34673 _swigc__p_wxMoveEvent,
34674 _swigc__p_wxMutexGuiLocker,
34675 _swigc__p_wxNavigationKeyEvent,
34676 _swigc__p_wxNcPaintEvent,
34677 _swigc__p_wxNotifyEvent,
34678 _swigc__p_wxObject,
34679 _swigc__p_wxOutputStream,
34680 _swigc__p_wxPCXHandler,
34681 _swigc__p_wxPNGHandler,
34682 _swigc__p_wxPNMHandler,
34683 _swigc__p_wxPaintEvent,
34684 _swigc__p_wxPaletteChangedEvent,
34685 _swigc__p_wxPaperSize,
34686 _swigc__p_wxPoint,
34687 _swigc__p_wxProcessEvent,
34688 _swigc__p_wxPyApp,
34689 _swigc__p_wxPyArtProvider,
34690 _swigc__p_wxPyBitmapDataObject,
34691 _swigc__p_wxPyCommandEvent,
34692 _swigc__p_wxPyDataObjectSimple,
34693 _swigc__p_wxPyDropSource,
34694 _swigc__p_wxPyDropTarget,
34695 _swigc__p_wxPyEvent,
34696 _swigc__p_wxPyFileDropTarget,
34697 _swigc__p_wxPyImageHandler,
34698 _swigc__p_wxPyLog,
34699 _swigc__p_wxPyProcess,
34700 _swigc__p_wxPySizer,
34701 _swigc__p_wxPyTextDataObject,
34702 _swigc__p_wxPyTextDropTarget,
34703 _swigc__p_wxPyTimer,
34704 _swigc__p_wxPyTipProvider,
34705 _swigc__p_wxPyValidator,
34706 _swigc__p_wxQueryNewPaletteEvent,
34707 _swigc__p_wxRect,
34708 _swigc__p_wxScrollEvent,
34709 _swigc__p_wxScrollWinEvent,
34710 _swigc__p_wxSetCursorEvent,
34711 _swigc__p_wxShowEvent,
34712 _swigc__p_wxSingleInstanceChecker,
34713 _swigc__p_wxSize,
34714 _swigc__p_wxSizeEvent,
34715 _swigc__p_wxSizer,
34716 _swigc__p_wxSizerItem,
34717 _swigc__p_wxSound,
34718 _swigc__p_wxStandardPaths,
34719 _swigc__p_wxStaticBoxSizer,
34720 _swigc__p_wxStdDialogButtonSizer,
34721 _swigc__p_wxStopWatch,
34722 _swigc__p_wxString,
34723 _swigc__p_wxSysColourChangedEvent,
34724 _swigc__p_wxSystemOptions,
34725 _swigc__p_wxSystemSettings,
34726 _swigc__p_wxTIFFHandler,
34727 _swigc__p_wxTextCtrl,
34728 _swigc__p_wxTextDataObject,
34729 _swigc__p_wxTimeSpan,
34730 _swigc__p_wxTimer,
34731 _swigc__p_wxTimerEvent,
34732 _swigc__p_wxTimerRunner,
34733 _swigc__p_wxTipProvider,
34734 _swigc__p_wxToolTip,
34735 _swigc__p_wxURLDataObject,
34736 _swigc__p_wxUpdateUIEvent,
34737 _swigc__p_wxValidator,
34738 _swigc__p_wxVideoMode,
34739 _swigc__p_wxWindow,
34740 _swigc__p_wxWindowCreateEvent,
34741 _swigc__p_wxWindowDestroyEvent,
34742 _swigc__p_wxWindowDisabler,
34743 _swigc__p_wxXPMHandler,
34744 _swigc__ptrdiff_t,
34745 _swigc__std__ptrdiff_t,
34746 _swigc__unsigned_int,
34747 };
34748
34749
34750 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
34751
34752 static swig_const_info swig_const_table[] = {
34753 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
34754 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
34755 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
34756 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
34757 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
34758 {0, 0, 0, 0.0, 0, 0}};
34759
34760 #ifdef __cplusplus
34761 }
34762 #endif
34763 /*************************************************************************
34764 * Type initialization:
34765 * This problem is tough by the requirement that no dynamic
34766 * memory is used. Also, since swig_type_info structures store pointers to
34767 * swig_cast_info structures and swig_cast_info structures store pointers back
34768 * to swig_type_info structures, we need some lookup code at initialization.
34769 * The idea is that swig generates all the structures that are needed.
34770 * The runtime then collects these partially filled structures.
34771 * The SWIG_InitializeModule function takes these initial arrays out of
34772 * swig_module, and does all the lookup, filling in the swig_module.types
34773 * array with the correct data and linking the correct swig_cast_info
34774 * structures together.
34775
34776 * The generated swig_type_info structures are assigned staticly to an initial
34777 * array. We just loop though that array, and handle each type individually.
34778 * First we lookup if this type has been already loaded, and if so, use the
34779 * loaded structure instead of the generated one. Then we have to fill in the
34780 * cast linked list. The cast data is initially stored in something like a
34781 * two-dimensional array. Each row corresponds to a type (there are the same
34782 * number of rows as there are in the swig_type_initial array). Each entry in
34783 * a column is one of the swig_cast_info structures for that type.
34784 * The cast_initial array is actually an array of arrays, because each row has
34785 * a variable number of columns. So to actually build the cast linked list,
34786 * we find the array of casts associated with the type, and loop through it
34787 * adding the casts to the list. The one last trick we need to do is making
34788 * sure the type pointer in the swig_cast_info struct is correct.
34789
34790 * First off, we lookup the cast->type name to see if it is already loaded.
34791 * There are three cases to handle:
34792 * 1) If the cast->type has already been loaded AND the type we are adding
34793 * casting info to has not been loaded (it is in this module), THEN we
34794 * replace the cast->type pointer with the type pointer that has already
34795 * been loaded.
34796 * 2) If BOTH types (the one we are adding casting info to, and the
34797 * cast->type) are loaded, THEN the cast info has already been loaded by
34798 * the previous module so we just ignore it.
34799 * 3) Finally, if cast->type has not already been loaded, then we add that
34800 * swig_cast_info to the linked list (because the cast->type) pointer will
34801 * be correct.
34802 **/
34803
34804 #ifdef __cplusplus
34805 extern "C" {
34806 #if 0
34807 } /* c-mode */
34808 #endif
34809 #endif
34810
34811 #if 0
34812 #define SWIGRUNTIME_DEBUG
34813 #endif
34814
34815 SWIGRUNTIME void
34816 SWIG_InitializeModule(void *clientdata) {
34817 size_t i;
34818 swig_module_info *module_head;
34819 static int init_run = 0;
34820
34821 clientdata = clientdata;
34822
34823 if (init_run) return;
34824 init_run = 1;
34825
34826 /* Initialize the swig_module */
34827 swig_module.type_initial = swig_type_initial;
34828 swig_module.cast_initial = swig_cast_initial;
34829
34830 /* Try and load any already created modules */
34831 module_head = SWIG_GetModule(clientdata);
34832 if (module_head) {
34833 swig_module.next = module_head->next;
34834 module_head->next = &swig_module;
34835 } else {
34836 /* This is the first module loaded */
34837 swig_module.next = &swig_module;
34838 SWIG_SetModule(clientdata, &swig_module);
34839 }
34840
34841 /* Now work on filling in swig_module.types */
34842 #ifdef SWIGRUNTIME_DEBUG
34843 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
34844 #endif
34845 for (i = 0; i < swig_module.size; ++i) {
34846 swig_type_info *type = 0;
34847 swig_type_info *ret;
34848 swig_cast_info *cast;
34849
34850 #ifdef SWIGRUNTIME_DEBUG
34851 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
34852 #endif
34853
34854 /* if there is another module already loaded */
34855 if (swig_module.next != &swig_module) {
34856 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
34857 }
34858 if (type) {
34859 /* Overwrite clientdata field */
34860 #ifdef SWIGRUNTIME_DEBUG
34861 printf("SWIG_InitializeModule: found type %s\n", type->name);
34862 #endif
34863 if (swig_module.type_initial[i]->clientdata) {
34864 type->clientdata = swig_module.type_initial[i]->clientdata;
34865 #ifdef SWIGRUNTIME_DEBUG
34866 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
34867 #endif
34868 }
34869 } else {
34870 type = swig_module.type_initial[i];
34871 }
34872
34873 /* Insert casting types */
34874 cast = swig_module.cast_initial[i];
34875 while (cast->type) {
34876 /* Don't need to add information already in the list */
34877 ret = 0;
34878 #ifdef SWIGRUNTIME_DEBUG
34879 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
34880 #endif
34881 if (swig_module.next != &swig_module) {
34882 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
34883 #ifdef SWIGRUNTIME_DEBUG
34884 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
34885 #endif
34886 }
34887 if (ret) {
34888 if (type == swig_module.type_initial[i]) {
34889 #ifdef SWIGRUNTIME_DEBUG
34890 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
34891 #endif
34892 cast->type = ret;
34893 ret = 0;
34894 } else {
34895 /* Check for casting already in the list */
34896 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
34897 #ifdef SWIGRUNTIME_DEBUG
34898 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
34899 #endif
34900 if (!ocast) ret = 0;
34901 }
34902 }
34903
34904 if (!ret) {
34905 #ifdef SWIGRUNTIME_DEBUG
34906 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
34907 #endif
34908 if (type->cast) {
34909 type->cast->prev = cast;
34910 cast->next = type->cast;
34911 }
34912 type->cast = cast;
34913 }
34914 cast++;
34915 }
34916 /* Set entry in modules->types array equal to the type */
34917 swig_module.types[i] = type;
34918 }
34919 swig_module.types[i] = 0;
34920
34921 #ifdef SWIGRUNTIME_DEBUG
34922 printf("**** SWIG_InitializeModule: Cast List ******\n");
34923 for (i = 0; i < swig_module.size; ++i) {
34924 int j = 0;
34925 swig_cast_info *cast = swig_module.cast_initial[i];
34926 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
34927 while (cast->type) {
34928 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
34929 cast++;
34930 ++j;
34931 }
34932 printf("---- Total casts: %d\n",j);
34933 }
34934 printf("**** SWIG_InitializeModule: Cast List ******\n");
34935 #endif
34936 }
34937
34938 /* This function will propagate the clientdata field of type to
34939 * any new swig_type_info structures that have been added into the list
34940 * of equivalent types. It is like calling
34941 * SWIG_TypeClientData(type, clientdata) a second time.
34942 */
34943 SWIGRUNTIME void
34944 SWIG_PropagateClientData(void) {
34945 size_t i;
34946 swig_cast_info *equiv;
34947 static int init_run = 0;
34948
34949 if (init_run) return;
34950 init_run = 1;
34951
34952 for (i = 0; i < swig_module.size; i++) {
34953 if (swig_module.types[i]->clientdata) {
34954 equiv = swig_module.types[i]->cast;
34955 while (equiv) {
34956 if (!equiv->converter) {
34957 if (equiv->type && !equiv->type->clientdata)
34958 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
34959 }
34960 equiv = equiv->next;
34961 }
34962 }
34963 }
34964 }
34965
34966 #ifdef __cplusplus
34967 #if 0
34968 {
34969 /* c-mode */
34970 #endif
34971 }
34972 #endif
34973
34974
34975
34976 #ifdef __cplusplus
34977 extern "C" {
34978 #endif
34979
34980 /* Python-specific SWIG API */
34981 #define SWIG_newvarlink() SWIG_Python_newvarlink()
34982 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
34983 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
34984
34985 /* -----------------------------------------------------------------------------
34986 * global variable support code.
34987 * ----------------------------------------------------------------------------- */
34988
34989 typedef struct swig_globalvar {
34990 char *name; /* Name of global variable */
34991 PyObject *(*get_attr)(void); /* Return the current value */
34992 int (*set_attr)(PyObject *); /* Set the value */
34993 struct swig_globalvar *next;
34994 } swig_globalvar;
34995
34996 typedef struct swig_varlinkobject {
34997 PyObject_HEAD
34998 swig_globalvar *vars;
34999 } swig_varlinkobject;
35000
35001 SWIGINTERN PyObject *
35002 swig_varlink_repr(swig_varlinkobject *v) {
35003 v = v;
35004 return PyString_FromString("<Swig global variables>");
35005 }
35006
35007 SWIGINTERN int
35008 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
35009 swig_globalvar *var;
35010 flags = flags;
35011 fprintf(fp,"Swig global variables { ");
35012 for (var = v->vars; var; var=var->next) {
35013 fprintf(fp,"%s", var->name);
35014 if (var->next) fprintf(fp,", ");
35015 }
35016 fprintf(fp," }\n");
35017 return 0;
35018 }
35019
35020 SWIGINTERN PyObject *
35021 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
35022 swig_globalvar *var = v->vars;
35023 while (var) {
35024 if (strcmp(var->name,n) == 0) {
35025 return (*var->get_attr)();
35026 }
35027 var = var->next;
35028 }
35029 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
35030 return NULL;
35031 }
35032
35033 SWIGINTERN int
35034 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
35035 swig_globalvar *var = v->vars;
35036 while (var) {
35037 if (strcmp(var->name,n) == 0) {
35038 return (*var->set_attr)(p);
35039 }
35040 var = var->next;
35041 }
35042 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
35043 return 1;
35044 }
35045
35046 SWIGINTERN PyTypeObject*
35047 swig_varlink_type(void) {
35048 static char varlink__doc__[] = "Swig var link object";
35049 static PyTypeObject varlink_type
35050 #if !defined(__cplusplus)
35051 ;
35052 static int type_init = 0;
35053 if (!type_init) {
35054 PyTypeObject tmp
35055 #endif
35056 = {
35057 PyObject_HEAD_INIT(&PyType_Type)
35058 0, /* Number of items in variable part (ob_size) */
35059 (char *)"swigvarlink", /* Type name (tp_name) */
35060 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
35061 0, /* Itemsize (tp_itemsize) */
35062 0, /* Deallocator (tp_dealloc) */
35063 (printfunc) swig_varlink_print, /* Print (tp_print) */
35064 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
35065 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
35066 0, /* tp_compare */
35067 (reprfunc) swig_varlink_repr, /* tp_repr */
35068 0, /* tp_as_number */
35069 0, /* tp_as_sequence */
35070 0, /* tp_as_mapping */
35071 0, /* tp_hash */
35072 0, /* tp_call */
35073 0, /* tp_str */
35074 0, /* tp_getattro */
35075 0, /* tp_setattro */
35076 0, /* tp_as_buffer */
35077 0, /* tp_flags */
35078 varlink__doc__, /* tp_doc */
35079 #if PY_VERSION_HEX >= 0x02000000
35080 0, /* tp_traverse */
35081 0, /* tp_clear */
35082 #endif
35083 #if PY_VERSION_HEX >= 0x02010000
35084 0, /* tp_richcompare */
35085 0, /* tp_weaklistoffset */
35086 #endif
35087 #if PY_VERSION_HEX >= 0x02020000
35088 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
35089 #endif
35090 #if PY_VERSION_HEX >= 0x02030000
35091 0, /* tp_del */
35092 #endif
35093 #ifdef COUNT_ALLOCS
35094 0,0,0,0 /* tp_alloc -> tp_next */
35095 #endif
35096 };
35097 #if !defined(__cplusplus)
35098 varlink_type = tmp;
35099 type_init = 1;
35100 }
35101 #endif
35102 return &varlink_type;
35103 }
35104
35105 /* Create a variable linking object for use later */
35106 SWIGINTERN PyObject *
35107 SWIG_Python_newvarlink(void) {
35108 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
35109 if (result) {
35110 result->vars = 0;
35111 }
35112 return ((PyObject*) result);
35113 }
35114
35115 SWIGINTERN void
35116 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
35117 swig_varlinkobject *v = (swig_varlinkobject *) p;
35118 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
35119 if (gv) {
35120 size_t size = strlen(name)+1;
35121 gv->name = (char *)malloc(size);
35122 if (gv->name) {
35123 strncpy(gv->name,name,size);
35124 gv->get_attr = get_attr;
35125 gv->set_attr = set_attr;
35126 gv->next = v->vars;
35127 }
35128 }
35129 v->vars = gv;
35130 }
35131
35132 /* -----------------------------------------------------------------------------
35133 * constants/methods manipulation
35134 * ----------------------------------------------------------------------------- */
35135
35136 /* Install Constants */
35137 SWIGINTERN void
35138 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
35139 PyObject *obj = 0;
35140 size_t i;
35141 for (i = 0; constants[i].type; ++i) {
35142 switch(constants[i].type) {
35143 case SWIG_PY_INT:
35144 obj = PyInt_FromLong(constants[i].lvalue);
35145 break;
35146 case SWIG_PY_FLOAT:
35147 obj = PyFloat_FromDouble(constants[i].dvalue);
35148 break;
35149 case SWIG_PY_STRING:
35150 if (constants[i].pvalue) {
35151 obj = PyString_FromString((char *) constants[i].pvalue);
35152 } else {
35153 Py_INCREF(Py_None);
35154 obj = Py_None;
35155 }
35156 break;
35157 case SWIG_PY_POINTER:
35158 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
35159 break;
35160 case SWIG_PY_BINARY:
35161 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
35162 break;
35163 default:
35164 obj = 0;
35165 break;
35166 }
35167 if (obj) {
35168 PyDict_SetItemString(d,constants[i].name,obj);
35169 Py_DECREF(obj);
35170 }
35171 }
35172 }
35173
35174 /* -----------------------------------------------------------------------------*/
35175 /* Fix SwigMethods to carry the callback ptrs when needed */
35176 /* -----------------------------------------------------------------------------*/
35177
35178 SWIGINTERN void
35179 SWIG_Python_FixMethods(PyMethodDef *methods,
35180 swig_const_info *const_table,
35181 swig_type_info **types,
35182 swig_type_info **types_initial) {
35183 size_t i;
35184 for (i = 0; methods[i].ml_name; ++i) {
35185 char *c = methods[i].ml_doc;
35186 if (c && (c = strstr(c, "swig_ptr: "))) {
35187 int j;
35188 swig_const_info *ci = 0;
35189 char *name = c + 10;
35190 for (j = 0; const_table[j].type; ++j) {
35191 if (strncmp(const_table[j].name, name,
35192 strlen(const_table[j].name)) == 0) {
35193 ci = &(const_table[j]);
35194 break;
35195 }
35196 }
35197 if (ci) {
35198 size_t shift = (ci->ptype) - types;
35199 swig_type_info *ty = types_initial[shift];
35200 size_t ldoc = (c - methods[i].ml_doc);
35201 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
35202 char *ndoc = (char*)malloc(ldoc + lptr + 10);
35203 if (ndoc) {
35204 char *buff = ndoc;
35205 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
35206 if (ptr) {
35207 strncpy(buff, methods[i].ml_doc, ldoc);
35208 buff += ldoc;
35209 strncpy(buff, "swig_ptr: ", 10);
35210 buff += 10;
35211 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
35212 methods[i].ml_doc = ndoc;
35213 }
35214 }
35215 }
35216 }
35217 }
35218 }
35219
35220 /* -----------------------------------------------------------------------------*
35221 * Initialize type list
35222 * -----------------------------------------------------------------------------*/
35223
35224 #ifdef __cplusplus
35225 }
35226 #endif
35227
35228 /* -----------------------------------------------------------------------------*
35229 * Partial Init method
35230 * -----------------------------------------------------------------------------*/
35231
35232 #ifdef __cplusplus
35233 extern "C"
35234 #endif
35235 SWIGEXPORT void SWIG_init(void) {
35236 static PyObject *SWIG_globals = 0;
35237 PyObject *m, *d;
35238 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
35239
35240 /* Fix SwigMethods to carry the callback ptrs when needed */
35241 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
35242
35243 m = Py_InitModule((char *) SWIG_name, SwigMethods);
35244 d = PyModule_GetDict(m);
35245
35246 SWIG_InitializeModule(0);
35247 SWIG_InstallConstants(d,swig_const_table);
35248
35249 {
35250 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_OEM_FIXED_FONT)));
35251 }
35252 {
35253 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_FIXED_FONT)));
35254 }
35255 {
35256 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_VAR_FONT)));
35257 }
35258 {
35259 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FONT)));
35260 }
35261 {
35262 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEVICE_DEFAULT_FONT)));
35263 }
35264 {
35265 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_PALETTE)));
35266 }
35267 {
35268 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FIXED_FONT)));
35269 }
35270 {
35271 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_GUI_FONT)));
35272 }
35273 {
35274 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int(static_cast<int >(wxSYS_ICONTITLE_FONT)));
35275 }
35276 {
35277 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_SCROLLBAR)));
35278 }
35279 {
35280 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BACKGROUND)));
35281 }
35282 {
35283 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_DESKTOP)));
35284 }
35285 {
35286 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVECAPTION)));
35287 }
35288 {
35289 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTION)));
35290 }
35291 {
35292 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENU)));
35293 }
35294 {
35295 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOW)));
35296 }
35297 {
35298 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWFRAME)));
35299 }
35300 {
35301 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUTEXT)));
35302 }
35303 {
35304 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWTEXT)));
35305 }
35306 {
35307 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_CAPTIONTEXT)));
35308 }
35309 {
35310 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVEBORDER)));
35311 }
35312 {
35313 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVEBORDER)));
35314 }
35315 {
35316 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_APPWORKSPACE)));
35317 }
35318 {
35319 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHT)));
35320 }
35321 {
35322 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHTTEXT)));
35323 }
35324 {
35325 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNFACE)));
35326 }
35327 {
35328 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DFACE)));
35329 }
35330 {
35331 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNSHADOW)));
35332 }
35333 {
35334 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DSHADOW)));
35335 }
35336 {
35337 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRAYTEXT)));
35338 }
35339 {
35340 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNTEXT)));
35341 }
35342 {
35343 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTIONTEXT)));
35344 }
35345 {
35346 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHIGHLIGHT)));
35347 }
35348 {
35349 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHILIGHT)));
35350 }
35351 {
35352 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHIGHLIGHT)));
35353 }
35354 {
35355 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHILIGHT)));
35356 }
35357 {
35358 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DDKSHADOW)));
35359 }
35360 {
35361 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DLIGHT)));
35362 }
35363 {
35364 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOTEXT)));
35365 }
35366 {
35367 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOBK)));
35368 }
35369 {
35370 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_LISTBOX)));
35371 }
35372 {
35373 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HOTLIGHT)));
35374 }
35375 {
35376 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTACTIVECAPTION)));
35377 }
35378 {
35379 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTINACTIVECAPTION)));
35380 }
35381 {
35382 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUHILIGHT)));
35383 }
35384 {
35385 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUBAR)));
35386 }
35387 {
35388 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MAX)));
35389 }
35390 {
35391 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_MOUSE_BUTTONS)));
35392 }
35393 {
35394 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int(static_cast<int >(wxSYS_BORDER_X)));
35395 }
35396 {
35397 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int(static_cast<int >(wxSYS_BORDER_Y)));
35398 }
35399 {
35400 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_X)));
35401 }
35402 {
35403 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_Y)));
35404 }
35405 {
35406 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_X)));
35407 }
35408 {
35409 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_Y)));
35410 }
35411 {
35412 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int(static_cast<int >(wxSYS_DRAG_X)));
35413 }
35414 {
35415 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int(static_cast<int >(wxSYS_DRAG_Y)));
35416 }
35417 {
35418 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int(static_cast<int >(wxSYS_EDGE_X)));
35419 }
35420 {
35421 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int(static_cast<int >(wxSYS_EDGE_Y)));
35422 }
35423 {
35424 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_X)));
35425 }
35426 {
35427 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_Y)));
35428 }
35429 {
35430 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int(static_cast<int >(wxSYS_HTHUMB_X)));
35431 }
35432 {
35433 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int(static_cast<int >(wxSYS_ICON_X)));
35434 }
35435 {
35436 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int(static_cast<int >(wxSYS_ICON_Y)));
35437 }
35438 {
35439 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_X)));
35440 }
35441 {
35442 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_Y)));
35443 }
35444 {
35445 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_X)));
35446 }
35447 {
35448 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_Y)));
35449 }
35450 {
35451 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_X)));
35452 }
35453 {
35454 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_Y)));
35455 }
35456 {
35457 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_X)));
35458 }
35459 {
35460 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_Y)));
35461 }
35462 {
35463 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_X)));
35464 }
35465 {
35466 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_Y)));
35467 }
35468 {
35469 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_Y)));
35470 }
35471 {
35472 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_X)));
35473 }
35474 {
35475 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_X)));
35476 }
35477 {
35478 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_Y)));
35479 }
35480 {
35481 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int(static_cast<int >(wxSYS_VTHUMB_Y)));
35482 }
35483 {
35484 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int(static_cast<int >(wxSYS_CAPTION_Y)));
35485 }
35486 {
35487 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int(static_cast<int >(wxSYS_MENU_Y)));
35488 }
35489 {
35490 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_NETWORK_PRESENT)));
35491 }
35492 {
35493 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_PENWINDOWS_PRESENT)));
35494 }
35495 {
35496 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int(static_cast<int >(wxSYS_SHOW_SOUNDS)));
35497 }
35498 {
35499 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_SWAP_BUTTONS)));
35500 }
35501 {
35502 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int(static_cast<int >(wxSYS_CAN_DRAW_FRAME_DECORATIONS)));
35503 }
35504 {
35505 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int(static_cast<int >(wxSYS_CAN_ICONIZE_FRAME)));
35506 }
35507 {
35508 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_NONE)));
35509 }
35510 {
35511 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_TINY)));
35512 }
35513 {
35514 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_PDA)));
35515 }
35516 {
35517 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_SMALL)));
35518 }
35519 {
35520 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_DESKTOP)));
35521 }
35522 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
35523 SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set);
35524 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
35525 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
35526 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
35527 {
35528 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int(static_cast<int >(wxSHUTDOWN_POWEROFF)));
35529 }
35530 {
35531 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int(static_cast<int >(wxSHUTDOWN_REBOOT)));
35532 }
35533 {
35534 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int(static_cast<int >(wxTIMER_CONTINUOUS)));
35535 }
35536 {
35537 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int(static_cast<int >(wxTIMER_ONE_SHOT)));
35538 }
35539 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
35540
35541 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
35542
35543 {
35544 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int(static_cast<int >(wxLOG_FatalError)));
35545 }
35546 {
35547 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int(static_cast<int >(wxLOG_Error)));
35548 }
35549 {
35550 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int(static_cast<int >(wxLOG_Warning)));
35551 }
35552 {
35553 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int(static_cast<int >(wxLOG_Message)));
35554 }
35555 {
35556 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int(static_cast<int >(wxLOG_Status)));
35557 }
35558 {
35559 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int(static_cast<int >(wxLOG_Info)));
35560 }
35561 {
35562 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int(static_cast<int >(wxLOG_Debug)));
35563 }
35564 {
35565 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int(static_cast<int >(wxLOG_Trace)));
35566 }
35567 {
35568 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int(static_cast<int >(wxLOG_Progress)));
35569 }
35570 {
35571 PyDict_SetItemString(d,"LOG_User", SWIG_From_int(static_cast<int >(wxLOG_User)));
35572 }
35573 {
35574 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int(static_cast<int >(wxLOG_Max)));
35575 }
35576 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
35577 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
35578 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
35579 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
35580 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
35581 {
35582 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int(static_cast<int >(0x0001)));
35583 }
35584 {
35585 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int(static_cast<int >(0x0002)));
35586 }
35587 {
35588 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int(static_cast<int >(0x0004)));
35589 }
35590 {
35591 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int(static_cast<int >(0x0008)));
35592 }
35593 {
35594 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int(static_cast<int >(0x0100)));
35595 }
35596 {
35597 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int(static_cast<int >(wxPROCESS_DEFAULT)));
35598 }
35599 {
35600 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int(static_cast<int >(wxPROCESS_REDIRECT)));
35601 }
35602 {
35603 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int(static_cast<int >(wxKILL_OK)));
35604 }
35605 {
35606 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int(static_cast<int >(wxKILL_BAD_SIGNAL)));
35607 }
35608 {
35609 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int(static_cast<int >(wxKILL_ACCESS_DENIED)));
35610 }
35611 {
35612 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int(static_cast<int >(wxKILL_NO_PROCESS)));
35613 }
35614 {
35615 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int(static_cast<int >(wxKILL_ERROR)));
35616 }
35617 {
35618 PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int(static_cast<int >(wxKILL_NOCHILDREN)));
35619 }
35620 {
35621 PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int(static_cast<int >(wxKILL_CHILDREN)));
35622 }
35623 {
35624 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int(static_cast<int >(wxSIGNONE)));
35625 }
35626 {
35627 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int(static_cast<int >(wxSIGHUP)));
35628 }
35629 {
35630 PyDict_SetItemString(d,"SIGINT", SWIG_From_int(static_cast<int >(wxSIGINT)));
35631 }
35632 {
35633 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int(static_cast<int >(wxSIGQUIT)));
35634 }
35635 {
35636 PyDict_SetItemString(d,"SIGILL", SWIG_From_int(static_cast<int >(wxSIGILL)));
35637 }
35638 {
35639 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int(static_cast<int >(wxSIGTRAP)));
35640 }
35641 {
35642 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int(static_cast<int >(wxSIGABRT)));
35643 }
35644 {
35645 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int(static_cast<int >(wxSIGIOT)));
35646 }
35647 {
35648 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int(static_cast<int >(wxSIGEMT)));
35649 }
35650 {
35651 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int(static_cast<int >(wxSIGFPE)));
35652 }
35653 {
35654 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int(static_cast<int >(wxSIGKILL)));
35655 }
35656 {
35657 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int(static_cast<int >(wxSIGBUS)));
35658 }
35659 {
35660 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int(static_cast<int >(wxSIGSEGV)));
35661 }
35662 {
35663 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int(static_cast<int >(wxSIGSYS)));
35664 }
35665 {
35666 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int(static_cast<int >(wxSIGPIPE)));
35667 }
35668 {
35669 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int(static_cast<int >(wxSIGALRM)));
35670 }
35671 {
35672 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int(static_cast<int >(wxSIGTERM)));
35673 }
35674 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
35675 {
35676 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int(static_cast<int >(wxEXEC_ASYNC)));
35677 }
35678 {
35679 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int(static_cast<int >(wxEXEC_SYNC)));
35680 }
35681 {
35682 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int(static_cast<int >(wxEXEC_NOHIDE)));
35683 }
35684 {
35685 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int(static_cast<int >(wxEXEC_MAKE_GROUP_LEADER)));
35686 }
35687 {
35688 PyDict_SetItemString(d,"EXEC_NODISABLE", SWIG_From_int(static_cast<int >(wxEXEC_NODISABLE)));
35689 }
35690
35691 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
35692
35693 {
35694 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int(static_cast<int >(wxJOYSTICK1)));
35695 }
35696 {
35697 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int(static_cast<int >(wxJOYSTICK2)));
35698 }
35699 {
35700 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int(static_cast<int >(wxJOY_BUTTON_ANY)));
35701 }
35702 {
35703 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int(static_cast<int >(wxJOY_BUTTON1)));
35704 }
35705 {
35706 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int(static_cast<int >(wxJOY_BUTTON2)));
35707 }
35708 {
35709 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int(static_cast<int >(wxJOY_BUTTON3)));
35710 }
35711 {
35712 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int(static_cast<int >(wxJOY_BUTTON4)));
35713 }
35714 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
35715 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
35716 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
35717 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
35718 {
35719 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int(static_cast<int >(wxSOUND_SYNC)));
35720 }
35721 {
35722 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int(static_cast<int >(wxSOUND_ASYNC)));
35723 }
35724 {
35725 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int(static_cast<int >(wxSOUND_LOOP)));
35726 }
35727 {
35728 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int(static_cast<int >(wxMAILCAP_STANDARD)));
35729 }
35730 {
35731 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int(static_cast<int >(wxMAILCAP_NETSCAPE)));
35732 }
35733 {
35734 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int(static_cast<int >(wxMAILCAP_KDE)));
35735 }
35736 {
35737 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int(static_cast<int >(wxMAILCAP_GNOME)));
35738 }
35739 {
35740 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int(static_cast<int >(wxMAILCAP_ALL)));
35741 }
35742 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
35743 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
35744 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
35745 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
35746 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
35747 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
35748 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
35749 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
35750 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
35751 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
35752 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
35753 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
35754 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
35755 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
35756 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
35757 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
35758 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
35759 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
35760 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
35761 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
35762 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
35763 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
35764 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
35765 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE",_wrap_ART_FILE_SAVE_get, _wrap_ART_FILE_SAVE_set);
35766 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE_AS",_wrap_ART_FILE_SAVE_AS_get, _wrap_ART_FILE_SAVE_AS_set);
35767 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
35768 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
35769 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
35770 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
35771 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
35772 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
35773 SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set);
35774 SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set);
35775 SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set);
35776 SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set);
35777 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
35778 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set);
35779 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
35780 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
35781 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
35782 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
35783 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
35784 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
35785 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
35786 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
35787 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
35788 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
35789 SWIG_addvarlink(SWIG_globals,(char*)"ART_COPY",_wrap_ART_COPY_get, _wrap_ART_COPY_set);
35790 SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set);
35791 SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set);
35792 SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set);
35793 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW",_wrap_ART_NEW_get, _wrap_ART_NEW_set);
35794 SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set);
35795 SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set);
35796 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set);
35797 SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND",_wrap_ART_FIND_get, _wrap_ART_FIND_set);
35798 SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND_AND_REPLACE",_wrap_ART_FIND_AND_REPLACE_get, _wrap_ART_FIND_AND_REPLACE_set);
35799
35800 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
35801
35802 {
35803 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_LOCAL_FILE)));
35804 }
35805 {
35806 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_GLOBAL_FILE)));
35807 }
35808 {
35809 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int(static_cast<int >(wxCONFIG_USE_RELATIVE_PATH)));
35810 }
35811 {
35812 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int(static_cast<int >(wxCONFIG_USE_NO_ESCAPE_CHARACTERS)));
35813 }
35814 {
35815 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Unknown)));
35816 }
35817 {
35818 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int(static_cast<int >(wxConfigBase::Type_String)));
35819 }
35820 {
35821 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Boolean)));
35822 }
35823 {
35824 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Integer)));
35825 }
35826 {
35827 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Float)));
35828 }
35829 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTimeFormat",_wrap_DefaultDateTimeFormat_get, _wrap_DefaultDateTimeFormat_set);
35830 SWIG_addvarlink(SWIG_globals,(char*)"DefaultTimeSpanFormat",_wrap_DefaultTimeSpanFormat_get, _wrap_DefaultTimeSpanFormat_set);
35831 {
35832 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int(static_cast<int >(wxDateTime::Local)));
35833 }
35834 {
35835 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int(static_cast<int >(wxDateTime::GMT_12)));
35836 }
35837 {
35838 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int(static_cast<int >(wxDateTime::GMT_11)));
35839 }
35840 {
35841 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int(static_cast<int >(wxDateTime::GMT_10)));
35842 }
35843 {
35844 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int(static_cast<int >(wxDateTime::GMT_9)));
35845 }
35846 {
35847 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int(static_cast<int >(wxDateTime::GMT_8)));
35848 }
35849 {
35850 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int(static_cast<int >(wxDateTime::GMT_7)));
35851 }
35852 {
35853 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int(static_cast<int >(wxDateTime::GMT_6)));
35854 }
35855 {
35856 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int(static_cast<int >(wxDateTime::GMT_5)));
35857 }
35858 {
35859 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int(static_cast<int >(wxDateTime::GMT_4)));
35860 }
35861 {
35862 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int(static_cast<int >(wxDateTime::GMT_3)));
35863 }
35864 {
35865 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int(static_cast<int >(wxDateTime::GMT_2)));
35866 }
35867 {
35868 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int(static_cast<int >(wxDateTime::GMT_1)));
35869 }
35870 {
35871 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int(static_cast<int >(wxDateTime::GMT0)));
35872 }
35873 {
35874 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int(static_cast<int >(wxDateTime::GMT1)));
35875 }
35876 {
35877 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int(static_cast<int >(wxDateTime::GMT2)));
35878 }
35879 {
35880 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int(static_cast<int >(wxDateTime::GMT3)));
35881 }
35882 {
35883 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int(static_cast<int >(wxDateTime::GMT4)));
35884 }
35885 {
35886 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int(static_cast<int >(wxDateTime::GMT5)));
35887 }
35888 {
35889 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int(static_cast<int >(wxDateTime::GMT6)));
35890 }
35891 {
35892 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int(static_cast<int >(wxDateTime::GMT7)));
35893 }
35894 {
35895 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int(static_cast<int >(wxDateTime::GMT8)));
35896 }
35897 {
35898 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int(static_cast<int >(wxDateTime::GMT9)));
35899 }
35900 {
35901 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int(static_cast<int >(wxDateTime::GMT10)));
35902 }
35903 {
35904 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int(static_cast<int >(wxDateTime::GMT11)));
35905 }
35906 {
35907 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int(static_cast<int >(wxDateTime::GMT12)));
35908 }
35909 {
35910 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int(static_cast<int >(wxDateTime::WET)));
35911 }
35912 {
35913 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int(static_cast<int >(wxDateTime::WEST)));
35914 }
35915 {
35916 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int(static_cast<int >(wxDateTime::CET)));
35917 }
35918 {
35919 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int(static_cast<int >(wxDateTime::CEST)));
35920 }
35921 {
35922 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int(static_cast<int >(wxDateTime::EET)));
35923 }
35924 {
35925 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int(static_cast<int >(wxDateTime::EEST)));
35926 }
35927 {
35928 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int(static_cast<int >(wxDateTime::MSK)));
35929 }
35930 {
35931 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int(static_cast<int >(wxDateTime::MSD)));
35932 }
35933 {
35934 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int(static_cast<int >(wxDateTime::AST)));
35935 }
35936 {
35937 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int(static_cast<int >(wxDateTime::ADT)));
35938 }
35939 {
35940 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int(static_cast<int >(wxDateTime::EST)));
35941 }
35942 {
35943 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int(static_cast<int >(wxDateTime::EDT)));
35944 }
35945 {
35946 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int(static_cast<int >(wxDateTime::CST)));
35947 }
35948 {
35949 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int(static_cast<int >(wxDateTime::CDT)));
35950 }
35951 {
35952 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int(static_cast<int >(wxDateTime::MST)));
35953 }
35954 {
35955 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int(static_cast<int >(wxDateTime::MDT)));
35956 }
35957 {
35958 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int(static_cast<int >(wxDateTime::PST)));
35959 }
35960 {
35961 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int(static_cast<int >(wxDateTime::PDT)));
35962 }
35963 {
35964 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int(static_cast<int >(wxDateTime::HST)));
35965 }
35966 {
35967 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int(static_cast<int >(wxDateTime::AKST)));
35968 }
35969 {
35970 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int(static_cast<int >(wxDateTime::AKDT)));
35971 }
35972 {
35973 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int(static_cast<int >(wxDateTime::A_WST)));
35974 }
35975 {
35976 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int(static_cast<int >(wxDateTime::A_CST)));
35977 }
35978 {
35979 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int(static_cast<int >(wxDateTime::A_EST)));
35980 }
35981 {
35982 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int(static_cast<int >(wxDateTime::A_ESST)));
35983 }
35984 {
35985 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int(static_cast<int >(wxDateTime::UTC)));
35986 }
35987 {
35988 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int(static_cast<int >(wxDateTime::Gregorian)));
35989 }
35990 {
35991 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int(static_cast<int >(wxDateTime::Julian)));
35992 }
35993 {
35994 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Unknown)));
35995 }
35996 {
35997 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Standard)));
35998 }
35999 {
36000 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Alaska)));
36001 }
36002 {
36003 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Albania)));
36004 }
36005 {
36006 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria)));
36007 }
36008 {
36009 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Brixen)));
36010 }
36011 {
36012 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Salzburg)));
36013 }
36014 {
36015 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Tyrol)));
36016 }
36017 {
36018 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Carinthia)));
36019 }
36020 {
36021 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Styria)));
36022 }
36023 {
36024 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Belgium)));
36025 }
36026 {
36027 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria)));
36028 }
36029 {
36030 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_1)));
36031 }
36032 {
36033 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_2)));
36034 }
36035 {
36036 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_3)));
36037 }
36038 {
36039 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Canada)));
36040 }
36041 {
36042 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China)));
36043 }
36044 {
36045 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_1)));
36046 }
36047 {
36048 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_2)));
36049 }
36050 {
36051 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Czechoslovakia)));
36052 }
36053 {
36054 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Denmark)));
36055 }
36056 {
36057 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Egypt)));
36058 }
36059 {
36060 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Estonia)));
36061 }
36062 {
36063 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Finland)));
36064 }
36065 {
36066 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France)));
36067 }
36068 {
36069 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Alsace)));
36070 }
36071 {
36072 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Lorraine)));
36073 }
36074 {
36075 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Strasbourg)));
36076 }
36077 {
36078 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany)));
36079 }
36080 {
36081 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Catholic)));
36082 }
36083 {
36084 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Prussia)));
36085 }
36086 {
36087 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Protestant)));
36088 }
36089 {
36090 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_GreatBritain)));
36091 }
36092 {
36093 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Greece)));
36094 }
36095 {
36096 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Hungary)));
36097 }
36098 {
36099 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Ireland)));
36100 }
36101 {
36102 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Italy)));
36103 }
36104 {
36105 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan)));
36106 }
36107 {
36108 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_1)));
36109 }
36110 {
36111 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_2)));
36112 }
36113 {
36114 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_3)));
36115 }
36116 {
36117 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Latvia)));
36118 }
36119 {
36120 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Lithuania)));
36121 }
36122 {
36123 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Luxemburg)));
36124 }
36125 {
36126 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands)));
36127 }
36128 {
36129 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Groningen)));
36130 }
36131 {
36132 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Gelderland)));
36133 }
36134 {
36135 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Utrecht)));
36136 }
36137 {
36138 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Friesland)));
36139 }
36140 {
36141 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Norway)));
36142 }
36143 {
36144 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Poland)));
36145 }
36146 {
36147 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Portugal)));
36148 }
36149 {
36150 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Romania)));
36151 }
36152 {
36153 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Russia)));
36154 }
36155 {
36156 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Scotland)));
36157 }
36158 {
36159 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Spain)));
36160 }
36161 {
36162 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Sweden)));
36163 }
36164 {
36165 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland)));
36166 }
36167 {
36168 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Catholic)));
36169 }
36170 {
36171 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Protestant)));
36172 }
36173 {
36174 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Turkey)));
36175 }
36176 {
36177 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int(static_cast<int >(wxDateTime::Gr_USA)));
36178 }
36179 {
36180 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Wales)));
36181 }
36182 {
36183 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Yugoslavia)));
36184 }
36185 {
36186 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Country_Unknown)));
36187 }
36188 {
36189 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int(static_cast<int >(wxDateTime::Country_Default)));
36190 }
36191 {
36192 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_Start)));
36193 }
36194 {
36195 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int(static_cast<int >(wxDateTime::Country_EEC)));
36196 }
36197 {
36198 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int(static_cast<int >(wxDateTime::France)));
36199 }
36200 {
36201 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Germany)));
36202 }
36203 {
36204 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int(static_cast<int >(wxDateTime::UK)));
36205 }
36206 {
36207 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_End)));
36208 }
36209 {
36210 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Russia)));
36211 }
36212 {
36213 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int(static_cast<int >(wxDateTime::USA)));
36214 }
36215 {
36216 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int(static_cast<int >(wxDateTime::Jan)));
36217 }
36218 {
36219 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int(static_cast<int >(wxDateTime::Feb)));
36220 }
36221 {
36222 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int(static_cast<int >(wxDateTime::Mar)));
36223 }
36224 {
36225 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int(static_cast<int >(wxDateTime::Apr)));
36226 }
36227 {
36228 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int(static_cast<int >(wxDateTime::May)));
36229 }
36230 {
36231 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int(static_cast<int >(wxDateTime::Jun)));
36232 }
36233 {
36234 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int(static_cast<int >(wxDateTime::Jul)));
36235 }
36236 {
36237 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int(static_cast<int >(wxDateTime::Aug)));
36238 }
36239 {
36240 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int(static_cast<int >(wxDateTime::Sep)));
36241 }
36242 {
36243 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int(static_cast<int >(wxDateTime::Oct)));
36244 }
36245 {
36246 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int(static_cast<int >(wxDateTime::Nov)));
36247 }
36248 {
36249 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int(static_cast<int >(wxDateTime::Dec)));
36250 }
36251 {
36252 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Month)));
36253 }
36254 {
36255 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int(static_cast<int >(wxDateTime::Sun)));
36256 }
36257 {
36258 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int(static_cast<int >(wxDateTime::Mon)));
36259 }
36260 {
36261 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int(static_cast<int >(wxDateTime::Tue)));
36262 }
36263 {
36264 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int(static_cast<int >(wxDateTime::Wed)));
36265 }
36266 {
36267 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int(static_cast<int >(wxDateTime::Thu)));
36268 }
36269 {
36270 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int(static_cast<int >(wxDateTime::Fri)));
36271 }
36272 {
36273 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int(static_cast<int >(wxDateTime::Sat)));
36274 }
36275 {
36276 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int(static_cast<int >(wxDateTime::Inv_WeekDay)));
36277 }
36278 {
36279 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Year)));
36280 }
36281 {
36282 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int(static_cast<int >(wxDateTime::Name_Full)));
36283 }
36284 {
36285 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int(static_cast<int >(wxDateTime::Name_Abbr)));
36286 }
36287 {
36288 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int(static_cast<int >(wxDateTime::Default_First)));
36289 }
36290 {
36291 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int(static_cast<int >(wxDateTime::Monday_First)));
36292 }
36293 {
36294 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int(static_cast<int >(wxDateTime::Sunday_First)));
36295 }
36296 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
36297 {
36298 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int(static_cast<int >(wxDF_INVALID)));
36299 }
36300 {
36301 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int(static_cast<int >(wxDF_TEXT)));
36302 }
36303 {
36304 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int(static_cast<int >(wxDF_BITMAP)));
36305 }
36306 {
36307 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int(static_cast<int >(wxDF_METAFILE)));
36308 }
36309 {
36310 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int(static_cast<int >(wxDF_SYLK)));
36311 }
36312 {
36313 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int(static_cast<int >(wxDF_DIF)));
36314 }
36315 {
36316 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int(static_cast<int >(wxDF_TIFF)));
36317 }
36318 {
36319 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int(static_cast<int >(wxDF_OEMTEXT)));
36320 }
36321 {
36322 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int(static_cast<int >(wxDF_DIB)));
36323 }
36324 {
36325 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int(static_cast<int >(wxDF_PALETTE)));
36326 }
36327 {
36328 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int(static_cast<int >(wxDF_PENDATA)));
36329 }
36330 {
36331 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int(static_cast<int >(wxDF_RIFF)));
36332 }
36333 {
36334 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int(static_cast<int >(wxDF_WAVE)));
36335 }
36336 {
36337 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int(static_cast<int >(wxDF_UNICODETEXT)));
36338 }
36339 {
36340 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int(static_cast<int >(wxDF_ENHMETAFILE)));
36341 }
36342 {
36343 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int(static_cast<int >(wxDF_FILENAME)));
36344 }
36345 {
36346 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int(static_cast<int >(wxDF_LOCALE)));
36347 }
36348 {
36349 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int(static_cast<int >(wxDF_PRIVATE)));
36350 }
36351 {
36352 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int(static_cast<int >(wxDF_HTML)));
36353 }
36354 {
36355 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int(static_cast<int >(wxDF_MAX)));
36356 }
36357 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
36358 {
36359 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int(static_cast<int >(wxDataObject::Get)));
36360 }
36361 {
36362 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int(static_cast<int >(wxDataObject::Set)));
36363 }
36364 {
36365 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int(static_cast<int >(wxDataObject::Both)));
36366 }
36367 {
36368 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int(static_cast<int >(wxDrag_CopyOnly)));
36369 }
36370 {
36371 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int(static_cast<int >(wxDrag_AllowMove)));
36372 }
36373 {
36374 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int(static_cast<int >(wxDrag_DefaultMove)));
36375 }
36376 {
36377 PyDict_SetItemString(d,"DragError", SWIG_From_int(static_cast<int >(wxDragError)));
36378 }
36379 {
36380 PyDict_SetItemString(d,"DragNone", SWIG_From_int(static_cast<int >(wxDragNone)));
36381 }
36382 {
36383 PyDict_SetItemString(d,"DragCopy", SWIG_From_int(static_cast<int >(wxDragCopy)));
36384 }
36385 {
36386 PyDict_SetItemString(d,"DragMove", SWIG_From_int(static_cast<int >(wxDragMove)));
36387 }
36388 {
36389 PyDict_SetItemString(d,"DragLink", SWIG_From_int(static_cast<int >(wxDragLink)));
36390 }
36391 {
36392 PyDict_SetItemString(d,"DragCancel", SWIG_From_int(static_cast<int >(wxDragCancel)));
36393 }
36394
36395 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
36396 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
36397 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
36398 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
36399
36400 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
36401 }
36402