]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_misc_wrap.cpp
13086b69a2e92f89d6dc286fe7c834bf5bdbba3f
[wxWidgets.git] / wxPython / src / msw / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.27
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_VERSION 0x010327
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /***********************************************************************
31 *
32 * This section contains generic SWIG labels for method/variable
33 * declarations/attributes, and other compiler dependent labels.
34 *
35 ************************************************************************/
36
37 /* template workaround for compilers that cannot correctly implement the C++ standard */
38 #ifndef SWIGTEMPLATEDISAMBIGUATOR
39 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # else
42 # define SWIGTEMPLATEDISAMBIGUATOR
43 # endif
44 #endif
45
46 /* inline attribute */
47 #ifndef SWIGINLINE
48 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
49 # define SWIGINLINE inline
50 # else
51 # define SWIGINLINE
52 # endif
53 #endif
54
55 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 #ifndef SWIGUNUSED
57 # if defined(__GNUC__) || defined(__ICC)
58 # define SWIGUNUSED __attribute__ ((unused))
59 # else
60 # define SWIGUNUSED
61 # endif
62 #endif
63
64 /* internal SWIG method */
65 #ifndef SWIGINTERN
66 # define SWIGINTERN static SWIGUNUSED
67 #endif
68
69 /* internal inline SWIG method */
70 #ifndef SWIGINTERNINLINE
71 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
72 #endif
73
74 /* exporting methods for Windows DLLs */
75 #ifndef SWIGEXPORT
76 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
77 # if defined(STATIC_LINKED)
78 # define SWIGEXPORT
79 # else
80 # define SWIGEXPORT __declspec(dllexport)
81 # endif
82 # else
83 # define SWIGEXPORT
84 # endif
85 #endif
86
87 /* calling conventions for Windows */
88 #ifndef SWIGSTDCALL
89 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90 # define SWIGSTDCALL __stdcall
91 # else
92 # define SWIGSTDCALL
93 # endif
94 #endif
95
96
97
98 #include <Python.h>
99
100 /***********************************************************************
101 * swigrun.swg
102 *
103 * This file contains generic CAPI SWIG runtime support for pointer
104 * type checking.
105 *
106 ************************************************************************/
107
108 /* This should only be incremented when either the layout of swig_type_info changes,
109 or for whatever reason, the runtime changes incompatibly */
110 #define SWIG_RUNTIME_VERSION "2"
111
112 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
113 #ifdef SWIG_TYPE_TABLE
114 # define SWIG_QUOTE_STRING(x) #x
115 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
116 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
117 #else
118 # define SWIG_TYPE_TABLE_NAME
119 #endif
120
121 /*
122 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
123 creating a static or dynamic library from the swig runtime code.
124 In 99.9% of the cases, swig just needs to declare them as 'static'.
125
126 But only do this if is strictly necessary, ie, if you have problems
127 with your compiler or so.
128 */
129
130 #ifndef SWIGRUNTIME
131 # define SWIGRUNTIME SWIGINTERN
132 #endif
133
134 #ifndef SWIGRUNTIMEINLINE
135 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
136 #endif
137
138 #include <string.h>
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 typedef void *(*swig_converter_func)(void *);
145 typedef struct swig_type_info *(*swig_dycast_func)(void **);
146
147 /* Structure to store inforomation on one type */
148 typedef struct swig_type_info {
149 const char *name; /* mangled name of this type */
150 const char *str; /* human readable name of this type */
151 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
152 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
153 void *clientdata; /* language specific type data */
154 } swig_type_info;
155
156 /* Structure to store a type and conversion function used for casting */
157 typedef struct swig_cast_info {
158 swig_type_info *type; /* pointer to type that is equivalent to this type */
159 swig_converter_func converter; /* function to cast the void pointers */
160 struct swig_cast_info *next; /* pointer to next cast in linked list */
161 struct swig_cast_info *prev; /* pointer to the previous cast */
162 } swig_cast_info;
163
164 /* Structure used to store module information
165 * Each module generates one structure like this, and the runtime collects
166 * all of these structures and stores them in a circularly linked list.*/
167 typedef struct swig_module_info {
168 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
169 size_t size; /* Number of types in this module */
170 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
171 swig_type_info **type_initial; /* Array of initially generated type structures */
172 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
173 void *clientdata; /* Language specific module data */
174 } swig_module_info;
175
176
177 /*
178 Compare two type names skipping the space characters, therefore
179 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180
181 Return 0 when the two name types are equivalent, as in
182 strncmp, but skipping ' '.
183 */
184 SWIGRUNTIME int
185 SWIG_TypeNameComp(const char *f1, const char *l1,
186 const char *f2, const char *l2) {
187 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
188 while ((*f1 == ' ') && (f1 != l1)) ++f1;
189 while ((*f2 == ' ') && (f2 != l2)) ++f2;
190 if (*f1 != *f2) return (int)(*f1 - *f2);
191 }
192 return (l1 - f1) - (l2 - f2);
193 }
194
195 /*
196 Check type equivalence in a name list like <name1>|<name2>|...
197 Return 0 if not equal, 1 if equal
198 */
199 SWIGRUNTIME int
200 SWIG_TypeEquiv(const char *nb, const char *tb) {
201 int equiv = 0;
202 const char* te = tb + strlen(tb);
203 const char* ne = nb;
204 while (!equiv && *ne) {
205 for (nb = ne; *ne; ++ne) {
206 if (*ne == '|') break;
207 }
208 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
209 if (*ne) ++ne;
210 }
211 return equiv;
212 }
213
214 /*
215 Check type equivalence in a name list like <name1>|<name2>|...
216 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
217 */
218 SWIGRUNTIME int
219 SWIG_TypeCompare(const char *nb, const char *tb) {
220 int equiv = 0;
221 const char* te = tb + strlen(tb);
222 const char* ne = nb;
223 while (!equiv && *ne) {
224 for (nb = ne; *ne; ++ne) {
225 if (*ne == '|') break;
226 }
227 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
228 if (*ne) ++ne;
229 }
230 return equiv;
231 }
232
233
234 /* think of this as a c++ template<> or a scheme macro */
235 #define SWIG_TypeCheck_Template(comparison, ty) \
236 if (ty) { \
237 swig_cast_info *iter = ty->cast; \
238 while (iter) { \
239 if (comparison) { \
240 if (iter == ty->cast) return iter; \
241 /* Move iter to the top of the linked list */ \
242 iter->prev->next = iter->next; \
243 if (iter->next) \
244 iter->next->prev = iter->prev; \
245 iter->next = ty->cast; \
246 iter->prev = 0; \
247 if (ty->cast) ty->cast->prev = iter; \
248 ty->cast = iter; \
249 return iter; \
250 } \
251 iter = iter->next; \
252 } \
253 } \
254 return 0
255
256 /*
257 Check the typename
258 */
259 SWIGRUNTIME swig_cast_info *
260 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
261 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
262 }
263
264 /* Same as previous function, except strcmp is replaced with a pointer comparison */
265 SWIGRUNTIME swig_cast_info *
266 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
267 SWIG_TypeCheck_Template(iter->type == from, into);
268 }
269
270 /*
271 Cast a pointer up an inheritance hierarchy
272 */
273 SWIGRUNTIMEINLINE void *
274 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
275 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
276 }
277
278 /*
279 Dynamic pointer casting. Down an inheritance hierarchy
280 */
281 SWIGRUNTIME swig_type_info *
282 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
283 swig_type_info *lastty = ty;
284 if (!ty || !ty->dcast) return ty;
285 while (ty && (ty->dcast)) {
286 ty = (*ty->dcast)(ptr);
287 if (ty) lastty = ty;
288 }
289 return lastty;
290 }
291
292 /*
293 Return the name associated with this type
294 */
295 SWIGRUNTIMEINLINE const char *
296 SWIG_TypeName(const swig_type_info *ty) {
297 return ty->name;
298 }
299
300 /*
301 Return the pretty name associated with this type,
302 that is an unmangled type name in a form presentable to the user.
303 */
304 SWIGRUNTIME const char *
305 SWIG_TypePrettyName(const swig_type_info *type) {
306 /* The "str" field contains the equivalent pretty names of the
307 type, separated by vertical-bar characters. We choose
308 to print the last name, as it is often (?) the most
309 specific. */
310 if (type->str != NULL) {
311 const char *last_name = type->str;
312 const char *s;
313 for (s = type->str; *s; s++)
314 if (*s == '|') last_name = s+1;
315 return last_name;
316 }
317 else
318 return type->name;
319 }
320
321 /*
322 Set the clientdata field for a type
323 */
324 SWIGRUNTIME void
325 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
326 swig_cast_info *cast = ti->cast;
327 /* if (ti->clientdata == clientdata) return; */
328 ti->clientdata = clientdata;
329
330 while (cast) {
331 if (!cast->converter) {
332 swig_type_info *tc = cast->type;
333 if (!tc->clientdata) {
334 SWIG_TypeClientData(tc, clientdata);
335 }
336 }
337 cast = cast->next;
338 }
339 }
340
341 /*
342 Search for a swig_type_info structure only by mangled name
343 Search is a O(log #types)
344
345 We start searching at module start, and finish searching when start == end.
346 Note: if start == end at the beginning of the function, we go all the way around
347 the circular list.
348 */
349 SWIGRUNTIME swig_type_info *
350 SWIG_MangledTypeQueryModule(swig_module_info *start,
351 swig_module_info *end,
352 const char *name) {
353 swig_module_info *iter = start;
354 do {
355 if (iter->size) {
356 register size_t l = 0;
357 register size_t r = iter->size - 1;
358 do {
359 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
360 register size_t i = (l + r) >> 1;
361 const char *iname = iter->types[i]->name;
362 if (iname) {
363 register int compare = strcmp(name, iname);
364 if (compare == 0) {
365 return iter->types[i];
366 } else if (compare < 0) {
367 if (i) {
368 r = i - 1;
369 } else {
370 break;
371 }
372 } else if (compare > 0) {
373 l = i + 1;
374 }
375 } else {
376 break; /* should never happen */
377 }
378 } while (l <= r);
379 }
380 iter = iter->next;
381 } while (iter != end);
382 return 0;
383 }
384
385 /*
386 Search for a swig_type_info structure for either a mangled name or a human readable name.
387 It first searches the mangled names of the types, which is a O(log #types)
388 If a type is not found it then searches the human readable names, which is O(#types).
389
390 We start searching at module start, and finish searching when start == end.
391 Note: if start == end at the beginning of the function, we go all the way around
392 the circular list.
393 */
394 SWIGRUNTIME swig_type_info *
395 SWIG_TypeQueryModule(swig_module_info *start,
396 swig_module_info *end,
397 const char *name) {
398 /* STEP 1: Search the name field using binary search */
399 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
400 if (ret) {
401 return ret;
402 } else {
403 /* STEP 2: If the type hasn't been found, do a complete search
404 of the str field (the human readable name) */
405 swig_module_info *iter = start;
406 do {
407 register size_t i = 0;
408 for (; i < iter->size; ++i) {
409 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
410 return iter->types[i];
411 }
412 iter = iter->next;
413 } while (iter != end);
414 }
415
416 /* neither found a match */
417 return 0;
418 }
419
420
421 /*
422 Pack binary data into a string
423 */
424 SWIGRUNTIME char *
425 SWIG_PackData(char *c, void *ptr, size_t sz) {
426 static const char hex[17] = "0123456789abcdef";
427 register const unsigned char *u = (unsigned char *) ptr;
428 register const unsigned char *eu = u + sz;
429 for (; u != eu; ++u) {
430 register unsigned char uu = *u;
431 *(c++) = hex[(uu & 0xf0) >> 4];
432 *(c++) = hex[uu & 0xf];
433 }
434 return c;
435 }
436
437 /*
438 Unpack binary data from a string
439 */
440 SWIGRUNTIME const char *
441 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
442 register unsigned char *u = (unsigned char *) ptr;
443 register const unsigned char *eu = u + sz;
444 for (; u != eu; ++u) {
445 register char d = *(c++);
446 register unsigned char uu = 0;
447 if ((d >= '0') && (d <= '9'))
448 uu = ((d - '0') << 4);
449 else if ((d >= 'a') && (d <= 'f'))
450 uu = ((d - ('a'-10)) << 4);
451 else
452 return (char *) 0;
453 d = *(c++);
454 if ((d >= '0') && (d <= '9'))
455 uu |= (d - '0');
456 else if ((d >= 'a') && (d <= 'f'))
457 uu |= (d - ('a'-10));
458 else
459 return (char *) 0;
460 *u = uu;
461 }
462 return c;
463 }
464
465 /*
466 Pack 'void *' into a string buffer.
467 */
468 SWIGRUNTIME char *
469 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
470 char *r = buff;
471 if ((2*sizeof(void *) + 2) > bsz) return 0;
472 *(r++) = '_';
473 r = SWIG_PackData(r,&ptr,sizeof(void *));
474 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
475 strcpy(r,name);
476 return buff;
477 }
478
479 SWIGRUNTIME const char *
480 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
481 if (*c != '_') {
482 if (strcmp(c,"NULL") == 0) {
483 *ptr = (void *) 0;
484 return name;
485 } else {
486 return 0;
487 }
488 }
489 return SWIG_UnpackData(++c,ptr,sizeof(void *));
490 }
491
492 SWIGRUNTIME char *
493 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
494 char *r = buff;
495 size_t lname = (name ? strlen(name) : 0);
496 if ((2*sz + 2 + lname) > bsz) return 0;
497 *(r++) = '_';
498 r = SWIG_PackData(r,ptr,sz);
499 if (lname) {
500 strncpy(r,name,lname+1);
501 } else {
502 *r = 0;
503 }
504 return buff;
505 }
506
507 SWIGRUNTIME const char *
508 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
509 if (*c != '_') {
510 if (strcmp(c,"NULL") == 0) {
511 memset(ptr,0,sz);
512 return name;
513 } else {
514 return 0;
515 }
516 }
517 return SWIG_UnpackData(++c,ptr,sz);
518 }
519
520 #ifdef __cplusplus
521 }
522 #endif
523
524 /* -----------------------------------------------------------------------------
525 * SWIG API. Portion that goes into the runtime
526 * ----------------------------------------------------------------------------- */
527
528 #ifdef __cplusplus
529 extern "C" {
530 #endif
531
532 /* -----------------------------------------------------------------------------
533 * for internal method declarations
534 * ----------------------------------------------------------------------------- */
535
536 #ifndef SWIGINTERN
537 # define SWIGINTERN static SWIGUNUSED
538 #endif
539
540 #ifndef SWIGINTERNINLINE
541 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
542 #endif
543
544 /*
545 Exception handling in wrappers
546 */
547 #define SWIG_fail goto fail
548 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
549 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
550 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
551 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
552 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
553
554 /*
555 Contract support
556 */
557 #define SWIG_contract_assert(expr, msg) \
558 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559
560 /* -----------------------------------------------------------------------------
561 * Constant declarations
562 * ----------------------------------------------------------------------------- */
563
564 /* Constant Types */
565 #define SWIG_PY_INT 1
566 #define SWIG_PY_FLOAT 2
567 #define SWIG_PY_STRING 3
568 #define SWIG_PY_POINTER 4
569 #define SWIG_PY_BINARY 5
570
571 /* Constant information structure */
572 typedef struct swig_const_info {
573 int type;
574 char *name;
575 long lvalue;
576 double dvalue;
577 void *pvalue;
578 swig_type_info **ptype;
579 } swig_const_info;
580
581
582 /* -----------------------------------------------------------------------------
583 * Alloc. memory flags
584 * ----------------------------------------------------------------------------- */
585 #define SWIG_OLDOBJ 1
586 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
587 #define SWIG_PYSTR SWIG_NEWOBJ + 1
588
589 #ifdef __cplusplus
590 }
591 #endif
592
593
594 /***********************************************************************
595 * pyrun.swg
596 *
597 * This file contains the runtime support for Python modules
598 * and includes code for managing global variables and pointer
599 * type checking.
600 *
601 * Author : David Beazley (beazley@cs.uchicago.edu)
602 ************************************************************************/
603
604 /* Common SWIG API */
605 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
606 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
607 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
608
609
610 /* Python-specific SWIG API */
611 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
612 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
613
614 /* Runtime API */
615 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
616 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617
618 /* -----------------------------------------------------------------------------
619 * Pointer declarations
620 * ----------------------------------------------------------------------------- */
621 /*
622 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
623 C/C++ pointers in the python side. Very useful for debugging, but
624 not always safe.
625 */
626 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
627 # define SWIG_COBJECT_TYPES
628 #endif
629
630 /* Flags for pointer conversion */
631 #define SWIG_POINTER_EXCEPTION 0x1
632 #define SWIG_POINTER_DISOWN 0x2
633
634
635 /* Add PyOS_snprintf for old Pythons */
636 #if PY_VERSION_HEX < 0x02020000
637 #define PyOS_snprintf snprintf
638 #endif
639
640 #ifdef __cplusplus
641 extern "C" {
642 #endif
643
644 /* -----------------------------------------------------------------------------
645 * Create a new pointer string
646 * ----------------------------------------------------------------------------- */
647 #ifndef SWIG_BUFFER_SIZE
648 #define SWIG_BUFFER_SIZE 1024
649 #endif
650
651 /* A crude PyString_FromFormat implementation for old Pythons */
652 #if PY_VERSION_HEX < 0x02020000
653 static PyObject *
654 PyString_FromFormat(const char *fmt, ...) {
655 va_list ap;
656 char buf[SWIG_BUFFER_SIZE * 2];
657 int res;
658 va_start(ap, fmt);
659 res = vsnprintf(buf, sizeof(buf), fmt, ap);
660 va_end(ap);
661 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
662 }
663 #endif
664
665 #if PY_VERSION_HEX < 0x01060000
666 #define PyObject_Del(op) PyMem_DEL((op))
667 #endif
668
669 #if defined(SWIG_COBJECT_TYPES)
670 #if !defined(SWIG_COBJECT_PYTHON)
671 /* -----------------------------------------------------------------------------
672 * Implements a simple Swig Object type, and use it instead of PyCObject
673 * ----------------------------------------------------------------------------- */
674
675 typedef struct {
676 PyObject_HEAD
677 void *ptr;
678 const char *desc;
679 } PySwigObject;
680
681 /* Declarations for objects of type PySwigObject */
682
683 SWIGRUNTIME int
684 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
685 {
686 char result[SWIG_BUFFER_SIZE];
687 flags = flags;
688 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
689 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
690 return 0;
691 } else {
692 return 1;
693 }
694 }
695
696 SWIGRUNTIME PyObject *
697 PySwigObject_repr(PySwigObject *v)
698 {
699 char result[SWIG_BUFFER_SIZE];
700 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
701 PyString_FromFormat("<Swig Object at %s>", result) : 0;
702 }
703
704 SWIGRUNTIME PyObject *
705 PySwigObject_str(PySwigObject *v)
706 {
707 char result[SWIG_BUFFER_SIZE];
708 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
709 PyString_FromString(result) : 0;
710 }
711
712 SWIGRUNTIME PyObject *
713 PySwigObject_long(PySwigObject *v)
714 {
715 return PyLong_FromVoidPtr(v->ptr);
716 }
717
718 SWIGRUNTIME PyObject *
719 PySwigObject_format(const char* fmt, PySwigObject *v)
720 {
721 PyObject *res = NULL;
722 PyObject *args = PyTuple_New(1);
723 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
724 PyObject *ofmt = PyString_FromString(fmt);
725 if (ofmt) {
726 res = PyString_Format(ofmt,args);
727 Py_DECREF(ofmt);
728 }
729 Py_DECREF(args);
730 }
731 return res;
732 }
733
734 SWIGRUNTIME PyObject *
735 PySwigObject_oct(PySwigObject *v)
736 {
737 return PySwigObject_format("%o",v);
738 }
739
740 SWIGRUNTIME PyObject *
741 PySwigObject_hex(PySwigObject *v)
742 {
743 return PySwigObject_format("%x",v);
744 }
745
746 SWIGRUNTIME int
747 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
748 {
749 int c = strcmp(v->desc, w->desc);
750 if (c) {
751 return (c > 0) ? 1 : -1;
752 } else {
753 void *i = v->ptr;
754 void *j = w->ptr;
755 return (i < j) ? -1 : ((i > j) ? 1 : 0);
756 }
757 }
758
759 SWIGRUNTIME void
760 PySwigObject_dealloc(PySwigObject *self)
761 {
762 PyObject_Del(self);
763 }
764
765 SWIGRUNTIME PyTypeObject*
766 PySwigObject_type(void) {
767 static char pyswigobject_type__doc__[] =
768 "Swig object carries a C/C++ instance pointer";
769
770 static PyNumberMethods PySwigObject_as_number = {
771 (binaryfunc)0, /*nb_add*/
772 (binaryfunc)0, /*nb_subtract*/
773 (binaryfunc)0, /*nb_multiply*/
774 (binaryfunc)0, /*nb_divide*/
775 (binaryfunc)0, /*nb_remainder*/
776 (binaryfunc)0, /*nb_divmod*/
777 (ternaryfunc)0,/*nb_power*/
778 (unaryfunc)0, /*nb_negative*/
779 (unaryfunc)0, /*nb_positive*/
780 (unaryfunc)0, /*nb_absolute*/
781 (inquiry)0, /*nb_nonzero*/
782 0, /*nb_invert*/
783 0, /*nb_lshift*/
784 0, /*nb_rshift*/
785 0, /*nb_and*/
786 0, /*nb_xor*/
787 0, /*nb_or*/
788 (coercion)0, /*nb_coerce*/
789 (unaryfunc)PySwigObject_long, /*nb_int*/
790 (unaryfunc)PySwigObject_long, /*nb_long*/
791 (unaryfunc)0, /*nb_float*/
792 (unaryfunc)PySwigObject_oct, /*nb_oct*/
793 (unaryfunc)PySwigObject_hex, /*nb_hex*/
794 #if PY_VERSION_HEX >= 0x02020000
795 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
796 #elif PY_VERSION_HEX >= 0x02000000
797 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
798 #endif
799 };
800
801 static PyTypeObject pyswigobject_type
802 #if !defined(__cplusplus)
803 ;
804 static int type_init = 0;
805 if (!type_init) {
806 PyTypeObject tmp
807 #endif
808 = {
809 PyObject_HEAD_INIT(&PyType_Type)
810 0, /*ob_size*/
811 (char *)"PySwigObject", /*tp_name*/
812 sizeof(PySwigObject), /*tp_basicsize*/
813 0, /*tp_itemsize*/
814 /* methods */
815 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
816 (printfunc)PySwigObject_print, /*tp_print*/
817 (getattrfunc)0, /*tp_getattr*/
818 (setattrfunc)0, /*tp_setattr*/
819 (cmpfunc)PySwigObject_compare, /*tp_compare*/
820 (reprfunc)PySwigObject_repr, /*tp_repr*/
821 &PySwigObject_as_number, /*tp_as_number*/
822 0, /*tp_as_sequence*/
823 0, /*tp_as_mapping*/
824 (hashfunc)0, /*tp_hash*/
825 (ternaryfunc)0, /*tp_call*/
826 (reprfunc)PySwigObject_str, /*tp_str*/
827 /* Space for future expansion */
828 0,0,0,0,
829 pyswigobject_type__doc__, /* Documentation string */
830 #if PY_VERSION_HEX >= 0x02000000
831 0, /* tp_traverse */
832 0, /* tp_clear */
833 #endif
834 #if PY_VERSION_HEX >= 0x02010000
835 0, /* tp_richcompare */
836 0, /* tp_weaklistoffset */
837 #endif
838 #if PY_VERSION_HEX >= 0x02020000
839 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
840 #endif
841 #if PY_VERSION_HEX >= 0x02030000
842 0, /* tp_del */
843 #endif
844 #ifdef COUNT_ALLOCS
845 0,0,0,0 /* tp_alloc -> tp_next */
846 #endif
847 };
848 #if !defined(__cplusplus)
849 pyswigobject_type = tmp;
850 type_init = 1;
851 }
852 #endif
853 return &pyswigobject_type;
854 }
855
856 SWIGRUNTIME PyObject *
857 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
858 {
859 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
860 if (self) {
861 self->ptr = ptr;
862 self->desc = desc;
863 }
864 return (PyObject *)self;
865 }
866
867 SWIGRUNTIMEINLINE void *
868 PySwigObject_AsVoidPtr(PyObject *self)
869 {
870 return ((PySwigObject *)self)->ptr;
871 }
872
873 SWIGRUNTIMEINLINE const char *
874 PySwigObject_GetDesc(PyObject *self)
875 {
876 return ((PySwigObject *)self)->desc;
877 }
878
879 SWIGRUNTIMEINLINE int
880 PySwigObject_Check(PyObject *op) {
881 return ((op)->ob_type == PySwigObject_type())
882 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
883 }
884
885 /* -----------------------------------------------------------------------------
886 * Implements a simple Swig Packed type, and use it instead of string
887 * ----------------------------------------------------------------------------- */
888
889 typedef struct {
890 PyObject_HEAD
891 void *pack;
892 const char *desc;
893 size_t size;
894 } PySwigPacked;
895
896 SWIGRUNTIME int
897 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
898 {
899 char result[SWIG_BUFFER_SIZE];
900 flags = flags;
901 fputs("<Swig Packed ", fp);
902 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
903 fputs("at ", fp);
904 fputs(result, fp);
905 }
906 fputs(v->desc,fp);
907 fputs(">", fp);
908 return 0;
909 }
910
911 SWIGRUNTIME PyObject *
912 PySwigPacked_repr(PySwigPacked *v)
913 {
914 char result[SWIG_BUFFER_SIZE];
915 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
916 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
917 } else {
918 return PyString_FromFormat("<Swig Packed %s>", v->desc);
919 }
920 }
921
922 SWIGRUNTIME PyObject *
923 PySwigPacked_str(PySwigPacked *v)
924 {
925 char result[SWIG_BUFFER_SIZE];
926 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
927 return PyString_FromFormat("%s%s", result, v->desc);
928 } else {
929 return PyString_FromString(v->desc);
930 }
931 }
932
933 SWIGRUNTIME int
934 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
935 {
936 int c = strcmp(v->desc, w->desc);
937 if (c) {
938 return (c > 0) ? 1 : -1;
939 } else {
940 size_t i = v->size;
941 size_t j = w->size;
942 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
943 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
944 }
945 }
946
947 SWIGRUNTIME void
948 PySwigPacked_dealloc(PySwigPacked *self)
949 {
950 free(self->pack);
951 PyObject_Del(self);
952 }
953
954 SWIGRUNTIME PyTypeObject*
955 PySwigPacked_type(void) {
956 static char pyswigpacked_type__doc__[] =
957 "Swig object carries a C/C++ instance pointer";
958 static PyTypeObject pyswigpacked_type
959 #if !defined(__cplusplus)
960 ;
961 static int type_init = 0;
962 if (!type_init) {
963 PyTypeObject tmp
964 #endif
965 = {
966 PyObject_HEAD_INIT(&PyType_Type)
967 0, /*ob_size*/
968 (char *)"PySwigPacked", /*tp_name*/
969 sizeof(PySwigPacked), /*tp_basicsize*/
970 0, /*tp_itemsize*/
971 /* methods */
972 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
973 (printfunc)PySwigPacked_print, /*tp_print*/
974 (getattrfunc)0, /*tp_getattr*/
975 (setattrfunc)0, /*tp_setattr*/
976 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
977 (reprfunc)PySwigPacked_repr, /*tp_repr*/
978 0, /*tp_as_number*/
979 0, /*tp_as_sequence*/
980 0, /*tp_as_mapping*/
981 (hashfunc)0, /*tp_hash*/
982 (ternaryfunc)0, /*tp_call*/
983 (reprfunc)PySwigPacked_str, /*tp_str*/
984 /* Space for future expansion */
985 0,0,0,0,
986 pyswigpacked_type__doc__, /* Documentation string */
987 #if PY_VERSION_HEX >= 0x02000000
988 0, /* tp_traverse */
989 0, /* tp_clear */
990 #endif
991 #if PY_VERSION_HEX >= 0x02010000
992 0, /* tp_richcompare */
993 0, /* tp_weaklistoffset */
994 #endif
995 #if PY_VERSION_HEX >= 0x02020000
996 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
997 #endif
998 #if PY_VERSION_HEX >= 0x02030000
999 0, /* tp_del */
1000 #endif
1001 #ifdef COUNT_ALLOCS
1002 0,0,0,0 /* tp_alloc -> tp_next */
1003 #endif
1004 };
1005 #if !defined(__cplusplus)
1006 pyswigpacked_type = tmp;
1007 type_init = 1;
1008 }
1009 #endif
1010 return &pyswigpacked_type;
1011 }
1012
1013 SWIGRUNTIME PyObject *
1014 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1015 {
1016 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1017 if (self == NULL) {
1018 return NULL;
1019 } else {
1020 void *pack = malloc(size);
1021 if (pack) {
1022 memcpy(pack, ptr, size);
1023 self->pack = pack;
1024 self->desc = desc;
1025 self->size = size;
1026 return (PyObject *) self;
1027 }
1028 return NULL;
1029 }
1030 }
1031
1032 SWIGRUNTIMEINLINE const char *
1033 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1034 {
1035 PySwigPacked *self = (PySwigPacked *)obj;
1036 if (self->size != size) return 0;
1037 memcpy(ptr, self->pack, size);
1038 return self->desc;
1039 }
1040
1041 SWIGRUNTIMEINLINE const char *
1042 PySwigPacked_GetDesc(PyObject *self)
1043 {
1044 return ((PySwigPacked *)self)->desc;
1045 }
1046
1047 SWIGRUNTIMEINLINE int
1048 PySwigPacked_Check(PyObject *op) {
1049 return ((op)->ob_type == PySwigPacked_type())
1050 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1051 }
1052
1053 #else
1054 /* -----------------------------------------------------------------------------
1055 * Use the old Python PyCObject instead of PySwigObject
1056 * ----------------------------------------------------------------------------- */
1057
1058 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1059 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1060 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1061 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1062
1063 #endif
1064
1065 #endif
1066
1067 /* -----------------------------------------------------------------------------
1068 * errors manipulation
1069 * ----------------------------------------------------------------------------- */
1070
1071 SWIGRUNTIME void
1072 SWIG_Python_TypeError(const char *type, PyObject *obj)
1073 {
1074 if (type) {
1075 #if defined(SWIG_COBJECT_TYPES)
1076 if (obj && PySwigObject_Check(obj)) {
1077 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1078 if (otype) {
1079 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1080 type, otype);
1081 return;
1082 }
1083 } else
1084 #endif
1085 {
1086 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1087 if (otype) {
1088 PyObject *str = PyObject_Str(obj);
1089 const char *cstr = str ? PyString_AsString(str) : 0;
1090 if (cstr) {
1091 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1092 type, otype, cstr);
1093 } else {
1094 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1095 type, otype);
1096 }
1097 Py_XDECREF(str);
1098 return;
1099 }
1100 }
1101 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1102 } else {
1103 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1104 }
1105 }
1106
1107 SWIGRUNTIMEINLINE void
1108 SWIG_Python_NullRef(const char *type)
1109 {
1110 if (type) {
1111 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1112 } else {
1113 PyErr_Format(PyExc_TypeError, "null reference was received");
1114 }
1115 }
1116
1117 SWIGRUNTIME int
1118 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1119 {
1120 if (PyErr_Occurred()) {
1121 PyObject *type = 0;
1122 PyObject *value = 0;
1123 PyObject *traceback = 0;
1124 PyErr_Fetch(&type, &value, &traceback);
1125 if (value) {
1126 PyObject *old_str = PyObject_Str(value);
1127 Py_XINCREF(type);
1128 PyErr_Clear();
1129 if (infront) {
1130 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1131 } else {
1132 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1133 }
1134 Py_DECREF(old_str);
1135 }
1136 return 1;
1137 } else {
1138 return 0;
1139 }
1140 }
1141
1142 SWIGRUNTIME int
1143 SWIG_Python_ArgFail(int argnum)
1144 {
1145 if (PyErr_Occurred()) {
1146 /* add information about failing argument */
1147 char mesg[256];
1148 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1149 return SWIG_Python_AddErrMesg(mesg, 1);
1150 } else {
1151 return 0;
1152 }
1153 }
1154
1155
1156 /* -----------------------------------------------------------------------------
1157 * pointers/data manipulation
1158 * ----------------------------------------------------------------------------- */
1159
1160 /* Convert a pointer value */
1161 SWIGRUNTIME int
1162 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1163 swig_cast_info *tc;
1164 const char *c = 0;
1165 static PyObject *SWIG_this = 0;
1166 int newref = 0;
1167 PyObject *pyobj = 0;
1168 void *vptr;
1169
1170 if (!obj) return 0;
1171 if (obj == Py_None) {
1172 *ptr = 0;
1173 return 0;
1174 }
1175
1176 #ifdef SWIG_COBJECT_TYPES
1177 if (!(PySwigObject_Check(obj))) {
1178 if (!SWIG_this)
1179 SWIG_this = PyString_FromString("this");
1180 pyobj = obj;
1181 obj = PyObject_GetAttr(obj,SWIG_this);
1182 newref = 1;
1183 if (!obj) goto type_error;
1184 if (!PySwigObject_Check(obj)) {
1185 Py_DECREF(obj);
1186 goto type_error;
1187 }
1188 }
1189 vptr = PySwigObject_AsVoidPtr(obj);
1190 c = (const char *) PySwigObject_GetDesc(obj);
1191 if (newref) { Py_DECREF(obj); }
1192 goto type_check;
1193 #else
1194 if (!(PyString_Check(obj))) {
1195 if (!SWIG_this)
1196 SWIG_this = PyString_FromString("this");
1197 pyobj = obj;
1198 obj = PyObject_GetAttr(obj,SWIG_this);
1199 newref = 1;
1200 if (!obj) goto type_error;
1201 if (!PyString_Check(obj)) {
1202 Py_DECREF(obj);
1203 goto type_error;
1204 }
1205 }
1206 c = PyString_AsString(obj);
1207 /* Pointer values must start with leading underscore */
1208 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1209 if (newref) { Py_DECREF(obj); }
1210 if (!c) goto type_error;
1211 #endif
1212
1213 type_check:
1214 if (ty) {
1215 tc = SWIG_TypeCheck(c,ty);
1216 if (!tc) goto type_error;
1217 *ptr = SWIG_TypeCast(tc,vptr);
1218 } else {
1219 *ptr = vptr;
1220 }
1221 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1222 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1223 }
1224 return 0;
1225
1226 type_error:
1227 PyErr_Clear();
1228 if (pyobj && !obj) {
1229 obj = pyobj;
1230 if (PyCFunction_Check(obj)) {
1231 /* here we get the method pointer for callbacks */
1232 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1233 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1234 if (c) {
1235 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1236 if (!c) goto type_error;
1237 goto type_check;
1238 }
1239 }
1240 }
1241 if (flags & SWIG_POINTER_EXCEPTION) {
1242 if (ty) {
1243 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1244 } else {
1245 SWIG_Python_TypeError("C/C++ pointer", obj);
1246 }
1247 }
1248 return -1;
1249 }
1250
1251 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIGRUNTIME void *
1253 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1254 void *result;
1255 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1256 PyErr_Clear();
1257 if (flags & SWIG_POINTER_EXCEPTION) {
1258 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1259 SWIG_Python_ArgFail(argnum);
1260 }
1261 }
1262 return result;
1263 }
1264
1265 /* Convert a packed value value */
1266 SWIGRUNTIME int
1267 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1268 swig_cast_info *tc;
1269 const char *c = 0;
1270
1271 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1272 c = PySwigPacked_UnpackData(obj, ptr, sz);
1273 #else
1274 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1275 c = PyString_AsString(obj);
1276 /* Pointer values must start with leading underscore */
1277 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1278 #endif
1279 if (!c) goto type_error;
1280 if (ty) {
1281 tc = SWIG_TypeCheck(c,ty);
1282 if (!tc) goto type_error;
1283 }
1284 return 0;
1285
1286 type_error:
1287 PyErr_Clear();
1288 if (flags & SWIG_POINTER_EXCEPTION) {
1289 if (ty) {
1290 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1291 } else {
1292 SWIG_Python_TypeError("C/C++ packed data", obj);
1293 }
1294 }
1295 return -1;
1296 }
1297
1298 /* Create a new array object */
1299 SWIGRUNTIME PyObject *
1300 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1301 PyObject *robj = 0;
1302 if (!type) {
1303 if (!PyErr_Occurred()) {
1304 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1305 }
1306 return robj;
1307 }
1308 if (!ptr) {
1309 Py_INCREF(Py_None);
1310 return Py_None;
1311 }
1312 #ifdef SWIG_COBJECT_TYPES
1313 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1314 #else
1315 {
1316 char result[SWIG_BUFFER_SIZE];
1317 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1318 PyString_FromString(result) : 0;
1319 }
1320 #endif
1321 if (!robj || (robj == Py_None)) return robj;
1322 if (type->clientdata) {
1323 PyObject *inst;
1324 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1325 Py_DECREF(robj);
1326 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1327 Py_DECREF(args);
1328 if (inst) {
1329 if (own) {
1330 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1331 }
1332 robj = inst;
1333 }
1334 }
1335 return robj;
1336 }
1337
1338 SWIGRUNTIME PyObject *
1339 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1340 PyObject *robj = 0;
1341 if (!ptr) {
1342 Py_INCREF(Py_None);
1343 return Py_None;
1344 }
1345 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1346 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1347 #else
1348 {
1349 char result[SWIG_BUFFER_SIZE];
1350 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1351 PyString_FromString(result) : 0;
1352 }
1353 #endif
1354 return robj;
1355 }
1356
1357 /* -----------------------------------------------------------------------------*
1358 * Get type list
1359 * -----------------------------------------------------------------------------*/
1360
1361 #ifdef SWIG_LINK_RUNTIME
1362 void *SWIG_ReturnGlobalTypeList(void *);
1363 #endif
1364
1365 SWIGRUNTIME swig_module_info *
1366 SWIG_Python_GetModule(void) {
1367 static void *type_pointer = (void *)0;
1368 /* first check if module already created */
1369 if (!type_pointer) {
1370 #ifdef SWIG_LINK_RUNTIME
1371 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1372 #else
1373 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1374 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1375 if (PyErr_Occurred()) {
1376 PyErr_Clear();
1377 type_pointer = (void *)0;
1378 }
1379 #endif
1380 }
1381 return (swig_module_info *) type_pointer;
1382 }
1383
1384 #if PY_MAJOR_VERSION < 2
1385 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1386 is copied out of Python/modsupport.c in python version 2.3.4 */
1387 SWIGINTERN int
1388 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1389 {
1390 PyObject *dict;
1391 if (!PyModule_Check(m)) {
1392 PyErr_SetString(PyExc_TypeError,
1393 "PyModule_AddObject() needs module as first arg");
1394 return -1;
1395 }
1396 if (!o) {
1397 PyErr_SetString(PyExc_TypeError,
1398 "PyModule_AddObject() needs non-NULL value");
1399 return -1;
1400 }
1401
1402 dict = PyModule_GetDict(m);
1403 if (dict == NULL) {
1404 /* Internal error -- modules must have a dict! */
1405 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1406 PyModule_GetName(m));
1407 return -1;
1408 }
1409 if (PyDict_SetItemString(dict, name, o))
1410 return -1;
1411 Py_DECREF(o);
1412 return 0;
1413 }
1414 #endif
1415
1416 SWIGRUNTIME void
1417 SWIG_Python_SetModule(swig_module_info *swig_module) {
1418 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1419
1420 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1421 swig_empty_runtime_method_table);
1422 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1423 if (pointer && module) {
1424 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1425 }
1426 }
1427
1428 #ifdef __cplusplus
1429 }
1430 #endif
1431
1432
1433 /* -------- TYPES TABLE (BEGIN) -------- */
1434
1435 #define SWIGTYPE_p_char swig_types[0]
1436 #define SWIGTYPE_p_form_ops_t swig_types[1]
1437 #define SWIGTYPE_p_int swig_types[2]
1438 #define SWIGTYPE_p_unsigned_char swig_types[3]
1439 #define SWIGTYPE_p_unsigned_int swig_types[4]
1440 #define SWIGTYPE_p_unsigned_long swig_types[5]
1441 #define SWIGTYPE_p_void swig_types[6]
1442 #define SWIGTYPE_p_wxANIHandler swig_types[7]
1443 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
1444 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
1445 #define SWIGTYPE_p_wxArrayString swig_types[10]
1446 #define SWIGTYPE_p_wxBMPHandler swig_types[11]
1447 #define SWIGTYPE_p_wxBitmap swig_types[12]
1448 #define SWIGTYPE_p_wxBitmapDataObject swig_types[13]
1449 #define SWIGTYPE_p_wxBoxSizer swig_types[14]
1450 #define SWIGTYPE_p_wxBusyCursor swig_types[15]
1451 #define SWIGTYPE_p_wxBusyInfo swig_types[16]
1452 #define SWIGTYPE_p_wxCURHandler swig_types[17]
1453 #define SWIGTYPE_p_wxCaret swig_types[18]
1454 #define SWIGTYPE_p_wxChar swig_types[19]
1455 #define SWIGTYPE_p_wxChildFocusEvent swig_types[20]
1456 #define SWIGTYPE_p_wxClipboard swig_types[21]
1457 #define SWIGTYPE_p_wxClipboardLocker swig_types[22]
1458 #define SWIGTYPE_p_wxCloseEvent swig_types[23]
1459 #define SWIGTYPE_p_wxColour swig_types[24]
1460 #define SWIGTYPE_p_wxCommandEvent swig_types[25]
1461 #define SWIGTYPE_p_wxConfig swig_types[26]
1462 #define SWIGTYPE_p_wxConfigBase swig_types[27]
1463 #define SWIGTYPE_p_wxConfigPathChanger swig_types[28]
1464 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
1465 #define SWIGTYPE_p_wxControl swig_types[30]
1466 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
1467 #define SWIGTYPE_p_wxCursor swig_types[32]
1468 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
1469 #define SWIGTYPE_p_wxDC swig_types[34]
1470 #define SWIGTYPE_p_wxDataFormat swig_types[35]
1471 #define SWIGTYPE_p_wxDataObject swig_types[36]
1472 #define SWIGTYPE_p_wxDataObjectComposite swig_types[37]
1473 #define SWIGTYPE_p_wxDataObjectSimple swig_types[38]
1474 #define SWIGTYPE_p_wxDateEvent swig_types[39]
1475 #define SWIGTYPE_p_wxDateSpan swig_types[40]
1476 #define SWIGTYPE_p_wxDateTime swig_types[41]
1477 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[42]
1478 #define SWIGTYPE_p_wxDisplay swig_types[43]
1479 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
1480 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
1481 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
1482 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
1483 #define SWIGTYPE_p_wxEvent swig_types[48]
1484 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
1485 #define SWIGTYPE_p_wxFSFile swig_types[50]
1486 #define SWIGTYPE_p_wxFileConfig swig_types[51]
1487 #define SWIGTYPE_p_wxFileDataObject swig_types[52]
1488 #define SWIGTYPE_p_wxFileHistory swig_types[53]
1489 #define SWIGTYPE_p_wxFileSystem swig_types[54]
1490 #define SWIGTYPE_p_wxFileType swig_types[55]
1491 #define SWIGTYPE_p_wxFileTypeInfo swig_types[56]
1492 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
1493 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
1494 #define SWIGTYPE_p_wxFont swig_types[59]
1495 #define SWIGTYPE_p_wxFrame swig_types[60]
1496 #define SWIGTYPE_p_wxGBSizerItem swig_types[61]
1497 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
1498 #define SWIGTYPE_p_wxGridBagSizer swig_types[63]
1499 #define SWIGTYPE_p_wxGridSizer swig_types[64]
1500 #define SWIGTYPE_p_wxICOHandler swig_types[65]
1501 #define SWIGTYPE_p_wxIcon swig_types[66]
1502 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
1503 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
1504 #define SWIGTYPE_p_wxImage swig_types[69]
1505 #define SWIGTYPE_p_wxImageHandler swig_types[70]
1506 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71]
1507 #define SWIGTYPE_p_wxInitDialogEvent swig_types[72]
1508 #define SWIGTYPE_p_wxJPEGHandler swig_types[73]
1509 #define SWIGTYPE_p_wxJoystick swig_types[74]
1510 #define SWIGTYPE_p_wxJoystickEvent swig_types[75]
1511 #define SWIGTYPE_p_wxKeyEvent swig_types[76]
1512 #define SWIGTYPE_p_wxKillError swig_types[77]
1513 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
1514 #define SWIGTYPE_p_wxLog swig_types[79]
1515 #define SWIGTYPE_p_wxLogBuffer swig_types[80]
1516 #define SWIGTYPE_p_wxLogChain swig_types[81]
1517 #define SWIGTYPE_p_wxLogGui swig_types[82]
1518 #define SWIGTYPE_p_wxLogNull swig_types[83]
1519 #define SWIGTYPE_p_wxLogStderr swig_types[84]
1520 #define SWIGTYPE_p_wxLogTextCtrl swig_types[85]
1521 #define SWIGTYPE_p_wxLogWindow swig_types[86]
1522 #define SWIGTYPE_p_wxMaximizeEvent swig_types[87]
1523 #define SWIGTYPE_p_wxMemorySize swig_types[88]
1524 #define SWIGTYPE_p_wxMenu swig_types[89]
1525 #define SWIGTYPE_p_wxMenuBar swig_types[90]
1526 #define SWIGTYPE_p_wxMenuEvent swig_types[91]
1527 #define SWIGTYPE_p_wxMenuItem swig_types[92]
1528 #define SWIGTYPE_p_wxMetafile swig_types[93]
1529 #define SWIGTYPE_p_wxMetafileDataObject swig_types[94]
1530 #define SWIGTYPE_p_wxMimeTypesManager swig_types[95]
1531 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[96]
1532 #define SWIGTYPE_p_wxMouseEvent swig_types[97]
1533 #define SWIGTYPE_p_wxMouseState swig_types[98]
1534 #define SWIGTYPE_p_wxMoveEvent swig_types[99]
1535 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[100]
1536 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[101]
1537 #define SWIGTYPE_p_wxNcPaintEvent swig_types[102]
1538 #define SWIGTYPE_p_wxNotifyEvent swig_types[103]
1539 #define SWIGTYPE_p_wxObject swig_types[104]
1540 #define SWIGTYPE_p_wxOutputStream swig_types[105]
1541 #define SWIGTYPE_p_wxPCXHandler swig_types[106]
1542 #define SWIGTYPE_p_wxPNGHandler swig_types[107]
1543 #define SWIGTYPE_p_wxPNMHandler swig_types[108]
1544 #define SWIGTYPE_p_wxPaintEvent swig_types[109]
1545 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
1546 #define SWIGTYPE_p_wxPaperSize swig_types[111]
1547 #define SWIGTYPE_p_wxPoint swig_types[112]
1548 #define SWIGTYPE_p_wxProcessEvent swig_types[113]
1549 #define SWIGTYPE_p_wxPyApp swig_types[114]
1550 #define SWIGTYPE_p_wxPyArtProvider swig_types[115]
1551 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[116]
1552 #define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
1553 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[118]
1554 #define SWIGTYPE_p_wxPyDropSource swig_types[119]
1555 #define SWIGTYPE_p_wxPyDropTarget swig_types[120]
1556 #define SWIGTYPE_p_wxPyEvent swig_types[121]
1557 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[122]
1558 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
1559 #define SWIGTYPE_p_wxPyLog swig_types[124]
1560 #define SWIGTYPE_p_wxPyProcess swig_types[125]
1561 #define SWIGTYPE_p_wxPySizer swig_types[126]
1562 #define SWIGTYPE_p_wxPyTextDataObject swig_types[127]
1563 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[128]
1564 #define SWIGTYPE_p_wxPyTimer swig_types[129]
1565 #define SWIGTYPE_p_wxPyTipProvider swig_types[130]
1566 #define SWIGTYPE_p_wxPyValidator swig_types[131]
1567 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[132]
1568 #define SWIGTYPE_p_wxRect swig_types[133]
1569 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
1570 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
1571 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
1572 #define SWIGTYPE_p_wxShowEvent swig_types[137]
1573 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[138]
1574 #define SWIGTYPE_p_wxSize swig_types[139]
1575 #define SWIGTYPE_p_wxSizeEvent swig_types[140]
1576 #define SWIGTYPE_p_wxSizer swig_types[141]
1577 #define SWIGTYPE_p_wxSizerItem swig_types[142]
1578 #define SWIGTYPE_p_wxSound swig_types[143]
1579 #define SWIGTYPE_p_wxStandardPaths swig_types[144]
1580 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
1581 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
1582 #define SWIGTYPE_p_wxStopWatch swig_types[147]
1583 #define SWIGTYPE_p_wxString swig_types[148]
1584 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
1585 #define SWIGTYPE_p_wxSystemOptions swig_types[150]
1586 #define SWIGTYPE_p_wxSystemSettings swig_types[151]
1587 #define SWIGTYPE_p_wxTIFFHandler swig_types[152]
1588 #define SWIGTYPE_p_wxTextCtrl swig_types[153]
1589 #define SWIGTYPE_p_wxTextDataObject swig_types[154]
1590 #define SWIGTYPE_p_wxTimeSpan swig_types[155]
1591 #define SWIGTYPE_p_wxTimer swig_types[156]
1592 #define SWIGTYPE_p_wxTimerEvent swig_types[157]
1593 #define SWIGTYPE_p_wxTimerRunner swig_types[158]
1594 #define SWIGTYPE_p_wxTipProvider swig_types[159]
1595 #define SWIGTYPE_p_wxToolTip swig_types[160]
1596 #define SWIGTYPE_p_wxURLDataObject swig_types[161]
1597 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
1598 #define SWIGTYPE_p_wxValidator swig_types[163]
1599 #define SWIGTYPE_p_wxVideoMode swig_types[164]
1600 #define SWIGTYPE_p_wxWindow swig_types[165]
1601 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
1602 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
1603 #define SWIGTYPE_p_wxWindowDisabler swig_types[168]
1604 #define SWIGTYPE_p_wxXPMHandler swig_types[169]
1605 #define SWIGTYPE_ptrdiff_t swig_types[170]
1606 #define SWIGTYPE_std__ptrdiff_t swig_types[171]
1607 #define SWIGTYPE_unsigned_int swig_types[172]
1608 static swig_type_info *swig_types[174];
1609 static swig_module_info swig_module = {swig_types, 173, 0, 0, 0, 0};
1610 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1611 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1612
1613 /* -------- TYPES TABLE (END) -------- */
1614
1615
1616 /*-----------------------------------------------
1617 @(target):= _misc_.so
1618 ------------------------------------------------*/
1619 #define SWIG_init init_misc_
1620
1621 #define SWIG_name "_misc_"
1622
1623 #include "wx/wxPython/wxPython.h"
1624 #include "wx/wxPython/pyclasses.h"
1625 #include "wx/wxPython/pyistream.h"
1626
1627 static const wxString wxPyEmptyString(wxEmptyString);
1628
1629
1630
1631 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1632 #define SWIG_From_int PyInt_FromLong
1633 /*@@*/
1634
1635
1636 #include <limits.h>
1637
1638
1639 SWIGINTERN int
1640 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1641 const char *errmsg)
1642 {
1643 if (value < min_value) {
1644 if (errmsg) {
1645 PyErr_Format(PyExc_OverflowError,
1646 "value %ld is less than '%s' minimum %ld",
1647 value, errmsg, min_value);
1648 }
1649 return 0;
1650 } else if (value > max_value) {
1651 if (errmsg) {
1652 PyErr_Format(PyExc_OverflowError,
1653 "value %ld is greater than '%s' maximum %ld",
1654 value, errmsg, max_value);
1655 }
1656 return 0;
1657 }
1658 return 1;
1659 }
1660
1661
1662 SWIGINTERN int
1663 SWIG_AsVal_long(PyObject* obj, long* val)
1664 {
1665 if (PyNumber_Check(obj)) {
1666 if (val) *val = PyInt_AsLong(obj);
1667 return 1;
1668 }
1669 else {
1670 SWIG_Python_TypeError("number", obj);
1671 }
1672 return 0;
1673 }
1674
1675
1676 #if INT_MAX != LONG_MAX
1677 SWIGINTERN int
1678 SWIG_AsVal_int(PyObject *obj, int *val)
1679 {
1680 const char* errmsg = val ? "int" : (char*)0;
1681 long v;
1682 if (SWIG_AsVal_long(obj, &v)) {
1683 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1684 if (val) *val = static_cast<int >(v);
1685 return 1;
1686 } else {
1687 return 0;
1688 }
1689 } else {
1690 PyErr_Clear();
1691 }
1692 if (val) {
1693 SWIG_type_error(errmsg, obj);
1694 }
1695 return 0;
1696 }
1697 #else
1698 SWIGINTERNINLINE int
1699 SWIG_AsVal_int(PyObject *obj, int *val)
1700 {
1701 return SWIG_AsVal_long(obj,(long*)val);
1702 }
1703 #endif
1704
1705
1706 SWIGINTERNINLINE int
1707 SWIG_As_int(PyObject* obj)
1708 {
1709 int v;
1710 if (!SWIG_AsVal_int(obj, &v)) {
1711 /*
1712 this is needed to make valgrind/purify happier.
1713 */
1714 memset((void*)&v, 0, sizeof(int));
1715 }
1716 return v;
1717 }
1718
1719
1720 SWIGINTERNINLINE int
1721 SWIG_Check_int(PyObject* obj)
1722 {
1723 return SWIG_AsVal_int(obj, (int*)0);
1724 }
1725
1726 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
1727
1728 #include <wx/stockitem.h>
1729
1730 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
1731 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
1732 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
1733
1734 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1735 #define SWIG_From_long PyInt_FromLong
1736 /*@@*/
1737
1738
1739 SWIGINTERNINLINE long
1740 SWIG_As_long(PyObject* obj)
1741 {
1742 long v;
1743 if (!SWIG_AsVal_long(obj, &v)) {
1744 /*
1745 this is needed to make valgrind/purify happier.
1746 */
1747 memset((void*)&v, 0, sizeof(long));
1748 }
1749 return v;
1750 }
1751
1752
1753 SWIGINTERNINLINE int
1754 SWIG_Check_long(PyObject* obj)
1755 {
1756 return SWIG_AsVal_long(obj, (long*)0);
1757 }
1758
1759
1760 SWIGINTERN int
1761 SWIG_AsVal_bool(PyObject *obj, bool *val)
1762 {
1763 if (obj == Py_True) {
1764 if (val) *val = true;
1765 return 1;
1766 }
1767 if (obj == Py_False) {
1768 if (val) *val = false;
1769 return 1;
1770 }
1771 int res = 0;
1772 if (SWIG_AsVal_int(obj, &res)) {
1773 if (val) *val = res ? true : false;
1774 return 1;
1775 } else {
1776 PyErr_Clear();
1777 }
1778 if (val) {
1779 SWIG_type_error("bool", obj);
1780 }
1781 return 0;
1782 }
1783
1784
1785 SWIGINTERNINLINE bool
1786 SWIG_As_bool(PyObject* obj)
1787 {
1788 bool v;
1789 if (!SWIG_AsVal_bool(obj, &v)) {
1790 /*
1791 this is needed to make valgrind/purify happier.
1792 */
1793 memset((void*)&v, 0, sizeof(bool));
1794 }
1795 return v;
1796 }
1797
1798
1799 SWIGINTERNINLINE int
1800 SWIG_Check_bool(PyObject* obj)
1801 {
1802 return SWIG_AsVal_bool(obj, (bool*)0);
1803 }
1804
1805
1806 static PyObject* t_output_helper(PyObject* result, PyObject* obj)
1807 {
1808 PyObject* o2;
1809 PyObject* o3;
1810 if (!result) {
1811 result = obj;
1812 } else if (result == Py_None) {
1813 Py_DECREF(result);
1814 result = obj;
1815 } else {
1816 if (!PyTuple_Check(result)) {
1817 o2 = result;
1818 result = PyTuple_New(1);
1819 PyTuple_SET_ITEM(result, 0, o2);
1820 }
1821 o3 = PyTuple_New(1);
1822 PyTuple_SetItem(o3, 0, obj);
1823 o2 = result;
1824 result = PySequence_Concat(o2, o3);
1825 Py_DECREF(o2);
1826 Py_DECREF(o3);
1827 }
1828 return result;
1829 }
1830
1831
1832
1833 SWIGINTERN int
1834 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1835 {
1836 long v = 0;
1837 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1838 SWIG_Python_TypeError("unsigned number", obj);
1839 }
1840 else if (val)
1841 *val = (unsigned long)v;
1842 return 1;
1843 }
1844
1845
1846 SWIGINTERNINLINE unsigned long
1847 SWIG_As_unsigned_SS_long(PyObject* obj)
1848 {
1849 unsigned long v;
1850 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1851 /*
1852 this is needed to make valgrind/purify happier.
1853 */
1854 memset((void*)&v, 0, sizeof(unsigned long));
1855 }
1856 return v;
1857 }
1858
1859
1860 SWIGINTERNINLINE int
1861 SWIG_Check_unsigned_SS_long(PyObject* obj)
1862 {
1863 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1864 }
1865
1866
1867 SWIGINTERNINLINE PyObject*
1868 SWIG_From_unsigned_SS_long(unsigned long value)
1869 {
1870 return (value > LONG_MAX) ?
1871 PyLong_FromUnsignedLong(value)
1872 : PyInt_FromLong(static_cast<long >(value));
1873 }
1874
1875
1876 void* wxGetXDisplay()
1877 {
1878 #ifdef __WXGTK__
1879 return wxGetDisplay();
1880 #else
1881 return NULL;
1882 #endif
1883 }
1884
1885
1886 wxWindow* FindWindowAtPointer() {
1887 wxPoint unused;
1888 return wxFindWindowAtPointer(unused);
1889 }
1890
1891
1892 bool wxThread_IsMain() {
1893 #ifdef WXP_WITH_THREAD
1894 return wxThread::IsMain();
1895 #else
1896 return true;
1897 #endif
1898 }
1899
1900 static void wxCaret_Destroy(wxCaret *self){
1901 delete self;
1902 }
1903
1904 #include <wx/snglinst.h>
1905
1906
1907 #ifdef __WXMSW__
1908 #include <wx/msw/private.h>
1909 #include <wx/dynload.h>
1910 #endif
1911
1912
1913
1914 bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc
1915 #if 0
1916 , int method
1917 #endif
1918 )
1919 {
1920 #ifdef __WXMSW__
1921 #if 0
1922 switch (method)
1923 {
1924 case 1:
1925 // This one only partially works. Appears to be an undocumented
1926 // "standard" convention that not all widgets adhear to. For
1927 // example, for some widgets backgrounds or non-client areas may
1928 // not be painted.
1929 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
1930 break;
1931
1932 case 2:
1933 #endif
1934 // This one works much better, nearly all widgets and their
1935 // children are captured correctly[**]. Prior to the big
1936 // background erase changes that Vadim did in 2004-2005 this
1937 // method failed badly on XP with Themes activated, most native
1938 // widgets draw only partially, if at all. Without themes it
1939 // worked just like on Win2k. After those changes this method
1940 // works very well.
1941 //
1942 // ** For example the radio buttons in a wxRadioBox are not its
1943 // children by default, but you can capture it via the panel
1944 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
1945 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
1946 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
1947 PRF_ERASEBKGND | PRF_OWNED );
1948 return true;
1949 #if 0
1950 break;
1951
1952 case 3:
1953 // This one is only defined in the latest SDK and is only
1954 // available on XP. MSDN says it is similar to sending WM_PRINT
1955 // so I expect that it will work similar to the above. Since it
1956 // is avaialble only on XP, it can't be compiled like this and
1957 // will have to be loaded dynamically.
1958 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
1959
1960 // fall through
1961
1962 case 4:
1963 // Use PrintWindow if available, or fallback to WM_PRINT
1964 // otherwise. Unfortunately using PrintWindow is even worse than
1965 // WM_PRINT. For most native widgets nothing is drawn to the dc
1966 // at all, with or without Themes.
1967 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
1968 static bool s_triedToLoad = false;
1969 static PrintWindow_t pfnPrintWindow = NULL;
1970 if ( !s_triedToLoad )
1971 {
1972
1973 s_triedToLoad = true;
1974 wxDynamicLibrary dllUser32(_T("user32.dll"));
1975 if ( dllUser32.IsLoaded() )
1976 {
1977 wxLogNull nolog; // Don't report errors here
1978 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
1979 }
1980 }
1981 if (pfnPrintWindow)
1982 {
1983 //printf("Using PrintWindow\n");
1984 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
1985 }
1986 else
1987 {
1988 //printf("Using WM_PRINT\n");
1989 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
1990 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
1991 PRF_ERASEBKGND | PRF_OWNED );
1992 }
1993 }
1994 #endif // 0
1995 #else
1996 return false;
1997 #endif // __WXMSW__
1998 }
1999
2000
2001
2002 #include <wx/tipdlg.h>
2003
2004
2005 class wxPyTipProvider : public wxTipProvider {
2006 public:
2007 wxPyTipProvider(size_t currentTip)
2008 : wxTipProvider(currentTip) {}
2009
2010 DEC_PYCALLBACK_STRING__pure(GetTip);
2011 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
2012 PYPRIVATE;
2013 };
2014
2015 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
2016 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
2017
2018
2019 IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
2020
2021 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
2022
2023 wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id)
2024 : wxTimer(owner, id)
2025 {
2026 if (owner == NULL) SetOwner(this);
2027 }
2028
2029
2030 SWIGINTERN PyObject *
2031 SWIG_FromCharPtr(const char* cptr)
2032 {
2033 if (cptr) {
2034 size_t size = strlen(cptr);
2035 if (size > INT_MAX) {
2036 return SWIG_NewPointerObj(const_cast<char* >(cptr),
2037 SWIG_TypeQuery("char *"), 0);
2038 } else {
2039 if (size != 0) {
2040 return PyString_FromStringAndSize(cptr, size);
2041 } else {
2042 return PyString_FromString(cptr);
2043 }
2044 }
2045 }
2046 Py_INCREF(Py_None);
2047 return Py_None;
2048 }
2049
2050
2051 SWIGINTERNINLINE int
2052 SWIG_CheckUnsignedLongInRange(unsigned long value,
2053 unsigned long max_value,
2054 const char *errmsg)
2055 {
2056 if (value > max_value) {
2057 if (errmsg) {
2058 PyErr_Format(PyExc_OverflowError,
2059 "value %lu is greater than '%s' minimum %lu",
2060 value, errmsg, max_value);
2061 }
2062 return 0;
2063 }
2064 return 1;
2065 }
2066
2067
2068 #if UINT_MAX != ULONG_MAX
2069 SWIGINTERN int
2070 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2071 {
2072 const char* errmsg = val ? "unsigned int" : (char*)0;
2073 unsigned long v;
2074 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
2075 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
2076 if (val) *val = static_cast<unsigned int >(v);
2077 return 1;
2078 }
2079 } else {
2080 PyErr_Clear();
2081 }
2082 if (val) {
2083 SWIG_type_error(errmsg, obj);
2084 }
2085 return 0;
2086 }
2087 #else
2088 SWIGINTERNINLINE unsigned int
2089 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2090 {
2091 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
2092 }
2093 #endif
2094
2095
2096 SWIGINTERNINLINE unsigned int
2097 SWIG_As_unsigned_SS_int(PyObject* obj)
2098 {
2099 unsigned int v;
2100 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
2101 /*
2102 this is needed to make valgrind/purify happier.
2103 */
2104 memset((void*)&v, 0, sizeof(unsigned int));
2105 }
2106 return v;
2107 }
2108
2109
2110 SWIGINTERNINLINE int
2111 SWIG_Check_unsigned_SS_int(PyObject* obj)
2112 {
2113 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
2114 }
2115
2116 static wxString wxLog_TimeStamp(){
2117 wxString msg;
2118 wxLog::TimeStamp(&msg);
2119 return msg;
2120 }
2121 static void wxLog_Destroy(wxLog *self){ delete self; }
2122 // Make some wrappers that double any % signs so they are 'escaped'
2123 void wxPyLogFatalError(const wxString& msg)
2124 {
2125 wxString m(msg);
2126 m.Replace(wxT("%"), wxT("%%"));
2127 wxLogFatalError(m);
2128 }
2129
2130 void wxPyLogError(const wxString& msg)
2131 {
2132 wxString m(msg);
2133 m.Replace(wxT("%"), wxT("%%"));
2134 wxLogError(m);
2135 }
2136
2137 void wxPyLogWarning(const wxString& msg)
2138 {
2139 wxString m(msg);
2140 m.Replace(wxT("%"), wxT("%%"));
2141 wxLogWarning(m);
2142 }
2143
2144 void wxPyLogMessage(const wxString& msg)
2145 {
2146 wxString m(msg);
2147 m.Replace(wxT("%"), wxT("%%"));
2148 wxLogMessage(m);
2149 }
2150
2151 void wxPyLogInfo(const wxString& msg)
2152 {
2153 wxString m(msg);
2154 m.Replace(wxT("%"), wxT("%%"));
2155 wxLogInfo(m);
2156 }
2157
2158 void wxPyLogDebug(const wxString& msg)
2159 {
2160 wxString m(msg);
2161 m.Replace(wxT("%"), wxT("%%"));
2162 wxLogDebug(m);
2163 }
2164
2165 void wxPyLogVerbose(const wxString& msg)
2166 {
2167 wxString m(msg);
2168 m.Replace(wxT("%"), wxT("%%"));
2169 wxLogVerbose(m);
2170 }
2171
2172 void wxPyLogStatus(const wxString& msg)
2173 {
2174 wxString m(msg);
2175 m.Replace(wxT("%"), wxT("%%"));
2176 wxLogStatus(m);
2177 }
2178
2179 void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg)
2180 {
2181 wxString m(msg);
2182 m.Replace(wxT("%"), wxT("%%"));
2183 wxLogStatus(pFrame, m);
2184 }
2185
2186 void wxPyLogSysError(const wxString& msg)
2187 {
2188 wxString m(msg);
2189 m.Replace(wxT("%"), wxT("%%"));
2190 wxLogSysError(m);
2191 }
2192
2193 void wxPyLogGeneric(unsigned long level, const wxString& msg)
2194 {
2195 wxString m(msg);
2196 m.Replace(wxT("%"), wxT("%%"));
2197 wxLogGeneric(level, m);
2198 }
2199
2200 void wxPyLogTrace(unsigned long mask, const wxString& msg)
2201 {
2202 wxString m(msg);
2203 m.Replace(wxT("%"), wxT("%%"));
2204 wxLogTrace(mask, m);
2205 }
2206
2207 void wxPyLogTrace(const wxString& mask, const wxString& msg)
2208 {
2209 wxString m(msg);
2210 m.Replace(wxT("%"), wxT("%%"));
2211 wxLogTrace(mask, m);
2212 }
2213
2214
2215
2216 // A wxLog class that can be derived from in wxPython
2217 class wxPyLog : public wxLog {
2218 public:
2219 wxPyLog() : wxLog() {}
2220
2221 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
2222 bool found;
2223 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2224 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
2225 PyObject* s = wx2PyString(szString);
2226 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
2227 Py_DECREF(s);
2228 }
2229 wxPyEndBlockThreads(blocked);
2230 if (! found)
2231 wxLog::DoLog(level, szString, t);
2232 }
2233
2234 virtual void DoLogString(const wxChar *szString, time_t t) {
2235 bool found;
2236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2237 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
2238 PyObject* s = wx2PyString(szString);
2239 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
2240 Py_DECREF(s);
2241 }
2242 wxPyEndBlockThreads(blocked);
2243 if (! found)
2244 wxLog::DoLogString(szString, t);
2245 }
2246
2247 DEC_PYCALLBACK_VOID_(Flush);
2248 PYPRIVATE;
2249 };
2250 IMP_PYCALLBACK_VOID_(wxPyLog, wxLog, Flush);
2251
2252
2253
2254
2255 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
2256
2257
2258 #include <wx/joystick.h>
2259
2260
2261 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
2262 // A C++ stub class for wxJoystick for platforms that don't have it.
2263 class wxJoystick : public wxObject {
2264 public:
2265 wxJoystick(int joystick = wxJOYSTICK1) {
2266 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2267 PyErr_SetString(PyExc_NotImplementedError,
2268 "wxJoystick is not available on this platform.");
2269 wxPyEndBlockThreads(blocked);
2270 }
2271 wxPoint GetPosition() { return wxPoint(-1,-1); }
2272 int GetZPosition() { return -1; }
2273 int GetButtonState() { return -1; }
2274 int GetPOVPosition() { return -1; }
2275 int GetPOVCTSPosition() { return -1; }
2276 int GetRudderPosition() { return -1; }
2277 int GetUPosition() { return -1; }
2278 int GetVPosition() { return -1; }
2279 int GetMovementThreshold() { return -1; }
2280 void SetMovementThreshold(int threshold) {}
2281
2282 bool IsOk(void) { return false; }
2283 int GetNumberJoysticks() { return -1; }
2284 int GetManufacturerId() { return -1; }
2285 int GetProductId() { return -1; }
2286 wxString GetProductName() { return wxEmptyString; }
2287 int GetXMin() { return -1; }
2288 int GetYMin() { return -1; }
2289 int GetZMin() { return -1; }
2290 int GetXMax() { return -1; }
2291 int GetYMax() { return -1; }
2292 int GetZMax() { return -1; }
2293 int GetNumberButtons() { return -1; }
2294 int GetNumberAxes() { return -1; }
2295 int GetMaxButtons() { return -1; }
2296 int GetMaxAxes() { return -1; }
2297 int GetPollingMin() { return -1; }
2298 int GetPollingMax() { return -1; }
2299 int GetRudderMin() { return -1; }
2300 int GetRudderMax() { return -1; }
2301 int GetUMin() { return -1; }
2302 int GetUMax() { return -1; }
2303 int GetVMin() { return -1; }
2304 int GetVMax() { return -1; }
2305
2306 bool HasRudder() { return false; }
2307 bool HasZ() { return false; }
2308 bool HasU() { return false; }
2309 bool HasV() { return false; }
2310 bool HasPOV() { return false; }
2311 bool HasPOV4Dir() { return false; }
2312 bool HasPOVCTS() { return false; }
2313
2314 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
2315 bool ReleaseCapture() { return false; }
2316 };
2317 #endif
2318
2319
2320 #include <wx/sound.h>
2321
2322
2323 #if !wxUSE_SOUND
2324 // A C++ stub class for wxWave for platforms that don't have it.
2325 class wxSound : public wxObject
2326 {
2327 public:
2328 wxSound() {
2329 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2330 PyErr_SetString(PyExc_NotImplementedError,
2331 "wxSound is not available on this platform.");
2332 wxPyEndBlockThreads(blocked);
2333 }
2334 wxSound(const wxString&/*, bool*/) {
2335 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2336 PyErr_SetString(PyExc_NotImplementedError,
2337 "wxSound is not available on this platform.");
2338 wxPyEndBlockThreads(blocked);
2339 }
2340 wxSound(int, const wxByte*) {
2341 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2342 PyErr_SetString(PyExc_NotImplementedError,
2343 "wxSound is not available on this platform.");
2344 wxPyEndBlockThreads(blocked);
2345 }
2346
2347 ~wxSound() {};
2348
2349 bool Create(const wxString&/*, bool*/) { return false; }
2350 bool Create(int, const wxByte*) { return false; };
2351 bool IsOk() { return false; };
2352 bool Play(unsigned) const { return false; }
2353 static bool Play(const wxString&, unsigned) { return false; }
2354 static void Stop() {}
2355 };
2356
2357 #endif
2358
2359 static wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){
2360 if (fileName.Length() == 0)
2361 return new wxSound;
2362 else
2363 return new wxSound(fileName);
2364 }
2365 static wxSound *new_wxSound(PyObject *data){
2366 unsigned char* buffer; int size;
2367 wxSound *sound = NULL;
2368
2369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2370 if (!PyArg_Parse(data, "t#", &buffer, &size))
2371 goto done;
2372 sound = new wxSound(size, buffer);
2373 done:
2374 wxPyEndBlockThreads(blocked);
2375 return sound;
2376 }
2377 static bool wxSound_CreateFromData(wxSound *self,PyObject *data){
2378 #ifndef __WXMAC__
2379 unsigned char* buffer;
2380 int size;
2381 bool rv = false;
2382
2383 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2384 if (!PyArg_Parse(data, "t#", &buffer, &size))
2385 goto done;
2386 rv = self->Create(size, buffer);
2387 done:
2388 wxPyEndBlockThreads(blocked);
2389 return rv;
2390 #else
2391 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2392 PyErr_SetString(PyExc_NotImplementedError,
2393 "Create from data is not available on this platform.");
2394 wxPyEndBlockThreads(blocked);
2395 return false;
2396 #endif
2397 }
2398
2399 #include <wx/mimetype.h>
2400
2401 static PyObject *wxFileType_GetMimeType(wxFileType *self){
2402 wxString str;
2403 if (self->GetMimeType(&str))
2404 return wx2PyString(str);
2405 else
2406 RETURN_NONE();
2407 }
2408 static PyObject *wxFileType_GetMimeTypes(wxFileType *self){
2409 wxArrayString arr;
2410 if (self->GetMimeTypes(arr))
2411 return wxArrayString2PyList_helper(arr);
2412 else
2413 RETURN_NONE();
2414 }
2415 static PyObject *wxFileType_GetExtensions(wxFileType *self){
2416 wxArrayString arr;
2417 if (self->GetExtensions(arr))
2418 return wxArrayString2PyList_helper(arr);
2419 else
2420 RETURN_NONE();
2421 }
2422 static wxIcon *wxFileType_GetIcon(wxFileType *self){
2423 wxIconLocation loc;
2424 if (self->GetIcon(&loc))
2425 return new wxIcon(loc);
2426 else
2427 return NULL;
2428 }
2429 static PyObject *wxFileType_GetIconInfo(wxFileType *self){
2430 wxIconLocation loc;
2431 if (self->GetIcon(&loc)) {
2432 wxString iconFile = loc.GetFileName();
2433 int iconIndex = -1;
2434
2435 iconIndex = loc.GetIndex();
2436
2437 // Make a tuple and put the values in it
2438 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2439 PyObject* tuple = PyTuple_New(3);
2440 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
2441 wxT("wxIcon"), true));
2442 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
2443 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
2444 wxPyEndBlockThreads(blocked);
2445 return tuple;
2446 }
2447 else
2448 RETURN_NONE();
2449 }
2450 static PyObject *wxFileType_GetDescription(wxFileType *self){
2451 wxString str;
2452 if (self->GetDescription(&str))
2453 return wx2PyString(str);
2454 else
2455 RETURN_NONE();
2456 }
2457 static PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2458 wxString str;
2459 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
2460 return wx2PyString(str);
2461 else
2462 RETURN_NONE();
2463 }
2464 static PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2465 wxString str;
2466 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
2467 return wx2PyString(str);
2468 else
2469 RETURN_NONE();
2470 }
2471 static PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2472 wxArrayString verbs;
2473 wxArrayString commands;
2474 if (self->GetAllCommands(&verbs, &commands,
2475 wxFileType::MessageParameters(filename, mimetype))) {
2476 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2477 PyObject* tuple = PyTuple_New(2);
2478 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
2479 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
2480 wxPyEndBlockThreads(blocked);
2481 return tuple;
2482 }
2483 else
2484 RETURN_NONE();
2485 }
2486 static wxString wxFileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
2487 return wxFileType::ExpandCommand(command,
2488 wxFileType::MessageParameters(filename, mimetype));
2489 }
2490 static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
2491 wxArrayString arr;
2492 self->EnumAllFileTypes(arr);
2493 return wxArrayString2PyList_helper(arr);
2494 }
2495
2496 #include <wx/artprov.h>
2497
2498 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
2499 static const wxString wxPyART_MENU(wxART_MENU);
2500 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
2501 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
2502 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
2503 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
2504 static const wxString wxPyART_BUTTON(wxART_BUTTON);
2505 static const wxString wxPyART_OTHER(wxART_OTHER);
2506 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
2507 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
2508 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
2509 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
2510 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
2511 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
2512 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
2513 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
2514 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
2515 static const wxString wxPyART_GO_UP(wxART_GO_UP);
2516 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
2517 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
2518 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
2519 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
2520 static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE);
2521 static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS);
2522 static const wxString wxPyART_PRINT(wxART_PRINT);
2523 static const wxString wxPyART_HELP(wxART_HELP);
2524 static const wxString wxPyART_TIP(wxART_TIP);
2525 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
2526 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
2527 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
2528 static const wxString wxPyART_HARDDISK(wxART_HARDDISK);
2529 static const wxString wxPyART_FLOPPY(wxART_FLOPPY);
2530 static const wxString wxPyART_CDROM(wxART_CDROM);
2531 static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE);
2532 static const wxString wxPyART_FOLDER(wxART_FOLDER);
2533 static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN);
2534 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
2535 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
2536 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
2537 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
2538 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
2539 static const wxString wxPyART_ERROR(wxART_ERROR);
2540 static const wxString wxPyART_QUESTION(wxART_QUESTION);
2541 static const wxString wxPyART_WARNING(wxART_WARNING);
2542 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
2543 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
2544 static const wxString wxPyART_COPY(wxART_COPY);
2545 static const wxString wxPyART_CUT(wxART_CUT);
2546 static const wxString wxPyART_PASTE(wxART_PASTE);
2547 static const wxString wxPyART_DELETE(wxART_DELETE);
2548 static const wxString wxPyART_NEW(wxART_NEW);
2549 static const wxString wxPyART_UNDO(wxART_UNDO);
2550 static const wxString wxPyART_REDO(wxART_REDO);
2551 static const wxString wxPyART_QUIT(wxART_QUIT);
2552 static const wxString wxPyART_FIND(wxART_FIND);
2553 static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE);
2554 // Python aware wxArtProvider
2555 class wxPyArtProvider : public wxArtProvider {
2556 public:
2557
2558 virtual wxBitmap CreateBitmap(const wxArtID& id,
2559 const wxArtClient& client,
2560 const wxSize& size) {
2561 wxBitmap rval = wxNullBitmap;
2562 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2563 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
2564 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
2565 PyObject* ro;
2566 wxBitmap* ptr;
2567 PyObject* s1, *s2;
2568 s1 = wx2PyString(id);
2569 s2 = wx2PyString(client);
2570 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
2571 Py_DECREF(so);
2572 Py_DECREF(s1);
2573 Py_DECREF(s2);
2574 if (ro) {
2575 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
2576 rval = *ptr;
2577 Py_DECREF(ro);
2578 }
2579 }
2580 wxPyEndBlockThreads(blocked);
2581 return rval;
2582 }
2583
2584 PYPRIVATE;
2585 };
2586
2587 static void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
2588
2589
2590
2591 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
2592 PyObject* ret = PyTuple_New(3);
2593 if (ret) {
2594 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
2595 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
2596 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
2597 }
2598 return ret;
2599 }
2600
2601 static PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
2602 bool cont;
2603 long index = 0;
2604 wxString value;
2605
2606 cont = self->GetFirstGroup(value, index);
2607 return __EnumerationHelper(cont, value, index);
2608 }
2609 static PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
2610 bool cont;
2611 wxString value;
2612
2613 cont = self->GetNextGroup(value, index);
2614 return __EnumerationHelper(cont, value, index);
2615 }
2616 static PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
2617 bool cont;
2618 long index = 0;
2619 wxString value;
2620
2621 cont = self->GetFirstEntry(value, index);
2622 return __EnumerationHelper(cont, value, index);
2623 }
2624 static PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
2625 bool cont;
2626 wxString value;
2627
2628 cont = self->GetNextEntry(value, index);
2629 return __EnumerationHelper(cont, value, index);
2630 }
2631 static long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){
2632 long rv;
2633 self->Read(key, &rv, defaultVal);
2634 return rv;
2635 }
2636
2637 SWIGINTERN int
2638 SWIG_AsVal_double(PyObject *obj, double* val)
2639 {
2640 if (PyNumber_Check(obj)) {
2641 if (val) *val = PyFloat_AsDouble(obj);
2642 return 1;
2643 }
2644 else {
2645 SWIG_Python_TypeError("number", obj);
2646 }
2647 return 0;
2648 }
2649
2650
2651 SWIGINTERNINLINE double
2652 SWIG_As_double(PyObject* obj)
2653 {
2654 double v;
2655 if (!SWIG_AsVal_double(obj, &v)) {
2656 /*
2657 this is needed to make valgrind/purify happier.
2658 */
2659 memset((void*)&v, 0, sizeof(double));
2660 }
2661 return v;
2662 }
2663
2664
2665 SWIGINTERNINLINE int
2666 SWIG_Check_double(PyObject* obj)
2667 {
2668 return SWIG_AsVal_double(obj, (double*)0);
2669 }
2670
2671 static double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){
2672 double rv;
2673 self->Read(key, &rv, defaultVal);
2674 return rv;
2675 }
2676
2677 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
2678 #define SWIG_From_double PyFloat_FromDouble
2679 /*@@*/
2680
2681 static bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){
2682 bool rv;
2683 self->Read(key, &rv, defaultVal);
2684 return rv;
2685 }
2686
2687 #include <wx/datetime.h>
2688
2689 static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat);
2690 static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat);
2691
2692 #define LOCAL_TZ wxDateTime::Local
2693
2694 static PyObject *wxDateTime_GetAmPmStrings(){
2695 wxString am;
2696 wxString pm;
2697 wxDateTime::GetAmPmStrings(&am, &pm);
2698 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2699 PyObject* tup = PyTuple_New(2);
2700 PyTuple_SET_ITEM(tup, 0, wx2PyString(am));
2701 PyTuple_SET_ITEM(tup, 1, wx2PyString(pm));
2702 wxPyEndBlockThreads(blocked);
2703 return tup;
2704 }
2705
2706 #if UINT_MAX < LONG_MAX
2707 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
2708 #define SWIG_From_unsigned_SS_int SWIG_From_long
2709 /*@@*/
2710 #else
2711 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
2712 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
2713 /*@@*/
2714 #endif
2715
2716 static wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
2717 static wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
2718 static wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
2719 static wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
2720 static wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
2721 static bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
2722 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
2723 return (*self < *other);
2724 }
2725 static bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
2726 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
2727 return (*self <= *other);
2728 }
2729 static bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
2730 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
2731 return (*self > *other);
2732 }
2733 static bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
2734 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
2735 return (*self >= *other);
2736 }
2737 static bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
2738 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
2739 return (*self == *other);
2740 }
2741 static bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
2742 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
2743 return (*self != *other);
2744 }
2745 static int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
2746 const wxChar* rv;
2747 const wxChar* _date = date;
2748 rv = self->ParseRfc822Date(_date);
2749 if (rv == NULL) return -1;
2750 return rv - _date;
2751 }
2752 static int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){
2753 const wxChar* rv;
2754 const wxChar* _date = date;
2755 rv = self->ParseFormat(_date, format, dateDef);
2756 if (rv == NULL) return -1;
2757 return rv - _date;
2758 }
2759 static int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
2760 const wxChar* rv;
2761 const wxChar* _datetime = datetime;
2762 rv = self->ParseDateTime(_datetime);
2763 if (rv == NULL) return -1;
2764 return rv - _datetime;
2765 }
2766 static int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
2767 const wxChar* rv;
2768 const wxChar* _date = date;
2769 rv = self->ParseDate(_date);
2770 if (rv == NULL) return -1;
2771 return rv - _date;
2772 }
2773 static int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
2774 const wxChar* rv;
2775 const wxChar* _time = time;
2776 rv = self->ParseTime(_time);
2777 if (rv == NULL) return -1;
2778 return rv - _time;
2779 }
2780 static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
2781 static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
2782 static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
2783 static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
2784 static bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
2785 static bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
2786 static bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
2787 static bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
2788 static bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
2789 static bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
2790 static wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
2791 static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
2792 static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
2793 static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
2794 static bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
2795 static bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
2796
2797 #include <wx/dataobj.h>
2798
2799 static PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){
2800 size_t count = self->GetFormatCount(dir);
2801 wxDataFormat* formats = new wxDataFormat[count];
2802 self->GetAllFormats(formats, dir);
2803
2804 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2805 PyObject* list = PyList_New(count);
2806 for (size_t i=0; i<count; i++) {
2807 wxDataFormat* format = new wxDataFormat(formats[i]);
2808 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
2809 PyList_SET_ITEM(list, i, obj); // PyList_SET_ITEM steals a reference
2810 }
2811 wxPyEndBlockThreads(blocked);
2812 delete [] formats;
2813 return list;
2814 }
2815 static PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
2816 PyObject* rval = NULL;
2817 size_t size = self->GetDataSize(format);
2818 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2819 if (size) {
2820 char* buf = new char[size];
2821 if (self->GetDataHere(format, buf))
2822 rval = PyString_FromStringAndSize(buf, size);
2823 delete [] buf;
2824 }
2825 if (! rval) {
2826 rval = Py_None;
2827 Py_INCREF(rval);
2828 }
2829 wxPyEndBlockThreads(blocked);
2830 return rval;
2831 }
2832 static bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
2833 bool rval;
2834 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2835 if (PyString_Check(data)) {
2836 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
2837 }
2838 else {
2839 // raise a TypeError if not a string
2840 PyErr_SetString(PyExc_TypeError, "String expected.");
2841 rval = false;
2842 }
2843 wxPyEndBlockThreads(blocked);
2844 return rval;
2845 }
2846 static PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
2847 PyObject* rval = NULL;
2848 size_t size = self->GetDataSize();
2849 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2850 if (size) {
2851 char* buf = new char[size];
2852 if (self->GetDataHere(buf))
2853 rval = PyString_FromStringAndSize(buf, size);
2854 delete [] buf;
2855 }
2856 if (! rval) {
2857 rval = Py_None;
2858 Py_INCREF(rval);
2859 }
2860 wxPyEndBlockThreads(blocked);
2861 return rval;
2862 }
2863 static bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
2864 bool rval;
2865 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2866 if (PyString_Check(data)) {
2867 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
2868 }
2869 else {
2870 // raise a TypeError if not a string
2871 PyErr_SetString(PyExc_TypeError, "String expected.");
2872 rval = false;
2873 }
2874 wxPyEndBlockThreads(blocked);
2875 return rval;
2876 }
2877 // Create a new class for wxPython to use
2878 class wxPyDataObjectSimple : public wxDataObjectSimple {
2879 public:
2880 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
2881 : wxDataObjectSimple(format) {}
2882
2883 DEC_PYCALLBACK_SIZET__const(GetDataSize);
2884 bool GetDataHere(void *buf) const;
2885 bool SetData(size_t len, const void *buf) const;
2886 PYPRIVATE;
2887 };
2888
2889 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
2890
2891 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
2892 // We need to get the data for this object and write it to buf. I think
2893 // the best way to do this for wxPython is to have the Python method
2894 // return either a string or None and then act appropriately with the
2895 // C++ version.
2896
2897 bool rval = false;
2898 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2899 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
2900 PyObject* ro;
2901 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
2902 if (ro) {
2903 rval = (ro != Py_None && PyString_Check(ro));
2904 if (rval)
2905 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
2906 Py_DECREF(ro);
2907 }
2908 }
2909 wxPyEndBlockThreads(blocked);
2910 return rval;
2911 }
2912
2913 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
2914 // For this one we simply need to make a string from buf and len
2915 // and send it to the Python method.
2916 bool rval = false;
2917 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2918 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
2919 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
2920 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
2921 Py_DECREF(data);
2922 }
2923 wxPyEndBlockThreads(blocked);
2924 return rval;
2925 }
2926
2927 // Create a new class for wxPython to use
2928 class wxPyTextDataObject : public wxTextDataObject {
2929 public:
2930 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
2931 : wxTextDataObject(text) {}
2932
2933 DEC_PYCALLBACK_SIZET__const(GetTextLength);
2934 DEC_PYCALLBACK_STRING__const(GetText);
2935 DEC_PYCALLBACK__STRING(SetText);
2936 PYPRIVATE;
2937 };
2938
2939 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
2940 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
2941 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
2942
2943
2944 // Create a new class for wxPython to use
2945 class wxPyBitmapDataObject : public wxBitmapDataObject {
2946 public:
2947 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
2948 : wxBitmapDataObject(bitmap) {}
2949
2950 wxBitmap GetBitmap() const;
2951 void SetBitmap(const wxBitmap& bitmap);
2952 PYPRIVATE;
2953 };
2954
2955 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
2956 wxBitmap* rval = &wxNullBitmap;
2957 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2958 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
2959 PyObject* ro;
2960 wxBitmap* ptr;
2961 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
2962 if (ro) {
2963 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
2964 rval = ptr;
2965 Py_DECREF(ro);
2966 }
2967 }
2968 wxPyEndBlockThreads(blocked);
2969 return *rval;
2970 }
2971
2972 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
2973 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2974 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
2975 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
2976 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
2977 Py_DECREF(bo);
2978 }
2979 wxPyEndBlockThreads(blocked);
2980 }
2981
2982 static wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){
2983 return new wxCustomDataObject(wxDataFormat(formatName));
2984 }
2985 static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
2986 bool rval;
2987 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2988 if (PyString_Check(data)) {
2989 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
2990 }
2991 else {
2992 // raise a TypeError if not a string
2993 PyErr_SetString(PyExc_TypeError, "String expected.");
2994 rval = false;
2995 }
2996 wxPyEndBlockThreads(blocked);
2997 return rval;
2998 }
2999 static PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
3000 PyObject* obj;
3001 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3002 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
3003 wxPyEndBlockThreads(blocked);
3004 return obj;
3005 }
3006
3007 #include <wx/metafile.h>
3008
3009
3010 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
3011
3012
3013 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
3014 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
3015 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
3016 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
3017 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
3018
3019
3020 class wxPyTextDropTarget : public wxTextDropTarget {
3021 public:
3022 wxPyTextDropTarget() {}
3023
3024 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
3025
3026 DEC_PYCALLBACK__(OnLeave);
3027 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3028 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3029 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3030 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3031
3032 PYPRIVATE;
3033 };
3034
3035 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
3036 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
3037 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
3038 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
3039 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
3040 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
3041
3042
3043
3044 class wxPyFileDropTarget : public wxFileDropTarget {
3045 public:
3046 wxPyFileDropTarget() {}
3047
3048 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
3049
3050 DEC_PYCALLBACK__(OnLeave);
3051 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3052 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3053 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3054 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3055
3056 PYPRIVATE;
3057 };
3058
3059 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
3060 const wxArrayString& filenames) {
3061 bool rval = false;
3062 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3063 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
3064 PyObject* list = wxArrayString2PyList_helper(filenames);
3065 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
3066 Py_DECREF(list);
3067 }
3068 wxPyEndBlockThreads(blocked);
3069 return rval;
3070 }
3071
3072
3073
3074 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
3075 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
3076 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
3077 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
3078 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
3079
3080
3081
3082
3083 static bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
3084
3085 #include <wx/display.h>
3086
3087 static bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
3088 static bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
3089
3090 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
3091 #if !wxUSE_DISPLAY
3092 #include <wx/dynarray.h>
3093 #include <wx/vidmode.h>
3094
3095 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
3096 #include "wx/arrimpl.cpp"
3097 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
3098 const wxVideoMode wxDefaultVideoMode;
3099
3100 class wxDisplay
3101 {
3102 public:
3103 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
3104 ~wxDisplay() {}
3105
3106 static size_t GetCount()
3107 { wxPyRaiseNotImplemented(); return 0; }
3108
3109 static int GetFromPoint(const wxPoint& pt)
3110 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3111 static int GetFromWindow(wxWindow *window)
3112 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
3113
3114 virtual bool IsOk() const { return false; }
3115 virtual wxRect GetGeometry() const { wxRect r; return r; }
3116 virtual wxString GetName() const { return wxEmptyString; }
3117 bool IsPrimary() const { return false; }
3118
3119 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
3120 { wxArrayVideoModes a; return a; }
3121
3122 virtual wxVideoMode GetCurrentMode() const
3123 { return wxDefaultVideoMode; }
3124
3125 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
3126 { return false; }
3127
3128 void ResetMode() {}
3129 };
3130 #endif
3131
3132 static PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){
3133 PyObject* pyList = NULL;
3134 wxArrayVideoModes arr = self->GetModes(mode);
3135 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3136 pyList = PyList_New(0);
3137 for (int i=0; i < arr.GetCount(); i++) {
3138 wxVideoMode* m = new wxVideoMode(arr.Item(i));
3139 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
3140 PyList_Append(pyList, pyObj);
3141 Py_DECREF(pyObj);
3142 }
3143 wxPyEndBlockThreads(blocked);
3144 return pyList;
3145 }
3146
3147 #include <wx/stdpaths.h>
3148
3149 static wxStandardPaths *wxStandardPaths_Get(){
3150 return (wxStandardPaths*) &wxStandardPaths::Get();
3151 }
3152 static void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){}
3153 static wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; }
3154 #ifdef __cplusplus
3155 extern "C" {
3156 #endif
3157 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3158 PyObject *resultobj = NULL;
3159 wxSystemColour arg1 ;
3160 wxColour result;
3161 PyObject * obj0 = 0 ;
3162 char *kwnames[] = {
3163 (char *) "index", NULL
3164 };
3165
3166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
3167 {
3168 arg1 = static_cast<wxSystemColour >(SWIG_As_int(obj0));
3169 if (SWIG_arg_fail(1)) SWIG_fail;
3170 }
3171 {
3172 if (!wxPyCheckForApp()) SWIG_fail;
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 result = wxSystemSettings::GetColour(arg1);
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 {
3180 wxColour * resultptr;
3181 resultptr = new wxColour(static_cast<wxColour & >(result));
3182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3183 }
3184 return resultobj;
3185 fail:
3186 return NULL;
3187 }
3188
3189
3190 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
3191 PyObject *resultobj = NULL;
3192 wxSystemFont arg1 ;
3193 wxFont result;
3194 PyObject * obj0 = 0 ;
3195 char *kwnames[] = {
3196 (char *) "index", NULL
3197 };
3198
3199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
3200 {
3201 arg1 = static_cast<wxSystemFont >(SWIG_As_int(obj0));
3202 if (SWIG_arg_fail(1)) SWIG_fail;
3203 }
3204 {
3205 if (!wxPyCheckForApp()) SWIG_fail;
3206 PyThreadState* __tstate = wxPyBeginAllowThreads();
3207 result = wxSystemSettings::GetFont(arg1);
3208
3209 wxPyEndAllowThreads(__tstate);
3210 if (PyErr_Occurred()) SWIG_fail;
3211 }
3212 {
3213 wxFont * resultptr;
3214 resultptr = new wxFont(static_cast<wxFont & >(result));
3215 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
3216 }
3217 return resultobj;
3218 fail:
3219 return NULL;
3220 }
3221
3222
3223 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
3224 PyObject *resultobj = NULL;
3225 wxSystemMetric arg1 ;
3226 wxWindow *arg2 = (wxWindow *) NULL ;
3227 int result;
3228 PyObject * obj0 = 0 ;
3229 PyObject * obj1 = 0 ;
3230 char *kwnames[] = {
3231 (char *) "index",(char *) "win", NULL
3232 };
3233
3234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) goto fail;
3235 {
3236 arg1 = static_cast<wxSystemMetric >(SWIG_As_int(obj0));
3237 if (SWIG_arg_fail(1)) SWIG_fail;
3238 }
3239 if (obj1) {
3240 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
3241 if (SWIG_arg_fail(2)) SWIG_fail;
3242 }
3243 {
3244 if (!wxPyCheckForApp()) SWIG_fail;
3245 PyThreadState* __tstate = wxPyBeginAllowThreads();
3246 result = (int)wxSystemSettings::GetMetric(arg1,arg2);
3247
3248 wxPyEndAllowThreads(__tstate);
3249 if (PyErr_Occurred()) SWIG_fail;
3250 }
3251 {
3252 resultobj = SWIG_From_int(static_cast<int >(result));
3253 }
3254 return resultobj;
3255 fail:
3256 return NULL;
3257 }
3258
3259
3260 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
3261 PyObject *resultobj = NULL;
3262 wxSystemFeature arg1 ;
3263 bool result;
3264 PyObject * obj0 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "index", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
3270 {
3271 arg1 = static_cast<wxSystemFeature >(SWIG_As_int(obj0));
3272 if (SWIG_arg_fail(1)) SWIG_fail;
3273 }
3274 {
3275 if (!wxPyCheckForApp()) SWIG_fail;
3276 PyThreadState* __tstate = wxPyBeginAllowThreads();
3277 result = (bool)wxSystemSettings::HasFeature(arg1);
3278
3279 wxPyEndAllowThreads(__tstate);
3280 if (PyErr_Occurred()) SWIG_fail;
3281 }
3282 {
3283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3284 }
3285 return resultobj;
3286 fail:
3287 return NULL;
3288 }
3289
3290
3291 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
3292 PyObject *resultobj = NULL;
3293 wxSystemScreenType result;
3294 char *kwnames[] = {
3295 NULL
3296 };
3297
3298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
3299 {
3300 if (!wxPyCheckForApp()) SWIG_fail;
3301 PyThreadState* __tstate = wxPyBeginAllowThreads();
3302 result = (wxSystemScreenType)wxSystemSettings::GetScreenType();
3303
3304 wxPyEndAllowThreads(__tstate);
3305 if (PyErr_Occurred()) SWIG_fail;
3306 }
3307 resultobj = SWIG_From_int((result));
3308 return resultobj;
3309 fail:
3310 return NULL;
3311 }
3312
3313
3314 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
3315 PyObject *resultobj = NULL;
3316 wxSystemScreenType arg1 ;
3317 PyObject * obj0 = 0 ;
3318 char *kwnames[] = {
3319 (char *) "screen", NULL
3320 };
3321
3322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
3323 {
3324 arg1 = static_cast<wxSystemScreenType >(SWIG_As_int(obj0));
3325 if (SWIG_arg_fail(1)) SWIG_fail;
3326 }
3327 {
3328 if (!wxPyCheckForApp()) SWIG_fail;
3329 PyThreadState* __tstate = wxPyBeginAllowThreads();
3330 wxSystemSettings::SetScreenType(arg1);
3331
3332 wxPyEndAllowThreads(__tstate);
3333 if (PyErr_Occurred()) SWIG_fail;
3334 }
3335 Py_INCREF(Py_None); resultobj = Py_None;
3336 return resultobj;
3337 fail:
3338 return NULL;
3339 }
3340
3341
3342 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
3343 PyObject *obj;
3344 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3345 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
3346 Py_INCREF(obj);
3347 return Py_BuildValue((char *)"");
3348 }
3349 static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) {
3350 PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
3351 return 1;
3352 }
3353
3354
3355 static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get(void) {
3356 PyObject *pyobj = NULL;
3357
3358 {
3359 #if wxUSE_UNICODE
3360 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
3361 #else
3362 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
3363 #endif
3364 }
3365 return pyobj;
3366 }
3367
3368
3369 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
3370 PyObject *resultobj = NULL;
3371 wxSystemOptions *result;
3372 char *kwnames[] = {
3373 NULL
3374 };
3375
3376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 result = (wxSystemOptions *)new wxSystemOptions();
3380
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) SWIG_fail;
3383 }
3384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
3385 return resultobj;
3386 fail:
3387 return NULL;
3388 }
3389
3390
3391 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj = NULL;
3393 wxString *arg1 = 0 ;
3394 wxString *arg2 = 0 ;
3395 bool temp1 = false ;
3396 bool temp2 = false ;
3397 PyObject * obj0 = 0 ;
3398 PyObject * obj1 = 0 ;
3399 char *kwnames[] = {
3400 (char *) "name",(char *) "value", NULL
3401 };
3402
3403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
3404 {
3405 arg1 = wxString_in_helper(obj0);
3406 if (arg1 == NULL) SWIG_fail;
3407 temp1 = true;
3408 }
3409 {
3410 arg2 = wxString_in_helper(obj1);
3411 if (arg2 == NULL) SWIG_fail;
3412 temp2 = true;
3413 }
3414 {
3415 PyThreadState* __tstate = wxPyBeginAllowThreads();
3416 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
3417
3418 wxPyEndAllowThreads(__tstate);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 }
3421 Py_INCREF(Py_None); resultobj = Py_None;
3422 {
3423 if (temp1)
3424 delete arg1;
3425 }
3426 {
3427 if (temp2)
3428 delete arg2;
3429 }
3430 return resultobj;
3431 fail:
3432 {
3433 if (temp1)
3434 delete arg1;
3435 }
3436 {
3437 if (temp2)
3438 delete arg2;
3439 }
3440 return NULL;
3441 }
3442
3443
3444 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
3445 PyObject *resultobj = NULL;
3446 wxString *arg1 = 0 ;
3447 int arg2 ;
3448 bool temp1 = false ;
3449 PyObject * obj0 = 0 ;
3450 PyObject * obj1 = 0 ;
3451 char *kwnames[] = {
3452 (char *) "name",(char *) "value", NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
3456 {
3457 arg1 = wxString_in_helper(obj0);
3458 if (arg1 == NULL) SWIG_fail;
3459 temp1 = true;
3460 }
3461 {
3462 arg2 = static_cast<int >(SWIG_As_int(obj1));
3463 if (SWIG_arg_fail(2)) SWIG_fail;
3464 }
3465 {
3466 PyThreadState* __tstate = wxPyBeginAllowThreads();
3467 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
3468
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 Py_INCREF(Py_None); resultobj = Py_None;
3473 {
3474 if (temp1)
3475 delete arg1;
3476 }
3477 return resultobj;
3478 fail:
3479 {
3480 if (temp1)
3481 delete arg1;
3482 }
3483 return NULL;
3484 }
3485
3486
3487 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
3488 PyObject *resultobj = NULL;
3489 wxString *arg1 = 0 ;
3490 wxString result;
3491 bool temp1 = false ;
3492 PyObject * obj0 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "name", NULL
3495 };
3496
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
3498 {
3499 arg1 = wxString_in_helper(obj0);
3500 if (arg1 == NULL) SWIG_fail;
3501 temp1 = true;
3502 }
3503 {
3504 PyThreadState* __tstate = wxPyBeginAllowThreads();
3505 result = wxSystemOptions::GetOption((wxString const &)*arg1);
3506
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 {
3511 #if wxUSE_UNICODE
3512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3513 #else
3514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3515 #endif
3516 }
3517 {
3518 if (temp1)
3519 delete arg1;
3520 }
3521 return resultobj;
3522 fail:
3523 {
3524 if (temp1)
3525 delete arg1;
3526 }
3527 return NULL;
3528 }
3529
3530
3531 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
3532 PyObject *resultobj = NULL;
3533 wxString *arg1 = 0 ;
3534 int result;
3535 bool temp1 = false ;
3536 PyObject * obj0 = 0 ;
3537 char *kwnames[] = {
3538 (char *) "name", NULL
3539 };
3540
3541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
3542 {
3543 arg1 = wxString_in_helper(obj0);
3544 if (arg1 == NULL) SWIG_fail;
3545 temp1 = true;
3546 }
3547 {
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
3550
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 {
3555 resultobj = SWIG_From_int(static_cast<int >(result));
3556 }
3557 {
3558 if (temp1)
3559 delete arg1;
3560 }
3561 return resultobj;
3562 fail:
3563 {
3564 if (temp1)
3565 delete arg1;
3566 }
3567 return NULL;
3568 }
3569
3570
3571 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
3572 PyObject *resultobj = NULL;
3573 wxString *arg1 = 0 ;
3574 bool result;
3575 bool temp1 = false ;
3576 PyObject * obj0 = 0 ;
3577 char *kwnames[] = {
3578 (char *) "name", NULL
3579 };
3580
3581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
3582 {
3583 arg1 = wxString_in_helper(obj0);
3584 if (arg1 == NULL) SWIG_fail;
3585 temp1 = true;
3586 }
3587 {
3588 PyThreadState* __tstate = wxPyBeginAllowThreads();
3589 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
3590
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 {
3595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3596 }
3597 {
3598 if (temp1)
3599 delete arg1;
3600 }
3601 return resultobj;
3602 fail:
3603 {
3604 if (temp1)
3605 delete arg1;
3606 }
3607 return NULL;
3608 }
3609
3610
3611 static PyObject *_wrap_SystemOptions_IsFalse(PyObject *, PyObject *args, PyObject *kwargs) {
3612 PyObject *resultobj = NULL;
3613 wxString *arg1 = 0 ;
3614 bool result;
3615 bool temp1 = false ;
3616 PyObject * obj0 = 0 ;
3617 char *kwnames[] = {
3618 (char *) "name", NULL
3619 };
3620
3621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) goto fail;
3622 {
3623 arg1 = wxString_in_helper(obj0);
3624 if (arg1 == NULL) SWIG_fail;
3625 temp1 = true;
3626 }
3627 {
3628 PyThreadState* __tstate = wxPyBeginAllowThreads();
3629 result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1);
3630
3631 wxPyEndAllowThreads(__tstate);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 }
3634 {
3635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3636 }
3637 {
3638 if (temp1)
3639 delete arg1;
3640 }
3641 return resultobj;
3642 fail:
3643 {
3644 if (temp1)
3645 delete arg1;
3646 }
3647 return NULL;
3648 }
3649
3650
3651 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
3652 PyObject *obj;
3653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3654 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
3655 Py_INCREF(obj);
3656 return Py_BuildValue((char *)"");
3657 }
3658 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
3659 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
3660 return 1;
3661 }
3662
3663
3664 static PyObject *_wrap_FileSelectorPromptStr_get(void) {
3665 PyObject *pyobj = NULL;
3666
3667 {
3668 #if wxUSE_UNICODE
3669 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
3670 #else
3671 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
3672 #endif
3673 }
3674 return pyobj;
3675 }
3676
3677
3678 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
3679 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
3680 return 1;
3681 }
3682
3683
3684 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get(void) {
3685 PyObject *pyobj = NULL;
3686
3687 {
3688 #if wxUSE_UNICODE
3689 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
3690 #else
3691 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
3692 #endif
3693 }
3694 return pyobj;
3695 }
3696
3697
3698 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
3699 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
3700 return 1;
3701 }
3702
3703
3704 static PyObject *_wrap_DirSelectorPromptStr_get(void) {
3705 PyObject *pyobj = NULL;
3706
3707 {
3708 #if wxUSE_UNICODE
3709 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
3710 #else
3711 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
3712 #endif
3713 }
3714 return pyobj;
3715 }
3716
3717
3718 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
3719 PyObject *resultobj = NULL;
3720 long result;
3721 char *kwnames[] = {
3722 NULL
3723 };
3724
3725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
3726 {
3727 PyThreadState* __tstate = wxPyBeginAllowThreads();
3728 result = (long)wxNewId();
3729
3730 wxPyEndAllowThreads(__tstate);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 {
3734 resultobj = SWIG_From_long(static_cast<long >(result));
3735 }
3736 return resultobj;
3737 fail:
3738 return NULL;
3739 }
3740
3741
3742 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj = NULL;
3744 long arg1 ;
3745 PyObject * obj0 = 0 ;
3746 char *kwnames[] = {
3747 (char *) "id", NULL
3748 };
3749
3750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
3751 {
3752 arg1 = static_cast<long >(SWIG_As_long(obj0));
3753 if (SWIG_arg_fail(1)) SWIG_fail;
3754 }
3755 {
3756 PyThreadState* __tstate = wxPyBeginAllowThreads();
3757 wxRegisterId(arg1);
3758
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) SWIG_fail;
3761 }
3762 Py_INCREF(Py_None); resultobj = Py_None;
3763 return resultobj;
3764 fail:
3765 return NULL;
3766 }
3767
3768
3769 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
3770 PyObject *resultobj = NULL;
3771 long result;
3772 char *kwnames[] = {
3773 NULL
3774 };
3775
3776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
3777 {
3778 PyThreadState* __tstate = wxPyBeginAllowThreads();
3779 result = (long)wxGetCurrentId();
3780
3781 wxPyEndAllowThreads(__tstate);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 }
3784 {
3785 resultobj = SWIG_From_long(static_cast<long >(result));
3786 }
3787 return resultobj;
3788 fail:
3789 return NULL;
3790 }
3791
3792
3793 static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
3794 PyObject *resultobj = NULL;
3795 int arg1 ;
3796 bool result;
3797 PyObject * obj0 = 0 ;
3798 char *kwnames[] = {
3799 (char *) "id", NULL
3800 };
3801
3802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
3803 {
3804 arg1 = static_cast<int >(SWIG_As_int(obj0));
3805 if (SWIG_arg_fail(1)) SWIG_fail;
3806 }
3807 {
3808 PyThreadState* __tstate = wxPyBeginAllowThreads();
3809 result = (bool)wxIsStockID(arg1);
3810
3811 wxPyEndAllowThreads(__tstate);
3812 if (PyErr_Occurred()) SWIG_fail;
3813 }
3814 {
3815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3816 }
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
3823 static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
3824 PyObject *resultobj = NULL;
3825 int arg1 ;
3826 wxString *arg2 = 0 ;
3827 bool result;
3828 bool temp2 = false ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 char *kwnames[] = {
3832 (char *) "id",(char *) "label", NULL
3833 };
3834
3835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
3836 {
3837 arg1 = static_cast<int >(SWIG_As_int(obj0));
3838 if (SWIG_arg_fail(1)) SWIG_fail;
3839 }
3840 {
3841 arg2 = wxString_in_helper(obj1);
3842 if (arg2 == NULL) SWIG_fail;
3843 temp2 = true;
3844 }
3845 {
3846 PyThreadState* __tstate = wxPyBeginAllowThreads();
3847 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
3848
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 {
3853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3854 }
3855 {
3856 if (temp2)
3857 delete arg2;
3858 }
3859 return resultobj;
3860 fail:
3861 {
3862 if (temp2)
3863 delete arg2;
3864 }
3865 return NULL;
3866 }
3867
3868
3869 static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
3870 PyObject *resultobj = NULL;
3871 int arg1 ;
3872 bool arg2 = (bool) true ;
3873 wxString arg3 = (wxString) wxPyEmptyString ;
3874 wxString result;
3875 PyObject * obj0 = 0 ;
3876 PyObject * obj1 = 0 ;
3877 PyObject * obj2 = 0 ;
3878 char *kwnames[] = {
3879 (char *) "id",(char *) "withCodes",(char *) "accelerator", NULL
3880 };
3881
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
3883 {
3884 arg1 = static_cast<int >(SWIG_As_int(obj0));
3885 if (SWIG_arg_fail(1)) SWIG_fail;
3886 }
3887 if (obj1) {
3888 {
3889 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
3890 if (SWIG_arg_fail(2)) SWIG_fail;
3891 }
3892 }
3893 if (obj2) {
3894 {
3895 wxString* sptr = wxString_in_helper(obj2);
3896 if (sptr == NULL) SWIG_fail;
3897 arg3 = *sptr;
3898 delete sptr;
3899 }
3900 }
3901 {
3902 PyThreadState* __tstate = wxPyBeginAllowThreads();
3903 result = wxGetStockLabel(arg1,arg2,arg3);
3904
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 {
3909 #if wxUSE_UNICODE
3910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3911 #else
3912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3913 #endif
3914 }
3915 return resultobj;
3916 fail:
3917 return NULL;
3918 }
3919
3920
3921 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj = NULL;
3923 char *kwnames[] = {
3924 NULL
3925 };
3926
3927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
3928 {
3929 if (!wxPyCheckForApp()) SWIG_fail;
3930 PyThreadState* __tstate = wxPyBeginAllowThreads();
3931 wxBell();
3932
3933 wxPyEndAllowThreads(__tstate);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 Py_INCREF(Py_None); resultobj = Py_None;
3937 return resultobj;
3938 fail:
3939 return NULL;
3940 }
3941
3942
3943 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3944 PyObject *resultobj = NULL;
3945 char *kwnames[] = {
3946 NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
3950 {
3951 if (!wxPyCheckForApp()) SWIG_fail;
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 wxEndBusyCursor();
3954
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 Py_INCREF(Py_None); resultobj = Py_None;
3959 return resultobj;
3960 fail:
3961 return NULL;
3962 }
3963
3964
3965 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
3966 PyObject *resultobj = NULL;
3967 bool arg1 = (bool) true ;
3968 long result;
3969 PyObject * obj0 = 0 ;
3970 char *kwnames[] = {
3971 (char *) "resetTimer", NULL
3972 };
3973
3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
3975 if (obj0) {
3976 {
3977 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
3978 if (SWIG_arg_fail(1)) SWIG_fail;
3979 }
3980 }
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 result = (long)wxGetElapsedTime(arg1);
3984
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 {
3989 resultobj = SWIG_From_long(static_cast<long >(result));
3990 }
3991 return resultobj;
3992 fail:
3993 return NULL;
3994 }
3995
3996
3997 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
3998 PyObject *resultobj = NULL;
3999 bool result;
4000 char *kwnames[] = {
4001 NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (bool)wxIsBusy();
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 {
4013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4014 }
4015 return resultobj;
4016 fail:
4017 return NULL;
4018 }
4019
4020
4021 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
4022 PyObject *resultobj = NULL;
4023 wxString result;
4024 char *kwnames[] = {
4025 NULL
4026 };
4027
4028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = wxNow();
4032
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 {
4037 #if wxUSE_UNICODE
4038 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4039 #else
4040 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4041 #endif
4042 }
4043 return resultobj;
4044 fail:
4045 return NULL;
4046 }
4047
4048
4049 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
4050 PyObject *resultobj = NULL;
4051 wxString const &arg1_defvalue = wxPyEmptyString ;
4052 wxString *arg1 = (wxString *) &arg1_defvalue ;
4053 bool result;
4054 bool temp1 = false ;
4055 PyObject * obj0 = 0 ;
4056 char *kwnames[] = {
4057 (char *) "command", NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
4061 if (obj0) {
4062 {
4063 arg1 = wxString_in_helper(obj0);
4064 if (arg1 == NULL) SWIG_fail;
4065 temp1 = true;
4066 }
4067 }
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = (bool)wxShell((wxString const &)*arg1);
4071
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 {
4076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4077 }
4078 {
4079 if (temp1)
4080 delete arg1;
4081 }
4082 return resultobj;
4083 fail:
4084 {
4085 if (temp1)
4086 delete arg1;
4087 }
4088 return NULL;
4089 }
4090
4091
4092 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
4093 PyObject *resultobj = NULL;
4094 char *kwnames[] = {
4095 NULL
4096 };
4097
4098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
4099 {
4100 PyThreadState* __tstate = wxPyBeginAllowThreads();
4101 wxStartTimer();
4102
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4106 Py_INCREF(Py_None); resultobj = Py_None;
4107 return resultobj;
4108 fail:
4109 return NULL;
4110 }
4111
4112
4113 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj = NULL;
4115 int *arg1 = (int *) 0 ;
4116 int *arg2 = (int *) 0 ;
4117 int result;
4118 int temp1 ;
4119 int res1 = 0 ;
4120 int temp2 ;
4121 int res2 = 0 ;
4122 char *kwnames[] = {
4123 NULL
4124 };
4125
4126 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4127 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
4129 {
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 result = (int)wxGetOsVersion(arg1,arg2);
4132
4133 wxPyEndAllowThreads(__tstate);
4134 if (PyErr_Occurred()) SWIG_fail;
4135 }
4136 {
4137 resultobj = SWIG_From_int(static_cast<int >(result));
4138 }
4139 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4140 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4141 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4142 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj = NULL;
4151 wxString result;
4152 char *kwnames[] = {
4153 NULL
4154 };
4155
4156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 result = wxGetOsDescription();
4160
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 {
4165 #if wxUSE_UNICODE
4166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4167 #else
4168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4169 #endif
4170 }
4171 return resultobj;
4172 fail:
4173 return NULL;
4174 }
4175
4176
4177 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj = NULL;
4179 wxMemorySize result;
4180 char *kwnames[] = {
4181 NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = wxGetFreeMemory();
4188
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 {
4193 wxMemorySize * resultptr;
4194 resultptr = new wxMemorySize(static_cast<wxMemorySize & >(result));
4195 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMemorySize, 1);
4196 }
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj = NULL;
4205 wxShutdownFlags arg1 ;
4206 bool result;
4207 PyObject * obj0 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "wFlags", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
4213 {
4214 arg1 = static_cast<wxShutdownFlags >(SWIG_As_int(obj0));
4215 if (SWIG_arg_fail(1)) SWIG_fail;
4216 }
4217 {
4218 if (!wxPyCheckForApp()) SWIG_fail;
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (bool)wxShutdown(arg1);
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 {
4226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4227 }
4228 return resultobj;
4229 fail:
4230 return NULL;
4231 }
4232
4233
4234 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
4235 PyObject *resultobj = NULL;
4236 int arg1 ;
4237 PyObject * obj0 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "secs", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
4243 {
4244 arg1 = static_cast<int >(SWIG_As_int(obj0));
4245 if (SWIG_arg_fail(1)) SWIG_fail;
4246 }
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 wxSleep(arg1);
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 Py_INCREF(Py_None); resultobj = Py_None;
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj = NULL;
4263 unsigned long arg1 ;
4264 PyObject * obj0 = 0 ;
4265 char *kwnames[] = {
4266 (char *) "milliseconds", NULL
4267 };
4268
4269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
4270 {
4271 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
4272 if (SWIG_arg_fail(1)) SWIG_fail;
4273 }
4274 {
4275 PyThreadState* __tstate = wxPyBeginAllowThreads();
4276 wxMilliSleep(arg1);
4277
4278 wxPyEndAllowThreads(__tstate);
4279 if (PyErr_Occurred()) SWIG_fail;
4280 }
4281 Py_INCREF(Py_None); resultobj = Py_None;
4282 return resultobj;
4283 fail:
4284 return NULL;
4285 }
4286
4287
4288 static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
4289 PyObject *resultobj = NULL;
4290 unsigned long arg1 ;
4291 PyObject * obj0 = 0 ;
4292 char *kwnames[] = {
4293 (char *) "microseconds", NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
4297 {
4298 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
4299 if (SWIG_arg_fail(1)) SWIG_fail;
4300 }
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 wxMicroSleep(arg1);
4304
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 Py_INCREF(Py_None); resultobj = Py_None;
4309 return resultobj;
4310 fail:
4311 return NULL;
4312 }
4313
4314
4315 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj = NULL;
4317 bool arg1 ;
4318 PyObject * obj0 = 0 ;
4319 char *kwnames[] = {
4320 (char *) "enable", NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
4324 {
4325 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
4326 if (SWIG_arg_fail(1)) SWIG_fail;
4327 }
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 wxEnableTopLevelWindows(arg1);
4331
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 Py_INCREF(Py_None); resultobj = Py_None;
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj = NULL;
4344 wxString *arg1 = 0 ;
4345 wxString result;
4346 bool temp1 = false ;
4347 PyObject * obj0 = 0 ;
4348 char *kwnames[] = {
4349 (char *) "in", NULL
4350 };
4351
4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
4353 {
4354 arg1 = wxString_in_helper(obj0);
4355 if (arg1 == NULL) SWIG_fail;
4356 temp1 = true;
4357 }
4358 {
4359 PyThreadState* __tstate = wxPyBeginAllowThreads();
4360 result = wxStripMenuCodes((wxString const &)*arg1);
4361
4362 wxPyEndAllowThreads(__tstate);
4363 if (PyErr_Occurred()) SWIG_fail;
4364 }
4365 {
4366 #if wxUSE_UNICODE
4367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4368 #else
4369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4370 #endif
4371 }
4372 {
4373 if (temp1)
4374 delete arg1;
4375 }
4376 return resultobj;
4377 fail:
4378 {
4379 if (temp1)
4380 delete arg1;
4381 }
4382 return NULL;
4383 }
4384
4385
4386 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = NULL;
4388 wxString result;
4389 char *kwnames[] = {
4390 NULL
4391 };
4392
4393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 result = wxGetEmailAddress();
4397
4398 wxPyEndAllowThreads(__tstate);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 {
4402 #if wxUSE_UNICODE
4403 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4404 #else
4405 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4406 #endif
4407 }
4408 return resultobj;
4409 fail:
4410 return NULL;
4411 }
4412
4413
4414 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
4415 PyObject *resultobj = NULL;
4416 wxString result;
4417 char *kwnames[] = {
4418 NULL
4419 };
4420
4421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 result = wxGetHostName();
4425
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 {
4430 #if wxUSE_UNICODE
4431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4432 #else
4433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4434 #endif
4435 }
4436 return resultobj;
4437 fail:
4438 return NULL;
4439 }
4440
4441
4442 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
4443 PyObject *resultobj = NULL;
4444 wxString result;
4445 char *kwnames[] = {
4446 NULL
4447 };
4448
4449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 result = wxGetFullHostName();
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 {
4458 #if wxUSE_UNICODE
4459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4460 #else
4461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4462 #endif
4463 }
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
4471 PyObject *resultobj = NULL;
4472 wxString result;
4473 char *kwnames[] = {
4474 NULL
4475 };
4476
4477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
4478 {
4479 PyThreadState* __tstate = wxPyBeginAllowThreads();
4480 result = wxGetUserId();
4481
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 {
4486 #if wxUSE_UNICODE
4487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4488 #else
4489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4490 #endif
4491 }
4492 return resultobj;
4493 fail:
4494 return NULL;
4495 }
4496
4497
4498 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
4499 PyObject *resultobj = NULL;
4500 wxString result;
4501 char *kwnames[] = {
4502 NULL
4503 };
4504
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
4506 {
4507 PyThreadState* __tstate = wxPyBeginAllowThreads();
4508 result = wxGetUserName();
4509
4510 wxPyEndAllowThreads(__tstate);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 }
4513 {
4514 #if wxUSE_UNICODE
4515 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4516 #else
4517 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4518 #endif
4519 }
4520 return resultobj;
4521 fail:
4522 return NULL;
4523 }
4524
4525
4526 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj = NULL;
4528 wxString result;
4529 char *kwnames[] = {
4530 NULL
4531 };
4532
4533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
4534 {
4535 PyThreadState* __tstate = wxPyBeginAllowThreads();
4536 result = wxGetHomeDir();
4537
4538 wxPyEndAllowThreads(__tstate);
4539 if (PyErr_Occurred()) SWIG_fail;
4540 }
4541 {
4542 #if wxUSE_UNICODE
4543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4544 #else
4545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4546 #endif
4547 }
4548 return resultobj;
4549 fail:
4550 return NULL;
4551 }
4552
4553
4554 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj = NULL;
4556 wxString const &arg1_defvalue = wxPyEmptyString ;
4557 wxString *arg1 = (wxString *) &arg1_defvalue ;
4558 wxString result;
4559 bool temp1 = false ;
4560 PyObject * obj0 = 0 ;
4561 char *kwnames[] = {
4562 (char *) "user", NULL
4563 };
4564
4565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
4566 if (obj0) {
4567 {
4568 arg1 = wxString_in_helper(obj0);
4569 if (arg1 == NULL) SWIG_fail;
4570 temp1 = true;
4571 }
4572 }
4573 {
4574 PyThreadState* __tstate = wxPyBeginAllowThreads();
4575 result = wxGetUserHome((wxString const &)*arg1);
4576
4577 wxPyEndAllowThreads(__tstate);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 }
4580 {
4581 #if wxUSE_UNICODE
4582 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4583 #else
4584 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4585 #endif
4586 }
4587 {
4588 if (temp1)
4589 delete arg1;
4590 }
4591 return resultobj;
4592 fail:
4593 {
4594 if (temp1)
4595 delete arg1;
4596 }
4597 return NULL;
4598 }
4599
4600
4601 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
4602 PyObject *resultobj = NULL;
4603 unsigned long result;
4604 char *kwnames[] = {
4605 NULL
4606 };
4607
4608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
4609 {
4610 PyThreadState* __tstate = wxPyBeginAllowThreads();
4611 result = (unsigned long)wxGetProcessId();
4612
4613 wxPyEndAllowThreads(__tstate);
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 {
4617 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
4618 }
4619 return resultobj;
4620 fail:
4621 return NULL;
4622 }
4623
4624
4625 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj = NULL;
4627 char *kwnames[] = {
4628 NULL
4629 };
4630
4631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
4632 {
4633 PyThreadState* __tstate = wxPyBeginAllowThreads();
4634 wxTrap();
4635
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 Py_INCREF(Py_None); resultobj = Py_None;
4640 return resultobj;
4641 fail:
4642 return NULL;
4643 }
4644
4645
4646 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4647 PyObject *resultobj = NULL;
4648 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
4649 wxString *arg1 = (wxString *) &arg1_defvalue ;
4650 wxString const &arg2_defvalue = wxPyEmptyString ;
4651 wxString *arg2 = (wxString *) &arg2_defvalue ;
4652 wxString const &arg3_defvalue = wxPyEmptyString ;
4653 wxString *arg3 = (wxString *) &arg3_defvalue ;
4654 wxString const &arg4_defvalue = wxPyEmptyString ;
4655 wxString *arg4 = (wxString *) &arg4_defvalue ;
4656 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
4657 wxString *arg5 = (wxString *) &arg5_defvalue ;
4658 int arg6 = (int) 0 ;
4659 wxWindow *arg7 = (wxWindow *) NULL ;
4660 int arg8 = (int) -1 ;
4661 int arg9 = (int) -1 ;
4662 wxString result;
4663 bool temp1 = false ;
4664 bool temp2 = false ;
4665 bool temp3 = false ;
4666 bool temp4 = false ;
4667 bool temp5 = false ;
4668 PyObject * obj0 = 0 ;
4669 PyObject * obj1 = 0 ;
4670 PyObject * obj2 = 0 ;
4671 PyObject * obj3 = 0 ;
4672 PyObject * obj4 = 0 ;
4673 PyObject * obj5 = 0 ;
4674 PyObject * obj6 = 0 ;
4675 PyObject * obj7 = 0 ;
4676 PyObject * obj8 = 0 ;
4677 char *kwnames[] = {
4678 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
4679 };
4680
4681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4682 if (obj0) {
4683 {
4684 arg1 = wxString_in_helper(obj0);
4685 if (arg1 == NULL) SWIG_fail;
4686 temp1 = true;
4687 }
4688 }
4689 if (obj1) {
4690 {
4691 arg2 = wxString_in_helper(obj1);
4692 if (arg2 == NULL) SWIG_fail;
4693 temp2 = true;
4694 }
4695 }
4696 if (obj2) {
4697 {
4698 arg3 = wxString_in_helper(obj2);
4699 if (arg3 == NULL) SWIG_fail;
4700 temp3 = true;
4701 }
4702 }
4703 if (obj3) {
4704 {
4705 arg4 = wxString_in_helper(obj3);
4706 if (arg4 == NULL) SWIG_fail;
4707 temp4 = true;
4708 }
4709 }
4710 if (obj4) {
4711 {
4712 arg5 = wxString_in_helper(obj4);
4713 if (arg5 == NULL) SWIG_fail;
4714 temp5 = true;
4715 }
4716 }
4717 if (obj5) {
4718 {
4719 arg6 = static_cast<int >(SWIG_As_int(obj5));
4720 if (SWIG_arg_fail(6)) SWIG_fail;
4721 }
4722 }
4723 if (obj6) {
4724 SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4725 if (SWIG_arg_fail(7)) SWIG_fail;
4726 }
4727 if (obj7) {
4728 {
4729 arg8 = static_cast<int >(SWIG_As_int(obj7));
4730 if (SWIG_arg_fail(8)) SWIG_fail;
4731 }
4732 }
4733 if (obj8) {
4734 {
4735 arg9 = static_cast<int >(SWIG_As_int(obj8));
4736 if (SWIG_arg_fail(9)) SWIG_fail;
4737 }
4738 }
4739 {
4740 if (!wxPyCheckForApp()) SWIG_fail;
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
4743
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 {
4748 #if wxUSE_UNICODE
4749 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4750 #else
4751 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4752 #endif
4753 }
4754 {
4755 if (temp1)
4756 delete arg1;
4757 }
4758 {
4759 if (temp2)
4760 delete arg2;
4761 }
4762 {
4763 if (temp3)
4764 delete arg3;
4765 }
4766 {
4767 if (temp4)
4768 delete arg4;
4769 }
4770 {
4771 if (temp5)
4772 delete arg5;
4773 }
4774 return resultobj;
4775 fail:
4776 {
4777 if (temp1)
4778 delete arg1;
4779 }
4780 {
4781 if (temp2)
4782 delete arg2;
4783 }
4784 {
4785 if (temp3)
4786 delete arg3;
4787 }
4788 {
4789 if (temp4)
4790 delete arg4;
4791 }
4792 {
4793 if (temp5)
4794 delete arg5;
4795 }
4796 return NULL;
4797 }
4798
4799
4800 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4801 PyObject *resultobj = NULL;
4802 wxString *arg1 = 0 ;
4803 wxString *arg2 = 0 ;
4804 wxString const &arg3_defvalue = wxPyEmptyString ;
4805 wxString *arg3 = (wxString *) &arg3_defvalue ;
4806 wxWindow *arg4 = (wxWindow *) NULL ;
4807 wxString result;
4808 bool temp1 = false ;
4809 bool temp2 = false ;
4810 bool temp3 = false ;
4811 PyObject * obj0 = 0 ;
4812 PyObject * obj1 = 0 ;
4813 PyObject * obj2 = 0 ;
4814 PyObject * obj3 = 0 ;
4815 char *kwnames[] = {
4816 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
4817 };
4818
4819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4820 {
4821 arg1 = wxString_in_helper(obj0);
4822 if (arg1 == NULL) SWIG_fail;
4823 temp1 = true;
4824 }
4825 {
4826 arg2 = wxString_in_helper(obj1);
4827 if (arg2 == NULL) SWIG_fail;
4828 temp2 = true;
4829 }
4830 if (obj2) {
4831 {
4832 arg3 = wxString_in_helper(obj2);
4833 if (arg3 == NULL) SWIG_fail;
4834 temp3 = true;
4835 }
4836 }
4837 if (obj3) {
4838 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4839 if (SWIG_arg_fail(4)) SWIG_fail;
4840 }
4841 {
4842 if (!wxPyCheckForApp()) SWIG_fail;
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
4845
4846 wxPyEndAllowThreads(__tstate);
4847 if (PyErr_Occurred()) SWIG_fail;
4848 }
4849 {
4850 #if wxUSE_UNICODE
4851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4852 #else
4853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4854 #endif
4855 }
4856 {
4857 if (temp1)
4858 delete arg1;
4859 }
4860 {
4861 if (temp2)
4862 delete arg2;
4863 }
4864 {
4865 if (temp3)
4866 delete arg3;
4867 }
4868 return resultobj;
4869 fail:
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 NULL;
4883 }
4884
4885
4886 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4887 PyObject *resultobj = NULL;
4888 wxString *arg1 = 0 ;
4889 wxString *arg2 = 0 ;
4890 wxString const &arg3_defvalue = wxPyEmptyString ;
4891 wxString *arg3 = (wxString *) &arg3_defvalue ;
4892 wxWindow *arg4 = (wxWindow *) NULL ;
4893 wxString result;
4894 bool temp1 = false ;
4895 bool temp2 = false ;
4896 bool temp3 = false ;
4897 PyObject * obj0 = 0 ;
4898 PyObject * obj1 = 0 ;
4899 PyObject * obj2 = 0 ;
4900 PyObject * obj3 = 0 ;
4901 char *kwnames[] = {
4902 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
4903 };
4904
4905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4906 {
4907 arg1 = wxString_in_helper(obj0);
4908 if (arg1 == NULL) SWIG_fail;
4909 temp1 = true;
4910 }
4911 {
4912 arg2 = wxString_in_helper(obj1);
4913 if (arg2 == NULL) SWIG_fail;
4914 temp2 = true;
4915 }
4916 if (obj2) {
4917 {
4918 arg3 = wxString_in_helper(obj2);
4919 if (arg3 == NULL) SWIG_fail;
4920 temp3 = true;
4921 }
4922 }
4923 if (obj3) {
4924 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4925 if (SWIG_arg_fail(4)) SWIG_fail;
4926 }
4927 {
4928 if (!wxPyCheckForApp()) SWIG_fail;
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
4931
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 {
4936 #if wxUSE_UNICODE
4937 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4938 #else
4939 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4940 #endif
4941 }
4942 {
4943 if (temp1)
4944 delete arg1;
4945 }
4946 {
4947 if (temp2)
4948 delete arg2;
4949 }
4950 {
4951 if (temp3)
4952 delete arg3;
4953 }
4954 return resultobj;
4955 fail:
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 NULL;
4969 }
4970
4971
4972 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
4973 PyObject *resultobj = NULL;
4974 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
4975 wxString *arg1 = (wxString *) &arg1_defvalue ;
4976 wxString const &arg2_defvalue = wxPyEmptyString ;
4977 wxString *arg2 = (wxString *) &arg2_defvalue ;
4978 long arg3 = (long) wxDD_DEFAULT_STYLE ;
4979 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4980 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4981 wxWindow *arg5 = (wxWindow *) NULL ;
4982 wxString result;
4983 bool temp1 = false ;
4984 bool temp2 = false ;
4985 wxPoint temp4 ;
4986 PyObject * obj0 = 0 ;
4987 PyObject * obj1 = 0 ;
4988 PyObject * obj2 = 0 ;
4989 PyObject * obj3 = 0 ;
4990 PyObject * obj4 = 0 ;
4991 char *kwnames[] = {
4992 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
4993 };
4994
4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4996 if (obj0) {
4997 {
4998 arg1 = wxString_in_helper(obj0);
4999 if (arg1 == NULL) SWIG_fail;
5000 temp1 = true;
5001 }
5002 }
5003 if (obj1) {
5004 {
5005 arg2 = wxString_in_helper(obj1);
5006 if (arg2 == NULL) SWIG_fail;
5007 temp2 = true;
5008 }
5009 }
5010 if (obj2) {
5011 {
5012 arg3 = static_cast<long >(SWIG_As_long(obj2));
5013 if (SWIG_arg_fail(3)) SWIG_fail;
5014 }
5015 }
5016 if (obj3) {
5017 {
5018 arg4 = &temp4;
5019 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5020 }
5021 }
5022 if (obj4) {
5023 SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5024 if (SWIG_arg_fail(5)) SWIG_fail;
5025 }
5026 {
5027 if (!wxPyCheckForApp()) SWIG_fail;
5028 PyThreadState* __tstate = wxPyBeginAllowThreads();
5029 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
5030
5031 wxPyEndAllowThreads(__tstate);
5032 if (PyErr_Occurred()) SWIG_fail;
5033 }
5034 {
5035 #if wxUSE_UNICODE
5036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5037 #else
5038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5039 #endif
5040 }
5041 {
5042 if (temp1)
5043 delete arg1;
5044 }
5045 {
5046 if (temp2)
5047 delete arg2;
5048 }
5049 return resultobj;
5050 fail:
5051 {
5052 if (temp1)
5053 delete arg1;
5054 }
5055 {
5056 if (temp2)
5057 delete arg2;
5058 }
5059 return NULL;
5060 }
5061
5062
5063 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
5064 PyObject *resultobj = NULL;
5065 wxString *arg1 = 0 ;
5066 wxString const &arg2_defvalue = wxPyEmptyString ;
5067 wxString *arg2 = (wxString *) &arg2_defvalue ;
5068 wxString const &arg3_defvalue = wxPyEmptyString ;
5069 wxString *arg3 = (wxString *) &arg3_defvalue ;
5070 wxWindow *arg4 = (wxWindow *) NULL ;
5071 int arg5 = (int) -1 ;
5072 int arg6 = (int) -1 ;
5073 bool arg7 = (bool) true ;
5074 wxString result;
5075 bool temp1 = false ;
5076 bool temp2 = false ;
5077 bool temp3 = false ;
5078 PyObject * obj0 = 0 ;
5079 PyObject * obj1 = 0 ;
5080 PyObject * obj2 = 0 ;
5081 PyObject * obj3 = 0 ;
5082 PyObject * obj4 = 0 ;
5083 PyObject * obj5 = 0 ;
5084 PyObject * obj6 = 0 ;
5085 char *kwnames[] = {
5086 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
5087 };
5088
5089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5090 {
5091 arg1 = wxString_in_helper(obj0);
5092 if (arg1 == NULL) SWIG_fail;
5093 temp1 = true;
5094 }
5095 if (obj1) {
5096 {
5097 arg2 = wxString_in_helper(obj1);
5098 if (arg2 == NULL) SWIG_fail;
5099 temp2 = true;
5100 }
5101 }
5102 if (obj2) {
5103 {
5104 arg3 = wxString_in_helper(obj2);
5105 if (arg3 == NULL) SWIG_fail;
5106 temp3 = true;
5107 }
5108 }
5109 if (obj3) {
5110 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5111 if (SWIG_arg_fail(4)) SWIG_fail;
5112 }
5113 if (obj4) {
5114 {
5115 arg5 = static_cast<int >(SWIG_As_int(obj4));
5116 if (SWIG_arg_fail(5)) SWIG_fail;
5117 }
5118 }
5119 if (obj5) {
5120 {
5121 arg6 = static_cast<int >(SWIG_As_int(obj5));
5122 if (SWIG_arg_fail(6)) SWIG_fail;
5123 }
5124 }
5125 if (obj6) {
5126 {
5127 arg7 = static_cast<bool >(SWIG_As_bool(obj6));
5128 if (SWIG_arg_fail(7)) SWIG_fail;
5129 }
5130 }
5131 {
5132 if (!wxPyCheckForApp()) SWIG_fail;
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
5135
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 {
5140 #if wxUSE_UNICODE
5141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5142 #else
5143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5144 #endif
5145 }
5146 {
5147 if (temp1)
5148 delete arg1;
5149 }
5150 {
5151 if (temp2)
5152 delete arg2;
5153 }
5154 {
5155 if (temp3)
5156 delete arg3;
5157 }
5158 return resultobj;
5159 fail:
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 NULL;
5173 }
5174
5175
5176 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
5177 PyObject *resultobj = NULL;
5178 wxString *arg1 = 0 ;
5179 wxString const &arg2_defvalue = wxPyEmptyString ;
5180 wxString *arg2 = (wxString *) &arg2_defvalue ;
5181 wxString const &arg3_defvalue = wxPyEmptyString ;
5182 wxString *arg3 = (wxString *) &arg3_defvalue ;
5183 wxWindow *arg4 = (wxWindow *) NULL ;
5184 wxString result;
5185 bool temp1 = false ;
5186 bool temp2 = false ;
5187 bool temp3 = false ;
5188 PyObject * obj0 = 0 ;
5189 PyObject * obj1 = 0 ;
5190 PyObject * obj2 = 0 ;
5191 PyObject * obj3 = 0 ;
5192 char *kwnames[] = {
5193 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
5194 };
5195
5196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5197 {
5198 arg1 = wxString_in_helper(obj0);
5199 if (arg1 == NULL) SWIG_fail;
5200 temp1 = true;
5201 }
5202 if (obj1) {
5203 {
5204 arg2 = wxString_in_helper(obj1);
5205 if (arg2 == NULL) SWIG_fail;
5206 temp2 = true;
5207 }
5208 }
5209 if (obj2) {
5210 {
5211 arg3 = wxString_in_helper(obj2);
5212 if (arg3 == NULL) SWIG_fail;
5213 temp3 = true;
5214 }
5215 }
5216 if (obj3) {
5217 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5218 if (SWIG_arg_fail(4)) SWIG_fail;
5219 }
5220 {
5221 if (!wxPyCheckForApp()) SWIG_fail;
5222 PyThreadState* __tstate = wxPyBeginAllowThreads();
5223 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
5224
5225 wxPyEndAllowThreads(__tstate);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 {
5229 #if wxUSE_UNICODE
5230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5231 #else
5232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5233 #endif
5234 }
5235 {
5236 if (temp1)
5237 delete arg1;
5238 }
5239 {
5240 if (temp2)
5241 delete arg2;
5242 }
5243 {
5244 if (temp3)
5245 delete arg3;
5246 }
5247 return resultobj;
5248 fail:
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 NULL;
5262 }
5263
5264
5265 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
5266 PyObject *resultobj = NULL;
5267 wxString *arg1 = 0 ;
5268 wxString *arg2 = 0 ;
5269 int arg3 ;
5270 wxString *arg4 = (wxString *) 0 ;
5271 wxWindow *arg5 = (wxWindow *) NULL ;
5272 int arg6 = (int) -1 ;
5273 int arg7 = (int) -1 ;
5274 bool arg8 = (bool) true ;
5275 int arg9 = (int) 150 ;
5276 int arg10 = (int) 200 ;
5277 wxString result;
5278 bool temp1 = false ;
5279 bool temp2 = false ;
5280 PyObject * obj0 = 0 ;
5281 PyObject * obj1 = 0 ;
5282 PyObject * obj2 = 0 ;
5283 PyObject * obj3 = 0 ;
5284 PyObject * obj4 = 0 ;
5285 PyObject * obj5 = 0 ;
5286 PyObject * obj6 = 0 ;
5287 PyObject * obj7 = 0 ;
5288 PyObject * obj8 = 0 ;
5289 char *kwnames[] = {
5290 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
5291 };
5292
5293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5294 {
5295 arg1 = wxString_in_helper(obj0);
5296 if (arg1 == NULL) SWIG_fail;
5297 temp1 = true;
5298 }
5299 {
5300 arg2 = wxString_in_helper(obj1);
5301 if (arg2 == NULL) SWIG_fail;
5302 temp2 = true;
5303 }
5304 {
5305 arg3 = PyList_Size(obj2);
5306 arg4 = wxString_LIST_helper(obj2);
5307 if (arg4 == NULL) SWIG_fail;
5308 }
5309 if (obj3) {
5310 SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5311 if (SWIG_arg_fail(5)) SWIG_fail;
5312 }
5313 if (obj4) {
5314 {
5315 arg6 = static_cast<int >(SWIG_As_int(obj4));
5316 if (SWIG_arg_fail(6)) SWIG_fail;
5317 }
5318 }
5319 if (obj5) {
5320 {
5321 arg7 = static_cast<int >(SWIG_As_int(obj5));
5322 if (SWIG_arg_fail(7)) SWIG_fail;
5323 }
5324 }
5325 if (obj6) {
5326 {
5327 arg8 = static_cast<bool >(SWIG_As_bool(obj6));
5328 if (SWIG_arg_fail(8)) SWIG_fail;
5329 }
5330 }
5331 if (obj7) {
5332 {
5333 arg9 = static_cast<int >(SWIG_As_int(obj7));
5334 if (SWIG_arg_fail(9)) SWIG_fail;
5335 }
5336 }
5337 if (obj8) {
5338 {
5339 arg10 = static_cast<int >(SWIG_As_int(obj8));
5340 if (SWIG_arg_fail(10)) SWIG_fail;
5341 }
5342 }
5343 {
5344 if (!wxPyCheckForApp()) SWIG_fail;
5345 PyThreadState* __tstate = wxPyBeginAllowThreads();
5346 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5347
5348 wxPyEndAllowThreads(__tstate);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 }
5351 {
5352 #if wxUSE_UNICODE
5353 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5354 #else
5355 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5356 #endif
5357 }
5358 {
5359 if (temp1)
5360 delete arg1;
5361 }
5362 {
5363 if (temp2)
5364 delete arg2;
5365 }
5366 {
5367 if (arg4) delete [] arg4;
5368 }
5369 return resultobj;
5370 fail:
5371 {
5372 if (temp1)
5373 delete arg1;
5374 }
5375 {
5376 if (temp2)
5377 delete arg2;
5378 }
5379 {
5380 if (arg4) delete [] arg4;
5381 }
5382 return NULL;
5383 }
5384
5385
5386 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
5387 PyObject *resultobj = NULL;
5388 wxString *arg1 = 0 ;
5389 wxString *arg2 = 0 ;
5390 int arg3 ;
5391 wxString *arg4 = (wxString *) 0 ;
5392 wxWindow *arg5 = (wxWindow *) NULL ;
5393 int arg6 = (int) -1 ;
5394 int arg7 = (int) -1 ;
5395 bool arg8 = (bool) true ;
5396 int arg9 = (int) 150 ;
5397 int arg10 = (int) 200 ;
5398 int result;
5399 bool temp1 = false ;
5400 bool temp2 = false ;
5401 PyObject * obj0 = 0 ;
5402 PyObject * obj1 = 0 ;
5403 PyObject * obj2 = 0 ;
5404 PyObject * obj3 = 0 ;
5405 PyObject * obj4 = 0 ;
5406 PyObject * obj5 = 0 ;
5407 PyObject * obj6 = 0 ;
5408 PyObject * obj7 = 0 ;
5409 PyObject * obj8 = 0 ;
5410 char *kwnames[] = {
5411 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
5412 };
5413
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5415 {
5416 arg1 = wxString_in_helper(obj0);
5417 if (arg1 == NULL) SWIG_fail;
5418 temp1 = true;
5419 }
5420 {
5421 arg2 = wxString_in_helper(obj1);
5422 if (arg2 == NULL) SWIG_fail;
5423 temp2 = true;
5424 }
5425 {
5426 arg3 = PyList_Size(obj2);
5427 arg4 = wxString_LIST_helper(obj2);
5428 if (arg4 == NULL) SWIG_fail;
5429 }
5430 if (obj3) {
5431 SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5432 if (SWIG_arg_fail(5)) SWIG_fail;
5433 }
5434 if (obj4) {
5435 {
5436 arg6 = static_cast<int >(SWIG_As_int(obj4));
5437 if (SWIG_arg_fail(6)) SWIG_fail;
5438 }
5439 }
5440 if (obj5) {
5441 {
5442 arg7 = static_cast<int >(SWIG_As_int(obj5));
5443 if (SWIG_arg_fail(7)) SWIG_fail;
5444 }
5445 }
5446 if (obj6) {
5447 {
5448 arg8 = static_cast<bool >(SWIG_As_bool(obj6));
5449 if (SWIG_arg_fail(8)) SWIG_fail;
5450 }
5451 }
5452 if (obj7) {
5453 {
5454 arg9 = static_cast<int >(SWIG_As_int(obj7));
5455 if (SWIG_arg_fail(9)) SWIG_fail;
5456 }
5457 }
5458 if (obj8) {
5459 {
5460 arg10 = static_cast<int >(SWIG_As_int(obj8));
5461 if (SWIG_arg_fail(10)) SWIG_fail;
5462 }
5463 }
5464 {
5465 if (!wxPyCheckForApp()) SWIG_fail;
5466 PyThreadState* __tstate = wxPyBeginAllowThreads();
5467 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5468
5469 wxPyEndAllowThreads(__tstate);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 {
5473 resultobj = SWIG_From_int(static_cast<int >(result));
5474 }
5475 {
5476 if (temp1)
5477 delete arg1;
5478 }
5479 {
5480 if (temp2)
5481 delete arg2;
5482 }
5483 {
5484 if (arg4) delete [] arg4;
5485 }
5486 return resultobj;
5487 fail:
5488 {
5489 if (temp1)
5490 delete arg1;
5491 }
5492 {
5493 if (temp2)
5494 delete arg2;
5495 }
5496 {
5497 if (arg4) delete [] arg4;
5498 }
5499 return NULL;
5500 }
5501
5502
5503 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
5504 PyObject *resultobj = NULL;
5505 wxString *arg1 = 0 ;
5506 wxString const &arg2_defvalue = wxPyEmptyString ;
5507 wxString *arg2 = (wxString *) &arg2_defvalue ;
5508 int arg3 = (int) wxOK|wxCENTRE ;
5509 wxWindow *arg4 = (wxWindow *) NULL ;
5510 int arg5 = (int) -1 ;
5511 int arg6 = (int) -1 ;
5512 int result;
5513 bool temp1 = false ;
5514 bool temp2 = false ;
5515 PyObject * obj0 = 0 ;
5516 PyObject * obj1 = 0 ;
5517 PyObject * obj2 = 0 ;
5518 PyObject * obj3 = 0 ;
5519 PyObject * obj4 = 0 ;
5520 PyObject * obj5 = 0 ;
5521 char *kwnames[] = {
5522 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
5523 };
5524
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5526 {
5527 arg1 = wxString_in_helper(obj0);
5528 if (arg1 == NULL) SWIG_fail;
5529 temp1 = true;
5530 }
5531 if (obj1) {
5532 {
5533 arg2 = wxString_in_helper(obj1);
5534 if (arg2 == NULL) SWIG_fail;
5535 temp2 = true;
5536 }
5537 }
5538 if (obj2) {
5539 {
5540 arg3 = static_cast<int >(SWIG_As_int(obj2));
5541 if (SWIG_arg_fail(3)) SWIG_fail;
5542 }
5543 }
5544 if (obj3) {
5545 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
5546 if (SWIG_arg_fail(4)) SWIG_fail;
5547 }
5548 if (obj4) {
5549 {
5550 arg5 = static_cast<int >(SWIG_As_int(obj4));
5551 if (SWIG_arg_fail(5)) SWIG_fail;
5552 }
5553 }
5554 if (obj5) {
5555 {
5556 arg6 = static_cast<int >(SWIG_As_int(obj5));
5557 if (SWIG_arg_fail(6)) SWIG_fail;
5558 }
5559 }
5560 {
5561 if (!wxPyCheckForApp()) SWIG_fail;
5562 PyThreadState* __tstate = wxPyBeginAllowThreads();
5563 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
5564
5565 wxPyEndAllowThreads(__tstate);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 }
5568 {
5569 resultobj = SWIG_From_int(static_cast<int >(result));
5570 }
5571 {
5572 if (temp1)
5573 delete arg1;
5574 }
5575 {
5576 if (temp2)
5577 delete arg2;
5578 }
5579 return resultobj;
5580 fail:
5581 {
5582 if (temp1)
5583 delete arg1;
5584 }
5585 {
5586 if (temp2)
5587 delete arg2;
5588 }
5589 return NULL;
5590 }
5591
5592
5593 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
5594 PyObject *resultobj = NULL;
5595 bool result;
5596 char *kwnames[] = {
5597 NULL
5598 };
5599
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (bool)wxColourDisplay();
5605
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 {
5610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5611 }
5612 return resultobj;
5613 fail:
5614 return NULL;
5615 }
5616
5617
5618 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5619 PyObject *resultobj = NULL;
5620 int result;
5621 char *kwnames[] = {
5622 NULL
5623 };
5624
5625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
5626 {
5627 if (!wxPyCheckForApp()) SWIG_fail;
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 result = (int)wxDisplayDepth();
5630
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 {
5635 resultobj = SWIG_From_int(static_cast<int >(result));
5636 }
5637 return resultobj;
5638 fail:
5639 return NULL;
5640 }
5641
5642
5643 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5644 PyObject *resultobj = NULL;
5645 int result;
5646 char *kwnames[] = {
5647 NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
5651 {
5652 if (!wxPyCheckForApp()) SWIG_fail;
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (int)wxGetDisplayDepth();
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 {
5660 resultobj = SWIG_From_int(static_cast<int >(result));
5661 }
5662 return resultobj;
5663 fail:
5664 return NULL;
5665 }
5666
5667
5668 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
5669 PyObject *resultobj = NULL;
5670 int *arg1 = (int *) 0 ;
5671 int *arg2 = (int *) 0 ;
5672 int temp1 ;
5673 int res1 = 0 ;
5674 int temp2 ;
5675 int res2 = 0 ;
5676 char *kwnames[] = {
5677 NULL
5678 };
5679
5680 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5681 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
5683 {
5684 if (!wxPyCheckForApp()) SWIG_fail;
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 wxDisplaySize(arg1,arg2);
5687
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 Py_INCREF(Py_None); resultobj = Py_None;
5692 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5693 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5694 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5695 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj = NULL;
5704 wxSize result;
5705 char *kwnames[] = {
5706 NULL
5707 };
5708
5709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
5710 {
5711 if (!wxPyCheckForApp()) SWIG_fail;
5712 PyThreadState* __tstate = wxPyBeginAllowThreads();
5713 result = wxGetDisplaySize();
5714
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 {
5719 wxSize * resultptr;
5720 resultptr = new wxSize(static_cast<wxSize & >(result));
5721 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5722 }
5723 return resultobj;
5724 fail:
5725 return NULL;
5726 }
5727
5728
5729 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
5730 PyObject *resultobj = NULL;
5731 int *arg1 = (int *) 0 ;
5732 int *arg2 = (int *) 0 ;
5733 int temp1 ;
5734 int res1 = 0 ;
5735 int temp2 ;
5736 int res2 = 0 ;
5737 char *kwnames[] = {
5738 NULL
5739 };
5740
5741 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5742 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
5744 {
5745 if (!wxPyCheckForApp()) SWIG_fail;
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 wxDisplaySizeMM(arg1,arg2);
5748
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 Py_INCREF(Py_None); resultobj = Py_None;
5753 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5754 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5755 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5756 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj = NULL;
5765 wxSize result;
5766 char *kwnames[] = {
5767 NULL
5768 };
5769
5770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
5771 {
5772 if (!wxPyCheckForApp()) SWIG_fail;
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 result = wxGetDisplaySizeMM();
5775
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 {
5780 wxSize * resultptr;
5781 resultptr = new wxSize(static_cast<wxSize & >(result));
5782 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5783 }
5784 return resultobj;
5785 fail:
5786 return NULL;
5787 }
5788
5789
5790 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
5791 PyObject *resultobj = NULL;
5792 int *arg1 = (int *) 0 ;
5793 int *arg2 = (int *) 0 ;
5794 int *arg3 = (int *) 0 ;
5795 int *arg4 = (int *) 0 ;
5796 int temp1 ;
5797 int res1 = 0 ;
5798 int temp2 ;
5799 int res2 = 0 ;
5800 int temp3 ;
5801 int res3 = 0 ;
5802 int temp4 ;
5803 int res4 = 0 ;
5804 char *kwnames[] = {
5805 NULL
5806 };
5807
5808 arg1 = &temp1; res1 = SWIG_NEWOBJ;
5809 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5810 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5811 arg4 = &temp4; res4 = SWIG_NEWOBJ;
5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
5813 {
5814 if (!wxPyCheckForApp()) SWIG_fail;
5815 PyThreadState* __tstate = wxPyBeginAllowThreads();
5816 wxClientDisplayRect(arg1,arg2,arg3,arg4);
5817
5818 wxPyEndAllowThreads(__tstate);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 }
5821 Py_INCREF(Py_None); resultobj = Py_None;
5822 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
5823 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
5824 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5825 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5826 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5827 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5828 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
5829 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
5830 return resultobj;
5831 fail:
5832 return NULL;
5833 }
5834
5835
5836 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj = NULL;
5838 wxRect result;
5839 char *kwnames[] = {
5840 NULL
5841 };
5842
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
5844 {
5845 if (!wxPyCheckForApp()) SWIG_fail;
5846 PyThreadState* __tstate = wxPyBeginAllowThreads();
5847 result = wxGetClientDisplayRect();
5848
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 {
5853 wxRect * resultptr;
5854 resultptr = new wxRect(static_cast<wxRect & >(result));
5855 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5856 }
5857 return resultobj;
5858 fail:
5859 return NULL;
5860 }
5861
5862
5863 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5864 PyObject *resultobj = NULL;
5865 wxCursor *arg1 = 0 ;
5866 PyObject * obj0 = 0 ;
5867 char *kwnames[] = {
5868 (char *) "cursor", NULL
5869 };
5870
5871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
5872 {
5873 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5874 if (SWIG_arg_fail(1)) SWIG_fail;
5875 if (arg1 == NULL) {
5876 SWIG_null_ref("wxCursor");
5877 }
5878 if (SWIG_arg_fail(1)) SWIG_fail;
5879 }
5880 {
5881 if (!wxPyCheckForApp()) SWIG_fail;
5882 PyThreadState* __tstate = wxPyBeginAllowThreads();
5883 wxSetCursor(*arg1);
5884
5885 wxPyEndAllowThreads(__tstate);
5886 if (PyErr_Occurred()) SWIG_fail;
5887 }
5888 Py_INCREF(Py_None); resultobj = Py_None;
5889 return resultobj;
5890 fail:
5891 return NULL;
5892 }
5893
5894
5895 static PyObject *_wrap_GetXDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
5896 PyObject *resultobj = NULL;
5897 void *result;
5898 char *kwnames[] = {
5899 NULL
5900 };
5901
5902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetXDisplay",kwnames)) goto fail;
5903 {
5904 if (!wxPyCheckForApp()) SWIG_fail;
5905 PyThreadState* __tstate = wxPyBeginAllowThreads();
5906 result = (void *)wxGetXDisplay();
5907
5908 wxPyEndAllowThreads(__tstate);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
5912 return resultobj;
5913 fail:
5914 return NULL;
5915 }
5916
5917
5918 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj = NULL;
5920 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5921 PyObject * obj0 = 0 ;
5922 char *kwnames[] = {
5923 (char *) "cursor", NULL
5924 };
5925
5926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
5927 if (obj0) {
5928 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5929 if (SWIG_arg_fail(1)) SWIG_fail;
5930 }
5931 {
5932 if (!wxPyCheckForApp()) SWIG_fail;
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 wxBeginBusyCursor(arg1);
5935
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 Py_INCREF(Py_None); resultobj = Py_None;
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj = NULL;
5948 wxPoint result;
5949 char *kwnames[] = {
5950 NULL
5951 };
5952
5953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
5954 {
5955 if (!wxPyCheckForApp()) SWIG_fail;
5956 PyThreadState* __tstate = wxPyBeginAllowThreads();
5957 result = wxGetMousePosition();
5958
5959 wxPyEndAllowThreads(__tstate);
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 {
5963 wxPoint * resultptr;
5964 resultptr = new wxPoint(static_cast<wxPoint & >(result));
5965 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5966 }
5967 return resultobj;
5968 fail:
5969 return NULL;
5970 }
5971
5972
5973 static PyObject *_wrap_FindWindowAtPointer(PyObject *, PyObject *args, PyObject *kwargs) {
5974 PyObject *resultobj = NULL;
5975 wxWindow *result;
5976 char *kwnames[] = {
5977 NULL
5978 };
5979
5980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FindWindowAtPointer",kwnames)) goto fail;
5981 {
5982 if (!wxPyCheckForApp()) SWIG_fail;
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (wxWindow *)FindWindowAtPointer();
5985
5986 wxPyEndAllowThreads(__tstate);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 }
5989 {
5990 resultobj = wxPyMake_wxObject(result, 0);
5991 }
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj = NULL;
6000 wxWindow *result;
6001 char *kwnames[] = {
6002 NULL
6003 };
6004
6005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
6006 {
6007 if (!wxPyCheckForApp()) SWIG_fail;
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (wxWindow *)wxGetActiveWindow();
6010
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 {
6015 resultobj = wxPyMake_wxObject(result, 0);
6016 }
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6024 PyObject *resultobj = NULL;
6025 wxPoint *arg1 = 0 ;
6026 wxWindow *result;
6027 wxPoint temp1 ;
6028 PyObject * obj0 = 0 ;
6029 char *kwnames[] = {
6030 (char *) "pt", NULL
6031 };
6032
6033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
6034 {
6035 arg1 = &temp1;
6036 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6037 }
6038 {
6039 if (!wxPyCheckForApp()) SWIG_fail;
6040 PyThreadState* __tstate = wxPyBeginAllowThreads();
6041 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
6042
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 {
6047 resultobj = wxPyMake_wxObject(result, 0);
6048 }
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj = NULL;
6057 wxPoint *arg1 = 0 ;
6058 wxWindow *result;
6059 wxPoint temp1 ;
6060 PyObject * obj0 = 0 ;
6061 char *kwnames[] = {
6062 (char *) "pt", NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
6066 {
6067 arg1 = &temp1;
6068 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6069 }
6070 {
6071 if (!wxPyCheckForApp()) SWIG_fail;
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 {
6079 resultobj = wxPyMake_wxObject(result, 0);
6080 }
6081 return resultobj;
6082 fail:
6083 return NULL;
6084 }
6085
6086
6087 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = NULL;
6089 wxWindow *arg1 = (wxWindow *) 0 ;
6090 wxWindow *result;
6091 PyObject * obj0 = 0 ;
6092 char *kwnames[] = {
6093 (char *) "win", NULL
6094 };
6095
6096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
6097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
6098 if (SWIG_arg_fail(1)) SWIG_fail;
6099 {
6100 if (!wxPyCheckForApp()) SWIG_fail;
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 result = (wxWindow *)wxGetTopLevelParent(arg1);
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) SWIG_fail;
6106 }
6107 {
6108 resultobj = wxPyMake_wxObject(result, 0);
6109 }
6110 return resultobj;
6111 fail:
6112 return NULL;
6113 }
6114
6115
6116 static PyObject *_wrap_LaunchDefaultBrowser(PyObject *, PyObject *args, PyObject *kwargs) {
6117 PyObject *resultobj = NULL;
6118 wxString *arg1 = 0 ;
6119 bool result;
6120 bool temp1 = false ;
6121 PyObject * obj0 = 0 ;
6122 char *kwnames[] = {
6123 (char *) "url", NULL
6124 };
6125
6126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) goto fail;
6127 {
6128 arg1 = wxString_in_helper(obj0);
6129 if (arg1 == NULL) SWIG_fail;
6130 temp1 = true;
6131 }
6132 {
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1);
6135
6136 wxPyEndAllowThreads(__tstate);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 {
6140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6141 }
6142 {
6143 if (temp1)
6144 delete arg1;
6145 }
6146 return resultobj;
6147 fail:
6148 {
6149 if (temp1)
6150 delete arg1;
6151 }
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj = NULL;
6158 wxKeyCode arg1 ;
6159 bool result;
6160 PyObject * obj0 = 0 ;
6161 char *kwnames[] = {
6162 (char *) "key", NULL
6163 };
6164
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
6166 {
6167 arg1 = static_cast<wxKeyCode >(SWIG_As_int(obj0));
6168 if (SWIG_arg_fail(1)) SWIG_fail;
6169 }
6170 {
6171 if (!wxPyCheckForApp()) SWIG_fail;
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 result = (bool)wxGetKeyState(arg1);
6174
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 {
6179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6180 }
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 static PyObject *_wrap_new_MouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj = NULL;
6189 wxMouseState *result;
6190 char *kwnames[] = {
6191 NULL
6192 };
6193
6194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MouseState",kwnames)) goto fail;
6195 {
6196 PyThreadState* __tstate = wxPyBeginAllowThreads();
6197 result = (wxMouseState *)new wxMouseState();
6198
6199 wxPyEndAllowThreads(__tstate);
6200 if (PyErr_Occurred()) SWIG_fail;
6201 }
6202 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseState, 1);
6203 return resultobj;
6204 fail:
6205 return NULL;
6206 }
6207
6208
6209 static PyObject *_wrap_delete_MouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6210 PyObject *resultobj = NULL;
6211 wxMouseState *arg1 = (wxMouseState *) 0 ;
6212 PyObject * obj0 = 0 ;
6213 char *kwnames[] = {
6214 (char *) "self", NULL
6215 };
6216
6217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MouseState",kwnames,&obj0)) goto fail;
6218 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6219 if (SWIG_arg_fail(1)) SWIG_fail;
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 delete arg1;
6223
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 Py_INCREF(Py_None); resultobj = Py_None;
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 static PyObject *_wrap_MouseState_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj = NULL;
6236 wxMouseState *arg1 = (wxMouseState *) 0 ;
6237 int result;
6238 PyObject * obj0 = 0 ;
6239 char *kwnames[] = {
6240 (char *) "self", NULL
6241 };
6242
6243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetX",kwnames,&obj0)) goto fail;
6244 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6245 if (SWIG_arg_fail(1)) SWIG_fail;
6246 {
6247 PyThreadState* __tstate = wxPyBeginAllowThreads();
6248 result = (int)(arg1)->GetX();
6249
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 {
6254 resultobj = SWIG_From_int(static_cast<int >(result));
6255 }
6256 return resultobj;
6257 fail:
6258 return NULL;
6259 }
6260
6261
6262 static PyObject *_wrap_MouseState_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj = NULL;
6264 wxMouseState *arg1 = (wxMouseState *) 0 ;
6265 int result;
6266 PyObject * obj0 = 0 ;
6267 char *kwnames[] = {
6268 (char *) "self", NULL
6269 };
6270
6271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetY",kwnames,&obj0)) goto fail;
6272 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6273 if (SWIG_arg_fail(1)) SWIG_fail;
6274 {
6275 PyThreadState* __tstate = wxPyBeginAllowThreads();
6276 result = (int)(arg1)->GetY();
6277
6278 wxPyEndAllowThreads(__tstate);
6279 if (PyErr_Occurred()) SWIG_fail;
6280 }
6281 {
6282 resultobj = SWIG_From_int(static_cast<int >(result));
6283 }
6284 return resultobj;
6285 fail:
6286 return NULL;
6287 }
6288
6289
6290 static PyObject *_wrap_MouseState_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6291 PyObject *resultobj = NULL;
6292 wxMouseState *arg1 = (wxMouseState *) 0 ;
6293 bool result;
6294 PyObject * obj0 = 0 ;
6295 char *kwnames[] = {
6296 (char *) "self", NULL
6297 };
6298
6299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_LeftDown",kwnames,&obj0)) goto fail;
6300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6301 if (SWIG_arg_fail(1)) SWIG_fail;
6302 {
6303 PyThreadState* __tstate = wxPyBeginAllowThreads();
6304 result = (bool)(arg1)->LeftDown();
6305
6306 wxPyEndAllowThreads(__tstate);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 {
6310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6311 }
6312 return resultobj;
6313 fail:
6314 return NULL;
6315 }
6316
6317
6318 static PyObject *_wrap_MouseState_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj = NULL;
6320 wxMouseState *arg1 = (wxMouseState *) 0 ;
6321 bool result;
6322 PyObject * obj0 = 0 ;
6323 char *kwnames[] = {
6324 (char *) "self", NULL
6325 };
6326
6327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MiddleDown",kwnames,&obj0)) goto fail;
6328 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6329 if (SWIG_arg_fail(1)) SWIG_fail;
6330 {
6331 PyThreadState* __tstate = wxPyBeginAllowThreads();
6332 result = (bool)(arg1)->MiddleDown();
6333
6334 wxPyEndAllowThreads(__tstate);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 {
6338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6339 }
6340 return resultobj;
6341 fail:
6342 return NULL;
6343 }
6344
6345
6346 static PyObject *_wrap_MouseState_RightDown(PyObject *, PyObject *args, PyObject *kwargs) {
6347 PyObject *resultobj = NULL;
6348 wxMouseState *arg1 = (wxMouseState *) 0 ;
6349 bool result;
6350 PyObject * obj0 = 0 ;
6351 char *kwnames[] = {
6352 (char *) "self", NULL
6353 };
6354
6355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_RightDown",kwnames,&obj0)) goto fail;
6356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6357 if (SWIG_arg_fail(1)) SWIG_fail;
6358 {
6359 PyThreadState* __tstate = wxPyBeginAllowThreads();
6360 result = (bool)(arg1)->RightDown();
6361
6362 wxPyEndAllowThreads(__tstate);
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 {
6366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6367 }
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 static PyObject *_wrap_MouseState_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj = NULL;
6376 wxMouseState *arg1 = (wxMouseState *) 0 ;
6377 bool result;
6378 PyObject * obj0 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "self", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ControlDown",kwnames,&obj0)) goto fail;
6384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6385 if (SWIG_arg_fail(1)) SWIG_fail;
6386 {
6387 PyThreadState* __tstate = wxPyBeginAllowThreads();
6388 result = (bool)(arg1)->ControlDown();
6389
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 {
6394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6395 }
6396 return resultobj;
6397 fail:
6398 return NULL;
6399 }
6400
6401
6402 static PyObject *_wrap_MouseState_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6403 PyObject *resultobj = NULL;
6404 wxMouseState *arg1 = (wxMouseState *) 0 ;
6405 bool result;
6406 PyObject * obj0 = 0 ;
6407 char *kwnames[] = {
6408 (char *) "self", NULL
6409 };
6410
6411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ShiftDown",kwnames,&obj0)) goto fail;
6412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6413 if (SWIG_arg_fail(1)) SWIG_fail;
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 result = (bool)(arg1)->ShiftDown();
6417
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 {
6422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6423 }
6424 return resultobj;
6425 fail:
6426 return NULL;
6427 }
6428
6429
6430 static PyObject *_wrap_MouseState_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj = NULL;
6432 wxMouseState *arg1 = (wxMouseState *) 0 ;
6433 bool result;
6434 PyObject * obj0 = 0 ;
6435 char *kwnames[] = {
6436 (char *) "self", NULL
6437 };
6438
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_AltDown",kwnames,&obj0)) goto fail;
6440 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6441 if (SWIG_arg_fail(1)) SWIG_fail;
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 result = (bool)(arg1)->AltDown();
6445
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 {
6450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6451 }
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 static PyObject *_wrap_MouseState_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
6459 PyObject *resultobj = NULL;
6460 wxMouseState *arg1 = (wxMouseState *) 0 ;
6461 bool result;
6462 PyObject * obj0 = 0 ;
6463 char *kwnames[] = {
6464 (char *) "self", NULL
6465 };
6466
6467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MetaDown",kwnames,&obj0)) goto fail;
6468 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6469 if (SWIG_arg_fail(1)) SWIG_fail;
6470 {
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 result = (bool)(arg1)->MetaDown();
6473
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 {
6478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6479 }
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 static PyObject *_wrap_MouseState_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
6487 PyObject *resultobj = NULL;
6488 wxMouseState *arg1 = (wxMouseState *) 0 ;
6489 bool result;
6490 PyObject * obj0 = 0 ;
6491 char *kwnames[] = {
6492 (char *) "self", NULL
6493 };
6494
6495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_CmdDown",kwnames,&obj0)) goto fail;
6496 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6497 if (SWIG_arg_fail(1)) SWIG_fail;
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 result = (bool)(arg1)->CmdDown();
6501
6502 wxPyEndAllowThreads(__tstate);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 }
6505 {
6506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6507 }
6508 return resultobj;
6509 fail:
6510 return NULL;
6511 }
6512
6513
6514 static PyObject *_wrap_MouseState_SetX(PyObject *, PyObject *args, PyObject *kwargs) {
6515 PyObject *resultobj = NULL;
6516 wxMouseState *arg1 = (wxMouseState *) 0 ;
6517 int arg2 ;
6518 PyObject * obj0 = 0 ;
6519 PyObject * obj1 = 0 ;
6520 char *kwnames[] = {
6521 (char *) "self",(char *) "x", NULL
6522 };
6523
6524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetX",kwnames,&obj0,&obj1)) goto fail;
6525 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6526 if (SWIG_arg_fail(1)) SWIG_fail;
6527 {
6528 arg2 = static_cast<int >(SWIG_As_int(obj1));
6529 if (SWIG_arg_fail(2)) SWIG_fail;
6530 }
6531 {
6532 PyThreadState* __tstate = wxPyBeginAllowThreads();
6533 (arg1)->SetX(arg2);
6534
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 Py_INCREF(Py_None); resultobj = Py_None;
6539 return resultobj;
6540 fail:
6541 return NULL;
6542 }
6543
6544
6545 static PyObject *_wrap_MouseState_SetY(PyObject *, PyObject *args, PyObject *kwargs) {
6546 PyObject *resultobj = NULL;
6547 wxMouseState *arg1 = (wxMouseState *) 0 ;
6548 int arg2 ;
6549 PyObject * obj0 = 0 ;
6550 PyObject * obj1 = 0 ;
6551 char *kwnames[] = {
6552 (char *) "self",(char *) "y", NULL
6553 };
6554
6555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetY",kwnames,&obj0,&obj1)) goto fail;
6556 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6557 if (SWIG_arg_fail(1)) SWIG_fail;
6558 {
6559 arg2 = static_cast<int >(SWIG_As_int(obj1));
6560 if (SWIG_arg_fail(2)) SWIG_fail;
6561 }
6562 {
6563 PyThreadState* __tstate = wxPyBeginAllowThreads();
6564 (arg1)->SetY(arg2);
6565
6566 wxPyEndAllowThreads(__tstate);
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 Py_INCREF(Py_None); resultobj = Py_None;
6570 return resultobj;
6571 fail:
6572 return NULL;
6573 }
6574
6575
6576 static PyObject *_wrap_MouseState_SetLeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6577 PyObject *resultobj = NULL;
6578 wxMouseState *arg1 = (wxMouseState *) 0 ;
6579 bool arg2 ;
6580 PyObject * obj0 = 0 ;
6581 PyObject * obj1 = 0 ;
6582 char *kwnames[] = {
6583 (char *) "self",(char *) "down", NULL
6584 };
6585
6586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetLeftDown",kwnames,&obj0,&obj1)) goto fail;
6587 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6588 if (SWIG_arg_fail(1)) SWIG_fail;
6589 {
6590 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6591 if (SWIG_arg_fail(2)) SWIG_fail;
6592 }
6593 {
6594 PyThreadState* __tstate = wxPyBeginAllowThreads();
6595 (arg1)->SetLeftDown(arg2);
6596
6597 wxPyEndAllowThreads(__tstate);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 Py_INCREF(Py_None); resultobj = Py_None;
6601 return resultobj;
6602 fail:
6603 return NULL;
6604 }
6605
6606
6607 static PyObject *_wrap_MouseState_SetMiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
6608 PyObject *resultobj = NULL;
6609 wxMouseState *arg1 = (wxMouseState *) 0 ;
6610 bool arg2 ;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 char *kwnames[] = {
6614 (char *) "self",(char *) "down", NULL
6615 };
6616
6617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMiddleDown",kwnames,&obj0,&obj1)) goto fail;
6618 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6619 if (SWIG_arg_fail(1)) SWIG_fail;
6620 {
6621 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6622 if (SWIG_arg_fail(2)) SWIG_fail;
6623 }
6624 {
6625 PyThreadState* __tstate = wxPyBeginAllowThreads();
6626 (arg1)->SetMiddleDown(arg2);
6627
6628 wxPyEndAllowThreads(__tstate);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 Py_INCREF(Py_None); resultobj = Py_None;
6632 return resultobj;
6633 fail:
6634 return NULL;
6635 }
6636
6637
6638 static PyObject *_wrap_MouseState_SetRightDown(PyObject *, PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj = NULL;
6640 wxMouseState *arg1 = (wxMouseState *) 0 ;
6641 bool arg2 ;
6642 PyObject * obj0 = 0 ;
6643 PyObject * obj1 = 0 ;
6644 char *kwnames[] = {
6645 (char *) "self",(char *) "down", NULL
6646 };
6647
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetRightDown",kwnames,&obj0,&obj1)) goto fail;
6649 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6650 if (SWIG_arg_fail(1)) SWIG_fail;
6651 {
6652 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6653 if (SWIG_arg_fail(2)) SWIG_fail;
6654 }
6655 {
6656 PyThreadState* __tstate = wxPyBeginAllowThreads();
6657 (arg1)->SetRightDown(arg2);
6658
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 Py_INCREF(Py_None); resultobj = Py_None;
6663 return resultobj;
6664 fail:
6665 return NULL;
6666 }
6667
6668
6669 static PyObject *_wrap_MouseState_SetControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj = NULL;
6671 wxMouseState *arg1 = (wxMouseState *) 0 ;
6672 bool arg2 ;
6673 PyObject * obj0 = 0 ;
6674 PyObject * obj1 = 0 ;
6675 char *kwnames[] = {
6676 (char *) "self",(char *) "down", NULL
6677 };
6678
6679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetControlDown",kwnames,&obj0,&obj1)) goto fail;
6680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6681 if (SWIG_arg_fail(1)) SWIG_fail;
6682 {
6683 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6684 if (SWIG_arg_fail(2)) SWIG_fail;
6685 }
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 (arg1)->SetControlDown(arg2);
6689
6690 wxPyEndAllowThreads(__tstate);
6691 if (PyErr_Occurred()) SWIG_fail;
6692 }
6693 Py_INCREF(Py_None); resultobj = Py_None;
6694 return resultobj;
6695 fail:
6696 return NULL;
6697 }
6698
6699
6700 static PyObject *_wrap_MouseState_SetShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
6701 PyObject *resultobj = NULL;
6702 wxMouseState *arg1 = (wxMouseState *) 0 ;
6703 bool arg2 ;
6704 PyObject * obj0 = 0 ;
6705 PyObject * obj1 = 0 ;
6706 char *kwnames[] = {
6707 (char *) "self",(char *) "down", NULL
6708 };
6709
6710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetShiftDown",kwnames,&obj0,&obj1)) goto fail;
6711 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6712 if (SWIG_arg_fail(1)) SWIG_fail;
6713 {
6714 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6715 if (SWIG_arg_fail(2)) SWIG_fail;
6716 }
6717 {
6718 PyThreadState* __tstate = wxPyBeginAllowThreads();
6719 (arg1)->SetShiftDown(arg2);
6720
6721 wxPyEndAllowThreads(__tstate);
6722 if (PyErr_Occurred()) SWIG_fail;
6723 }
6724 Py_INCREF(Py_None); resultobj = Py_None;
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 static PyObject *_wrap_MouseState_SetAltDown(PyObject *, PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = NULL;
6733 wxMouseState *arg1 = (wxMouseState *) 0 ;
6734 bool arg2 ;
6735 PyObject * obj0 = 0 ;
6736 PyObject * obj1 = 0 ;
6737 char *kwnames[] = {
6738 (char *) "self",(char *) "down", NULL
6739 };
6740
6741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetAltDown",kwnames,&obj0,&obj1)) goto fail;
6742 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6743 if (SWIG_arg_fail(1)) SWIG_fail;
6744 {
6745 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6746 if (SWIG_arg_fail(2)) SWIG_fail;
6747 }
6748 {
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 (arg1)->SetAltDown(arg2);
6751
6752 wxPyEndAllowThreads(__tstate);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 Py_INCREF(Py_None); resultobj = Py_None;
6756 return resultobj;
6757 fail:
6758 return NULL;
6759 }
6760
6761
6762 static PyObject *_wrap_MouseState_SetMetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
6763 PyObject *resultobj = NULL;
6764 wxMouseState *arg1 = (wxMouseState *) 0 ;
6765 bool arg2 ;
6766 PyObject * obj0 = 0 ;
6767 PyObject * obj1 = 0 ;
6768 char *kwnames[] = {
6769 (char *) "self",(char *) "down", NULL
6770 };
6771
6772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMetaDown",kwnames,&obj0,&obj1)) goto fail;
6773 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0);
6774 if (SWIG_arg_fail(1)) SWIG_fail;
6775 {
6776 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
6777 if (SWIG_arg_fail(2)) SWIG_fail;
6778 }
6779 {
6780 PyThreadState* __tstate = wxPyBeginAllowThreads();
6781 (arg1)->SetMetaDown(arg2);
6782
6783 wxPyEndAllowThreads(__tstate);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 Py_INCREF(Py_None); resultobj = Py_None;
6787 return resultobj;
6788 fail:
6789 return NULL;
6790 }
6791
6792
6793 static PyObject * MouseState_swigregister(PyObject *, PyObject *args) {
6794 PyObject *obj;
6795 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6796 SWIG_TypeClientData(SWIGTYPE_p_wxMouseState, obj);
6797 Py_INCREF(obj);
6798 return Py_BuildValue((char *)"");
6799 }
6800 static PyObject *_wrap_GetMouseState(PyObject *, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj = NULL;
6802 wxMouseState result;
6803 char *kwnames[] = {
6804 NULL
6805 };
6806
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMouseState",kwnames)) goto fail;
6808 {
6809 PyThreadState* __tstate = wxPyBeginAllowThreads();
6810 result = wxGetMouseState();
6811
6812 wxPyEndAllowThreads(__tstate);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 {
6816 wxMouseState * resultptr;
6817 resultptr = new wxMouseState(static_cast<wxMouseState & >(result));
6818 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMouseState, 1);
6819 }
6820 return resultobj;
6821 fail:
6822 return NULL;
6823 }
6824
6825
6826 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
6827 PyObject *resultobj = NULL;
6828 char *kwnames[] = {
6829 NULL
6830 };
6831
6832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
6833 {
6834 if (!wxPyCheckForApp()) SWIG_fail;
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 wxWakeUpMainThread();
6837
6838 wxPyEndAllowThreads(__tstate);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 Py_INCREF(Py_None); resultobj = Py_None;
6842 return resultobj;
6843 fail:
6844 return NULL;
6845 }
6846
6847
6848 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
6849 PyObject *resultobj = NULL;
6850 char *kwnames[] = {
6851 NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
6855 {
6856 if (!wxPyCheckForApp()) SWIG_fail;
6857 PyThreadState* __tstate = wxPyBeginAllowThreads();
6858 wxMutexGuiEnter();
6859
6860 wxPyEndAllowThreads(__tstate);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 }
6863 Py_INCREF(Py_None); resultobj = Py_None;
6864 return resultobj;
6865 fail:
6866 return NULL;
6867 }
6868
6869
6870 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
6871 PyObject *resultobj = NULL;
6872 char *kwnames[] = {
6873 NULL
6874 };
6875
6876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
6877 {
6878 if (!wxPyCheckForApp()) SWIG_fail;
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 wxMutexGuiLeave();
6881
6882 wxPyEndAllowThreads(__tstate);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 Py_INCREF(Py_None); resultobj = Py_None;
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = NULL;
6894 wxMutexGuiLocker *result;
6895 char *kwnames[] = {
6896 NULL
6897 };
6898
6899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
6900 {
6901 if (!wxPyCheckForApp()) SWIG_fail;
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
6909 return resultobj;
6910 fail:
6911 return NULL;
6912 }
6913
6914
6915 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
6916 PyObject *resultobj = NULL;
6917 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
6918 PyObject * obj0 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "self", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
6924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_EXCEPTION | 0);
6925 if (SWIG_arg_fail(1)) SWIG_fail;
6926 {
6927 PyThreadState* __tstate = wxPyBeginAllowThreads();
6928 delete arg1;
6929
6930 wxPyEndAllowThreads(__tstate);
6931 if (PyErr_Occurred()) SWIG_fail;
6932 }
6933 Py_INCREF(Py_None); resultobj = Py_None;
6934 return resultobj;
6935 fail:
6936 return NULL;
6937 }
6938
6939
6940 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
6941 PyObject *obj;
6942 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6943 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
6944 Py_INCREF(obj);
6945 return Py_BuildValue((char *)"");
6946 }
6947 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
6948 PyObject *resultobj = NULL;
6949 bool result;
6950 char *kwnames[] = {
6951 NULL
6952 };
6953
6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
6955 {
6956 PyThreadState* __tstate = wxPyBeginAllowThreads();
6957 result = (bool)wxThread_IsMain();
6958
6959 wxPyEndAllowThreads(__tstate);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 }
6962 {
6963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6964 }
6965 return resultobj;
6966 fail:
6967 return NULL;
6968 }
6969
6970
6971 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
6972 PyObject *resultobj = NULL;
6973 wxString *arg1 = 0 ;
6974 wxToolTip *result;
6975 bool temp1 = false ;
6976 PyObject * obj0 = 0 ;
6977 char *kwnames[] = {
6978 (char *) "tip", NULL
6979 };
6980
6981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
6982 {
6983 arg1 = wxString_in_helper(obj0);
6984 if (arg1 == NULL) SWIG_fail;
6985 temp1 = true;
6986 }
6987 {
6988 if (!wxPyCheckForApp()) SWIG_fail;
6989 PyThreadState* __tstate = wxPyBeginAllowThreads();
6990 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
6991
6992 wxPyEndAllowThreads(__tstate);
6993 if (PyErr_Occurred()) SWIG_fail;
6994 }
6995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolTip, 1);
6996 {
6997 if (temp1)
6998 delete arg1;
6999 }
7000 return resultobj;
7001 fail:
7002 {
7003 if (temp1)
7004 delete arg1;
7005 }
7006 return NULL;
7007 }
7008
7009
7010 static PyObject *_wrap_delete_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
7011 PyObject *resultobj = NULL;
7012 wxToolTip *arg1 = (wxToolTip *) 0 ;
7013 PyObject * obj0 = 0 ;
7014 char *kwnames[] = {
7015 (char *) "self", NULL
7016 };
7017
7018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ToolTip",kwnames,&obj0)) goto fail;
7019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7020 if (SWIG_arg_fail(1)) SWIG_fail;
7021 {
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 delete arg1;
7024
7025 wxPyEndAllowThreads(__tstate);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 Py_INCREF(Py_None); resultobj = Py_None;
7029 return resultobj;
7030 fail:
7031 return NULL;
7032 }
7033
7034
7035 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
7036 PyObject *resultobj = NULL;
7037 wxToolTip *arg1 = (wxToolTip *) 0 ;
7038 wxString *arg2 = 0 ;
7039 bool temp2 = false ;
7040 PyObject * obj0 = 0 ;
7041 PyObject * obj1 = 0 ;
7042 char *kwnames[] = {
7043 (char *) "self",(char *) "tip", NULL
7044 };
7045
7046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
7047 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7048 if (SWIG_arg_fail(1)) SWIG_fail;
7049 {
7050 arg2 = wxString_in_helper(obj1);
7051 if (arg2 == NULL) SWIG_fail;
7052 temp2 = true;
7053 }
7054 {
7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
7056 (arg1)->SetTip((wxString const &)*arg2);
7057
7058 wxPyEndAllowThreads(__tstate);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 Py_INCREF(Py_None); resultobj = Py_None;
7062 {
7063 if (temp2)
7064 delete arg2;
7065 }
7066 return resultobj;
7067 fail:
7068 {
7069 if (temp2)
7070 delete arg2;
7071 }
7072 return NULL;
7073 }
7074
7075
7076 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
7077 PyObject *resultobj = NULL;
7078 wxToolTip *arg1 = (wxToolTip *) 0 ;
7079 wxString result;
7080 PyObject * obj0 = 0 ;
7081 char *kwnames[] = {
7082 (char *) "self", NULL
7083 };
7084
7085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
7086 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7087 if (SWIG_arg_fail(1)) SWIG_fail;
7088 {
7089 PyThreadState* __tstate = wxPyBeginAllowThreads();
7090 result = (arg1)->GetTip();
7091
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 {
7096 #if wxUSE_UNICODE
7097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7098 #else
7099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7100 #endif
7101 }
7102 return resultobj;
7103 fail:
7104 return NULL;
7105 }
7106
7107
7108 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7109 PyObject *resultobj = NULL;
7110 wxToolTip *arg1 = (wxToolTip *) 0 ;
7111 wxWindow *result;
7112 PyObject * obj0 = 0 ;
7113 char *kwnames[] = {
7114 (char *) "self", NULL
7115 };
7116
7117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
7118 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
7119 if (SWIG_arg_fail(1)) SWIG_fail;
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 result = (wxWindow *)(arg1)->GetWindow();
7123
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 {
7128 resultobj = wxPyMake_wxObject(result, 0);
7129 }
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj = NULL;
7138 bool arg1 ;
7139 PyObject * obj0 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "flag", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
7145 {
7146 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
7147 if (SWIG_arg_fail(1)) SWIG_fail;
7148 }
7149 {
7150 PyThreadState* __tstate = wxPyBeginAllowThreads();
7151 wxToolTip::Enable(arg1);
7152
7153 wxPyEndAllowThreads(__tstate);
7154 if (PyErr_Occurred()) SWIG_fail;
7155 }
7156 Py_INCREF(Py_None); resultobj = Py_None;
7157 return resultobj;
7158 fail:
7159 return NULL;
7160 }
7161
7162
7163 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
7164 PyObject *resultobj = NULL;
7165 long arg1 ;
7166 PyObject * obj0 = 0 ;
7167 char *kwnames[] = {
7168 (char *) "milliseconds", NULL
7169 };
7170
7171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
7172 {
7173 arg1 = static_cast<long >(SWIG_As_long(obj0));
7174 if (SWIG_arg_fail(1)) SWIG_fail;
7175 }
7176 {
7177 PyThreadState* __tstate = wxPyBeginAllowThreads();
7178 wxToolTip::SetDelay(arg1);
7179
7180 wxPyEndAllowThreads(__tstate);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 Py_INCREF(Py_None); resultobj = Py_None;
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
7191 PyObject *obj;
7192 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7193 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
7194 Py_INCREF(obj);
7195 return Py_BuildValue((char *)"");
7196 }
7197 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
7198 PyObject *resultobj = NULL;
7199 wxWindow *arg1 = (wxWindow *) 0 ;
7200 wxSize *arg2 = 0 ;
7201 wxCaret *result;
7202 wxSize temp2 ;
7203 PyObject * obj0 = 0 ;
7204 PyObject * obj1 = 0 ;
7205 char *kwnames[] = {
7206 (char *) "window",(char *) "size", NULL
7207 };
7208
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
7210 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
7211 if (SWIG_arg_fail(1)) SWIG_fail;
7212 {
7213 arg2 = &temp2;
7214 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7215 }
7216 {
7217 if (!wxPyCheckForApp()) SWIG_fail;
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
7220
7221 wxPyEndAllowThreads(__tstate);
7222 if (PyErr_Occurred()) SWIG_fail;
7223 }
7224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
7225 return resultobj;
7226 fail:
7227 return NULL;
7228 }
7229
7230
7231 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
7232 PyObject *resultobj = NULL;
7233 wxCaret *arg1 = (wxCaret *) 0 ;
7234 PyObject * obj0 = 0 ;
7235 char *kwnames[] = {
7236 (char *) "self", NULL
7237 };
7238
7239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
7240 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7241 if (SWIG_arg_fail(1)) SWIG_fail;
7242 {
7243 PyThreadState* __tstate = wxPyBeginAllowThreads();
7244 delete arg1;
7245
7246 wxPyEndAllowThreads(__tstate);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 Py_INCREF(Py_None); resultobj = Py_None;
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = NULL;
7258 wxCaret *arg1 = (wxCaret *) 0 ;
7259 PyObject * obj0 = 0 ;
7260 char *kwnames[] = {
7261 (char *) "self", NULL
7262 };
7263
7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Destroy",kwnames,&obj0)) goto fail;
7265 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7266 if (SWIG_arg_fail(1)) SWIG_fail;
7267 {
7268 PyThreadState* __tstate = wxPyBeginAllowThreads();
7269 wxCaret_Destroy(arg1);
7270
7271 wxPyEndAllowThreads(__tstate);
7272 if (PyErr_Occurred()) SWIG_fail;
7273 }
7274 Py_INCREF(Py_None); resultobj = Py_None;
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
7282 PyObject *resultobj = NULL;
7283 wxCaret *arg1 = (wxCaret *) 0 ;
7284 bool result;
7285 PyObject * obj0 = 0 ;
7286 char *kwnames[] = {
7287 (char *) "self", NULL
7288 };
7289
7290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
7291 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7292 if (SWIG_arg_fail(1)) SWIG_fail;
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 result = (bool)(arg1)->IsOk();
7296
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 {
7301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7302 }
7303 return resultobj;
7304 fail:
7305 return NULL;
7306 }
7307
7308
7309 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
7310 PyObject *resultobj = NULL;
7311 wxCaret *arg1 = (wxCaret *) 0 ;
7312 bool result;
7313 PyObject * obj0 = 0 ;
7314 char *kwnames[] = {
7315 (char *) "self", NULL
7316 };
7317
7318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
7319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7320 if (SWIG_arg_fail(1)) SWIG_fail;
7321 {
7322 PyThreadState* __tstate = wxPyBeginAllowThreads();
7323 result = (bool)(arg1)->IsVisible();
7324
7325 wxPyEndAllowThreads(__tstate);
7326 if (PyErr_Occurred()) SWIG_fail;
7327 }
7328 {
7329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7330 }
7331 return resultobj;
7332 fail:
7333 return NULL;
7334 }
7335
7336
7337 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj = NULL;
7339 wxCaret *arg1 = (wxCaret *) 0 ;
7340 wxPoint result;
7341 PyObject * obj0 = 0 ;
7342 char *kwnames[] = {
7343 (char *) "self", NULL
7344 };
7345
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
7347 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7348 if (SWIG_arg_fail(1)) SWIG_fail;
7349 {
7350 PyThreadState* __tstate = wxPyBeginAllowThreads();
7351 result = (arg1)->GetPosition();
7352
7353 wxPyEndAllowThreads(__tstate);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 {
7357 wxPoint * resultptr;
7358 resultptr = new wxPoint(static_cast<wxPoint & >(result));
7359 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
7360 }
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
7368 PyObject *resultobj = NULL;
7369 wxCaret *arg1 = (wxCaret *) 0 ;
7370 int *arg2 = (int *) 0 ;
7371 int *arg3 = (int *) 0 ;
7372 int temp2 ;
7373 int res2 = 0 ;
7374 int temp3 ;
7375 int res3 = 0 ;
7376 PyObject * obj0 = 0 ;
7377 char *kwnames[] = {
7378 (char *) "self", NULL
7379 };
7380
7381 arg2 = &temp2; res2 = SWIG_NEWOBJ;
7382 arg3 = &temp3; res3 = SWIG_NEWOBJ;
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
7384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7385 if (SWIG_arg_fail(1)) SWIG_fail;
7386 {
7387 PyThreadState* __tstate = wxPyBeginAllowThreads();
7388 (arg1)->GetPosition(arg2,arg3);
7389
7390 wxPyEndAllowThreads(__tstate);
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 Py_INCREF(Py_None); resultobj = Py_None;
7394 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
7395 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
7396 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
7397 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
7398 return resultobj;
7399 fail:
7400 return NULL;
7401 }
7402
7403
7404 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
7405 PyObject *resultobj = NULL;
7406 wxCaret *arg1 = (wxCaret *) 0 ;
7407 wxSize result;
7408 PyObject * obj0 = 0 ;
7409 char *kwnames[] = {
7410 (char *) "self", NULL
7411 };
7412
7413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
7414 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7415 if (SWIG_arg_fail(1)) SWIG_fail;
7416 {
7417 PyThreadState* __tstate = wxPyBeginAllowThreads();
7418 result = (arg1)->GetSize();
7419
7420 wxPyEndAllowThreads(__tstate);
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 {
7424 wxSize * resultptr;
7425 resultptr = new wxSize(static_cast<wxSize & >(result));
7426 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
7427 }
7428 return resultobj;
7429 fail:
7430 return NULL;
7431 }
7432
7433
7434 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
7435 PyObject *resultobj = NULL;
7436 wxCaret *arg1 = (wxCaret *) 0 ;
7437 int *arg2 = (int *) 0 ;
7438 int *arg3 = (int *) 0 ;
7439 int temp2 ;
7440 int res2 = 0 ;
7441 int temp3 ;
7442 int res3 = 0 ;
7443 PyObject * obj0 = 0 ;
7444 char *kwnames[] = {
7445 (char *) "self", NULL
7446 };
7447
7448 arg2 = &temp2; res2 = SWIG_NEWOBJ;
7449 arg3 = &temp3; res3 = SWIG_NEWOBJ;
7450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
7451 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7452 if (SWIG_arg_fail(1)) SWIG_fail;
7453 {
7454 PyThreadState* __tstate = wxPyBeginAllowThreads();
7455 (arg1)->GetSize(arg2,arg3);
7456
7457 wxPyEndAllowThreads(__tstate);
7458 if (PyErr_Occurred()) SWIG_fail;
7459 }
7460 Py_INCREF(Py_None); resultobj = Py_None;
7461 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
7462 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
7463 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
7464 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
7465 return resultobj;
7466 fail:
7467 return NULL;
7468 }
7469
7470
7471 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7472 PyObject *resultobj = NULL;
7473 wxCaret *arg1 = (wxCaret *) 0 ;
7474 wxWindow *result;
7475 PyObject * obj0 = 0 ;
7476 char *kwnames[] = {
7477 (char *) "self", NULL
7478 };
7479
7480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
7481 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7482 if (SWIG_arg_fail(1)) SWIG_fail;
7483 {
7484 PyThreadState* __tstate = wxPyBeginAllowThreads();
7485 result = (wxWindow *)(arg1)->GetWindow();
7486
7487 wxPyEndAllowThreads(__tstate);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 {
7491 resultobj = wxPyMake_wxObject(result, 0);
7492 }
7493 return resultobj;
7494 fail:
7495 return NULL;
7496 }
7497
7498
7499 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
7500 PyObject *resultobj = NULL;
7501 wxCaret *arg1 = (wxCaret *) 0 ;
7502 int arg2 ;
7503 int arg3 ;
7504 PyObject * obj0 = 0 ;
7505 PyObject * obj1 = 0 ;
7506 PyObject * obj2 = 0 ;
7507 char *kwnames[] = {
7508 (char *) "self",(char *) "x",(char *) "y", NULL
7509 };
7510
7511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7513 if (SWIG_arg_fail(1)) SWIG_fail;
7514 {
7515 arg2 = static_cast<int >(SWIG_As_int(obj1));
7516 if (SWIG_arg_fail(2)) SWIG_fail;
7517 }
7518 {
7519 arg3 = static_cast<int >(SWIG_As_int(obj2));
7520 if (SWIG_arg_fail(3)) SWIG_fail;
7521 }
7522 {
7523 PyThreadState* __tstate = wxPyBeginAllowThreads();
7524 (arg1)->Move(arg2,arg3);
7525
7526 wxPyEndAllowThreads(__tstate);
7527 if (PyErr_Occurred()) SWIG_fail;
7528 }
7529 Py_INCREF(Py_None); resultobj = Py_None;
7530 return resultobj;
7531 fail:
7532 return NULL;
7533 }
7534
7535
7536 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
7537 PyObject *resultobj = NULL;
7538 wxCaret *arg1 = (wxCaret *) 0 ;
7539 wxPoint *arg2 = 0 ;
7540 wxPoint temp2 ;
7541 PyObject * obj0 = 0 ;
7542 PyObject * obj1 = 0 ;
7543 char *kwnames[] = {
7544 (char *) "self",(char *) "pt", NULL
7545 };
7546
7547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
7548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7549 if (SWIG_arg_fail(1)) SWIG_fail;
7550 {
7551 arg2 = &temp2;
7552 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7553 }
7554 {
7555 PyThreadState* __tstate = wxPyBeginAllowThreads();
7556 (arg1)->Move((wxPoint const &)*arg2);
7557
7558 wxPyEndAllowThreads(__tstate);
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 Py_INCREF(Py_None); resultobj = Py_None;
7562 return resultobj;
7563 fail:
7564 return NULL;
7565 }
7566
7567
7568 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj = NULL;
7570 wxCaret *arg1 = (wxCaret *) 0 ;
7571 int arg2 ;
7572 int arg3 ;
7573 PyObject * obj0 = 0 ;
7574 PyObject * obj1 = 0 ;
7575 PyObject * obj2 = 0 ;
7576 char *kwnames[] = {
7577 (char *) "self",(char *) "width",(char *) "height", NULL
7578 };
7579
7580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
7581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7582 if (SWIG_arg_fail(1)) SWIG_fail;
7583 {
7584 arg2 = static_cast<int >(SWIG_As_int(obj1));
7585 if (SWIG_arg_fail(2)) SWIG_fail;
7586 }
7587 {
7588 arg3 = static_cast<int >(SWIG_As_int(obj2));
7589 if (SWIG_arg_fail(3)) SWIG_fail;
7590 }
7591 {
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 (arg1)->SetSize(arg2,arg3);
7594
7595 wxPyEndAllowThreads(__tstate);
7596 if (PyErr_Occurred()) SWIG_fail;
7597 }
7598 Py_INCREF(Py_None); resultobj = Py_None;
7599 return resultobj;
7600 fail:
7601 return NULL;
7602 }
7603
7604
7605 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
7606 PyObject *resultobj = NULL;
7607 wxCaret *arg1 = (wxCaret *) 0 ;
7608 wxSize *arg2 = 0 ;
7609 wxSize temp2 ;
7610 PyObject * obj0 = 0 ;
7611 PyObject * obj1 = 0 ;
7612 char *kwnames[] = {
7613 (char *) "self",(char *) "size", NULL
7614 };
7615
7616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
7617 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7618 if (SWIG_arg_fail(1)) SWIG_fail;
7619 {
7620 arg2 = &temp2;
7621 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7622 }
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 (arg1)->SetSize((wxSize const &)*arg2);
7626
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 Py_INCREF(Py_None); resultobj = Py_None;
7631 return resultobj;
7632 fail:
7633 return NULL;
7634 }
7635
7636
7637 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
7638 PyObject *resultobj = NULL;
7639 wxCaret *arg1 = (wxCaret *) 0 ;
7640 int arg2 = (int) true ;
7641 PyObject * obj0 = 0 ;
7642 PyObject * obj1 = 0 ;
7643 char *kwnames[] = {
7644 (char *) "self",(char *) "show", NULL
7645 };
7646
7647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
7648 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7649 if (SWIG_arg_fail(1)) SWIG_fail;
7650 if (obj1) {
7651 {
7652 arg2 = static_cast<int >(SWIG_As_int(obj1));
7653 if (SWIG_arg_fail(2)) SWIG_fail;
7654 }
7655 }
7656 {
7657 PyThreadState* __tstate = wxPyBeginAllowThreads();
7658 (arg1)->Show(arg2);
7659
7660 wxPyEndAllowThreads(__tstate);
7661 if (PyErr_Occurred()) SWIG_fail;
7662 }
7663 Py_INCREF(Py_None); resultobj = Py_None;
7664 return resultobj;
7665 fail:
7666 return NULL;
7667 }
7668
7669
7670 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
7671 PyObject *resultobj = NULL;
7672 wxCaret *arg1 = (wxCaret *) 0 ;
7673 PyObject * obj0 = 0 ;
7674 char *kwnames[] = {
7675 (char *) "self", NULL
7676 };
7677
7678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
7679 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
7680 if (SWIG_arg_fail(1)) SWIG_fail;
7681 {
7682 PyThreadState* __tstate = wxPyBeginAllowThreads();
7683 (arg1)->Hide();
7684
7685 wxPyEndAllowThreads(__tstate);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 Py_INCREF(Py_None); resultobj = Py_None;
7689 return resultobj;
7690 fail:
7691 return NULL;
7692 }
7693
7694
7695 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
7696 PyObject *resultobj = NULL;
7697 int result;
7698 char *kwnames[] = {
7699 NULL
7700 };
7701
7702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
7703 {
7704 PyThreadState* __tstate = wxPyBeginAllowThreads();
7705 result = (int)wxCaret::GetBlinkTime();
7706
7707 wxPyEndAllowThreads(__tstate);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 }
7710 {
7711 resultobj = SWIG_From_int(static_cast<int >(result));
7712 }
7713 return resultobj;
7714 fail:
7715 return NULL;
7716 }
7717
7718
7719 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
7720 PyObject *resultobj = NULL;
7721 int arg1 ;
7722 PyObject * obj0 = 0 ;
7723 char *kwnames[] = {
7724 (char *) "milliseconds", NULL
7725 };
7726
7727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
7728 {
7729 arg1 = static_cast<int >(SWIG_As_int(obj0));
7730 if (SWIG_arg_fail(1)) SWIG_fail;
7731 }
7732 {
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 wxCaret::SetBlinkTime(arg1);
7735
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 Py_INCREF(Py_None); resultobj = Py_None;
7740 return resultobj;
7741 fail:
7742 return NULL;
7743 }
7744
7745
7746 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
7747 PyObject *obj;
7748 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7749 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
7750 Py_INCREF(obj);
7751 return Py_BuildValue((char *)"");
7752 }
7753 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj = NULL;
7755 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
7756 wxBusyCursor *result;
7757 PyObject * obj0 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "cursor", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
7763 if (obj0) {
7764 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
7765 if (SWIG_arg_fail(1)) SWIG_fail;
7766 }
7767 {
7768 if (!wxPyCheckForApp()) SWIG_fail;
7769 PyThreadState* __tstate = wxPyBeginAllowThreads();
7770 result = (wxBusyCursor *)new wxBusyCursor(arg1);
7771
7772 wxPyEndAllowThreads(__tstate);
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj = NULL;
7784 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
7785 PyObject * obj0 = 0 ;
7786 char *kwnames[] = {
7787 (char *) "self", NULL
7788 };
7789
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
7791 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_EXCEPTION | 0);
7792 if (SWIG_arg_fail(1)) SWIG_fail;
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 delete arg1;
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 Py_INCREF(Py_None); resultobj = Py_None;
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
7808 PyObject *obj;
7809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7810 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
7811 Py_INCREF(obj);
7812 return Py_BuildValue((char *)"");
7813 }
7814 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
7815 PyObject *resultobj = NULL;
7816 wxWindow *arg1 = (wxWindow *) NULL ;
7817 wxWindowDisabler *result;
7818 PyObject * obj0 = 0 ;
7819 char *kwnames[] = {
7820 (char *) "winToSkip", NULL
7821 };
7822
7823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
7824 if (obj0) {
7825 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
7826 if (SWIG_arg_fail(1)) SWIG_fail;
7827 }
7828 {
7829 if (!wxPyCheckForApp()) SWIG_fail;
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
7832
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj = NULL;
7845 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
7846 PyObject * obj0 = 0 ;
7847 char *kwnames[] = {
7848 (char *) "self", NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
7852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_EXCEPTION | 0);
7853 if (SWIG_arg_fail(1)) SWIG_fail;
7854 {
7855 PyThreadState* __tstate = wxPyBeginAllowThreads();
7856 delete arg1;
7857
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 Py_INCREF(Py_None); resultobj = Py_None;
7862 return resultobj;
7863 fail:
7864 return NULL;
7865 }
7866
7867
7868 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
7869 PyObject *obj;
7870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7871 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
7872 Py_INCREF(obj);
7873 return Py_BuildValue((char *)"");
7874 }
7875 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7876 PyObject *resultobj = NULL;
7877 wxString *arg1 = 0 ;
7878 wxBusyInfo *result;
7879 bool temp1 = false ;
7880 PyObject * obj0 = 0 ;
7881 char *kwnames[] = {
7882 (char *) "message", NULL
7883 };
7884
7885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
7886 {
7887 arg1 = wxString_in_helper(obj0);
7888 if (arg1 == NULL) SWIG_fail;
7889 temp1 = true;
7890 }
7891 {
7892 if (!wxPyCheckForApp()) SWIG_fail;
7893 PyThreadState* __tstate = wxPyBeginAllowThreads();
7894 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
7895
7896 wxPyEndAllowThreads(__tstate);
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
7900 {
7901 if (temp1)
7902 delete arg1;
7903 }
7904 return resultobj;
7905 fail:
7906 {
7907 if (temp1)
7908 delete arg1;
7909 }
7910 return NULL;
7911 }
7912
7913
7914 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj = NULL;
7916 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
7917 PyObject * obj0 = 0 ;
7918 char *kwnames[] = {
7919 (char *) "self", NULL
7920 };
7921
7922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
7923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_EXCEPTION | 0);
7924 if (SWIG_arg_fail(1)) SWIG_fail;
7925 {
7926 PyThreadState* __tstate = wxPyBeginAllowThreads();
7927 delete arg1;
7928
7929 wxPyEndAllowThreads(__tstate);
7930 if (PyErr_Occurred()) SWIG_fail;
7931 }
7932 Py_INCREF(Py_None); resultobj = Py_None;
7933 return resultobj;
7934 fail:
7935 return NULL;
7936 }
7937
7938
7939 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
7940 PyObject *obj;
7941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7942 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
7943 Py_INCREF(obj);
7944 return Py_BuildValue((char *)"");
7945 }
7946 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
7947 PyObject *resultobj = NULL;
7948 wxStopWatch *result;
7949 char *kwnames[] = {
7950 NULL
7951 };
7952
7953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
7954 {
7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
7956 result = (wxStopWatch *)new wxStopWatch();
7957
7958 wxPyEndAllowThreads(__tstate);
7959 if (PyErr_Occurred()) SWIG_fail;
7960 }
7961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
7962 return resultobj;
7963 fail:
7964 return NULL;
7965 }
7966
7967
7968 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7969 PyObject *resultobj = NULL;
7970 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
7971 long arg2 = (long) 0 ;
7972 PyObject * obj0 = 0 ;
7973 PyObject * obj1 = 0 ;
7974 char *kwnames[] = {
7975 (char *) "self",(char *) "t0", NULL
7976 };
7977
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
7979 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
7980 if (SWIG_arg_fail(1)) SWIG_fail;
7981 if (obj1) {
7982 {
7983 arg2 = static_cast<long >(SWIG_As_long(obj1));
7984 if (SWIG_arg_fail(2)) SWIG_fail;
7985 }
7986 }
7987 {
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 (arg1)->Start(arg2);
7990
7991 wxPyEndAllowThreads(__tstate);
7992 if (PyErr_Occurred()) SWIG_fail;
7993 }
7994 Py_INCREF(Py_None); resultobj = Py_None;
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj = NULL;
8003 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
8004 PyObject * obj0 = 0 ;
8005 char *kwnames[] = {
8006 (char *) "self", NULL
8007 };
8008
8009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
8010 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8011 if (SWIG_arg_fail(1)) SWIG_fail;
8012 {
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 (arg1)->Pause();
8015
8016 wxPyEndAllowThreads(__tstate);
8017 if (PyErr_Occurred()) SWIG_fail;
8018 }
8019 Py_INCREF(Py_None); resultobj = Py_None;
8020 return resultobj;
8021 fail:
8022 return NULL;
8023 }
8024
8025
8026 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
8027 PyObject *resultobj = NULL;
8028 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
8029 PyObject * obj0 = 0 ;
8030 char *kwnames[] = {
8031 (char *) "self", NULL
8032 };
8033
8034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
8035 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8036 if (SWIG_arg_fail(1)) SWIG_fail;
8037 {
8038 PyThreadState* __tstate = wxPyBeginAllowThreads();
8039 (arg1)->Resume();
8040
8041 wxPyEndAllowThreads(__tstate);
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 Py_INCREF(Py_None); resultobj = Py_None;
8045 return resultobj;
8046 fail:
8047 return NULL;
8048 }
8049
8050
8051 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
8052 PyObject *resultobj = NULL;
8053 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
8054 long result;
8055 PyObject * obj0 = 0 ;
8056 char *kwnames[] = {
8057 (char *) "self", NULL
8058 };
8059
8060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
8061 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0);
8062 if (SWIG_arg_fail(1)) SWIG_fail;
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = (long)((wxStopWatch const *)arg1)->Time();
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 {
8071 resultobj = SWIG_From_long(static_cast<long >(result));
8072 }
8073 return resultobj;
8074 fail:
8075 return NULL;
8076 }
8077
8078
8079 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
8080 PyObject *obj;
8081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8082 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
8083 Py_INCREF(obj);
8084 return Py_BuildValue((char *)"");
8085 }
8086 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8087 PyObject *resultobj = NULL;
8088 int arg1 = (int) 9 ;
8089 int arg2 = (int) wxID_FILE1 ;
8090 wxFileHistory *result;
8091 PyObject * obj0 = 0 ;
8092 PyObject * obj1 = 0 ;
8093 char *kwnames[] = {
8094 (char *) "maxFiles",(char *) "idBase", NULL
8095 };
8096
8097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
8098 if (obj0) {
8099 {
8100 arg1 = static_cast<int >(SWIG_As_int(obj0));
8101 if (SWIG_arg_fail(1)) SWIG_fail;
8102 }
8103 }
8104 if (obj1) {
8105 {
8106 arg2 = static_cast<int >(SWIG_As_int(obj1));
8107 if (SWIG_arg_fail(2)) SWIG_fail;
8108 }
8109 }
8110 {
8111 PyThreadState* __tstate = wxPyBeginAllowThreads();
8112 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
8113
8114 wxPyEndAllowThreads(__tstate);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
8118 return resultobj;
8119 fail:
8120 return NULL;
8121 }
8122
8123
8124 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8125 PyObject *resultobj = NULL;
8126 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8127 PyObject * obj0 = 0 ;
8128 char *kwnames[] = {
8129 (char *) "self", NULL
8130 };
8131
8132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
8133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8134 if (SWIG_arg_fail(1)) SWIG_fail;
8135 {
8136 PyThreadState* __tstate = wxPyBeginAllowThreads();
8137 delete arg1;
8138
8139 wxPyEndAllowThreads(__tstate);
8140 if (PyErr_Occurred()) SWIG_fail;
8141 }
8142 Py_INCREF(Py_None); resultobj = Py_None;
8143 return resultobj;
8144 fail:
8145 return NULL;
8146 }
8147
8148
8149 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj = NULL;
8151 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8152 wxString *arg2 = 0 ;
8153 bool temp2 = false ;
8154 PyObject * obj0 = 0 ;
8155 PyObject * obj1 = 0 ;
8156 char *kwnames[] = {
8157 (char *) "self",(char *) "file", NULL
8158 };
8159
8160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
8161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8162 if (SWIG_arg_fail(1)) SWIG_fail;
8163 {
8164 arg2 = wxString_in_helper(obj1);
8165 if (arg2 == NULL) SWIG_fail;
8166 temp2 = true;
8167 }
8168 {
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 (arg1)->AddFileToHistory((wxString const &)*arg2);
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 Py_INCREF(Py_None); resultobj = Py_None;
8176 {
8177 if (temp2)
8178 delete arg2;
8179 }
8180 return resultobj;
8181 fail:
8182 {
8183 if (temp2)
8184 delete arg2;
8185 }
8186 return NULL;
8187 }
8188
8189
8190 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
8191 PyObject *resultobj = NULL;
8192 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8193 int arg2 ;
8194 PyObject * obj0 = 0 ;
8195 PyObject * obj1 = 0 ;
8196 char *kwnames[] = {
8197 (char *) "self",(char *) "i", NULL
8198 };
8199
8200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
8201 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8202 if (SWIG_arg_fail(1)) SWIG_fail;
8203 {
8204 arg2 = static_cast<int >(SWIG_As_int(obj1));
8205 if (SWIG_arg_fail(2)) SWIG_fail;
8206 }
8207 {
8208 PyThreadState* __tstate = wxPyBeginAllowThreads();
8209 (arg1)->RemoveFileFromHistory(arg2);
8210
8211 wxPyEndAllowThreads(__tstate);
8212 if (PyErr_Occurred()) SWIG_fail;
8213 }
8214 Py_INCREF(Py_None); resultobj = Py_None;
8215 return resultobj;
8216 fail:
8217 return NULL;
8218 }
8219
8220
8221 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
8222 PyObject *resultobj = NULL;
8223 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8224 int result;
8225 PyObject * obj0 = 0 ;
8226 char *kwnames[] = {
8227 (char *) "self", NULL
8228 };
8229
8230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
8231 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8232 if (SWIG_arg_fail(1)) SWIG_fail;
8233 {
8234 PyThreadState* __tstate = wxPyBeginAllowThreads();
8235 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
8236
8237 wxPyEndAllowThreads(__tstate);
8238 if (PyErr_Occurred()) SWIG_fail;
8239 }
8240 {
8241 resultobj = SWIG_From_int(static_cast<int >(result));
8242 }
8243 return resultobj;
8244 fail:
8245 return NULL;
8246 }
8247
8248
8249 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8250 PyObject *resultobj = NULL;
8251 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8252 wxMenu *arg2 = (wxMenu *) 0 ;
8253 PyObject * obj0 = 0 ;
8254 PyObject * obj1 = 0 ;
8255 char *kwnames[] = {
8256 (char *) "self",(char *) "menu", NULL
8257 };
8258
8259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
8260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8261 if (SWIG_arg_fail(1)) SWIG_fail;
8262 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8263 if (SWIG_arg_fail(2)) SWIG_fail;
8264 {
8265 PyThreadState* __tstate = wxPyBeginAllowThreads();
8266 (arg1)->UseMenu(arg2);
8267
8268 wxPyEndAllowThreads(__tstate);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 }
8271 Py_INCREF(Py_None); resultobj = Py_None;
8272 return resultobj;
8273 fail:
8274 return NULL;
8275 }
8276
8277
8278 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8279 PyObject *resultobj = NULL;
8280 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8281 wxMenu *arg2 = (wxMenu *) 0 ;
8282 PyObject * obj0 = 0 ;
8283 PyObject * obj1 = 0 ;
8284 char *kwnames[] = {
8285 (char *) "self",(char *) "menu", NULL
8286 };
8287
8288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
8289 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8290 if (SWIG_arg_fail(1)) SWIG_fail;
8291 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8292 if (SWIG_arg_fail(2)) SWIG_fail;
8293 {
8294 PyThreadState* __tstate = wxPyBeginAllowThreads();
8295 (arg1)->RemoveMenu(arg2);
8296
8297 wxPyEndAllowThreads(__tstate);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 Py_INCREF(Py_None); resultobj = Py_None;
8301 return resultobj;
8302 fail:
8303 return NULL;
8304 }
8305
8306
8307 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
8308 PyObject *resultobj = NULL;
8309 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8310 wxConfigBase *arg2 = 0 ;
8311 PyObject * obj0 = 0 ;
8312 PyObject * obj1 = 0 ;
8313 char *kwnames[] = {
8314 (char *) "self",(char *) "config", NULL
8315 };
8316
8317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
8318 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8319 if (SWIG_arg_fail(1)) SWIG_fail;
8320 {
8321 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
8322 if (SWIG_arg_fail(2)) SWIG_fail;
8323 if (arg2 == NULL) {
8324 SWIG_null_ref("wxConfigBase");
8325 }
8326 if (SWIG_arg_fail(2)) SWIG_fail;
8327 }
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 (arg1)->Load(*arg2);
8331
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 Py_INCREF(Py_None); resultobj = Py_None;
8336 return resultobj;
8337 fail:
8338 return NULL;
8339 }
8340
8341
8342 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
8343 PyObject *resultobj = NULL;
8344 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8345 wxConfigBase *arg2 = 0 ;
8346 PyObject * obj0 = 0 ;
8347 PyObject * obj1 = 0 ;
8348 char *kwnames[] = {
8349 (char *) "self",(char *) "config", NULL
8350 };
8351
8352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
8353 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8354 if (SWIG_arg_fail(1)) SWIG_fail;
8355 {
8356 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
8357 if (SWIG_arg_fail(2)) SWIG_fail;
8358 if (arg2 == NULL) {
8359 SWIG_null_ref("wxConfigBase");
8360 }
8361 if (SWIG_arg_fail(2)) SWIG_fail;
8362 }
8363 {
8364 PyThreadState* __tstate = wxPyBeginAllowThreads();
8365 (arg1)->Save(*arg2);
8366
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 Py_INCREF(Py_None); resultobj = Py_None;
8371 return resultobj;
8372 fail:
8373 return NULL;
8374 }
8375
8376
8377 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8378 PyObject *resultobj = NULL;
8379 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8380 PyObject * obj0 = 0 ;
8381 char *kwnames[] = {
8382 (char *) "self", NULL
8383 };
8384
8385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
8386 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8387 if (SWIG_arg_fail(1)) SWIG_fail;
8388 {
8389 PyThreadState* __tstate = wxPyBeginAllowThreads();
8390 (arg1)->AddFilesToMenu();
8391
8392 wxPyEndAllowThreads(__tstate);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 Py_INCREF(Py_None); resultobj = Py_None;
8396 return resultobj;
8397 fail:
8398 return NULL;
8399 }
8400
8401
8402 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
8403 PyObject *resultobj = NULL;
8404 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8405 wxMenu *arg2 = (wxMenu *) 0 ;
8406 PyObject * obj0 = 0 ;
8407 PyObject * obj1 = 0 ;
8408 char *kwnames[] = {
8409 (char *) "self",(char *) "menu", NULL
8410 };
8411
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
8413 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8414 if (SWIG_arg_fail(1)) SWIG_fail;
8415 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
8416 if (SWIG_arg_fail(2)) SWIG_fail;
8417 {
8418 PyThreadState* __tstate = wxPyBeginAllowThreads();
8419 (arg1)->AddFilesToMenu(arg2);
8420
8421 wxPyEndAllowThreads(__tstate);
8422 if (PyErr_Occurred()) SWIG_fail;
8423 }
8424 Py_INCREF(Py_None); resultobj = Py_None;
8425 return resultobj;
8426 fail:
8427 return NULL;
8428 }
8429
8430
8431 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
8432 PyObject *resultobj = NULL;
8433 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8434 int arg2 ;
8435 wxString result;
8436 PyObject * obj0 = 0 ;
8437 PyObject * obj1 = 0 ;
8438 char *kwnames[] = {
8439 (char *) "self",(char *) "i", NULL
8440 };
8441
8442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
8443 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8444 if (SWIG_arg_fail(1)) SWIG_fail;
8445 {
8446 arg2 = static_cast<int >(SWIG_As_int(obj1));
8447 if (SWIG_arg_fail(2)) SWIG_fail;
8448 }
8449 {
8450 PyThreadState* __tstate = wxPyBeginAllowThreads();
8451 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
8452
8453 wxPyEndAllowThreads(__tstate);
8454 if (PyErr_Occurred()) SWIG_fail;
8455 }
8456 {
8457 #if wxUSE_UNICODE
8458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8459 #else
8460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8461 #endif
8462 }
8463 return resultobj;
8464 fail:
8465 return NULL;
8466 }
8467
8468
8469 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
8470 PyObject *resultobj = NULL;
8471 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
8472 int result;
8473 PyObject * obj0 = 0 ;
8474 char *kwnames[] = {
8475 (char *) "self", NULL
8476 };
8477
8478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
8479 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0);
8480 if (SWIG_arg_fail(1)) SWIG_fail;
8481 {
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (int)((wxFileHistory const *)arg1)->GetCount();
8484
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 {
8489 resultobj = SWIG_From_int(static_cast<int >(result));
8490 }
8491 return resultobj;
8492 fail:
8493 return NULL;
8494 }
8495
8496
8497 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
8498 PyObject *obj;
8499 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8500 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
8501 Py_INCREF(obj);
8502 return Py_BuildValue((char *)"");
8503 }
8504 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8505 PyObject *resultobj = NULL;
8506 wxString *arg1 = 0 ;
8507 wxString const &arg2_defvalue = wxPyEmptyString ;
8508 wxString *arg2 = (wxString *) &arg2_defvalue ;
8509 wxSingleInstanceChecker *result;
8510 bool temp1 = false ;
8511 bool temp2 = false ;
8512 PyObject * obj0 = 0 ;
8513 PyObject * obj1 = 0 ;
8514 char *kwnames[] = {
8515 (char *) "name",(char *) "path", NULL
8516 };
8517
8518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
8519 {
8520 arg1 = wxString_in_helper(obj0);
8521 if (arg1 == NULL) SWIG_fail;
8522 temp1 = true;
8523 }
8524 if (obj1) {
8525 {
8526 arg2 = wxString_in_helper(obj1);
8527 if (arg2 == NULL) SWIG_fail;
8528 temp2 = true;
8529 }
8530 }
8531 {
8532 PyThreadState* __tstate = wxPyBeginAllowThreads();
8533 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
8534
8535 wxPyEndAllowThreads(__tstate);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
8539 {
8540 if (temp1)
8541 delete arg1;
8542 }
8543 {
8544 if (temp2)
8545 delete arg2;
8546 }
8547 return resultobj;
8548 fail:
8549 {
8550 if (temp1)
8551 delete arg1;
8552 }
8553 {
8554 if (temp2)
8555 delete arg2;
8556 }
8557 return NULL;
8558 }
8559
8560
8561 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8562 PyObject *resultobj = NULL;
8563 wxSingleInstanceChecker *result;
8564 char *kwnames[] = {
8565 NULL
8566 };
8567
8568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
8577 return resultobj;
8578 fail:
8579 return NULL;
8580 }
8581
8582
8583 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj = NULL;
8585 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8586 PyObject * obj0 = 0 ;
8587 char *kwnames[] = {
8588 (char *) "self", NULL
8589 };
8590
8591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
8592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8593 if (SWIG_arg_fail(1)) SWIG_fail;
8594 {
8595 PyThreadState* __tstate = wxPyBeginAllowThreads();
8596 delete arg1;
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 Py_INCREF(Py_None); resultobj = Py_None;
8602 return resultobj;
8603 fail:
8604 return NULL;
8605 }
8606
8607
8608 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8609 PyObject *resultobj = NULL;
8610 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8611 wxString *arg2 = 0 ;
8612 wxString const &arg3_defvalue = wxPyEmptyString ;
8613 wxString *arg3 = (wxString *) &arg3_defvalue ;
8614 bool result;
8615 bool temp2 = false ;
8616 bool temp3 = false ;
8617 PyObject * obj0 = 0 ;
8618 PyObject * obj1 = 0 ;
8619 PyObject * obj2 = 0 ;
8620 char *kwnames[] = {
8621 (char *) "self",(char *) "name",(char *) "path", NULL
8622 };
8623
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8625 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8626 if (SWIG_arg_fail(1)) SWIG_fail;
8627 {
8628 arg2 = wxString_in_helper(obj1);
8629 if (arg2 == NULL) SWIG_fail;
8630 temp2 = true;
8631 }
8632 if (obj2) {
8633 {
8634 arg3 = wxString_in_helper(obj2);
8635 if (arg3 == NULL) SWIG_fail;
8636 temp3 = true;
8637 }
8638 }
8639 {
8640 PyThreadState* __tstate = wxPyBeginAllowThreads();
8641 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
8642
8643 wxPyEndAllowThreads(__tstate);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
8646 {
8647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8648 }
8649 {
8650 if (temp2)
8651 delete arg2;
8652 }
8653 {
8654 if (temp3)
8655 delete arg3;
8656 }
8657 return resultobj;
8658 fail:
8659 {
8660 if (temp2)
8661 delete arg2;
8662 }
8663 {
8664 if (temp3)
8665 delete arg3;
8666 }
8667 return NULL;
8668 }
8669
8670
8671 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
8672 PyObject *resultobj = NULL;
8673 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
8674 bool result;
8675 PyObject * obj0 = 0 ;
8676 char *kwnames[] = {
8677 (char *) "self", NULL
8678 };
8679
8680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
8681 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0);
8682 if (SWIG_arg_fail(1)) SWIG_fail;
8683 {
8684 PyThreadState* __tstate = wxPyBeginAllowThreads();
8685 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
8686
8687 wxPyEndAllowThreads(__tstate);
8688 if (PyErr_Occurred()) SWIG_fail;
8689 }
8690 {
8691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8692 }
8693 return resultobj;
8694 fail:
8695 return NULL;
8696 }
8697
8698
8699 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
8700 PyObject *obj;
8701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8702 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
8703 Py_INCREF(obj);
8704 return Py_BuildValue((char *)"");
8705 }
8706 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj = NULL;
8708 wxWindow *arg1 = (wxWindow *) 0 ;
8709 wxDC *arg2 = 0 ;
8710 bool result;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "window",(char *) "dc", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) goto fail;
8718 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
8719 if (SWIG_arg_fail(1)) SWIG_fail;
8720 {
8721 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
8722 if (SWIG_arg_fail(2)) SWIG_fail;
8723 if (arg2 == NULL) {
8724 SWIG_null_ref("wxDC");
8725 }
8726 if (SWIG_arg_fail(2)) SWIG_fail;
8727 }
8728 {
8729 PyThreadState* __tstate = wxPyBeginAllowThreads();
8730 result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2);
8731
8732 wxPyEndAllowThreads(__tstate);
8733 if (PyErr_Occurred()) SWIG_fail;
8734 }
8735 {
8736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8737 }
8738 return resultobj;
8739 fail:
8740 return NULL;
8741 }
8742
8743
8744 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj = NULL;
8746 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8747 PyObject * obj0 = 0 ;
8748 char *kwnames[] = {
8749 (char *) "self", NULL
8750 };
8751
8752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
8753 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8754 if (SWIG_arg_fail(1)) SWIG_fail;
8755 {
8756 PyThreadState* __tstate = wxPyBeginAllowThreads();
8757 delete arg1;
8758
8759 wxPyEndAllowThreads(__tstate);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 }
8762 Py_INCREF(Py_None); resultobj = Py_None;
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj = NULL;
8771 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8772 wxString result;
8773 PyObject * obj0 = 0 ;
8774 char *kwnames[] = {
8775 (char *) "self", NULL
8776 };
8777
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
8779 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8780 if (SWIG_arg_fail(1)) SWIG_fail;
8781 {
8782 PyThreadState* __tstate = wxPyBeginAllowThreads();
8783 result = (arg1)->GetTip();
8784
8785 wxPyEndAllowThreads(__tstate);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 {
8789 #if wxUSE_UNICODE
8790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8791 #else
8792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8793 #endif
8794 }
8795 return resultobj;
8796 fail:
8797 return NULL;
8798 }
8799
8800
8801 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj = NULL;
8803 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8804 size_t result;
8805 PyObject * obj0 = 0 ;
8806 char *kwnames[] = {
8807 (char *) "self", NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
8811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8812 if (SWIG_arg_fail(1)) SWIG_fail;
8813 {
8814 PyThreadState* __tstate = wxPyBeginAllowThreads();
8815 result = (size_t)(arg1)->GetCurrentTip();
8816
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 {
8821 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
8822 }
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj = NULL;
8831 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
8832 wxString *arg2 = 0 ;
8833 wxString result;
8834 bool temp2 = false ;
8835 PyObject * obj0 = 0 ;
8836 PyObject * obj1 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self",(char *) "tip", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
8842 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8843 if (SWIG_arg_fail(1)) SWIG_fail;
8844 {
8845 arg2 = wxString_in_helper(obj1);
8846 if (arg2 == NULL) SWIG_fail;
8847 temp2 = true;
8848 }
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 result = (arg1)->PreprocessTip((wxString const &)*arg2);
8852
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 {
8857 #if wxUSE_UNICODE
8858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8859 #else
8860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8861 #endif
8862 }
8863 {
8864 if (temp2)
8865 delete arg2;
8866 }
8867 return resultobj;
8868 fail:
8869 {
8870 if (temp2)
8871 delete arg2;
8872 }
8873 return NULL;
8874 }
8875
8876
8877 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
8878 PyObject *obj;
8879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8880 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
8881 Py_INCREF(obj);
8882 return Py_BuildValue((char *)"");
8883 }
8884 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8885 PyObject *resultobj = NULL;
8886 size_t arg1 ;
8887 wxPyTipProvider *result;
8888 PyObject * obj0 = 0 ;
8889 char *kwnames[] = {
8890 (char *) "currentTip", NULL
8891 };
8892
8893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
8894 {
8895 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
8896 if (SWIG_arg_fail(1)) SWIG_fail;
8897 }
8898 {
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
8901
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
8906 return resultobj;
8907 fail:
8908 return NULL;
8909 }
8910
8911
8912 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj = NULL;
8914 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
8915 PyObject *arg2 = (PyObject *) 0 ;
8916 PyObject *arg3 = (PyObject *) 0 ;
8917 PyObject * obj0 = 0 ;
8918 PyObject * obj1 = 0 ;
8919 PyObject * obj2 = 0 ;
8920 char *kwnames[] = {
8921 (char *) "self",(char *) "self",(char *) "_class", NULL
8922 };
8923
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8925 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_EXCEPTION | 0);
8926 if (SWIG_arg_fail(1)) SWIG_fail;
8927 arg2 = obj1;
8928 arg3 = obj2;
8929 {
8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
8931 (arg1)->_setCallbackInfo(arg2,arg3);
8932
8933 wxPyEndAllowThreads(__tstate);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 }
8936 Py_INCREF(Py_None); resultobj = Py_None;
8937 return resultobj;
8938 fail:
8939 return NULL;
8940 }
8941
8942
8943 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
8944 PyObject *obj;
8945 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8946 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
8947 Py_INCREF(obj);
8948 return Py_BuildValue((char *)"");
8949 }
8950 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
8951 PyObject *resultobj = NULL;
8952 wxWindow *arg1 = (wxWindow *) 0 ;
8953 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
8954 bool arg3 = (bool) true ;
8955 bool result;
8956 PyObject * obj0 = 0 ;
8957 PyObject * obj1 = 0 ;
8958 PyObject * obj2 = 0 ;
8959 char *kwnames[] = {
8960 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
8961 };
8962
8963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
8964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
8965 if (SWIG_arg_fail(1)) SWIG_fail;
8966 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0);
8967 if (SWIG_arg_fail(2)) SWIG_fail;
8968 if (obj2) {
8969 {
8970 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
8971 if (SWIG_arg_fail(3)) SWIG_fail;
8972 }
8973 }
8974 {
8975 if (!wxPyCheckForApp()) SWIG_fail;
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 result = (bool)wxShowTip(arg1,arg2,arg3);
8978
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 {
8983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8984 }
8985 return resultobj;
8986 fail:
8987 return NULL;
8988 }
8989
8990
8991 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
8992 PyObject *resultobj = NULL;
8993 wxString *arg1 = 0 ;
8994 size_t arg2 ;
8995 wxTipProvider *result;
8996 bool temp1 = false ;
8997 PyObject * obj0 = 0 ;
8998 PyObject * obj1 = 0 ;
8999 char *kwnames[] = {
9000 (char *) "filename",(char *) "currentTip", NULL
9001 };
9002
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
9004 {
9005 arg1 = wxString_in_helper(obj0);
9006 if (arg1 == NULL) SWIG_fail;
9007 temp1 = true;
9008 }
9009 {
9010 arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1));
9011 if (SWIG_arg_fail(2)) SWIG_fail;
9012 }
9013 {
9014 if (!wxPyCheckForApp()) SWIG_fail;
9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
9016 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
9017
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
9022 {
9023 if (temp1)
9024 delete arg1;
9025 }
9026 return resultobj;
9027 fail:
9028 {
9029 if (temp1)
9030 delete arg1;
9031 }
9032 return NULL;
9033 }
9034
9035
9036 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
9037 PyObject *resultobj = NULL;
9038 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9039 int arg2 = (int) -1 ;
9040 wxPyTimer *result;
9041 PyObject * obj0 = 0 ;
9042 PyObject * obj1 = 0 ;
9043 char *kwnames[] = {
9044 (char *) "owner",(char *) "id", NULL
9045 };
9046
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
9048 if (obj0) {
9049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
9050 if (SWIG_arg_fail(1)) SWIG_fail;
9051 }
9052 if (obj1) {
9053 {
9054 arg2 = static_cast<int >(SWIG_As_int(obj1));
9055 if (SWIG_arg_fail(2)) SWIG_fail;
9056 }
9057 }
9058 {
9059 if (!wxPyCheckForApp()) SWIG_fail;
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
9062
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
9067 return resultobj;
9068 fail:
9069 return NULL;
9070 }
9071
9072
9073 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
9074 PyObject *resultobj = NULL;
9075 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9076 PyObject * obj0 = 0 ;
9077 char *kwnames[] = {
9078 (char *) "self", NULL
9079 };
9080
9081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
9082 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9083 if (SWIG_arg_fail(1)) SWIG_fail;
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 delete arg1;
9087
9088 wxPyEndAllowThreads(__tstate);
9089 if (PyErr_Occurred()) SWIG_fail;
9090 }
9091 Py_INCREF(Py_None); resultobj = Py_None;
9092 return resultobj;
9093 fail:
9094 return NULL;
9095 }
9096
9097
9098 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9099 PyObject *resultobj = NULL;
9100 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9101 PyObject *arg2 = (PyObject *) 0 ;
9102 PyObject *arg3 = (PyObject *) 0 ;
9103 int arg4 = (int) 1 ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 PyObject * obj2 = 0 ;
9107 PyObject * obj3 = 0 ;
9108 char *kwnames[] = {
9109 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9110 };
9111
9112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9113 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9114 if (SWIG_arg_fail(1)) SWIG_fail;
9115 arg2 = obj1;
9116 arg3 = obj2;
9117 if (obj3) {
9118 {
9119 arg4 = static_cast<int >(SWIG_As_int(obj3));
9120 if (SWIG_arg_fail(4)) SWIG_fail;
9121 }
9122 }
9123 {
9124 PyThreadState* __tstate = wxPyBeginAllowThreads();
9125 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9126
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 Py_INCREF(Py_None); resultobj = Py_None;
9131 return resultobj;
9132 fail:
9133 return NULL;
9134 }
9135
9136
9137 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
9138 PyObject *resultobj = NULL;
9139 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9140 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
9141 int arg3 = (int) -1 ;
9142 PyObject * obj0 = 0 ;
9143 PyObject * obj1 = 0 ;
9144 PyObject * obj2 = 0 ;
9145 char *kwnames[] = {
9146 (char *) "self",(char *) "owner",(char *) "id", NULL
9147 };
9148
9149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) 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 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
9153 if (SWIG_arg_fail(2)) SWIG_fail;
9154 if (obj2) {
9155 {
9156 arg3 = static_cast<int >(SWIG_As_int(obj2));
9157 if (SWIG_arg_fail(3)) SWIG_fail;
9158 }
9159 }
9160 {
9161 PyThreadState* __tstate = wxPyBeginAllowThreads();
9162 (arg1)->SetOwner(arg2,arg3);
9163
9164 wxPyEndAllowThreads(__tstate);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 }
9167 Py_INCREF(Py_None); resultobj = Py_None;
9168 return resultobj;
9169 fail:
9170 return NULL;
9171 }
9172
9173
9174 static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
9175 PyObject *resultobj = NULL;
9176 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9177 wxEvtHandler *result;
9178 PyObject * obj0 = 0 ;
9179 char *kwnames[] = {
9180 (char *) "self", NULL
9181 };
9182
9183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
9184 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9185 if (SWIG_arg_fail(1)) SWIG_fail;
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (wxEvtHandler *)(arg1)->GetOwner();
9189
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 {
9194 resultobj = wxPyMake_wxObject(result, 0);
9195 }
9196 return resultobj;
9197 fail:
9198 return NULL;
9199 }
9200
9201
9202 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
9203 PyObject *resultobj = NULL;
9204 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9205 int arg2 = (int) -1 ;
9206 bool arg3 = (bool) false ;
9207 bool result;
9208 PyObject * obj0 = 0 ;
9209 PyObject * obj1 = 0 ;
9210 PyObject * obj2 = 0 ;
9211 char *kwnames[] = {
9212 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
9213 };
9214
9215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
9216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9217 if (SWIG_arg_fail(1)) SWIG_fail;
9218 if (obj1) {
9219 {
9220 arg2 = static_cast<int >(SWIG_As_int(obj1));
9221 if (SWIG_arg_fail(2)) SWIG_fail;
9222 }
9223 }
9224 if (obj2) {
9225 {
9226 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9227 if (SWIG_arg_fail(3)) SWIG_fail;
9228 }
9229 }
9230 {
9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
9232 result = (bool)(arg1)->Start(arg2,arg3);
9233
9234 wxPyEndAllowThreads(__tstate);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 }
9237 {
9238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9239 }
9240 return resultobj;
9241 fail:
9242 return NULL;
9243 }
9244
9245
9246 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj = NULL;
9248 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9249 PyObject * obj0 = 0 ;
9250 char *kwnames[] = {
9251 (char *) "self", NULL
9252 };
9253
9254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
9255 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9256 if (SWIG_arg_fail(1)) SWIG_fail;
9257 {
9258 PyThreadState* __tstate = wxPyBeginAllowThreads();
9259 (arg1)->Stop();
9260
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 Py_INCREF(Py_None); resultobj = Py_None;
9265 return resultobj;
9266 fail:
9267 return NULL;
9268 }
9269
9270
9271 static PyObject *_wrap_Timer_Notify(PyObject *, PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = NULL;
9273 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9274 PyObject * obj0 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "self", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Notify",kwnames,&obj0)) goto fail;
9280 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9281 if (SWIG_arg_fail(1)) SWIG_fail;
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 (arg1)->Notify();
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 Py_INCREF(Py_None); resultobj = Py_None;
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj = NULL;
9298 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9299 bool result;
9300 PyObject * obj0 = 0 ;
9301 char *kwnames[] = {
9302 (char *) "self", NULL
9303 };
9304
9305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
9306 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9307 if (SWIG_arg_fail(1)) SWIG_fail;
9308 {
9309 PyThreadState* __tstate = wxPyBeginAllowThreads();
9310 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
9311
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 {
9316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9317 }
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj = NULL;
9326 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9327 int result;
9328 PyObject * obj0 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "self", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
9334 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9335 if (SWIG_arg_fail(1)) SWIG_fail;
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (int)((wxPyTimer const *)arg1)->GetInterval();
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 {
9344 resultobj = SWIG_From_int(static_cast<int >(result));
9345 }
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj = NULL;
9354 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9355 bool result;
9356 PyObject * obj0 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
9362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9363 if (SWIG_arg_fail(1)) SWIG_fail;
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 {
9372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9373 }
9374 return resultobj;
9375 fail:
9376 return NULL;
9377 }
9378
9379
9380 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
9381 PyObject *resultobj = NULL;
9382 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
9383 int result;
9384 PyObject * obj0 = 0 ;
9385 char *kwnames[] = {
9386 (char *) "self", NULL
9387 };
9388
9389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
9390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0);
9391 if (SWIG_arg_fail(1)) SWIG_fail;
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 result = (int)((wxPyTimer const *)arg1)->GetId();
9395
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 {
9400 resultobj = SWIG_From_int(static_cast<int >(result));
9401 }
9402 return resultobj;
9403 fail:
9404 return NULL;
9405 }
9406
9407
9408 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
9409 PyObject *obj;
9410 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9411 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
9412 Py_INCREF(obj);
9413 return Py_BuildValue((char *)"");
9414 }
9415 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj = NULL;
9417 int arg1 = (int) 0 ;
9418 int arg2 = (int) 0 ;
9419 wxTimerEvent *result;
9420 PyObject * obj0 = 0 ;
9421 PyObject * obj1 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "timerid",(char *) "interval", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
9427 if (obj0) {
9428 {
9429 arg1 = static_cast<int >(SWIG_As_int(obj0));
9430 if (SWIG_arg_fail(1)) SWIG_fail;
9431 }
9432 }
9433 if (obj1) {
9434 {
9435 arg2 = static_cast<int >(SWIG_As_int(obj1));
9436 if (SWIG_arg_fail(2)) SWIG_fail;
9437 }
9438 }
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
9442
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
9447 return resultobj;
9448 fail:
9449 return NULL;
9450 }
9451
9452
9453 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj = NULL;
9455 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
9456 int result;
9457 PyObject * obj0 = 0 ;
9458 char *kwnames[] = {
9459 (char *) "self", NULL
9460 };
9461
9462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
9463 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_EXCEPTION | 0);
9464 if (SWIG_arg_fail(1)) SWIG_fail;
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
9468
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 {
9473 resultobj = SWIG_From_int(static_cast<int >(result));
9474 }
9475 return resultobj;
9476 fail:
9477 return NULL;
9478 }
9479
9480
9481 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
9482 PyObject *obj;
9483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9484 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
9485 Py_INCREF(obj);
9486 return Py_BuildValue((char *)"");
9487 }
9488 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
9489 PyObject *resultobj = NULL;
9490 wxTimer *arg1 = 0 ;
9491 wxTimerRunner *result;
9492 PyObject * obj0 = 0 ;
9493
9494 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
9495 {
9496 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
9497 if (SWIG_arg_fail(1)) SWIG_fail;
9498 if (arg1 == NULL) {
9499 SWIG_null_ref("wxTimer");
9500 }
9501 if (SWIG_arg_fail(1)) SWIG_fail;
9502 }
9503 {
9504 if (!wxPyCheckForApp()) SWIG_fail;
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
9519 PyObject *resultobj = NULL;
9520 wxTimer *arg1 = 0 ;
9521 int arg2 ;
9522 bool arg3 = (bool) false ;
9523 wxTimerRunner *result;
9524 PyObject * obj0 = 0 ;
9525 PyObject * obj1 = 0 ;
9526 PyObject * obj2 = 0 ;
9527
9528 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
9529 {
9530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
9531 if (SWIG_arg_fail(1)) SWIG_fail;
9532 if (arg1 == NULL) {
9533 SWIG_null_ref("wxTimer");
9534 }
9535 if (SWIG_arg_fail(1)) SWIG_fail;
9536 }
9537 {
9538 arg2 = static_cast<int >(SWIG_As_int(obj1));
9539 if (SWIG_arg_fail(2)) SWIG_fail;
9540 }
9541 if (obj2) {
9542 {
9543 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9544 if (SWIG_arg_fail(3)) SWIG_fail;
9545 }
9546 }
9547 {
9548 if (!wxPyCheckForApp()) SWIG_fail;
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
9551
9552 wxPyEndAllowThreads(__tstate);
9553 if (PyErr_Occurred()) SWIG_fail;
9554 }
9555 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
9556 return resultobj;
9557 fail:
9558 return NULL;
9559 }
9560
9561
9562 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
9563 int argc;
9564 PyObject *argv[4];
9565 int ii;
9566
9567 argc = PyObject_Length(args);
9568 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9569 argv[ii] = PyTuple_GetItem(args,ii);
9570 }
9571 if (argc == 1) {
9572 int _v;
9573 {
9574 void *ptr = 0;
9575 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
9576 _v = 0;
9577 PyErr_Clear();
9578 } else {
9579 _v = (ptr != 0);
9580 }
9581 }
9582 if (_v) {
9583 return _wrap_new_TimerRunner__SWIG_0(self,args);
9584 }
9585 }
9586 if ((argc >= 2) && (argc <= 3)) {
9587 int _v;
9588 {
9589 void *ptr = 0;
9590 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
9591 _v = 0;
9592 PyErr_Clear();
9593 } else {
9594 _v = (ptr != 0);
9595 }
9596 }
9597 if (_v) {
9598 _v = SWIG_Check_int(argv[1]);
9599 if (_v) {
9600 if (argc <= 2) {
9601 return _wrap_new_TimerRunner__SWIG_1(self,args);
9602 }
9603 _v = SWIG_Check_bool(argv[2]);
9604 if (_v) {
9605 return _wrap_new_TimerRunner__SWIG_1(self,args);
9606 }
9607 }
9608 }
9609 }
9610
9611 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'");
9612 return NULL;
9613 }
9614
9615
9616 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj = NULL;
9618 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
9619 PyObject * obj0 = 0 ;
9620 char *kwnames[] = {
9621 (char *) "self", NULL
9622 };
9623
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
9625 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0);
9626 if (SWIG_arg_fail(1)) SWIG_fail;
9627 {
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 delete arg1;
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 Py_INCREF(Py_None); resultobj = Py_None;
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj = NULL;
9643 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
9644 int arg2 ;
9645 bool arg3 = (bool) false ;
9646 PyObject * obj0 = 0 ;
9647 PyObject * obj1 = 0 ;
9648 PyObject * obj2 = 0 ;
9649 char *kwnames[] = {
9650 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
9651 };
9652
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
9654 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0);
9655 if (SWIG_arg_fail(1)) SWIG_fail;
9656 {
9657 arg2 = static_cast<int >(SWIG_As_int(obj1));
9658 if (SWIG_arg_fail(2)) SWIG_fail;
9659 }
9660 if (obj2) {
9661 {
9662 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9663 if (SWIG_arg_fail(3)) SWIG_fail;
9664 }
9665 }
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 (arg1)->Start(arg2,arg3);
9669
9670 wxPyEndAllowThreads(__tstate);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 Py_INCREF(Py_None); resultobj = Py_None;
9674 return resultobj;
9675 fail:
9676 return NULL;
9677 }
9678
9679
9680 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
9681 PyObject *obj;
9682 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9683 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
9684 Py_INCREF(obj);
9685 return Py_BuildValue((char *)"");
9686 }
9687 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
9688 PyObject *resultobj = NULL;
9689 wxLog *result;
9690 char *kwnames[] = {
9691 NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 result = (wxLog *)new wxLog();
9698
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 static PyObject *_wrap_delete_Log(PyObject *, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj = NULL;
9711 wxLog *arg1 = (wxLog *) 0 ;
9712 PyObject * obj0 = 0 ;
9713 char *kwnames[] = {
9714 (char *) "self", NULL
9715 };
9716
9717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Log",kwnames,&obj0)) goto fail;
9718 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
9719 if (SWIG_arg_fail(1)) SWIG_fail;
9720 {
9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
9722 delete arg1;
9723
9724 wxPyEndAllowThreads(__tstate);
9725 if (PyErr_Occurred()) SWIG_fail;
9726 }
9727 Py_INCREF(Py_None); resultobj = Py_None;
9728 return resultobj;
9729 fail:
9730 return NULL;
9731 }
9732
9733
9734 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj = NULL;
9736 bool result;
9737 char *kwnames[] = {
9738 NULL
9739 };
9740
9741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
9742 {
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 result = (bool)wxLog::IsEnabled();
9745
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 {
9750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9751 }
9752 return resultobj;
9753 fail:
9754 return NULL;
9755 }
9756
9757
9758 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
9759 PyObject *resultobj = NULL;
9760 bool arg1 = (bool) true ;
9761 bool result;
9762 PyObject * obj0 = 0 ;
9763 char *kwnames[] = {
9764 (char *) "doIt", NULL
9765 };
9766
9767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
9768 if (obj0) {
9769 {
9770 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
9771 if (SWIG_arg_fail(1)) SWIG_fail;
9772 }
9773 }
9774 {
9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
9776 result = (bool)wxLog::EnableLogging(arg1);
9777
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 {
9782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9783 }
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj = NULL;
9792 wxLogLevel arg1 ;
9793 wxChar *arg2 = (wxChar *) 0 ;
9794 time_t arg3 ;
9795 PyObject * obj0 = 0 ;
9796 PyObject * obj1 = 0 ;
9797 PyObject * obj2 = 0 ;
9798 char *kwnames[] = {
9799 (char *) "level",(char *) "szString",(char *) "t", NULL
9800 };
9801
9802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
9803 {
9804 arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0));
9805 if (SWIG_arg_fail(1)) SWIG_fail;
9806 }
9807 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
9808 if (SWIG_arg_fail(2)) SWIG_fail;
9809 {
9810 arg3 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj2));
9811 if (SWIG_arg_fail(3)) SWIG_fail;
9812 }
9813 {
9814 PyThreadState* __tstate = wxPyBeginAllowThreads();
9815 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
9816
9817 wxPyEndAllowThreads(__tstate);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 }
9820 Py_INCREF(Py_None); resultobj = Py_None;
9821 return resultobj;
9822 fail:
9823 return NULL;
9824 }
9825
9826
9827 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj = NULL;
9829 wxLog *arg1 = (wxLog *) 0 ;
9830 PyObject * obj0 = 0 ;
9831 char *kwnames[] = {
9832 (char *) "self", NULL
9833 };
9834
9835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
9836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
9837 if (SWIG_arg_fail(1)) SWIG_fail;
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 (arg1)->Flush();
9841
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) SWIG_fail;
9844 }
9845 Py_INCREF(Py_None); resultobj = Py_None;
9846 return resultobj;
9847 fail:
9848 return NULL;
9849 }
9850
9851
9852 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
9853 PyObject *resultobj = NULL;
9854 char *kwnames[] = {
9855 NULL
9856 };
9857
9858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
9859 {
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
9861 wxLog::FlushActive();
9862
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 Py_INCREF(Py_None); resultobj = Py_None;
9867 return resultobj;
9868 fail:
9869 return NULL;
9870 }
9871
9872
9873 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
9874 PyObject *resultobj = NULL;
9875 wxLog *result;
9876 char *kwnames[] = {
9877 NULL
9878 };
9879
9880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
9881 {
9882 PyThreadState* __tstate = wxPyBeginAllowThreads();
9883 result = (wxLog *)wxLog::GetActiveTarget();
9884
9885 wxPyEndAllowThreads(__tstate);
9886 if (PyErr_Occurred()) SWIG_fail;
9887 }
9888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
9889 return resultobj;
9890 fail:
9891 return NULL;
9892 }
9893
9894
9895 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
9896 PyObject *resultobj = NULL;
9897 wxLog *arg1 = (wxLog *) 0 ;
9898 wxLog *result;
9899 PyObject * obj0 = 0 ;
9900 char *kwnames[] = {
9901 (char *) "pLogger", NULL
9902 };
9903
9904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
9905 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
9906 if (SWIG_arg_fail(1)) SWIG_fail;
9907 {
9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
9909 result = (wxLog *)wxLog::SetActiveTarget(arg1);
9910
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
9914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
9915 return resultobj;
9916 fail:
9917 return NULL;
9918 }
9919
9920
9921 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj = NULL;
9923 char *kwnames[] = {
9924 NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
9928 {
9929 PyThreadState* __tstate = wxPyBeginAllowThreads();
9930 wxLog::Suspend();
9931
9932 wxPyEndAllowThreads(__tstate);
9933 if (PyErr_Occurred()) SWIG_fail;
9934 }
9935 Py_INCREF(Py_None); resultobj = Py_None;
9936 return resultobj;
9937 fail:
9938 return NULL;
9939 }
9940
9941
9942 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
9943 PyObject *resultobj = NULL;
9944 char *kwnames[] = {
9945 NULL
9946 };
9947
9948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 wxLog::Resume();
9952
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 Py_INCREF(Py_None); resultobj = Py_None;
9957 return resultobj;
9958 fail:
9959 return NULL;
9960 }
9961
9962
9963 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
9964 PyObject *resultobj = NULL;
9965 bool arg1 = (bool) true ;
9966 PyObject * obj0 = 0 ;
9967 char *kwnames[] = {
9968 (char *) "bVerbose", NULL
9969 };
9970
9971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
9972 if (obj0) {
9973 {
9974 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
9975 if (SWIG_arg_fail(1)) SWIG_fail;
9976 }
9977 }
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 wxLog::SetVerbose(arg1);
9981
9982 wxPyEndAllowThreads(__tstate);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 Py_INCREF(Py_None); resultobj = Py_None;
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj = NULL;
9994 wxLogLevel arg1 ;
9995 PyObject * obj0 = 0 ;
9996 char *kwnames[] = {
9997 (char *) "logLevel", NULL
9998 };
9999
10000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
10001 {
10002 arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0));
10003 if (SWIG_arg_fail(1)) SWIG_fail;
10004 }
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 wxLog::SetLogLevel(arg1);
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) SWIG_fail;
10011 }
10012 Py_INCREF(Py_None); resultobj = Py_None;
10013 return resultobj;
10014 fail:
10015 return NULL;
10016 }
10017
10018
10019 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj = NULL;
10021 char *kwnames[] = {
10022 NULL
10023 };
10024
10025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
10026 {
10027 PyThreadState* __tstate = wxPyBeginAllowThreads();
10028 wxLog::DontCreateOnDemand();
10029
10030 wxPyEndAllowThreads(__tstate);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 }
10033 Py_INCREF(Py_None); resultobj = Py_None;
10034 return resultobj;
10035 fail:
10036 return NULL;
10037 }
10038
10039
10040 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10041 PyObject *resultobj = NULL;
10042 wxTraceMask arg1 ;
10043 PyObject * obj0 = 0 ;
10044 char *kwnames[] = {
10045 (char *) "ulMask", NULL
10046 };
10047
10048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
10049 {
10050 arg1 = static_cast<wxTraceMask >(SWIG_As_unsigned_SS_long(obj0));
10051 if (SWIG_arg_fail(1)) SWIG_fail;
10052 }
10053 {
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
10055 wxLog::SetTraceMask(arg1);
10056
10057 wxPyEndAllowThreads(__tstate);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 }
10060 Py_INCREF(Py_None); resultobj = Py_None;
10061 return resultobj;
10062 fail:
10063 return NULL;
10064 }
10065
10066
10067 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10068 PyObject *resultobj = NULL;
10069 wxString *arg1 = 0 ;
10070 bool temp1 = false ;
10071 PyObject * obj0 = 0 ;
10072 char *kwnames[] = {
10073 (char *) "str", NULL
10074 };
10075
10076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
10077 {
10078 arg1 = wxString_in_helper(obj0);
10079 if (arg1 == NULL) SWIG_fail;
10080 temp1 = true;
10081 }
10082 {
10083 PyThreadState* __tstate = wxPyBeginAllowThreads();
10084 wxLog::AddTraceMask((wxString const &)*arg1);
10085
10086 wxPyEndAllowThreads(__tstate);
10087 if (PyErr_Occurred()) SWIG_fail;
10088 }
10089 Py_INCREF(Py_None); resultobj = Py_None;
10090 {
10091 if (temp1)
10092 delete arg1;
10093 }
10094 return resultobj;
10095 fail:
10096 {
10097 if (temp1)
10098 delete arg1;
10099 }
10100 return NULL;
10101 }
10102
10103
10104 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10105 PyObject *resultobj = NULL;
10106 wxString *arg1 = 0 ;
10107 bool temp1 = false ;
10108 PyObject * obj0 = 0 ;
10109 char *kwnames[] = {
10110 (char *) "str", NULL
10111 };
10112
10113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
10114 {
10115 arg1 = wxString_in_helper(obj0);
10116 if (arg1 == NULL) SWIG_fail;
10117 temp1 = true;
10118 }
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 wxLog::RemoveTraceMask((wxString const &)*arg1);
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 Py_INCREF(Py_None); resultobj = Py_None;
10127 {
10128 if (temp1)
10129 delete arg1;
10130 }
10131 return resultobj;
10132 fail:
10133 {
10134 if (temp1)
10135 delete arg1;
10136 }
10137 return NULL;
10138 }
10139
10140
10141 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj = NULL;
10143 char *kwnames[] = {
10144 NULL
10145 };
10146
10147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
10148 {
10149 PyThreadState* __tstate = wxPyBeginAllowThreads();
10150 wxLog::ClearTraceMasks();
10151
10152 wxPyEndAllowThreads(__tstate);
10153 if (PyErr_Occurred()) SWIG_fail;
10154 }
10155 Py_INCREF(Py_None); resultobj = Py_None;
10156 return resultobj;
10157 fail:
10158 return NULL;
10159 }
10160
10161
10162 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
10163 PyObject *resultobj = NULL;
10164 wxArrayString *result;
10165 char *kwnames[] = {
10166 NULL
10167 };
10168
10169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
10170 {
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 {
10173 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
10174 result = (wxArrayString *) &_result_ref;
10175 }
10176
10177 wxPyEndAllowThreads(__tstate);
10178 if (PyErr_Occurred()) SWIG_fail;
10179 }
10180 {
10181 resultobj = wxArrayString2PyList_helper(*result);
10182 }
10183 return resultobj;
10184 fail:
10185 return NULL;
10186 }
10187
10188
10189 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
10190 PyObject *resultobj = NULL;
10191 wxChar *arg1 = (wxChar *) 0 ;
10192 PyObject * obj0 = 0 ;
10193 char *kwnames[] = {
10194 (char *) "ts", NULL
10195 };
10196
10197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
10198 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
10199 if (SWIG_arg_fail(1)) SWIG_fail;
10200 {
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 wxLog::SetTimestamp((wxChar const *)arg1);
10203
10204 wxPyEndAllowThreads(__tstate);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 }
10207 Py_INCREF(Py_None); resultobj = Py_None;
10208 return resultobj;
10209 fail:
10210 return NULL;
10211 }
10212
10213
10214 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj = NULL;
10216 bool result;
10217 char *kwnames[] = {
10218 NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
10222 {
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 result = (bool)wxLog::GetVerbose();
10225
10226 wxPyEndAllowThreads(__tstate);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
10229 {
10230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10231 }
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj = NULL;
10240 wxTraceMask result;
10241 char *kwnames[] = {
10242 NULL
10243 };
10244
10245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (wxTraceMask)wxLog::GetTraceMask();
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 {
10254 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10255 }
10256 return resultobj;
10257 fail:
10258 return NULL;
10259 }
10260
10261
10262 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
10263 PyObject *resultobj = NULL;
10264 wxChar *arg1 = (wxChar *) 0 ;
10265 bool result;
10266 PyObject * obj0 = 0 ;
10267 char *kwnames[] = {
10268 (char *) "mask", NULL
10269 };
10270
10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
10272 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0);
10273 if (SWIG_arg_fail(1)) SWIG_fail;
10274 {
10275 PyThreadState* __tstate = wxPyBeginAllowThreads();
10276 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
10277
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 {
10282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10283 }
10284 return resultobj;
10285 fail:
10286 return NULL;
10287 }
10288
10289
10290 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
10291 PyObject *resultobj = NULL;
10292 wxLogLevel result;
10293 char *kwnames[] = {
10294 NULL
10295 };
10296
10297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
10298 {
10299 PyThreadState* __tstate = wxPyBeginAllowThreads();
10300 result = (wxLogLevel)wxLog::GetLogLevel();
10301
10302 wxPyEndAllowThreads(__tstate);
10303 if (PyErr_Occurred()) SWIG_fail;
10304 }
10305 {
10306 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10307 }
10308 return resultobj;
10309 fail:
10310 return NULL;
10311 }
10312
10313
10314 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
10315 PyObject *resultobj = NULL;
10316 wxChar *result;
10317 char *kwnames[] = {
10318 NULL
10319 };
10320
10321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 result = (wxChar *)wxLog::GetTimestamp();
10325
10326 wxPyEndAllowThreads(__tstate);
10327 if (PyErr_Occurred()) SWIG_fail;
10328 }
10329 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
10330 return resultobj;
10331 fail:
10332 return NULL;
10333 }
10334
10335
10336 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
10337 PyObject *resultobj = NULL;
10338 wxString result;
10339 char *kwnames[] = {
10340 NULL
10341 };
10342
10343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
10344 {
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 result = wxLog_TimeStamp();
10347
10348 wxPyEndAllowThreads(__tstate);
10349 if (PyErr_Occurred()) SWIG_fail;
10350 }
10351 {
10352 #if wxUSE_UNICODE
10353 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10354 #else
10355 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10356 #endif
10357 }
10358 return resultobj;
10359 fail:
10360 return NULL;
10361 }
10362
10363
10364 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
10365 PyObject *resultobj = NULL;
10366 wxLog *arg1 = (wxLog *) 0 ;
10367 PyObject * obj0 = 0 ;
10368 char *kwnames[] = {
10369 (char *) "self", NULL
10370 };
10371
10372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
10373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10374 if (SWIG_arg_fail(1)) SWIG_fail;
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 wxLog_Destroy(arg1);
10378
10379 wxPyEndAllowThreads(__tstate);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 Py_INCREF(Py_None); resultobj = Py_None;
10383 return resultobj;
10384 fail:
10385 return NULL;
10386 }
10387
10388
10389 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
10390 PyObject *obj;
10391 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10392 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
10393 Py_INCREF(obj);
10394 return Py_BuildValue((char *)"");
10395 }
10396 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
10397 PyObject *resultobj = NULL;
10398 wxLogStderr *result;
10399 char *kwnames[] = {
10400 NULL
10401 };
10402
10403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
10404 {
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 result = (wxLogStderr *)new wxLogStderr();
10407
10408 wxPyEndAllowThreads(__tstate);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
10411 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
10412 return resultobj;
10413 fail:
10414 return NULL;
10415 }
10416
10417
10418 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
10419 PyObject *obj;
10420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10421 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
10422 Py_INCREF(obj);
10423 return Py_BuildValue((char *)"");
10424 }
10425 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
10426 PyObject *resultobj = NULL;
10427 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10428 wxLogTextCtrl *result;
10429 PyObject * obj0 = 0 ;
10430 char *kwnames[] = {
10431 (char *) "pTextCtrl", NULL
10432 };
10433
10434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
10435 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0);
10436 if (SWIG_arg_fail(1)) SWIG_fail;
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
10440
10441 wxPyEndAllowThreads(__tstate);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
10444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
10445 return resultobj;
10446 fail:
10447 return NULL;
10448 }
10449
10450
10451 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
10452 PyObject *obj;
10453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10454 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
10455 Py_INCREF(obj);
10456 return Py_BuildValue((char *)"");
10457 }
10458 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
10459 PyObject *resultobj = NULL;
10460 wxLogGui *result;
10461 char *kwnames[] = {
10462 NULL
10463 };
10464
10465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 result = (wxLogGui *)new wxLogGui();
10469
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
10474 return resultobj;
10475 fail:
10476 return NULL;
10477 }
10478
10479
10480 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
10481 PyObject *obj;
10482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10483 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
10484 Py_INCREF(obj);
10485 return Py_BuildValue((char *)"");
10486 }
10487 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
10488 PyObject *resultobj = NULL;
10489 wxFrame *arg1 = (wxFrame *) 0 ;
10490 wxString *arg2 = 0 ;
10491 bool arg3 = (bool) true ;
10492 bool arg4 = (bool) true ;
10493 wxLogWindow *result;
10494 bool temp2 = false ;
10495 PyObject * obj0 = 0 ;
10496 PyObject * obj1 = 0 ;
10497 PyObject * obj2 = 0 ;
10498 PyObject * obj3 = 0 ;
10499 char *kwnames[] = {
10500 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
10501 };
10502
10503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10504 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
10505 if (SWIG_arg_fail(1)) SWIG_fail;
10506 {
10507 arg2 = wxString_in_helper(obj1);
10508 if (arg2 == NULL) SWIG_fail;
10509 temp2 = true;
10510 }
10511 if (obj2) {
10512 {
10513 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
10514 if (SWIG_arg_fail(3)) SWIG_fail;
10515 }
10516 }
10517 if (obj3) {
10518 {
10519 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
10520 if (SWIG_arg_fail(4)) SWIG_fail;
10521 }
10522 }
10523 {
10524 PyThreadState* __tstate = wxPyBeginAllowThreads();
10525 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
10526
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) SWIG_fail;
10529 }
10530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
10531 {
10532 if (temp2)
10533 delete arg2;
10534 }
10535 return resultobj;
10536 fail:
10537 {
10538 if (temp2)
10539 delete arg2;
10540 }
10541 return NULL;
10542 }
10543
10544
10545 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
10546 PyObject *resultobj = NULL;
10547 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10548 bool arg2 = (bool) true ;
10549 PyObject * obj0 = 0 ;
10550 PyObject * obj1 = 0 ;
10551 char *kwnames[] = {
10552 (char *) "self",(char *) "bShow", NULL
10553 };
10554
10555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
10556 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10557 if (SWIG_arg_fail(1)) SWIG_fail;
10558 if (obj1) {
10559 {
10560 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10561 if (SWIG_arg_fail(2)) SWIG_fail;
10562 }
10563 }
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 (arg1)->Show(arg2);
10567
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 Py_INCREF(Py_None); resultobj = Py_None;
10572 return resultobj;
10573 fail:
10574 return NULL;
10575 }
10576
10577
10578 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj = NULL;
10580 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10581 wxFrame *result;
10582 PyObject * obj0 = 0 ;
10583 char *kwnames[] = {
10584 (char *) "self", NULL
10585 };
10586
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
10588 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10589 if (SWIG_arg_fail(1)) SWIG_fail;
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 {
10598 resultobj = wxPyMake_wxObject(result, (bool)0);
10599 }
10600 return resultobj;
10601 fail:
10602 return NULL;
10603 }
10604
10605
10606 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj = NULL;
10608 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10609 wxLog *result;
10610 PyObject * obj0 = 0 ;
10611 char *kwnames[] = {
10612 (char *) "self", NULL
10613 };
10614
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
10616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10617 if (SWIG_arg_fail(1)) SWIG_fail;
10618 {
10619 PyThreadState* __tstate = wxPyBeginAllowThreads();
10620 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
10621
10622 wxPyEndAllowThreads(__tstate);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
10626 return resultobj;
10627 fail:
10628 return NULL;
10629 }
10630
10631
10632 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10633 PyObject *resultobj = NULL;
10634 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10635 bool result;
10636 PyObject * obj0 = 0 ;
10637 char *kwnames[] = {
10638 (char *) "self", NULL
10639 };
10640
10641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
10642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10643 if (SWIG_arg_fail(1)) SWIG_fail;
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
10647
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 {
10652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10653 }
10654 return resultobj;
10655 fail:
10656 return NULL;
10657 }
10658
10659
10660 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10661 PyObject *resultobj = NULL;
10662 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
10663 bool arg2 ;
10664 PyObject * obj0 = 0 ;
10665 PyObject * obj1 = 0 ;
10666 char *kwnames[] = {
10667 (char *) "self",(char *) "bDoPass", NULL
10668 };
10669
10670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
10671 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0);
10672 if (SWIG_arg_fail(1)) SWIG_fail;
10673 {
10674 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10675 if (SWIG_arg_fail(2)) SWIG_fail;
10676 }
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 (arg1)->PassMessages(arg2);
10680
10681 wxPyEndAllowThreads(__tstate);
10682 if (PyErr_Occurred()) SWIG_fail;
10683 }
10684 Py_INCREF(Py_None); resultobj = Py_None;
10685 return resultobj;
10686 fail:
10687 return NULL;
10688 }
10689
10690
10691 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
10692 PyObject *obj;
10693 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10694 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
10695 Py_INCREF(obj);
10696 return Py_BuildValue((char *)"");
10697 }
10698 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
10699 PyObject *resultobj = NULL;
10700 wxLog *arg1 = (wxLog *) 0 ;
10701 wxLogChain *result;
10702 PyObject * obj0 = 0 ;
10703 char *kwnames[] = {
10704 (char *) "logger", NULL
10705 };
10706
10707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
10708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10709 if (SWIG_arg_fail(1)) SWIG_fail;
10710 {
10711 PyThreadState* __tstate = wxPyBeginAllowThreads();
10712 result = (wxLogChain *)new wxLogChain(arg1);
10713
10714 wxPyEndAllowThreads(__tstate);
10715 if (PyErr_Occurred()) SWIG_fail;
10716 }
10717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
10718 return resultobj;
10719 fail:
10720 return NULL;
10721 }
10722
10723
10724 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
10725 PyObject *resultobj = NULL;
10726 wxLogChain *arg1 = (wxLogChain *) 0 ;
10727 wxLog *arg2 = (wxLog *) 0 ;
10728 PyObject * obj0 = 0 ;
10729 PyObject * obj1 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "self",(char *) "logger", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
10735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10736 if (SWIG_arg_fail(1)) SWIG_fail;
10737 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
10738 if (SWIG_arg_fail(2)) SWIG_fail;
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 (arg1)->SetLog(arg2);
10742
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 Py_INCREF(Py_None); resultobj = Py_None;
10747 return resultobj;
10748 fail:
10749 return NULL;
10750 }
10751
10752
10753 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10754 PyObject *resultobj = NULL;
10755 wxLogChain *arg1 = (wxLogChain *) 0 ;
10756 bool arg2 ;
10757 PyObject * obj0 = 0 ;
10758 PyObject * obj1 = 0 ;
10759 char *kwnames[] = {
10760 (char *) "self",(char *) "bDoPass", NULL
10761 };
10762
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
10764 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10765 if (SWIG_arg_fail(1)) SWIG_fail;
10766 {
10767 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10768 if (SWIG_arg_fail(2)) SWIG_fail;
10769 }
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 (arg1)->PassMessages(arg2);
10773
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 Py_INCREF(Py_None); resultobj = Py_None;
10778 return resultobj;
10779 fail:
10780 return NULL;
10781 }
10782
10783
10784 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
10785 PyObject *resultobj = NULL;
10786 wxLogChain *arg1 = (wxLogChain *) 0 ;
10787 bool result;
10788 PyObject * obj0 = 0 ;
10789 char *kwnames[] = {
10790 (char *) "self", NULL
10791 };
10792
10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
10794 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10795 if (SWIG_arg_fail(1)) SWIG_fail;
10796 {
10797 PyThreadState* __tstate = wxPyBeginAllowThreads();
10798 result = (bool)(arg1)->IsPassingMessages();
10799
10800 wxPyEndAllowThreads(__tstate);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 {
10804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10805 }
10806 return resultobj;
10807 fail:
10808 return NULL;
10809 }
10810
10811
10812 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
10813 PyObject *resultobj = NULL;
10814 wxLogChain *arg1 = (wxLogChain *) 0 ;
10815 wxLog *result;
10816 PyObject * obj0 = 0 ;
10817 char *kwnames[] = {
10818 (char *) "self", NULL
10819 };
10820
10821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
10822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0);
10823 if (SWIG_arg_fail(1)) SWIG_fail;
10824 {
10825 PyThreadState* __tstate = wxPyBeginAllowThreads();
10826 result = (wxLog *)(arg1)->GetOldLog();
10827
10828 wxPyEndAllowThreads(__tstate);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
10832 return resultobj;
10833 fail:
10834 return NULL;
10835 }
10836
10837
10838 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
10839 PyObject *obj;
10840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10841 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
10842 Py_INCREF(obj);
10843 return Py_BuildValue((char *)"");
10844 }
10845 static PyObject *_wrap_new_LogBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj = NULL;
10847 wxLogBuffer *result;
10848 char *kwnames[] = {
10849 NULL
10850 };
10851
10852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogBuffer",kwnames)) goto fail;
10853 {
10854 PyThreadState* __tstate = wxPyBeginAllowThreads();
10855 result = (wxLogBuffer *)new wxLogBuffer();
10856
10857 wxPyEndAllowThreads(__tstate);
10858 if (PyErr_Occurred()) SWIG_fail;
10859 }
10860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogBuffer, 1);
10861 return resultobj;
10862 fail:
10863 return NULL;
10864 }
10865
10866
10867 static PyObject *_wrap_LogBuffer_GetBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10868 PyObject *resultobj = NULL;
10869 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
10870 wxString *result;
10871 PyObject * obj0 = 0 ;
10872 char *kwnames[] = {
10873 (char *) "self", NULL
10874 };
10875
10876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_GetBuffer",kwnames,&obj0)) goto fail;
10877 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0);
10878 if (SWIG_arg_fail(1)) SWIG_fail;
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 {
10882 wxString const &_result_ref = ((wxLogBuffer const *)arg1)->GetBuffer();
10883 result = (wxString *) &_result_ref;
10884 }
10885
10886 wxPyEndAllowThreads(__tstate);
10887 if (PyErr_Occurred()) SWIG_fail;
10888 }
10889 {
10890 #if wxUSE_UNICODE
10891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10892 #else
10893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10894 #endif
10895 }
10896 return resultobj;
10897 fail:
10898 return NULL;
10899 }
10900
10901
10902 static PyObject *_wrap_LogBuffer_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
10903 PyObject *resultobj = NULL;
10904 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
10905 PyObject * obj0 = 0 ;
10906 char *kwnames[] = {
10907 (char *) "self", NULL
10908 };
10909
10910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_Flush",kwnames,&obj0)) goto fail;
10911 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0);
10912 if (SWIG_arg_fail(1)) SWIG_fail;
10913 {
10914 PyThreadState* __tstate = wxPyBeginAllowThreads();
10915 (arg1)->Flush();
10916
10917 wxPyEndAllowThreads(__tstate);
10918 if (PyErr_Occurred()) SWIG_fail;
10919 }
10920 Py_INCREF(Py_None); resultobj = Py_None;
10921 return resultobj;
10922 fail:
10923 return NULL;
10924 }
10925
10926
10927 static PyObject * LogBuffer_swigregister(PyObject *, PyObject *args) {
10928 PyObject *obj;
10929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10930 SWIG_TypeClientData(SWIGTYPE_p_wxLogBuffer, obj);
10931 Py_INCREF(obj);
10932 return Py_BuildValue((char *)"");
10933 }
10934 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
10935 PyObject *resultobj = NULL;
10936 unsigned long result;
10937 char *kwnames[] = {
10938 NULL
10939 };
10940
10941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 result = (unsigned long)wxSysErrorCode();
10945
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 {
10950 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
10951 }
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj = NULL;
10960 unsigned long arg1 = (unsigned long) 0 ;
10961 wxString result;
10962 PyObject * obj0 = 0 ;
10963 char *kwnames[] = {
10964 (char *) "nErrCode", NULL
10965 };
10966
10967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
10968 if (obj0) {
10969 {
10970 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
10971 if (SWIG_arg_fail(1)) SWIG_fail;
10972 }
10973 }
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = wxSysErrorMsg(arg1);
10977
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 {
10982 #if wxUSE_UNICODE
10983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10984 #else
10985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10986 #endif
10987 }
10988 return resultobj;
10989 fail:
10990 return NULL;
10991 }
10992
10993
10994 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = NULL;
10996 wxString *arg1 = 0 ;
10997 bool temp1 = false ;
10998 PyObject * obj0 = 0 ;
10999 char *kwnames[] = {
11000 (char *) "msg", NULL
11001 };
11002
11003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
11004 {
11005 arg1 = wxString_in_helper(obj0);
11006 if (arg1 == NULL) SWIG_fail;
11007 temp1 = true;
11008 }
11009 {
11010 PyThreadState* __tstate = wxPyBeginAllowThreads();
11011 wxPyLogFatalError((wxString const &)*arg1);
11012
11013 wxPyEndAllowThreads(__tstate);
11014 if (PyErr_Occurred()) SWIG_fail;
11015 }
11016 Py_INCREF(Py_None); resultobj = Py_None;
11017 {
11018 if (temp1)
11019 delete arg1;
11020 }
11021 return resultobj;
11022 fail:
11023 {
11024 if (temp1)
11025 delete arg1;
11026 }
11027 return NULL;
11028 }
11029
11030
11031 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj = NULL;
11033 wxString *arg1 = 0 ;
11034 bool temp1 = false ;
11035 PyObject * obj0 = 0 ;
11036 char *kwnames[] = {
11037 (char *) "msg", NULL
11038 };
11039
11040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
11041 {
11042 arg1 = wxString_in_helper(obj0);
11043 if (arg1 == NULL) SWIG_fail;
11044 temp1 = true;
11045 }
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 wxPyLogError((wxString const &)*arg1);
11049
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 Py_INCREF(Py_None); resultobj = Py_None;
11054 {
11055 if (temp1)
11056 delete arg1;
11057 }
11058 return resultobj;
11059 fail:
11060 {
11061 if (temp1)
11062 delete arg1;
11063 }
11064 return NULL;
11065 }
11066
11067
11068 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj = NULL;
11070 wxString *arg1 = 0 ;
11071 bool temp1 = false ;
11072 PyObject * obj0 = 0 ;
11073 char *kwnames[] = {
11074 (char *) "msg", NULL
11075 };
11076
11077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
11078 {
11079 arg1 = wxString_in_helper(obj0);
11080 if (arg1 == NULL) SWIG_fail;
11081 temp1 = true;
11082 }
11083 {
11084 PyThreadState* __tstate = wxPyBeginAllowThreads();
11085 wxPyLogWarning((wxString const &)*arg1);
11086
11087 wxPyEndAllowThreads(__tstate);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 Py_INCREF(Py_None); resultobj = Py_None;
11091 {
11092 if (temp1)
11093 delete arg1;
11094 }
11095 return resultobj;
11096 fail:
11097 {
11098 if (temp1)
11099 delete arg1;
11100 }
11101 return NULL;
11102 }
11103
11104
11105 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
11106 PyObject *resultobj = NULL;
11107 wxString *arg1 = 0 ;
11108 bool temp1 = false ;
11109 PyObject * obj0 = 0 ;
11110 char *kwnames[] = {
11111 (char *) "msg", NULL
11112 };
11113
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
11115 {
11116 arg1 = wxString_in_helper(obj0);
11117 if (arg1 == NULL) SWIG_fail;
11118 temp1 = true;
11119 }
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 wxPyLogMessage((wxString const &)*arg1);
11123
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 Py_INCREF(Py_None); resultobj = Py_None;
11128 {
11129 if (temp1)
11130 delete arg1;
11131 }
11132 return resultobj;
11133 fail:
11134 {
11135 if (temp1)
11136 delete arg1;
11137 }
11138 return NULL;
11139 }
11140
11141
11142 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj = NULL;
11144 wxString *arg1 = 0 ;
11145 bool temp1 = false ;
11146 PyObject * obj0 = 0 ;
11147 char *kwnames[] = {
11148 (char *) "msg", NULL
11149 };
11150
11151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
11152 {
11153 arg1 = wxString_in_helper(obj0);
11154 if (arg1 == NULL) SWIG_fail;
11155 temp1 = true;
11156 }
11157 {
11158 PyThreadState* __tstate = wxPyBeginAllowThreads();
11159 wxPyLogInfo((wxString const &)*arg1);
11160
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 Py_INCREF(Py_None); resultobj = Py_None;
11165 {
11166 if (temp1)
11167 delete arg1;
11168 }
11169 return resultobj;
11170 fail:
11171 {
11172 if (temp1)
11173 delete arg1;
11174 }
11175 return NULL;
11176 }
11177
11178
11179 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
11180 PyObject *resultobj = NULL;
11181 wxString *arg1 = 0 ;
11182 bool temp1 = false ;
11183 PyObject * obj0 = 0 ;
11184 char *kwnames[] = {
11185 (char *) "msg", NULL
11186 };
11187
11188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
11189 {
11190 arg1 = wxString_in_helper(obj0);
11191 if (arg1 == NULL) SWIG_fail;
11192 temp1 = true;
11193 }
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 wxPyLogDebug((wxString const &)*arg1);
11197
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 Py_INCREF(Py_None); resultobj = Py_None;
11202 {
11203 if (temp1)
11204 delete arg1;
11205 }
11206 return resultobj;
11207 fail:
11208 {
11209 if (temp1)
11210 delete arg1;
11211 }
11212 return NULL;
11213 }
11214
11215
11216 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
11217 PyObject *resultobj = NULL;
11218 wxString *arg1 = 0 ;
11219 bool temp1 = false ;
11220 PyObject * obj0 = 0 ;
11221 char *kwnames[] = {
11222 (char *) "msg", NULL
11223 };
11224
11225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
11226 {
11227 arg1 = wxString_in_helper(obj0);
11228 if (arg1 == NULL) SWIG_fail;
11229 temp1 = true;
11230 }
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 wxPyLogVerbose((wxString const &)*arg1);
11234
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 Py_INCREF(Py_None); resultobj = Py_None;
11239 {
11240 if (temp1)
11241 delete arg1;
11242 }
11243 return resultobj;
11244 fail:
11245 {
11246 if (temp1)
11247 delete arg1;
11248 }
11249 return NULL;
11250 }
11251
11252
11253 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
11254 PyObject *resultobj = NULL;
11255 wxString *arg1 = 0 ;
11256 bool temp1 = false ;
11257 PyObject * obj0 = 0 ;
11258 char *kwnames[] = {
11259 (char *) "msg", NULL
11260 };
11261
11262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
11263 {
11264 arg1 = wxString_in_helper(obj0);
11265 if (arg1 == NULL) SWIG_fail;
11266 temp1 = true;
11267 }
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 wxPyLogStatus((wxString const &)*arg1);
11271
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 Py_INCREF(Py_None); resultobj = Py_None;
11276 {
11277 if (temp1)
11278 delete arg1;
11279 }
11280 return resultobj;
11281 fail:
11282 {
11283 if (temp1)
11284 delete arg1;
11285 }
11286 return NULL;
11287 }
11288
11289
11290 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
11291 PyObject *resultobj = NULL;
11292 wxFrame *arg1 = (wxFrame *) 0 ;
11293 wxString *arg2 = 0 ;
11294 bool temp2 = false ;
11295 PyObject * obj0 = 0 ;
11296 PyObject * obj1 = 0 ;
11297 char *kwnames[] = {
11298 (char *) "pFrame",(char *) "msg", NULL
11299 };
11300
11301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
11302 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
11303 if (SWIG_arg_fail(1)) SWIG_fail;
11304 {
11305 arg2 = wxString_in_helper(obj1);
11306 if (arg2 == NULL) SWIG_fail;
11307 temp2 = true;
11308 }
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 wxPyLogStatusFrame(arg1,(wxString const &)*arg2);
11312
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 Py_INCREF(Py_None); resultobj = Py_None;
11317 {
11318 if (temp2)
11319 delete arg2;
11320 }
11321 return resultobj;
11322 fail:
11323 {
11324 if (temp2)
11325 delete arg2;
11326 }
11327 return NULL;
11328 }
11329
11330
11331 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
11332 PyObject *resultobj = NULL;
11333 wxString *arg1 = 0 ;
11334 bool temp1 = false ;
11335 PyObject * obj0 = 0 ;
11336 char *kwnames[] = {
11337 (char *) "msg", NULL
11338 };
11339
11340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
11341 {
11342 arg1 = wxString_in_helper(obj0);
11343 if (arg1 == NULL) SWIG_fail;
11344 temp1 = true;
11345 }
11346 {
11347 PyThreadState* __tstate = wxPyBeginAllowThreads();
11348 wxPyLogSysError((wxString const &)*arg1);
11349
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 Py_INCREF(Py_None); resultobj = Py_None;
11354 {
11355 if (temp1)
11356 delete arg1;
11357 }
11358 return resultobj;
11359 fail:
11360 {
11361 if (temp1)
11362 delete arg1;
11363 }
11364 return NULL;
11365 }
11366
11367
11368 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
11369 PyObject *resultobj = NULL;
11370 unsigned long arg1 ;
11371 wxString *arg2 = 0 ;
11372 bool temp2 = false ;
11373 PyObject * obj0 = 0 ;
11374 PyObject * obj1 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "level",(char *) "msg", NULL
11377 };
11378
11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
11380 {
11381 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
11382 if (SWIG_arg_fail(1)) SWIG_fail;
11383 }
11384 {
11385 arg2 = wxString_in_helper(obj1);
11386 if (arg2 == NULL) SWIG_fail;
11387 temp2 = true;
11388 }
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 wxPyLogGeneric(arg1,(wxString const &)*arg2);
11392
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 Py_INCREF(Py_None); resultobj = Py_None;
11397 {
11398 if (temp2)
11399 delete arg2;
11400 }
11401 return resultobj;
11402 fail:
11403 {
11404 if (temp2)
11405 delete arg2;
11406 }
11407 return NULL;
11408 }
11409
11410
11411 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
11412 PyObject *resultobj = NULL;
11413 unsigned long arg1 ;
11414 wxString *arg2 = 0 ;
11415 bool temp2 = false ;
11416 PyObject * obj0 = 0 ;
11417 PyObject * obj1 = 0 ;
11418
11419 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
11420 {
11421 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
11422 if (SWIG_arg_fail(1)) SWIG_fail;
11423 }
11424 {
11425 arg2 = wxString_in_helper(obj1);
11426 if (arg2 == NULL) SWIG_fail;
11427 temp2 = true;
11428 }
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 wxPyLogTrace(arg1,(wxString const &)*arg2);
11432
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 Py_INCREF(Py_None); resultobj = Py_None;
11437 {
11438 if (temp2)
11439 delete arg2;
11440 }
11441 return resultobj;
11442 fail:
11443 {
11444 if (temp2)
11445 delete arg2;
11446 }
11447 return NULL;
11448 }
11449
11450
11451 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
11452 PyObject *resultobj = NULL;
11453 wxString *arg1 = 0 ;
11454 wxString *arg2 = 0 ;
11455 bool temp1 = false ;
11456 bool temp2 = false ;
11457 PyObject * obj0 = 0 ;
11458 PyObject * obj1 = 0 ;
11459
11460 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
11461 {
11462 arg1 = wxString_in_helper(obj0);
11463 if (arg1 == NULL) SWIG_fail;
11464 temp1 = true;
11465 }
11466 {
11467 arg2 = wxString_in_helper(obj1);
11468 if (arg2 == NULL) SWIG_fail;
11469 temp2 = true;
11470 }
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
11474
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 Py_INCREF(Py_None); resultobj = Py_None;
11479 {
11480 if (temp1)
11481 delete arg1;
11482 }
11483 {
11484 if (temp2)
11485 delete arg2;
11486 }
11487 return resultobj;
11488 fail:
11489 {
11490 if (temp1)
11491 delete arg1;
11492 }
11493 {
11494 if (temp2)
11495 delete arg2;
11496 }
11497 return NULL;
11498 }
11499
11500
11501 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
11502 int argc;
11503 PyObject *argv[3];
11504 int ii;
11505
11506 argc = PyObject_Length(args);
11507 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11508 argv[ii] = PyTuple_GetItem(args,ii);
11509 }
11510 if (argc == 2) {
11511 int _v;
11512 {
11513 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11514 }
11515 if (_v) {
11516 {
11517 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11518 }
11519 if (_v) {
11520 return _wrap_LogTrace__SWIG_1(self,args);
11521 }
11522 }
11523 }
11524 if (argc == 2) {
11525 int _v;
11526 _v = SWIG_Check_unsigned_SS_long(argv[0]);
11527 if (_v) {
11528 {
11529 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11530 }
11531 if (_v) {
11532 return _wrap_LogTrace__SWIG_0(self,args);
11533 }
11534 }
11535 }
11536
11537 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'");
11538 return NULL;
11539 }
11540
11541
11542 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj = NULL;
11544 wxString *arg1 = 0 ;
11545 wxString *arg2 = 0 ;
11546 bool temp1 = false ;
11547 bool temp2 = false ;
11548 PyObject * obj0 = 0 ;
11549 PyObject * obj1 = 0 ;
11550 char *kwnames[] = {
11551 (char *) "title",(char *) "text", NULL
11552 };
11553
11554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
11555 {
11556 arg1 = wxString_in_helper(obj0);
11557 if (arg1 == NULL) SWIG_fail;
11558 temp1 = true;
11559 }
11560 {
11561 arg2 = wxString_in_helper(obj1);
11562 if (arg2 == NULL) SWIG_fail;
11563 temp2 = true;
11564 }
11565 {
11566 PyThreadState* __tstate = wxPyBeginAllowThreads();
11567 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
11568
11569 wxPyEndAllowThreads(__tstate);
11570 if (PyErr_Occurred()) SWIG_fail;
11571 }
11572 Py_INCREF(Py_None); resultobj = Py_None;
11573 {
11574 if (temp1)
11575 delete arg1;
11576 }
11577 {
11578 if (temp2)
11579 delete arg2;
11580 }
11581 return resultobj;
11582 fail:
11583 {
11584 if (temp1)
11585 delete arg1;
11586 }
11587 {
11588 if (temp2)
11589 delete arg2;
11590 }
11591 return NULL;
11592 }
11593
11594
11595 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
11596 PyObject *resultobj = NULL;
11597 wxLogNull *result;
11598 char *kwnames[] = {
11599 NULL
11600 };
11601
11602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
11603 {
11604 PyThreadState* __tstate = wxPyBeginAllowThreads();
11605 result = (wxLogNull *)new wxLogNull();
11606
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
11611 return resultobj;
11612 fail:
11613 return NULL;
11614 }
11615
11616
11617 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
11618 PyObject *resultobj = NULL;
11619 wxLogNull *arg1 = (wxLogNull *) 0 ;
11620 PyObject * obj0 = 0 ;
11621 char *kwnames[] = {
11622 (char *) "self", NULL
11623 };
11624
11625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
11626 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogNull, SWIG_POINTER_EXCEPTION | 0);
11627 if (SWIG_arg_fail(1)) SWIG_fail;
11628 {
11629 PyThreadState* __tstate = wxPyBeginAllowThreads();
11630 delete arg1;
11631
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 Py_INCREF(Py_None); resultobj = Py_None;
11636 return resultobj;
11637 fail:
11638 return NULL;
11639 }
11640
11641
11642 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
11643 PyObject *obj;
11644 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11645 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
11646 Py_INCREF(obj);
11647 return Py_BuildValue((char *)"");
11648 }
11649 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
11650 PyObject *resultobj = NULL;
11651 wxPyLog *result;
11652 char *kwnames[] = {
11653 NULL
11654 };
11655
11656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
11657 {
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 result = (wxPyLog *)new wxPyLog();
11660
11661 wxPyEndAllowThreads(__tstate);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
11665 return resultobj;
11666 fail:
11667 return NULL;
11668 }
11669
11670
11671 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11672 PyObject *resultobj = NULL;
11673 wxPyLog *arg1 = (wxPyLog *) 0 ;
11674 PyObject *arg2 = (PyObject *) 0 ;
11675 PyObject *arg3 = (PyObject *) 0 ;
11676 PyObject * obj0 = 0 ;
11677 PyObject * obj1 = 0 ;
11678 PyObject * obj2 = 0 ;
11679 char *kwnames[] = {
11680 (char *) "self",(char *) "self",(char *) "_class", NULL
11681 };
11682
11683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
11684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyLog, SWIG_POINTER_EXCEPTION | 0);
11685 if (SWIG_arg_fail(1)) SWIG_fail;
11686 arg2 = obj1;
11687 arg3 = obj2;
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 (arg1)->_setCallbackInfo(arg2,arg3);
11691
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 Py_INCREF(Py_None); resultobj = Py_None;
11696 return resultobj;
11697 fail:
11698 return NULL;
11699 }
11700
11701
11702 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
11703 PyObject *obj;
11704 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11705 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
11706 Py_INCREF(obj);
11707 return Py_BuildValue((char *)"");
11708 }
11709 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
11710 PyObject *resultobj = NULL;
11711 int arg1 ;
11712 wxSignal arg2 = (wxSignal) wxSIGTERM ;
11713 int arg3 = (int) wxKILL_NOCHILDREN ;
11714 wxKillError result;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11717 PyObject * obj2 = 0 ;
11718 char *kwnames[] = {
11719 (char *) "pid",(char *) "sig",(char *) "flags", NULL
11720 };
11721
11722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail;
11723 {
11724 arg1 = static_cast<int >(SWIG_As_int(obj0));
11725 if (SWIG_arg_fail(1)) SWIG_fail;
11726 }
11727 if (obj1) {
11728 {
11729 arg2 = static_cast<wxSignal >(SWIG_As_int(obj1));
11730 if (SWIG_arg_fail(2)) SWIG_fail;
11731 }
11732 }
11733 if (obj2) {
11734 {
11735 arg3 = static_cast<int >(SWIG_As_int(obj2));
11736 if (SWIG_arg_fail(3)) SWIG_fail;
11737 }
11738 }
11739 {
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (wxKillError)wxPyProcess::Kill(arg1,arg2,arg3);
11742
11743 wxPyEndAllowThreads(__tstate);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 resultobj = SWIG_From_int((result));
11747 return resultobj;
11748 fail:
11749 return NULL;
11750 }
11751
11752
11753 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj = NULL;
11755 int arg1 ;
11756 bool result;
11757 PyObject * obj0 = 0 ;
11758 char *kwnames[] = {
11759 (char *) "pid", NULL
11760 };
11761
11762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
11763 {
11764 arg1 = static_cast<int >(SWIG_As_int(obj0));
11765 if (SWIG_arg_fail(1)) SWIG_fail;
11766 }
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (bool)wxPyProcess::Exists(arg1);
11770
11771 wxPyEndAllowThreads(__tstate);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 }
11774 {
11775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11776 }
11777 return resultobj;
11778 fail:
11779 return NULL;
11780 }
11781
11782
11783 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
11784 PyObject *resultobj = NULL;
11785 wxString *arg1 = 0 ;
11786 int arg2 = (int) wxEXEC_ASYNC ;
11787 wxPyProcess *result;
11788 bool temp1 = false ;
11789 PyObject * obj0 = 0 ;
11790 PyObject * obj1 = 0 ;
11791 char *kwnames[] = {
11792 (char *) "cmd",(char *) "flags", NULL
11793 };
11794
11795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
11796 {
11797 arg1 = wxString_in_helper(obj0);
11798 if (arg1 == NULL) SWIG_fail;
11799 temp1 = true;
11800 }
11801 if (obj1) {
11802 {
11803 arg2 = static_cast<int >(SWIG_As_int(obj1));
11804 if (SWIG_arg_fail(2)) SWIG_fail;
11805 }
11806 }
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
11810
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
11815 {
11816 if (temp1)
11817 delete arg1;
11818 }
11819 return resultobj;
11820 fail:
11821 {
11822 if (temp1)
11823 delete arg1;
11824 }
11825 return NULL;
11826 }
11827
11828
11829 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
11830 PyObject *resultobj = NULL;
11831 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
11832 int arg2 = (int) -1 ;
11833 wxPyProcess *result;
11834 PyObject * obj0 = 0 ;
11835 PyObject * obj1 = 0 ;
11836 char *kwnames[] = {
11837 (char *) "parent",(char *) "id", NULL
11838 };
11839
11840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
11841 if (obj0) {
11842 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
11843 if (SWIG_arg_fail(1)) SWIG_fail;
11844 }
11845 if (obj1) {
11846 {
11847 arg2 = static_cast<int >(SWIG_As_int(obj1));
11848 if (SWIG_arg_fail(2)) SWIG_fail;
11849 }
11850 }
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
11854
11855 wxPyEndAllowThreads(__tstate);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 }
11858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
11859 return resultobj;
11860 fail:
11861 return NULL;
11862 }
11863
11864
11865 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj = NULL;
11867 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11868 PyObject *arg2 = (PyObject *) 0 ;
11869 PyObject *arg3 = (PyObject *) 0 ;
11870 PyObject * obj0 = 0 ;
11871 PyObject * obj1 = 0 ;
11872 PyObject * obj2 = 0 ;
11873 char *kwnames[] = {
11874 (char *) "self",(char *) "self",(char *) "_class", NULL
11875 };
11876
11877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
11878 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11879 if (SWIG_arg_fail(1)) SWIG_fail;
11880 arg2 = obj1;
11881 arg3 = obj2;
11882 {
11883 PyThreadState* __tstate = wxPyBeginAllowThreads();
11884 (arg1)->_setCallbackInfo(arg2,arg3);
11885
11886 wxPyEndAllowThreads(__tstate);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 }
11889 Py_INCREF(Py_None); resultobj = Py_None;
11890 return resultobj;
11891 fail:
11892 return NULL;
11893 }
11894
11895
11896 static PyObject *_wrap_Process_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
11897 PyObject *resultobj = NULL;
11898 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11899 int arg2 ;
11900 int arg3 ;
11901 PyObject * obj0 = 0 ;
11902 PyObject * obj1 = 0 ;
11903 PyObject * obj2 = 0 ;
11904 char *kwnames[] = {
11905 (char *) "self",(char *) "pid",(char *) "status", NULL
11906 };
11907
11908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
11909 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11910 if (SWIG_arg_fail(1)) SWIG_fail;
11911 {
11912 arg2 = static_cast<int >(SWIG_As_int(obj1));
11913 if (SWIG_arg_fail(2)) SWIG_fail;
11914 }
11915 {
11916 arg3 = static_cast<int >(SWIG_As_int(obj2));
11917 if (SWIG_arg_fail(3)) SWIG_fail;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->OnTerminate(arg2,arg3);
11922
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 Py_INCREF(Py_None); resultobj = Py_None;
11927 return resultobj;
11928 fail:
11929 return NULL;
11930 }
11931
11932
11933 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
11934 PyObject *resultobj = NULL;
11935 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11936 PyObject * obj0 = 0 ;
11937 char *kwnames[] = {
11938 (char *) "self", NULL
11939 };
11940
11941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
11942 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11943 if (SWIG_arg_fail(1)) SWIG_fail;
11944 {
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 (arg1)->Redirect();
11947
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 Py_INCREF(Py_None); resultobj = Py_None;
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj = NULL;
11960 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11961 bool result;
11962 PyObject * obj0 = 0 ;
11963 char *kwnames[] = {
11964 (char *) "self", NULL
11965 };
11966
11967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
11968 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11969 if (SWIG_arg_fail(1)) SWIG_fail;
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 result = (bool)(arg1)->IsRedirected();
11973
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 {
11978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11979 }
11980 return resultobj;
11981 fail:
11982 return NULL;
11983 }
11984
11985
11986 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
11987 PyObject *resultobj = NULL;
11988 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
11989 PyObject * obj0 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "self", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
11995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
11996 if (SWIG_arg_fail(1)) SWIG_fail;
11997 {
11998 PyThreadState* __tstate = wxPyBeginAllowThreads();
11999 (arg1)->Detach();
12000
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 Py_INCREF(Py_None); resultobj = Py_None;
12005 return resultobj;
12006 fail:
12007 return NULL;
12008 }
12009
12010
12011 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj = NULL;
12013 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12014 wxInputStream *result;
12015 PyObject * obj0 = 0 ;
12016 char *kwnames[] = {
12017 (char *) "self", NULL
12018 };
12019
12020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
12021 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12022 if (SWIG_arg_fail(1)) SWIG_fail;
12023 {
12024 PyThreadState* __tstate = wxPyBeginAllowThreads();
12025 result = (wxInputStream *)(arg1)->GetInputStream();
12026
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 wxPyInputStream * _ptr = NULL;
12032
12033 if (result) {
12034 _ptr = new wxPyInputStream(result);
12035 }
12036 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12037 }
12038 return resultobj;
12039 fail:
12040 return NULL;
12041 }
12042
12043
12044 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj = NULL;
12046 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12047 wxInputStream *result;
12048 PyObject * obj0 = 0 ;
12049 char *kwnames[] = {
12050 (char *) "self", NULL
12051 };
12052
12053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
12054 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12055 if (SWIG_arg_fail(1)) SWIG_fail;
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 result = (wxInputStream *)(arg1)->GetErrorStream();
12059
12060 wxPyEndAllowThreads(__tstate);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 {
12064 wxPyInputStream * _ptr = NULL;
12065
12066 if (result) {
12067 _ptr = new wxPyInputStream(result);
12068 }
12069 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12070 }
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj = NULL;
12079 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12080 wxOutputStream *result;
12081 PyObject * obj0 = 0 ;
12082 char *kwnames[] = {
12083 (char *) "self", NULL
12084 };
12085
12086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
12087 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12088 if (SWIG_arg_fail(1)) SWIG_fail;
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 result = (wxOutputStream *)(arg1)->GetOutputStream();
12092
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
12097 return resultobj;
12098 fail:
12099 return NULL;
12100 }
12101
12102
12103 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj = NULL;
12105 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12106 PyObject * obj0 = 0 ;
12107 char *kwnames[] = {
12108 (char *) "self", NULL
12109 };
12110
12111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
12112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12113 if (SWIG_arg_fail(1)) SWIG_fail;
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 (arg1)->CloseOutput();
12117
12118 wxPyEndAllowThreads(__tstate);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 Py_INCREF(Py_None); resultobj = Py_None;
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj = NULL;
12130 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12131 bool result;
12132 PyObject * obj0 = 0 ;
12133 char *kwnames[] = {
12134 (char *) "self", NULL
12135 };
12136
12137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
12138 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12139 if (SWIG_arg_fail(1)) SWIG_fail;
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
12143
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 {
12148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12149 }
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj = NULL;
12158 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12159 bool result;
12160 PyObject * obj0 = 0 ;
12161 char *kwnames[] = {
12162 (char *) "self", NULL
12163 };
12164
12165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
12166 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12167 if (SWIG_arg_fail(1)) SWIG_fail;
12168 {
12169 PyThreadState* __tstate = wxPyBeginAllowThreads();
12170 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
12171
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 {
12176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12177 }
12178 return resultobj;
12179 fail:
12180 return NULL;
12181 }
12182
12183
12184 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
12185 PyObject *resultobj = NULL;
12186 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
12187 bool result;
12188 PyObject * obj0 = 0 ;
12189 char *kwnames[] = {
12190 (char *) "self", NULL
12191 };
12192
12193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
12194 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12195 if (SWIG_arg_fail(1)) SWIG_fail;
12196 {
12197 PyThreadState* __tstate = wxPyBeginAllowThreads();
12198 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
12199
12200 wxPyEndAllowThreads(__tstate);
12201 if (PyErr_Occurred()) SWIG_fail;
12202 }
12203 {
12204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12205 }
12206 return resultobj;
12207 fail:
12208 return NULL;
12209 }
12210
12211
12212 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
12213 PyObject *obj;
12214 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12215 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
12216 Py_INCREF(obj);
12217 return Py_BuildValue((char *)"");
12218 }
12219 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
12220 PyObject *resultobj = NULL;
12221 int arg1 = (int) 0 ;
12222 int arg2 = (int) 0 ;
12223 int arg3 = (int) 0 ;
12224 wxProcessEvent *result;
12225 PyObject * obj0 = 0 ;
12226 PyObject * obj1 = 0 ;
12227 PyObject * obj2 = 0 ;
12228 char *kwnames[] = {
12229 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
12230 };
12231
12232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12233 if (obj0) {
12234 {
12235 arg1 = static_cast<int >(SWIG_As_int(obj0));
12236 if (SWIG_arg_fail(1)) SWIG_fail;
12237 }
12238 }
12239 if (obj1) {
12240 {
12241 arg2 = static_cast<int >(SWIG_As_int(obj1));
12242 if (SWIG_arg_fail(2)) SWIG_fail;
12243 }
12244 }
12245 if (obj2) {
12246 {
12247 arg3 = static_cast<int >(SWIG_As_int(obj2));
12248 if (SWIG_arg_fail(3)) SWIG_fail;
12249 }
12250 }
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
12253 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
12254
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
12259 return resultobj;
12260 fail:
12261 return NULL;
12262 }
12263
12264
12265 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
12266 PyObject *resultobj = NULL;
12267 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12268 int result;
12269 PyObject * obj0 = 0 ;
12270 char *kwnames[] = {
12271 (char *) "self", NULL
12272 };
12273
12274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
12275 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12276 if (SWIG_arg_fail(1)) SWIG_fail;
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 result = (int)(arg1)->GetPid();
12280
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 {
12285 resultobj = SWIG_From_int(static_cast<int >(result));
12286 }
12287 return resultobj;
12288 fail:
12289 return NULL;
12290 }
12291
12292
12293 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
12294 PyObject *resultobj = NULL;
12295 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12296 int result;
12297 PyObject * obj0 = 0 ;
12298 char *kwnames[] = {
12299 (char *) "self", NULL
12300 };
12301
12302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
12303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12304 if (SWIG_arg_fail(1)) SWIG_fail;
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 result = (int)(arg1)->GetExitCode();
12308
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 {
12313 resultobj = SWIG_From_int(static_cast<int >(result));
12314 }
12315 return resultobj;
12316 fail:
12317 return NULL;
12318 }
12319
12320
12321 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj = NULL;
12323 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12324 int arg2 ;
12325 PyObject * obj0 = 0 ;
12326 PyObject * obj1 = 0 ;
12327 char *kwnames[] = {
12328 (char *) "self",(char *) "m_pid", NULL
12329 };
12330
12331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
12332 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12333 if (SWIG_arg_fail(1)) SWIG_fail;
12334 {
12335 arg2 = static_cast<int >(SWIG_As_int(obj1));
12336 if (SWIG_arg_fail(2)) SWIG_fail;
12337 }
12338 if (arg1) (arg1)->m_pid = arg2;
12339
12340 Py_INCREF(Py_None); resultobj = Py_None;
12341 return resultobj;
12342 fail:
12343 return NULL;
12344 }
12345
12346
12347 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
12348 PyObject *resultobj = NULL;
12349 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12350 int result;
12351 PyObject * obj0 = 0 ;
12352 char *kwnames[] = {
12353 (char *) "self", NULL
12354 };
12355
12356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
12357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12358 if (SWIG_arg_fail(1)) SWIG_fail;
12359 result = (int) ((arg1)->m_pid);
12360
12361 {
12362 resultobj = SWIG_From_int(static_cast<int >(result));
12363 }
12364 return resultobj;
12365 fail:
12366 return NULL;
12367 }
12368
12369
12370 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
12371 PyObject *resultobj = NULL;
12372 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12373 int arg2 ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 char *kwnames[] = {
12377 (char *) "self",(char *) "m_exitcode", NULL
12378 };
12379
12380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
12381 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12382 if (SWIG_arg_fail(1)) SWIG_fail;
12383 {
12384 arg2 = static_cast<int >(SWIG_As_int(obj1));
12385 if (SWIG_arg_fail(2)) SWIG_fail;
12386 }
12387 if (arg1) (arg1)->m_exitcode = arg2;
12388
12389 Py_INCREF(Py_None); resultobj = Py_None;
12390 return resultobj;
12391 fail:
12392 return NULL;
12393 }
12394
12395
12396 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
12397 PyObject *resultobj = NULL;
12398 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
12399 int result;
12400 PyObject * obj0 = 0 ;
12401 char *kwnames[] = {
12402 (char *) "self", NULL
12403 };
12404
12405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
12406 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0);
12407 if (SWIG_arg_fail(1)) SWIG_fail;
12408 result = (int) ((arg1)->m_exitcode);
12409
12410 {
12411 resultobj = SWIG_From_int(static_cast<int >(result));
12412 }
12413 return resultobj;
12414 fail:
12415 return NULL;
12416 }
12417
12418
12419 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
12420 PyObject *obj;
12421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12422 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
12423 Py_INCREF(obj);
12424 return Py_BuildValue((char *)"");
12425 }
12426 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
12427 PyObject *resultobj = NULL;
12428 wxString *arg1 = 0 ;
12429 int arg2 = (int) wxEXEC_ASYNC ;
12430 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
12431 long result;
12432 bool temp1 = false ;
12433 PyObject * obj0 = 0 ;
12434 PyObject * obj1 = 0 ;
12435 PyObject * obj2 = 0 ;
12436 char *kwnames[] = {
12437 (char *) "command",(char *) "flags",(char *) "process", NULL
12438 };
12439
12440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
12441 {
12442 arg1 = wxString_in_helper(obj0);
12443 if (arg1 == NULL) SWIG_fail;
12444 temp1 = true;
12445 }
12446 if (obj1) {
12447 {
12448 arg2 = static_cast<int >(SWIG_As_int(obj1));
12449 if (SWIG_arg_fail(2)) SWIG_fail;
12450 }
12451 }
12452 if (obj2) {
12453 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0);
12454 if (SWIG_arg_fail(3)) SWIG_fail;
12455 }
12456 {
12457 if (!wxPyCheckForApp()) SWIG_fail;
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
12460
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 {
12465 resultobj = SWIG_From_long(static_cast<long >(result));
12466 }
12467 {
12468 if (temp1)
12469 delete arg1;
12470 }
12471 return resultobj;
12472 fail:
12473 {
12474 if (temp1)
12475 delete arg1;
12476 }
12477 return NULL;
12478 }
12479
12480
12481 static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
12482 PyObject *resultobj = NULL;
12483 long arg1 ;
12484 wxSignal arg2 = (wxSignal) wxSIGTERM ;
12485 wxKillError *arg3 = (wxKillError *) 0 ;
12486 int arg4 = (int) wxKILL_NOCHILDREN ;
12487 int result;
12488 wxKillError temp3 ;
12489 PyObject * obj0 = 0 ;
12490 PyObject * obj1 = 0 ;
12491 PyObject * obj2 = 0 ;
12492 char *kwnames[] = {
12493 (char *) "pid",(char *) "sig",(char *) "flags", NULL
12494 };
12495
12496 {
12497 arg3 = &temp3;
12498 }
12499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail;
12500 {
12501 arg1 = static_cast<long >(SWIG_As_long(obj0));
12502 if (SWIG_arg_fail(1)) SWIG_fail;
12503 }
12504 if (obj1) {
12505 {
12506 arg2 = static_cast<wxSignal >(SWIG_As_int(obj1));
12507 if (SWIG_arg_fail(2)) SWIG_fail;
12508 }
12509 }
12510 if (obj2) {
12511 {
12512 arg4 = static_cast<int >(SWIG_As_int(obj2));
12513 if (SWIG_arg_fail(4)) SWIG_fail;
12514 }
12515 }
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 result = (int)wxKill(arg1,arg2,arg3,arg4);
12519
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 {
12524 resultobj = SWIG_From_int(static_cast<int >(result));
12525 }
12526 {
12527 PyObject* o;
12528 o = PyInt_FromLong((long) (*arg3));
12529
12530 resultobj = t_output_helper(resultobj, o);
12531
12532
12533
12534 }
12535 return resultobj;
12536 fail:
12537 return NULL;
12538 }
12539
12540
12541 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
12542 PyObject *resultobj = NULL;
12543 int arg1 = (int) wxJOYSTICK1 ;
12544 wxJoystick *result;
12545 PyObject * obj0 = 0 ;
12546 char *kwnames[] = {
12547 (char *) "joystick", NULL
12548 };
12549
12550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
12551 if (obj0) {
12552 {
12553 arg1 = static_cast<int >(SWIG_As_int(obj0));
12554 if (SWIG_arg_fail(1)) SWIG_fail;
12555 }
12556 }
12557 {
12558 if (!wxPyCheckForApp()) SWIG_fail;
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 result = (wxJoystick *)new wxJoystick(arg1);
12561
12562 wxPyEndAllowThreads(__tstate);
12563 if (PyErr_Occurred()) SWIG_fail;
12564 }
12565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
12566 return resultobj;
12567 fail:
12568 return NULL;
12569 }
12570
12571
12572 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
12573 PyObject *resultobj = NULL;
12574 wxJoystick *arg1 = (wxJoystick *) 0 ;
12575 PyObject * obj0 = 0 ;
12576 char *kwnames[] = {
12577 (char *) "self", NULL
12578 };
12579
12580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
12581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12582 if (SWIG_arg_fail(1)) SWIG_fail;
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 delete arg1;
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 Py_INCREF(Py_None); resultobj = Py_None;
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj = NULL;
12599 wxJoystick *arg1 = (wxJoystick *) 0 ;
12600 wxPoint result;
12601 PyObject * obj0 = 0 ;
12602 char *kwnames[] = {
12603 (char *) "self", NULL
12604 };
12605
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
12607 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12608 if (SWIG_arg_fail(1)) SWIG_fail;
12609 {
12610 PyThreadState* __tstate = wxPyBeginAllowThreads();
12611 result = (arg1)->GetPosition();
12612
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 {
12617 wxPoint * resultptr;
12618 resultptr = new wxPoint(static_cast<wxPoint & >(result));
12619 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
12620 }
12621 return resultobj;
12622 fail:
12623 return NULL;
12624 }
12625
12626
12627 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12628 PyObject *resultobj = NULL;
12629 wxJoystick *arg1 = (wxJoystick *) 0 ;
12630 int result;
12631 PyObject * obj0 = 0 ;
12632 char *kwnames[] = {
12633 (char *) "self", NULL
12634 };
12635
12636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
12637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12638 if (SWIG_arg_fail(1)) SWIG_fail;
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 result = (int)(arg1)->GetZPosition();
12642
12643 wxPyEndAllowThreads(__tstate);
12644 if (PyErr_Occurred()) SWIG_fail;
12645 }
12646 {
12647 resultobj = SWIG_From_int(static_cast<int >(result));
12648 }
12649 return resultobj;
12650 fail:
12651 return NULL;
12652 }
12653
12654
12655 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
12656 PyObject *resultobj = NULL;
12657 wxJoystick *arg1 = (wxJoystick *) 0 ;
12658 int result;
12659 PyObject * obj0 = 0 ;
12660 char *kwnames[] = {
12661 (char *) "self", NULL
12662 };
12663
12664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
12665 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12666 if (SWIG_arg_fail(1)) SWIG_fail;
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (int)(arg1)->GetButtonState();
12670
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 {
12675 resultobj = SWIG_From_int(static_cast<int >(result));
12676 }
12677 return resultobj;
12678 fail:
12679 return NULL;
12680 }
12681
12682
12683 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj = NULL;
12685 wxJoystick *arg1 = (wxJoystick *) 0 ;
12686 int result;
12687 PyObject * obj0 = 0 ;
12688 char *kwnames[] = {
12689 (char *) "self", NULL
12690 };
12691
12692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
12693 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12694 if (SWIG_arg_fail(1)) SWIG_fail;
12695 {
12696 PyThreadState* __tstate = wxPyBeginAllowThreads();
12697 result = (int)(arg1)->GetPOVPosition();
12698
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 {
12703 resultobj = SWIG_From_int(static_cast<int >(result));
12704 }
12705 return resultobj;
12706 fail:
12707 return NULL;
12708 }
12709
12710
12711 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12712 PyObject *resultobj = NULL;
12713 wxJoystick *arg1 = (wxJoystick *) 0 ;
12714 int result;
12715 PyObject * obj0 = 0 ;
12716 char *kwnames[] = {
12717 (char *) "self", NULL
12718 };
12719
12720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
12721 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12722 if (SWIG_arg_fail(1)) SWIG_fail;
12723 {
12724 PyThreadState* __tstate = wxPyBeginAllowThreads();
12725 result = (int)(arg1)->GetPOVCTSPosition();
12726
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 {
12731 resultobj = SWIG_From_int(static_cast<int >(result));
12732 }
12733 return resultobj;
12734 fail:
12735 return NULL;
12736 }
12737
12738
12739 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12740 PyObject *resultobj = NULL;
12741 wxJoystick *arg1 = (wxJoystick *) 0 ;
12742 int result;
12743 PyObject * obj0 = 0 ;
12744 char *kwnames[] = {
12745 (char *) "self", NULL
12746 };
12747
12748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
12749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12750 if (SWIG_arg_fail(1)) SWIG_fail;
12751 {
12752 PyThreadState* __tstate = wxPyBeginAllowThreads();
12753 result = (int)(arg1)->GetRudderPosition();
12754
12755 wxPyEndAllowThreads(__tstate);
12756 if (PyErr_Occurred()) SWIG_fail;
12757 }
12758 {
12759 resultobj = SWIG_From_int(static_cast<int >(result));
12760 }
12761 return resultobj;
12762 fail:
12763 return NULL;
12764 }
12765
12766
12767 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12768 PyObject *resultobj = NULL;
12769 wxJoystick *arg1 = (wxJoystick *) 0 ;
12770 int result;
12771 PyObject * obj0 = 0 ;
12772 char *kwnames[] = {
12773 (char *) "self", NULL
12774 };
12775
12776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
12777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12778 if (SWIG_arg_fail(1)) SWIG_fail;
12779 {
12780 PyThreadState* __tstate = wxPyBeginAllowThreads();
12781 result = (int)(arg1)->GetUPosition();
12782
12783 wxPyEndAllowThreads(__tstate);
12784 if (PyErr_Occurred()) SWIG_fail;
12785 }
12786 {
12787 resultobj = SWIG_From_int(static_cast<int >(result));
12788 }
12789 return resultobj;
12790 fail:
12791 return NULL;
12792 }
12793
12794
12795 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
12796 PyObject *resultobj = NULL;
12797 wxJoystick *arg1 = (wxJoystick *) 0 ;
12798 int result;
12799 PyObject * obj0 = 0 ;
12800 char *kwnames[] = {
12801 (char *) "self", NULL
12802 };
12803
12804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
12805 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12806 if (SWIG_arg_fail(1)) SWIG_fail;
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 result = (int)(arg1)->GetVPosition();
12810
12811 wxPyEndAllowThreads(__tstate);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 }
12814 {
12815 resultobj = SWIG_From_int(static_cast<int >(result));
12816 }
12817 return resultobj;
12818 fail:
12819 return NULL;
12820 }
12821
12822
12823 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
12824 PyObject *resultobj = NULL;
12825 wxJoystick *arg1 = (wxJoystick *) 0 ;
12826 int result;
12827 PyObject * obj0 = 0 ;
12828 char *kwnames[] = {
12829 (char *) "self", NULL
12830 };
12831
12832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
12833 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12834 if (SWIG_arg_fail(1)) SWIG_fail;
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = (int)(arg1)->GetMovementThreshold();
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 {
12843 resultobj = SWIG_From_int(static_cast<int >(result));
12844 }
12845 return resultobj;
12846 fail:
12847 return NULL;
12848 }
12849
12850
12851 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
12852 PyObject *resultobj = NULL;
12853 wxJoystick *arg1 = (wxJoystick *) 0 ;
12854 int arg2 ;
12855 PyObject * obj0 = 0 ;
12856 PyObject * obj1 = 0 ;
12857 char *kwnames[] = {
12858 (char *) "self",(char *) "threshold", NULL
12859 };
12860
12861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
12862 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12863 if (SWIG_arg_fail(1)) SWIG_fail;
12864 {
12865 arg2 = static_cast<int >(SWIG_As_int(obj1));
12866 if (SWIG_arg_fail(2)) SWIG_fail;
12867 }
12868 {
12869 PyThreadState* __tstate = wxPyBeginAllowThreads();
12870 (arg1)->SetMovementThreshold(arg2);
12871
12872 wxPyEndAllowThreads(__tstate);
12873 if (PyErr_Occurred()) SWIG_fail;
12874 }
12875 Py_INCREF(Py_None); resultobj = Py_None;
12876 return resultobj;
12877 fail:
12878 return NULL;
12879 }
12880
12881
12882 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12883 PyObject *resultobj = NULL;
12884 wxJoystick *arg1 = (wxJoystick *) 0 ;
12885 bool result;
12886 PyObject * obj0 = 0 ;
12887 char *kwnames[] = {
12888 (char *) "self", NULL
12889 };
12890
12891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
12892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12893 if (SWIG_arg_fail(1)) SWIG_fail;
12894 {
12895 PyThreadState* __tstate = wxPyBeginAllowThreads();
12896 result = (bool)(arg1)->IsOk();
12897
12898 wxPyEndAllowThreads(__tstate);
12899 if (PyErr_Occurred()) SWIG_fail;
12900 }
12901 {
12902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12903 }
12904 return resultobj;
12905 fail:
12906 return NULL;
12907 }
12908
12909
12910 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
12911 PyObject *resultobj = NULL;
12912 wxJoystick *arg1 = (wxJoystick *) 0 ;
12913 int result;
12914 PyObject * obj0 = 0 ;
12915 char *kwnames[] = {
12916 (char *) "self", NULL
12917 };
12918
12919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
12920 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12921 if (SWIG_arg_fail(1)) SWIG_fail;
12922 {
12923 PyThreadState* __tstate = wxPyBeginAllowThreads();
12924 result = (int)(arg1)->GetNumberJoysticks();
12925
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 {
12930 resultobj = SWIG_From_int(static_cast<int >(result));
12931 }
12932 return resultobj;
12933 fail:
12934 return NULL;
12935 }
12936
12937
12938 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
12939 PyObject *resultobj = NULL;
12940 wxJoystick *arg1 = (wxJoystick *) 0 ;
12941 int result;
12942 PyObject * obj0 = 0 ;
12943 char *kwnames[] = {
12944 (char *) "self", NULL
12945 };
12946
12947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
12948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12949 if (SWIG_arg_fail(1)) SWIG_fail;
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 result = (int)(arg1)->GetManufacturerId();
12953
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 {
12958 resultobj = SWIG_From_int(static_cast<int >(result));
12959 }
12960 return resultobj;
12961 fail:
12962 return NULL;
12963 }
12964
12965
12966 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
12967 PyObject *resultobj = NULL;
12968 wxJoystick *arg1 = (wxJoystick *) 0 ;
12969 int result;
12970 PyObject * obj0 = 0 ;
12971 char *kwnames[] = {
12972 (char *) "self", NULL
12973 };
12974
12975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
12976 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
12977 if (SWIG_arg_fail(1)) SWIG_fail;
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 result = (int)(arg1)->GetProductId();
12981
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 {
12986 resultobj = SWIG_From_int(static_cast<int >(result));
12987 }
12988 return resultobj;
12989 fail:
12990 return NULL;
12991 }
12992
12993
12994 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
12995 PyObject *resultobj = NULL;
12996 wxJoystick *arg1 = (wxJoystick *) 0 ;
12997 wxString result;
12998 PyObject * obj0 = 0 ;
12999 char *kwnames[] = {
13000 (char *) "self", NULL
13001 };
13002
13003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
13004 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13005 if (SWIG_arg_fail(1)) SWIG_fail;
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 result = (arg1)->GetProductName();
13009
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 {
13014 #if wxUSE_UNICODE
13015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13016 #else
13017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13018 #endif
13019 }
13020 return resultobj;
13021 fail:
13022 return NULL;
13023 }
13024
13025
13026 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
13027 PyObject *resultobj = NULL;
13028 wxJoystick *arg1 = (wxJoystick *) 0 ;
13029 int result;
13030 PyObject * obj0 = 0 ;
13031 char *kwnames[] = {
13032 (char *) "self", NULL
13033 };
13034
13035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
13036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13037 if (SWIG_arg_fail(1)) SWIG_fail;
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 result = (int)(arg1)->GetXMin();
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 {
13046 resultobj = SWIG_From_int(static_cast<int >(result));
13047 }
13048 return resultobj;
13049 fail:
13050 return NULL;
13051 }
13052
13053
13054 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
13055 PyObject *resultobj = NULL;
13056 wxJoystick *arg1 = (wxJoystick *) 0 ;
13057 int result;
13058 PyObject * obj0 = 0 ;
13059 char *kwnames[] = {
13060 (char *) "self", NULL
13061 };
13062
13063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
13064 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13065 if (SWIG_arg_fail(1)) SWIG_fail;
13066 {
13067 PyThreadState* __tstate = wxPyBeginAllowThreads();
13068 result = (int)(arg1)->GetYMin();
13069
13070 wxPyEndAllowThreads(__tstate);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 {
13074 resultobj = SWIG_From_int(static_cast<int >(result));
13075 }
13076 return resultobj;
13077 fail:
13078 return NULL;
13079 }
13080
13081
13082 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
13083 PyObject *resultobj = NULL;
13084 wxJoystick *arg1 = (wxJoystick *) 0 ;
13085 int result;
13086 PyObject * obj0 = 0 ;
13087 char *kwnames[] = {
13088 (char *) "self", NULL
13089 };
13090
13091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
13092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13093 if (SWIG_arg_fail(1)) SWIG_fail;
13094 {
13095 PyThreadState* __tstate = wxPyBeginAllowThreads();
13096 result = (int)(arg1)->GetZMin();
13097
13098 wxPyEndAllowThreads(__tstate);
13099 if (PyErr_Occurred()) SWIG_fail;
13100 }
13101 {
13102 resultobj = SWIG_From_int(static_cast<int >(result));
13103 }
13104 return resultobj;
13105 fail:
13106 return NULL;
13107 }
13108
13109
13110 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj = NULL;
13112 wxJoystick *arg1 = (wxJoystick *) 0 ;
13113 int result;
13114 PyObject * obj0 = 0 ;
13115 char *kwnames[] = {
13116 (char *) "self", NULL
13117 };
13118
13119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
13120 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13121 if (SWIG_arg_fail(1)) SWIG_fail;
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = (int)(arg1)->GetXMax();
13125
13126 wxPyEndAllowThreads(__tstate);
13127 if (PyErr_Occurred()) SWIG_fail;
13128 }
13129 {
13130 resultobj = SWIG_From_int(static_cast<int >(result));
13131 }
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj = NULL;
13140 wxJoystick *arg1 = (wxJoystick *) 0 ;
13141 int result;
13142 PyObject * obj0 = 0 ;
13143 char *kwnames[] = {
13144 (char *) "self", NULL
13145 };
13146
13147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
13148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13149 if (SWIG_arg_fail(1)) SWIG_fail;
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 result = (int)(arg1)->GetYMax();
13153
13154 wxPyEndAllowThreads(__tstate);
13155 if (PyErr_Occurred()) SWIG_fail;
13156 }
13157 {
13158 resultobj = SWIG_From_int(static_cast<int >(result));
13159 }
13160 return resultobj;
13161 fail:
13162 return NULL;
13163 }
13164
13165
13166 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj = NULL;
13168 wxJoystick *arg1 = (wxJoystick *) 0 ;
13169 int result;
13170 PyObject * obj0 = 0 ;
13171 char *kwnames[] = {
13172 (char *) "self", NULL
13173 };
13174
13175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
13176 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13177 if (SWIG_arg_fail(1)) SWIG_fail;
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = (int)(arg1)->GetZMax();
13181
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 {
13186 resultobj = SWIG_From_int(static_cast<int >(result));
13187 }
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj = NULL;
13196 wxJoystick *arg1 = (wxJoystick *) 0 ;
13197 int result;
13198 PyObject * obj0 = 0 ;
13199 char *kwnames[] = {
13200 (char *) "self", NULL
13201 };
13202
13203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
13204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13205 if (SWIG_arg_fail(1)) SWIG_fail;
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = (int)(arg1)->GetNumberButtons();
13209
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 {
13214 resultobj = SWIG_From_int(static_cast<int >(result));
13215 }
13216 return resultobj;
13217 fail:
13218 return NULL;
13219 }
13220
13221
13222 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
13223 PyObject *resultobj = NULL;
13224 wxJoystick *arg1 = (wxJoystick *) 0 ;
13225 int result;
13226 PyObject * obj0 = 0 ;
13227 char *kwnames[] = {
13228 (char *) "self", NULL
13229 };
13230
13231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
13232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13233 if (SWIG_arg_fail(1)) SWIG_fail;
13234 {
13235 PyThreadState* __tstate = wxPyBeginAllowThreads();
13236 result = (int)(arg1)->GetNumberAxes();
13237
13238 wxPyEndAllowThreads(__tstate);
13239 if (PyErr_Occurred()) SWIG_fail;
13240 }
13241 {
13242 resultobj = SWIG_From_int(static_cast<int >(result));
13243 }
13244 return resultobj;
13245 fail:
13246 return NULL;
13247 }
13248
13249
13250 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
13251 PyObject *resultobj = NULL;
13252 wxJoystick *arg1 = (wxJoystick *) 0 ;
13253 int result;
13254 PyObject * obj0 = 0 ;
13255 char *kwnames[] = {
13256 (char *) "self", NULL
13257 };
13258
13259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
13260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13261 if (SWIG_arg_fail(1)) SWIG_fail;
13262 {
13263 PyThreadState* __tstate = wxPyBeginAllowThreads();
13264 result = (int)(arg1)->GetMaxButtons();
13265
13266 wxPyEndAllowThreads(__tstate);
13267 if (PyErr_Occurred()) SWIG_fail;
13268 }
13269 {
13270 resultobj = SWIG_From_int(static_cast<int >(result));
13271 }
13272 return resultobj;
13273 fail:
13274 return NULL;
13275 }
13276
13277
13278 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
13279 PyObject *resultobj = NULL;
13280 wxJoystick *arg1 = (wxJoystick *) 0 ;
13281 int result;
13282 PyObject * obj0 = 0 ;
13283 char *kwnames[] = {
13284 (char *) "self", NULL
13285 };
13286
13287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
13288 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13289 if (SWIG_arg_fail(1)) SWIG_fail;
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (int)(arg1)->GetMaxAxes();
13293
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 {
13298 resultobj = SWIG_From_int(static_cast<int >(result));
13299 }
13300 return resultobj;
13301 fail:
13302 return NULL;
13303 }
13304
13305
13306 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = NULL;
13308 wxJoystick *arg1 = (wxJoystick *) 0 ;
13309 int result;
13310 PyObject * obj0 = 0 ;
13311 char *kwnames[] = {
13312 (char *) "self", NULL
13313 };
13314
13315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
13316 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13317 if (SWIG_arg_fail(1)) SWIG_fail;
13318 {
13319 PyThreadState* __tstate = wxPyBeginAllowThreads();
13320 result = (int)(arg1)->GetPollingMin();
13321
13322 wxPyEndAllowThreads(__tstate);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 }
13325 {
13326 resultobj = SWIG_From_int(static_cast<int >(result));
13327 }
13328 return resultobj;
13329 fail:
13330 return NULL;
13331 }
13332
13333
13334 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
13335 PyObject *resultobj = NULL;
13336 wxJoystick *arg1 = (wxJoystick *) 0 ;
13337 int result;
13338 PyObject * obj0 = 0 ;
13339 char *kwnames[] = {
13340 (char *) "self", NULL
13341 };
13342
13343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
13344 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13345 if (SWIG_arg_fail(1)) SWIG_fail;
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = (int)(arg1)->GetPollingMax();
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 {
13354 resultobj = SWIG_From_int(static_cast<int >(result));
13355 }
13356 return resultobj;
13357 fail:
13358 return NULL;
13359 }
13360
13361
13362 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj = NULL;
13364 wxJoystick *arg1 = (wxJoystick *) 0 ;
13365 int result;
13366 PyObject * obj0 = 0 ;
13367 char *kwnames[] = {
13368 (char *) "self", NULL
13369 };
13370
13371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
13372 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13373 if (SWIG_arg_fail(1)) SWIG_fail;
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 result = (int)(arg1)->GetRudderMin();
13377
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 {
13382 resultobj = SWIG_From_int(static_cast<int >(result));
13383 }
13384 return resultobj;
13385 fail:
13386 return NULL;
13387 }
13388
13389
13390 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj = NULL;
13392 wxJoystick *arg1 = (wxJoystick *) 0 ;
13393 int result;
13394 PyObject * obj0 = 0 ;
13395 char *kwnames[] = {
13396 (char *) "self", NULL
13397 };
13398
13399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
13400 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13401 if (SWIG_arg_fail(1)) SWIG_fail;
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 result = (int)(arg1)->GetRudderMax();
13405
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 {
13410 resultobj = SWIG_From_int(static_cast<int >(result));
13411 }
13412 return resultobj;
13413 fail:
13414 return NULL;
13415 }
13416
13417
13418 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
13419 PyObject *resultobj = NULL;
13420 wxJoystick *arg1 = (wxJoystick *) 0 ;
13421 int result;
13422 PyObject * obj0 = 0 ;
13423 char *kwnames[] = {
13424 (char *) "self", NULL
13425 };
13426
13427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
13428 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13429 if (SWIG_arg_fail(1)) SWIG_fail;
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 result = (int)(arg1)->GetUMin();
13433
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 {
13438 resultobj = SWIG_From_int(static_cast<int >(result));
13439 }
13440 return resultobj;
13441 fail:
13442 return NULL;
13443 }
13444
13445
13446 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
13447 PyObject *resultobj = NULL;
13448 wxJoystick *arg1 = (wxJoystick *) 0 ;
13449 int result;
13450 PyObject * obj0 = 0 ;
13451 char *kwnames[] = {
13452 (char *) "self", NULL
13453 };
13454
13455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
13456 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13457 if (SWIG_arg_fail(1)) SWIG_fail;
13458 {
13459 PyThreadState* __tstate = wxPyBeginAllowThreads();
13460 result = (int)(arg1)->GetUMax();
13461
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 {
13466 resultobj = SWIG_From_int(static_cast<int >(result));
13467 }
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj = NULL;
13476 wxJoystick *arg1 = (wxJoystick *) 0 ;
13477 int result;
13478 PyObject * obj0 = 0 ;
13479 char *kwnames[] = {
13480 (char *) "self", NULL
13481 };
13482
13483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
13484 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13485 if (SWIG_arg_fail(1)) SWIG_fail;
13486 {
13487 PyThreadState* __tstate = wxPyBeginAllowThreads();
13488 result = (int)(arg1)->GetVMin();
13489
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 {
13494 resultobj = SWIG_From_int(static_cast<int >(result));
13495 }
13496 return resultobj;
13497 fail:
13498 return NULL;
13499 }
13500
13501
13502 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
13503 PyObject *resultobj = NULL;
13504 wxJoystick *arg1 = (wxJoystick *) 0 ;
13505 int result;
13506 PyObject * obj0 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "self", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
13512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13513 if (SWIG_arg_fail(1)) SWIG_fail;
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 result = (int)(arg1)->GetVMax();
13517
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 {
13522 resultobj = SWIG_From_int(static_cast<int >(result));
13523 }
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj = NULL;
13532 wxJoystick *arg1 = (wxJoystick *) 0 ;
13533 bool result;
13534 PyObject * obj0 = 0 ;
13535 char *kwnames[] = {
13536 (char *) "self", NULL
13537 };
13538
13539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
13540 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13541 if (SWIG_arg_fail(1)) SWIG_fail;
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 result = (bool)(arg1)->HasRudder();
13545
13546 wxPyEndAllowThreads(__tstate);
13547 if (PyErr_Occurred()) SWIG_fail;
13548 }
13549 {
13550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13551 }
13552 return resultobj;
13553 fail:
13554 return NULL;
13555 }
13556
13557
13558 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj = NULL;
13560 wxJoystick *arg1 = (wxJoystick *) 0 ;
13561 bool result;
13562 PyObject * obj0 = 0 ;
13563 char *kwnames[] = {
13564 (char *) "self", NULL
13565 };
13566
13567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
13568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13569 if (SWIG_arg_fail(1)) SWIG_fail;
13570 {
13571 PyThreadState* __tstate = wxPyBeginAllowThreads();
13572 result = (bool)(arg1)->HasZ();
13573
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 {
13578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13579 }
13580 return resultobj;
13581 fail:
13582 return NULL;
13583 }
13584
13585
13586 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
13587 PyObject *resultobj = NULL;
13588 wxJoystick *arg1 = (wxJoystick *) 0 ;
13589 bool result;
13590 PyObject * obj0 = 0 ;
13591 char *kwnames[] = {
13592 (char *) "self", NULL
13593 };
13594
13595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
13596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13597 if (SWIG_arg_fail(1)) SWIG_fail;
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 result = (bool)(arg1)->HasU();
13601
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 {
13606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13607 }
13608 return resultobj;
13609 fail:
13610 return NULL;
13611 }
13612
13613
13614 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
13615 PyObject *resultobj = NULL;
13616 wxJoystick *arg1 = (wxJoystick *) 0 ;
13617 bool result;
13618 PyObject * obj0 = 0 ;
13619 char *kwnames[] = {
13620 (char *) "self", NULL
13621 };
13622
13623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
13624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13625 if (SWIG_arg_fail(1)) SWIG_fail;
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 result = (bool)(arg1)->HasV();
13629
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 {
13634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13635 }
13636 return resultobj;
13637 fail:
13638 return NULL;
13639 }
13640
13641
13642 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj = NULL;
13644 wxJoystick *arg1 = (wxJoystick *) 0 ;
13645 bool result;
13646 PyObject * obj0 = 0 ;
13647 char *kwnames[] = {
13648 (char *) "self", NULL
13649 };
13650
13651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
13652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13653 if (SWIG_arg_fail(1)) SWIG_fail;
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 result = (bool)(arg1)->HasPOV();
13657
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 {
13662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13663 }
13664 return resultobj;
13665 fail:
13666 return NULL;
13667 }
13668
13669
13670 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
13671 PyObject *resultobj = NULL;
13672 wxJoystick *arg1 = (wxJoystick *) 0 ;
13673 bool result;
13674 PyObject * obj0 = 0 ;
13675 char *kwnames[] = {
13676 (char *) "self", NULL
13677 };
13678
13679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
13680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13681 if (SWIG_arg_fail(1)) SWIG_fail;
13682 {
13683 PyThreadState* __tstate = wxPyBeginAllowThreads();
13684 result = (bool)(arg1)->HasPOV4Dir();
13685
13686 wxPyEndAllowThreads(__tstate);
13687 if (PyErr_Occurred()) SWIG_fail;
13688 }
13689 {
13690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13691 }
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj = NULL;
13700 wxJoystick *arg1 = (wxJoystick *) 0 ;
13701 bool result;
13702 PyObject * obj0 = 0 ;
13703 char *kwnames[] = {
13704 (char *) "self", NULL
13705 };
13706
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
13708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13709 if (SWIG_arg_fail(1)) SWIG_fail;
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 result = (bool)(arg1)->HasPOVCTS();
13713
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 {
13718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13719 }
13720 return resultobj;
13721 fail:
13722 return NULL;
13723 }
13724
13725
13726 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj = NULL;
13728 wxJoystick *arg1 = (wxJoystick *) 0 ;
13729 wxWindow *arg2 = (wxWindow *) 0 ;
13730 int arg3 = (int) 0 ;
13731 bool result;
13732 PyObject * obj0 = 0 ;
13733 PyObject * obj1 = 0 ;
13734 PyObject * obj2 = 0 ;
13735 char *kwnames[] = {
13736 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
13737 };
13738
13739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
13740 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13741 if (SWIG_arg_fail(1)) SWIG_fail;
13742 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
13743 if (SWIG_arg_fail(2)) SWIG_fail;
13744 if (obj2) {
13745 {
13746 arg3 = static_cast<int >(SWIG_As_int(obj2));
13747 if (SWIG_arg_fail(3)) SWIG_fail;
13748 }
13749 }
13750 {
13751 PyThreadState* __tstate = wxPyBeginAllowThreads();
13752 result = (bool)(arg1)->SetCapture(arg2,arg3);
13753
13754 wxPyEndAllowThreads(__tstate);
13755 if (PyErr_Occurred()) SWIG_fail;
13756 }
13757 {
13758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13759 }
13760 return resultobj;
13761 fail:
13762 return NULL;
13763 }
13764
13765
13766 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
13767 PyObject *resultobj = NULL;
13768 wxJoystick *arg1 = (wxJoystick *) 0 ;
13769 bool result;
13770 PyObject * obj0 = 0 ;
13771 char *kwnames[] = {
13772 (char *) "self", NULL
13773 };
13774
13775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
13776 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0);
13777 if (SWIG_arg_fail(1)) SWIG_fail;
13778 {
13779 PyThreadState* __tstate = wxPyBeginAllowThreads();
13780 result = (bool)(arg1)->ReleaseCapture();
13781
13782 wxPyEndAllowThreads(__tstate);
13783 if (PyErr_Occurred()) SWIG_fail;
13784 }
13785 {
13786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13787 }
13788 return resultobj;
13789 fail:
13790 return NULL;
13791 }
13792
13793
13794 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
13795 PyObject *obj;
13796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13797 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
13798 Py_INCREF(obj);
13799 return Py_BuildValue((char *)"");
13800 }
13801 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13802 PyObject *resultobj = NULL;
13803 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13804 int arg2 = (int) 0 ;
13805 int arg3 = (int) wxJOYSTICK1 ;
13806 int arg4 = (int) 0 ;
13807 wxJoystickEvent *result;
13808 PyObject * obj0 = 0 ;
13809 PyObject * obj1 = 0 ;
13810 PyObject * obj2 = 0 ;
13811 PyObject * obj3 = 0 ;
13812 char *kwnames[] = {
13813 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
13814 };
13815
13816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13817 if (obj0) {
13818 {
13819 arg1 = static_cast<wxEventType >(SWIG_As_int(obj0));
13820 if (SWIG_arg_fail(1)) SWIG_fail;
13821 }
13822 }
13823 if (obj1) {
13824 {
13825 arg2 = static_cast<int >(SWIG_As_int(obj1));
13826 if (SWIG_arg_fail(2)) SWIG_fail;
13827 }
13828 }
13829 if (obj2) {
13830 {
13831 arg3 = static_cast<int >(SWIG_As_int(obj2));
13832 if (SWIG_arg_fail(3)) SWIG_fail;
13833 }
13834 }
13835 if (obj3) {
13836 {
13837 arg4 = static_cast<int >(SWIG_As_int(obj3));
13838 if (SWIG_arg_fail(4)) SWIG_fail;
13839 }
13840 }
13841 {
13842 PyThreadState* __tstate = wxPyBeginAllowThreads();
13843 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
13844
13845 wxPyEndAllowThreads(__tstate);
13846 if (PyErr_Occurred()) SWIG_fail;
13847 }
13848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
13849 return resultobj;
13850 fail:
13851 return NULL;
13852 }
13853
13854
13855 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13856 PyObject *resultobj = NULL;
13857 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13858 wxPoint result;
13859 PyObject * obj0 = 0 ;
13860 char *kwnames[] = {
13861 (char *) "self", NULL
13862 };
13863
13864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
13865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13866 if (SWIG_arg_fail(1)) SWIG_fail;
13867 {
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
13869 result = ((wxJoystickEvent const *)arg1)->GetPosition();
13870
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 {
13875 wxPoint * resultptr;
13876 resultptr = new wxPoint(static_cast<wxPoint & >(result));
13877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
13878 }
13879 return resultobj;
13880 fail:
13881 return NULL;
13882 }
13883
13884
13885 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13886 PyObject *resultobj = NULL;
13887 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13888 int result;
13889 PyObject * obj0 = 0 ;
13890 char *kwnames[] = {
13891 (char *) "self", NULL
13892 };
13893
13894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
13895 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13896 if (SWIG_arg_fail(1)) SWIG_fail;
13897 {
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
13900
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 {
13905 resultobj = SWIG_From_int(static_cast<int >(result));
13906 }
13907 return resultobj;
13908 fail:
13909 return NULL;
13910 }
13911
13912
13913 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
13914 PyObject *resultobj = NULL;
13915 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13916 int result;
13917 PyObject * obj0 = 0 ;
13918 char *kwnames[] = {
13919 (char *) "self", NULL
13920 };
13921
13922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
13923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13924 if (SWIG_arg_fail(1)) SWIG_fail;
13925 {
13926 PyThreadState* __tstate = wxPyBeginAllowThreads();
13927 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
13928
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 {
13933 resultobj = SWIG_From_int(static_cast<int >(result));
13934 }
13935 return resultobj;
13936 fail:
13937 return NULL;
13938 }
13939
13940
13941 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
13942 PyObject *resultobj = NULL;
13943 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13944 int result;
13945 PyObject * obj0 = 0 ;
13946 char *kwnames[] = {
13947 (char *) "self", NULL
13948 };
13949
13950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
13951 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13952 if (SWIG_arg_fail(1)) SWIG_fail;
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
13956
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 {
13961 resultobj = SWIG_From_int(static_cast<int >(result));
13962 }
13963 return resultobj;
13964 fail:
13965 return NULL;
13966 }
13967
13968
13969 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
13970 PyObject *resultobj = NULL;
13971 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
13972 int result;
13973 PyObject * obj0 = 0 ;
13974 char *kwnames[] = {
13975 (char *) "self", NULL
13976 };
13977
13978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
13979 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
13980 if (SWIG_arg_fail(1)) SWIG_fail;
13981 {
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
13984
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 {
13989 resultobj = SWIG_From_int(static_cast<int >(result));
13990 }
13991 return resultobj;
13992 fail:
13993 return NULL;
13994 }
13995
13996
13997 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
13998 PyObject *resultobj = NULL;
13999 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14000 int arg2 ;
14001 PyObject * obj0 = 0 ;
14002 PyObject * obj1 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self",(char *) "stick", NULL
14005 };
14006
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
14008 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14009 if (SWIG_arg_fail(1)) SWIG_fail;
14010 {
14011 arg2 = static_cast<int >(SWIG_As_int(obj1));
14012 if (SWIG_arg_fail(2)) SWIG_fail;
14013 }
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 (arg1)->SetJoystick(arg2);
14017
14018 wxPyEndAllowThreads(__tstate);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 }
14021 Py_INCREF(Py_None); resultobj = Py_None;
14022 return resultobj;
14023 fail:
14024 return NULL;
14025 }
14026
14027
14028 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
14029 PyObject *resultobj = NULL;
14030 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14031 int arg2 ;
14032 PyObject * obj0 = 0 ;
14033 PyObject * obj1 = 0 ;
14034 char *kwnames[] = {
14035 (char *) "self",(char *) "state", NULL
14036 };
14037
14038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
14039 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14040 if (SWIG_arg_fail(1)) SWIG_fail;
14041 {
14042 arg2 = static_cast<int >(SWIG_As_int(obj1));
14043 if (SWIG_arg_fail(2)) SWIG_fail;
14044 }
14045 {
14046 PyThreadState* __tstate = wxPyBeginAllowThreads();
14047 (arg1)->SetButtonState(arg2);
14048
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 Py_INCREF(Py_None); resultobj = Py_None;
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
14060 PyObject *resultobj = NULL;
14061 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14062 int arg2 ;
14063 PyObject * obj0 = 0 ;
14064 PyObject * obj1 = 0 ;
14065 char *kwnames[] = {
14066 (char *) "self",(char *) "change", NULL
14067 };
14068
14069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
14070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14071 if (SWIG_arg_fail(1)) SWIG_fail;
14072 {
14073 arg2 = static_cast<int >(SWIG_As_int(obj1));
14074 if (SWIG_arg_fail(2)) SWIG_fail;
14075 }
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
14078 (arg1)->SetButtonChange(arg2);
14079
14080 wxPyEndAllowThreads(__tstate);
14081 if (PyErr_Occurred()) SWIG_fail;
14082 }
14083 Py_INCREF(Py_None); resultobj = Py_None;
14084 return resultobj;
14085 fail:
14086 return NULL;
14087 }
14088
14089
14090 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14091 PyObject *resultobj = NULL;
14092 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14093 wxPoint *arg2 = 0 ;
14094 wxPoint temp2 ;
14095 PyObject * obj0 = 0 ;
14096 PyObject * obj1 = 0 ;
14097 char *kwnames[] = {
14098 (char *) "self",(char *) "pos", NULL
14099 };
14100
14101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
14102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14103 if (SWIG_arg_fail(1)) SWIG_fail;
14104 {
14105 arg2 = &temp2;
14106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14107 }
14108 {
14109 PyThreadState* __tstate = wxPyBeginAllowThreads();
14110 (arg1)->SetPosition((wxPoint const &)*arg2);
14111
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 Py_INCREF(Py_None); resultobj = Py_None;
14116 return resultobj;
14117 fail:
14118 return NULL;
14119 }
14120
14121
14122 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14123 PyObject *resultobj = NULL;
14124 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14125 int arg2 ;
14126 PyObject * obj0 = 0 ;
14127 PyObject * obj1 = 0 ;
14128 char *kwnames[] = {
14129 (char *) "self",(char *) "zPos", NULL
14130 };
14131
14132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
14133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14134 if (SWIG_arg_fail(1)) SWIG_fail;
14135 {
14136 arg2 = static_cast<int >(SWIG_As_int(obj1));
14137 if (SWIG_arg_fail(2)) SWIG_fail;
14138 }
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 (arg1)->SetZPosition(arg2);
14142
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 Py_INCREF(Py_None); resultobj = Py_None;
14147 return resultobj;
14148 fail:
14149 return NULL;
14150 }
14151
14152
14153 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
14154 PyObject *resultobj = NULL;
14155 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14156 bool result;
14157 PyObject * obj0 = 0 ;
14158 char *kwnames[] = {
14159 (char *) "self", NULL
14160 };
14161
14162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
14163 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14164 if (SWIG_arg_fail(1)) SWIG_fail;
14165 {
14166 PyThreadState* __tstate = wxPyBeginAllowThreads();
14167 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
14168
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 {
14173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14174 }
14175 return resultobj;
14176 fail:
14177 return NULL;
14178 }
14179
14180
14181 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
14182 PyObject *resultobj = NULL;
14183 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14184 bool result;
14185 PyObject * obj0 = 0 ;
14186 char *kwnames[] = {
14187 (char *) "self", NULL
14188 };
14189
14190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
14191 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14192 if (SWIG_arg_fail(1)) SWIG_fail;
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
14196
14197 wxPyEndAllowThreads(__tstate);
14198 if (PyErr_Occurred()) SWIG_fail;
14199 }
14200 {
14201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14202 }
14203 return resultobj;
14204 fail:
14205 return NULL;
14206 }
14207
14208
14209 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
14210 PyObject *resultobj = NULL;
14211 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14212 bool result;
14213 PyObject * obj0 = 0 ;
14214 char *kwnames[] = {
14215 (char *) "self", NULL
14216 };
14217
14218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
14219 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14220 if (SWIG_arg_fail(1)) SWIG_fail;
14221 {
14222 PyThreadState* __tstate = wxPyBeginAllowThreads();
14223 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
14224
14225 wxPyEndAllowThreads(__tstate);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 }
14228 {
14229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14230 }
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj = NULL;
14239 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14240 int arg2 = (int) wxJOY_BUTTON_ANY ;
14241 bool result;
14242 PyObject * obj0 = 0 ;
14243 PyObject * obj1 = 0 ;
14244 char *kwnames[] = {
14245 (char *) "self",(char *) "but", NULL
14246 };
14247
14248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
14249 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14250 if (SWIG_arg_fail(1)) SWIG_fail;
14251 if (obj1) {
14252 {
14253 arg2 = static_cast<int >(SWIG_As_int(obj1));
14254 if (SWIG_arg_fail(2)) SWIG_fail;
14255 }
14256 }
14257 {
14258 PyThreadState* __tstate = wxPyBeginAllowThreads();
14259 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
14260
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 {
14265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14266 }
14267 return resultobj;
14268 fail:
14269 return NULL;
14270 }
14271
14272
14273 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
14274 PyObject *resultobj = NULL;
14275 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14276 int arg2 = (int) wxJOY_BUTTON_ANY ;
14277 bool result;
14278 PyObject * obj0 = 0 ;
14279 PyObject * obj1 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "self",(char *) "but", NULL
14282 };
14283
14284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
14285 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14286 if (SWIG_arg_fail(1)) SWIG_fail;
14287 if (obj1) {
14288 {
14289 arg2 = static_cast<int >(SWIG_As_int(obj1));
14290 if (SWIG_arg_fail(2)) SWIG_fail;
14291 }
14292 }
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
14296
14297 wxPyEndAllowThreads(__tstate);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 {
14301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14302 }
14303 return resultobj;
14304 fail:
14305 return NULL;
14306 }
14307
14308
14309 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
14310 PyObject *resultobj = NULL;
14311 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
14312 int arg2 = (int) wxJOY_BUTTON_ANY ;
14313 bool result;
14314 PyObject * obj0 = 0 ;
14315 PyObject * obj1 = 0 ;
14316 char *kwnames[] = {
14317 (char *) "self",(char *) "but", NULL
14318 };
14319
14320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
14321 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0);
14322 if (SWIG_arg_fail(1)) SWIG_fail;
14323 if (obj1) {
14324 {
14325 arg2 = static_cast<int >(SWIG_As_int(obj1));
14326 if (SWIG_arg_fail(2)) SWIG_fail;
14327 }
14328 }
14329 {
14330 PyThreadState* __tstate = wxPyBeginAllowThreads();
14331 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
14332
14333 wxPyEndAllowThreads(__tstate);
14334 if (PyErr_Occurred()) SWIG_fail;
14335 }
14336 {
14337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14338 }
14339 return resultobj;
14340 fail:
14341 return NULL;
14342 }
14343
14344
14345 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
14346 PyObject *obj;
14347 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14348 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
14349 Py_INCREF(obj);
14350 return Py_BuildValue((char *)"");
14351 }
14352 static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
14353 PyObject *resultobj = NULL;
14354 wxString const &arg1_defvalue = wxPyEmptyString ;
14355 wxString *arg1 = (wxString *) &arg1_defvalue ;
14356 wxSound *result;
14357 bool temp1 = false ;
14358 PyObject * obj0 = 0 ;
14359 char *kwnames[] = {
14360 (char *) "fileName", NULL
14361 };
14362
14363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
14364 if (obj0) {
14365 {
14366 arg1 = wxString_in_helper(obj0);
14367 if (arg1 == NULL) SWIG_fail;
14368 temp1 = true;
14369 }
14370 }
14371 {
14372 if (!wxPyCheckForApp()) SWIG_fail;
14373 PyThreadState* __tstate = wxPyBeginAllowThreads();
14374 result = (wxSound *)new_wxSound((wxString const &)*arg1);
14375
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
14380 {
14381 if (temp1)
14382 delete arg1;
14383 }
14384 return resultobj;
14385 fail:
14386 {
14387 if (temp1)
14388 delete arg1;
14389 }
14390 return NULL;
14391 }
14392
14393
14394 static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = NULL;
14396 PyObject *arg1 = (PyObject *) 0 ;
14397 wxSound *result;
14398 PyObject * obj0 = 0 ;
14399 char *kwnames[] = {
14400 (char *) "data", NULL
14401 };
14402
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
14404 arg1 = obj0;
14405 {
14406 if (!wxPyCheckForApp()) SWIG_fail;
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = (wxSound *)new_wxSound(arg1);
14409
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj = NULL;
14422 wxSound *arg1 = (wxSound *) 0 ;
14423 PyObject * obj0 = 0 ;
14424 char *kwnames[] = {
14425 (char *) "self", NULL
14426 };
14427
14428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
14429 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14430 if (SWIG_arg_fail(1)) SWIG_fail;
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 delete arg1;
14434
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 Py_INCREF(Py_None); resultobj = Py_None;
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14446 PyObject *resultobj = NULL;
14447 wxSound *arg1 = (wxSound *) 0 ;
14448 wxString *arg2 = 0 ;
14449 bool result;
14450 bool temp2 = false ;
14451 PyObject * obj0 = 0 ;
14452 PyObject * obj1 = 0 ;
14453 char *kwnames[] = {
14454 (char *) "self",(char *) "fileName", NULL
14455 };
14456
14457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
14458 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14459 if (SWIG_arg_fail(1)) SWIG_fail;
14460 {
14461 arg2 = wxString_in_helper(obj1);
14462 if (arg2 == NULL) SWIG_fail;
14463 temp2 = true;
14464 }
14465 {
14466 PyThreadState* __tstate = wxPyBeginAllowThreads();
14467 result = (bool)(arg1)->Create((wxString const &)*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 {
14476 if (temp2)
14477 delete arg2;
14478 }
14479 return resultobj;
14480 fail:
14481 {
14482 if (temp2)
14483 delete arg2;
14484 }
14485 return NULL;
14486 }
14487
14488
14489 static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
14490 PyObject *resultobj = NULL;
14491 wxSound *arg1 = (wxSound *) 0 ;
14492 PyObject *arg2 = (PyObject *) 0 ;
14493 bool result;
14494 PyObject * obj0 = 0 ;
14495 PyObject * obj1 = 0 ;
14496 char *kwnames[] = {
14497 (char *) "self",(char *) "data", NULL
14498 };
14499
14500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
14501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14502 if (SWIG_arg_fail(1)) SWIG_fail;
14503 arg2 = obj1;
14504 {
14505 PyThreadState* __tstate = wxPyBeginAllowThreads();
14506 result = (bool)wxSound_CreateFromData(arg1,arg2);
14507
14508 wxPyEndAllowThreads(__tstate);
14509 if (PyErr_Occurred()) SWIG_fail;
14510 }
14511 {
14512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14513 }
14514 return resultobj;
14515 fail:
14516 return NULL;
14517 }
14518
14519
14520 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
14521 PyObject *resultobj = NULL;
14522 wxSound *arg1 = (wxSound *) 0 ;
14523 bool result;
14524 PyObject * obj0 = 0 ;
14525 char *kwnames[] = {
14526 (char *) "self", NULL
14527 };
14528
14529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
14530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14531 if (SWIG_arg_fail(1)) SWIG_fail;
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = (bool)(arg1)->IsOk();
14535
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 {
14540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14541 }
14542 return resultobj;
14543 fail:
14544 return NULL;
14545 }
14546
14547
14548 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj = NULL;
14550 wxSound *arg1 = (wxSound *) 0 ;
14551 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
14552 bool result;
14553 PyObject * obj0 = 0 ;
14554 PyObject * obj1 = 0 ;
14555 char *kwnames[] = {
14556 (char *) "self",(char *) "flags", NULL
14557 };
14558
14559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
14560 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0);
14561 if (SWIG_arg_fail(1)) SWIG_fail;
14562 if (obj1) {
14563 {
14564 arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1));
14565 if (SWIG_arg_fail(2)) SWIG_fail;
14566 }
14567 }
14568 {
14569 if (!wxPyCheckForApp()) SWIG_fail;
14570 PyThreadState* __tstate = wxPyBeginAllowThreads();
14571 result = (bool)((wxSound const *)arg1)->Play(arg2);
14572
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 {
14577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14578 }
14579 return resultobj;
14580 fail:
14581 return NULL;
14582 }
14583
14584
14585 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
14586 PyObject *resultobj = NULL;
14587 wxString *arg1 = 0 ;
14588 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
14589 bool result;
14590 bool temp1 = false ;
14591 PyObject * obj0 = 0 ;
14592 PyObject * obj1 = 0 ;
14593 char *kwnames[] = {
14594 (char *) "filename",(char *) "flags", NULL
14595 };
14596
14597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
14598 {
14599 arg1 = wxString_in_helper(obj0);
14600 if (arg1 == NULL) SWIG_fail;
14601 temp1 = true;
14602 }
14603 if (obj1) {
14604 {
14605 arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1));
14606 if (SWIG_arg_fail(2)) SWIG_fail;
14607 }
14608 }
14609 {
14610 if (!wxPyCheckForApp()) SWIG_fail;
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
14613
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 {
14618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14619 }
14620 {
14621 if (temp1)
14622 delete arg1;
14623 }
14624 return resultobj;
14625 fail:
14626 {
14627 if (temp1)
14628 delete arg1;
14629 }
14630 return NULL;
14631 }
14632
14633
14634 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
14635 PyObject *resultobj = NULL;
14636 char *kwnames[] = {
14637 NULL
14638 };
14639
14640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
14641 {
14642 if (!wxPyCheckForApp()) SWIG_fail;
14643 PyThreadState* __tstate = wxPyBeginAllowThreads();
14644 wxSound::Stop();
14645
14646 wxPyEndAllowThreads(__tstate);
14647 if (PyErr_Occurred()) SWIG_fail;
14648 }
14649 Py_INCREF(Py_None); resultobj = Py_None;
14650 return resultobj;
14651 fail:
14652 return NULL;
14653 }
14654
14655
14656 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
14657 PyObject *obj;
14658 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14659 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
14660 Py_INCREF(obj);
14661 return Py_BuildValue((char *)"");
14662 }
14663 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14664 PyObject *resultobj = NULL;
14665 wxString *arg1 = 0 ;
14666 wxString *arg2 = 0 ;
14667 wxString *arg3 = 0 ;
14668 wxString *arg4 = 0 ;
14669 wxFileTypeInfo *result;
14670 bool temp1 = false ;
14671 bool temp2 = false ;
14672 bool temp3 = false ;
14673 bool temp4 = false ;
14674 PyObject * obj0 = 0 ;
14675 PyObject * obj1 = 0 ;
14676 PyObject * obj2 = 0 ;
14677 PyObject * obj3 = 0 ;
14678 char *kwnames[] = {
14679 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
14680 };
14681
14682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14683 {
14684 arg1 = wxString_in_helper(obj0);
14685 if (arg1 == NULL) SWIG_fail;
14686 temp1 = true;
14687 }
14688 {
14689 arg2 = wxString_in_helper(obj1);
14690 if (arg2 == NULL) SWIG_fail;
14691 temp2 = true;
14692 }
14693 {
14694 arg3 = wxString_in_helper(obj2);
14695 if (arg3 == NULL) SWIG_fail;
14696 temp3 = true;
14697 }
14698 {
14699 arg4 = wxString_in_helper(obj3);
14700 if (arg4 == NULL) SWIG_fail;
14701 temp4 = true;
14702 }
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
14706
14707 wxPyEndAllowThreads(__tstate);
14708 if (PyErr_Occurred()) SWIG_fail;
14709 }
14710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14711 {
14712 if (temp1)
14713 delete arg1;
14714 }
14715 {
14716 if (temp2)
14717 delete arg2;
14718 }
14719 {
14720 if (temp3)
14721 delete arg3;
14722 }
14723 {
14724 if (temp4)
14725 delete arg4;
14726 }
14727 return resultobj;
14728 fail:
14729 {
14730 if (temp1)
14731 delete arg1;
14732 }
14733 {
14734 if (temp2)
14735 delete arg2;
14736 }
14737 {
14738 if (temp3)
14739 delete arg3;
14740 }
14741 {
14742 if (temp4)
14743 delete arg4;
14744 }
14745 return NULL;
14746 }
14747
14748
14749 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
14750 PyObject *resultobj = NULL;
14751 wxArrayString *arg1 = 0 ;
14752 wxFileTypeInfo *result;
14753 bool temp1 = false ;
14754 PyObject * obj0 = 0 ;
14755 char *kwnames[] = {
14756 (char *) "sArray", NULL
14757 };
14758
14759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
14760 {
14761 if (! PySequence_Check(obj0)) {
14762 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
14763 SWIG_fail;
14764 }
14765 arg1 = new wxArrayString;
14766 temp1 = true;
14767 int i, len=PySequence_Length(obj0);
14768 for (i=0; i<len; i++) {
14769 PyObject* item = PySequence_GetItem(obj0, i);
14770 wxString* s = wxString_in_helper(item);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 arg1->Add(*s);
14773 delete s;
14774 Py_DECREF(item);
14775 }
14776 }
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
14780
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14785 {
14786 if (temp1) delete arg1;
14787 }
14788 return resultobj;
14789 fail:
14790 {
14791 if (temp1) delete arg1;
14792 }
14793 return NULL;
14794 }
14795
14796
14797 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14798 PyObject *resultobj = NULL;
14799 wxFileTypeInfo *result;
14800 char *kwnames[] = {
14801 NULL
14802 };
14803
14804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
14805 {
14806 PyThreadState* __tstate = wxPyBeginAllowThreads();
14807 result = (wxFileTypeInfo *)new wxFileTypeInfo();
14808
14809 wxPyEndAllowThreads(__tstate);
14810 if (PyErr_Occurred()) SWIG_fail;
14811 }
14812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
14813 return resultobj;
14814 fail:
14815 return NULL;
14816 }
14817
14818
14819 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
14820 PyObject *resultobj = NULL;
14821 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14822 bool result;
14823 PyObject * obj0 = 0 ;
14824 char *kwnames[] = {
14825 (char *) "self", NULL
14826 };
14827
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
14829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14830 if (SWIG_arg_fail(1)) SWIG_fail;
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
14834
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 {
14839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14840 }
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj = NULL;
14849 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14850 wxString *arg2 = 0 ;
14851 int arg3 = (int) 0 ;
14852 bool temp2 = false ;
14853 PyObject * obj0 = 0 ;
14854 PyObject * obj1 = 0 ;
14855 PyObject * obj2 = 0 ;
14856 char *kwnames[] = {
14857 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
14858 };
14859
14860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14862 if (SWIG_arg_fail(1)) SWIG_fail;
14863 {
14864 arg2 = wxString_in_helper(obj1);
14865 if (arg2 == NULL) SWIG_fail;
14866 temp2 = true;
14867 }
14868 if (obj2) {
14869 {
14870 arg3 = static_cast<int >(SWIG_As_int(obj2));
14871 if (SWIG_arg_fail(3)) SWIG_fail;
14872 }
14873 }
14874 {
14875 PyThreadState* __tstate = wxPyBeginAllowThreads();
14876 (arg1)->SetIcon((wxString const &)*arg2,arg3);
14877
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 Py_INCREF(Py_None); resultobj = Py_None;
14882 {
14883 if (temp2)
14884 delete arg2;
14885 }
14886 return resultobj;
14887 fail:
14888 {
14889 if (temp2)
14890 delete arg2;
14891 }
14892 return NULL;
14893 }
14894
14895
14896 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
14897 PyObject *resultobj = NULL;
14898 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14899 wxString *arg2 = 0 ;
14900 bool temp2 = false ;
14901 PyObject * obj0 = 0 ;
14902 PyObject * obj1 = 0 ;
14903 char *kwnames[] = {
14904 (char *) "self",(char *) "shortDesc", NULL
14905 };
14906
14907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) 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 arg2 = wxString_in_helper(obj1);
14912 if (arg2 == NULL) SWIG_fail;
14913 temp2 = true;
14914 }
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 (arg1)->SetShortDesc((wxString const &)*arg2);
14918
14919 wxPyEndAllowThreads(__tstate);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 }
14922 Py_INCREF(Py_None); resultobj = Py_None;
14923 {
14924 if (temp2)
14925 delete arg2;
14926 }
14927 return resultobj;
14928 fail:
14929 {
14930 if (temp2)
14931 delete arg2;
14932 }
14933 return NULL;
14934 }
14935
14936
14937 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
14938 PyObject *resultobj = NULL;
14939 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14940 wxString *result;
14941 PyObject * obj0 = 0 ;
14942 char *kwnames[] = {
14943 (char *) "self", NULL
14944 };
14945
14946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
14947 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14948 if (SWIG_arg_fail(1)) SWIG_fail;
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 {
14952 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
14953 result = (wxString *) &_result_ref;
14954 }
14955
14956 wxPyEndAllowThreads(__tstate);
14957 if (PyErr_Occurred()) SWIG_fail;
14958 }
14959 {
14960 #if wxUSE_UNICODE
14961 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14962 #else
14963 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14964 #endif
14965 }
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj = NULL;
14974 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
14975 wxString *result;
14976 PyObject * obj0 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "self", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
14982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
14983 if (SWIG_arg_fail(1)) SWIG_fail;
14984 {
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 {
14987 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
14988 result = (wxString *) &_result_ref;
14989 }
14990
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 {
14995 #if wxUSE_UNICODE
14996 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14997 #else
14998 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14999 #endif
15000 }
15001 return resultobj;
15002 fail:
15003 return NULL;
15004 }
15005
15006
15007 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj = NULL;
15009 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15010 wxString *result;
15011 PyObject * obj0 = 0 ;
15012 char *kwnames[] = {
15013 (char *) "self", NULL
15014 };
15015
15016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
15017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15018 if (SWIG_arg_fail(1)) SWIG_fail;
15019 {
15020 PyThreadState* __tstate = wxPyBeginAllowThreads();
15021 {
15022 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
15023 result = (wxString *) &_result_ref;
15024 }
15025
15026 wxPyEndAllowThreads(__tstate);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 {
15030 #if wxUSE_UNICODE
15031 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15032 #else
15033 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15034 #endif
15035 }
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj = NULL;
15044 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15045 wxString *result;
15046 PyObject * obj0 = 0 ;
15047 char *kwnames[] = {
15048 (char *) "self", NULL
15049 };
15050
15051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
15052 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15053 if (SWIG_arg_fail(1)) SWIG_fail;
15054 {
15055 PyThreadState* __tstate = wxPyBeginAllowThreads();
15056 {
15057 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
15058 result = (wxString *) &_result_ref;
15059 }
15060
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 {
15065 #if wxUSE_UNICODE
15066 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15067 #else
15068 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15069 #endif
15070 }
15071 return resultobj;
15072 fail:
15073 return NULL;
15074 }
15075
15076
15077 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
15078 PyObject *resultobj = NULL;
15079 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15080 wxString *result;
15081 PyObject * obj0 = 0 ;
15082 char *kwnames[] = {
15083 (char *) "self", NULL
15084 };
15085
15086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
15087 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15088 if (SWIG_arg_fail(1)) SWIG_fail;
15089 {
15090 PyThreadState* __tstate = wxPyBeginAllowThreads();
15091 {
15092 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
15093 result = (wxString *) &_result_ref;
15094 }
15095
15096 wxPyEndAllowThreads(__tstate);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
15099 {
15100 #if wxUSE_UNICODE
15101 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15102 #else
15103 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15104 #endif
15105 }
15106 return resultobj;
15107 fail:
15108 return NULL;
15109 }
15110
15111
15112 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
15113 PyObject *resultobj = NULL;
15114 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15115 wxArrayString *result;
15116 PyObject * obj0 = 0 ;
15117 char *kwnames[] = {
15118 (char *) "self", NULL
15119 };
15120
15121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
15122 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15123 if (SWIG_arg_fail(1)) SWIG_fail;
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 {
15127 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
15128 result = (wxArrayString *) &_result_ref;
15129 }
15130
15131 wxPyEndAllowThreads(__tstate);
15132 if (PyErr_Occurred()) SWIG_fail;
15133 }
15134 {
15135 resultobj = wxArrayString2PyList_helper(*result);
15136 }
15137 return resultobj;
15138 fail:
15139 return NULL;
15140 }
15141
15142
15143 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
15144 PyObject *resultobj = NULL;
15145 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15146 int result;
15147 PyObject * obj0 = 0 ;
15148 char *kwnames[] = {
15149 (char *) "self", NULL
15150 };
15151
15152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
15153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15154 if (SWIG_arg_fail(1)) SWIG_fail;
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
15158
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
15162 {
15163 resultobj = SWIG_From_int(static_cast<int >(result));
15164 }
15165 return resultobj;
15166 fail:
15167 return NULL;
15168 }
15169
15170
15171 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
15172 PyObject *resultobj = NULL;
15173 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15174 wxString *result;
15175 PyObject * obj0 = 0 ;
15176 char *kwnames[] = {
15177 (char *) "self", NULL
15178 };
15179
15180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
15181 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15182 if (SWIG_arg_fail(1)) SWIG_fail;
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 {
15186 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
15187 result = (wxString *) &_result_ref;
15188 }
15189
15190 wxPyEndAllowThreads(__tstate);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 {
15194 #if wxUSE_UNICODE
15195 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15196 #else
15197 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15198 #endif
15199 }
15200 return resultobj;
15201 fail:
15202 return NULL;
15203 }
15204
15205
15206 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
15207 PyObject *resultobj = NULL;
15208 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
15209 int result;
15210 PyObject * obj0 = 0 ;
15211 char *kwnames[] = {
15212 (char *) "self", NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
15216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15217 if (SWIG_arg_fail(1)) SWIG_fail;
15218 {
15219 PyThreadState* __tstate = wxPyBeginAllowThreads();
15220 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
15221
15222 wxPyEndAllowThreads(__tstate);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 {
15226 resultobj = SWIG_From_int(static_cast<int >(result));
15227 }
15228 return resultobj;
15229 fail:
15230 return NULL;
15231 }
15232
15233
15234 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
15235 PyObject *obj;
15236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15237 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
15238 Py_INCREF(obj);
15239 return Py_BuildValue((char *)"");
15240 }
15241 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
15242 PyObject *resultobj = NULL;
15243 wxFileTypeInfo *arg1 = 0 ;
15244 wxFileType *result;
15245 PyObject * obj0 = 0 ;
15246 char *kwnames[] = {
15247 (char *) "ftInfo", NULL
15248 };
15249
15250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
15251 {
15252 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
15253 if (SWIG_arg_fail(1)) SWIG_fail;
15254 if (arg1 == NULL) {
15255 SWIG_null_ref("wxFileTypeInfo");
15256 }
15257 if (SWIG_arg_fail(1)) SWIG_fail;
15258 }
15259 {
15260 PyThreadState* __tstate = wxPyBeginAllowThreads();
15261 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
15262
15263 wxPyEndAllowThreads(__tstate);
15264 if (PyErr_Occurred()) SWIG_fail;
15265 }
15266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
15267 return resultobj;
15268 fail:
15269 return NULL;
15270 }
15271
15272
15273 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
15274 PyObject *resultobj = NULL;
15275 wxFileType *arg1 = (wxFileType *) 0 ;
15276 PyObject * obj0 = 0 ;
15277 char *kwnames[] = {
15278 (char *) "self", NULL
15279 };
15280
15281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
15282 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15283 if (SWIG_arg_fail(1)) SWIG_fail;
15284 {
15285 PyThreadState* __tstate = wxPyBeginAllowThreads();
15286 delete arg1;
15287
15288 wxPyEndAllowThreads(__tstate);
15289 if (PyErr_Occurred()) SWIG_fail;
15290 }
15291 Py_INCREF(Py_None); resultobj = Py_None;
15292 return resultobj;
15293 fail:
15294 return NULL;
15295 }
15296
15297
15298 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
15299 PyObject *resultobj = NULL;
15300 wxFileType *arg1 = (wxFileType *) 0 ;
15301 PyObject *result;
15302 PyObject * obj0 = 0 ;
15303 char *kwnames[] = {
15304 (char *) "self", NULL
15305 };
15306
15307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
15308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15309 if (SWIG_arg_fail(1)) SWIG_fail;
15310 {
15311 PyThreadState* __tstate = wxPyBeginAllowThreads();
15312 result = (PyObject *)wxFileType_GetMimeType(arg1);
15313
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 resultobj = result;
15318 return resultobj;
15319 fail:
15320 return NULL;
15321 }
15322
15323
15324 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
15325 PyObject *resultobj = NULL;
15326 wxFileType *arg1 = (wxFileType *) 0 ;
15327 PyObject *result;
15328 PyObject * obj0 = 0 ;
15329 char *kwnames[] = {
15330 (char *) "self", NULL
15331 };
15332
15333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
15334 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15335 if (SWIG_arg_fail(1)) SWIG_fail;
15336 {
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
15339
15340 wxPyEndAllowThreads(__tstate);
15341 if (PyErr_Occurred()) SWIG_fail;
15342 }
15343 resultobj = result;
15344 return resultobj;
15345 fail:
15346 return NULL;
15347 }
15348
15349
15350 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
15351 PyObject *resultobj = NULL;
15352 wxFileType *arg1 = (wxFileType *) 0 ;
15353 PyObject *result;
15354 PyObject * obj0 = 0 ;
15355 char *kwnames[] = {
15356 (char *) "self", NULL
15357 };
15358
15359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
15360 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15361 if (SWIG_arg_fail(1)) SWIG_fail;
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 result = (PyObject *)wxFileType_GetExtensions(arg1);
15365
15366 wxPyEndAllowThreads(__tstate);
15367 if (PyErr_Occurred()) SWIG_fail;
15368 }
15369 resultobj = result;
15370 return resultobj;
15371 fail:
15372 return NULL;
15373 }
15374
15375
15376 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
15377 PyObject *resultobj = NULL;
15378 wxFileType *arg1 = (wxFileType *) 0 ;
15379 wxIcon *result;
15380 PyObject * obj0 = 0 ;
15381 char *kwnames[] = {
15382 (char *) "self", NULL
15383 };
15384
15385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
15386 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15387 if (SWIG_arg_fail(1)) SWIG_fail;
15388 {
15389 PyThreadState* __tstate = wxPyBeginAllowThreads();
15390 result = (wxIcon *)wxFileType_GetIcon(arg1);
15391
15392 wxPyEndAllowThreads(__tstate);
15393 if (PyErr_Occurred()) SWIG_fail;
15394 }
15395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
15396 return resultobj;
15397 fail:
15398 return NULL;
15399 }
15400
15401
15402 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
15403 PyObject *resultobj = NULL;
15404 wxFileType *arg1 = (wxFileType *) 0 ;
15405 PyObject *result;
15406 PyObject * obj0 = 0 ;
15407 char *kwnames[] = {
15408 (char *) "self", NULL
15409 };
15410
15411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
15412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15413 if (SWIG_arg_fail(1)) SWIG_fail;
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 result = (PyObject *)wxFileType_GetIconInfo(arg1);
15417
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 resultobj = result;
15422 return resultobj;
15423 fail:
15424 return NULL;
15425 }
15426
15427
15428 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
15429 PyObject *resultobj = NULL;
15430 wxFileType *arg1 = (wxFileType *) 0 ;
15431 PyObject *result;
15432 PyObject * obj0 = 0 ;
15433 char *kwnames[] = {
15434 (char *) "self", NULL
15435 };
15436
15437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
15438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15439 if (SWIG_arg_fail(1)) SWIG_fail;
15440 {
15441 PyThreadState* __tstate = wxPyBeginAllowThreads();
15442 result = (PyObject *)wxFileType_GetDescription(arg1);
15443
15444 wxPyEndAllowThreads(__tstate);
15445 if (PyErr_Occurred()) SWIG_fail;
15446 }
15447 resultobj = result;
15448 return resultobj;
15449 fail:
15450 return NULL;
15451 }
15452
15453
15454 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15455 PyObject *resultobj = NULL;
15456 wxFileType *arg1 = (wxFileType *) 0 ;
15457 wxString *arg2 = 0 ;
15458 wxString const &arg3_defvalue = wxPyEmptyString ;
15459 wxString *arg3 = (wxString *) &arg3_defvalue ;
15460 PyObject *result;
15461 bool temp2 = false ;
15462 bool temp3 = false ;
15463 PyObject * obj0 = 0 ;
15464 PyObject * obj1 = 0 ;
15465 PyObject * obj2 = 0 ;
15466 char *kwnames[] = {
15467 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15468 };
15469
15470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15471 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15472 if (SWIG_arg_fail(1)) SWIG_fail;
15473 {
15474 arg2 = wxString_in_helper(obj1);
15475 if (arg2 == NULL) SWIG_fail;
15476 temp2 = true;
15477 }
15478 if (obj2) {
15479 {
15480 arg3 = wxString_in_helper(obj2);
15481 if (arg3 == NULL) SWIG_fail;
15482 temp3 = true;
15483 }
15484 }
15485 {
15486 PyThreadState* __tstate = wxPyBeginAllowThreads();
15487 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15488
15489 wxPyEndAllowThreads(__tstate);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
15492 resultobj = result;
15493 {
15494 if (temp2)
15495 delete arg2;
15496 }
15497 {
15498 if (temp3)
15499 delete arg3;
15500 }
15501 return resultobj;
15502 fail:
15503 {
15504 if (temp2)
15505 delete arg2;
15506 }
15507 {
15508 if (temp3)
15509 delete arg3;
15510 }
15511 return NULL;
15512 }
15513
15514
15515 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15516 PyObject *resultobj = NULL;
15517 wxFileType *arg1 = (wxFileType *) 0 ;
15518 wxString *arg2 = 0 ;
15519 wxString const &arg3_defvalue = wxPyEmptyString ;
15520 wxString *arg3 = (wxString *) &arg3_defvalue ;
15521 PyObject *result;
15522 bool temp2 = false ;
15523 bool temp3 = false ;
15524 PyObject * obj0 = 0 ;
15525 PyObject * obj1 = 0 ;
15526 PyObject * obj2 = 0 ;
15527 char *kwnames[] = {
15528 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15529 };
15530
15531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15532 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15533 if (SWIG_arg_fail(1)) SWIG_fail;
15534 {
15535 arg2 = wxString_in_helper(obj1);
15536 if (arg2 == NULL) SWIG_fail;
15537 temp2 = true;
15538 }
15539 if (obj2) {
15540 {
15541 arg3 = wxString_in_helper(obj2);
15542 if (arg3 == NULL) SWIG_fail;
15543 temp3 = true;
15544 }
15545 }
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15549
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 resultobj = result;
15554 {
15555 if (temp2)
15556 delete arg2;
15557 }
15558 {
15559 if (temp3)
15560 delete arg3;
15561 }
15562 return resultobj;
15563 fail:
15564 {
15565 if (temp2)
15566 delete arg2;
15567 }
15568 {
15569 if (temp3)
15570 delete arg3;
15571 }
15572 return NULL;
15573 }
15574
15575
15576 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj = NULL;
15578 wxFileType *arg1 = (wxFileType *) 0 ;
15579 wxString *arg2 = 0 ;
15580 wxString const &arg3_defvalue = wxPyEmptyString ;
15581 wxString *arg3 = (wxString *) &arg3_defvalue ;
15582 PyObject *result;
15583 bool temp2 = false ;
15584 bool temp3 = false ;
15585 PyObject * obj0 = 0 ;
15586 PyObject * obj1 = 0 ;
15587 PyObject * obj2 = 0 ;
15588 char *kwnames[] = {
15589 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
15590 };
15591
15592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
15593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15594 if (SWIG_arg_fail(1)) SWIG_fail;
15595 {
15596 arg2 = wxString_in_helper(obj1);
15597 if (arg2 == NULL) SWIG_fail;
15598 temp2 = true;
15599 }
15600 if (obj2) {
15601 {
15602 arg3 = wxString_in_helper(obj2);
15603 if (arg3 == NULL) SWIG_fail;
15604 temp3 = true;
15605 }
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 resultobj = result;
15615 {
15616 if (temp2)
15617 delete arg2;
15618 }
15619 {
15620 if (temp3)
15621 delete arg3;
15622 }
15623 return resultobj;
15624 fail:
15625 {
15626 if (temp2)
15627 delete arg2;
15628 }
15629 {
15630 if (temp3)
15631 delete arg3;
15632 }
15633 return NULL;
15634 }
15635
15636
15637 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15638 PyObject *resultobj = NULL;
15639 wxFileType *arg1 = (wxFileType *) 0 ;
15640 wxString *arg2 = 0 ;
15641 wxString *arg3 = 0 ;
15642 bool arg4 = (bool) true ;
15643 bool result;
15644 bool temp2 = false ;
15645 bool temp3 = false ;
15646 PyObject * obj0 = 0 ;
15647 PyObject * obj1 = 0 ;
15648 PyObject * obj2 = 0 ;
15649 PyObject * obj3 = 0 ;
15650 char *kwnames[] = {
15651 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
15652 };
15653
15654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15656 if (SWIG_arg_fail(1)) SWIG_fail;
15657 {
15658 arg2 = wxString_in_helper(obj1);
15659 if (arg2 == NULL) SWIG_fail;
15660 temp2 = true;
15661 }
15662 {
15663 arg3 = wxString_in_helper(obj2);
15664 if (arg3 == NULL) SWIG_fail;
15665 temp3 = true;
15666 }
15667 if (obj3) {
15668 {
15669 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
15670 if (SWIG_arg_fail(4)) SWIG_fail;
15671 }
15672 }
15673 {
15674 PyThreadState* __tstate = wxPyBeginAllowThreads();
15675 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
15676
15677 wxPyEndAllowThreads(__tstate);
15678 if (PyErr_Occurred()) SWIG_fail;
15679 }
15680 {
15681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15682 }
15683 {
15684 if (temp2)
15685 delete arg2;
15686 }
15687 {
15688 if (temp3)
15689 delete arg3;
15690 }
15691 return resultobj;
15692 fail:
15693 {
15694 if (temp2)
15695 delete arg2;
15696 }
15697 {
15698 if (temp3)
15699 delete arg3;
15700 }
15701 return NULL;
15702 }
15703
15704
15705 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj = NULL;
15707 wxFileType *arg1 = (wxFileType *) 0 ;
15708 wxString const &arg2_defvalue = wxPyEmptyString ;
15709 wxString *arg2 = (wxString *) &arg2_defvalue ;
15710 int arg3 = (int) 0 ;
15711 bool result;
15712 bool temp2 = false ;
15713 PyObject * obj0 = 0 ;
15714 PyObject * obj1 = 0 ;
15715 PyObject * obj2 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "self",(char *) "cmd",(char *) "index", NULL
15718 };
15719
15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15721 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15722 if (SWIG_arg_fail(1)) SWIG_fail;
15723 if (obj1) {
15724 {
15725 arg2 = wxString_in_helper(obj1);
15726 if (arg2 == NULL) SWIG_fail;
15727 temp2 = true;
15728 }
15729 }
15730 if (obj2) {
15731 {
15732 arg3 = static_cast<int >(SWIG_As_int(obj2));
15733 if (SWIG_arg_fail(3)) SWIG_fail;
15734 }
15735 }
15736 {
15737 PyThreadState* __tstate = wxPyBeginAllowThreads();
15738 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
15739
15740 wxPyEndAllowThreads(__tstate);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 {
15744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15745 }
15746 {
15747 if (temp2)
15748 delete arg2;
15749 }
15750 return resultobj;
15751 fail:
15752 {
15753 if (temp2)
15754 delete arg2;
15755 }
15756 return NULL;
15757 }
15758
15759
15760 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
15761 PyObject *resultobj = NULL;
15762 wxFileType *arg1 = (wxFileType *) 0 ;
15763 bool result;
15764 PyObject * obj0 = 0 ;
15765 char *kwnames[] = {
15766 (char *) "self", NULL
15767 };
15768
15769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
15770 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
15771 if (SWIG_arg_fail(1)) SWIG_fail;
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 result = (bool)(arg1)->Unassociate();
15775
15776 wxPyEndAllowThreads(__tstate);
15777 if (PyErr_Occurred()) SWIG_fail;
15778 }
15779 {
15780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15781 }
15782 return resultobj;
15783 fail:
15784 return NULL;
15785 }
15786
15787
15788 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
15789 PyObject *resultobj = NULL;
15790 wxString *arg1 = 0 ;
15791 wxString *arg2 = 0 ;
15792 wxString const &arg3_defvalue = wxPyEmptyString ;
15793 wxString *arg3 = (wxString *) &arg3_defvalue ;
15794 wxString result;
15795 bool temp1 = false ;
15796 bool temp2 = false ;
15797 bool temp3 = false ;
15798 PyObject * obj0 = 0 ;
15799 PyObject * obj1 = 0 ;
15800 PyObject * obj2 = 0 ;
15801 char *kwnames[] = {
15802 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
15803 };
15804
15805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15806 {
15807 arg1 = wxString_in_helper(obj0);
15808 if (arg1 == NULL) SWIG_fail;
15809 temp1 = true;
15810 }
15811 {
15812 arg2 = wxString_in_helper(obj1);
15813 if (arg2 == NULL) SWIG_fail;
15814 temp2 = true;
15815 }
15816 if (obj2) {
15817 {
15818 arg3 = wxString_in_helper(obj2);
15819 if (arg3 == NULL) SWIG_fail;
15820 temp3 = true;
15821 }
15822 }
15823 {
15824 PyThreadState* __tstate = wxPyBeginAllowThreads();
15825 result = wxFileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
15826
15827 wxPyEndAllowThreads(__tstate);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 }
15830 {
15831 #if wxUSE_UNICODE
15832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15833 #else
15834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15835 #endif
15836 }
15837 {
15838 if (temp1)
15839 delete arg1;
15840 }
15841 {
15842 if (temp2)
15843 delete arg2;
15844 }
15845 {
15846 if (temp3)
15847 delete arg3;
15848 }
15849 return resultobj;
15850 fail:
15851 {
15852 if (temp1)
15853 delete arg1;
15854 }
15855 {
15856 if (temp2)
15857 delete arg2;
15858 }
15859 {
15860 if (temp3)
15861 delete arg3;
15862 }
15863 return NULL;
15864 }
15865
15866
15867 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
15868 PyObject *obj;
15869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15870 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
15871 Py_INCREF(obj);
15872 return Py_BuildValue((char *)"");
15873 }
15874 static int _wrap_TheMimeTypesManager_set(PyObject *) {
15875 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
15876 return 1;
15877 }
15878
15879
15880 static PyObject *_wrap_TheMimeTypesManager_get(void) {
15881 PyObject *pyobj = NULL;
15882
15883 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
15884 return pyobj;
15885 }
15886
15887
15888 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
15889 PyObject *resultobj = NULL;
15890 wxString *arg1 = 0 ;
15891 wxString *arg2 = 0 ;
15892 bool result;
15893 bool temp1 = false ;
15894 bool temp2 = false ;
15895 PyObject * obj0 = 0 ;
15896 PyObject * obj1 = 0 ;
15897 char *kwnames[] = {
15898 (char *) "mimeType",(char *) "wildcard", NULL
15899 };
15900
15901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
15902 {
15903 arg1 = wxString_in_helper(obj0);
15904 if (arg1 == NULL) SWIG_fail;
15905 temp1 = true;
15906 }
15907 {
15908 arg2 = wxString_in_helper(obj1);
15909 if (arg2 == NULL) SWIG_fail;
15910 temp2 = true;
15911 }
15912 {
15913 PyThreadState* __tstate = wxPyBeginAllowThreads();
15914 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
15915
15916 wxPyEndAllowThreads(__tstate);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 {
15920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15921 }
15922 {
15923 if (temp1)
15924 delete arg1;
15925 }
15926 {
15927 if (temp2)
15928 delete arg2;
15929 }
15930 return resultobj;
15931 fail:
15932 {
15933 if (temp1)
15934 delete arg1;
15935 }
15936 {
15937 if (temp2)
15938 delete arg2;
15939 }
15940 return NULL;
15941 }
15942
15943
15944 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
15945 PyObject *resultobj = NULL;
15946 wxMimeTypesManager *result;
15947 char *kwnames[] = {
15948 NULL
15949 };
15950
15951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
15952 {
15953 PyThreadState* __tstate = wxPyBeginAllowThreads();
15954 result = (wxMimeTypesManager *)new wxMimeTypesManager();
15955
15956 wxPyEndAllowThreads(__tstate);
15957 if (PyErr_Occurred()) SWIG_fail;
15958 }
15959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
15960 return resultobj;
15961 fail:
15962 return NULL;
15963 }
15964
15965
15966 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
15967 PyObject *resultobj = NULL;
15968 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
15969 int arg2 = (int) wxMAILCAP_ALL ;
15970 wxString const &arg3_defvalue = wxPyEmptyString ;
15971 wxString *arg3 = (wxString *) &arg3_defvalue ;
15972 bool temp3 = false ;
15973 PyObject * obj0 = 0 ;
15974 PyObject * obj1 = 0 ;
15975 PyObject * obj2 = 0 ;
15976 char *kwnames[] = {
15977 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
15978 };
15979
15980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15981 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
15982 if (SWIG_arg_fail(1)) SWIG_fail;
15983 if (obj1) {
15984 {
15985 arg2 = static_cast<int >(SWIG_As_int(obj1));
15986 if (SWIG_arg_fail(2)) SWIG_fail;
15987 }
15988 }
15989 if (obj2) {
15990 {
15991 arg3 = wxString_in_helper(obj2);
15992 if (arg3 == NULL) SWIG_fail;
15993 temp3 = true;
15994 }
15995 }
15996 {
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 (arg1)->Initialize(arg2,(wxString const &)*arg3);
15999
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 Py_INCREF(Py_None); resultobj = Py_None;
16004 {
16005 if (temp3)
16006 delete arg3;
16007 }
16008 return resultobj;
16009 fail:
16010 {
16011 if (temp3)
16012 delete arg3;
16013 }
16014 return NULL;
16015 }
16016
16017
16018 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
16019 PyObject *resultobj = NULL;
16020 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16021 PyObject * obj0 = 0 ;
16022 char *kwnames[] = {
16023 (char *) "self", NULL
16024 };
16025
16026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
16027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16028 if (SWIG_arg_fail(1)) SWIG_fail;
16029 {
16030 PyThreadState* __tstate = wxPyBeginAllowThreads();
16031 (arg1)->ClearData();
16032
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 Py_INCREF(Py_None); resultobj = Py_None;
16037 return resultobj;
16038 fail:
16039 return NULL;
16040 }
16041
16042
16043 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj = NULL;
16045 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16046 wxString *arg2 = 0 ;
16047 wxFileType *result;
16048 bool temp2 = false ;
16049 PyObject * obj0 = 0 ;
16050 PyObject * obj1 = 0 ;
16051 char *kwnames[] = {
16052 (char *) "self",(char *) "ext", NULL
16053 };
16054
16055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
16056 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16057 if (SWIG_arg_fail(1)) SWIG_fail;
16058 {
16059 arg2 = wxString_in_helper(obj1);
16060 if (arg2 == NULL) SWIG_fail;
16061 temp2 = true;
16062 }
16063 {
16064 PyThreadState* __tstate = wxPyBeginAllowThreads();
16065 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
16066
16067 wxPyEndAllowThreads(__tstate);
16068 if (PyErr_Occurred()) SWIG_fail;
16069 }
16070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16071 {
16072 if (temp2)
16073 delete arg2;
16074 }
16075 return resultobj;
16076 fail:
16077 {
16078 if (temp2)
16079 delete arg2;
16080 }
16081 return NULL;
16082 }
16083
16084
16085 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
16086 PyObject *resultobj = NULL;
16087 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16088 wxString *arg2 = 0 ;
16089 wxFileType *result;
16090 bool temp2 = false ;
16091 PyObject * obj0 = 0 ;
16092 PyObject * obj1 = 0 ;
16093 char *kwnames[] = {
16094 (char *) "self",(char *) "mimeType", NULL
16095 };
16096
16097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
16098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16099 if (SWIG_arg_fail(1)) SWIG_fail;
16100 {
16101 arg2 = wxString_in_helper(obj1);
16102 if (arg2 == NULL) SWIG_fail;
16103 temp2 = true;
16104 }
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
16108
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16113 {
16114 if (temp2)
16115 delete arg2;
16116 }
16117 return resultobj;
16118 fail:
16119 {
16120 if (temp2)
16121 delete arg2;
16122 }
16123 return NULL;
16124 }
16125
16126
16127 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
16128 PyObject *resultobj = NULL;
16129 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16130 wxString *arg2 = 0 ;
16131 bool arg3 = (bool) false ;
16132 bool result;
16133 bool temp2 = false ;
16134 PyObject * obj0 = 0 ;
16135 PyObject * obj1 = 0 ;
16136 PyObject * obj2 = 0 ;
16137 char *kwnames[] = {
16138 (char *) "self",(char *) "filename",(char *) "fallback", NULL
16139 };
16140
16141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
16142 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16143 if (SWIG_arg_fail(1)) SWIG_fail;
16144 {
16145 arg2 = wxString_in_helper(obj1);
16146 if (arg2 == NULL) SWIG_fail;
16147 temp2 = true;
16148 }
16149 if (obj2) {
16150 {
16151 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
16152 if (SWIG_arg_fail(3)) SWIG_fail;
16153 }
16154 }
16155 {
16156 PyThreadState* __tstate = wxPyBeginAllowThreads();
16157 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
16158
16159 wxPyEndAllowThreads(__tstate);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 }
16162 {
16163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16164 }
16165 {
16166 if (temp2)
16167 delete arg2;
16168 }
16169 return resultobj;
16170 fail:
16171 {
16172 if (temp2)
16173 delete arg2;
16174 }
16175 return NULL;
16176 }
16177
16178
16179 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
16180 PyObject *resultobj = NULL;
16181 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16182 wxString *arg2 = 0 ;
16183 bool result;
16184 bool temp2 = false ;
16185 PyObject * obj0 = 0 ;
16186 PyObject * obj1 = 0 ;
16187 char *kwnames[] = {
16188 (char *) "self",(char *) "filename", NULL
16189 };
16190
16191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
16192 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16193 if (SWIG_arg_fail(1)) SWIG_fail;
16194 {
16195 arg2 = wxString_in_helper(obj1);
16196 if (arg2 == NULL) SWIG_fail;
16197 temp2 = true;
16198 }
16199 {
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
16202
16203 wxPyEndAllowThreads(__tstate);
16204 if (PyErr_Occurred()) SWIG_fail;
16205 }
16206 {
16207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16208 }
16209 {
16210 if (temp2)
16211 delete arg2;
16212 }
16213 return resultobj;
16214 fail:
16215 {
16216 if (temp2)
16217 delete arg2;
16218 }
16219 return NULL;
16220 }
16221
16222
16223 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
16224 PyObject *resultobj = NULL;
16225 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16226 PyObject *result;
16227 PyObject * obj0 = 0 ;
16228 char *kwnames[] = {
16229 (char *) "self", NULL
16230 };
16231
16232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
16233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16234 if (SWIG_arg_fail(1)) SWIG_fail;
16235 {
16236 PyThreadState* __tstate = wxPyBeginAllowThreads();
16237 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
16238
16239 wxPyEndAllowThreads(__tstate);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 }
16242 resultobj = result;
16243 return resultobj;
16244 fail:
16245 return NULL;
16246 }
16247
16248
16249 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
16250 PyObject *resultobj = NULL;
16251 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16252 wxFileTypeInfo *arg2 = 0 ;
16253 PyObject * obj0 = 0 ;
16254 PyObject * obj1 = 0 ;
16255 char *kwnames[] = {
16256 (char *) "self",(char *) "ft", NULL
16257 };
16258
16259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
16260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16261 if (SWIG_arg_fail(1)) SWIG_fail;
16262 {
16263 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
16264 if (SWIG_arg_fail(2)) SWIG_fail;
16265 if (arg2 == NULL) {
16266 SWIG_null_ref("wxFileTypeInfo");
16267 }
16268 if (SWIG_arg_fail(2)) SWIG_fail;
16269 }
16270 {
16271 PyThreadState* __tstate = wxPyBeginAllowThreads();
16272 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
16273
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 Py_INCREF(Py_None); resultobj = Py_None;
16278 return resultobj;
16279 fail:
16280 return NULL;
16281 }
16282
16283
16284 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
16285 PyObject *resultobj = NULL;
16286 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16287 wxFileTypeInfo *arg2 = 0 ;
16288 wxFileType *result;
16289 PyObject * obj0 = 0 ;
16290 PyObject * obj1 = 0 ;
16291 char *kwnames[] = {
16292 (char *) "self",(char *) "ftInfo", NULL
16293 };
16294
16295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
16296 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16297 if (SWIG_arg_fail(1)) SWIG_fail;
16298 {
16299 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0);
16300 if (SWIG_arg_fail(2)) SWIG_fail;
16301 if (arg2 == NULL) {
16302 SWIG_null_ref("wxFileTypeInfo");
16303 }
16304 if (SWIG_arg_fail(2)) SWIG_fail;
16305 }
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
16309
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
16314 return resultobj;
16315 fail:
16316 return NULL;
16317 }
16318
16319
16320 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
16321 PyObject *resultobj = NULL;
16322 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16323 wxFileType *arg2 = (wxFileType *) 0 ;
16324 bool result;
16325 PyObject * obj0 = 0 ;
16326 PyObject * obj1 = 0 ;
16327 char *kwnames[] = {
16328 (char *) "self",(char *) "ft", NULL
16329 };
16330
16331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
16332 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16333 if (SWIG_arg_fail(1)) SWIG_fail;
16334 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0);
16335 if (SWIG_arg_fail(2)) SWIG_fail;
16336 {
16337 PyThreadState* __tstate = wxPyBeginAllowThreads();
16338 result = (bool)(arg1)->Unassociate(arg2);
16339
16340 wxPyEndAllowThreads(__tstate);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 }
16343 {
16344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16345 }
16346 return resultobj;
16347 fail:
16348 return NULL;
16349 }
16350
16351
16352 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
16353 PyObject *resultobj = NULL;
16354 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
16355 PyObject * obj0 = 0 ;
16356 char *kwnames[] = {
16357 (char *) "self", NULL
16358 };
16359
16360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
16361 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0);
16362 if (SWIG_arg_fail(1)) SWIG_fail;
16363 {
16364 PyThreadState* __tstate = wxPyBeginAllowThreads();
16365 delete arg1;
16366
16367 wxPyEndAllowThreads(__tstate);
16368 if (PyErr_Occurred()) SWIG_fail;
16369 }
16370 Py_INCREF(Py_None); resultobj = Py_None;
16371 return resultobj;
16372 fail:
16373 return NULL;
16374 }
16375
16376
16377 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
16378 PyObject *obj;
16379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16380 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
16381 Py_INCREF(obj);
16382 return Py_BuildValue((char *)"");
16383 }
16384 static int _wrap_ART_TOOLBAR_set(PyObject *) {
16385 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
16386 return 1;
16387 }
16388
16389
16390 static PyObject *_wrap_ART_TOOLBAR_get(void) {
16391 PyObject *pyobj = NULL;
16392
16393 {
16394 #if wxUSE_UNICODE
16395 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
16396 #else
16397 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
16398 #endif
16399 }
16400 return pyobj;
16401 }
16402
16403
16404 static int _wrap_ART_MENU_set(PyObject *) {
16405 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
16406 return 1;
16407 }
16408
16409
16410 static PyObject *_wrap_ART_MENU_get(void) {
16411 PyObject *pyobj = NULL;
16412
16413 {
16414 #if wxUSE_UNICODE
16415 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
16416 #else
16417 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
16418 #endif
16419 }
16420 return pyobj;
16421 }
16422
16423
16424 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
16425 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
16426 return 1;
16427 }
16428
16429
16430 static PyObject *_wrap_ART_FRAME_ICON_get(void) {
16431 PyObject *pyobj = NULL;
16432
16433 {
16434 #if wxUSE_UNICODE
16435 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
16436 #else
16437 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
16438 #endif
16439 }
16440 return pyobj;
16441 }
16442
16443
16444 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
16445 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
16446 return 1;
16447 }
16448
16449
16450 static PyObject *_wrap_ART_CMN_DIALOG_get(void) {
16451 PyObject *pyobj = NULL;
16452
16453 {
16454 #if wxUSE_UNICODE
16455 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
16456 #else
16457 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
16458 #endif
16459 }
16460 return pyobj;
16461 }
16462
16463
16464 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
16465 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
16466 return 1;
16467 }
16468
16469
16470 static PyObject *_wrap_ART_HELP_BROWSER_get(void) {
16471 PyObject *pyobj = NULL;
16472
16473 {
16474 #if wxUSE_UNICODE
16475 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
16476 #else
16477 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
16478 #endif
16479 }
16480 return pyobj;
16481 }
16482
16483
16484 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
16485 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
16486 return 1;
16487 }
16488
16489
16490 static PyObject *_wrap_ART_MESSAGE_BOX_get(void) {
16491 PyObject *pyobj = NULL;
16492
16493 {
16494 #if wxUSE_UNICODE
16495 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
16496 #else
16497 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
16498 #endif
16499 }
16500 return pyobj;
16501 }
16502
16503
16504 static int _wrap_ART_BUTTON_set(PyObject *) {
16505 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
16506 return 1;
16507 }
16508
16509
16510 static PyObject *_wrap_ART_BUTTON_get(void) {
16511 PyObject *pyobj = NULL;
16512
16513 {
16514 #if wxUSE_UNICODE
16515 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
16516 #else
16517 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
16518 #endif
16519 }
16520 return pyobj;
16521 }
16522
16523
16524 static int _wrap_ART_OTHER_set(PyObject *) {
16525 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
16526 return 1;
16527 }
16528
16529
16530 static PyObject *_wrap_ART_OTHER_get(void) {
16531 PyObject *pyobj = NULL;
16532
16533 {
16534 #if wxUSE_UNICODE
16535 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
16536 #else
16537 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
16538 #endif
16539 }
16540 return pyobj;
16541 }
16542
16543
16544 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
16545 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
16546 return 1;
16547 }
16548
16549
16550 static PyObject *_wrap_ART_ADD_BOOKMARK_get(void) {
16551 PyObject *pyobj = NULL;
16552
16553 {
16554 #if wxUSE_UNICODE
16555 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
16556 #else
16557 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
16558 #endif
16559 }
16560 return pyobj;
16561 }
16562
16563
16564 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
16565 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
16566 return 1;
16567 }
16568
16569
16570 static PyObject *_wrap_ART_DEL_BOOKMARK_get(void) {
16571 PyObject *pyobj = NULL;
16572
16573 {
16574 #if wxUSE_UNICODE
16575 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
16576 #else
16577 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
16578 #endif
16579 }
16580 return pyobj;
16581 }
16582
16583
16584 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
16585 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
16586 return 1;
16587 }
16588
16589
16590 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get(void) {
16591 PyObject *pyobj = NULL;
16592
16593 {
16594 #if wxUSE_UNICODE
16595 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
16596 #else
16597 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
16598 #endif
16599 }
16600 return pyobj;
16601 }
16602
16603
16604 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
16605 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
16606 return 1;
16607 }
16608
16609
16610 static PyObject *_wrap_ART_HELP_SETTINGS_get(void) {
16611 PyObject *pyobj = NULL;
16612
16613 {
16614 #if wxUSE_UNICODE
16615 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
16616 #else
16617 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
16618 #endif
16619 }
16620 return pyobj;
16621 }
16622
16623
16624 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
16625 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
16626 return 1;
16627 }
16628
16629
16630 static PyObject *_wrap_ART_HELP_BOOK_get(void) {
16631 PyObject *pyobj = NULL;
16632
16633 {
16634 #if wxUSE_UNICODE
16635 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
16636 #else
16637 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
16638 #endif
16639 }
16640 return pyobj;
16641 }
16642
16643
16644 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
16645 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
16646 return 1;
16647 }
16648
16649
16650 static PyObject *_wrap_ART_HELP_FOLDER_get(void) {
16651 PyObject *pyobj = NULL;
16652
16653 {
16654 #if wxUSE_UNICODE
16655 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
16656 #else
16657 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
16658 #endif
16659 }
16660 return pyobj;
16661 }
16662
16663
16664 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
16665 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
16666 return 1;
16667 }
16668
16669
16670 static PyObject *_wrap_ART_HELP_PAGE_get(void) {
16671 PyObject *pyobj = NULL;
16672
16673 {
16674 #if wxUSE_UNICODE
16675 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
16676 #else
16677 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
16678 #endif
16679 }
16680 return pyobj;
16681 }
16682
16683
16684 static int _wrap_ART_GO_BACK_set(PyObject *) {
16685 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
16686 return 1;
16687 }
16688
16689
16690 static PyObject *_wrap_ART_GO_BACK_get(void) {
16691 PyObject *pyobj = NULL;
16692
16693 {
16694 #if wxUSE_UNICODE
16695 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
16696 #else
16697 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
16698 #endif
16699 }
16700 return pyobj;
16701 }
16702
16703
16704 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
16705 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
16706 return 1;
16707 }
16708
16709
16710 static PyObject *_wrap_ART_GO_FORWARD_get(void) {
16711 PyObject *pyobj = NULL;
16712
16713 {
16714 #if wxUSE_UNICODE
16715 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
16716 #else
16717 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
16718 #endif
16719 }
16720 return pyobj;
16721 }
16722
16723
16724 static int _wrap_ART_GO_UP_set(PyObject *) {
16725 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
16726 return 1;
16727 }
16728
16729
16730 static PyObject *_wrap_ART_GO_UP_get(void) {
16731 PyObject *pyobj = NULL;
16732
16733 {
16734 #if wxUSE_UNICODE
16735 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
16736 #else
16737 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
16738 #endif
16739 }
16740 return pyobj;
16741 }
16742
16743
16744 static int _wrap_ART_GO_DOWN_set(PyObject *) {
16745 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
16746 return 1;
16747 }
16748
16749
16750 static PyObject *_wrap_ART_GO_DOWN_get(void) {
16751 PyObject *pyobj = NULL;
16752
16753 {
16754 #if wxUSE_UNICODE
16755 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
16756 #else
16757 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
16758 #endif
16759 }
16760 return pyobj;
16761 }
16762
16763
16764 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
16765 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
16766 return 1;
16767 }
16768
16769
16770 static PyObject *_wrap_ART_GO_TO_PARENT_get(void) {
16771 PyObject *pyobj = NULL;
16772
16773 {
16774 #if wxUSE_UNICODE
16775 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
16776 #else
16777 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
16778 #endif
16779 }
16780 return pyobj;
16781 }
16782
16783
16784 static int _wrap_ART_GO_HOME_set(PyObject *) {
16785 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
16786 return 1;
16787 }
16788
16789
16790 static PyObject *_wrap_ART_GO_HOME_get(void) {
16791 PyObject *pyobj = NULL;
16792
16793 {
16794 #if wxUSE_UNICODE
16795 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
16796 #else
16797 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
16798 #endif
16799 }
16800 return pyobj;
16801 }
16802
16803
16804 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
16805 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
16806 return 1;
16807 }
16808
16809
16810 static PyObject *_wrap_ART_FILE_OPEN_get(void) {
16811 PyObject *pyobj = NULL;
16812
16813 {
16814 #if wxUSE_UNICODE
16815 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
16816 #else
16817 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
16818 #endif
16819 }
16820 return pyobj;
16821 }
16822
16823
16824 static int _wrap_ART_FILE_SAVE_set(PyObject *) {
16825 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE is read-only.");
16826 return 1;
16827 }
16828
16829
16830 static PyObject *_wrap_ART_FILE_SAVE_get(void) {
16831 PyObject *pyobj = NULL;
16832
16833 {
16834 #if wxUSE_UNICODE
16835 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
16836 #else
16837 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
16838 #endif
16839 }
16840 return pyobj;
16841 }
16842
16843
16844 static int _wrap_ART_FILE_SAVE_AS_set(PyObject *) {
16845 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE_AS is read-only.");
16846 return 1;
16847 }
16848
16849
16850 static PyObject *_wrap_ART_FILE_SAVE_AS_get(void) {
16851 PyObject *pyobj = NULL;
16852
16853 {
16854 #if wxUSE_UNICODE
16855 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
16856 #else
16857 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
16858 #endif
16859 }
16860 return pyobj;
16861 }
16862
16863
16864 static int _wrap_ART_PRINT_set(PyObject *) {
16865 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
16866 return 1;
16867 }
16868
16869
16870 static PyObject *_wrap_ART_PRINT_get(void) {
16871 PyObject *pyobj = NULL;
16872
16873 {
16874 #if wxUSE_UNICODE
16875 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
16876 #else
16877 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
16878 #endif
16879 }
16880 return pyobj;
16881 }
16882
16883
16884 static int _wrap_ART_HELP_set(PyObject *) {
16885 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
16886 return 1;
16887 }
16888
16889
16890 static PyObject *_wrap_ART_HELP_get(void) {
16891 PyObject *pyobj = NULL;
16892
16893 {
16894 #if wxUSE_UNICODE
16895 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
16896 #else
16897 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
16898 #endif
16899 }
16900 return pyobj;
16901 }
16902
16903
16904 static int _wrap_ART_TIP_set(PyObject *) {
16905 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
16906 return 1;
16907 }
16908
16909
16910 static PyObject *_wrap_ART_TIP_get(void) {
16911 PyObject *pyobj = NULL;
16912
16913 {
16914 #if wxUSE_UNICODE
16915 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
16916 #else
16917 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
16918 #endif
16919 }
16920 return pyobj;
16921 }
16922
16923
16924 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
16925 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
16926 return 1;
16927 }
16928
16929
16930 static PyObject *_wrap_ART_REPORT_VIEW_get(void) {
16931 PyObject *pyobj = NULL;
16932
16933 {
16934 #if wxUSE_UNICODE
16935 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
16936 #else
16937 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
16938 #endif
16939 }
16940 return pyobj;
16941 }
16942
16943
16944 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
16945 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
16946 return 1;
16947 }
16948
16949
16950 static PyObject *_wrap_ART_LIST_VIEW_get(void) {
16951 PyObject *pyobj = NULL;
16952
16953 {
16954 #if wxUSE_UNICODE
16955 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
16956 #else
16957 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
16958 #endif
16959 }
16960 return pyobj;
16961 }
16962
16963
16964 static int _wrap_ART_NEW_DIR_set(PyObject *) {
16965 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
16966 return 1;
16967 }
16968
16969
16970 static PyObject *_wrap_ART_NEW_DIR_get(void) {
16971 PyObject *pyobj = NULL;
16972
16973 {
16974 #if wxUSE_UNICODE
16975 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
16976 #else
16977 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
16978 #endif
16979 }
16980 return pyobj;
16981 }
16982
16983
16984 static int _wrap_ART_HARDDISK_set(PyObject *) {
16985 PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only.");
16986 return 1;
16987 }
16988
16989
16990 static PyObject *_wrap_ART_HARDDISK_get(void) {
16991 PyObject *pyobj = NULL;
16992
16993 {
16994 #if wxUSE_UNICODE
16995 pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
16996 #else
16997 pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
16998 #endif
16999 }
17000 return pyobj;
17001 }
17002
17003
17004 static int _wrap_ART_FLOPPY_set(PyObject *) {
17005 PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only.");
17006 return 1;
17007 }
17008
17009
17010 static PyObject *_wrap_ART_FLOPPY_get(void) {
17011 PyObject *pyobj = NULL;
17012
17013 {
17014 #if wxUSE_UNICODE
17015 pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
17016 #else
17017 pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
17018 #endif
17019 }
17020 return pyobj;
17021 }
17022
17023
17024 static int _wrap_ART_CDROM_set(PyObject *) {
17025 PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only.");
17026 return 1;
17027 }
17028
17029
17030 static PyObject *_wrap_ART_CDROM_get(void) {
17031 PyObject *pyobj = NULL;
17032
17033 {
17034 #if wxUSE_UNICODE
17035 pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
17036 #else
17037 pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
17038 #endif
17039 }
17040 return pyobj;
17041 }
17042
17043
17044 static int _wrap_ART_REMOVABLE_set(PyObject *) {
17045 PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only.");
17046 return 1;
17047 }
17048
17049
17050 static PyObject *_wrap_ART_REMOVABLE_get(void) {
17051 PyObject *pyobj = NULL;
17052
17053 {
17054 #if wxUSE_UNICODE
17055 pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
17056 #else
17057 pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
17058 #endif
17059 }
17060 return pyobj;
17061 }
17062
17063
17064 static int _wrap_ART_FOLDER_set(PyObject *) {
17065 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
17066 return 1;
17067 }
17068
17069
17070 static PyObject *_wrap_ART_FOLDER_get(void) {
17071 PyObject *pyobj = NULL;
17072
17073 {
17074 #if wxUSE_UNICODE
17075 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
17076 #else
17077 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
17078 #endif
17079 }
17080 return pyobj;
17081 }
17082
17083
17084 static int _wrap_ART_FOLDER_OPEN_set(PyObject *) {
17085 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only.");
17086 return 1;
17087 }
17088
17089
17090 static PyObject *_wrap_ART_FOLDER_OPEN_get(void) {
17091 PyObject *pyobj = NULL;
17092
17093 {
17094 #if wxUSE_UNICODE
17095 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
17096 #else
17097 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
17098 #endif
17099 }
17100 return pyobj;
17101 }
17102
17103
17104 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
17105 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
17106 return 1;
17107 }
17108
17109
17110 static PyObject *_wrap_ART_GO_DIR_UP_get(void) {
17111 PyObject *pyobj = NULL;
17112
17113 {
17114 #if wxUSE_UNICODE
17115 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
17116 #else
17117 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
17118 #endif
17119 }
17120 return pyobj;
17121 }
17122
17123
17124 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
17125 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
17126 return 1;
17127 }
17128
17129
17130 static PyObject *_wrap_ART_EXECUTABLE_FILE_get(void) {
17131 PyObject *pyobj = NULL;
17132
17133 {
17134 #if wxUSE_UNICODE
17135 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
17136 #else
17137 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
17138 #endif
17139 }
17140 return pyobj;
17141 }
17142
17143
17144 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
17145 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
17146 return 1;
17147 }
17148
17149
17150 static PyObject *_wrap_ART_NORMAL_FILE_get(void) {
17151 PyObject *pyobj = NULL;
17152
17153 {
17154 #if wxUSE_UNICODE
17155 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
17156 #else
17157 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
17158 #endif
17159 }
17160 return pyobj;
17161 }
17162
17163
17164 static int _wrap_ART_TICK_MARK_set(PyObject *) {
17165 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
17166 return 1;
17167 }
17168
17169
17170 static PyObject *_wrap_ART_TICK_MARK_get(void) {
17171 PyObject *pyobj = NULL;
17172
17173 {
17174 #if wxUSE_UNICODE
17175 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
17176 #else
17177 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
17178 #endif
17179 }
17180 return pyobj;
17181 }
17182
17183
17184 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
17185 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
17186 return 1;
17187 }
17188
17189
17190 static PyObject *_wrap_ART_CROSS_MARK_get(void) {
17191 PyObject *pyobj = NULL;
17192
17193 {
17194 #if wxUSE_UNICODE
17195 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
17196 #else
17197 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
17198 #endif
17199 }
17200 return pyobj;
17201 }
17202
17203
17204 static int _wrap_ART_ERROR_set(PyObject *) {
17205 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
17206 return 1;
17207 }
17208
17209
17210 static PyObject *_wrap_ART_ERROR_get(void) {
17211 PyObject *pyobj = NULL;
17212
17213 {
17214 #if wxUSE_UNICODE
17215 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
17216 #else
17217 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
17218 #endif
17219 }
17220 return pyobj;
17221 }
17222
17223
17224 static int _wrap_ART_QUESTION_set(PyObject *) {
17225 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
17226 return 1;
17227 }
17228
17229
17230 static PyObject *_wrap_ART_QUESTION_get(void) {
17231 PyObject *pyobj = NULL;
17232
17233 {
17234 #if wxUSE_UNICODE
17235 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
17236 #else
17237 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
17238 #endif
17239 }
17240 return pyobj;
17241 }
17242
17243
17244 static int _wrap_ART_WARNING_set(PyObject *) {
17245 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
17246 return 1;
17247 }
17248
17249
17250 static PyObject *_wrap_ART_WARNING_get(void) {
17251 PyObject *pyobj = NULL;
17252
17253 {
17254 #if wxUSE_UNICODE
17255 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
17256 #else
17257 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
17258 #endif
17259 }
17260 return pyobj;
17261 }
17262
17263
17264 static int _wrap_ART_INFORMATION_set(PyObject *) {
17265 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
17266 return 1;
17267 }
17268
17269
17270 static PyObject *_wrap_ART_INFORMATION_get(void) {
17271 PyObject *pyobj = NULL;
17272
17273 {
17274 #if wxUSE_UNICODE
17275 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
17276 #else
17277 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
17278 #endif
17279 }
17280 return pyobj;
17281 }
17282
17283
17284 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
17285 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
17286 return 1;
17287 }
17288
17289
17290 static PyObject *_wrap_ART_MISSING_IMAGE_get(void) {
17291 PyObject *pyobj = NULL;
17292
17293 {
17294 #if wxUSE_UNICODE
17295 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
17296 #else
17297 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
17298 #endif
17299 }
17300 return pyobj;
17301 }
17302
17303
17304 static int _wrap_ART_COPY_set(PyObject *) {
17305 PyErr_SetString(PyExc_TypeError,"Variable ART_COPY is read-only.");
17306 return 1;
17307 }
17308
17309
17310 static PyObject *_wrap_ART_COPY_get(void) {
17311 PyObject *pyobj = NULL;
17312
17313 {
17314 #if wxUSE_UNICODE
17315 pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
17316 #else
17317 pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
17318 #endif
17319 }
17320 return pyobj;
17321 }
17322
17323
17324 static int _wrap_ART_CUT_set(PyObject *) {
17325 PyErr_SetString(PyExc_TypeError,"Variable ART_CUT is read-only.");
17326 return 1;
17327 }
17328
17329
17330 static PyObject *_wrap_ART_CUT_get(void) {
17331 PyObject *pyobj = NULL;
17332
17333 {
17334 #if wxUSE_UNICODE
17335 pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
17336 #else
17337 pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
17338 #endif
17339 }
17340 return pyobj;
17341 }
17342
17343
17344 static int _wrap_ART_PASTE_set(PyObject *) {
17345 PyErr_SetString(PyExc_TypeError,"Variable ART_PASTE is read-only.");
17346 return 1;
17347 }
17348
17349
17350 static PyObject *_wrap_ART_PASTE_get(void) {
17351 PyObject *pyobj = NULL;
17352
17353 {
17354 #if wxUSE_UNICODE
17355 pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
17356 #else
17357 pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
17358 #endif
17359 }
17360 return pyobj;
17361 }
17362
17363
17364 static int _wrap_ART_DELETE_set(PyObject *) {
17365 PyErr_SetString(PyExc_TypeError,"Variable ART_DELETE is read-only.");
17366 return 1;
17367 }
17368
17369
17370 static PyObject *_wrap_ART_DELETE_get(void) {
17371 PyObject *pyobj = NULL;
17372
17373 {
17374 #if wxUSE_UNICODE
17375 pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
17376 #else
17377 pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
17378 #endif
17379 }
17380 return pyobj;
17381 }
17382
17383
17384 static int _wrap_ART_NEW_set(PyObject *) {
17385 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW is read-only.");
17386 return 1;
17387 }
17388
17389
17390 static PyObject *_wrap_ART_NEW_get(void) {
17391 PyObject *pyobj = NULL;
17392
17393 {
17394 #if wxUSE_UNICODE
17395 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
17396 #else
17397 pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
17398 #endif
17399 }
17400 return pyobj;
17401 }
17402
17403
17404 static int _wrap_ART_UNDO_set(PyObject *) {
17405 PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only.");
17406 return 1;
17407 }
17408
17409
17410 static PyObject *_wrap_ART_UNDO_get(void) {
17411 PyObject *pyobj = NULL;
17412
17413 {
17414 #if wxUSE_UNICODE
17415 pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
17416 #else
17417 pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
17418 #endif
17419 }
17420 return pyobj;
17421 }
17422
17423
17424 static int _wrap_ART_REDO_set(PyObject *) {
17425 PyErr_SetString(PyExc_TypeError,"Variable ART_REDO is read-only.");
17426 return 1;
17427 }
17428
17429
17430 static PyObject *_wrap_ART_REDO_get(void) {
17431 PyObject *pyobj = NULL;
17432
17433 {
17434 #if wxUSE_UNICODE
17435 pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
17436 #else
17437 pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
17438 #endif
17439 }
17440 return pyobj;
17441 }
17442
17443
17444 static int _wrap_ART_QUIT_set(PyObject *) {
17445 PyErr_SetString(PyExc_TypeError,"Variable ART_QUIT is read-only.");
17446 return 1;
17447 }
17448
17449
17450 static PyObject *_wrap_ART_QUIT_get(void) {
17451 PyObject *pyobj = NULL;
17452
17453 {
17454 #if wxUSE_UNICODE
17455 pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
17456 #else
17457 pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
17458 #endif
17459 }
17460 return pyobj;
17461 }
17462
17463
17464 static int _wrap_ART_FIND_set(PyObject *) {
17465 PyErr_SetString(PyExc_TypeError,"Variable ART_FIND is read-only.");
17466 return 1;
17467 }
17468
17469
17470 static PyObject *_wrap_ART_FIND_get(void) {
17471 PyObject *pyobj = NULL;
17472
17473 {
17474 #if wxUSE_UNICODE
17475 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
17476 #else
17477 pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
17478 #endif
17479 }
17480 return pyobj;
17481 }
17482
17483
17484 static int _wrap_ART_FIND_AND_REPLACE_set(PyObject *) {
17485 PyErr_SetString(PyExc_TypeError,"Variable ART_FIND_AND_REPLACE is read-only.");
17486 return 1;
17487 }
17488
17489
17490 static PyObject *_wrap_ART_FIND_AND_REPLACE_get(void) {
17491 PyObject *pyobj = NULL;
17492
17493 {
17494 #if wxUSE_UNICODE
17495 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
17496 #else
17497 pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
17498 #endif
17499 }
17500 return pyobj;
17501 }
17502
17503
17504 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17505 PyObject *resultobj = NULL;
17506 wxPyArtProvider *result;
17507 char *kwnames[] = {
17508 NULL
17509 };
17510
17511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
17512 {
17513 if (!wxPyCheckForApp()) SWIG_fail;
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
17515 result = (wxPyArtProvider *)new wxPyArtProvider();
17516
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
17521 return resultobj;
17522 fail:
17523 return NULL;
17524 }
17525
17526
17527 static PyObject *_wrap_delete_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj = NULL;
17529 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17530 PyObject * obj0 = 0 ;
17531 char *kwnames[] = {
17532 (char *) "self", NULL
17533 };
17534
17535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArtProvider",kwnames,&obj0)) goto fail;
17536 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17537 if (SWIG_arg_fail(1)) SWIG_fail;
17538 {
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 delete arg1;
17541
17542 wxPyEndAllowThreads(__tstate);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 }
17545 Py_INCREF(Py_None); resultobj = Py_None;
17546 return resultobj;
17547 fail:
17548 return NULL;
17549 }
17550
17551
17552 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
17553 PyObject *resultobj = NULL;
17554 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17555 PyObject *arg2 = (PyObject *) 0 ;
17556 PyObject *arg3 = (PyObject *) 0 ;
17557 PyObject * obj0 = 0 ;
17558 PyObject * obj1 = 0 ;
17559 PyObject * obj2 = 0 ;
17560 char *kwnames[] = {
17561 (char *) "self",(char *) "self",(char *) "_class", NULL
17562 };
17563
17564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
17565 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17566 if (SWIG_arg_fail(1)) SWIG_fail;
17567 arg2 = obj1;
17568 arg3 = obj2;
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 (arg1)->_setCallbackInfo(arg2,arg3);
17572
17573 wxPyEndAllowThreads(__tstate);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 Py_INCREF(Py_None); resultobj = Py_None;
17577 return resultobj;
17578 fail:
17579 return NULL;
17580 }
17581
17582
17583 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17584 PyObject *resultobj = NULL;
17585 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17586 PyObject * obj0 = 0 ;
17587 char *kwnames[] = {
17588 (char *) "provider", NULL
17589 };
17590
17591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
17592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
17593 if (SWIG_arg_fail(1)) SWIG_fail;
17594 {
17595 PyThreadState* __tstate = wxPyBeginAllowThreads();
17596 wxPyArtProvider::PushProvider(arg1);
17597
17598 wxPyEndAllowThreads(__tstate);
17599 if (PyErr_Occurred()) SWIG_fail;
17600 }
17601 Py_INCREF(Py_None); resultobj = Py_None;
17602 return resultobj;
17603 fail:
17604 return NULL;
17605 }
17606
17607
17608 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17609 PyObject *resultobj = NULL;
17610 bool result;
17611 char *kwnames[] = {
17612 NULL
17613 };
17614
17615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 result = (bool)wxPyArtProvider::PopProvider();
17619
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 {
17624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17625 }
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj = NULL;
17634 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17635 bool result;
17636 PyObject * obj0 = 0 ;
17637 char *kwnames[] = {
17638 (char *) "provider", NULL
17639 };
17640
17641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
17642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17643 if (SWIG_arg_fail(1)) SWIG_fail;
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
17647
17648 wxPyEndAllowThreads(__tstate);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 }
17651 {
17652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17653 }
17654 return resultobj;
17655 fail:
17656 return NULL;
17657 }
17658
17659
17660 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17661 PyObject *resultobj = NULL;
17662 wxString *arg1 = 0 ;
17663 wxString const &arg2_defvalue = wxPyART_OTHER ;
17664 wxString *arg2 = (wxString *) &arg2_defvalue ;
17665 wxSize const &arg3_defvalue = wxDefaultSize ;
17666 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
17667 wxBitmap result;
17668 bool temp1 = false ;
17669 bool temp2 = false ;
17670 wxSize temp3 ;
17671 PyObject * obj0 = 0 ;
17672 PyObject * obj1 = 0 ;
17673 PyObject * obj2 = 0 ;
17674 char *kwnames[] = {
17675 (char *) "id",(char *) "client",(char *) "size", NULL
17676 };
17677
17678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
17679 {
17680 arg1 = wxString_in_helper(obj0);
17681 if (arg1 == NULL) SWIG_fail;
17682 temp1 = true;
17683 }
17684 if (obj1) {
17685 {
17686 arg2 = wxString_in_helper(obj1);
17687 if (arg2 == NULL) SWIG_fail;
17688 temp2 = true;
17689 }
17690 }
17691 if (obj2) {
17692 {
17693 arg3 = &temp3;
17694 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17695 }
17696 }
17697 {
17698 if (!wxPyCheckForApp()) SWIG_fail;
17699 PyThreadState* __tstate = wxPyBeginAllowThreads();
17700 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
17701
17702 wxPyEndAllowThreads(__tstate);
17703 if (PyErr_Occurred()) SWIG_fail;
17704 }
17705 {
17706 wxBitmap * resultptr;
17707 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
17708 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
17709 }
17710 {
17711 if (temp1)
17712 delete arg1;
17713 }
17714 {
17715 if (temp2)
17716 delete arg2;
17717 }
17718 return resultobj;
17719 fail:
17720 {
17721 if (temp1)
17722 delete arg1;
17723 }
17724 {
17725 if (temp2)
17726 delete arg2;
17727 }
17728 return NULL;
17729 }
17730
17731
17732 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
17733 PyObject *resultobj = NULL;
17734 wxString *arg1 = 0 ;
17735 wxString const &arg2_defvalue = wxPyART_OTHER ;
17736 wxString *arg2 = (wxString *) &arg2_defvalue ;
17737 wxSize const &arg3_defvalue = wxDefaultSize ;
17738 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
17739 wxIcon result;
17740 bool temp1 = false ;
17741 bool temp2 = false ;
17742 wxSize temp3 ;
17743 PyObject * obj0 = 0 ;
17744 PyObject * obj1 = 0 ;
17745 PyObject * obj2 = 0 ;
17746 char *kwnames[] = {
17747 (char *) "id",(char *) "client",(char *) "size", NULL
17748 };
17749
17750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
17751 {
17752 arg1 = wxString_in_helper(obj0);
17753 if (arg1 == NULL) SWIG_fail;
17754 temp1 = true;
17755 }
17756 if (obj1) {
17757 {
17758 arg2 = wxString_in_helper(obj1);
17759 if (arg2 == NULL) SWIG_fail;
17760 temp2 = true;
17761 }
17762 }
17763 if (obj2) {
17764 {
17765 arg3 = &temp3;
17766 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17767 }
17768 }
17769 {
17770 if (!wxPyCheckForApp()) SWIG_fail;
17771 PyThreadState* __tstate = wxPyBeginAllowThreads();
17772 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
17773
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 {
17778 wxIcon * resultptr;
17779 resultptr = new wxIcon(static_cast<wxIcon & >(result));
17780 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
17781 }
17782 {
17783 if (temp1)
17784 delete arg1;
17785 }
17786 {
17787 if (temp2)
17788 delete arg2;
17789 }
17790 return resultobj;
17791 fail:
17792 {
17793 if (temp1)
17794 delete arg1;
17795 }
17796 {
17797 if (temp2)
17798 delete arg2;
17799 }
17800 return NULL;
17801 }
17802
17803
17804 static PyObject *_wrap_ArtProvider_GetSizeHint(PyObject *, PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj = NULL;
17806 wxString *arg1 = 0 ;
17807 bool arg2 = (bool) false ;
17808 wxSize result;
17809 bool temp1 = false ;
17810 PyObject * obj0 = 0 ;
17811 PyObject * obj1 = 0 ;
17812 char *kwnames[] = {
17813 (char *) "client",(char *) "platform_dependent", NULL
17814 };
17815
17816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSizeHint",kwnames,&obj0,&obj1)) goto fail;
17817 {
17818 arg1 = wxString_in_helper(obj0);
17819 if (arg1 == NULL) SWIG_fail;
17820 temp1 = true;
17821 }
17822 if (obj1) {
17823 {
17824 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
17825 if (SWIG_arg_fail(2)) SWIG_fail;
17826 }
17827 }
17828 {
17829 PyThreadState* __tstate = wxPyBeginAllowThreads();
17830 result = wxPyArtProvider::GetSizeHint((wxString const &)*arg1,arg2);
17831
17832 wxPyEndAllowThreads(__tstate);
17833 if (PyErr_Occurred()) SWIG_fail;
17834 }
17835 {
17836 wxSize * resultptr;
17837 resultptr = new wxSize(static_cast<wxSize & >(result));
17838 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17839 }
17840 {
17841 if (temp1)
17842 delete arg1;
17843 }
17844 return resultobj;
17845 fail:
17846 {
17847 if (temp1)
17848 delete arg1;
17849 }
17850 return NULL;
17851 }
17852
17853
17854 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
17855 PyObject *resultobj = NULL;
17856 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
17857 PyObject * obj0 = 0 ;
17858 char *kwnames[] = {
17859 (char *) "self", NULL
17860 };
17861
17862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
17863 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
17864 if (SWIG_arg_fail(1)) SWIG_fail;
17865 {
17866 PyThreadState* __tstate = wxPyBeginAllowThreads();
17867 wxPyArtProvider_Destroy(arg1);
17868
17869 wxPyEndAllowThreads(__tstate);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 Py_INCREF(Py_None); resultobj = Py_None;
17873 return resultobj;
17874 fail:
17875 return NULL;
17876 }
17877
17878
17879 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
17880 PyObject *obj;
17881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17882 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
17883 Py_INCREF(obj);
17884 return Py_BuildValue((char *)"");
17885 }
17886 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
17887 PyObject *resultobj = NULL;
17888 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17889 PyObject * obj0 = 0 ;
17890 char *kwnames[] = {
17891 (char *) "self", NULL
17892 };
17893
17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
17895 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
17896 if (SWIG_arg_fail(1)) SWIG_fail;
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 delete arg1;
17900
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
17904 Py_INCREF(Py_None); resultobj = Py_None;
17905 return resultobj;
17906 fail:
17907 return NULL;
17908 }
17909
17910
17911 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
17912 PyObject *resultobj = NULL;
17913 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17914 wxConfigBase *result;
17915 PyObject * obj0 = 0 ;
17916 char *kwnames[] = {
17917 (char *) "config", NULL
17918 };
17919
17920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
17921 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
17922 if (SWIG_arg_fail(1)) SWIG_fail;
17923 {
17924 PyThreadState* __tstate = wxPyBeginAllowThreads();
17925 result = (wxConfigBase *)wxConfigBase::Set(arg1);
17926
17927 wxPyEndAllowThreads(__tstate);
17928 if (PyErr_Occurred()) SWIG_fail;
17929 }
17930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17931 return resultobj;
17932 fail:
17933 return NULL;
17934 }
17935
17936
17937 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
17938 PyObject *resultobj = NULL;
17939 bool arg1 = (bool) true ;
17940 wxConfigBase *result;
17941 PyObject * obj0 = 0 ;
17942 char *kwnames[] = {
17943 (char *) "createOnDemand", NULL
17944 };
17945
17946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
17947 if (obj0) {
17948 {
17949 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
17950 if (SWIG_arg_fail(1)) SWIG_fail;
17951 }
17952 }
17953 {
17954 PyThreadState* __tstate = wxPyBeginAllowThreads();
17955 result = (wxConfigBase *)wxConfigBase::Get(arg1);
17956
17957 wxPyEndAllowThreads(__tstate);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
17960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17961 return resultobj;
17962 fail:
17963 return NULL;
17964 }
17965
17966
17967 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
17968 PyObject *resultobj = NULL;
17969 wxConfigBase *result;
17970 char *kwnames[] = {
17971 NULL
17972 };
17973
17974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
17975 {
17976 PyThreadState* __tstate = wxPyBeginAllowThreads();
17977 result = (wxConfigBase *)wxConfigBase::Create();
17978
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
17983 return resultobj;
17984 fail:
17985 return NULL;
17986 }
17987
17988
17989 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
17990 PyObject *resultobj = NULL;
17991 char *kwnames[] = {
17992 NULL
17993 };
17994
17995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 wxConfigBase::DontCreateOnDemand();
17999
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 Py_INCREF(Py_None); resultobj = Py_None;
18004 return resultobj;
18005 fail:
18006 return NULL;
18007 }
18008
18009
18010 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
18011 PyObject *resultobj = NULL;
18012 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18013 wxString *arg2 = 0 ;
18014 bool temp2 = false ;
18015 PyObject * obj0 = 0 ;
18016 PyObject * obj1 = 0 ;
18017 char *kwnames[] = {
18018 (char *) "self",(char *) "path", NULL
18019 };
18020
18021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
18022 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18023 if (SWIG_arg_fail(1)) SWIG_fail;
18024 {
18025 arg2 = wxString_in_helper(obj1);
18026 if (arg2 == NULL) SWIG_fail;
18027 temp2 = true;
18028 }
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 (arg1)->SetPath((wxString const &)*arg2);
18032
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 Py_INCREF(Py_None); resultobj = Py_None;
18037 {
18038 if (temp2)
18039 delete arg2;
18040 }
18041 return resultobj;
18042 fail:
18043 {
18044 if (temp2)
18045 delete arg2;
18046 }
18047 return NULL;
18048 }
18049
18050
18051 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
18052 PyObject *resultobj = NULL;
18053 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18054 wxString *result;
18055 PyObject * obj0 = 0 ;
18056 char *kwnames[] = {
18057 (char *) "self", NULL
18058 };
18059
18060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
18061 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18062 if (SWIG_arg_fail(1)) SWIG_fail;
18063 {
18064 PyThreadState* __tstate = wxPyBeginAllowThreads();
18065 {
18066 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
18067 result = (wxString *) &_result_ref;
18068 }
18069
18070 wxPyEndAllowThreads(__tstate);
18071 if (PyErr_Occurred()) SWIG_fail;
18072 }
18073 {
18074 #if wxUSE_UNICODE
18075 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18076 #else
18077 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18078 #endif
18079 }
18080 return resultobj;
18081 fail:
18082 return NULL;
18083 }
18084
18085
18086 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18087 PyObject *resultobj = NULL;
18088 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18089 PyObject *result;
18090 PyObject * obj0 = 0 ;
18091 char *kwnames[] = {
18092 (char *) "self", NULL
18093 };
18094
18095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
18096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18097 if (SWIG_arg_fail(1)) SWIG_fail;
18098 {
18099 PyThreadState* __tstate = wxPyBeginAllowThreads();
18100 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
18101
18102 wxPyEndAllowThreads(__tstate);
18103 if (PyErr_Occurred()) SWIG_fail;
18104 }
18105 resultobj = result;
18106 return resultobj;
18107 fail:
18108 return NULL;
18109 }
18110
18111
18112 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18113 PyObject *resultobj = NULL;
18114 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18115 long arg2 ;
18116 PyObject *result;
18117 PyObject * obj0 = 0 ;
18118 PyObject * obj1 = 0 ;
18119 char *kwnames[] = {
18120 (char *) "self",(char *) "index", NULL
18121 };
18122
18123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
18124 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18125 if (SWIG_arg_fail(1)) SWIG_fail;
18126 {
18127 arg2 = static_cast<long >(SWIG_As_long(obj1));
18128 if (SWIG_arg_fail(2)) SWIG_fail;
18129 }
18130 {
18131 PyThreadState* __tstate = wxPyBeginAllowThreads();
18132 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
18133
18134 wxPyEndAllowThreads(__tstate);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 }
18137 resultobj = result;
18138 return resultobj;
18139 fail:
18140 return NULL;
18141 }
18142
18143
18144 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18145 PyObject *resultobj = NULL;
18146 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18147 PyObject *result;
18148 PyObject * obj0 = 0 ;
18149 char *kwnames[] = {
18150 (char *) "self", NULL
18151 };
18152
18153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
18154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18155 if (SWIG_arg_fail(1)) SWIG_fail;
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
18159
18160 wxPyEndAllowThreads(__tstate);
18161 if (PyErr_Occurred()) SWIG_fail;
18162 }
18163 resultobj = result;
18164 return resultobj;
18165 fail:
18166 return NULL;
18167 }
18168
18169
18170 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18171 PyObject *resultobj = NULL;
18172 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18173 long arg2 ;
18174 PyObject *result;
18175 PyObject * obj0 = 0 ;
18176 PyObject * obj1 = 0 ;
18177 char *kwnames[] = {
18178 (char *) "self",(char *) "index", NULL
18179 };
18180
18181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
18182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18183 if (SWIG_arg_fail(1)) SWIG_fail;
18184 {
18185 arg2 = static_cast<long >(SWIG_As_long(obj1));
18186 if (SWIG_arg_fail(2)) SWIG_fail;
18187 }
18188 {
18189 PyThreadState* __tstate = wxPyBeginAllowThreads();
18190 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
18191
18192 wxPyEndAllowThreads(__tstate);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 resultobj = result;
18196 return resultobj;
18197 fail:
18198 return NULL;
18199 }
18200
18201
18202 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
18203 PyObject *resultobj = NULL;
18204 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18205 bool arg2 = (bool) false ;
18206 size_t result;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 char *kwnames[] = {
18210 (char *) "self",(char *) "recursive", NULL
18211 };
18212
18213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
18214 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18215 if (SWIG_arg_fail(1)) SWIG_fail;
18216 if (obj1) {
18217 {
18218 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18219 if (SWIG_arg_fail(2)) SWIG_fail;
18220 }
18221 }
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
18225
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 {
18230 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
18231 }
18232 return resultobj;
18233 fail:
18234 return NULL;
18235 }
18236
18237
18238 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
18239 PyObject *resultobj = NULL;
18240 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18241 bool arg2 = (bool) false ;
18242 size_t result;
18243 PyObject * obj0 = 0 ;
18244 PyObject * obj1 = 0 ;
18245 char *kwnames[] = {
18246 (char *) "self",(char *) "recursive", NULL
18247 };
18248
18249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
18250 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18251 if (SWIG_arg_fail(1)) SWIG_fail;
18252 if (obj1) {
18253 {
18254 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18255 if (SWIG_arg_fail(2)) SWIG_fail;
18256 }
18257 }
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
18261
18262 wxPyEndAllowThreads(__tstate);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 }
18265 {
18266 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
18267 }
18268 return resultobj;
18269 fail:
18270 return NULL;
18271 }
18272
18273
18274 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18275 PyObject *resultobj = NULL;
18276 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18277 wxString *arg2 = 0 ;
18278 bool result;
18279 bool temp2 = false ;
18280 PyObject * obj0 = 0 ;
18281 PyObject * obj1 = 0 ;
18282 char *kwnames[] = {
18283 (char *) "self",(char *) "name", NULL
18284 };
18285
18286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
18287 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18288 if (SWIG_arg_fail(1)) SWIG_fail;
18289 {
18290 arg2 = wxString_in_helper(obj1);
18291 if (arg2 == NULL) SWIG_fail;
18292 temp2 = true;
18293 }
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
18297
18298 wxPyEndAllowThreads(__tstate);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 {
18302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18303 }
18304 {
18305 if (temp2)
18306 delete arg2;
18307 }
18308 return resultobj;
18309 fail:
18310 {
18311 if (temp2)
18312 delete arg2;
18313 }
18314 return NULL;
18315 }
18316
18317
18318 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18319 PyObject *resultobj = NULL;
18320 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18321 wxString *arg2 = 0 ;
18322 bool result;
18323 bool temp2 = false ;
18324 PyObject * obj0 = 0 ;
18325 PyObject * obj1 = 0 ;
18326 char *kwnames[] = {
18327 (char *) "self",(char *) "name", NULL
18328 };
18329
18330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
18331 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18332 if (SWIG_arg_fail(1)) SWIG_fail;
18333 {
18334 arg2 = wxString_in_helper(obj1);
18335 if (arg2 == NULL) SWIG_fail;
18336 temp2 = true;
18337 }
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
18341
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 {
18346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18347 }
18348 {
18349 if (temp2)
18350 delete arg2;
18351 }
18352 return resultobj;
18353 fail:
18354 {
18355 if (temp2)
18356 delete arg2;
18357 }
18358 return NULL;
18359 }
18360
18361
18362 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
18363 PyObject *resultobj = NULL;
18364 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18365 wxString *arg2 = 0 ;
18366 bool result;
18367 bool temp2 = false ;
18368 PyObject * obj0 = 0 ;
18369 PyObject * obj1 = 0 ;
18370 char *kwnames[] = {
18371 (char *) "self",(char *) "name", NULL
18372 };
18373
18374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
18375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18376 if (SWIG_arg_fail(1)) SWIG_fail;
18377 {
18378 arg2 = wxString_in_helper(obj1);
18379 if (arg2 == NULL) SWIG_fail;
18380 temp2 = true;
18381 }
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
18385
18386 wxPyEndAllowThreads(__tstate);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 }
18389 {
18390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18391 }
18392 {
18393 if (temp2)
18394 delete arg2;
18395 }
18396 return resultobj;
18397 fail:
18398 {
18399 if (temp2)
18400 delete arg2;
18401 }
18402 return NULL;
18403 }
18404
18405
18406 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
18407 PyObject *resultobj = NULL;
18408 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18409 wxString *arg2 = 0 ;
18410 wxConfigBase::EntryType result;
18411 bool temp2 = false ;
18412 PyObject * obj0 = 0 ;
18413 PyObject * obj1 = 0 ;
18414 char *kwnames[] = {
18415 (char *) "self",(char *) "name", NULL
18416 };
18417
18418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
18419 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18420 if (SWIG_arg_fail(1)) SWIG_fail;
18421 {
18422 arg2 = wxString_in_helper(obj1);
18423 if (arg2 == NULL) SWIG_fail;
18424 temp2 = true;
18425 }
18426 {
18427 PyThreadState* __tstate = wxPyBeginAllowThreads();
18428 result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
18429
18430 wxPyEndAllowThreads(__tstate);
18431 if (PyErr_Occurred()) SWIG_fail;
18432 }
18433 resultobj = SWIG_From_int((result));
18434 {
18435 if (temp2)
18436 delete arg2;
18437 }
18438 return resultobj;
18439 fail:
18440 {
18441 if (temp2)
18442 delete arg2;
18443 }
18444 return NULL;
18445 }
18446
18447
18448 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
18449 PyObject *resultobj = NULL;
18450 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18451 wxString *arg2 = 0 ;
18452 wxString const &arg3_defvalue = wxPyEmptyString ;
18453 wxString *arg3 = (wxString *) &arg3_defvalue ;
18454 wxString result;
18455 bool temp2 = false ;
18456 bool temp3 = false ;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 PyObject * obj2 = 0 ;
18460 char *kwnames[] = {
18461 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18462 };
18463
18464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
18465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18466 if (SWIG_arg_fail(1)) SWIG_fail;
18467 {
18468 arg2 = wxString_in_helper(obj1);
18469 if (arg2 == NULL) SWIG_fail;
18470 temp2 = true;
18471 }
18472 if (obj2) {
18473 {
18474 arg3 = wxString_in_helper(obj2);
18475 if (arg3 == NULL) SWIG_fail;
18476 temp3 = true;
18477 }
18478 }
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
18482
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 {
18487 #if wxUSE_UNICODE
18488 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18489 #else
18490 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18491 #endif
18492 }
18493 {
18494 if (temp2)
18495 delete arg2;
18496 }
18497 {
18498 if (temp3)
18499 delete arg3;
18500 }
18501 return resultobj;
18502 fail:
18503 {
18504 if (temp2)
18505 delete arg2;
18506 }
18507 {
18508 if (temp3)
18509 delete arg3;
18510 }
18511 return NULL;
18512 }
18513
18514
18515 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
18516 PyObject *resultobj = NULL;
18517 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18518 wxString *arg2 = 0 ;
18519 long arg3 = (long) 0 ;
18520 long result;
18521 bool temp2 = false ;
18522 PyObject * obj0 = 0 ;
18523 PyObject * obj1 = 0 ;
18524 PyObject * obj2 = 0 ;
18525 char *kwnames[] = {
18526 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18527 };
18528
18529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
18530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18531 if (SWIG_arg_fail(1)) SWIG_fail;
18532 {
18533 arg2 = wxString_in_helper(obj1);
18534 if (arg2 == NULL) SWIG_fail;
18535 temp2 = true;
18536 }
18537 if (obj2) {
18538 {
18539 arg3 = static_cast<long >(SWIG_As_long(obj2));
18540 if (SWIG_arg_fail(3)) SWIG_fail;
18541 }
18542 }
18543 {
18544 PyThreadState* __tstate = wxPyBeginAllowThreads();
18545 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
18546
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 {
18551 resultobj = SWIG_From_long(static_cast<long >(result));
18552 }
18553 {
18554 if (temp2)
18555 delete arg2;
18556 }
18557 return resultobj;
18558 fail:
18559 {
18560 if (temp2)
18561 delete arg2;
18562 }
18563 return NULL;
18564 }
18565
18566
18567 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
18568 PyObject *resultobj = NULL;
18569 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18570 wxString *arg2 = 0 ;
18571 double arg3 = (double) 0.0 ;
18572 double result;
18573 bool temp2 = false ;
18574 PyObject * obj0 = 0 ;
18575 PyObject * obj1 = 0 ;
18576 PyObject * obj2 = 0 ;
18577 char *kwnames[] = {
18578 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18579 };
18580
18581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
18582 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18583 if (SWIG_arg_fail(1)) SWIG_fail;
18584 {
18585 arg2 = wxString_in_helper(obj1);
18586 if (arg2 == NULL) SWIG_fail;
18587 temp2 = true;
18588 }
18589 if (obj2) {
18590 {
18591 arg3 = static_cast<double >(SWIG_As_double(obj2));
18592 if (SWIG_arg_fail(3)) SWIG_fail;
18593 }
18594 }
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
18598
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 {
18603 resultobj = SWIG_From_double(static_cast<double >(result));
18604 }
18605 {
18606 if (temp2)
18607 delete arg2;
18608 }
18609 return resultobj;
18610 fail:
18611 {
18612 if (temp2)
18613 delete arg2;
18614 }
18615 return NULL;
18616 }
18617
18618
18619 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj = NULL;
18621 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18622 wxString *arg2 = 0 ;
18623 bool arg3 = (bool) false ;
18624 bool result;
18625 bool temp2 = false ;
18626 PyObject * obj0 = 0 ;
18627 PyObject * obj1 = 0 ;
18628 PyObject * obj2 = 0 ;
18629 char *kwnames[] = {
18630 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
18631 };
18632
18633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18635 if (SWIG_arg_fail(1)) SWIG_fail;
18636 {
18637 arg2 = wxString_in_helper(obj1);
18638 if (arg2 == NULL) SWIG_fail;
18639 temp2 = true;
18640 }
18641 if (obj2) {
18642 {
18643 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
18644 if (SWIG_arg_fail(3)) SWIG_fail;
18645 }
18646 }
18647 {
18648 PyThreadState* __tstate = wxPyBeginAllowThreads();
18649 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
18650
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 {
18655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18656 }
18657 {
18658 if (temp2)
18659 delete arg2;
18660 }
18661 return resultobj;
18662 fail:
18663 {
18664 if (temp2)
18665 delete arg2;
18666 }
18667 return NULL;
18668 }
18669
18670
18671 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
18672 PyObject *resultobj = NULL;
18673 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18674 wxString *arg2 = 0 ;
18675 wxString *arg3 = 0 ;
18676 bool result;
18677 bool temp2 = false ;
18678 bool temp3 = false ;
18679 PyObject * obj0 = 0 ;
18680 PyObject * obj1 = 0 ;
18681 PyObject * obj2 = 0 ;
18682 char *kwnames[] = {
18683 (char *) "self",(char *) "key",(char *) "value", NULL
18684 };
18685
18686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
18687 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18688 if (SWIG_arg_fail(1)) SWIG_fail;
18689 {
18690 arg2 = wxString_in_helper(obj1);
18691 if (arg2 == NULL) SWIG_fail;
18692 temp2 = true;
18693 }
18694 {
18695 arg3 = wxString_in_helper(obj2);
18696 if (arg3 == NULL) SWIG_fail;
18697 temp3 = true;
18698 }
18699 {
18700 PyThreadState* __tstate = wxPyBeginAllowThreads();
18701 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
18702
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 {
18707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18708 }
18709 {
18710 if (temp2)
18711 delete arg2;
18712 }
18713 {
18714 if (temp3)
18715 delete arg3;
18716 }
18717 return resultobj;
18718 fail:
18719 {
18720 if (temp2)
18721 delete arg2;
18722 }
18723 {
18724 if (temp3)
18725 delete arg3;
18726 }
18727 return NULL;
18728 }
18729
18730
18731 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
18732 PyObject *resultobj = NULL;
18733 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18734 wxString *arg2 = 0 ;
18735 long arg3 ;
18736 bool result;
18737 bool temp2 = false ;
18738 PyObject * obj0 = 0 ;
18739 PyObject * obj1 = 0 ;
18740 PyObject * obj2 = 0 ;
18741 char *kwnames[] = {
18742 (char *) "self",(char *) "key",(char *) "value", NULL
18743 };
18744
18745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
18746 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18747 if (SWIG_arg_fail(1)) SWIG_fail;
18748 {
18749 arg2 = wxString_in_helper(obj1);
18750 if (arg2 == NULL) SWIG_fail;
18751 temp2 = true;
18752 }
18753 {
18754 arg3 = static_cast<long >(SWIG_As_long(obj2));
18755 if (SWIG_arg_fail(3)) SWIG_fail;
18756 }
18757 {
18758 PyThreadState* __tstate = wxPyBeginAllowThreads();
18759 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18760
18761 wxPyEndAllowThreads(__tstate);
18762 if (PyErr_Occurred()) SWIG_fail;
18763 }
18764 {
18765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18766 }
18767 {
18768 if (temp2)
18769 delete arg2;
18770 }
18771 return resultobj;
18772 fail:
18773 {
18774 if (temp2)
18775 delete arg2;
18776 }
18777 return NULL;
18778 }
18779
18780
18781 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj = NULL;
18783 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18784 wxString *arg2 = 0 ;
18785 double arg3 ;
18786 bool result;
18787 bool temp2 = false ;
18788 PyObject * obj0 = 0 ;
18789 PyObject * obj1 = 0 ;
18790 PyObject * obj2 = 0 ;
18791 char *kwnames[] = {
18792 (char *) "self",(char *) "key",(char *) "value", NULL
18793 };
18794
18795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
18796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18797 if (SWIG_arg_fail(1)) SWIG_fail;
18798 {
18799 arg2 = wxString_in_helper(obj1);
18800 if (arg2 == NULL) SWIG_fail;
18801 temp2 = true;
18802 }
18803 {
18804 arg3 = static_cast<double >(SWIG_As_double(obj2));
18805 if (SWIG_arg_fail(3)) SWIG_fail;
18806 }
18807 {
18808 PyThreadState* __tstate = wxPyBeginAllowThreads();
18809 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18810
18811 wxPyEndAllowThreads(__tstate);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 }
18814 {
18815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18816 }
18817 {
18818 if (temp2)
18819 delete arg2;
18820 }
18821 return resultobj;
18822 fail:
18823 {
18824 if (temp2)
18825 delete arg2;
18826 }
18827 return NULL;
18828 }
18829
18830
18831 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj = NULL;
18833 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18834 wxString *arg2 = 0 ;
18835 bool arg3 ;
18836 bool result;
18837 bool temp2 = false ;
18838 PyObject * obj0 = 0 ;
18839 PyObject * obj1 = 0 ;
18840 PyObject * obj2 = 0 ;
18841 char *kwnames[] = {
18842 (char *) "self",(char *) "key",(char *) "value", NULL
18843 };
18844
18845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18847 if (SWIG_arg_fail(1)) SWIG_fail;
18848 {
18849 arg2 = wxString_in_helper(obj1);
18850 if (arg2 == NULL) SWIG_fail;
18851 temp2 = true;
18852 }
18853 {
18854 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
18855 if (SWIG_arg_fail(3)) SWIG_fail;
18856 }
18857 {
18858 PyThreadState* __tstate = wxPyBeginAllowThreads();
18859 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
18860
18861 wxPyEndAllowThreads(__tstate);
18862 if (PyErr_Occurred()) SWIG_fail;
18863 }
18864 {
18865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18866 }
18867 {
18868 if (temp2)
18869 delete arg2;
18870 }
18871 return resultobj;
18872 fail:
18873 {
18874 if (temp2)
18875 delete arg2;
18876 }
18877 return NULL;
18878 }
18879
18880
18881 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
18882 PyObject *resultobj = NULL;
18883 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18884 bool arg2 = (bool) false ;
18885 bool result;
18886 PyObject * obj0 = 0 ;
18887 PyObject * obj1 = 0 ;
18888 char *kwnames[] = {
18889 (char *) "self",(char *) "currentOnly", NULL
18890 };
18891
18892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
18893 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18894 if (SWIG_arg_fail(1)) SWIG_fail;
18895 if (obj1) {
18896 {
18897 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18898 if (SWIG_arg_fail(2)) SWIG_fail;
18899 }
18900 }
18901 {
18902 PyThreadState* __tstate = wxPyBeginAllowThreads();
18903 result = (bool)(arg1)->Flush(arg2);
18904
18905 wxPyEndAllowThreads(__tstate);
18906 if (PyErr_Occurred()) SWIG_fail;
18907 }
18908 {
18909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18910 }
18911 return resultobj;
18912 fail:
18913 return NULL;
18914 }
18915
18916
18917 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
18918 PyObject *resultobj = NULL;
18919 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18920 wxString *arg2 = 0 ;
18921 wxString *arg3 = 0 ;
18922 bool result;
18923 bool temp2 = false ;
18924 bool temp3 = false ;
18925 PyObject * obj0 = 0 ;
18926 PyObject * obj1 = 0 ;
18927 PyObject * obj2 = 0 ;
18928 char *kwnames[] = {
18929 (char *) "self",(char *) "oldName",(char *) "newName", NULL
18930 };
18931
18932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
18933 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18934 if (SWIG_arg_fail(1)) SWIG_fail;
18935 {
18936 arg2 = wxString_in_helper(obj1);
18937 if (arg2 == NULL) SWIG_fail;
18938 temp2 = true;
18939 }
18940 {
18941 arg3 = wxString_in_helper(obj2);
18942 if (arg3 == NULL) SWIG_fail;
18943 temp3 = true;
18944 }
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
18948
18949 wxPyEndAllowThreads(__tstate);
18950 if (PyErr_Occurred()) SWIG_fail;
18951 }
18952 {
18953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18954 }
18955 {
18956 if (temp2)
18957 delete arg2;
18958 }
18959 {
18960 if (temp3)
18961 delete arg3;
18962 }
18963 return resultobj;
18964 fail:
18965 {
18966 if (temp2)
18967 delete arg2;
18968 }
18969 {
18970 if (temp3)
18971 delete arg3;
18972 }
18973 return NULL;
18974 }
18975
18976
18977 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
18978 PyObject *resultobj = NULL;
18979 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
18980 wxString *arg2 = 0 ;
18981 wxString *arg3 = 0 ;
18982 bool result;
18983 bool temp2 = false ;
18984 bool temp3 = false ;
18985 PyObject * obj0 = 0 ;
18986 PyObject * obj1 = 0 ;
18987 PyObject * obj2 = 0 ;
18988 char *kwnames[] = {
18989 (char *) "self",(char *) "oldName",(char *) "newName", NULL
18990 };
18991
18992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
18993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
18994 if (SWIG_arg_fail(1)) SWIG_fail;
18995 {
18996 arg2 = wxString_in_helper(obj1);
18997 if (arg2 == NULL) SWIG_fail;
18998 temp2 = true;
18999 }
19000 {
19001 arg3 = wxString_in_helper(obj2);
19002 if (arg3 == NULL) SWIG_fail;
19003 temp3 = true;
19004 }
19005 {
19006 PyThreadState* __tstate = wxPyBeginAllowThreads();
19007 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
19008
19009 wxPyEndAllowThreads(__tstate);
19010 if (PyErr_Occurred()) SWIG_fail;
19011 }
19012 {
19013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19014 }
19015 {
19016 if (temp2)
19017 delete arg2;
19018 }
19019 {
19020 if (temp3)
19021 delete arg3;
19022 }
19023 return resultobj;
19024 fail:
19025 {
19026 if (temp2)
19027 delete arg2;
19028 }
19029 {
19030 if (temp3)
19031 delete arg3;
19032 }
19033 return NULL;
19034 }
19035
19036
19037 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
19038 PyObject *resultobj = NULL;
19039 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19040 wxString *arg2 = 0 ;
19041 bool arg3 = (bool) true ;
19042 bool result;
19043 bool temp2 = false ;
19044 PyObject * obj0 = 0 ;
19045 PyObject * obj1 = 0 ;
19046 PyObject * obj2 = 0 ;
19047 char *kwnames[] = {
19048 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
19049 };
19050
19051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
19052 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19053 if (SWIG_arg_fail(1)) SWIG_fail;
19054 {
19055 arg2 = wxString_in_helper(obj1);
19056 if (arg2 == NULL) SWIG_fail;
19057 temp2 = true;
19058 }
19059 if (obj2) {
19060 {
19061 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
19062 if (SWIG_arg_fail(3)) SWIG_fail;
19063 }
19064 }
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
19068
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 {
19073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19074 }
19075 {
19076 if (temp2)
19077 delete arg2;
19078 }
19079 return resultobj;
19080 fail:
19081 {
19082 if (temp2)
19083 delete arg2;
19084 }
19085 return NULL;
19086 }
19087
19088
19089 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
19090 PyObject *resultobj = NULL;
19091 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19092 wxString *arg2 = 0 ;
19093 bool result;
19094 bool temp2 = false ;
19095 PyObject * obj0 = 0 ;
19096 PyObject * obj1 = 0 ;
19097 char *kwnames[] = {
19098 (char *) "self",(char *) "key", NULL
19099 };
19100
19101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
19102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19103 if (SWIG_arg_fail(1)) SWIG_fail;
19104 {
19105 arg2 = wxString_in_helper(obj1);
19106 if (arg2 == NULL) SWIG_fail;
19107 temp2 = true;
19108 }
19109 {
19110 PyThreadState* __tstate = wxPyBeginAllowThreads();
19111 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
19112
19113 wxPyEndAllowThreads(__tstate);
19114 if (PyErr_Occurred()) SWIG_fail;
19115 }
19116 {
19117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19118 }
19119 {
19120 if (temp2)
19121 delete arg2;
19122 }
19123 return resultobj;
19124 fail:
19125 {
19126 if (temp2)
19127 delete arg2;
19128 }
19129 return NULL;
19130 }
19131
19132
19133 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
19134 PyObject *resultobj = NULL;
19135 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19136 bool result;
19137 PyObject * obj0 = 0 ;
19138 char *kwnames[] = {
19139 (char *) "self", NULL
19140 };
19141
19142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
19143 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19144 if (SWIG_arg_fail(1)) SWIG_fail;
19145 {
19146 PyThreadState* __tstate = wxPyBeginAllowThreads();
19147 result = (bool)(arg1)->DeleteAll();
19148
19149 wxPyEndAllowThreads(__tstate);
19150 if (PyErr_Occurred()) SWIG_fail;
19151 }
19152 {
19153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19154 }
19155 return resultobj;
19156 fail:
19157 return NULL;
19158 }
19159
19160
19161 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19162 PyObject *resultobj = NULL;
19163 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19164 bool arg2 = (bool) true ;
19165 PyObject * obj0 = 0 ;
19166 PyObject * obj1 = 0 ;
19167 char *kwnames[] = {
19168 (char *) "self",(char *) "doIt", NULL
19169 };
19170
19171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
19172 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19173 if (SWIG_arg_fail(1)) SWIG_fail;
19174 if (obj1) {
19175 {
19176 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
19177 if (SWIG_arg_fail(2)) SWIG_fail;
19178 }
19179 }
19180 {
19181 PyThreadState* __tstate = wxPyBeginAllowThreads();
19182 (arg1)->SetExpandEnvVars(arg2);
19183
19184 wxPyEndAllowThreads(__tstate);
19185 if (PyErr_Occurred()) SWIG_fail;
19186 }
19187 Py_INCREF(Py_None); resultobj = Py_None;
19188 return resultobj;
19189 fail:
19190 return NULL;
19191 }
19192
19193
19194 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj = NULL;
19196 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19197 bool result;
19198 PyObject * obj0 = 0 ;
19199 char *kwnames[] = {
19200 (char *) "self", NULL
19201 };
19202
19203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
19204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19205 if (SWIG_arg_fail(1)) SWIG_fail;
19206 {
19207 PyThreadState* __tstate = wxPyBeginAllowThreads();
19208 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
19209
19210 wxPyEndAllowThreads(__tstate);
19211 if (PyErr_Occurred()) SWIG_fail;
19212 }
19213 {
19214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19215 }
19216 return resultobj;
19217 fail:
19218 return NULL;
19219 }
19220
19221
19222 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
19223 PyObject *resultobj = NULL;
19224 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19225 bool arg2 = (bool) true ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 char *kwnames[] = {
19229 (char *) "self",(char *) "doIt", NULL
19230 };
19231
19232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
19233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19234 if (SWIG_arg_fail(1)) SWIG_fail;
19235 if (obj1) {
19236 {
19237 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
19238 if (SWIG_arg_fail(2)) SWIG_fail;
19239 }
19240 }
19241 {
19242 PyThreadState* __tstate = wxPyBeginAllowThreads();
19243 (arg1)->SetRecordDefaults(arg2);
19244
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 Py_INCREF(Py_None); resultobj = Py_None;
19249 return resultobj;
19250 fail:
19251 return NULL;
19252 }
19253
19254
19255 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = NULL;
19257 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19258 bool result;
19259 PyObject * obj0 = 0 ;
19260 char *kwnames[] = {
19261 (char *) "self", NULL
19262 };
19263
19264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
19265 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19266 if (SWIG_arg_fail(1)) SWIG_fail;
19267 {
19268 PyThreadState* __tstate = wxPyBeginAllowThreads();
19269 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
19270
19271 wxPyEndAllowThreads(__tstate);
19272 if (PyErr_Occurred()) SWIG_fail;
19273 }
19274 {
19275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19276 }
19277 return resultobj;
19278 fail:
19279 return NULL;
19280 }
19281
19282
19283 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19284 PyObject *resultobj = NULL;
19285 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19286 wxString *arg2 = 0 ;
19287 wxString result;
19288 bool temp2 = false ;
19289 PyObject * obj0 = 0 ;
19290 PyObject * obj1 = 0 ;
19291 char *kwnames[] = {
19292 (char *) "self",(char *) "str", NULL
19293 };
19294
19295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
19296 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19297 if (SWIG_arg_fail(1)) SWIG_fail;
19298 {
19299 arg2 = wxString_in_helper(obj1);
19300 if (arg2 == NULL) SWIG_fail;
19301 temp2 = true;
19302 }
19303 {
19304 PyThreadState* __tstate = wxPyBeginAllowThreads();
19305 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
19306
19307 wxPyEndAllowThreads(__tstate);
19308 if (PyErr_Occurred()) SWIG_fail;
19309 }
19310 {
19311 #if wxUSE_UNICODE
19312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19313 #else
19314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19315 #endif
19316 }
19317 {
19318 if (temp2)
19319 delete arg2;
19320 }
19321 return resultobj;
19322 fail:
19323 {
19324 if (temp2)
19325 delete arg2;
19326 }
19327 return NULL;
19328 }
19329
19330
19331 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
19332 PyObject *resultobj = NULL;
19333 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19334 wxString result;
19335 PyObject * obj0 = 0 ;
19336 char *kwnames[] = {
19337 (char *) "self", NULL
19338 };
19339
19340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
19341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19342 if (SWIG_arg_fail(1)) SWIG_fail;
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 result = ((wxConfigBase const *)arg1)->GetAppName();
19346
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 {
19351 #if wxUSE_UNICODE
19352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19353 #else
19354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19355 #endif
19356 }
19357 return resultobj;
19358 fail:
19359 return NULL;
19360 }
19361
19362
19363 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
19364 PyObject *resultobj = NULL;
19365 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19366 wxString result;
19367 PyObject * obj0 = 0 ;
19368 char *kwnames[] = {
19369 (char *) "self", NULL
19370 };
19371
19372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
19373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19374 if (SWIG_arg_fail(1)) SWIG_fail;
19375 {
19376 PyThreadState* __tstate = wxPyBeginAllowThreads();
19377 result = ((wxConfigBase const *)arg1)->GetVendorName();
19378
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 {
19383 #if wxUSE_UNICODE
19384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19385 #else
19386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19387 #endif
19388 }
19389 return resultobj;
19390 fail:
19391 return NULL;
19392 }
19393
19394
19395 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
19396 PyObject *resultobj = NULL;
19397 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19398 wxString *arg2 = 0 ;
19399 bool temp2 = false ;
19400 PyObject * obj0 = 0 ;
19401 PyObject * obj1 = 0 ;
19402 char *kwnames[] = {
19403 (char *) "self",(char *) "appName", NULL
19404 };
19405
19406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19407 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19408 if (SWIG_arg_fail(1)) SWIG_fail;
19409 {
19410 arg2 = wxString_in_helper(obj1);
19411 if (arg2 == NULL) SWIG_fail;
19412 temp2 = true;
19413 }
19414 {
19415 PyThreadState* __tstate = wxPyBeginAllowThreads();
19416 (arg1)->SetAppName((wxString const &)*arg2);
19417
19418 wxPyEndAllowThreads(__tstate);
19419 if (PyErr_Occurred()) SWIG_fail;
19420 }
19421 Py_INCREF(Py_None); resultobj = Py_None;
19422 {
19423 if (temp2)
19424 delete arg2;
19425 }
19426 return resultobj;
19427 fail:
19428 {
19429 if (temp2)
19430 delete arg2;
19431 }
19432 return NULL;
19433 }
19434
19435
19436 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
19437 PyObject *resultobj = NULL;
19438 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19439 wxString *arg2 = 0 ;
19440 bool temp2 = false ;
19441 PyObject * obj0 = 0 ;
19442 PyObject * obj1 = 0 ;
19443 char *kwnames[] = {
19444 (char *) "self",(char *) "vendorName", NULL
19445 };
19446
19447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19448 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19449 if (SWIG_arg_fail(1)) SWIG_fail;
19450 {
19451 arg2 = wxString_in_helper(obj1);
19452 if (arg2 == NULL) SWIG_fail;
19453 temp2 = true;
19454 }
19455 {
19456 PyThreadState* __tstate = wxPyBeginAllowThreads();
19457 (arg1)->SetVendorName((wxString const &)*arg2);
19458
19459 wxPyEndAllowThreads(__tstate);
19460 if (PyErr_Occurred()) SWIG_fail;
19461 }
19462 Py_INCREF(Py_None); resultobj = Py_None;
19463 {
19464 if (temp2)
19465 delete arg2;
19466 }
19467 return resultobj;
19468 fail:
19469 {
19470 if (temp2)
19471 delete arg2;
19472 }
19473 return NULL;
19474 }
19475
19476
19477 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
19478 PyObject *resultobj = NULL;
19479 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19480 long arg2 ;
19481 PyObject * obj0 = 0 ;
19482 PyObject * obj1 = 0 ;
19483 char *kwnames[] = {
19484 (char *) "self",(char *) "style", NULL
19485 };
19486
19487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
19488 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19489 if (SWIG_arg_fail(1)) SWIG_fail;
19490 {
19491 arg2 = static_cast<long >(SWIG_As_long(obj1));
19492 if (SWIG_arg_fail(2)) SWIG_fail;
19493 }
19494 {
19495 PyThreadState* __tstate = wxPyBeginAllowThreads();
19496 (arg1)->SetStyle(arg2);
19497
19498 wxPyEndAllowThreads(__tstate);
19499 if (PyErr_Occurred()) SWIG_fail;
19500 }
19501 Py_INCREF(Py_None); resultobj = Py_None;
19502 return resultobj;
19503 fail:
19504 return NULL;
19505 }
19506
19507
19508 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
19509 PyObject *resultobj = NULL;
19510 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19511 long result;
19512 PyObject * obj0 = 0 ;
19513 char *kwnames[] = {
19514 (char *) "self", NULL
19515 };
19516
19517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
19518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19519 if (SWIG_arg_fail(1)) SWIG_fail;
19520 {
19521 PyThreadState* __tstate = wxPyBeginAllowThreads();
19522 result = (long)((wxConfigBase const *)arg1)->GetStyle();
19523
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 {
19528 resultobj = SWIG_From_long(static_cast<long >(result));
19529 }
19530 return resultobj;
19531 fail:
19532 return NULL;
19533 }
19534
19535
19536 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
19537 PyObject *obj;
19538 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19539 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
19540 Py_INCREF(obj);
19541 return Py_BuildValue((char *)"");
19542 }
19543 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
19544 PyObject *resultobj = NULL;
19545 wxString const &arg1_defvalue = wxPyEmptyString ;
19546 wxString *arg1 = (wxString *) &arg1_defvalue ;
19547 wxString const &arg2_defvalue = wxPyEmptyString ;
19548 wxString *arg2 = (wxString *) &arg2_defvalue ;
19549 wxString const &arg3_defvalue = wxPyEmptyString ;
19550 wxString *arg3 = (wxString *) &arg3_defvalue ;
19551 wxString const &arg4_defvalue = wxPyEmptyString ;
19552 wxString *arg4 = (wxString *) &arg4_defvalue ;
19553 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
19554 wxConfig *result;
19555 bool temp1 = false ;
19556 bool temp2 = false ;
19557 bool temp3 = false ;
19558 bool temp4 = false ;
19559 PyObject * obj0 = 0 ;
19560 PyObject * obj1 = 0 ;
19561 PyObject * obj2 = 0 ;
19562 PyObject * obj3 = 0 ;
19563 PyObject * obj4 = 0 ;
19564 char *kwnames[] = {
19565 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
19566 };
19567
19568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
19569 if (obj0) {
19570 {
19571 arg1 = wxString_in_helper(obj0);
19572 if (arg1 == NULL) SWIG_fail;
19573 temp1 = true;
19574 }
19575 }
19576 if (obj1) {
19577 {
19578 arg2 = wxString_in_helper(obj1);
19579 if (arg2 == NULL) SWIG_fail;
19580 temp2 = true;
19581 }
19582 }
19583 if (obj2) {
19584 {
19585 arg3 = wxString_in_helper(obj2);
19586 if (arg3 == NULL) SWIG_fail;
19587 temp3 = true;
19588 }
19589 }
19590 if (obj3) {
19591 {
19592 arg4 = wxString_in_helper(obj3);
19593 if (arg4 == NULL) SWIG_fail;
19594 temp4 = true;
19595 }
19596 }
19597 if (obj4) {
19598 {
19599 arg5 = static_cast<long >(SWIG_As_long(obj4));
19600 if (SWIG_arg_fail(5)) SWIG_fail;
19601 }
19602 }
19603 {
19604 PyThreadState* __tstate = wxPyBeginAllowThreads();
19605 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
19606
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
19611 {
19612 if (temp1)
19613 delete arg1;
19614 }
19615 {
19616 if (temp2)
19617 delete arg2;
19618 }
19619 {
19620 if (temp3)
19621 delete arg3;
19622 }
19623 {
19624 if (temp4)
19625 delete arg4;
19626 }
19627 return resultobj;
19628 fail:
19629 {
19630 if (temp1)
19631 delete arg1;
19632 }
19633 {
19634 if (temp2)
19635 delete arg2;
19636 }
19637 {
19638 if (temp3)
19639 delete arg3;
19640 }
19641 {
19642 if (temp4)
19643 delete arg4;
19644 }
19645 return NULL;
19646 }
19647
19648
19649 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
19650 PyObject *resultobj = NULL;
19651 wxConfig *arg1 = (wxConfig *) 0 ;
19652 PyObject * obj0 = 0 ;
19653 char *kwnames[] = {
19654 (char *) "self", NULL
19655 };
19656
19657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
19658 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfig, SWIG_POINTER_EXCEPTION | 0);
19659 if (SWIG_arg_fail(1)) SWIG_fail;
19660 {
19661 PyThreadState* __tstate = wxPyBeginAllowThreads();
19662 delete arg1;
19663
19664 wxPyEndAllowThreads(__tstate);
19665 if (PyErr_Occurred()) SWIG_fail;
19666 }
19667 Py_INCREF(Py_None); resultobj = Py_None;
19668 return resultobj;
19669 fail:
19670 return NULL;
19671 }
19672
19673
19674 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
19675 PyObject *obj;
19676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19677 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
19678 Py_INCREF(obj);
19679 return Py_BuildValue((char *)"");
19680 }
19681 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
19682 PyObject *resultobj = NULL;
19683 wxString const &arg1_defvalue = wxPyEmptyString ;
19684 wxString *arg1 = (wxString *) &arg1_defvalue ;
19685 wxString const &arg2_defvalue = wxPyEmptyString ;
19686 wxString *arg2 = (wxString *) &arg2_defvalue ;
19687 wxString const &arg3_defvalue = wxPyEmptyString ;
19688 wxString *arg3 = (wxString *) &arg3_defvalue ;
19689 wxString const &arg4_defvalue = wxPyEmptyString ;
19690 wxString *arg4 = (wxString *) &arg4_defvalue ;
19691 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
19692 wxFileConfig *result;
19693 bool temp1 = false ;
19694 bool temp2 = false ;
19695 bool temp3 = false ;
19696 bool temp4 = false ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 PyObject * obj2 = 0 ;
19700 PyObject * obj3 = 0 ;
19701 PyObject * obj4 = 0 ;
19702 char *kwnames[] = {
19703 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
19704 };
19705
19706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
19707 if (obj0) {
19708 {
19709 arg1 = wxString_in_helper(obj0);
19710 if (arg1 == NULL) SWIG_fail;
19711 temp1 = true;
19712 }
19713 }
19714 if (obj1) {
19715 {
19716 arg2 = wxString_in_helper(obj1);
19717 if (arg2 == NULL) SWIG_fail;
19718 temp2 = true;
19719 }
19720 }
19721 if (obj2) {
19722 {
19723 arg3 = wxString_in_helper(obj2);
19724 if (arg3 == NULL) SWIG_fail;
19725 temp3 = true;
19726 }
19727 }
19728 if (obj3) {
19729 {
19730 arg4 = wxString_in_helper(obj3);
19731 if (arg4 == NULL) SWIG_fail;
19732 temp4 = true;
19733 }
19734 }
19735 if (obj4) {
19736 {
19737 arg5 = static_cast<long >(SWIG_As_long(obj4));
19738 if (SWIG_arg_fail(5)) SWIG_fail;
19739 }
19740 }
19741 {
19742 PyThreadState* __tstate = wxPyBeginAllowThreads();
19743 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
19744
19745 wxPyEndAllowThreads(__tstate);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
19749 {
19750 if (temp1)
19751 delete arg1;
19752 }
19753 {
19754 if (temp2)
19755 delete arg2;
19756 }
19757 {
19758 if (temp3)
19759 delete arg3;
19760 }
19761 {
19762 if (temp4)
19763 delete arg4;
19764 }
19765 return resultobj;
19766 fail:
19767 {
19768 if (temp1)
19769 delete arg1;
19770 }
19771 {
19772 if (temp2)
19773 delete arg2;
19774 }
19775 {
19776 if (temp3)
19777 delete arg3;
19778 }
19779 {
19780 if (temp4)
19781 delete arg4;
19782 }
19783 return NULL;
19784 }
19785
19786
19787 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj = NULL;
19789 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
19790 PyObject * obj0 = 0 ;
19791 char *kwnames[] = {
19792 (char *) "self", NULL
19793 };
19794
19795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
19796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileConfig, SWIG_POINTER_EXCEPTION | 0);
19797 if (SWIG_arg_fail(1)) SWIG_fail;
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 delete arg1;
19801
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 Py_INCREF(Py_None); resultobj = Py_None;
19806 return resultobj;
19807 fail:
19808 return NULL;
19809 }
19810
19811
19812 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
19813 PyObject *obj;
19814 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19815 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
19816 Py_INCREF(obj);
19817 return Py_BuildValue((char *)"");
19818 }
19819 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj = NULL;
19821 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
19822 wxString *arg2 = 0 ;
19823 wxConfigPathChanger *result;
19824 bool temp2 = false ;
19825 PyObject * obj0 = 0 ;
19826 PyObject * obj1 = 0 ;
19827 char *kwnames[] = {
19828 (char *) "config",(char *) "entry", NULL
19829 };
19830
19831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
19832 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
19833 if (SWIG_arg_fail(1)) SWIG_fail;
19834 {
19835 arg2 = wxString_in_helper(obj1);
19836 if (arg2 == NULL) SWIG_fail;
19837 temp2 = true;
19838 }
19839 {
19840 PyThreadState* __tstate = wxPyBeginAllowThreads();
19841 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
19842
19843 wxPyEndAllowThreads(__tstate);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
19847 {
19848 if (temp2)
19849 delete arg2;
19850 }
19851 return resultobj;
19852 fail:
19853 {
19854 if (temp2)
19855 delete arg2;
19856 }
19857 return NULL;
19858 }
19859
19860
19861 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
19862 PyObject *resultobj = NULL;
19863 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
19864 PyObject * obj0 = 0 ;
19865 char *kwnames[] = {
19866 (char *) "self", NULL
19867 };
19868
19869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
19870 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0);
19871 if (SWIG_arg_fail(1)) SWIG_fail;
19872 {
19873 PyThreadState* __tstate = wxPyBeginAllowThreads();
19874 delete arg1;
19875
19876 wxPyEndAllowThreads(__tstate);
19877 if (PyErr_Occurred()) SWIG_fail;
19878 }
19879 Py_INCREF(Py_None); resultobj = Py_None;
19880 return resultobj;
19881 fail:
19882 return NULL;
19883 }
19884
19885
19886 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj = NULL;
19888 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
19889 wxString *result;
19890 PyObject * obj0 = 0 ;
19891 char *kwnames[] = {
19892 (char *) "self", NULL
19893 };
19894
19895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
19896 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0);
19897 if (SWIG_arg_fail(1)) SWIG_fail;
19898 {
19899 PyThreadState* __tstate = wxPyBeginAllowThreads();
19900 {
19901 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
19902 result = (wxString *) &_result_ref;
19903 }
19904
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 {
19909 #if wxUSE_UNICODE
19910 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19911 #else
19912 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19913 #endif
19914 }
19915 return resultobj;
19916 fail:
19917 return NULL;
19918 }
19919
19920
19921 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
19922 PyObject *obj;
19923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19924 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
19925 Py_INCREF(obj);
19926 return Py_BuildValue((char *)"");
19927 }
19928 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
19929 PyObject *resultobj = NULL;
19930 wxString *arg1 = 0 ;
19931 wxString result;
19932 bool temp1 = false ;
19933 PyObject * obj0 = 0 ;
19934 char *kwnames[] = {
19935 (char *) "sz", NULL
19936 };
19937
19938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
19939 {
19940 arg1 = wxString_in_helper(obj0);
19941 if (arg1 == NULL) SWIG_fail;
19942 temp1 = true;
19943 }
19944 {
19945 PyThreadState* __tstate = wxPyBeginAllowThreads();
19946 result = wxExpandEnvVars((wxString const &)*arg1);
19947
19948 wxPyEndAllowThreads(__tstate);
19949 if (PyErr_Occurred()) SWIG_fail;
19950 }
19951 {
19952 #if wxUSE_UNICODE
19953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19954 #else
19955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19956 #endif
19957 }
19958 {
19959 if (temp1)
19960 delete arg1;
19961 }
19962 return resultobj;
19963 fail:
19964 {
19965 if (temp1)
19966 delete arg1;
19967 }
19968 return NULL;
19969 }
19970
19971
19972 static int _wrap_DefaultDateTimeFormat_set(PyObject *) {
19973 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTimeFormat is read-only.");
19974 return 1;
19975 }
19976
19977
19978 static PyObject *_wrap_DefaultDateTimeFormat_get(void) {
19979 PyObject *pyobj = NULL;
19980
19981 {
19982 #if wxUSE_UNICODE
19983 pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
19984 #else
19985 pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
19986 #endif
19987 }
19988 return pyobj;
19989 }
19990
19991
19992 static int _wrap_DefaultTimeSpanFormat_set(PyObject *) {
19993 PyErr_SetString(PyExc_TypeError,"Variable DefaultTimeSpanFormat is read-only.");
19994 return 1;
19995 }
19996
19997
19998 static PyObject *_wrap_DefaultTimeSpanFormat_get(void) {
19999 PyObject *pyobj = NULL;
20000
20001 {
20002 #if wxUSE_UNICODE
20003 pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
20004 #else
20005 pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
20006 #endif
20007 }
20008 return pyobj;
20009 }
20010
20011
20012 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
20013 PyObject *resultobj = NULL;
20014 wxDateTime::Country arg1 ;
20015 PyObject * obj0 = 0 ;
20016 char *kwnames[] = {
20017 (char *) "country", NULL
20018 };
20019
20020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
20021 {
20022 arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0));
20023 if (SWIG_arg_fail(1)) SWIG_fail;
20024 }
20025 {
20026 PyThreadState* __tstate = wxPyBeginAllowThreads();
20027 wxDateTime::SetCountry(arg1);
20028
20029 wxPyEndAllowThreads(__tstate);
20030 if (PyErr_Occurred()) SWIG_fail;
20031 }
20032 Py_INCREF(Py_None); resultobj = Py_None;
20033 return resultobj;
20034 fail:
20035 return NULL;
20036 }
20037
20038
20039 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
20040 PyObject *resultobj = NULL;
20041 wxDateTime::Country result;
20042 char *kwnames[] = {
20043 NULL
20044 };
20045
20046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
20047 {
20048 PyThreadState* __tstate = wxPyBeginAllowThreads();
20049 result = (wxDateTime::Country)wxDateTime::GetCountry();
20050
20051 wxPyEndAllowThreads(__tstate);
20052 if (PyErr_Occurred()) SWIG_fail;
20053 }
20054 resultobj = SWIG_From_int((result));
20055 return resultobj;
20056 fail:
20057 return NULL;
20058 }
20059
20060
20061 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
20062 PyObject *resultobj = NULL;
20063 wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ;
20064 bool result;
20065 PyObject * obj0 = 0 ;
20066 char *kwnames[] = {
20067 (char *) "country", NULL
20068 };
20069
20070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
20071 if (obj0) {
20072 {
20073 arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0));
20074 if (SWIG_arg_fail(1)) SWIG_fail;
20075 }
20076 }
20077 {
20078 PyThreadState* __tstate = wxPyBeginAllowThreads();
20079 result = (bool)wxDateTime::IsWestEuropeanCountry(arg1);
20080
20081 wxPyEndAllowThreads(__tstate);
20082 if (PyErr_Occurred()) SWIG_fail;
20083 }
20084 {
20085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20086 }
20087 return resultobj;
20088 fail:
20089 return NULL;
20090 }
20091
20092
20093 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
20094 PyObject *resultobj = NULL;
20095 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20096 int result;
20097 PyObject * obj0 = 0 ;
20098 char *kwnames[] = {
20099 (char *) "cal", NULL
20100 };
20101
20102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
20103 if (obj0) {
20104 {
20105 arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0));
20106 if (SWIG_arg_fail(1)) SWIG_fail;
20107 }
20108 }
20109 {
20110 PyThreadState* __tstate = wxPyBeginAllowThreads();
20111 result = (int)wxDateTime::GetCurrentYear(arg1);
20112
20113 wxPyEndAllowThreads(__tstate);
20114 if (PyErr_Occurred()) SWIG_fail;
20115 }
20116 {
20117 resultobj = SWIG_From_int(static_cast<int >(result));
20118 }
20119 return resultobj;
20120 fail:
20121 return NULL;
20122 }
20123
20124
20125 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
20126 PyObject *resultobj = NULL;
20127 int arg1 ;
20128 int result;
20129 PyObject * obj0 = 0 ;
20130 char *kwnames[] = {
20131 (char *) "year", NULL
20132 };
20133
20134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
20135 {
20136 arg1 = static_cast<int >(SWIG_As_int(obj0));
20137 if (SWIG_arg_fail(1)) SWIG_fail;
20138 }
20139 {
20140 PyThreadState* __tstate = wxPyBeginAllowThreads();
20141 result = (int)wxDateTime::ConvertYearToBC(arg1);
20142
20143 wxPyEndAllowThreads(__tstate);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 {
20147 resultobj = SWIG_From_int(static_cast<int >(result));
20148 }
20149 return resultobj;
20150 fail:
20151 return NULL;
20152 }
20153
20154
20155 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
20156 PyObject *resultobj = NULL;
20157 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20158 wxDateTime::Month result;
20159 PyObject * obj0 = 0 ;
20160 char *kwnames[] = {
20161 (char *) "cal", NULL
20162 };
20163
20164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
20165 if (obj0) {
20166 {
20167 arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0));
20168 if (SWIG_arg_fail(1)) SWIG_fail;
20169 }
20170 }
20171 {
20172 PyThreadState* __tstate = wxPyBeginAllowThreads();
20173 result = (wxDateTime::Month)wxDateTime::GetCurrentMonth(arg1);
20174
20175 wxPyEndAllowThreads(__tstate);
20176 if (PyErr_Occurred()) SWIG_fail;
20177 }
20178 resultobj = SWIG_From_int((result));
20179 return resultobj;
20180 fail:
20181 return NULL;
20182 }
20183
20184
20185 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
20186 PyObject *resultobj = NULL;
20187 int arg1 = (int) wxDateTime::Inv_Year ;
20188 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20189 bool result;
20190 PyObject * obj0 = 0 ;
20191 PyObject * obj1 = 0 ;
20192 char *kwnames[] = {
20193 (char *) "year",(char *) "cal", NULL
20194 };
20195
20196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
20197 if (obj0) {
20198 {
20199 arg1 = static_cast<int >(SWIG_As_int(obj0));
20200 if (SWIG_arg_fail(1)) SWIG_fail;
20201 }
20202 }
20203 if (obj1) {
20204 {
20205 arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1));
20206 if (SWIG_arg_fail(2)) SWIG_fail;
20207 }
20208 }
20209 {
20210 PyThreadState* __tstate = wxPyBeginAllowThreads();
20211 result = (bool)wxDateTime::IsLeapYear(arg1,arg2);
20212
20213 wxPyEndAllowThreads(__tstate);
20214 if (PyErr_Occurred()) SWIG_fail;
20215 }
20216 {
20217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20218 }
20219 return resultobj;
20220 fail:
20221 return NULL;
20222 }
20223
20224
20225 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
20226 PyObject *resultobj = NULL;
20227 int arg1 = (int) wxDateTime::Inv_Year ;
20228 int result;
20229 PyObject * obj0 = 0 ;
20230 char *kwnames[] = {
20231 (char *) "year", NULL
20232 };
20233
20234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
20235 if (obj0) {
20236 {
20237 arg1 = static_cast<int >(SWIG_As_int(obj0));
20238 if (SWIG_arg_fail(1)) SWIG_fail;
20239 }
20240 }
20241 {
20242 PyThreadState* __tstate = wxPyBeginAllowThreads();
20243 result = (int)wxDateTime::GetCentury(arg1);
20244
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 {
20249 resultobj = SWIG_From_int(static_cast<int >(result));
20250 }
20251 return resultobj;
20252 fail:
20253 return NULL;
20254 }
20255
20256
20257 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
20258 PyObject *resultobj = NULL;
20259 int arg1 ;
20260 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20261 int result;
20262 PyObject * obj0 = 0 ;
20263 PyObject * obj1 = 0 ;
20264 char *kwnames[] = {
20265 (char *) "year",(char *) "cal", NULL
20266 };
20267
20268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
20269 {
20270 arg1 = static_cast<int >(SWIG_As_int(obj0));
20271 if (SWIG_arg_fail(1)) SWIG_fail;
20272 }
20273 if (obj1) {
20274 {
20275 arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1));
20276 if (SWIG_arg_fail(2)) SWIG_fail;
20277 }
20278 }
20279 {
20280 PyThreadState* __tstate = wxPyBeginAllowThreads();
20281 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2);
20282
20283 wxPyEndAllowThreads(__tstate);
20284 if (PyErr_Occurred()) SWIG_fail;
20285 }
20286 {
20287 resultobj = SWIG_From_int(static_cast<int >(result));
20288 }
20289 return resultobj;
20290 fail:
20291 return NULL;
20292 }
20293
20294
20295 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
20296 PyObject *resultobj = NULL;
20297 wxDateTime::Month arg1 ;
20298 int arg2 = (int) wxDateTime::Inv_Year ;
20299 wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
20300 int result;
20301 PyObject * obj0 = 0 ;
20302 PyObject * obj1 = 0 ;
20303 PyObject * obj2 = 0 ;
20304 char *kwnames[] = {
20305 (char *) "month",(char *) "year",(char *) "cal", NULL
20306 };
20307
20308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20309 {
20310 arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0));
20311 if (SWIG_arg_fail(1)) SWIG_fail;
20312 }
20313 if (obj1) {
20314 {
20315 arg2 = static_cast<int >(SWIG_As_int(obj1));
20316 if (SWIG_arg_fail(2)) SWIG_fail;
20317 }
20318 }
20319 if (obj2) {
20320 {
20321 arg3 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj2));
20322 if (SWIG_arg_fail(3)) SWIG_fail;
20323 }
20324 }
20325 {
20326 PyThreadState* __tstate = wxPyBeginAllowThreads();
20327 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2,arg3);
20328
20329 wxPyEndAllowThreads(__tstate);
20330 if (PyErr_Occurred()) SWIG_fail;
20331 }
20332 {
20333 resultobj = SWIG_From_int(static_cast<int >(result));
20334 }
20335 return resultobj;
20336 fail:
20337 return NULL;
20338 }
20339
20340
20341 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
20342 PyObject *resultobj = NULL;
20343 wxDateTime::Month arg1 ;
20344 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
20345 wxString result;
20346 PyObject * obj0 = 0 ;
20347 PyObject * obj1 = 0 ;
20348 char *kwnames[] = {
20349 (char *) "month",(char *) "flags", NULL
20350 };
20351
20352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
20353 {
20354 arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0));
20355 if (SWIG_arg_fail(1)) SWIG_fail;
20356 }
20357 if (obj1) {
20358 {
20359 arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1));
20360 if (SWIG_arg_fail(2)) SWIG_fail;
20361 }
20362 }
20363 {
20364 PyThreadState* __tstate = wxPyBeginAllowThreads();
20365 result = wxDateTime::GetMonthName(arg1,arg2);
20366
20367 wxPyEndAllowThreads(__tstate);
20368 if (PyErr_Occurred()) SWIG_fail;
20369 }
20370 {
20371 #if wxUSE_UNICODE
20372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20373 #else
20374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20375 #endif
20376 }
20377 return resultobj;
20378 fail:
20379 return NULL;
20380 }
20381
20382
20383 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
20384 PyObject *resultobj = NULL;
20385 wxDateTime::WeekDay arg1 ;
20386 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
20387 wxString result;
20388 PyObject * obj0 = 0 ;
20389 PyObject * obj1 = 0 ;
20390 char *kwnames[] = {
20391 (char *) "weekday",(char *) "flags", NULL
20392 };
20393
20394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
20395 {
20396 arg1 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj0));
20397 if (SWIG_arg_fail(1)) SWIG_fail;
20398 }
20399 if (obj1) {
20400 {
20401 arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1));
20402 if (SWIG_arg_fail(2)) SWIG_fail;
20403 }
20404 }
20405 {
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = wxDateTime::GetWeekDayName(arg1,arg2);
20408
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 {
20413 #if wxUSE_UNICODE
20414 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20415 #else
20416 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20417 #endif
20418 }
20419 return resultobj;
20420 fail:
20421 return NULL;
20422 }
20423
20424
20425 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
20426 PyObject *resultobj = NULL;
20427 PyObject *result;
20428 char *kwnames[] = {
20429 NULL
20430 };
20431
20432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetAmPmStrings",kwnames)) goto fail;
20433 {
20434 PyThreadState* __tstate = wxPyBeginAllowThreads();
20435 result = (PyObject *)wxDateTime_GetAmPmStrings();
20436
20437 wxPyEndAllowThreads(__tstate);
20438 if (PyErr_Occurred()) SWIG_fail;
20439 }
20440 resultobj = result;
20441 return resultobj;
20442 fail:
20443 return NULL;
20444 }
20445
20446
20447 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
20448 PyObject *resultobj = NULL;
20449 int arg1 = (int) wxDateTime::Inv_Year ;
20450 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20451 bool result;
20452 PyObject * obj0 = 0 ;
20453 PyObject * obj1 = 0 ;
20454 char *kwnames[] = {
20455 (char *) "year",(char *) "country", NULL
20456 };
20457
20458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
20459 if (obj0) {
20460 {
20461 arg1 = static_cast<int >(SWIG_As_int(obj0));
20462 if (SWIG_arg_fail(1)) SWIG_fail;
20463 }
20464 }
20465 if (obj1) {
20466 {
20467 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20468 if (SWIG_arg_fail(2)) SWIG_fail;
20469 }
20470 }
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 result = (bool)wxDateTime::IsDSTApplicable(arg1,arg2);
20474
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 {
20479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20480 }
20481 return resultobj;
20482 fail:
20483 return NULL;
20484 }
20485
20486
20487 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
20488 PyObject *resultobj = NULL;
20489 int arg1 = (int) wxDateTime::Inv_Year ;
20490 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20491 wxDateTime result;
20492 PyObject * obj0 = 0 ;
20493 PyObject * obj1 = 0 ;
20494 char *kwnames[] = {
20495 (char *) "year",(char *) "country", NULL
20496 };
20497
20498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
20499 if (obj0) {
20500 {
20501 arg1 = static_cast<int >(SWIG_As_int(obj0));
20502 if (SWIG_arg_fail(1)) SWIG_fail;
20503 }
20504 }
20505 if (obj1) {
20506 {
20507 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20508 if (SWIG_arg_fail(2)) SWIG_fail;
20509 }
20510 }
20511 {
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 result = wxDateTime::GetBeginDST(arg1,arg2);
20514
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 {
20519 wxDateTime * resultptr;
20520 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20521 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20522 }
20523 return resultobj;
20524 fail:
20525 return NULL;
20526 }
20527
20528
20529 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
20530 PyObject *resultobj = NULL;
20531 int arg1 = (int) wxDateTime::Inv_Year ;
20532 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
20533 wxDateTime result;
20534 PyObject * obj0 = 0 ;
20535 PyObject * obj1 = 0 ;
20536 char *kwnames[] = {
20537 (char *) "year",(char *) "country", NULL
20538 };
20539
20540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
20541 if (obj0) {
20542 {
20543 arg1 = static_cast<int >(SWIG_As_int(obj0));
20544 if (SWIG_arg_fail(1)) SWIG_fail;
20545 }
20546 }
20547 if (obj1) {
20548 {
20549 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
20550 if (SWIG_arg_fail(2)) SWIG_fail;
20551 }
20552 }
20553 {
20554 PyThreadState* __tstate = wxPyBeginAllowThreads();
20555 result = wxDateTime::GetEndDST(arg1,arg2);
20556
20557 wxPyEndAllowThreads(__tstate);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 }
20560 {
20561 wxDateTime * resultptr;
20562 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20563 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20564 }
20565 return resultobj;
20566 fail:
20567 return NULL;
20568 }
20569
20570
20571 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
20572 PyObject *resultobj = NULL;
20573 wxDateTime result;
20574 char *kwnames[] = {
20575 NULL
20576 };
20577
20578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 result = wxDateTime::Now();
20582
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 {
20587 wxDateTime * resultptr;
20588 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20589 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20590 }
20591 return resultobj;
20592 fail:
20593 return NULL;
20594 }
20595
20596
20597 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = NULL;
20599 wxDateTime result;
20600 char *kwnames[] = {
20601 NULL
20602 };
20603
20604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 result = wxDateTime::UNow();
20608
20609 wxPyEndAllowThreads(__tstate);
20610 if (PyErr_Occurred()) SWIG_fail;
20611 }
20612 {
20613 wxDateTime * resultptr;
20614 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20616 }
20617 return resultobj;
20618 fail:
20619 return NULL;
20620 }
20621
20622
20623 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
20624 PyObject *resultobj = NULL;
20625 wxDateTime result;
20626 char *kwnames[] = {
20627 NULL
20628 };
20629
20630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
20631 {
20632 PyThreadState* __tstate = wxPyBeginAllowThreads();
20633 result = wxDateTime::Today();
20634
20635 wxPyEndAllowThreads(__tstate);
20636 if (PyErr_Occurred()) SWIG_fail;
20637 }
20638 {
20639 wxDateTime * resultptr;
20640 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
20641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20642 }
20643 return resultobj;
20644 fail:
20645 return NULL;
20646 }
20647
20648
20649 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20650 PyObject *resultobj = NULL;
20651 wxDateTime *result;
20652 char *kwnames[] = {
20653 NULL
20654 };
20655
20656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
20657 {
20658 PyThreadState* __tstate = wxPyBeginAllowThreads();
20659 result = (wxDateTime *)new wxDateTime();
20660
20661 wxPyEndAllowThreads(__tstate);
20662 if (PyErr_Occurred()) SWIG_fail;
20663 }
20664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20665 return resultobj;
20666 fail:
20667 return NULL;
20668 }
20669
20670
20671 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
20672 PyObject *resultobj = NULL;
20673 time_t arg1 ;
20674 wxDateTime *result;
20675 PyObject * obj0 = 0 ;
20676 char *kwnames[] = {
20677 (char *) "timet", NULL
20678 };
20679
20680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
20681 {
20682 arg1 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj0));
20683 if (SWIG_arg_fail(1)) SWIG_fail;
20684 }
20685 {
20686 PyThreadState* __tstate = wxPyBeginAllowThreads();
20687 result = (wxDateTime *)new wxDateTime(arg1);
20688
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj = NULL;
20701 double arg1 ;
20702 wxDateTime *result;
20703 PyObject * obj0 = 0 ;
20704 char *kwnames[] = {
20705 (char *) "jdn", NULL
20706 };
20707
20708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
20709 {
20710 arg1 = static_cast<double >(SWIG_As_double(obj0));
20711 if (SWIG_arg_fail(1)) SWIG_fail;
20712 }
20713 {
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 result = (wxDateTime *)new wxDateTime(arg1);
20716
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
20728 PyObject *resultobj = NULL;
20729 int arg1 ;
20730 int arg2 = (int) 0 ;
20731 int arg3 = (int) 0 ;
20732 int arg4 = (int) 0 ;
20733 wxDateTime *result;
20734 PyObject * obj0 = 0 ;
20735 PyObject * obj1 = 0 ;
20736 PyObject * obj2 = 0 ;
20737 PyObject * obj3 = 0 ;
20738 char *kwnames[] = {
20739 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20740 };
20741
20742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20743 {
20744 arg1 = static_cast<int >(SWIG_As_int(obj0));
20745 if (SWIG_arg_fail(1)) SWIG_fail;
20746 }
20747 if (obj1) {
20748 {
20749 arg2 = static_cast<int >(SWIG_As_int(obj1));
20750 if (SWIG_arg_fail(2)) SWIG_fail;
20751 }
20752 }
20753 if (obj2) {
20754 {
20755 arg3 = static_cast<int >(SWIG_As_int(obj2));
20756 if (SWIG_arg_fail(3)) SWIG_fail;
20757 }
20758 }
20759 if (obj3) {
20760 {
20761 arg4 = static_cast<int >(SWIG_As_int(obj3));
20762 if (SWIG_arg_fail(4)) SWIG_fail;
20763 }
20764 }
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
20768
20769 wxPyEndAllowThreads(__tstate);
20770 if (PyErr_Occurred()) SWIG_fail;
20771 }
20772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20773 return resultobj;
20774 fail:
20775 return NULL;
20776 }
20777
20778
20779 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
20780 PyObject *resultobj = NULL;
20781 int arg1 ;
20782 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
20783 int arg3 = (int) wxDateTime::Inv_Year ;
20784 int arg4 = (int) 0 ;
20785 int arg5 = (int) 0 ;
20786 int arg6 = (int) 0 ;
20787 int arg7 = (int) 0 ;
20788 wxDateTime *result;
20789 PyObject * obj0 = 0 ;
20790 PyObject * obj1 = 0 ;
20791 PyObject * obj2 = 0 ;
20792 PyObject * obj3 = 0 ;
20793 PyObject * obj4 = 0 ;
20794 PyObject * obj5 = 0 ;
20795 PyObject * obj6 = 0 ;
20796 char *kwnames[] = {
20797 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20798 };
20799
20800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20801 {
20802 arg1 = static_cast<int >(SWIG_As_int(obj0));
20803 if (SWIG_arg_fail(1)) SWIG_fail;
20804 }
20805 if (obj1) {
20806 {
20807 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
20808 if (SWIG_arg_fail(2)) SWIG_fail;
20809 }
20810 }
20811 if (obj2) {
20812 {
20813 arg3 = static_cast<int >(SWIG_As_int(obj2));
20814 if (SWIG_arg_fail(3)) SWIG_fail;
20815 }
20816 }
20817 if (obj3) {
20818 {
20819 arg4 = static_cast<int >(SWIG_As_int(obj3));
20820 if (SWIG_arg_fail(4)) SWIG_fail;
20821 }
20822 }
20823 if (obj4) {
20824 {
20825 arg5 = static_cast<int >(SWIG_As_int(obj4));
20826 if (SWIG_arg_fail(5)) SWIG_fail;
20827 }
20828 }
20829 if (obj5) {
20830 {
20831 arg6 = static_cast<int >(SWIG_As_int(obj5));
20832 if (SWIG_arg_fail(6)) SWIG_fail;
20833 }
20834 }
20835 if (obj6) {
20836 {
20837 arg7 = static_cast<int >(SWIG_As_int(obj6));
20838 if (SWIG_arg_fail(7)) SWIG_fail;
20839 }
20840 }
20841 {
20842 PyThreadState* __tstate = wxPyBeginAllowThreads();
20843 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
20844
20845 wxPyEndAllowThreads(__tstate);
20846 if (PyErr_Occurred()) SWIG_fail;
20847 }
20848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20849 return resultobj;
20850 fail:
20851 return NULL;
20852 }
20853
20854
20855 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20856 PyObject *resultobj = NULL;
20857 wxDateTime *arg1 = (wxDateTime *) 0 ;
20858 PyObject * obj0 = 0 ;
20859 char *kwnames[] = {
20860 (char *) "self", NULL
20861 };
20862
20863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
20864 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20865 if (SWIG_arg_fail(1)) SWIG_fail;
20866 {
20867 PyThreadState* __tstate = wxPyBeginAllowThreads();
20868 delete arg1;
20869
20870 wxPyEndAllowThreads(__tstate);
20871 if (PyErr_Occurred()) SWIG_fail;
20872 }
20873 Py_INCREF(Py_None); resultobj = Py_None;
20874 return resultobj;
20875 fail:
20876 return NULL;
20877 }
20878
20879
20880 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
20881 PyObject *resultobj = NULL;
20882 wxDateTime *arg1 = (wxDateTime *) 0 ;
20883 wxDateTime *result;
20884 PyObject * obj0 = 0 ;
20885 char *kwnames[] = {
20886 (char *) "self", NULL
20887 };
20888
20889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
20890 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20891 if (SWIG_arg_fail(1)) SWIG_fail;
20892 {
20893 PyThreadState* __tstate = wxPyBeginAllowThreads();
20894 {
20895 wxDateTime &_result_ref = (arg1)->SetToCurrent();
20896 result = (wxDateTime *) &_result_ref;
20897 }
20898
20899 wxPyEndAllowThreads(__tstate);
20900 if (PyErr_Occurred()) SWIG_fail;
20901 }
20902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20903 return resultobj;
20904 fail:
20905 return NULL;
20906 }
20907
20908
20909 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
20910 PyObject *resultobj = NULL;
20911 wxDateTime *arg1 = (wxDateTime *) 0 ;
20912 time_t arg2 ;
20913 wxDateTime *result;
20914 PyObject * obj0 = 0 ;
20915 PyObject * obj1 = 0 ;
20916 char *kwnames[] = {
20917 (char *) "self",(char *) "timet", NULL
20918 };
20919
20920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
20921 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20922 if (SWIG_arg_fail(1)) SWIG_fail;
20923 {
20924 arg2 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj1));
20925 if (SWIG_arg_fail(2)) SWIG_fail;
20926 }
20927 {
20928 PyThreadState* __tstate = wxPyBeginAllowThreads();
20929 {
20930 wxDateTime &_result_ref = (arg1)->Set(arg2);
20931 result = (wxDateTime *) &_result_ref;
20932 }
20933
20934 wxPyEndAllowThreads(__tstate);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
20937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20938 return resultobj;
20939 fail:
20940 return NULL;
20941 }
20942
20943
20944 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
20945 PyObject *resultobj = NULL;
20946 wxDateTime *arg1 = (wxDateTime *) 0 ;
20947 double arg2 ;
20948 wxDateTime *result;
20949 PyObject * obj0 = 0 ;
20950 PyObject * obj1 = 0 ;
20951 char *kwnames[] = {
20952 (char *) "self",(char *) "jdn", NULL
20953 };
20954
20955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
20956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20957 if (SWIG_arg_fail(1)) SWIG_fail;
20958 {
20959 arg2 = static_cast<double >(SWIG_As_double(obj1));
20960 if (SWIG_arg_fail(2)) SWIG_fail;
20961 }
20962 {
20963 PyThreadState* __tstate = wxPyBeginAllowThreads();
20964 {
20965 wxDateTime &_result_ref = (arg1)->Set(arg2);
20966 result = (wxDateTime *) &_result_ref;
20967 }
20968
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20973 return resultobj;
20974 fail:
20975 return NULL;
20976 }
20977
20978
20979 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
20980 PyObject *resultobj = NULL;
20981 wxDateTime *arg1 = (wxDateTime *) 0 ;
20982 int arg2 ;
20983 int arg3 = (int) 0 ;
20984 int arg4 = (int) 0 ;
20985 int arg5 = (int) 0 ;
20986 wxDateTime *result;
20987 PyObject * obj0 = 0 ;
20988 PyObject * obj1 = 0 ;
20989 PyObject * obj2 = 0 ;
20990 PyObject * obj3 = 0 ;
20991 PyObject * obj4 = 0 ;
20992 char *kwnames[] = {
20993 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
20994 };
20995
20996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20997 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
20998 if (SWIG_arg_fail(1)) SWIG_fail;
20999 {
21000 arg2 = static_cast<int >(SWIG_As_int(obj1));
21001 if (SWIG_arg_fail(2)) SWIG_fail;
21002 }
21003 if (obj2) {
21004 {
21005 arg3 = static_cast<int >(SWIG_As_int(obj2));
21006 if (SWIG_arg_fail(3)) SWIG_fail;
21007 }
21008 }
21009 if (obj3) {
21010 {
21011 arg4 = static_cast<int >(SWIG_As_int(obj3));
21012 if (SWIG_arg_fail(4)) SWIG_fail;
21013 }
21014 }
21015 if (obj4) {
21016 {
21017 arg5 = static_cast<int >(SWIG_As_int(obj4));
21018 if (SWIG_arg_fail(5)) SWIG_fail;
21019 }
21020 }
21021 {
21022 PyThreadState* __tstate = wxPyBeginAllowThreads();
21023 {
21024 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
21025 result = (wxDateTime *) &_result_ref;
21026 }
21027
21028 wxPyEndAllowThreads(__tstate);
21029 if (PyErr_Occurred()) SWIG_fail;
21030 }
21031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21032 return resultobj;
21033 fail:
21034 return NULL;
21035 }
21036
21037
21038 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
21039 PyObject *resultobj = NULL;
21040 wxDateTime *arg1 = (wxDateTime *) 0 ;
21041 int arg2 ;
21042 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21043 int arg4 = (int) wxDateTime::Inv_Year ;
21044 int arg5 = (int) 0 ;
21045 int arg6 = (int) 0 ;
21046 int arg7 = (int) 0 ;
21047 int arg8 = (int) 0 ;
21048 wxDateTime *result;
21049 PyObject * obj0 = 0 ;
21050 PyObject * obj1 = 0 ;
21051 PyObject * obj2 = 0 ;
21052 PyObject * obj3 = 0 ;
21053 PyObject * obj4 = 0 ;
21054 PyObject * obj5 = 0 ;
21055 PyObject * obj6 = 0 ;
21056 PyObject * obj7 = 0 ;
21057 char *kwnames[] = {
21058 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
21059 };
21060
21061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21063 if (SWIG_arg_fail(1)) SWIG_fail;
21064 {
21065 arg2 = static_cast<int >(SWIG_As_int(obj1));
21066 if (SWIG_arg_fail(2)) SWIG_fail;
21067 }
21068 if (obj2) {
21069 {
21070 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21071 if (SWIG_arg_fail(3)) SWIG_fail;
21072 }
21073 }
21074 if (obj3) {
21075 {
21076 arg4 = static_cast<int >(SWIG_As_int(obj3));
21077 if (SWIG_arg_fail(4)) SWIG_fail;
21078 }
21079 }
21080 if (obj4) {
21081 {
21082 arg5 = static_cast<int >(SWIG_As_int(obj4));
21083 if (SWIG_arg_fail(5)) SWIG_fail;
21084 }
21085 }
21086 if (obj5) {
21087 {
21088 arg6 = static_cast<int >(SWIG_As_int(obj5));
21089 if (SWIG_arg_fail(6)) SWIG_fail;
21090 }
21091 }
21092 if (obj6) {
21093 {
21094 arg7 = static_cast<int >(SWIG_As_int(obj6));
21095 if (SWIG_arg_fail(7)) SWIG_fail;
21096 }
21097 }
21098 if (obj7) {
21099 {
21100 arg8 = static_cast<int >(SWIG_As_int(obj7));
21101 if (SWIG_arg_fail(8)) SWIG_fail;
21102 }
21103 }
21104 {
21105 PyThreadState* __tstate = wxPyBeginAllowThreads();
21106 {
21107 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
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_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
21122 PyObject *resultobj = NULL;
21123 wxDateTime *arg1 = (wxDateTime *) 0 ;
21124 wxDateTime *result;
21125 PyObject * obj0 = 0 ;
21126 char *kwnames[] = {
21127 (char *) "self", NULL
21128 };
21129
21130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
21131 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21132 if (SWIG_arg_fail(1)) SWIG_fail;
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 {
21136 wxDateTime &_result_ref = (arg1)->ResetTime();
21137 result = (wxDateTime *) &_result_ref;
21138 }
21139
21140 wxPyEndAllowThreads(__tstate);
21141 if (PyErr_Occurred()) SWIG_fail;
21142 }
21143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21144 return resultobj;
21145 fail:
21146 return NULL;
21147 }
21148
21149
21150 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
21151 PyObject *resultobj = NULL;
21152 wxDateTime *arg1 = (wxDateTime *) 0 ;
21153 int arg2 ;
21154 wxDateTime *result;
21155 PyObject * obj0 = 0 ;
21156 PyObject * obj1 = 0 ;
21157 char *kwnames[] = {
21158 (char *) "self",(char *) "year", NULL
21159 };
21160
21161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
21162 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21163 if (SWIG_arg_fail(1)) SWIG_fail;
21164 {
21165 arg2 = static_cast<int >(SWIG_As_int(obj1));
21166 if (SWIG_arg_fail(2)) SWIG_fail;
21167 }
21168 {
21169 PyThreadState* __tstate = wxPyBeginAllowThreads();
21170 {
21171 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
21172 result = (wxDateTime *) &_result_ref;
21173 }
21174
21175 wxPyEndAllowThreads(__tstate);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21179 return resultobj;
21180 fail:
21181 return NULL;
21182 }
21183
21184
21185 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
21186 PyObject *resultobj = NULL;
21187 wxDateTime *arg1 = (wxDateTime *) 0 ;
21188 wxDateTime::Month arg2 ;
21189 wxDateTime *result;
21190 PyObject * obj0 = 0 ;
21191 PyObject * obj1 = 0 ;
21192 char *kwnames[] = {
21193 (char *) "self",(char *) "month", NULL
21194 };
21195
21196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
21197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21198 if (SWIG_arg_fail(1)) SWIG_fail;
21199 {
21200 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21201 if (SWIG_arg_fail(2)) SWIG_fail;
21202 }
21203 {
21204 PyThreadState* __tstate = wxPyBeginAllowThreads();
21205 {
21206 wxDateTime &_result_ref = (arg1)->SetMonth(arg2);
21207 result = (wxDateTime *) &_result_ref;
21208 }
21209
21210 wxPyEndAllowThreads(__tstate);
21211 if (PyErr_Occurred()) SWIG_fail;
21212 }
21213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21214 return resultobj;
21215 fail:
21216 return NULL;
21217 }
21218
21219
21220 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
21221 PyObject *resultobj = NULL;
21222 wxDateTime *arg1 = (wxDateTime *) 0 ;
21223 int arg2 ;
21224 wxDateTime *result;
21225 PyObject * obj0 = 0 ;
21226 PyObject * obj1 = 0 ;
21227 char *kwnames[] = {
21228 (char *) "self",(char *) "day", NULL
21229 };
21230
21231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
21232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21233 if (SWIG_arg_fail(1)) SWIG_fail;
21234 {
21235 arg2 = static_cast<int >(SWIG_As_int(obj1));
21236 if (SWIG_arg_fail(2)) SWIG_fail;
21237 }
21238 {
21239 PyThreadState* __tstate = wxPyBeginAllowThreads();
21240 {
21241 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
21242 result = (wxDateTime *) &_result_ref;
21243 }
21244
21245 wxPyEndAllowThreads(__tstate);
21246 if (PyErr_Occurred()) SWIG_fail;
21247 }
21248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21249 return resultobj;
21250 fail:
21251 return NULL;
21252 }
21253
21254
21255 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
21256 PyObject *resultobj = NULL;
21257 wxDateTime *arg1 = (wxDateTime *) 0 ;
21258 int arg2 ;
21259 wxDateTime *result;
21260 PyObject * obj0 = 0 ;
21261 PyObject * obj1 = 0 ;
21262 char *kwnames[] = {
21263 (char *) "self",(char *) "hour", NULL
21264 };
21265
21266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
21267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21268 if (SWIG_arg_fail(1)) SWIG_fail;
21269 {
21270 arg2 = static_cast<int >(SWIG_As_int(obj1));
21271 if (SWIG_arg_fail(2)) SWIG_fail;
21272 }
21273 {
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 {
21276 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
21277 result = (wxDateTime *) &_result_ref;
21278 }
21279
21280 wxPyEndAllowThreads(__tstate);
21281 if (PyErr_Occurred()) SWIG_fail;
21282 }
21283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21284 return resultobj;
21285 fail:
21286 return NULL;
21287 }
21288
21289
21290 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
21291 PyObject *resultobj = NULL;
21292 wxDateTime *arg1 = (wxDateTime *) 0 ;
21293 int arg2 ;
21294 wxDateTime *result;
21295 PyObject * obj0 = 0 ;
21296 PyObject * obj1 = 0 ;
21297 char *kwnames[] = {
21298 (char *) "self",(char *) "minute", NULL
21299 };
21300
21301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
21302 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21303 if (SWIG_arg_fail(1)) SWIG_fail;
21304 {
21305 arg2 = static_cast<int >(SWIG_As_int(obj1));
21306 if (SWIG_arg_fail(2)) SWIG_fail;
21307 }
21308 {
21309 PyThreadState* __tstate = wxPyBeginAllowThreads();
21310 {
21311 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
21312 result = (wxDateTime *) &_result_ref;
21313 }
21314
21315 wxPyEndAllowThreads(__tstate);
21316 if (PyErr_Occurred()) SWIG_fail;
21317 }
21318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21319 return resultobj;
21320 fail:
21321 return NULL;
21322 }
21323
21324
21325 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
21326 PyObject *resultobj = NULL;
21327 wxDateTime *arg1 = (wxDateTime *) 0 ;
21328 int arg2 ;
21329 wxDateTime *result;
21330 PyObject * obj0 = 0 ;
21331 PyObject * obj1 = 0 ;
21332 char *kwnames[] = {
21333 (char *) "self",(char *) "second", NULL
21334 };
21335
21336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
21337 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21338 if (SWIG_arg_fail(1)) SWIG_fail;
21339 {
21340 arg2 = static_cast<int >(SWIG_As_int(obj1));
21341 if (SWIG_arg_fail(2)) SWIG_fail;
21342 }
21343 {
21344 PyThreadState* __tstate = wxPyBeginAllowThreads();
21345 {
21346 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
21347 result = (wxDateTime *) &_result_ref;
21348 }
21349
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21354 return resultobj;
21355 fail:
21356 return NULL;
21357 }
21358
21359
21360 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
21361 PyObject *resultobj = NULL;
21362 wxDateTime *arg1 = (wxDateTime *) 0 ;
21363 int arg2 ;
21364 wxDateTime *result;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367 char *kwnames[] = {
21368 (char *) "self",(char *) "millisecond", NULL
21369 };
21370
21371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
21372 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21373 if (SWIG_arg_fail(1)) SWIG_fail;
21374 {
21375 arg2 = static_cast<int >(SWIG_As_int(obj1));
21376 if (SWIG_arg_fail(2)) SWIG_fail;
21377 }
21378 {
21379 PyThreadState* __tstate = wxPyBeginAllowThreads();
21380 {
21381 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
21382 result = (wxDateTime *) &_result_ref;
21383 }
21384
21385 wxPyEndAllowThreads(__tstate);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 }
21388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21389 return resultobj;
21390 fail:
21391 return NULL;
21392 }
21393
21394
21395 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21396 PyObject *resultobj = NULL;
21397 wxDateTime *arg1 = (wxDateTime *) 0 ;
21398 wxDateTime::WeekDay arg2 ;
21399 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21400 wxDateTime *result;
21401 PyObject * obj0 = 0 ;
21402 PyObject * obj1 = 0 ;
21403 PyObject * obj2 = 0 ;
21404 char *kwnames[] = {
21405 (char *) "self",(char *) "weekday",(char *) "flags", NULL
21406 };
21407
21408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
21409 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21410 if (SWIG_arg_fail(1)) SWIG_fail;
21411 {
21412 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21413 if (SWIG_arg_fail(2)) SWIG_fail;
21414 }
21415 if (obj2) {
21416 {
21417 arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2));
21418 if (SWIG_arg_fail(3)) SWIG_fail;
21419 }
21420 }
21421 {
21422 PyThreadState* __tstate = wxPyBeginAllowThreads();
21423 {
21424 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek(arg2,arg3);
21425 result = (wxDateTime *) &_result_ref;
21426 }
21427
21428 wxPyEndAllowThreads(__tstate);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 }
21431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21432 return resultobj;
21433 fail:
21434 return NULL;
21435 }
21436
21437
21438 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21439 PyObject *resultobj = NULL;
21440 wxDateTime *arg1 = (wxDateTime *) 0 ;
21441 wxDateTime::WeekDay arg2 ;
21442 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21443 wxDateTime result;
21444 PyObject * obj0 = 0 ;
21445 PyObject * obj1 = 0 ;
21446 PyObject * obj2 = 0 ;
21447 char *kwnames[] = {
21448 (char *) "self",(char *) "weekday",(char *) "flags", NULL
21449 };
21450
21451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
21452 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21453 if (SWIG_arg_fail(1)) SWIG_fail;
21454 {
21455 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21456 if (SWIG_arg_fail(2)) SWIG_fail;
21457 }
21458 if (obj2) {
21459 {
21460 arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2));
21461 if (SWIG_arg_fail(3)) SWIG_fail;
21462 }
21463 }
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 result = (arg1)->GetWeekDayInSameWeek(arg2,arg3);
21467
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 {
21472 wxDateTime * resultptr;
21473 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21474 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21475 }
21476 return resultobj;
21477 fail:
21478 return NULL;
21479 }
21480
21481
21482 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21483 PyObject *resultobj = NULL;
21484 wxDateTime *arg1 = (wxDateTime *) 0 ;
21485 wxDateTime::WeekDay arg2 ;
21486 wxDateTime *result;
21487 PyObject * obj0 = 0 ;
21488 PyObject * obj1 = 0 ;
21489 char *kwnames[] = {
21490 (char *) "self",(char *) "weekday", NULL
21491 };
21492
21493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
21494 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21495 if (SWIG_arg_fail(1)) SWIG_fail;
21496 {
21497 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21498 if (SWIG_arg_fail(2)) SWIG_fail;
21499 }
21500 {
21501 PyThreadState* __tstate = wxPyBeginAllowThreads();
21502 {
21503 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay(arg2);
21504 result = (wxDateTime *) &_result_ref;
21505 }
21506
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21511 return resultobj;
21512 fail:
21513 return NULL;
21514 }
21515
21516
21517 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj = NULL;
21519 wxDateTime *arg1 = (wxDateTime *) 0 ;
21520 wxDateTime::WeekDay arg2 ;
21521 wxDateTime result;
21522 PyObject * obj0 = 0 ;
21523 PyObject * obj1 = 0 ;
21524 char *kwnames[] = {
21525 (char *) "self",(char *) "weekday", NULL
21526 };
21527
21528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
21529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21530 if (SWIG_arg_fail(1)) SWIG_fail;
21531 {
21532 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21533 if (SWIG_arg_fail(2)) SWIG_fail;
21534 }
21535 {
21536 PyThreadState* __tstate = wxPyBeginAllowThreads();
21537 result = (arg1)->GetNextWeekDay(arg2);
21538
21539 wxPyEndAllowThreads(__tstate);
21540 if (PyErr_Occurred()) SWIG_fail;
21541 }
21542 {
21543 wxDateTime * resultptr;
21544 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21546 }
21547 return resultobj;
21548 fail:
21549 return NULL;
21550 }
21551
21552
21553 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21554 PyObject *resultobj = NULL;
21555 wxDateTime *arg1 = (wxDateTime *) 0 ;
21556 wxDateTime::WeekDay arg2 ;
21557 wxDateTime *result;
21558 PyObject * obj0 = 0 ;
21559 PyObject * obj1 = 0 ;
21560 char *kwnames[] = {
21561 (char *) "self",(char *) "weekday", NULL
21562 };
21563
21564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
21565 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21566 if (SWIG_arg_fail(1)) SWIG_fail;
21567 {
21568 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21569 if (SWIG_arg_fail(2)) SWIG_fail;
21570 }
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 {
21574 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay(arg2);
21575 result = (wxDateTime *) &_result_ref;
21576 }
21577
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21582 return resultobj;
21583 fail:
21584 return NULL;
21585 }
21586
21587
21588 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21589 PyObject *resultobj = NULL;
21590 wxDateTime *arg1 = (wxDateTime *) 0 ;
21591 wxDateTime::WeekDay arg2 ;
21592 wxDateTime result;
21593 PyObject * obj0 = 0 ;
21594 PyObject * obj1 = 0 ;
21595 char *kwnames[] = {
21596 (char *) "self",(char *) "weekday", NULL
21597 };
21598
21599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
21600 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21601 if (SWIG_arg_fail(1)) SWIG_fail;
21602 {
21603 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21604 if (SWIG_arg_fail(2)) SWIG_fail;
21605 }
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 result = (arg1)->GetPrevWeekDay(arg2);
21609
21610 wxPyEndAllowThreads(__tstate);
21611 if (PyErr_Occurred()) SWIG_fail;
21612 }
21613 {
21614 wxDateTime * resultptr;
21615 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21616 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21617 }
21618 return resultobj;
21619 fail:
21620 return NULL;
21621 }
21622
21623
21624 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21625 PyObject *resultobj = NULL;
21626 wxDateTime *arg1 = (wxDateTime *) 0 ;
21627 wxDateTime::WeekDay arg2 ;
21628 int arg3 = (int) 1 ;
21629 wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21630 int arg5 = (int) wxDateTime::Inv_Year ;
21631 bool result;
21632 PyObject * obj0 = 0 ;
21633 PyObject * obj1 = 0 ;
21634 PyObject * obj2 = 0 ;
21635 PyObject * obj3 = 0 ;
21636 PyObject * obj4 = 0 ;
21637 char *kwnames[] = {
21638 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
21639 };
21640
21641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21643 if (SWIG_arg_fail(1)) SWIG_fail;
21644 {
21645 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21646 if (SWIG_arg_fail(2)) SWIG_fail;
21647 }
21648 if (obj2) {
21649 {
21650 arg3 = static_cast<int >(SWIG_As_int(obj2));
21651 if (SWIG_arg_fail(3)) SWIG_fail;
21652 }
21653 }
21654 if (obj3) {
21655 {
21656 arg4 = static_cast<wxDateTime::Month >(SWIG_As_int(obj3));
21657 if (SWIG_arg_fail(4)) SWIG_fail;
21658 }
21659 }
21660 if (obj4) {
21661 {
21662 arg5 = static_cast<int >(SWIG_As_int(obj4));
21663 if (SWIG_arg_fail(5)) SWIG_fail;
21664 }
21665 }
21666 {
21667 PyThreadState* __tstate = wxPyBeginAllowThreads();
21668 result = (bool)(arg1)->SetToWeekDay(arg2,arg3,arg4,arg5);
21669
21670 wxPyEndAllowThreads(__tstate);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 {
21674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21675 }
21676 return resultobj;
21677 fail:
21678 return NULL;
21679 }
21680
21681
21682 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21683 PyObject *resultobj = NULL;
21684 wxDateTime *arg1 = (wxDateTime *) 0 ;
21685 wxDateTime::WeekDay arg2 ;
21686 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21687 int arg4 = (int) wxDateTime::Inv_Year ;
21688 bool result;
21689 PyObject * obj0 = 0 ;
21690 PyObject * obj1 = 0 ;
21691 PyObject * obj2 = 0 ;
21692 PyObject * obj3 = 0 ;
21693 char *kwnames[] = {
21694 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
21695 };
21696
21697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21698 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21699 if (SWIG_arg_fail(1)) SWIG_fail;
21700 {
21701 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21702 if (SWIG_arg_fail(2)) SWIG_fail;
21703 }
21704 if (obj2) {
21705 {
21706 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21707 if (SWIG_arg_fail(3)) SWIG_fail;
21708 }
21709 }
21710 if (obj3) {
21711 {
21712 arg4 = static_cast<int >(SWIG_As_int(obj3));
21713 if (SWIG_arg_fail(4)) SWIG_fail;
21714 }
21715 }
21716 {
21717 PyThreadState* __tstate = wxPyBeginAllowThreads();
21718 result = (bool)(arg1)->SetToLastWeekDay(arg2,arg3,arg4);
21719
21720 wxPyEndAllowThreads(__tstate);
21721 if (PyErr_Occurred()) SWIG_fail;
21722 }
21723 {
21724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21725 }
21726 return resultobj;
21727 fail:
21728 return NULL;
21729 }
21730
21731
21732 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
21733 PyObject *resultobj = NULL;
21734 wxDateTime *arg1 = (wxDateTime *) 0 ;
21735 wxDateTime::WeekDay arg2 ;
21736 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21737 int arg4 = (int) wxDateTime::Inv_Year ;
21738 wxDateTime result;
21739 PyObject * obj0 = 0 ;
21740 PyObject * obj1 = 0 ;
21741 PyObject * obj2 = 0 ;
21742 PyObject * obj3 = 0 ;
21743 char *kwnames[] = {
21744 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
21745 };
21746
21747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21748 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21749 if (SWIG_arg_fail(1)) SWIG_fail;
21750 {
21751 arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1));
21752 if (SWIG_arg_fail(2)) SWIG_fail;
21753 }
21754 if (obj2) {
21755 {
21756 arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2));
21757 if (SWIG_arg_fail(3)) SWIG_fail;
21758 }
21759 }
21760 if (obj3) {
21761 {
21762 arg4 = static_cast<int >(SWIG_As_int(obj3));
21763 if (SWIG_arg_fail(4)) SWIG_fail;
21764 }
21765 }
21766 {
21767 PyThreadState* __tstate = wxPyBeginAllowThreads();
21768 result = (arg1)->GetLastWeekDay(arg2,arg3,arg4);
21769
21770 wxPyEndAllowThreads(__tstate);
21771 if (PyErr_Occurred()) SWIG_fail;
21772 }
21773 {
21774 wxDateTime * resultptr;
21775 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21776 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21777 }
21778 return resultobj;
21779 fail:
21780 return NULL;
21781 }
21782
21783
21784 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21785 PyObject *resultobj = NULL;
21786 wxDateTime *arg1 = (wxDateTime *) 0 ;
21787 int arg2 ;
21788 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21789 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21790 bool result;
21791 PyObject * obj0 = 0 ;
21792 PyObject * obj1 = 0 ;
21793 PyObject * obj2 = 0 ;
21794 PyObject * obj3 = 0 ;
21795 char *kwnames[] = {
21796 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
21797 };
21798
21799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21800 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21801 if (SWIG_arg_fail(1)) SWIG_fail;
21802 {
21803 arg2 = static_cast<int >(SWIG_As_int(obj1));
21804 if (SWIG_arg_fail(2)) SWIG_fail;
21805 }
21806 if (obj2) {
21807 {
21808 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21809 if (SWIG_arg_fail(3)) SWIG_fail;
21810 }
21811 }
21812 if (obj3) {
21813 {
21814 arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3));
21815 if (SWIG_arg_fail(4)) SWIG_fail;
21816 }
21817 }
21818 {
21819 PyThreadState* __tstate = wxPyBeginAllowThreads();
21820 result = (bool)(arg1)->SetToTheWeek(arg2,arg3,arg4);
21821
21822 wxPyEndAllowThreads(__tstate);
21823 if (PyErr_Occurred()) SWIG_fail;
21824 }
21825 {
21826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21827 }
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj = NULL;
21836 wxDateTime *arg1 = (wxDateTime *) 0 ;
21837 int arg2 ;
21838 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21839 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
21840 wxDateTime result;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 PyObject * obj2 = 0 ;
21844 PyObject * obj3 = 0 ;
21845 char *kwnames[] = {
21846 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
21847 };
21848
21849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21850 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21851 if (SWIG_arg_fail(1)) SWIG_fail;
21852 {
21853 arg2 = static_cast<int >(SWIG_As_int(obj1));
21854 if (SWIG_arg_fail(2)) SWIG_fail;
21855 }
21856 if (obj2) {
21857 {
21858 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21859 if (SWIG_arg_fail(3)) SWIG_fail;
21860 }
21861 }
21862 if (obj3) {
21863 {
21864 arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3));
21865 if (SWIG_arg_fail(4)) SWIG_fail;
21866 }
21867 }
21868 {
21869 PyThreadState* __tstate = wxPyBeginAllowThreads();
21870 result = (arg1)->GetWeek(arg2,arg3,arg4);
21871
21872 wxPyEndAllowThreads(__tstate);
21873 if (PyErr_Occurred()) SWIG_fail;
21874 }
21875 {
21876 wxDateTime * resultptr;
21877 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21878 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21879 }
21880 return resultobj;
21881 fail:
21882 return NULL;
21883 }
21884
21885
21886 static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
21887 PyObject *resultobj = NULL;
21888 int arg1 ;
21889 int arg2 ;
21890 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
21891 wxDateTime result;
21892 PyObject * obj0 = 0 ;
21893 PyObject * obj1 = 0 ;
21894 PyObject * obj2 = 0 ;
21895 char *kwnames[] = {
21896 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
21897 };
21898
21899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
21900 {
21901 arg1 = static_cast<int >(SWIG_As_int(obj0));
21902 if (SWIG_arg_fail(1)) SWIG_fail;
21903 }
21904 {
21905 arg2 = static_cast<int >(SWIG_As_int(obj1));
21906 if (SWIG_arg_fail(2)) SWIG_fail;
21907 }
21908 if (obj2) {
21909 {
21910 arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2));
21911 if (SWIG_arg_fail(3)) SWIG_fail;
21912 }
21913 }
21914 {
21915 PyThreadState* __tstate = wxPyBeginAllowThreads();
21916 result = wxDateTime::SetToWeekOfYear(arg1,arg2,arg3);
21917
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 {
21922 wxDateTime * resultptr;
21923 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
21924 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21925 }
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj = NULL;
21934 wxDateTime *arg1 = (wxDateTime *) 0 ;
21935 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21936 int arg3 = (int) wxDateTime::Inv_Year ;
21937 wxDateTime *result;
21938 PyObject * obj0 = 0 ;
21939 PyObject * obj1 = 0 ;
21940 PyObject * obj2 = 0 ;
21941 char *kwnames[] = {
21942 (char *) "self",(char *) "month",(char *) "year", NULL
21943 };
21944
21945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
21946 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21947 if (SWIG_arg_fail(1)) SWIG_fail;
21948 if (obj1) {
21949 {
21950 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21951 if (SWIG_arg_fail(2)) SWIG_fail;
21952 }
21953 }
21954 if (obj2) {
21955 {
21956 arg3 = static_cast<int >(SWIG_As_int(obj2));
21957 if (SWIG_arg_fail(3)) SWIG_fail;
21958 }
21959 }
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
21962 {
21963 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay(arg2,arg3);
21964 result = (wxDateTime *) &_result_ref;
21965 }
21966
21967 wxPyEndAllowThreads(__tstate);
21968 if (PyErr_Occurred()) SWIG_fail;
21969 }
21970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
21971 return resultobj;
21972 fail:
21973 return NULL;
21974 }
21975
21976
21977 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
21978 PyObject *resultobj = NULL;
21979 wxDateTime *arg1 = (wxDateTime *) 0 ;
21980 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
21981 int arg3 = (int) wxDateTime::Inv_Year ;
21982 wxDateTime result;
21983 PyObject * obj0 = 0 ;
21984 PyObject * obj1 = 0 ;
21985 PyObject * obj2 = 0 ;
21986 char *kwnames[] = {
21987 (char *) "self",(char *) "month",(char *) "year", NULL
21988 };
21989
21990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
21991 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
21992 if (SWIG_arg_fail(1)) SWIG_fail;
21993 if (obj1) {
21994 {
21995 arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1));
21996 if (SWIG_arg_fail(2)) SWIG_fail;
21997 }
21998 }
21999 if (obj2) {
22000 {
22001 arg3 = static_cast<int >(SWIG_As_int(obj2));
22002 if (SWIG_arg_fail(3)) SWIG_fail;
22003 }
22004 }
22005 {
22006 PyThreadState* __tstate = wxPyBeginAllowThreads();
22007 result = (arg1)->GetLastMonthDay(arg2,arg3);
22008
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 {
22013 wxDateTime * resultptr;
22014 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22015 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22016 }
22017 return resultobj;
22018 fail:
22019 return NULL;
22020 }
22021
22022
22023 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
22024 PyObject *resultobj = NULL;
22025 wxDateTime *arg1 = (wxDateTime *) 0 ;
22026 int arg2 ;
22027 wxDateTime *result;
22028 PyObject * obj0 = 0 ;
22029 PyObject * obj1 = 0 ;
22030 char *kwnames[] = {
22031 (char *) "self",(char *) "yday", NULL
22032 };
22033
22034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
22035 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22036 if (SWIG_arg_fail(1)) SWIG_fail;
22037 {
22038 arg2 = static_cast<int >(SWIG_As_int(obj1));
22039 if (SWIG_arg_fail(2)) SWIG_fail;
22040 }
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
22043 {
22044 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
22045 result = (wxDateTime *) &_result_ref;
22046 }
22047
22048 wxPyEndAllowThreads(__tstate);
22049 if (PyErr_Occurred()) SWIG_fail;
22050 }
22051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22052 return resultobj;
22053 fail:
22054 return NULL;
22055 }
22056
22057
22058 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
22059 PyObject *resultobj = NULL;
22060 wxDateTime *arg1 = (wxDateTime *) 0 ;
22061 int arg2 ;
22062 wxDateTime result;
22063 PyObject * obj0 = 0 ;
22064 PyObject * obj1 = 0 ;
22065 char *kwnames[] = {
22066 (char *) "self",(char *) "yday", NULL
22067 };
22068
22069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
22070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22071 if (SWIG_arg_fail(1)) SWIG_fail;
22072 {
22073 arg2 = static_cast<int >(SWIG_As_int(obj1));
22074 if (SWIG_arg_fail(2)) SWIG_fail;
22075 }
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 result = (arg1)->GetYearDay(arg2);
22079
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 {
22084 wxDateTime * resultptr;
22085 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22087 }
22088 return resultobj;
22089 fail:
22090 return NULL;
22091 }
22092
22093
22094 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj = NULL;
22096 wxDateTime *arg1 = (wxDateTime *) 0 ;
22097 double result;
22098 PyObject * obj0 = 0 ;
22099 char *kwnames[] = {
22100 (char *) "self", NULL
22101 };
22102
22103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
22104 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22105 if (SWIG_arg_fail(1)) SWIG_fail;
22106 {
22107 PyThreadState* __tstate = wxPyBeginAllowThreads();
22108 result = (double)(arg1)->GetJulianDayNumber();
22109
22110 wxPyEndAllowThreads(__tstate);
22111 if (PyErr_Occurred()) SWIG_fail;
22112 }
22113 {
22114 resultobj = SWIG_From_double(static_cast<double >(result));
22115 }
22116 return resultobj;
22117 fail:
22118 return NULL;
22119 }
22120
22121
22122 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
22123 PyObject *resultobj = NULL;
22124 wxDateTime *arg1 = (wxDateTime *) 0 ;
22125 double result;
22126 PyObject * obj0 = 0 ;
22127 char *kwnames[] = {
22128 (char *) "self", NULL
22129 };
22130
22131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
22132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22133 if (SWIG_arg_fail(1)) SWIG_fail;
22134 {
22135 PyThreadState* __tstate = wxPyBeginAllowThreads();
22136 result = (double)(arg1)->GetJDN();
22137
22138 wxPyEndAllowThreads(__tstate);
22139 if (PyErr_Occurred()) SWIG_fail;
22140 }
22141 {
22142 resultobj = SWIG_From_double(static_cast<double >(result));
22143 }
22144 return resultobj;
22145 fail:
22146 return NULL;
22147 }
22148
22149
22150 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
22151 PyObject *resultobj = NULL;
22152 wxDateTime *arg1 = (wxDateTime *) 0 ;
22153 double result;
22154 PyObject * obj0 = 0 ;
22155 char *kwnames[] = {
22156 (char *) "self", NULL
22157 };
22158
22159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
22160 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22161 if (SWIG_arg_fail(1)) SWIG_fail;
22162 {
22163 PyThreadState* __tstate = wxPyBeginAllowThreads();
22164 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
22165
22166 wxPyEndAllowThreads(__tstate);
22167 if (PyErr_Occurred()) SWIG_fail;
22168 }
22169 {
22170 resultobj = SWIG_From_double(static_cast<double >(result));
22171 }
22172 return resultobj;
22173 fail:
22174 return NULL;
22175 }
22176
22177
22178 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
22179 PyObject *resultobj = NULL;
22180 wxDateTime *arg1 = (wxDateTime *) 0 ;
22181 double result;
22182 PyObject * obj0 = 0 ;
22183 char *kwnames[] = {
22184 (char *) "self", NULL
22185 };
22186
22187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
22188 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22189 if (SWIG_arg_fail(1)) SWIG_fail;
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = (double)(arg1)->GetMJD();
22193
22194 wxPyEndAllowThreads(__tstate);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 {
22198 resultobj = SWIG_From_double(static_cast<double >(result));
22199 }
22200 return resultobj;
22201 fail:
22202 return NULL;
22203 }
22204
22205
22206 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
22207 PyObject *resultobj = NULL;
22208 wxDateTime *arg1 = (wxDateTime *) 0 ;
22209 double result;
22210 PyObject * obj0 = 0 ;
22211 char *kwnames[] = {
22212 (char *) "self", NULL
22213 };
22214
22215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
22216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22217 if (SWIG_arg_fail(1)) SWIG_fail;
22218 {
22219 PyThreadState* __tstate = wxPyBeginAllowThreads();
22220 result = (double)(arg1)->GetRataDie();
22221
22222 wxPyEndAllowThreads(__tstate);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 }
22225 {
22226 resultobj = SWIG_From_double(static_cast<double >(result));
22227 }
22228 return resultobj;
22229 fail:
22230 return NULL;
22231 }
22232
22233
22234 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22235 PyObject *resultobj = NULL;
22236 wxDateTime *arg1 = (wxDateTime *) 0 ;
22237 wxDateTime::TimeZone *arg2 = 0 ;
22238 bool arg3 = (bool) false ;
22239 wxDateTime result;
22240 bool temp2 = false ;
22241 PyObject * obj0 = 0 ;
22242 PyObject * obj1 = 0 ;
22243 PyObject * obj2 = 0 ;
22244 char *kwnames[] = {
22245 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22246 };
22247
22248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22249 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22250 if (SWIG_arg_fail(1)) SWIG_fail;
22251 {
22252 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22253 temp2 = true;
22254 }
22255 if (obj2) {
22256 {
22257 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22258 if (SWIG_arg_fail(3)) SWIG_fail;
22259 }
22260 }
22261 {
22262 PyThreadState* __tstate = wxPyBeginAllowThreads();
22263 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22264
22265 wxPyEndAllowThreads(__tstate);
22266 if (PyErr_Occurred()) SWIG_fail;
22267 }
22268 {
22269 wxDateTime * resultptr;
22270 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22271 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22272 }
22273 {
22274 if (temp2) delete arg2;
22275 }
22276 return resultobj;
22277 fail:
22278 {
22279 if (temp2) delete arg2;
22280 }
22281 return NULL;
22282 }
22283
22284
22285 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22286 PyObject *resultobj = NULL;
22287 wxDateTime *arg1 = (wxDateTime *) 0 ;
22288 wxDateTime::TimeZone *arg2 = 0 ;
22289 bool arg3 = (bool) false ;
22290 wxDateTime *result;
22291 bool temp2 = false ;
22292 PyObject * obj0 = 0 ;
22293 PyObject * obj1 = 0 ;
22294 PyObject * obj2 = 0 ;
22295 char *kwnames[] = {
22296 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22297 };
22298
22299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22301 if (SWIG_arg_fail(1)) SWIG_fail;
22302 {
22303 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22304 temp2 = true;
22305 }
22306 if (obj2) {
22307 {
22308 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22309 if (SWIG_arg_fail(3)) SWIG_fail;
22310 }
22311 }
22312 {
22313 PyThreadState* __tstate = wxPyBeginAllowThreads();
22314 {
22315 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22316 result = (wxDateTime *) &_result_ref;
22317 }
22318
22319 wxPyEndAllowThreads(__tstate);
22320 if (PyErr_Occurred()) SWIG_fail;
22321 }
22322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22323 {
22324 if (temp2) delete arg2;
22325 }
22326 return resultobj;
22327 fail:
22328 {
22329 if (temp2) delete arg2;
22330 }
22331 return NULL;
22332 }
22333
22334
22335 static PyObject *_wrap_DateTime_FromTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj = NULL;
22337 wxDateTime *arg1 = (wxDateTime *) 0 ;
22338 wxDateTime::TimeZone *arg2 = 0 ;
22339 bool arg3 = (bool) false ;
22340 wxDateTime result;
22341 bool temp2 = false ;
22342 PyObject * obj0 = 0 ;
22343 PyObject * obj1 = 0 ;
22344 PyObject * obj2 = 0 ;
22345 char *kwnames[] = {
22346 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22347 };
22348
22349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_FromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22350 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22351 if (SWIG_arg_fail(1)) SWIG_fail;
22352 {
22353 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22354 temp2 = true;
22355 }
22356 if (obj2) {
22357 {
22358 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22359 if (SWIG_arg_fail(3)) SWIG_fail;
22360 }
22361 }
22362 {
22363 PyThreadState* __tstate = wxPyBeginAllowThreads();
22364 result = ((wxDateTime const *)arg1)->FromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22365
22366 wxPyEndAllowThreads(__tstate);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 {
22370 wxDateTime * resultptr;
22371 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22373 }
22374 {
22375 if (temp2) delete arg2;
22376 }
22377 return resultobj;
22378 fail:
22379 {
22380 if (temp2) delete arg2;
22381 }
22382 return NULL;
22383 }
22384
22385
22386 static PyObject *_wrap_DateTime_MakeFromTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
22387 PyObject *resultobj = NULL;
22388 wxDateTime *arg1 = (wxDateTime *) 0 ;
22389 wxDateTime::TimeZone *arg2 = 0 ;
22390 bool arg3 = (bool) false ;
22391 wxDateTime *result;
22392 bool temp2 = false ;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 PyObject * obj2 = 0 ;
22396 char *kwnames[] = {
22397 (char *) "self",(char *) "tz",(char *) "noDST", NULL
22398 };
22399
22400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeFromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
22401 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22402 if (SWIG_arg_fail(1)) SWIG_fail;
22403 {
22404 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22405 temp2 = true;
22406 }
22407 if (obj2) {
22408 {
22409 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
22410 if (SWIG_arg_fail(3)) SWIG_fail;
22411 }
22412 }
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 {
22416 wxDateTime &_result_ref = (arg1)->MakeFromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
22417 result = (wxDateTime *) &_result_ref;
22418 }
22419
22420 wxPyEndAllowThreads(__tstate);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
22423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22424 {
22425 if (temp2) delete arg2;
22426 }
22427 return resultobj;
22428 fail:
22429 {
22430 if (temp2) delete arg2;
22431 }
22432 return NULL;
22433 }
22434
22435
22436 static PyObject *_wrap_DateTime_ToUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22437 PyObject *resultobj = NULL;
22438 wxDateTime *arg1 = (wxDateTime *) 0 ;
22439 bool arg2 = (bool) false ;
22440 wxDateTime result;
22441 PyObject * obj0 = 0 ;
22442 PyObject * obj1 = 0 ;
22443 char *kwnames[] = {
22444 (char *) "self",(char *) "noDST", NULL
22445 };
22446
22447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToUTC",kwnames,&obj0,&obj1)) goto fail;
22448 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22449 if (SWIG_arg_fail(1)) SWIG_fail;
22450 if (obj1) {
22451 {
22452 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22453 if (SWIG_arg_fail(2)) SWIG_fail;
22454 }
22455 }
22456 {
22457 PyThreadState* __tstate = wxPyBeginAllowThreads();
22458 result = ((wxDateTime const *)arg1)->ToUTC(arg2);
22459
22460 wxPyEndAllowThreads(__tstate);
22461 if (PyErr_Occurred()) SWIG_fail;
22462 }
22463 {
22464 wxDateTime * resultptr;
22465 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22466 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22467 }
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 static PyObject *_wrap_DateTime_MakeUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22475 PyObject *resultobj = NULL;
22476 wxDateTime *arg1 = (wxDateTime *) 0 ;
22477 bool arg2 = (bool) false ;
22478 wxDateTime *result;
22479 PyObject * obj0 = 0 ;
22480 PyObject * obj1 = 0 ;
22481 char *kwnames[] = {
22482 (char *) "self",(char *) "noDST", NULL
22483 };
22484
22485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeUTC",kwnames,&obj0,&obj1)) goto fail;
22486 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22487 if (SWIG_arg_fail(1)) SWIG_fail;
22488 if (obj1) {
22489 {
22490 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22491 if (SWIG_arg_fail(2)) SWIG_fail;
22492 }
22493 }
22494 {
22495 PyThreadState* __tstate = wxPyBeginAllowThreads();
22496 {
22497 wxDateTime &_result_ref = (arg1)->MakeUTC(arg2);
22498 result = (wxDateTime *) &_result_ref;
22499 }
22500
22501 wxPyEndAllowThreads(__tstate);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 }
22504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22505 return resultobj;
22506 fail:
22507 return NULL;
22508 }
22509
22510
22511 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
22512 PyObject *resultobj = NULL;
22513 wxDateTime *arg1 = (wxDateTime *) 0 ;
22514 bool arg2 = (bool) false ;
22515 wxDateTime result;
22516 PyObject * obj0 = 0 ;
22517 PyObject * obj1 = 0 ;
22518 char *kwnames[] = {
22519 (char *) "self",(char *) "noDST", NULL
22520 };
22521
22522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
22523 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22524 if (SWIG_arg_fail(1)) SWIG_fail;
22525 if (obj1) {
22526 {
22527 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22528 if (SWIG_arg_fail(2)) SWIG_fail;
22529 }
22530 }
22531 {
22532 PyThreadState* __tstate = wxPyBeginAllowThreads();
22533 result = ((wxDateTime const *)arg1)->ToGMT(arg2);
22534
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 {
22539 wxDateTime * resultptr;
22540 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22541 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22542 }
22543 return resultobj;
22544 fail:
22545 return NULL;
22546 }
22547
22548
22549 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
22550 PyObject *resultobj = NULL;
22551 wxDateTime *arg1 = (wxDateTime *) 0 ;
22552 bool arg2 = (bool) false ;
22553 wxDateTime *result;
22554 PyObject * obj0 = 0 ;
22555 PyObject * obj1 = 0 ;
22556 char *kwnames[] = {
22557 (char *) "self",(char *) "noDST", NULL
22558 };
22559
22560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
22561 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22562 if (SWIG_arg_fail(1)) SWIG_fail;
22563 if (obj1) {
22564 {
22565 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22566 if (SWIG_arg_fail(2)) SWIG_fail;
22567 }
22568 }
22569 {
22570 PyThreadState* __tstate = wxPyBeginAllowThreads();
22571 {
22572 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
22573 result = (wxDateTime *) &_result_ref;
22574 }
22575
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22580 return resultobj;
22581 fail:
22582 return NULL;
22583 }
22584
22585
22586 static PyObject *_wrap_DateTime_FromUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22587 PyObject *resultobj = NULL;
22588 wxDateTime *arg1 = (wxDateTime *) 0 ;
22589 bool arg2 = (bool) false ;
22590 wxDateTime result;
22591 PyObject * obj0 = 0 ;
22592 PyObject * obj1 = 0 ;
22593 char *kwnames[] = {
22594 (char *) "self",(char *) "noDST", NULL
22595 };
22596
22597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_FromUTC",kwnames,&obj0,&obj1)) goto fail;
22598 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22599 if (SWIG_arg_fail(1)) SWIG_fail;
22600 if (obj1) {
22601 {
22602 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22603 if (SWIG_arg_fail(2)) SWIG_fail;
22604 }
22605 }
22606 {
22607 PyThreadState* __tstate = wxPyBeginAllowThreads();
22608 result = ((wxDateTime const *)arg1)->FromUTC(arg2);
22609
22610 wxPyEndAllowThreads(__tstate);
22611 if (PyErr_Occurred()) SWIG_fail;
22612 }
22613 {
22614 wxDateTime * resultptr;
22615 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
22616 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
22617 }
22618 return resultobj;
22619 fail:
22620 return NULL;
22621 }
22622
22623
22624 static PyObject *_wrap_DateTime_MakeFromUTC(PyObject *, PyObject *args, PyObject *kwargs) {
22625 PyObject *resultobj = NULL;
22626 wxDateTime *arg1 = (wxDateTime *) 0 ;
22627 bool arg2 = (bool) false ;
22628 wxDateTime *result;
22629 PyObject * obj0 = 0 ;
22630 PyObject * obj1 = 0 ;
22631 char *kwnames[] = {
22632 (char *) "self",(char *) "noDST", NULL
22633 };
22634
22635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeFromUTC",kwnames,&obj0,&obj1)) goto fail;
22636 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22637 if (SWIG_arg_fail(1)) SWIG_fail;
22638 if (obj1) {
22639 {
22640 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
22641 if (SWIG_arg_fail(2)) SWIG_fail;
22642 }
22643 }
22644 {
22645 PyThreadState* __tstate = wxPyBeginAllowThreads();
22646 {
22647 wxDateTime &_result_ref = (arg1)->MakeFromUTC(arg2);
22648 result = (wxDateTime *) &_result_ref;
22649 }
22650
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22655 return resultobj;
22656 fail:
22657 return NULL;
22658 }
22659
22660
22661 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
22662 PyObject *resultobj = NULL;
22663 wxDateTime *arg1 = (wxDateTime *) 0 ;
22664 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
22665 int result;
22666 PyObject * obj0 = 0 ;
22667 PyObject * obj1 = 0 ;
22668 char *kwnames[] = {
22669 (char *) "self",(char *) "country", NULL
22670 };
22671
22672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
22673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22674 if (SWIG_arg_fail(1)) SWIG_fail;
22675 if (obj1) {
22676 {
22677 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
22678 if (SWIG_arg_fail(2)) SWIG_fail;
22679 }
22680 }
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 result = (int)(arg1)->IsDST(arg2);
22684
22685 wxPyEndAllowThreads(__tstate);
22686 if (PyErr_Occurred()) SWIG_fail;
22687 }
22688 {
22689 resultobj = SWIG_From_int(static_cast<int >(result));
22690 }
22691 return resultobj;
22692 fail:
22693 return NULL;
22694 }
22695
22696
22697 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
22698 PyObject *resultobj = NULL;
22699 wxDateTime *arg1 = (wxDateTime *) 0 ;
22700 bool result;
22701 PyObject * obj0 = 0 ;
22702 char *kwnames[] = {
22703 (char *) "self", NULL
22704 };
22705
22706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
22707 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22708 if (SWIG_arg_fail(1)) SWIG_fail;
22709 {
22710 PyThreadState* __tstate = wxPyBeginAllowThreads();
22711 result = (bool)((wxDateTime const *)arg1)->IsValid();
22712
22713 wxPyEndAllowThreads(__tstate);
22714 if (PyErr_Occurred()) SWIG_fail;
22715 }
22716 {
22717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22718 }
22719 return resultobj;
22720 fail:
22721 return NULL;
22722 }
22723
22724
22725 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
22726 PyObject *resultobj = NULL;
22727 wxDateTime *arg1 = (wxDateTime *) 0 ;
22728 time_t result;
22729 PyObject * obj0 = 0 ;
22730 char *kwnames[] = {
22731 (char *) "self", NULL
22732 };
22733
22734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
22735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22736 if (SWIG_arg_fail(1)) SWIG_fail;
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
22739 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
22740
22741 wxPyEndAllowThreads(__tstate);
22742 if (PyErr_Occurred()) SWIG_fail;
22743 }
22744 {
22745 resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result));
22746 }
22747 return resultobj;
22748 fail:
22749 return NULL;
22750 }
22751
22752
22753 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj = NULL;
22755 wxDateTime *arg1 = (wxDateTime *) 0 ;
22756 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22757 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22758 int result;
22759 bool temp2 = false ;
22760 PyObject * obj0 = 0 ;
22761 PyObject * obj1 = 0 ;
22762 char *kwnames[] = {
22763 (char *) "self",(char *) "tz", NULL
22764 };
22765
22766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
22767 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22768 if (SWIG_arg_fail(1)) SWIG_fail;
22769 if (obj1) {
22770 {
22771 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22772 temp2 = true;
22773 }
22774 }
22775 {
22776 PyThreadState* __tstate = wxPyBeginAllowThreads();
22777 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
22778
22779 wxPyEndAllowThreads(__tstate);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 {
22783 resultobj = SWIG_From_int(static_cast<int >(result));
22784 }
22785 {
22786 if (temp2) delete arg2;
22787 }
22788 return resultobj;
22789 fail:
22790 {
22791 if (temp2) delete arg2;
22792 }
22793 return NULL;
22794 }
22795
22796
22797 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
22798 PyObject *resultobj = NULL;
22799 wxDateTime *arg1 = (wxDateTime *) 0 ;
22800 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22801 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22802 wxDateTime::Month result;
22803 bool temp2 = false ;
22804 PyObject * obj0 = 0 ;
22805 PyObject * obj1 = 0 ;
22806 char *kwnames[] = {
22807 (char *) "self",(char *) "tz", NULL
22808 };
22809
22810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
22811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22812 if (SWIG_arg_fail(1)) SWIG_fail;
22813 if (obj1) {
22814 {
22815 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22816 temp2 = true;
22817 }
22818 }
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
22822
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 resultobj = SWIG_From_int((result));
22827 {
22828 if (temp2) delete arg2;
22829 }
22830 return resultobj;
22831 fail:
22832 {
22833 if (temp2) delete arg2;
22834 }
22835 return NULL;
22836 }
22837
22838
22839 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
22840 PyObject *resultobj = NULL;
22841 wxDateTime *arg1 = (wxDateTime *) 0 ;
22842 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22843 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22844 int result;
22845 bool temp2 = false ;
22846 PyObject * obj0 = 0 ;
22847 PyObject * obj1 = 0 ;
22848 char *kwnames[] = {
22849 (char *) "self",(char *) "tz", NULL
22850 };
22851
22852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
22853 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22854 if (SWIG_arg_fail(1)) SWIG_fail;
22855 if (obj1) {
22856 {
22857 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22858 temp2 = true;
22859 }
22860 }
22861 {
22862 PyThreadState* __tstate = wxPyBeginAllowThreads();
22863 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
22864
22865 wxPyEndAllowThreads(__tstate);
22866 if (PyErr_Occurred()) SWIG_fail;
22867 }
22868 {
22869 resultobj = SWIG_From_int(static_cast<int >(result));
22870 }
22871 {
22872 if (temp2) delete arg2;
22873 }
22874 return resultobj;
22875 fail:
22876 {
22877 if (temp2) delete arg2;
22878 }
22879 return NULL;
22880 }
22881
22882
22883 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
22884 PyObject *resultobj = NULL;
22885 wxDateTime *arg1 = (wxDateTime *) 0 ;
22886 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22887 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22888 wxDateTime::WeekDay result;
22889 bool temp2 = false ;
22890 PyObject * obj0 = 0 ;
22891 PyObject * obj1 = 0 ;
22892 char *kwnames[] = {
22893 (char *) "self",(char *) "tz", NULL
22894 };
22895
22896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
22897 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22898 if (SWIG_arg_fail(1)) SWIG_fail;
22899 if (obj1) {
22900 {
22901 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22902 temp2 = true;
22903 }
22904 }
22905 {
22906 PyThreadState* __tstate = wxPyBeginAllowThreads();
22907 result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
22908
22909 wxPyEndAllowThreads(__tstate);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 }
22912 resultobj = SWIG_From_int((result));
22913 {
22914 if (temp2) delete arg2;
22915 }
22916 return resultobj;
22917 fail:
22918 {
22919 if (temp2) delete arg2;
22920 }
22921 return NULL;
22922 }
22923
22924
22925 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
22926 PyObject *resultobj = NULL;
22927 wxDateTime *arg1 = (wxDateTime *) 0 ;
22928 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22929 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22930 int result;
22931 bool temp2 = false ;
22932 PyObject * obj0 = 0 ;
22933 PyObject * obj1 = 0 ;
22934 char *kwnames[] = {
22935 (char *) "self",(char *) "tz", NULL
22936 };
22937
22938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
22939 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22940 if (SWIG_arg_fail(1)) SWIG_fail;
22941 if (obj1) {
22942 {
22943 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22944 temp2 = true;
22945 }
22946 }
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
22950
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 {
22955 resultobj = SWIG_From_int(static_cast<int >(result));
22956 }
22957 {
22958 if (temp2) delete arg2;
22959 }
22960 return resultobj;
22961 fail:
22962 {
22963 if (temp2) delete arg2;
22964 }
22965 return NULL;
22966 }
22967
22968
22969 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
22970 PyObject *resultobj = NULL;
22971 wxDateTime *arg1 = (wxDateTime *) 0 ;
22972 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
22973 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
22974 int result;
22975 bool temp2 = false ;
22976 PyObject * obj0 = 0 ;
22977 PyObject * obj1 = 0 ;
22978 char *kwnames[] = {
22979 (char *) "self",(char *) "tz", NULL
22980 };
22981
22982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
22983 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22984 if (SWIG_arg_fail(1)) SWIG_fail;
22985 if (obj1) {
22986 {
22987 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
22988 temp2 = true;
22989 }
22990 }
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
22994
22995 wxPyEndAllowThreads(__tstate);
22996 if (PyErr_Occurred()) SWIG_fail;
22997 }
22998 {
22999 resultobj = SWIG_From_int(static_cast<int >(result));
23000 }
23001 {
23002 if (temp2) delete arg2;
23003 }
23004 return resultobj;
23005 fail:
23006 {
23007 if (temp2) delete arg2;
23008 }
23009 return NULL;
23010 }
23011
23012
23013 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
23014 PyObject *resultobj = NULL;
23015 wxDateTime *arg1 = (wxDateTime *) 0 ;
23016 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
23017 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
23018 int result;
23019 bool temp2 = false ;
23020 PyObject * obj0 = 0 ;
23021 PyObject * obj1 = 0 ;
23022 char *kwnames[] = {
23023 (char *) "self",(char *) "tz", NULL
23024 };
23025
23026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
23027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23028 if (SWIG_arg_fail(1)) SWIG_fail;
23029 if (obj1) {
23030 {
23031 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23032 temp2 = true;
23033 }
23034 }
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
23038
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 {
23043 resultobj = SWIG_From_int(static_cast<int >(result));
23044 }
23045 {
23046 if (temp2) delete arg2;
23047 }
23048 return resultobj;
23049 fail:
23050 {
23051 if (temp2) delete arg2;
23052 }
23053 return NULL;
23054 }
23055
23056
23057 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
23058 PyObject *resultobj = NULL;
23059 wxDateTime *arg1 = (wxDateTime *) 0 ;
23060 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
23061 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
23062 int result;
23063 bool temp2 = false ;
23064 PyObject * obj0 = 0 ;
23065 PyObject * obj1 = 0 ;
23066 char *kwnames[] = {
23067 (char *) "self",(char *) "tz", NULL
23068 };
23069
23070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
23071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23072 if (SWIG_arg_fail(1)) SWIG_fail;
23073 if (obj1) {
23074 {
23075 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23076 temp2 = true;
23077 }
23078 }
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
23082
23083 wxPyEndAllowThreads(__tstate);
23084 if (PyErr_Occurred()) SWIG_fail;
23085 }
23086 {
23087 resultobj = SWIG_From_int(static_cast<int >(result));
23088 }
23089 {
23090 if (temp2) delete arg2;
23091 }
23092 return resultobj;
23093 fail:
23094 {
23095 if (temp2) delete arg2;
23096 }
23097 return NULL;
23098 }
23099
23100
23101 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
23102 PyObject *resultobj = NULL;
23103 wxDateTime *arg1 = (wxDateTime *) 0 ;
23104 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
23105 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
23106 int result;
23107 bool temp2 = false ;
23108 PyObject * obj0 = 0 ;
23109 PyObject * obj1 = 0 ;
23110 char *kwnames[] = {
23111 (char *) "self",(char *) "tz", NULL
23112 };
23113
23114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
23115 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23116 if (SWIG_arg_fail(1)) SWIG_fail;
23117 if (obj1) {
23118 {
23119 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
23120 temp2 = true;
23121 }
23122 }
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
23126
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 {
23131 resultobj = SWIG_From_int(static_cast<int >(result));
23132 }
23133 {
23134 if (temp2) delete arg2;
23135 }
23136 return resultobj;
23137 fail:
23138 {
23139 if (temp2) delete arg2;
23140 }
23141 return NULL;
23142 }
23143
23144
23145 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
23146 PyObject *resultobj = NULL;
23147 wxDateTime *arg1 = (wxDateTime *) 0 ;
23148 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
23149 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
23150 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
23151 int result;
23152 bool temp3 = false ;
23153 PyObject * obj0 = 0 ;
23154 PyObject * obj1 = 0 ;
23155 PyObject * obj2 = 0 ;
23156 char *kwnames[] = {
23157 (char *) "self",(char *) "flags",(char *) "tz", NULL
23158 };
23159
23160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
23161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23162 if (SWIG_arg_fail(1)) SWIG_fail;
23163 if (obj1) {
23164 {
23165 arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1));
23166 if (SWIG_arg_fail(2)) SWIG_fail;
23167 }
23168 }
23169 if (obj2) {
23170 {
23171 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
23172 temp3 = true;
23173 }
23174 }
23175 {
23176 PyThreadState* __tstate = wxPyBeginAllowThreads();
23177 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear(arg2,(wxDateTime::TimeZone const &)*arg3);
23178
23179 wxPyEndAllowThreads(__tstate);
23180 if (PyErr_Occurred()) SWIG_fail;
23181 }
23182 {
23183 resultobj = SWIG_From_int(static_cast<int >(result));
23184 }
23185 {
23186 if (temp3) delete arg3;
23187 }
23188 return resultobj;
23189 fail:
23190 {
23191 if (temp3) delete arg3;
23192 }
23193 return NULL;
23194 }
23195
23196
23197 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
23198 PyObject *resultobj = NULL;
23199 wxDateTime *arg1 = (wxDateTime *) 0 ;
23200 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
23201 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
23202 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
23203 int result;
23204 bool temp3 = false ;
23205 PyObject * obj0 = 0 ;
23206 PyObject * obj1 = 0 ;
23207 PyObject * obj2 = 0 ;
23208 char *kwnames[] = {
23209 (char *) "self",(char *) "flags",(char *) "tz", NULL
23210 };
23211
23212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
23213 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23214 if (SWIG_arg_fail(1)) SWIG_fail;
23215 if (obj1) {
23216 {
23217 arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1));
23218 if (SWIG_arg_fail(2)) SWIG_fail;
23219 }
23220 }
23221 if (obj2) {
23222 {
23223 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
23224 temp3 = true;
23225 }
23226 }
23227 {
23228 PyThreadState* __tstate = wxPyBeginAllowThreads();
23229 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth(arg2,(wxDateTime::TimeZone const &)*arg3);
23230
23231 wxPyEndAllowThreads(__tstate);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 }
23234 {
23235 resultobj = SWIG_From_int(static_cast<int >(result));
23236 }
23237 {
23238 if (temp3) delete arg3;
23239 }
23240 return resultobj;
23241 fail:
23242 {
23243 if (temp3) delete arg3;
23244 }
23245 return NULL;
23246 }
23247
23248
23249 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
23250 PyObject *resultobj = NULL;
23251 wxDateTime *arg1 = (wxDateTime *) 0 ;
23252 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23253 bool result;
23254 PyObject * obj0 = 0 ;
23255 PyObject * obj1 = 0 ;
23256 char *kwnames[] = {
23257 (char *) "self",(char *) "country", NULL
23258 };
23259
23260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
23261 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23262 if (SWIG_arg_fail(1)) SWIG_fail;
23263 if (obj1) {
23264 {
23265 arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1));
23266 if (SWIG_arg_fail(2)) SWIG_fail;
23267 }
23268 }
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
23271 result = (bool)((wxDateTime const *)arg1)->IsWorkDay(arg2);
23272
23273 wxPyEndAllowThreads(__tstate);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 }
23276 {
23277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23278 }
23279 return resultobj;
23280 fail:
23281 return NULL;
23282 }
23283
23284
23285 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
23286 PyObject *resultobj = NULL;
23287 wxDateTime *arg1 = (wxDateTime *) 0 ;
23288 wxDateTime *arg2 = 0 ;
23289 bool result;
23290 PyObject * obj0 = 0 ;
23291 PyObject * obj1 = 0 ;
23292 char *kwnames[] = {
23293 (char *) "self",(char *) "datetime", NULL
23294 };
23295
23296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
23297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23298 if (SWIG_arg_fail(1)) SWIG_fail;
23299 {
23300 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23301 if (SWIG_arg_fail(2)) SWIG_fail;
23302 if (arg2 == NULL) {
23303 SWIG_null_ref("wxDateTime");
23304 }
23305 if (SWIG_arg_fail(2)) SWIG_fail;
23306 }
23307 {
23308 PyThreadState* __tstate = wxPyBeginAllowThreads();
23309 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
23310
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 {
23315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23316 }
23317 return resultobj;
23318 fail:
23319 return NULL;
23320 }
23321
23322
23323 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
23324 PyObject *resultobj = NULL;
23325 wxDateTime *arg1 = (wxDateTime *) 0 ;
23326 wxDateTime *arg2 = 0 ;
23327 bool result;
23328 PyObject * obj0 = 0 ;
23329 PyObject * obj1 = 0 ;
23330 char *kwnames[] = {
23331 (char *) "self",(char *) "datetime", NULL
23332 };
23333
23334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
23335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23336 if (SWIG_arg_fail(1)) SWIG_fail;
23337 {
23338 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23339 if (SWIG_arg_fail(2)) SWIG_fail;
23340 if (arg2 == NULL) {
23341 SWIG_null_ref("wxDateTime");
23342 }
23343 if (SWIG_arg_fail(2)) SWIG_fail;
23344 }
23345 {
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
23348
23349 wxPyEndAllowThreads(__tstate);
23350 if (PyErr_Occurred()) SWIG_fail;
23351 }
23352 {
23353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23354 }
23355 return resultobj;
23356 fail:
23357 return NULL;
23358 }
23359
23360
23361 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
23362 PyObject *resultobj = NULL;
23363 wxDateTime *arg1 = (wxDateTime *) 0 ;
23364 wxDateTime *arg2 = 0 ;
23365 bool result;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23368 char *kwnames[] = {
23369 (char *) "self",(char *) "datetime", NULL
23370 };
23371
23372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
23373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23374 if (SWIG_arg_fail(1)) SWIG_fail;
23375 {
23376 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23377 if (SWIG_arg_fail(2)) SWIG_fail;
23378 if (arg2 == NULL) {
23379 SWIG_null_ref("wxDateTime");
23380 }
23381 if (SWIG_arg_fail(2)) SWIG_fail;
23382 }
23383 {
23384 PyThreadState* __tstate = wxPyBeginAllowThreads();
23385 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
23386
23387 wxPyEndAllowThreads(__tstate);
23388 if (PyErr_Occurred()) SWIG_fail;
23389 }
23390 {
23391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23392 }
23393 return resultobj;
23394 fail:
23395 return NULL;
23396 }
23397
23398
23399 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
23400 PyObject *resultobj = NULL;
23401 wxDateTime *arg1 = (wxDateTime *) 0 ;
23402 wxDateTime *arg2 = 0 ;
23403 wxDateTime *arg3 = 0 ;
23404 bool result;
23405 PyObject * obj0 = 0 ;
23406 PyObject * obj1 = 0 ;
23407 PyObject * obj2 = 0 ;
23408 char *kwnames[] = {
23409 (char *) "self",(char *) "t1",(char *) "t2", NULL
23410 };
23411
23412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
23413 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23414 if (SWIG_arg_fail(1)) SWIG_fail;
23415 {
23416 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23417 if (SWIG_arg_fail(2)) SWIG_fail;
23418 if (arg2 == NULL) {
23419 SWIG_null_ref("wxDateTime");
23420 }
23421 if (SWIG_arg_fail(2)) SWIG_fail;
23422 }
23423 {
23424 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23425 if (SWIG_arg_fail(3)) SWIG_fail;
23426 if (arg3 == NULL) {
23427 SWIG_null_ref("wxDateTime");
23428 }
23429 if (SWIG_arg_fail(3)) SWIG_fail;
23430 }
23431 {
23432 PyThreadState* __tstate = wxPyBeginAllowThreads();
23433 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
23434
23435 wxPyEndAllowThreads(__tstate);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 {
23439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23440 }
23441 return resultobj;
23442 fail:
23443 return NULL;
23444 }
23445
23446
23447 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
23448 PyObject *resultobj = NULL;
23449 wxDateTime *arg1 = (wxDateTime *) 0 ;
23450 wxDateTime *arg2 = 0 ;
23451 wxDateTime *arg3 = 0 ;
23452 bool result;
23453 PyObject * obj0 = 0 ;
23454 PyObject * obj1 = 0 ;
23455 PyObject * obj2 = 0 ;
23456 char *kwnames[] = {
23457 (char *) "self",(char *) "t1",(char *) "t2", NULL
23458 };
23459
23460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
23461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23462 if (SWIG_arg_fail(1)) SWIG_fail;
23463 {
23464 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23465 if (SWIG_arg_fail(2)) SWIG_fail;
23466 if (arg2 == NULL) {
23467 SWIG_null_ref("wxDateTime");
23468 }
23469 if (SWIG_arg_fail(2)) SWIG_fail;
23470 }
23471 {
23472 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23473 if (SWIG_arg_fail(3)) SWIG_fail;
23474 if (arg3 == NULL) {
23475 SWIG_null_ref("wxDateTime");
23476 }
23477 if (SWIG_arg_fail(3)) SWIG_fail;
23478 }
23479 {
23480 PyThreadState* __tstate = wxPyBeginAllowThreads();
23481 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
23482
23483 wxPyEndAllowThreads(__tstate);
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 {
23487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23488 }
23489 return resultobj;
23490 fail:
23491 return NULL;
23492 }
23493
23494
23495 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
23496 PyObject *resultobj = NULL;
23497 wxDateTime *arg1 = (wxDateTime *) 0 ;
23498 wxDateTime *arg2 = 0 ;
23499 bool result;
23500 PyObject * obj0 = 0 ;
23501 PyObject * obj1 = 0 ;
23502 char *kwnames[] = {
23503 (char *) "self",(char *) "dt", NULL
23504 };
23505
23506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
23507 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23508 if (SWIG_arg_fail(1)) SWIG_fail;
23509 {
23510 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23511 if (SWIG_arg_fail(2)) SWIG_fail;
23512 if (arg2 == NULL) {
23513 SWIG_null_ref("wxDateTime");
23514 }
23515 if (SWIG_arg_fail(2)) SWIG_fail;
23516 }
23517 {
23518 PyThreadState* __tstate = wxPyBeginAllowThreads();
23519 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
23520
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 {
23525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23526 }
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
23534 PyObject *resultobj = NULL;
23535 wxDateTime *arg1 = (wxDateTime *) 0 ;
23536 wxDateTime *arg2 = 0 ;
23537 bool result;
23538 PyObject * obj0 = 0 ;
23539 PyObject * obj1 = 0 ;
23540 char *kwnames[] = {
23541 (char *) "self",(char *) "dt", NULL
23542 };
23543
23544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
23545 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23546 if (SWIG_arg_fail(1)) SWIG_fail;
23547 {
23548 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23549 if (SWIG_arg_fail(2)) SWIG_fail;
23550 if (arg2 == NULL) {
23551 SWIG_null_ref("wxDateTime");
23552 }
23553 if (SWIG_arg_fail(2)) SWIG_fail;
23554 }
23555 {
23556 PyThreadState* __tstate = wxPyBeginAllowThreads();
23557 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
23558
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 {
23563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23564 }
23565 return resultobj;
23566 fail:
23567 return NULL;
23568 }
23569
23570
23571 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
23572 PyObject *resultobj = NULL;
23573 wxDateTime *arg1 = (wxDateTime *) 0 ;
23574 wxDateTime *arg2 = 0 ;
23575 wxTimeSpan *arg3 = 0 ;
23576 bool result;
23577 PyObject * obj0 = 0 ;
23578 PyObject * obj1 = 0 ;
23579 PyObject * obj2 = 0 ;
23580 char *kwnames[] = {
23581 (char *) "self",(char *) "dt",(char *) "ts", NULL
23582 };
23583
23584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23585 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23586 if (SWIG_arg_fail(1)) SWIG_fail;
23587 {
23588 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23589 if (SWIG_arg_fail(2)) SWIG_fail;
23590 if (arg2 == NULL) {
23591 SWIG_null_ref("wxDateTime");
23592 }
23593 if (SWIG_arg_fail(2)) SWIG_fail;
23594 }
23595 {
23596 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23597 if (SWIG_arg_fail(3)) SWIG_fail;
23598 if (arg3 == NULL) {
23599 SWIG_null_ref("wxTimeSpan");
23600 }
23601 if (SWIG_arg_fail(3)) SWIG_fail;
23602 }
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
23606
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 {
23611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23612 }
23613 return resultobj;
23614 fail:
23615 return NULL;
23616 }
23617
23618
23619 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
23620 PyObject *resultobj = NULL;
23621 wxDateTime *arg1 = (wxDateTime *) 0 ;
23622 wxTimeSpan *arg2 = 0 ;
23623 wxDateTime *result;
23624 PyObject * obj0 = 0 ;
23625 PyObject * obj1 = 0 ;
23626 char *kwnames[] = {
23627 (char *) "self",(char *) "diff", NULL
23628 };
23629
23630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
23631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23632 if (SWIG_arg_fail(1)) SWIG_fail;
23633 {
23634 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23635 if (SWIG_arg_fail(2)) SWIG_fail;
23636 if (arg2 == NULL) {
23637 SWIG_null_ref("wxTimeSpan");
23638 }
23639 if (SWIG_arg_fail(2)) SWIG_fail;
23640 }
23641 {
23642 PyThreadState* __tstate = wxPyBeginAllowThreads();
23643 {
23644 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
23645 result = (wxDateTime *) &_result_ref;
23646 }
23647
23648 wxPyEndAllowThreads(__tstate);
23649 if (PyErr_Occurred()) SWIG_fail;
23650 }
23651 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23652 return resultobj;
23653 fail:
23654 return NULL;
23655 }
23656
23657
23658 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
23659 PyObject *resultobj = NULL;
23660 wxDateTime *arg1 = (wxDateTime *) 0 ;
23661 wxDateSpan *arg2 = 0 ;
23662 wxDateTime *result;
23663 PyObject * obj0 = 0 ;
23664 PyObject * obj1 = 0 ;
23665 char *kwnames[] = {
23666 (char *) "self",(char *) "diff", NULL
23667 };
23668
23669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
23670 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23671 if (SWIG_arg_fail(1)) SWIG_fail;
23672 {
23673 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23674 if (SWIG_arg_fail(2)) SWIG_fail;
23675 if (arg2 == NULL) {
23676 SWIG_null_ref("wxDateSpan");
23677 }
23678 if (SWIG_arg_fail(2)) SWIG_fail;
23679 }
23680 {
23681 PyThreadState* __tstate = wxPyBeginAllowThreads();
23682 {
23683 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23684 result = (wxDateTime *) &_result_ref;
23685 }
23686
23687 wxPyEndAllowThreads(__tstate);
23688 if (PyErr_Occurred()) SWIG_fail;
23689 }
23690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23691 return resultobj;
23692 fail:
23693 return NULL;
23694 }
23695
23696
23697 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
23698 PyObject *resultobj = NULL;
23699 wxDateTime *arg1 = (wxDateTime *) 0 ;
23700 wxTimeSpan *arg2 = 0 ;
23701 wxDateTime *result;
23702 PyObject * obj0 = 0 ;
23703 PyObject * obj1 = 0 ;
23704 char *kwnames[] = {
23705 (char *) "self",(char *) "diff", NULL
23706 };
23707
23708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
23709 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23710 if (SWIG_arg_fail(1)) SWIG_fail;
23711 {
23712 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23713 if (SWIG_arg_fail(2)) SWIG_fail;
23714 if (arg2 == NULL) {
23715 SWIG_null_ref("wxTimeSpan");
23716 }
23717 if (SWIG_arg_fail(2)) SWIG_fail;
23718 }
23719 {
23720 PyThreadState* __tstate = wxPyBeginAllowThreads();
23721 {
23722 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
23723 result = (wxDateTime *) &_result_ref;
23724 }
23725
23726 wxPyEndAllowThreads(__tstate);
23727 if (PyErr_Occurred()) SWIG_fail;
23728 }
23729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23730 return resultobj;
23731 fail:
23732 return NULL;
23733 }
23734
23735
23736 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
23737 PyObject *resultobj = NULL;
23738 wxDateTime *arg1 = (wxDateTime *) 0 ;
23739 wxDateSpan *arg2 = 0 ;
23740 wxDateTime *result;
23741 PyObject * obj0 = 0 ;
23742 PyObject * obj1 = 0 ;
23743 char *kwnames[] = {
23744 (char *) "self",(char *) "diff", NULL
23745 };
23746
23747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
23748 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23749 if (SWIG_arg_fail(1)) SWIG_fail;
23750 {
23751 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23752 if (SWIG_arg_fail(2)) SWIG_fail;
23753 if (arg2 == NULL) {
23754 SWIG_null_ref("wxDateSpan");
23755 }
23756 if (SWIG_arg_fail(2)) SWIG_fail;
23757 }
23758 {
23759 PyThreadState* __tstate = wxPyBeginAllowThreads();
23760 {
23761 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23762 result = (wxDateTime *) &_result_ref;
23763 }
23764
23765 wxPyEndAllowThreads(__tstate);
23766 if (PyErr_Occurred()) SWIG_fail;
23767 }
23768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
23769 return resultobj;
23770 fail:
23771 return NULL;
23772 }
23773
23774
23775 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23776 PyObject *resultobj = NULL;
23777 wxDateTime *arg1 = (wxDateTime *) 0 ;
23778 wxDateTime *arg2 = 0 ;
23779 wxTimeSpan result;
23780 PyObject * obj0 = 0 ;
23781 PyObject * obj1 = 0 ;
23782 char *kwnames[] = {
23783 (char *) "self",(char *) "dt", NULL
23784 };
23785
23786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
23787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23788 if (SWIG_arg_fail(1)) SWIG_fail;
23789 {
23790 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
23791 if (SWIG_arg_fail(2)) SWIG_fail;
23792 if (arg2 == NULL) {
23793 SWIG_null_ref("wxDateTime");
23794 }
23795 if (SWIG_arg_fail(2)) SWIG_fail;
23796 }
23797 {
23798 PyThreadState* __tstate = wxPyBeginAllowThreads();
23799 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
23800
23801 wxPyEndAllowThreads(__tstate);
23802 if (PyErr_Occurred()) SWIG_fail;
23803 }
23804 {
23805 wxTimeSpan * resultptr;
23806 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
23807 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
23808 }
23809 return resultobj;
23810 fail:
23811 return NULL;
23812 }
23813
23814
23815 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
23816 PyObject *resultobj = NULL;
23817 wxDateTime *arg1 = (wxDateTime *) 0 ;
23818 wxTimeSpan *arg2 = 0 ;
23819 wxDateTime *result;
23820 PyObject * obj0 = 0 ;
23821 PyObject * obj1 = 0 ;
23822
23823 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
23824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23825 if (SWIG_arg_fail(1)) SWIG_fail;
23826 {
23827 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23828 if (SWIG_arg_fail(2)) SWIG_fail;
23829 if (arg2 == NULL) {
23830 SWIG_null_ref("wxTimeSpan");
23831 }
23832 if (SWIG_arg_fail(2)) SWIG_fail;
23833 }
23834 {
23835 PyThreadState* __tstate = wxPyBeginAllowThreads();
23836 {
23837 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
23838 result = (wxDateTime *) &_result_ref;
23839 }
23840
23841 wxPyEndAllowThreads(__tstate);
23842 if (PyErr_Occurred()) SWIG_fail;
23843 }
23844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23845 return resultobj;
23846 fail:
23847 return NULL;
23848 }
23849
23850
23851 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
23852 PyObject *resultobj = NULL;
23853 wxDateTime *arg1 = (wxDateTime *) 0 ;
23854 wxDateSpan *arg2 = 0 ;
23855 wxDateTime *result;
23856 PyObject * obj0 = 0 ;
23857 PyObject * obj1 = 0 ;
23858
23859 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
23860 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23861 if (SWIG_arg_fail(1)) SWIG_fail;
23862 {
23863 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
23864 if (SWIG_arg_fail(2)) SWIG_fail;
23865 if (arg2 == NULL) {
23866 SWIG_null_ref("wxDateSpan");
23867 }
23868 if (SWIG_arg_fail(2)) SWIG_fail;
23869 }
23870 {
23871 PyThreadState* __tstate = wxPyBeginAllowThreads();
23872 {
23873 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23874 result = (wxDateTime *) &_result_ref;
23875 }
23876
23877 wxPyEndAllowThreads(__tstate);
23878 if (PyErr_Occurred()) SWIG_fail;
23879 }
23880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23881 return resultobj;
23882 fail:
23883 return NULL;
23884 }
23885
23886
23887 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
23888 int argc;
23889 PyObject *argv[3];
23890 int ii;
23891
23892 argc = PyObject_Length(args);
23893 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23894 argv[ii] = PyTuple_GetItem(args,ii);
23895 }
23896 if (argc == 2) {
23897 int _v;
23898 {
23899 void *ptr;
23900 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
23901 _v = 0;
23902 PyErr_Clear();
23903 } else {
23904 _v = 1;
23905 }
23906 }
23907 if (_v) {
23908 {
23909 void *ptr = 0;
23910 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
23911 _v = 0;
23912 PyErr_Clear();
23913 } else {
23914 _v = (ptr != 0);
23915 }
23916 }
23917 if (_v) {
23918 return _wrap_DateTime___iadd____SWIG_0(self,args);
23919 }
23920 }
23921 }
23922 if (argc == 2) {
23923 int _v;
23924 {
23925 void *ptr;
23926 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
23927 _v = 0;
23928 PyErr_Clear();
23929 } else {
23930 _v = 1;
23931 }
23932 }
23933 if (_v) {
23934 {
23935 void *ptr = 0;
23936 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
23937 _v = 0;
23938 PyErr_Clear();
23939 } else {
23940 _v = (ptr != 0);
23941 }
23942 }
23943 if (_v) {
23944 return _wrap_DateTime___iadd____SWIG_1(self,args);
23945 }
23946 }
23947 }
23948
23949 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'");
23950 return NULL;
23951 }
23952
23953
23954 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
23955 PyObject *resultobj = NULL;
23956 wxDateTime *arg1 = (wxDateTime *) 0 ;
23957 wxTimeSpan *arg2 = 0 ;
23958 wxDateTime *result;
23959 PyObject * obj0 = 0 ;
23960 PyObject * obj1 = 0 ;
23961
23962 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
23963 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
23964 if (SWIG_arg_fail(1)) SWIG_fail;
23965 {
23966 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
23967 if (SWIG_arg_fail(2)) SWIG_fail;
23968 if (arg2 == NULL) {
23969 SWIG_null_ref("wxTimeSpan");
23970 }
23971 if (SWIG_arg_fail(2)) SWIG_fail;
23972 }
23973 {
23974 PyThreadState* __tstate = wxPyBeginAllowThreads();
23975 {
23976 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
23977 result = (wxDateTime *) &_result_ref;
23978 }
23979
23980 wxPyEndAllowThreads(__tstate);
23981 if (PyErr_Occurred()) SWIG_fail;
23982 }
23983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
23984 return resultobj;
23985 fail:
23986 return NULL;
23987 }
23988
23989
23990 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
23991 PyObject *resultobj = NULL;
23992 wxDateTime *arg1 = (wxDateTime *) 0 ;
23993 wxDateSpan *arg2 = 0 ;
23994 wxDateTime *result;
23995 PyObject * obj0 = 0 ;
23996 PyObject * obj1 = 0 ;
23997
23998 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
23999 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
24000 if (SWIG_arg_fail(1)) SWIG_fail;
24001 {
24002 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24003 if (SWIG_arg_fail(2)) SWIG_fail;
24004 if (arg2 == NULL) {
24005 SWIG_null_ref("wxDateSpan");
24006 }
24007 if (SWIG_arg_fail(2)) SWIG_fail;
24008 }
24009 {
24010 PyThreadState* __tstate = wxPyBeginAllowThreads();
24011 {
24012 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
24013 result = (wxDateTime *) &_result_ref;
24014 }
24015
24016 wxPyEndAllowThreads(__tstate);
24017 if (PyErr_Occurred()) SWIG_fail;
24018 }
24019 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
24020 return resultobj;
24021 fail:
24022 return NULL;
24023 }
24024
24025
24026 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
24027 int argc;
24028 PyObject *argv[3];
24029 int ii;
24030
24031 argc = PyObject_Length(args);
24032 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24033 argv[ii] = PyTuple_GetItem(args,ii);
24034 }
24035 if (argc == 2) {
24036 int _v;
24037 {
24038 void *ptr;
24039 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24040 _v = 0;
24041 PyErr_Clear();
24042 } else {
24043 _v = 1;
24044 }
24045 }
24046 if (_v) {
24047 {
24048 void *ptr = 0;
24049 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24050 _v = 0;
24051 PyErr_Clear();
24052 } else {
24053 _v = (ptr != 0);
24054 }
24055 }
24056 if (_v) {
24057 return _wrap_DateTime___isub____SWIG_0(self,args);
24058 }
24059 }
24060 }
24061 if (argc == 2) {
24062 int _v;
24063 {
24064 void *ptr;
24065 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24066 _v = 0;
24067 PyErr_Clear();
24068 } else {
24069 _v = 1;
24070 }
24071 }
24072 if (_v) {
24073 {
24074 void *ptr = 0;
24075 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24076 _v = 0;
24077 PyErr_Clear();
24078 } else {
24079 _v = (ptr != 0);
24080 }
24081 }
24082 if (_v) {
24083 return _wrap_DateTime___isub____SWIG_1(self,args);
24084 }
24085 }
24086 }
24087
24088 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'");
24089 return NULL;
24090 }
24091
24092
24093 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
24094 PyObject *resultobj = NULL;
24095 wxDateTime *arg1 = (wxDateTime *) 0 ;
24096 wxTimeSpan *arg2 = 0 ;
24097 wxDateTime result;
24098 PyObject * obj0 = 0 ;
24099 PyObject * obj1 = 0 ;
24100
24101 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
24102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24103 if (SWIG_arg_fail(1)) SWIG_fail;
24104 {
24105 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
24106 if (SWIG_arg_fail(2)) SWIG_fail;
24107 if (arg2 == NULL) {
24108 SWIG_null_ref("wxTimeSpan");
24109 }
24110 if (SWIG_arg_fail(2)) SWIG_fail;
24111 }
24112 {
24113 PyThreadState* __tstate = wxPyBeginAllowThreads();
24114 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
24115
24116 wxPyEndAllowThreads(__tstate);
24117 if (PyErr_Occurred()) SWIG_fail;
24118 }
24119 {
24120 wxDateTime * resultptr;
24121 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24122 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24123 }
24124 return resultobj;
24125 fail:
24126 return NULL;
24127 }
24128
24129
24130 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
24131 PyObject *resultobj = NULL;
24132 wxDateTime *arg1 = (wxDateTime *) 0 ;
24133 wxDateSpan *arg2 = 0 ;
24134 wxDateTime result;
24135 PyObject * obj0 = 0 ;
24136 PyObject * obj1 = 0 ;
24137
24138 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
24139 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24140 if (SWIG_arg_fail(1)) SWIG_fail;
24141 {
24142 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24143 if (SWIG_arg_fail(2)) SWIG_fail;
24144 if (arg2 == NULL) {
24145 SWIG_null_ref("wxDateSpan");
24146 }
24147 if (SWIG_arg_fail(2)) SWIG_fail;
24148 }
24149 {
24150 PyThreadState* __tstate = wxPyBeginAllowThreads();
24151 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
24152
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 {
24157 wxDateTime * resultptr;
24158 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24160 }
24161 return resultobj;
24162 fail:
24163 return NULL;
24164 }
24165
24166
24167 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
24168 int argc;
24169 PyObject *argv[3];
24170 int ii;
24171
24172 argc = PyObject_Length(args);
24173 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24174 argv[ii] = PyTuple_GetItem(args,ii);
24175 }
24176 if (argc == 2) {
24177 int _v;
24178 {
24179 void *ptr;
24180 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24181 _v = 0;
24182 PyErr_Clear();
24183 } else {
24184 _v = 1;
24185 }
24186 }
24187 if (_v) {
24188 {
24189 void *ptr = 0;
24190 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24191 _v = 0;
24192 PyErr_Clear();
24193 } else {
24194 _v = (ptr != 0);
24195 }
24196 }
24197 if (_v) {
24198 return _wrap_DateTime___add____SWIG_0(self,args);
24199 }
24200 }
24201 }
24202 if (argc == 2) {
24203 int _v;
24204 {
24205 void *ptr;
24206 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24207 _v = 0;
24208 PyErr_Clear();
24209 } else {
24210 _v = 1;
24211 }
24212 }
24213 if (_v) {
24214 {
24215 void *ptr = 0;
24216 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24217 _v = 0;
24218 PyErr_Clear();
24219 } else {
24220 _v = (ptr != 0);
24221 }
24222 }
24223 if (_v) {
24224 return _wrap_DateTime___add____SWIG_1(self,args);
24225 }
24226 }
24227 }
24228
24229 Py_INCREF(Py_NotImplemented);
24230 return Py_NotImplemented;
24231 }
24232
24233
24234 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
24235 PyObject *resultobj = NULL;
24236 wxDateTime *arg1 = (wxDateTime *) 0 ;
24237 wxDateTime *arg2 = 0 ;
24238 wxTimeSpan result;
24239 PyObject * obj0 = 0 ;
24240 PyObject * obj1 = 0 ;
24241
24242 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24243 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24244 if (SWIG_arg_fail(1)) SWIG_fail;
24245 {
24246 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24247 if (SWIG_arg_fail(2)) SWIG_fail;
24248 if (arg2 == NULL) {
24249 SWIG_null_ref("wxDateTime");
24250 }
24251 if (SWIG_arg_fail(2)) SWIG_fail;
24252 }
24253 {
24254 PyThreadState* __tstate = wxPyBeginAllowThreads();
24255 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
24256
24257 wxPyEndAllowThreads(__tstate);
24258 if (PyErr_Occurred()) SWIG_fail;
24259 }
24260 {
24261 wxTimeSpan * resultptr;
24262 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
24263 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
24264 }
24265 return resultobj;
24266 fail:
24267 return NULL;
24268 }
24269
24270
24271 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
24272 PyObject *resultobj = NULL;
24273 wxDateTime *arg1 = (wxDateTime *) 0 ;
24274 wxTimeSpan *arg2 = 0 ;
24275 wxDateTime result;
24276 PyObject * obj0 = 0 ;
24277 PyObject * obj1 = 0 ;
24278
24279 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24280 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24281 if (SWIG_arg_fail(1)) SWIG_fail;
24282 {
24283 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
24284 if (SWIG_arg_fail(2)) SWIG_fail;
24285 if (arg2 == NULL) {
24286 SWIG_null_ref("wxTimeSpan");
24287 }
24288 if (SWIG_arg_fail(2)) SWIG_fail;
24289 }
24290 {
24291 PyThreadState* __tstate = wxPyBeginAllowThreads();
24292 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
24293
24294 wxPyEndAllowThreads(__tstate);
24295 if (PyErr_Occurred()) SWIG_fail;
24296 }
24297 {
24298 wxDateTime * resultptr;
24299 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24300 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24301 }
24302 return resultobj;
24303 fail:
24304 return NULL;
24305 }
24306
24307
24308 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
24309 PyObject *resultobj = NULL;
24310 wxDateTime *arg1 = (wxDateTime *) 0 ;
24311 wxDateSpan *arg2 = 0 ;
24312 wxDateTime result;
24313 PyObject * obj0 = 0 ;
24314 PyObject * obj1 = 0 ;
24315
24316 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
24317 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24318 if (SWIG_arg_fail(1)) SWIG_fail;
24319 {
24320 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
24321 if (SWIG_arg_fail(2)) SWIG_fail;
24322 if (arg2 == NULL) {
24323 SWIG_null_ref("wxDateSpan");
24324 }
24325 if (SWIG_arg_fail(2)) SWIG_fail;
24326 }
24327 {
24328 PyThreadState* __tstate = wxPyBeginAllowThreads();
24329 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
24330
24331 wxPyEndAllowThreads(__tstate);
24332 if (PyErr_Occurred()) SWIG_fail;
24333 }
24334 {
24335 wxDateTime * resultptr;
24336 resultptr = new wxDateTime(static_cast<wxDateTime & >(result));
24337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
24338 }
24339 return resultobj;
24340 fail:
24341 return NULL;
24342 }
24343
24344
24345 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
24346 int argc;
24347 PyObject *argv[3];
24348 int ii;
24349
24350 argc = PyObject_Length(args);
24351 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24352 argv[ii] = PyTuple_GetItem(args,ii);
24353 }
24354 if (argc == 2) {
24355 int _v;
24356 {
24357 void *ptr;
24358 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24359 _v = 0;
24360 PyErr_Clear();
24361 } else {
24362 _v = 1;
24363 }
24364 }
24365 if (_v) {
24366 {
24367 void *ptr = 0;
24368 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24369 _v = 0;
24370 PyErr_Clear();
24371 } else {
24372 _v = (ptr != 0);
24373 }
24374 }
24375 if (_v) {
24376 return _wrap_DateTime___sub____SWIG_0(self,args);
24377 }
24378 }
24379 }
24380 if (argc == 2) {
24381 int _v;
24382 {
24383 void *ptr;
24384 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24385 _v = 0;
24386 PyErr_Clear();
24387 } else {
24388 _v = 1;
24389 }
24390 }
24391 if (_v) {
24392 {
24393 void *ptr = 0;
24394 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
24395 _v = 0;
24396 PyErr_Clear();
24397 } else {
24398 _v = (ptr != 0);
24399 }
24400 }
24401 if (_v) {
24402 return _wrap_DateTime___sub____SWIG_1(self,args);
24403 }
24404 }
24405 }
24406 if (argc == 2) {
24407 int _v;
24408 {
24409 void *ptr;
24410 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
24411 _v = 0;
24412 PyErr_Clear();
24413 } else {
24414 _v = 1;
24415 }
24416 }
24417 if (_v) {
24418 {
24419 void *ptr = 0;
24420 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
24421 _v = 0;
24422 PyErr_Clear();
24423 } else {
24424 _v = (ptr != 0);
24425 }
24426 }
24427 if (_v) {
24428 return _wrap_DateTime___sub____SWIG_2(self,args);
24429 }
24430 }
24431 }
24432
24433 Py_INCREF(Py_NotImplemented);
24434 return Py_NotImplemented;
24435 }
24436
24437
24438 static PyObject *_wrap_DateTime___lt__(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___lt__",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___lt__(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___le__(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___le__",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___le__(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___gt__(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___gt__",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___gt__(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___ge__(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___ge__",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___ge__(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___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24567 PyObject *resultobj = NULL;
24568 wxDateTime *arg1 = (wxDateTime *) 0 ;
24569 wxDateTime *arg2 = (wxDateTime *) 0 ;
24570 bool result;
24571 PyObject * obj0 = 0 ;
24572 PyObject * obj1 = 0 ;
24573 char *kwnames[] = {
24574 (char *) "self",(char *) "other", NULL
24575 };
24576
24577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) goto fail;
24578 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24579 if (SWIG_arg_fail(1)) SWIG_fail;
24580 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24581 if (SWIG_arg_fail(2)) SWIG_fail;
24582 {
24583 PyThreadState* __tstate = wxPyBeginAllowThreads();
24584 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
24585
24586 wxPyEndAllowThreads(__tstate);
24587 if (PyErr_Occurred()) SWIG_fail;
24588 }
24589 {
24590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24591 }
24592 return resultobj;
24593 fail:
24594 return NULL;
24595 }
24596
24597
24598 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24599 PyObject *resultobj = NULL;
24600 wxDateTime *arg1 = (wxDateTime *) 0 ;
24601 wxDateTime *arg2 = (wxDateTime *) 0 ;
24602 bool result;
24603 PyObject * obj0 = 0 ;
24604 PyObject * obj1 = 0 ;
24605 char *kwnames[] = {
24606 (char *) "self",(char *) "other", NULL
24607 };
24608
24609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) goto fail;
24610 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24611 if (SWIG_arg_fail(1)) SWIG_fail;
24612 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24613 if (SWIG_arg_fail(2)) SWIG_fail;
24614 {
24615 PyThreadState* __tstate = wxPyBeginAllowThreads();
24616 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
24617
24618 wxPyEndAllowThreads(__tstate);
24619 if (PyErr_Occurred()) SWIG_fail;
24620 }
24621 {
24622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24623 }
24624 return resultobj;
24625 fail:
24626 return NULL;
24627 }
24628
24629
24630 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj = NULL;
24632 wxDateTime *arg1 = (wxDateTime *) 0 ;
24633 wxString *arg2 = 0 ;
24634 int result;
24635 bool temp2 = false ;
24636 PyObject * obj0 = 0 ;
24637 PyObject * obj1 = 0 ;
24638 char *kwnames[] = {
24639 (char *) "self",(char *) "date", NULL
24640 };
24641
24642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
24643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24644 if (SWIG_arg_fail(1)) SWIG_fail;
24645 {
24646 arg2 = wxString_in_helper(obj1);
24647 if (arg2 == NULL) SWIG_fail;
24648 temp2 = true;
24649 }
24650 {
24651 PyThreadState* __tstate = wxPyBeginAllowThreads();
24652 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
24653
24654 wxPyEndAllowThreads(__tstate);
24655 if (PyErr_Occurred()) SWIG_fail;
24656 }
24657 {
24658 resultobj = SWIG_From_int(static_cast<int >(result));
24659 }
24660 {
24661 if (temp2)
24662 delete arg2;
24663 }
24664 return resultobj;
24665 fail:
24666 {
24667 if (temp2)
24668 delete arg2;
24669 }
24670 return NULL;
24671 }
24672
24673
24674 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24675 PyObject *resultobj = NULL;
24676 wxDateTime *arg1 = (wxDateTime *) 0 ;
24677 wxString *arg2 = 0 ;
24678 wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ;
24679 wxString *arg3 = (wxString *) &arg3_defvalue ;
24680 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
24681 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
24682 int result;
24683 bool temp2 = false ;
24684 bool temp3 = false ;
24685 PyObject * obj0 = 0 ;
24686 PyObject * obj1 = 0 ;
24687 PyObject * obj2 = 0 ;
24688 PyObject * obj3 = 0 ;
24689 char *kwnames[] = {
24690 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
24691 };
24692
24693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24695 if (SWIG_arg_fail(1)) SWIG_fail;
24696 {
24697 arg2 = wxString_in_helper(obj1);
24698 if (arg2 == NULL) SWIG_fail;
24699 temp2 = true;
24700 }
24701 if (obj2) {
24702 {
24703 arg3 = wxString_in_helper(obj2);
24704 if (arg3 == NULL) SWIG_fail;
24705 temp3 = true;
24706 }
24707 }
24708 if (obj3) {
24709 {
24710 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24711 if (SWIG_arg_fail(4)) SWIG_fail;
24712 if (arg4 == NULL) {
24713 SWIG_null_ref("wxDateTime");
24714 }
24715 if (SWIG_arg_fail(4)) SWIG_fail;
24716 }
24717 }
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
24721
24722 wxPyEndAllowThreads(__tstate);
24723 if (PyErr_Occurred()) SWIG_fail;
24724 }
24725 {
24726 resultobj = SWIG_From_int(static_cast<int >(result));
24727 }
24728 {
24729 if (temp2)
24730 delete arg2;
24731 }
24732 {
24733 if (temp3)
24734 delete arg3;
24735 }
24736 return resultobj;
24737 fail:
24738 {
24739 if (temp2)
24740 delete arg2;
24741 }
24742 {
24743 if (temp3)
24744 delete arg3;
24745 }
24746 return NULL;
24747 }
24748
24749
24750 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
24751 PyObject *resultobj = NULL;
24752 wxDateTime *arg1 = (wxDateTime *) 0 ;
24753 wxString *arg2 = 0 ;
24754 int result;
24755 bool temp2 = false ;
24756 PyObject * obj0 = 0 ;
24757 PyObject * obj1 = 0 ;
24758 char *kwnames[] = {
24759 (char *) "self",(char *) "datetime", NULL
24760 };
24761
24762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
24763 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24764 if (SWIG_arg_fail(1)) SWIG_fail;
24765 {
24766 arg2 = wxString_in_helper(obj1);
24767 if (arg2 == NULL) SWIG_fail;
24768 temp2 = true;
24769 }
24770 {
24771 PyThreadState* __tstate = wxPyBeginAllowThreads();
24772 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
24773
24774 wxPyEndAllowThreads(__tstate);
24775 if (PyErr_Occurred()) SWIG_fail;
24776 }
24777 {
24778 resultobj = SWIG_From_int(static_cast<int >(result));
24779 }
24780 {
24781 if (temp2)
24782 delete arg2;
24783 }
24784 return resultobj;
24785 fail:
24786 {
24787 if (temp2)
24788 delete arg2;
24789 }
24790 return NULL;
24791 }
24792
24793
24794 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
24795 PyObject *resultobj = NULL;
24796 wxDateTime *arg1 = (wxDateTime *) 0 ;
24797 wxString *arg2 = 0 ;
24798 int result;
24799 bool temp2 = false ;
24800 PyObject * obj0 = 0 ;
24801 PyObject * obj1 = 0 ;
24802 char *kwnames[] = {
24803 (char *) "self",(char *) "date", NULL
24804 };
24805
24806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
24807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24808 if (SWIG_arg_fail(1)) SWIG_fail;
24809 {
24810 arg2 = wxString_in_helper(obj1);
24811 if (arg2 == NULL) SWIG_fail;
24812 temp2 = true;
24813 }
24814 {
24815 PyThreadState* __tstate = wxPyBeginAllowThreads();
24816 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
24817
24818 wxPyEndAllowThreads(__tstate);
24819 if (PyErr_Occurred()) SWIG_fail;
24820 }
24821 {
24822 resultobj = SWIG_From_int(static_cast<int >(result));
24823 }
24824 {
24825 if (temp2)
24826 delete arg2;
24827 }
24828 return resultobj;
24829 fail:
24830 {
24831 if (temp2)
24832 delete arg2;
24833 }
24834 return NULL;
24835 }
24836
24837
24838 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
24839 PyObject *resultobj = NULL;
24840 wxDateTime *arg1 = (wxDateTime *) 0 ;
24841 wxString *arg2 = 0 ;
24842 int result;
24843 bool temp2 = false ;
24844 PyObject * obj0 = 0 ;
24845 PyObject * obj1 = 0 ;
24846 char *kwnames[] = {
24847 (char *) "self",(char *) "time", NULL
24848 };
24849
24850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
24851 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24852 if (SWIG_arg_fail(1)) SWIG_fail;
24853 {
24854 arg2 = wxString_in_helper(obj1);
24855 if (arg2 == NULL) SWIG_fail;
24856 temp2 = true;
24857 }
24858 {
24859 PyThreadState* __tstate = wxPyBeginAllowThreads();
24860 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
24861
24862 wxPyEndAllowThreads(__tstate);
24863 if (PyErr_Occurred()) SWIG_fail;
24864 }
24865 {
24866 resultobj = SWIG_From_int(static_cast<int >(result));
24867 }
24868 {
24869 if (temp2)
24870 delete arg2;
24871 }
24872 return resultobj;
24873 fail:
24874 {
24875 if (temp2)
24876 delete arg2;
24877 }
24878 return NULL;
24879 }
24880
24881
24882 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
24883 PyObject *resultobj = NULL;
24884 wxDateTime *arg1 = (wxDateTime *) 0 ;
24885 wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ;
24886 wxString *arg2 = (wxString *) &arg2_defvalue ;
24887 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
24888 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
24889 wxString result;
24890 bool temp2 = false ;
24891 bool temp3 = false ;
24892 PyObject * obj0 = 0 ;
24893 PyObject * obj1 = 0 ;
24894 PyObject * obj2 = 0 ;
24895 char *kwnames[] = {
24896 (char *) "self",(char *) "format",(char *) "tz", NULL
24897 };
24898
24899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
24900 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
24901 if (SWIG_arg_fail(1)) SWIG_fail;
24902 if (obj1) {
24903 {
24904 arg2 = wxString_in_helper(obj1);
24905 if (arg2 == NULL) SWIG_fail;
24906 temp2 = true;
24907 }
24908 }
24909 if (obj2) {
24910 {
24911 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
24912 temp3 = true;
24913 }
24914 }
24915 {
24916 PyThreadState* __tstate = wxPyBeginAllowThreads();
24917 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
24918
24919 wxPyEndAllowThreads(__tstate);
24920 if (PyErr_Occurred()) SWIG_fail;
24921 }
24922 {
24923 #if wxUSE_UNICODE
24924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24925 #else
24926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24927 #endif
24928 }
24929 {
24930 if (temp2)
24931 delete arg2;
24932 }
24933 {
24934 if (temp3) delete arg3;
24935 }
24936 return resultobj;
24937 fail:
24938 {
24939 if (temp2)
24940 delete arg2;
24941 }
24942 {
24943 if (temp3) delete arg3;
24944 }
24945 return NULL;
24946 }
24947
24948
24949 static PyObject *_wrap_DateTime_FormatDate(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_FormatDate",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)->FormatDate();
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_FormatTime(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_FormatTime",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)->FormatTime();
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 *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
25014 PyObject *resultobj = NULL;
25015 wxDateTime *arg1 = (wxDateTime *) 0 ;
25016 wxString result;
25017 PyObject * obj0 = 0 ;
25018 char *kwnames[] = {
25019 (char *) "self", NULL
25020 };
25021
25022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
25023 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
25024 if (SWIG_arg_fail(1)) SWIG_fail;
25025 {
25026 PyThreadState* __tstate = wxPyBeginAllowThreads();
25027 result = ((wxDateTime const *)arg1)->FormatISODate();
25028
25029 wxPyEndAllowThreads(__tstate);
25030 if (PyErr_Occurred()) SWIG_fail;
25031 }
25032 {
25033 #if wxUSE_UNICODE
25034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25035 #else
25036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25037 #endif
25038 }
25039 return resultobj;
25040 fail:
25041 return NULL;
25042 }
25043
25044
25045 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
25046 PyObject *resultobj = NULL;
25047 wxDateTime *arg1 = (wxDateTime *) 0 ;
25048 wxString result;
25049 PyObject * obj0 = 0 ;
25050 char *kwnames[] = {
25051 (char *) "self", NULL
25052 };
25053
25054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
25055 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
25056 if (SWIG_arg_fail(1)) SWIG_fail;
25057 {
25058 PyThreadState* __tstate = wxPyBeginAllowThreads();
25059 result = ((wxDateTime const *)arg1)->FormatISOTime();
25060
25061 wxPyEndAllowThreads(__tstate);
25062 if (PyErr_Occurred()) SWIG_fail;
25063 }
25064 {
25065 #if wxUSE_UNICODE
25066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25067 #else
25068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25069 #endif
25070 }
25071 return resultobj;
25072 fail:
25073 return NULL;
25074 }
25075
25076
25077 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
25078 PyObject *obj;
25079 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25080 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
25081 Py_INCREF(obj);
25082 return Py_BuildValue((char *)"");
25083 }
25084 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
25085 PyObject *resultobj = NULL;
25086 long arg1 ;
25087 wxTimeSpan result;
25088 PyObject * obj0 = 0 ;
25089 char *kwnames[] = {
25090 (char *) "sec", NULL
25091 };
25092
25093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
25094 {
25095 arg1 = static_cast<long >(SWIG_As_long(obj0));
25096 if (SWIG_arg_fail(1)) SWIG_fail;
25097 }
25098 {
25099 PyThreadState* __tstate = wxPyBeginAllowThreads();
25100 result = wxTimeSpan::Seconds(arg1);
25101
25102 wxPyEndAllowThreads(__tstate);
25103 if (PyErr_Occurred()) SWIG_fail;
25104 }
25105 {
25106 wxTimeSpan * resultptr;
25107 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25108 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25109 }
25110 return resultobj;
25111 fail:
25112 return NULL;
25113 }
25114
25115
25116 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
25117 PyObject *resultobj = NULL;
25118 wxTimeSpan result;
25119 char *kwnames[] = {
25120 NULL
25121 };
25122
25123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
25124 {
25125 PyThreadState* __tstate = wxPyBeginAllowThreads();
25126 result = wxTimeSpan::Second();
25127
25128 wxPyEndAllowThreads(__tstate);
25129 if (PyErr_Occurred()) SWIG_fail;
25130 }
25131 {
25132 wxTimeSpan * resultptr;
25133 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25134 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25135 }
25136 return resultobj;
25137 fail:
25138 return NULL;
25139 }
25140
25141
25142 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
25143 PyObject *resultobj = NULL;
25144 long arg1 ;
25145 wxTimeSpan result;
25146 PyObject * obj0 = 0 ;
25147 char *kwnames[] = {
25148 (char *) "min", NULL
25149 };
25150
25151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
25152 {
25153 arg1 = static_cast<long >(SWIG_As_long(obj0));
25154 if (SWIG_arg_fail(1)) SWIG_fail;
25155 }
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = wxTimeSpan::Minutes(arg1);
25159
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 {
25164 wxTimeSpan * resultptr;
25165 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25166 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25167 }
25168 return resultobj;
25169 fail:
25170 return NULL;
25171 }
25172
25173
25174 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
25175 PyObject *resultobj = NULL;
25176 wxTimeSpan result;
25177 char *kwnames[] = {
25178 NULL
25179 };
25180
25181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
25182 {
25183 PyThreadState* __tstate = wxPyBeginAllowThreads();
25184 result = wxTimeSpan::Minute();
25185
25186 wxPyEndAllowThreads(__tstate);
25187 if (PyErr_Occurred()) SWIG_fail;
25188 }
25189 {
25190 wxTimeSpan * resultptr;
25191 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25192 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25193 }
25194 return resultobj;
25195 fail:
25196 return NULL;
25197 }
25198
25199
25200 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
25201 PyObject *resultobj = NULL;
25202 long arg1 ;
25203 wxTimeSpan result;
25204 PyObject * obj0 = 0 ;
25205 char *kwnames[] = {
25206 (char *) "hours", NULL
25207 };
25208
25209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
25210 {
25211 arg1 = static_cast<long >(SWIG_As_long(obj0));
25212 if (SWIG_arg_fail(1)) SWIG_fail;
25213 }
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 result = wxTimeSpan::Hours(arg1);
25217
25218 wxPyEndAllowThreads(__tstate);
25219 if (PyErr_Occurred()) SWIG_fail;
25220 }
25221 {
25222 wxTimeSpan * resultptr;
25223 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25225 }
25226 return resultobj;
25227 fail:
25228 return NULL;
25229 }
25230
25231
25232 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
25233 PyObject *resultobj = NULL;
25234 wxTimeSpan result;
25235 char *kwnames[] = {
25236 NULL
25237 };
25238
25239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
25240 {
25241 PyThreadState* __tstate = wxPyBeginAllowThreads();
25242 result = wxTimeSpan::Hour();
25243
25244 wxPyEndAllowThreads(__tstate);
25245 if (PyErr_Occurred()) SWIG_fail;
25246 }
25247 {
25248 wxTimeSpan * resultptr;
25249 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25250 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25251 }
25252 return resultobj;
25253 fail:
25254 return NULL;
25255 }
25256
25257
25258 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
25259 PyObject *resultobj = NULL;
25260 long arg1 ;
25261 wxTimeSpan result;
25262 PyObject * obj0 = 0 ;
25263 char *kwnames[] = {
25264 (char *) "days", NULL
25265 };
25266
25267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
25268 {
25269 arg1 = static_cast<long >(SWIG_As_long(obj0));
25270 if (SWIG_arg_fail(1)) SWIG_fail;
25271 }
25272 {
25273 PyThreadState* __tstate = wxPyBeginAllowThreads();
25274 result = wxTimeSpan::Days(arg1);
25275
25276 wxPyEndAllowThreads(__tstate);
25277 if (PyErr_Occurred()) SWIG_fail;
25278 }
25279 {
25280 wxTimeSpan * resultptr;
25281 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25282 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25283 }
25284 return resultobj;
25285 fail:
25286 return NULL;
25287 }
25288
25289
25290 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
25291 PyObject *resultobj = NULL;
25292 wxTimeSpan result;
25293 char *kwnames[] = {
25294 NULL
25295 };
25296
25297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
25298 {
25299 PyThreadState* __tstate = wxPyBeginAllowThreads();
25300 result = wxTimeSpan::Day();
25301
25302 wxPyEndAllowThreads(__tstate);
25303 if (PyErr_Occurred()) SWIG_fail;
25304 }
25305 {
25306 wxTimeSpan * resultptr;
25307 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25308 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25309 }
25310 return resultobj;
25311 fail:
25312 return NULL;
25313 }
25314
25315
25316 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
25317 PyObject *resultobj = NULL;
25318 long arg1 ;
25319 wxTimeSpan result;
25320 PyObject * obj0 = 0 ;
25321 char *kwnames[] = {
25322 (char *) "days", NULL
25323 };
25324
25325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
25326 {
25327 arg1 = static_cast<long >(SWIG_As_long(obj0));
25328 if (SWIG_arg_fail(1)) SWIG_fail;
25329 }
25330 {
25331 PyThreadState* __tstate = wxPyBeginAllowThreads();
25332 result = wxTimeSpan::Weeks(arg1);
25333
25334 wxPyEndAllowThreads(__tstate);
25335 if (PyErr_Occurred()) SWIG_fail;
25336 }
25337 {
25338 wxTimeSpan * resultptr;
25339 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25340 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25341 }
25342 return resultobj;
25343 fail:
25344 return NULL;
25345 }
25346
25347
25348 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
25349 PyObject *resultobj = NULL;
25350 wxTimeSpan result;
25351 char *kwnames[] = {
25352 NULL
25353 };
25354
25355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
25356 {
25357 PyThreadState* __tstate = wxPyBeginAllowThreads();
25358 result = wxTimeSpan::Week();
25359
25360 wxPyEndAllowThreads(__tstate);
25361 if (PyErr_Occurred()) SWIG_fail;
25362 }
25363 {
25364 wxTimeSpan * resultptr;
25365 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25366 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25367 }
25368 return resultobj;
25369 fail:
25370 return NULL;
25371 }
25372
25373
25374 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
25375 PyObject *resultobj = NULL;
25376 long arg1 = (long) 0 ;
25377 long arg2 = (long) 0 ;
25378 long arg3 = (long) 0 ;
25379 long arg4 = (long) 0 ;
25380 wxTimeSpan *result;
25381 PyObject * obj0 = 0 ;
25382 PyObject * obj1 = 0 ;
25383 PyObject * obj2 = 0 ;
25384 PyObject * obj3 = 0 ;
25385 char *kwnames[] = {
25386 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
25387 };
25388
25389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25390 if (obj0) {
25391 {
25392 arg1 = static_cast<long >(SWIG_As_long(obj0));
25393 if (SWIG_arg_fail(1)) SWIG_fail;
25394 }
25395 }
25396 if (obj1) {
25397 {
25398 arg2 = static_cast<long >(SWIG_As_long(obj1));
25399 if (SWIG_arg_fail(2)) SWIG_fail;
25400 }
25401 }
25402 if (obj2) {
25403 {
25404 arg3 = static_cast<long >(SWIG_As_long(obj2));
25405 if (SWIG_arg_fail(3)) SWIG_fail;
25406 }
25407 }
25408 if (obj3) {
25409 {
25410 arg4 = static_cast<long >(SWIG_As_long(obj3));
25411 if (SWIG_arg_fail(4)) SWIG_fail;
25412 }
25413 }
25414 {
25415 PyThreadState* __tstate = wxPyBeginAllowThreads();
25416 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
25417
25418 wxPyEndAllowThreads(__tstate);
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
25421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25422 return resultobj;
25423 fail:
25424 return NULL;
25425 }
25426
25427
25428 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
25429 PyObject *resultobj = NULL;
25430 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25431 PyObject * obj0 = 0 ;
25432 char *kwnames[] = {
25433 (char *) "self", NULL
25434 };
25435
25436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
25437 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25438 if (SWIG_arg_fail(1)) SWIG_fail;
25439 {
25440 PyThreadState* __tstate = wxPyBeginAllowThreads();
25441 delete arg1;
25442
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 Py_INCREF(Py_None); resultobj = Py_None;
25447 return resultobj;
25448 fail:
25449 return NULL;
25450 }
25451
25452
25453 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
25454 PyObject *resultobj = NULL;
25455 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25456 wxTimeSpan *arg2 = 0 ;
25457 wxTimeSpan *result;
25458 PyObject * obj0 = 0 ;
25459 PyObject * obj1 = 0 ;
25460 char *kwnames[] = {
25461 (char *) "self",(char *) "diff", NULL
25462 };
25463
25464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
25465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25466 if (SWIG_arg_fail(1)) SWIG_fail;
25467 {
25468 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25469 if (SWIG_arg_fail(2)) SWIG_fail;
25470 if (arg2 == NULL) {
25471 SWIG_null_ref("wxTimeSpan");
25472 }
25473 if (SWIG_arg_fail(2)) SWIG_fail;
25474 }
25475 {
25476 PyThreadState* __tstate = wxPyBeginAllowThreads();
25477 {
25478 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
25479 result = (wxTimeSpan *) &_result_ref;
25480 }
25481
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
25493 PyObject *resultobj = NULL;
25494 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25495 wxTimeSpan *arg2 = 0 ;
25496 wxTimeSpan *result;
25497 PyObject * obj0 = 0 ;
25498 PyObject * obj1 = 0 ;
25499 char *kwnames[] = {
25500 (char *) "self",(char *) "diff", NULL
25501 };
25502
25503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
25504 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25505 if (SWIG_arg_fail(1)) SWIG_fail;
25506 {
25507 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25508 if (SWIG_arg_fail(2)) SWIG_fail;
25509 if (arg2 == NULL) {
25510 SWIG_null_ref("wxTimeSpan");
25511 }
25512 if (SWIG_arg_fail(2)) SWIG_fail;
25513 }
25514 {
25515 PyThreadState* __tstate = wxPyBeginAllowThreads();
25516 {
25517 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
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_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
25532 PyObject *resultobj = NULL;
25533 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25534 int arg2 ;
25535 wxTimeSpan *result;
25536 PyObject * obj0 = 0 ;
25537 PyObject * obj1 = 0 ;
25538 char *kwnames[] = {
25539 (char *) "self",(char *) "n", NULL
25540 };
25541
25542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
25543 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25544 if (SWIG_arg_fail(1)) SWIG_fail;
25545 {
25546 arg2 = static_cast<int >(SWIG_As_int(obj1));
25547 if (SWIG_arg_fail(2)) SWIG_fail;
25548 }
25549 {
25550 PyThreadState* __tstate = wxPyBeginAllowThreads();
25551 {
25552 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
25553 result = (wxTimeSpan *) &_result_ref;
25554 }
25555
25556 wxPyEndAllowThreads(__tstate);
25557 if (PyErr_Occurred()) SWIG_fail;
25558 }
25559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25560 return resultobj;
25561 fail:
25562 return NULL;
25563 }
25564
25565
25566 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
25567 PyObject *resultobj = NULL;
25568 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25569 wxTimeSpan *result;
25570 PyObject * obj0 = 0 ;
25571 char *kwnames[] = {
25572 (char *) "self", NULL
25573 };
25574
25575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
25576 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25577 if (SWIG_arg_fail(1)) SWIG_fail;
25578 {
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 {
25581 wxTimeSpan &_result_ref = (arg1)->Neg();
25582 result = (wxTimeSpan *) &_result_ref;
25583 }
25584
25585 wxPyEndAllowThreads(__tstate);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25589 return resultobj;
25590 fail:
25591 return NULL;
25592 }
25593
25594
25595 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
25596 PyObject *resultobj = NULL;
25597 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25598 wxTimeSpan result;
25599 PyObject * obj0 = 0 ;
25600 char *kwnames[] = {
25601 (char *) "self", NULL
25602 };
25603
25604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
25605 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25606 if (SWIG_arg_fail(1)) SWIG_fail;
25607 {
25608 PyThreadState* __tstate = wxPyBeginAllowThreads();
25609 result = ((wxTimeSpan const *)arg1)->Abs();
25610
25611 wxPyEndAllowThreads(__tstate);
25612 if (PyErr_Occurred()) SWIG_fail;
25613 }
25614 {
25615 wxTimeSpan * resultptr;
25616 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25617 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25618 }
25619 return resultobj;
25620 fail:
25621 return NULL;
25622 }
25623
25624
25625 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
25626 PyObject *resultobj = NULL;
25627 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25628 wxTimeSpan *arg2 = 0 ;
25629 wxTimeSpan *result;
25630 PyObject * obj0 = 0 ;
25631 PyObject * obj1 = 0 ;
25632 char *kwnames[] = {
25633 (char *) "self",(char *) "diff", NULL
25634 };
25635
25636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
25637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25638 if (SWIG_arg_fail(1)) SWIG_fail;
25639 {
25640 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25641 if (SWIG_arg_fail(2)) SWIG_fail;
25642 if (arg2 == NULL) {
25643 SWIG_null_ref("wxTimeSpan");
25644 }
25645 if (SWIG_arg_fail(2)) SWIG_fail;
25646 }
25647 {
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 {
25650 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
25651 result = (wxTimeSpan *) &_result_ref;
25652 }
25653
25654 wxPyEndAllowThreads(__tstate);
25655 if (PyErr_Occurred()) SWIG_fail;
25656 }
25657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25658 return resultobj;
25659 fail:
25660 return NULL;
25661 }
25662
25663
25664 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
25665 PyObject *resultobj = NULL;
25666 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25667 wxTimeSpan *arg2 = 0 ;
25668 wxTimeSpan *result;
25669 PyObject * obj0 = 0 ;
25670 PyObject * obj1 = 0 ;
25671 char *kwnames[] = {
25672 (char *) "self",(char *) "diff", NULL
25673 };
25674
25675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
25676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25677 if (SWIG_arg_fail(1)) SWIG_fail;
25678 {
25679 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25680 if (SWIG_arg_fail(2)) SWIG_fail;
25681 if (arg2 == NULL) {
25682 SWIG_null_ref("wxTimeSpan");
25683 }
25684 if (SWIG_arg_fail(2)) SWIG_fail;
25685 }
25686 {
25687 PyThreadState* __tstate = wxPyBeginAllowThreads();
25688 {
25689 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
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, 1);
25697 return resultobj;
25698 fail:
25699 return NULL;
25700 }
25701
25702
25703 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
25704 PyObject *resultobj = NULL;
25705 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25706 int arg2 ;
25707 wxTimeSpan *result;
25708 PyObject * obj0 = 0 ;
25709 PyObject * obj1 = 0 ;
25710 char *kwnames[] = {
25711 (char *) "self",(char *) "n", NULL
25712 };
25713
25714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
25715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
25716 if (SWIG_arg_fail(1)) SWIG_fail;
25717 {
25718 arg2 = static_cast<int >(SWIG_As_int(obj1));
25719 if (SWIG_arg_fail(2)) SWIG_fail;
25720 }
25721 {
25722 PyThreadState* __tstate = wxPyBeginAllowThreads();
25723 {
25724 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
25725 result = (wxTimeSpan *) &_result_ref;
25726 }
25727
25728 wxPyEndAllowThreads(__tstate);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
25731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
25732 return resultobj;
25733 fail:
25734 return NULL;
25735 }
25736
25737
25738 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
25739 PyObject *resultobj = NULL;
25740 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25741 wxTimeSpan *result;
25742 PyObject * obj0 = 0 ;
25743 char *kwnames[] = {
25744 (char *) "self", NULL
25745 };
25746
25747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
25748 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25749 if (SWIG_arg_fail(1)) SWIG_fail;
25750 {
25751 PyThreadState* __tstate = wxPyBeginAllowThreads();
25752 {
25753 wxTimeSpan &_result_ref = (arg1)->operator -();
25754 result = (wxTimeSpan *) &_result_ref;
25755 }
25756
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
25761 return resultobj;
25762 fail:
25763 return NULL;
25764 }
25765
25766
25767 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
25768 PyObject *resultobj = NULL;
25769 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25770 wxTimeSpan *arg2 = 0 ;
25771 wxTimeSpan result;
25772 PyObject * obj0 = 0 ;
25773 PyObject * obj1 = 0 ;
25774 char *kwnames[] = {
25775 (char *) "self",(char *) "other", NULL
25776 };
25777
25778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
25779 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25780 if (SWIG_arg_fail(1)) SWIG_fail;
25781 {
25782 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25783 if (SWIG_arg_fail(2)) SWIG_fail;
25784 if (arg2 == NULL) {
25785 SWIG_null_ref("wxTimeSpan");
25786 }
25787 if (SWIG_arg_fail(2)) SWIG_fail;
25788 }
25789 {
25790 PyThreadState* __tstate = wxPyBeginAllowThreads();
25791 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
25792
25793 wxPyEndAllowThreads(__tstate);
25794 if (PyErr_Occurred()) SWIG_fail;
25795 }
25796 {
25797 wxTimeSpan * resultptr;
25798 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25800 }
25801 return resultobj;
25802 fail:
25803 return NULL;
25804 }
25805
25806
25807 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
25808 PyObject *resultobj = NULL;
25809 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25810 wxTimeSpan *arg2 = 0 ;
25811 wxTimeSpan result;
25812 PyObject * obj0 = 0 ;
25813 PyObject * obj1 = 0 ;
25814 char *kwnames[] = {
25815 (char *) "self",(char *) "other", NULL
25816 };
25817
25818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
25819 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25820 if (SWIG_arg_fail(1)) SWIG_fail;
25821 {
25822 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25823 if (SWIG_arg_fail(2)) SWIG_fail;
25824 if (arg2 == NULL) {
25825 SWIG_null_ref("wxTimeSpan");
25826 }
25827 if (SWIG_arg_fail(2)) SWIG_fail;
25828 }
25829 {
25830 PyThreadState* __tstate = wxPyBeginAllowThreads();
25831 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
25832
25833 wxPyEndAllowThreads(__tstate);
25834 if (PyErr_Occurred()) SWIG_fail;
25835 }
25836 {
25837 wxTimeSpan * resultptr;
25838 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25840 }
25841 return resultobj;
25842 fail:
25843 return NULL;
25844 }
25845
25846
25847 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
25848 PyObject *resultobj = NULL;
25849 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25850 int arg2 ;
25851 wxTimeSpan result;
25852 PyObject * obj0 = 0 ;
25853 PyObject * obj1 = 0 ;
25854 char *kwnames[] = {
25855 (char *) "self",(char *) "n", NULL
25856 };
25857
25858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
25859 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25860 if (SWIG_arg_fail(1)) SWIG_fail;
25861 {
25862 arg2 = static_cast<int >(SWIG_As_int(obj1));
25863 if (SWIG_arg_fail(2)) SWIG_fail;
25864 }
25865 {
25866 PyThreadState* __tstate = wxPyBeginAllowThreads();
25867 result = wxTimeSpan___mul__(arg1,arg2);
25868
25869 wxPyEndAllowThreads(__tstate);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 {
25873 wxTimeSpan * resultptr;
25874 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25875 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25876 }
25877 return resultobj;
25878 fail:
25879 return NULL;
25880 }
25881
25882
25883 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
25884 PyObject *resultobj = NULL;
25885 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
25886 int arg2 ;
25887 wxTimeSpan result;
25888 PyObject * obj0 = 0 ;
25889 PyObject * obj1 = 0 ;
25890 char *kwnames[] = {
25891 (char *) "self",(char *) "n", NULL
25892 };
25893
25894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
25895 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
25896 if (SWIG_arg_fail(1)) SWIG_fail;
25897 {
25898 arg2 = static_cast<int >(SWIG_As_int(obj1));
25899 if (SWIG_arg_fail(2)) SWIG_fail;
25900 }
25901 {
25902 PyThreadState* __tstate = wxPyBeginAllowThreads();
25903 result = wxTimeSpan___rmul__(arg1,arg2);
25904
25905 wxPyEndAllowThreads(__tstate);
25906 if (PyErr_Occurred()) SWIG_fail;
25907 }
25908 {
25909 wxTimeSpan * resultptr;
25910 resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result));
25911 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
25912 }
25913 return resultobj;
25914 fail:
25915 return NULL;
25916 }
25917
25918
25919 static PyObject *_wrap_TimeSpan___lt__(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___lt__",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___lt__(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___le__(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___le__",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___le__(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___gt__(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___gt__",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___gt__(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___ge__(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___ge__",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___ge__(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___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
26048 PyObject *resultobj = NULL;
26049 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26050 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
26051 bool result;
26052 PyObject * obj0 = 0 ;
26053 PyObject * obj1 = 0 ;
26054 char *kwnames[] = {
26055 (char *) "self",(char *) "other", NULL
26056 };
26057
26058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
26059 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26060 if (SWIG_arg_fail(1)) SWIG_fail;
26061 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26062 if (SWIG_arg_fail(2)) SWIG_fail;
26063 {
26064 PyThreadState* __tstate = wxPyBeginAllowThreads();
26065 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
26066
26067 wxPyEndAllowThreads(__tstate);
26068 if (PyErr_Occurred()) SWIG_fail;
26069 }
26070 {
26071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26072 }
26073 return resultobj;
26074 fail:
26075 return NULL;
26076 }
26077
26078
26079 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
26080 PyObject *resultobj = NULL;
26081 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26082 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
26083 bool result;
26084 PyObject * obj0 = 0 ;
26085 PyObject * obj1 = 0 ;
26086 char *kwnames[] = {
26087 (char *) "self",(char *) "other", NULL
26088 };
26089
26090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
26091 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26092 if (SWIG_arg_fail(1)) SWIG_fail;
26093 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26094 if (SWIG_arg_fail(2)) SWIG_fail;
26095 {
26096 PyThreadState* __tstate = wxPyBeginAllowThreads();
26097 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
26098
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 {
26103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26104 }
26105 return resultobj;
26106 fail:
26107 return NULL;
26108 }
26109
26110
26111 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
26112 PyObject *resultobj = NULL;
26113 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26114 bool result;
26115 PyObject * obj0 = 0 ;
26116 char *kwnames[] = {
26117 (char *) "self", NULL
26118 };
26119
26120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
26121 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26122 if (SWIG_arg_fail(1)) SWIG_fail;
26123 {
26124 PyThreadState* __tstate = wxPyBeginAllowThreads();
26125 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
26126
26127 wxPyEndAllowThreads(__tstate);
26128 if (PyErr_Occurred()) SWIG_fail;
26129 }
26130 {
26131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26132 }
26133 return resultobj;
26134 fail:
26135 return NULL;
26136 }
26137
26138
26139 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
26140 PyObject *resultobj = NULL;
26141 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26142 bool result;
26143 PyObject * obj0 = 0 ;
26144 char *kwnames[] = {
26145 (char *) "self", NULL
26146 };
26147
26148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
26149 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26150 if (SWIG_arg_fail(1)) SWIG_fail;
26151 {
26152 PyThreadState* __tstate = wxPyBeginAllowThreads();
26153 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
26154
26155 wxPyEndAllowThreads(__tstate);
26156 if (PyErr_Occurred()) SWIG_fail;
26157 }
26158 {
26159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26160 }
26161 return resultobj;
26162 fail:
26163 return NULL;
26164 }
26165
26166
26167 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj = NULL;
26169 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26170 bool result;
26171 PyObject * obj0 = 0 ;
26172 char *kwnames[] = {
26173 (char *) "self", NULL
26174 };
26175
26176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
26177 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26178 if (SWIG_arg_fail(1)) SWIG_fail;
26179 {
26180 PyThreadState* __tstate = wxPyBeginAllowThreads();
26181 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
26182
26183 wxPyEndAllowThreads(__tstate);
26184 if (PyErr_Occurred()) SWIG_fail;
26185 }
26186 {
26187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26188 }
26189 return resultobj;
26190 fail:
26191 return NULL;
26192 }
26193
26194
26195 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
26196 PyObject *resultobj = NULL;
26197 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26198 wxTimeSpan *arg2 = 0 ;
26199 bool result;
26200 PyObject * obj0 = 0 ;
26201 PyObject * obj1 = 0 ;
26202 char *kwnames[] = {
26203 (char *) "self",(char *) "ts", NULL
26204 };
26205
26206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
26207 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26208 if (SWIG_arg_fail(1)) SWIG_fail;
26209 {
26210 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26211 if (SWIG_arg_fail(2)) SWIG_fail;
26212 if (arg2 == NULL) {
26213 SWIG_null_ref("wxTimeSpan");
26214 }
26215 if (SWIG_arg_fail(2)) SWIG_fail;
26216 }
26217 {
26218 PyThreadState* __tstate = wxPyBeginAllowThreads();
26219 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
26220
26221 wxPyEndAllowThreads(__tstate);
26222 if (PyErr_Occurred()) SWIG_fail;
26223 }
26224 {
26225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26226 }
26227 return resultobj;
26228 fail:
26229 return NULL;
26230 }
26231
26232
26233 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
26234 PyObject *resultobj = NULL;
26235 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26236 wxTimeSpan *arg2 = 0 ;
26237 bool result;
26238 PyObject * obj0 = 0 ;
26239 PyObject * obj1 = 0 ;
26240 char *kwnames[] = {
26241 (char *) "self",(char *) "ts", NULL
26242 };
26243
26244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
26245 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26246 if (SWIG_arg_fail(1)) SWIG_fail;
26247 {
26248 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26249 if (SWIG_arg_fail(2)) SWIG_fail;
26250 if (arg2 == NULL) {
26251 SWIG_null_ref("wxTimeSpan");
26252 }
26253 if (SWIG_arg_fail(2)) SWIG_fail;
26254 }
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
26258
26259 wxPyEndAllowThreads(__tstate);
26260 if (PyErr_Occurred()) SWIG_fail;
26261 }
26262 {
26263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26264 }
26265 return resultobj;
26266 fail:
26267 return NULL;
26268 }
26269
26270
26271 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
26272 PyObject *resultobj = NULL;
26273 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26274 wxTimeSpan *arg2 = 0 ;
26275 bool result;
26276 PyObject * obj0 = 0 ;
26277 PyObject * obj1 = 0 ;
26278 char *kwnames[] = {
26279 (char *) "self",(char *) "t", NULL
26280 };
26281
26282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) 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 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26287 if (SWIG_arg_fail(2)) SWIG_fail;
26288 if (arg2 == NULL) {
26289 SWIG_null_ref("wxTimeSpan");
26290 }
26291 if (SWIG_arg_fail(2)) SWIG_fail;
26292 }
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
26296
26297 wxPyEndAllowThreads(__tstate);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 {
26301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26302 }
26303 return resultobj;
26304 fail:
26305 return NULL;
26306 }
26307
26308
26309 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
26310 PyObject *resultobj = NULL;
26311 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26312 int result;
26313 PyObject * obj0 = 0 ;
26314 char *kwnames[] = {
26315 (char *) "self", NULL
26316 };
26317
26318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
26319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26320 if (SWIG_arg_fail(1)) SWIG_fail;
26321 {
26322 PyThreadState* __tstate = wxPyBeginAllowThreads();
26323 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
26324
26325 wxPyEndAllowThreads(__tstate);
26326 if (PyErr_Occurred()) SWIG_fail;
26327 }
26328 {
26329 resultobj = SWIG_From_int(static_cast<int >(result));
26330 }
26331 return resultobj;
26332 fail:
26333 return NULL;
26334 }
26335
26336
26337 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
26338 PyObject *resultobj = NULL;
26339 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26340 int result;
26341 PyObject * obj0 = 0 ;
26342 char *kwnames[] = {
26343 (char *) "self", NULL
26344 };
26345
26346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
26347 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26348 if (SWIG_arg_fail(1)) SWIG_fail;
26349 {
26350 PyThreadState* __tstate = wxPyBeginAllowThreads();
26351 result = (int)((wxTimeSpan const *)arg1)->GetDays();
26352
26353 wxPyEndAllowThreads(__tstate);
26354 if (PyErr_Occurred()) SWIG_fail;
26355 }
26356 {
26357 resultobj = SWIG_From_int(static_cast<int >(result));
26358 }
26359 return resultobj;
26360 fail:
26361 return NULL;
26362 }
26363
26364
26365 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
26366 PyObject *resultobj = NULL;
26367 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26368 int result;
26369 PyObject * obj0 = 0 ;
26370 char *kwnames[] = {
26371 (char *) "self", NULL
26372 };
26373
26374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
26375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26376 if (SWIG_arg_fail(1)) SWIG_fail;
26377 {
26378 PyThreadState* __tstate = wxPyBeginAllowThreads();
26379 result = (int)((wxTimeSpan const *)arg1)->GetHours();
26380
26381 wxPyEndAllowThreads(__tstate);
26382 if (PyErr_Occurred()) SWIG_fail;
26383 }
26384 {
26385 resultobj = SWIG_From_int(static_cast<int >(result));
26386 }
26387 return resultobj;
26388 fail:
26389 return NULL;
26390 }
26391
26392
26393 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
26394 PyObject *resultobj = NULL;
26395 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26396 int result;
26397 PyObject * obj0 = 0 ;
26398 char *kwnames[] = {
26399 (char *) "self", NULL
26400 };
26401
26402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
26403 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26404 if (SWIG_arg_fail(1)) SWIG_fail;
26405 {
26406 PyThreadState* __tstate = wxPyBeginAllowThreads();
26407 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
26408
26409 wxPyEndAllowThreads(__tstate);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 {
26413 resultobj = SWIG_From_int(static_cast<int >(result));
26414 }
26415 return resultobj;
26416 fail:
26417 return NULL;
26418 }
26419
26420
26421 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
26422 PyObject *resultobj = NULL;
26423 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26424 wxLongLong result;
26425 PyObject * obj0 = 0 ;
26426 char *kwnames[] = {
26427 (char *) "self", NULL
26428 };
26429
26430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
26431 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26432 if (SWIG_arg_fail(1)) SWIG_fail;
26433 {
26434 PyThreadState* __tstate = wxPyBeginAllowThreads();
26435 result = ((wxTimeSpan const *)arg1)->GetSeconds();
26436
26437 wxPyEndAllowThreads(__tstate);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 {
26441 PyObject *hi, *lo, *shifter, *shifted;
26442 hi = PyLong_FromLong( (&result)->GetHi() );
26443 lo = PyLong_FromLong( (&result)->GetLo() );
26444 shifter = PyLong_FromLong(32);
26445 shifted = PyNumber_Lshift(hi, shifter);
26446 resultobj = PyNumber_Or(shifted, lo);
26447 Py_DECREF(hi);
26448 Py_DECREF(lo);
26449 Py_DECREF(shifter);
26450 Py_DECREF(shifted);
26451 }
26452 return resultobj;
26453 fail:
26454 return NULL;
26455 }
26456
26457
26458 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
26459 PyObject *resultobj = NULL;
26460 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26461 wxLongLong result;
26462 PyObject * obj0 = 0 ;
26463 char *kwnames[] = {
26464 (char *) "self", NULL
26465 };
26466
26467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
26468 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26469 if (SWIG_arg_fail(1)) SWIG_fail;
26470 {
26471 PyThreadState* __tstate = wxPyBeginAllowThreads();
26472 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
26473
26474 wxPyEndAllowThreads(__tstate);
26475 if (PyErr_Occurred()) SWIG_fail;
26476 }
26477 {
26478 PyObject *hi, *lo, *shifter, *shifted;
26479 hi = PyLong_FromLong( (&result)->GetHi() );
26480 lo = PyLong_FromLong( (&result)->GetLo() );
26481 shifter = PyLong_FromLong(32);
26482 shifted = PyNumber_Lshift(hi, shifter);
26483 resultobj = PyNumber_Or(shifted, lo);
26484 Py_DECREF(hi);
26485 Py_DECREF(lo);
26486 Py_DECREF(shifter);
26487 Py_DECREF(shifted);
26488 }
26489 return resultobj;
26490 fail:
26491 return NULL;
26492 }
26493
26494
26495 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
26496 PyObject *resultobj = NULL;
26497 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
26498 wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ;
26499 wxString *arg2 = (wxString *) &arg2_defvalue ;
26500 wxString result;
26501 bool temp2 = false ;
26502 PyObject * obj0 = 0 ;
26503 PyObject * obj1 = 0 ;
26504 char *kwnames[] = {
26505 (char *) "self",(char *) "format", NULL
26506 };
26507
26508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
26509 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0);
26510 if (SWIG_arg_fail(1)) SWIG_fail;
26511 if (obj1) {
26512 {
26513 arg2 = wxString_in_helper(obj1);
26514 if (arg2 == NULL) SWIG_fail;
26515 temp2 = true;
26516 }
26517 }
26518 {
26519 PyThreadState* __tstate = wxPyBeginAllowThreads();
26520 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
26521
26522 wxPyEndAllowThreads(__tstate);
26523 if (PyErr_Occurred()) SWIG_fail;
26524 }
26525 {
26526 #if wxUSE_UNICODE
26527 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26528 #else
26529 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26530 #endif
26531 }
26532 {
26533 if (temp2)
26534 delete arg2;
26535 }
26536 return resultobj;
26537 fail:
26538 {
26539 if (temp2)
26540 delete arg2;
26541 }
26542 return NULL;
26543 }
26544
26545
26546 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
26547 PyObject *obj;
26548 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26549 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
26550 Py_INCREF(obj);
26551 return Py_BuildValue((char *)"");
26552 }
26553 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
26554 PyObject *resultobj = NULL;
26555 int arg1 = (int) 0 ;
26556 int arg2 = (int) 0 ;
26557 int arg3 = (int) 0 ;
26558 int arg4 = (int) 0 ;
26559 wxDateSpan *result;
26560 PyObject * obj0 = 0 ;
26561 PyObject * obj1 = 0 ;
26562 PyObject * obj2 = 0 ;
26563 PyObject * obj3 = 0 ;
26564 char *kwnames[] = {
26565 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
26566 };
26567
26568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26569 if (obj0) {
26570 {
26571 arg1 = static_cast<int >(SWIG_As_int(obj0));
26572 if (SWIG_arg_fail(1)) SWIG_fail;
26573 }
26574 }
26575 if (obj1) {
26576 {
26577 arg2 = static_cast<int >(SWIG_As_int(obj1));
26578 if (SWIG_arg_fail(2)) SWIG_fail;
26579 }
26580 }
26581 if (obj2) {
26582 {
26583 arg3 = static_cast<int >(SWIG_As_int(obj2));
26584 if (SWIG_arg_fail(3)) SWIG_fail;
26585 }
26586 }
26587 if (obj3) {
26588 {
26589 arg4 = static_cast<int >(SWIG_As_int(obj3));
26590 if (SWIG_arg_fail(4)) SWIG_fail;
26591 }
26592 }
26593 {
26594 PyThreadState* __tstate = wxPyBeginAllowThreads();
26595 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
26596
26597 wxPyEndAllowThreads(__tstate);
26598 if (PyErr_Occurred()) SWIG_fail;
26599 }
26600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
26601 return resultobj;
26602 fail:
26603 return NULL;
26604 }
26605
26606
26607 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
26608 PyObject *resultobj = NULL;
26609 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26610 PyObject * obj0 = 0 ;
26611 char *kwnames[] = {
26612 (char *) "self", NULL
26613 };
26614
26615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
26616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26617 if (SWIG_arg_fail(1)) SWIG_fail;
26618 {
26619 PyThreadState* __tstate = wxPyBeginAllowThreads();
26620 delete arg1;
26621
26622 wxPyEndAllowThreads(__tstate);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 Py_INCREF(Py_None); resultobj = Py_None;
26626 return resultobj;
26627 fail:
26628 return NULL;
26629 }
26630
26631
26632 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
26633 PyObject *resultobj = NULL;
26634 int arg1 ;
26635 wxDateSpan result;
26636 PyObject * obj0 = 0 ;
26637 char *kwnames[] = {
26638 (char *) "days", NULL
26639 };
26640
26641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
26642 {
26643 arg1 = static_cast<int >(SWIG_As_int(obj0));
26644 if (SWIG_arg_fail(1)) SWIG_fail;
26645 }
26646 {
26647 PyThreadState* __tstate = wxPyBeginAllowThreads();
26648 result = wxDateSpan::Days(arg1);
26649
26650 wxPyEndAllowThreads(__tstate);
26651 if (PyErr_Occurred()) SWIG_fail;
26652 }
26653 {
26654 wxDateSpan * resultptr;
26655 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26656 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26657 }
26658 return resultobj;
26659 fail:
26660 return NULL;
26661 }
26662
26663
26664 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
26665 PyObject *resultobj = NULL;
26666 wxDateSpan result;
26667 char *kwnames[] = {
26668 NULL
26669 };
26670
26671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
26672 {
26673 PyThreadState* __tstate = wxPyBeginAllowThreads();
26674 result = wxDateSpan::Day();
26675
26676 wxPyEndAllowThreads(__tstate);
26677 if (PyErr_Occurred()) SWIG_fail;
26678 }
26679 {
26680 wxDateSpan * resultptr;
26681 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26682 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26683 }
26684 return resultobj;
26685 fail:
26686 return NULL;
26687 }
26688
26689
26690 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
26691 PyObject *resultobj = NULL;
26692 int arg1 ;
26693 wxDateSpan result;
26694 PyObject * obj0 = 0 ;
26695 char *kwnames[] = {
26696 (char *) "weeks", NULL
26697 };
26698
26699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
26700 {
26701 arg1 = static_cast<int >(SWIG_As_int(obj0));
26702 if (SWIG_arg_fail(1)) SWIG_fail;
26703 }
26704 {
26705 PyThreadState* __tstate = wxPyBeginAllowThreads();
26706 result = wxDateSpan::Weeks(arg1);
26707
26708 wxPyEndAllowThreads(__tstate);
26709 if (PyErr_Occurred()) SWIG_fail;
26710 }
26711 {
26712 wxDateSpan * resultptr;
26713 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26715 }
26716 return resultobj;
26717 fail:
26718 return NULL;
26719 }
26720
26721
26722 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
26723 PyObject *resultobj = NULL;
26724 wxDateSpan result;
26725 char *kwnames[] = {
26726 NULL
26727 };
26728
26729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
26730 {
26731 PyThreadState* __tstate = wxPyBeginAllowThreads();
26732 result = wxDateSpan::Week();
26733
26734 wxPyEndAllowThreads(__tstate);
26735 if (PyErr_Occurred()) SWIG_fail;
26736 }
26737 {
26738 wxDateSpan * resultptr;
26739 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26740 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26741 }
26742 return resultobj;
26743 fail:
26744 return NULL;
26745 }
26746
26747
26748 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
26749 PyObject *resultobj = NULL;
26750 int arg1 ;
26751 wxDateSpan result;
26752 PyObject * obj0 = 0 ;
26753 char *kwnames[] = {
26754 (char *) "mon", NULL
26755 };
26756
26757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
26758 {
26759 arg1 = static_cast<int >(SWIG_As_int(obj0));
26760 if (SWIG_arg_fail(1)) SWIG_fail;
26761 }
26762 {
26763 PyThreadState* __tstate = wxPyBeginAllowThreads();
26764 result = wxDateSpan::Months(arg1);
26765
26766 wxPyEndAllowThreads(__tstate);
26767 if (PyErr_Occurred()) SWIG_fail;
26768 }
26769 {
26770 wxDateSpan * resultptr;
26771 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26772 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26773 }
26774 return resultobj;
26775 fail:
26776 return NULL;
26777 }
26778
26779
26780 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
26781 PyObject *resultobj = NULL;
26782 wxDateSpan result;
26783 char *kwnames[] = {
26784 NULL
26785 };
26786
26787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
26788 {
26789 PyThreadState* __tstate = wxPyBeginAllowThreads();
26790 result = wxDateSpan::Month();
26791
26792 wxPyEndAllowThreads(__tstate);
26793 if (PyErr_Occurred()) SWIG_fail;
26794 }
26795 {
26796 wxDateSpan * resultptr;
26797 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26798 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26799 }
26800 return resultobj;
26801 fail:
26802 return NULL;
26803 }
26804
26805
26806 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
26807 PyObject *resultobj = NULL;
26808 int arg1 ;
26809 wxDateSpan result;
26810 PyObject * obj0 = 0 ;
26811 char *kwnames[] = {
26812 (char *) "years", NULL
26813 };
26814
26815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
26816 {
26817 arg1 = static_cast<int >(SWIG_As_int(obj0));
26818 if (SWIG_arg_fail(1)) SWIG_fail;
26819 }
26820 {
26821 PyThreadState* __tstate = wxPyBeginAllowThreads();
26822 result = wxDateSpan::Years(arg1);
26823
26824 wxPyEndAllowThreads(__tstate);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 }
26827 {
26828 wxDateSpan * resultptr;
26829 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26830 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26831 }
26832 return resultobj;
26833 fail:
26834 return NULL;
26835 }
26836
26837
26838 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
26839 PyObject *resultobj = NULL;
26840 wxDateSpan result;
26841 char *kwnames[] = {
26842 NULL
26843 };
26844
26845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
26846 {
26847 PyThreadState* __tstate = wxPyBeginAllowThreads();
26848 result = wxDateSpan::Year();
26849
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 {
26854 wxDateSpan * resultptr;
26855 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
26856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
26857 }
26858 return resultobj;
26859 fail:
26860 return NULL;
26861 }
26862
26863
26864 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
26865 PyObject *resultobj = NULL;
26866 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26867 int arg2 ;
26868 wxDateSpan *result;
26869 PyObject * obj0 = 0 ;
26870 PyObject * obj1 = 0 ;
26871 char *kwnames[] = {
26872 (char *) "self",(char *) "n", NULL
26873 };
26874
26875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
26876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26877 if (SWIG_arg_fail(1)) SWIG_fail;
26878 {
26879 arg2 = static_cast<int >(SWIG_As_int(obj1));
26880 if (SWIG_arg_fail(2)) SWIG_fail;
26881 }
26882 {
26883 PyThreadState* __tstate = wxPyBeginAllowThreads();
26884 {
26885 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
26886 result = (wxDateSpan *) &_result_ref;
26887 }
26888
26889 wxPyEndAllowThreads(__tstate);
26890 if (PyErr_Occurred()) SWIG_fail;
26891 }
26892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26893 return resultobj;
26894 fail:
26895 return NULL;
26896 }
26897
26898
26899 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
26900 PyObject *resultobj = NULL;
26901 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26902 int arg2 ;
26903 wxDateSpan *result;
26904 PyObject * obj0 = 0 ;
26905 PyObject * obj1 = 0 ;
26906 char *kwnames[] = {
26907 (char *) "self",(char *) "n", NULL
26908 };
26909
26910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
26911 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26912 if (SWIG_arg_fail(1)) SWIG_fail;
26913 {
26914 arg2 = static_cast<int >(SWIG_As_int(obj1));
26915 if (SWIG_arg_fail(2)) SWIG_fail;
26916 }
26917 {
26918 PyThreadState* __tstate = wxPyBeginAllowThreads();
26919 {
26920 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
26921 result = (wxDateSpan *) &_result_ref;
26922 }
26923
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26928 return resultobj;
26929 fail:
26930 return NULL;
26931 }
26932
26933
26934 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj = NULL;
26936 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26937 int arg2 ;
26938 wxDateSpan *result;
26939 PyObject * obj0 = 0 ;
26940 PyObject * obj1 = 0 ;
26941 char *kwnames[] = {
26942 (char *) "self",(char *) "n", NULL
26943 };
26944
26945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
26946 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26947 if (SWIG_arg_fail(1)) SWIG_fail;
26948 {
26949 arg2 = static_cast<int >(SWIG_As_int(obj1));
26950 if (SWIG_arg_fail(2)) SWIG_fail;
26951 }
26952 {
26953 PyThreadState* __tstate = wxPyBeginAllowThreads();
26954 {
26955 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
26956 result = (wxDateSpan *) &_result_ref;
26957 }
26958
26959 wxPyEndAllowThreads(__tstate);
26960 if (PyErr_Occurred()) SWIG_fail;
26961 }
26962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26963 return resultobj;
26964 fail:
26965 return NULL;
26966 }
26967
26968
26969 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
26970 PyObject *resultobj = NULL;
26971 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
26972 int arg2 ;
26973 wxDateSpan *result;
26974 PyObject * obj0 = 0 ;
26975 PyObject * obj1 = 0 ;
26976 char *kwnames[] = {
26977 (char *) "self",(char *) "n", NULL
26978 };
26979
26980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
26981 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
26982 if (SWIG_arg_fail(1)) SWIG_fail;
26983 {
26984 arg2 = static_cast<int >(SWIG_As_int(obj1));
26985 if (SWIG_arg_fail(2)) SWIG_fail;
26986 }
26987 {
26988 PyThreadState* __tstate = wxPyBeginAllowThreads();
26989 {
26990 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
26991 result = (wxDateSpan *) &_result_ref;
26992 }
26993
26994 wxPyEndAllowThreads(__tstate);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
26998 return resultobj;
26999 fail:
27000 return NULL;
27001 }
27002
27003
27004 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
27005 PyObject *resultobj = NULL;
27006 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27007 int result;
27008 PyObject * obj0 = 0 ;
27009 char *kwnames[] = {
27010 (char *) "self", NULL
27011 };
27012
27013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
27014 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27015 if (SWIG_arg_fail(1)) SWIG_fail;
27016 {
27017 PyThreadState* __tstate = wxPyBeginAllowThreads();
27018 result = (int)((wxDateSpan const *)arg1)->GetYears();
27019
27020 wxPyEndAllowThreads(__tstate);
27021 if (PyErr_Occurred()) SWIG_fail;
27022 }
27023 {
27024 resultobj = SWIG_From_int(static_cast<int >(result));
27025 }
27026 return resultobj;
27027 fail:
27028 return NULL;
27029 }
27030
27031
27032 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
27033 PyObject *resultobj = NULL;
27034 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27035 int result;
27036 PyObject * obj0 = 0 ;
27037 char *kwnames[] = {
27038 (char *) "self", NULL
27039 };
27040
27041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
27042 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27043 if (SWIG_arg_fail(1)) SWIG_fail;
27044 {
27045 PyThreadState* __tstate = wxPyBeginAllowThreads();
27046 result = (int)((wxDateSpan const *)arg1)->GetMonths();
27047
27048 wxPyEndAllowThreads(__tstate);
27049 if (PyErr_Occurred()) SWIG_fail;
27050 }
27051 {
27052 resultobj = SWIG_From_int(static_cast<int >(result));
27053 }
27054 return resultobj;
27055 fail:
27056 return NULL;
27057 }
27058
27059
27060 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
27061 PyObject *resultobj = NULL;
27062 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27063 int result;
27064 PyObject * obj0 = 0 ;
27065 char *kwnames[] = {
27066 (char *) "self", NULL
27067 };
27068
27069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
27070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27071 if (SWIG_arg_fail(1)) SWIG_fail;
27072 {
27073 PyThreadState* __tstate = wxPyBeginAllowThreads();
27074 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
27075
27076 wxPyEndAllowThreads(__tstate);
27077 if (PyErr_Occurred()) SWIG_fail;
27078 }
27079 {
27080 resultobj = SWIG_From_int(static_cast<int >(result));
27081 }
27082 return resultobj;
27083 fail:
27084 return NULL;
27085 }
27086
27087
27088 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
27089 PyObject *resultobj = NULL;
27090 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27091 int result;
27092 PyObject * obj0 = 0 ;
27093 char *kwnames[] = {
27094 (char *) "self", NULL
27095 };
27096
27097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
27098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27099 if (SWIG_arg_fail(1)) SWIG_fail;
27100 {
27101 PyThreadState* __tstate = wxPyBeginAllowThreads();
27102 result = (int)((wxDateSpan const *)arg1)->GetDays();
27103
27104 wxPyEndAllowThreads(__tstate);
27105 if (PyErr_Occurred()) SWIG_fail;
27106 }
27107 {
27108 resultobj = SWIG_From_int(static_cast<int >(result));
27109 }
27110 return resultobj;
27111 fail:
27112 return NULL;
27113 }
27114
27115
27116 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
27117 PyObject *resultobj = NULL;
27118 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27119 int result;
27120 PyObject * obj0 = 0 ;
27121 char *kwnames[] = {
27122 (char *) "self", NULL
27123 };
27124
27125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
27126 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27127 if (SWIG_arg_fail(1)) SWIG_fail;
27128 {
27129 PyThreadState* __tstate = wxPyBeginAllowThreads();
27130 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
27131
27132 wxPyEndAllowThreads(__tstate);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 }
27135 {
27136 resultobj = SWIG_From_int(static_cast<int >(result));
27137 }
27138 return resultobj;
27139 fail:
27140 return NULL;
27141 }
27142
27143
27144 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
27145 PyObject *resultobj = NULL;
27146 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27147 wxDateSpan *arg2 = 0 ;
27148 wxDateSpan *result;
27149 PyObject * obj0 = 0 ;
27150 PyObject * obj1 = 0 ;
27151 char *kwnames[] = {
27152 (char *) "self",(char *) "other", NULL
27153 };
27154
27155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
27156 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27157 if (SWIG_arg_fail(1)) SWIG_fail;
27158 {
27159 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27160 if (SWIG_arg_fail(2)) SWIG_fail;
27161 if (arg2 == NULL) {
27162 SWIG_null_ref("wxDateSpan");
27163 }
27164 if (SWIG_arg_fail(2)) SWIG_fail;
27165 }
27166 {
27167 PyThreadState* __tstate = wxPyBeginAllowThreads();
27168 {
27169 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
27170 result = (wxDateSpan *) &_result_ref;
27171 }
27172
27173 wxPyEndAllowThreads(__tstate);
27174 if (PyErr_Occurred()) SWIG_fail;
27175 }
27176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27177 return resultobj;
27178 fail:
27179 return NULL;
27180 }
27181
27182
27183 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
27184 PyObject *resultobj = NULL;
27185 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27186 wxDateSpan *arg2 = 0 ;
27187 wxDateSpan *result;
27188 PyObject * obj0 = 0 ;
27189 PyObject * obj1 = 0 ;
27190 char *kwnames[] = {
27191 (char *) "self",(char *) "other", NULL
27192 };
27193
27194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
27195 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27196 if (SWIG_arg_fail(1)) SWIG_fail;
27197 {
27198 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27199 if (SWIG_arg_fail(2)) SWIG_fail;
27200 if (arg2 == NULL) {
27201 SWIG_null_ref("wxDateSpan");
27202 }
27203 if (SWIG_arg_fail(2)) SWIG_fail;
27204 }
27205 {
27206 PyThreadState* __tstate = wxPyBeginAllowThreads();
27207 {
27208 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*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_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
27223 PyObject *resultobj = NULL;
27224 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27225 wxDateSpan *result;
27226 PyObject * obj0 = 0 ;
27227 char *kwnames[] = {
27228 (char *) "self", NULL
27229 };
27230
27231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
27232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27233 if (SWIG_arg_fail(1)) SWIG_fail;
27234 {
27235 PyThreadState* __tstate = wxPyBeginAllowThreads();
27236 {
27237 wxDateSpan &_result_ref = (arg1)->Neg();
27238 result = (wxDateSpan *) &_result_ref;
27239 }
27240
27241 wxPyEndAllowThreads(__tstate);
27242 if (PyErr_Occurred()) SWIG_fail;
27243 }
27244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27245 return resultobj;
27246 fail:
27247 return NULL;
27248 }
27249
27250
27251 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
27252 PyObject *resultobj = NULL;
27253 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27254 int arg2 ;
27255 wxDateSpan *result;
27256 PyObject * obj0 = 0 ;
27257 PyObject * obj1 = 0 ;
27258 char *kwnames[] = {
27259 (char *) "self",(char *) "factor", NULL
27260 };
27261
27262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
27263 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27264 if (SWIG_arg_fail(1)) SWIG_fail;
27265 {
27266 arg2 = static_cast<int >(SWIG_As_int(obj1));
27267 if (SWIG_arg_fail(2)) SWIG_fail;
27268 }
27269 {
27270 PyThreadState* __tstate = wxPyBeginAllowThreads();
27271 {
27272 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
27273 result = (wxDateSpan *) &_result_ref;
27274 }
27275
27276 wxPyEndAllowThreads(__tstate);
27277 if (PyErr_Occurred()) SWIG_fail;
27278 }
27279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27280 return resultobj;
27281 fail:
27282 return NULL;
27283 }
27284
27285
27286 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
27287 PyObject *resultobj = NULL;
27288 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27289 wxDateSpan *arg2 = 0 ;
27290 wxDateSpan *result;
27291 PyObject * obj0 = 0 ;
27292 PyObject * obj1 = 0 ;
27293 char *kwnames[] = {
27294 (char *) "self",(char *) "other", NULL
27295 };
27296
27297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
27298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27299 if (SWIG_arg_fail(1)) SWIG_fail;
27300 {
27301 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27302 if (SWIG_arg_fail(2)) SWIG_fail;
27303 if (arg2 == NULL) {
27304 SWIG_null_ref("wxDateSpan");
27305 }
27306 if (SWIG_arg_fail(2)) SWIG_fail;
27307 }
27308 {
27309 PyThreadState* __tstate = wxPyBeginAllowThreads();
27310 {
27311 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
27312 result = (wxDateSpan *) &_result_ref;
27313 }
27314
27315 wxPyEndAllowThreads(__tstate);
27316 if (PyErr_Occurred()) SWIG_fail;
27317 }
27318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27319 return resultobj;
27320 fail:
27321 return NULL;
27322 }
27323
27324
27325 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
27326 PyObject *resultobj = NULL;
27327 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27328 wxDateSpan *arg2 = 0 ;
27329 wxDateSpan *result;
27330 PyObject * obj0 = 0 ;
27331 PyObject * obj1 = 0 ;
27332 char *kwnames[] = {
27333 (char *) "self",(char *) "other", NULL
27334 };
27335
27336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
27337 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27338 if (SWIG_arg_fail(1)) SWIG_fail;
27339 {
27340 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27341 if (SWIG_arg_fail(2)) SWIG_fail;
27342 if (arg2 == NULL) {
27343 SWIG_null_ref("wxDateSpan");
27344 }
27345 if (SWIG_arg_fail(2)) SWIG_fail;
27346 }
27347 {
27348 PyThreadState* __tstate = wxPyBeginAllowThreads();
27349 {
27350 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*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___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
27365 PyObject *resultobj = NULL;
27366 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27367 wxDateSpan *result;
27368 PyObject * obj0 = 0 ;
27369 char *kwnames[] = {
27370 (char *) "self", NULL
27371 };
27372
27373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
27374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27375 if (SWIG_arg_fail(1)) SWIG_fail;
27376 {
27377 PyThreadState* __tstate = wxPyBeginAllowThreads();
27378 {
27379 wxDateSpan &_result_ref = (arg1)->operator -();
27380 result = (wxDateSpan *) &_result_ref;
27381 }
27382
27383 wxPyEndAllowThreads(__tstate);
27384 if (PyErr_Occurred()) SWIG_fail;
27385 }
27386 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
27387 return resultobj;
27388 fail:
27389 return NULL;
27390 }
27391
27392
27393 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
27394 PyObject *resultobj = NULL;
27395 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27396 int arg2 ;
27397 wxDateSpan *result;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 char *kwnames[] = {
27401 (char *) "self",(char *) "factor", NULL
27402 };
27403
27404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
27405 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
27406 if (SWIG_arg_fail(1)) SWIG_fail;
27407 {
27408 arg2 = static_cast<int >(SWIG_As_int(obj1));
27409 if (SWIG_arg_fail(2)) SWIG_fail;
27410 }
27411 {
27412 PyThreadState* __tstate = wxPyBeginAllowThreads();
27413 {
27414 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
27415 result = (wxDateSpan *) &_result_ref;
27416 }
27417
27418 wxPyEndAllowThreads(__tstate);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
27422 return resultobj;
27423 fail:
27424 return NULL;
27425 }
27426
27427
27428 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
27429 PyObject *resultobj = NULL;
27430 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27431 wxDateSpan *arg2 = 0 ;
27432 wxDateSpan result;
27433 PyObject * obj0 = 0 ;
27434 PyObject * obj1 = 0 ;
27435 char *kwnames[] = {
27436 (char *) "self",(char *) "other", NULL
27437 };
27438
27439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
27440 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27441 if (SWIG_arg_fail(1)) SWIG_fail;
27442 {
27443 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27444 if (SWIG_arg_fail(2)) SWIG_fail;
27445 if (arg2 == NULL) {
27446 SWIG_null_ref("wxDateSpan");
27447 }
27448 if (SWIG_arg_fail(2)) SWIG_fail;
27449 }
27450 {
27451 PyThreadState* __tstate = wxPyBeginAllowThreads();
27452 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
27453
27454 wxPyEndAllowThreads(__tstate);
27455 if (PyErr_Occurred()) SWIG_fail;
27456 }
27457 {
27458 wxDateSpan * resultptr;
27459 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27460 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27461 }
27462 return resultobj;
27463 fail:
27464 return NULL;
27465 }
27466
27467
27468 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
27469 PyObject *resultobj = NULL;
27470 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27471 wxDateSpan *arg2 = 0 ;
27472 wxDateSpan result;
27473 PyObject * obj0 = 0 ;
27474 PyObject * obj1 = 0 ;
27475 char *kwnames[] = {
27476 (char *) "self",(char *) "other", NULL
27477 };
27478
27479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
27480 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27481 if (SWIG_arg_fail(1)) SWIG_fail;
27482 {
27483 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27484 if (SWIG_arg_fail(2)) SWIG_fail;
27485 if (arg2 == NULL) {
27486 SWIG_null_ref("wxDateSpan");
27487 }
27488 if (SWIG_arg_fail(2)) SWIG_fail;
27489 }
27490 {
27491 PyThreadState* __tstate = wxPyBeginAllowThreads();
27492 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
27493
27494 wxPyEndAllowThreads(__tstate);
27495 if (PyErr_Occurred()) SWIG_fail;
27496 }
27497 {
27498 wxDateSpan * resultptr;
27499 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27501 }
27502 return resultobj;
27503 fail:
27504 return NULL;
27505 }
27506
27507
27508 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
27509 PyObject *resultobj = NULL;
27510 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27511 int arg2 ;
27512 wxDateSpan result;
27513 PyObject * obj0 = 0 ;
27514 PyObject * obj1 = 0 ;
27515 char *kwnames[] = {
27516 (char *) "self",(char *) "n", NULL
27517 };
27518
27519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
27520 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27521 if (SWIG_arg_fail(1)) SWIG_fail;
27522 {
27523 arg2 = static_cast<int >(SWIG_As_int(obj1));
27524 if (SWIG_arg_fail(2)) SWIG_fail;
27525 }
27526 {
27527 PyThreadState* __tstate = wxPyBeginAllowThreads();
27528 result = wxDateSpan___mul__(arg1,arg2);
27529
27530 wxPyEndAllowThreads(__tstate);
27531 if (PyErr_Occurred()) SWIG_fail;
27532 }
27533 {
27534 wxDateSpan * resultptr;
27535 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27537 }
27538 return resultobj;
27539 fail:
27540 return NULL;
27541 }
27542
27543
27544 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
27545 PyObject *resultobj = NULL;
27546 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27547 int arg2 ;
27548 wxDateSpan result;
27549 PyObject * obj0 = 0 ;
27550 PyObject * obj1 = 0 ;
27551 char *kwnames[] = {
27552 (char *) "self",(char *) "n", NULL
27553 };
27554
27555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
27556 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27557 if (SWIG_arg_fail(1)) SWIG_fail;
27558 {
27559 arg2 = static_cast<int >(SWIG_As_int(obj1));
27560 if (SWIG_arg_fail(2)) SWIG_fail;
27561 }
27562 {
27563 PyThreadState* __tstate = wxPyBeginAllowThreads();
27564 result = wxDateSpan___rmul__(arg1,arg2);
27565
27566 wxPyEndAllowThreads(__tstate);
27567 if (PyErr_Occurred()) SWIG_fail;
27568 }
27569 {
27570 wxDateSpan * resultptr;
27571 resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result));
27572 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
27573 }
27574 return resultobj;
27575 fail:
27576 return NULL;
27577 }
27578
27579
27580 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
27581 PyObject *resultobj = NULL;
27582 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27583 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
27584 bool result;
27585 PyObject * obj0 = 0 ;
27586 PyObject * obj1 = 0 ;
27587 char *kwnames[] = {
27588 (char *) "self",(char *) "other", NULL
27589 };
27590
27591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
27592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27593 if (SWIG_arg_fail(1)) SWIG_fail;
27594 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27595 if (SWIG_arg_fail(2)) SWIG_fail;
27596 {
27597 PyThreadState* __tstate = wxPyBeginAllowThreads();
27598 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
27599
27600 wxPyEndAllowThreads(__tstate);
27601 if (PyErr_Occurred()) SWIG_fail;
27602 }
27603 {
27604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27605 }
27606 return resultobj;
27607 fail:
27608 return NULL;
27609 }
27610
27611
27612 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
27613 PyObject *resultobj = NULL;
27614 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
27615 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
27616 bool result;
27617 PyObject * obj0 = 0 ;
27618 PyObject * obj1 = 0 ;
27619 char *kwnames[] = {
27620 (char *) "self",(char *) "other", NULL
27621 };
27622
27623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
27624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27625 if (SWIG_arg_fail(1)) SWIG_fail;
27626 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0);
27627 if (SWIG_arg_fail(2)) SWIG_fail;
27628 {
27629 PyThreadState* __tstate = wxPyBeginAllowThreads();
27630 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
27631
27632 wxPyEndAllowThreads(__tstate);
27633 if (PyErr_Occurred()) SWIG_fail;
27634 }
27635 {
27636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27637 }
27638 return resultobj;
27639 fail:
27640 return NULL;
27641 }
27642
27643
27644 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
27645 PyObject *obj;
27646 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27647 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
27648 Py_INCREF(obj);
27649 return Py_BuildValue((char *)"");
27650 }
27651 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
27652 PyObject *resultobj = NULL;
27653 long result;
27654 char *kwnames[] = {
27655 NULL
27656 };
27657
27658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
27659 {
27660 PyThreadState* __tstate = wxPyBeginAllowThreads();
27661 result = (long)wxGetLocalTime();
27662
27663 wxPyEndAllowThreads(__tstate);
27664 if (PyErr_Occurred()) SWIG_fail;
27665 }
27666 {
27667 resultobj = SWIG_From_long(static_cast<long >(result));
27668 }
27669 return resultobj;
27670 fail:
27671 return NULL;
27672 }
27673
27674
27675 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
27676 PyObject *resultobj = NULL;
27677 long result;
27678 char *kwnames[] = {
27679 NULL
27680 };
27681
27682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
27683 {
27684 PyThreadState* __tstate = wxPyBeginAllowThreads();
27685 result = (long)wxGetUTCTime();
27686
27687 wxPyEndAllowThreads(__tstate);
27688 if (PyErr_Occurred()) SWIG_fail;
27689 }
27690 {
27691 resultobj = SWIG_From_long(static_cast<long >(result));
27692 }
27693 return resultobj;
27694 fail:
27695 return NULL;
27696 }
27697
27698
27699 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
27700 PyObject *resultobj = NULL;
27701 long result;
27702 char *kwnames[] = {
27703 NULL
27704 };
27705
27706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
27707 {
27708 PyThreadState* __tstate = wxPyBeginAllowThreads();
27709 result = (long)wxGetCurrentTime();
27710
27711 wxPyEndAllowThreads(__tstate);
27712 if (PyErr_Occurred()) SWIG_fail;
27713 }
27714 {
27715 resultobj = SWIG_From_long(static_cast<long >(result));
27716 }
27717 return resultobj;
27718 fail:
27719 return NULL;
27720 }
27721
27722
27723 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
27724 PyObject *resultobj = NULL;
27725 wxLongLong result;
27726 char *kwnames[] = {
27727 NULL
27728 };
27729
27730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
27731 {
27732 PyThreadState* __tstate = wxPyBeginAllowThreads();
27733 result = wxGetLocalTimeMillis();
27734
27735 wxPyEndAllowThreads(__tstate);
27736 if (PyErr_Occurred()) SWIG_fail;
27737 }
27738 {
27739 PyObject *hi, *lo, *shifter, *shifted;
27740 hi = PyLong_FromLong( (&result)->GetHi() );
27741 lo = PyLong_FromLong( (&result)->GetLo() );
27742 shifter = PyLong_FromLong(32);
27743 shifted = PyNumber_Lshift(hi, shifter);
27744 resultobj = PyNumber_Or(shifted, lo);
27745 Py_DECREF(hi);
27746 Py_DECREF(lo);
27747 Py_DECREF(shifter);
27748 Py_DECREF(shifted);
27749 }
27750 return resultobj;
27751 fail:
27752 return NULL;
27753 }
27754
27755
27756 static int _wrap_DefaultDateTime_set(PyObject *) {
27757 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
27758 return 1;
27759 }
27760
27761
27762 static PyObject *_wrap_DefaultDateTime_get(void) {
27763 PyObject *pyobj = NULL;
27764
27765 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
27766 return pyobj;
27767 }
27768
27769
27770 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27771 PyObject *resultobj = NULL;
27772 wxDataFormatId arg1 ;
27773 wxDataFormat *result;
27774 PyObject * obj0 = 0 ;
27775 char *kwnames[] = {
27776 (char *) "type", NULL
27777 };
27778
27779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
27780 {
27781 arg1 = static_cast<wxDataFormatId >(SWIG_As_int(obj0));
27782 if (SWIG_arg_fail(1)) SWIG_fail;
27783 }
27784 {
27785 PyThreadState* __tstate = wxPyBeginAllowThreads();
27786 result = (wxDataFormat *)new wxDataFormat(arg1);
27787
27788 wxPyEndAllowThreads(__tstate);
27789 if (PyErr_Occurred()) SWIG_fail;
27790 }
27791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
27792 return resultobj;
27793 fail:
27794 return NULL;
27795 }
27796
27797
27798 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27799 PyObject *resultobj = NULL;
27800 wxString *arg1 = 0 ;
27801 wxDataFormat *result;
27802 bool temp1 = false ;
27803 PyObject * obj0 = 0 ;
27804 char *kwnames[] = {
27805 (char *) "format", NULL
27806 };
27807
27808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
27809 {
27810 arg1 = wxString_in_helper(obj0);
27811 if (arg1 == NULL) SWIG_fail;
27812 temp1 = true;
27813 }
27814 {
27815 PyThreadState* __tstate = wxPyBeginAllowThreads();
27816 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
27817
27818 wxPyEndAllowThreads(__tstate);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
27822 {
27823 if (temp1)
27824 delete arg1;
27825 }
27826 return resultobj;
27827 fail:
27828 {
27829 if (temp1)
27830 delete arg1;
27831 }
27832 return NULL;
27833 }
27834
27835
27836 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
27837 PyObject *resultobj = NULL;
27838 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27839 PyObject * obj0 = 0 ;
27840 char *kwnames[] = {
27841 (char *) "self", NULL
27842 };
27843
27844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
27845 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27846 if (SWIG_arg_fail(1)) SWIG_fail;
27847 {
27848 PyThreadState* __tstate = wxPyBeginAllowThreads();
27849 delete arg1;
27850
27851 wxPyEndAllowThreads(__tstate);
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
27854 Py_INCREF(Py_None); resultobj = Py_None;
27855 return resultobj;
27856 fail:
27857 return NULL;
27858 }
27859
27860
27861 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
27862 PyObject *resultobj = NULL;
27863 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27864 wxDataFormatId arg2 ;
27865 bool result;
27866 PyObject * obj0 = 0 ;
27867 PyObject * obj1 = 0 ;
27868
27869 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
27870 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27871 if (SWIG_arg_fail(1)) SWIG_fail;
27872 {
27873 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
27874 if (SWIG_arg_fail(2)) SWIG_fail;
27875 }
27876 {
27877 PyThreadState* __tstate = wxPyBeginAllowThreads();
27878 result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2);
27879
27880 wxPyEndAllowThreads(__tstate);
27881 if (PyErr_Occurred()) SWIG_fail;
27882 }
27883 {
27884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27885 }
27886 return resultobj;
27887 fail:
27888 return NULL;
27889 }
27890
27891
27892 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
27893 PyObject *resultobj = NULL;
27894 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27895 wxDataFormatId arg2 ;
27896 bool result;
27897 PyObject * obj0 = 0 ;
27898 PyObject * obj1 = 0 ;
27899
27900 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
27901 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27902 if (SWIG_arg_fail(1)) SWIG_fail;
27903 {
27904 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
27905 if (SWIG_arg_fail(2)) SWIG_fail;
27906 }
27907 {
27908 PyThreadState* __tstate = wxPyBeginAllowThreads();
27909 result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2);
27910
27911 wxPyEndAllowThreads(__tstate);
27912 if (PyErr_Occurred()) SWIG_fail;
27913 }
27914 {
27915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27916 }
27917 return resultobj;
27918 fail:
27919 return NULL;
27920 }
27921
27922
27923 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
27924 PyObject *resultobj = NULL;
27925 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
27926 wxDataFormat *arg2 = 0 ;
27927 bool result;
27928 PyObject * obj0 = 0 ;
27929 PyObject * obj1 = 0 ;
27930
27931 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
27932 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27933 if (SWIG_arg_fail(1)) SWIG_fail;
27934 {
27935 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
27936 if (SWIG_arg_fail(2)) SWIG_fail;
27937 if (arg2 == NULL) {
27938 SWIG_null_ref("wxDataFormat");
27939 }
27940 if (SWIG_arg_fail(2)) SWIG_fail;
27941 }
27942 {
27943 PyThreadState* __tstate = wxPyBeginAllowThreads();
27944 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
27945
27946 wxPyEndAllowThreads(__tstate);
27947 if (PyErr_Occurred()) SWIG_fail;
27948 }
27949 {
27950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27951 }
27952 return resultobj;
27953 fail:
27954 return NULL;
27955 }
27956
27957
27958 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
27959 int argc;
27960 PyObject *argv[3];
27961 int ii;
27962
27963 argc = PyObject_Length(args);
27964 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27965 argv[ii] = PyTuple_GetItem(args,ii);
27966 }
27967 if (argc == 2) {
27968 int _v;
27969 {
27970 void *ptr;
27971 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27972 _v = 0;
27973 PyErr_Clear();
27974 } else {
27975 _v = 1;
27976 }
27977 }
27978 if (_v) {
27979 {
27980 void *ptr = 0;
27981 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27982 _v = 0;
27983 PyErr_Clear();
27984 } else {
27985 _v = (ptr != 0);
27986 }
27987 }
27988 if (_v) {
27989 return _wrap_DataFormat___eq____SWIG_1(self,args);
27990 }
27991 }
27992 }
27993 if (argc == 2) {
27994 int _v;
27995 {
27996 void *ptr;
27997 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
27998 _v = 0;
27999 PyErr_Clear();
28000 } else {
28001 _v = 1;
28002 }
28003 }
28004 if (_v) {
28005 _v = SWIG_Check_int(argv[1]);
28006 if (_v) {
28007 return _wrap_DataFormat___eq____SWIG_0(self,args);
28008 }
28009 }
28010 }
28011
28012 Py_INCREF(Py_NotImplemented);
28013 return Py_NotImplemented;
28014 }
28015
28016
28017 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
28018 PyObject *resultobj = NULL;
28019 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28020 wxDataFormat *arg2 = 0 ;
28021 bool result;
28022 PyObject * obj0 = 0 ;
28023 PyObject * obj1 = 0 ;
28024
28025 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
28026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28027 if (SWIG_arg_fail(1)) SWIG_fail;
28028 {
28029 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28030 if (SWIG_arg_fail(2)) SWIG_fail;
28031 if (arg2 == NULL) {
28032 SWIG_null_ref("wxDataFormat");
28033 }
28034 if (SWIG_arg_fail(2)) SWIG_fail;
28035 }
28036 {
28037 PyThreadState* __tstate = wxPyBeginAllowThreads();
28038 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
28039
28040 wxPyEndAllowThreads(__tstate);
28041 if (PyErr_Occurred()) SWIG_fail;
28042 }
28043 {
28044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28045 }
28046 return resultobj;
28047 fail:
28048 return NULL;
28049 }
28050
28051
28052 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
28053 int argc;
28054 PyObject *argv[3];
28055 int ii;
28056
28057 argc = PyObject_Length(args);
28058 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
28059 argv[ii] = PyTuple_GetItem(args,ii);
28060 }
28061 if (argc == 2) {
28062 int _v;
28063 {
28064 void *ptr;
28065 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28066 _v = 0;
28067 PyErr_Clear();
28068 } else {
28069 _v = 1;
28070 }
28071 }
28072 if (_v) {
28073 {
28074 void *ptr = 0;
28075 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28076 _v = 0;
28077 PyErr_Clear();
28078 } else {
28079 _v = (ptr != 0);
28080 }
28081 }
28082 if (_v) {
28083 return _wrap_DataFormat___ne____SWIG_1(self,args);
28084 }
28085 }
28086 }
28087 if (argc == 2) {
28088 int _v;
28089 {
28090 void *ptr;
28091 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
28092 _v = 0;
28093 PyErr_Clear();
28094 } else {
28095 _v = 1;
28096 }
28097 }
28098 if (_v) {
28099 _v = SWIG_Check_int(argv[1]);
28100 if (_v) {
28101 return _wrap_DataFormat___ne____SWIG_0(self,args);
28102 }
28103 }
28104 }
28105
28106 Py_INCREF(Py_NotImplemented);
28107 return Py_NotImplemented;
28108 }
28109
28110
28111 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
28112 PyObject *resultobj = NULL;
28113 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28114 wxDataFormatId arg2 ;
28115 PyObject * obj0 = 0 ;
28116 PyObject * obj1 = 0 ;
28117 char *kwnames[] = {
28118 (char *) "self",(char *) "format", NULL
28119 };
28120
28121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
28122 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28123 if (SWIG_arg_fail(1)) SWIG_fail;
28124 {
28125 arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1));
28126 if (SWIG_arg_fail(2)) SWIG_fail;
28127 }
28128 {
28129 PyThreadState* __tstate = wxPyBeginAllowThreads();
28130 (arg1)->SetType(arg2);
28131
28132 wxPyEndAllowThreads(__tstate);
28133 if (PyErr_Occurred()) SWIG_fail;
28134 }
28135 Py_INCREF(Py_None); resultobj = Py_None;
28136 return resultobj;
28137 fail:
28138 return NULL;
28139 }
28140
28141
28142 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
28143 PyObject *resultobj = NULL;
28144 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28145 wxDataFormatId result;
28146 PyObject * obj0 = 0 ;
28147 char *kwnames[] = {
28148 (char *) "self", NULL
28149 };
28150
28151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
28152 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28153 if (SWIG_arg_fail(1)) SWIG_fail;
28154 {
28155 PyThreadState* __tstate = wxPyBeginAllowThreads();
28156 result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType();
28157
28158 wxPyEndAllowThreads(__tstate);
28159 if (PyErr_Occurred()) SWIG_fail;
28160 }
28161 resultobj = SWIG_From_int((result));
28162 return resultobj;
28163 fail:
28164 return NULL;
28165 }
28166
28167
28168 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
28169 PyObject *resultobj = NULL;
28170 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28171 wxString result;
28172 PyObject * obj0 = 0 ;
28173 char *kwnames[] = {
28174 (char *) "self", NULL
28175 };
28176
28177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
28178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28179 if (SWIG_arg_fail(1)) SWIG_fail;
28180 {
28181 PyThreadState* __tstate = wxPyBeginAllowThreads();
28182 result = ((wxDataFormat const *)arg1)->GetId();
28183
28184 wxPyEndAllowThreads(__tstate);
28185 if (PyErr_Occurred()) SWIG_fail;
28186 }
28187 {
28188 #if wxUSE_UNICODE
28189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28190 #else
28191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28192 #endif
28193 }
28194 return resultobj;
28195 fail:
28196 return NULL;
28197 }
28198
28199
28200 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
28201 PyObject *resultobj = NULL;
28202 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
28203 wxString *arg2 = 0 ;
28204 bool temp2 = false ;
28205 PyObject * obj0 = 0 ;
28206 PyObject * obj1 = 0 ;
28207 char *kwnames[] = {
28208 (char *) "self",(char *) "format", NULL
28209 };
28210
28211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
28212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28213 if (SWIG_arg_fail(1)) SWIG_fail;
28214 {
28215 arg2 = wxString_in_helper(obj1);
28216 if (arg2 == NULL) SWIG_fail;
28217 temp2 = true;
28218 }
28219 {
28220 PyThreadState* __tstate = wxPyBeginAllowThreads();
28221 (arg1)->SetId((wxString const &)*arg2);
28222
28223 wxPyEndAllowThreads(__tstate);
28224 if (PyErr_Occurred()) SWIG_fail;
28225 }
28226 Py_INCREF(Py_None); resultobj = Py_None;
28227 {
28228 if (temp2)
28229 delete arg2;
28230 }
28231 return resultobj;
28232 fail:
28233 {
28234 if (temp2)
28235 delete arg2;
28236 }
28237 return NULL;
28238 }
28239
28240
28241 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
28242 PyObject *obj;
28243 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28244 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
28245 Py_INCREF(obj);
28246 return Py_BuildValue((char *)"");
28247 }
28248 static int _wrap_FormatInvalid_set(PyObject *) {
28249 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
28250 return 1;
28251 }
28252
28253
28254 static PyObject *_wrap_FormatInvalid_get(void) {
28255 PyObject *pyobj = NULL;
28256
28257 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
28258 return pyobj;
28259 }
28260
28261
28262 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
28263 PyObject *resultobj = NULL;
28264 wxDataObject *arg1 = (wxDataObject *) 0 ;
28265 PyObject * obj0 = 0 ;
28266 char *kwnames[] = {
28267 (char *) "self", NULL
28268 };
28269
28270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
28271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28272 if (SWIG_arg_fail(1)) SWIG_fail;
28273 {
28274 PyThreadState* __tstate = wxPyBeginAllowThreads();
28275 delete arg1;
28276
28277 wxPyEndAllowThreads(__tstate);
28278 if (PyErr_Occurred()) SWIG_fail;
28279 }
28280 Py_INCREF(Py_None); resultobj = Py_None;
28281 return resultobj;
28282 fail:
28283 return NULL;
28284 }
28285
28286
28287 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28288 PyObject *resultobj = NULL;
28289 wxDataObject *arg1 = (wxDataObject *) 0 ;
28290 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28291 SwigValueWrapper<wxDataFormat > result;
28292 PyObject * obj0 = 0 ;
28293 PyObject * obj1 = 0 ;
28294 char *kwnames[] = {
28295 (char *) "self",(char *) "dir", NULL
28296 };
28297
28298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
28299 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28300 if (SWIG_arg_fail(1)) SWIG_fail;
28301 if (obj1) {
28302 {
28303 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28304 if (SWIG_arg_fail(2)) SWIG_fail;
28305 }
28306 }
28307 {
28308 PyThreadState* __tstate = wxPyBeginAllowThreads();
28309 result = ((wxDataObject const *)arg1)->GetPreferredFormat(arg2);
28310
28311 wxPyEndAllowThreads(__tstate);
28312 if (PyErr_Occurred()) SWIG_fail;
28313 }
28314 {
28315 wxDataFormat * resultptr;
28316 resultptr = new wxDataFormat(static_cast<wxDataFormat & >(result));
28317 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
28318 }
28319 return resultobj;
28320 fail:
28321 return NULL;
28322 }
28323
28324
28325 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
28326 PyObject *resultobj = NULL;
28327 wxDataObject *arg1 = (wxDataObject *) 0 ;
28328 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28329 size_t result;
28330 PyObject * obj0 = 0 ;
28331 PyObject * obj1 = 0 ;
28332 char *kwnames[] = {
28333 (char *) "self",(char *) "dir", NULL
28334 };
28335
28336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
28337 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28338 if (SWIG_arg_fail(1)) SWIG_fail;
28339 if (obj1) {
28340 {
28341 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28342 if (SWIG_arg_fail(2)) SWIG_fail;
28343 }
28344 }
28345 {
28346 PyThreadState* __tstate = wxPyBeginAllowThreads();
28347 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount(arg2);
28348
28349 wxPyEndAllowThreads(__tstate);
28350 if (PyErr_Occurred()) SWIG_fail;
28351 }
28352 {
28353 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28354 }
28355 return resultobj;
28356 fail:
28357 return NULL;
28358 }
28359
28360
28361 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
28362 PyObject *resultobj = NULL;
28363 wxDataObject *arg1 = (wxDataObject *) 0 ;
28364 wxDataFormat *arg2 = 0 ;
28365 wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ;
28366 bool result;
28367 PyObject * obj0 = 0 ;
28368 PyObject * obj1 = 0 ;
28369 PyObject * obj2 = 0 ;
28370 char *kwnames[] = {
28371 (char *) "self",(char *) "format",(char *) "dir", NULL
28372 };
28373
28374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
28375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28376 if (SWIG_arg_fail(1)) SWIG_fail;
28377 {
28378 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28379 if (SWIG_arg_fail(2)) SWIG_fail;
28380 if (arg2 == NULL) {
28381 SWIG_null_ref("wxDataFormat");
28382 }
28383 if (SWIG_arg_fail(2)) SWIG_fail;
28384 }
28385 if (obj2) {
28386 {
28387 arg3 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj2));
28388 if (SWIG_arg_fail(3)) SWIG_fail;
28389 }
28390 }
28391 {
28392 PyThreadState* __tstate = wxPyBeginAllowThreads();
28393 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,arg3);
28394
28395 wxPyEndAllowThreads(__tstate);
28396 if (PyErr_Occurred()) SWIG_fail;
28397 }
28398 {
28399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28400 }
28401 return resultobj;
28402 fail:
28403 return NULL;
28404 }
28405
28406
28407 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
28408 PyObject *resultobj = NULL;
28409 wxDataObject *arg1 = (wxDataObject *) 0 ;
28410 wxDataFormat *arg2 = 0 ;
28411 size_t result;
28412 PyObject * obj0 = 0 ;
28413 PyObject * obj1 = 0 ;
28414 char *kwnames[] = {
28415 (char *) "self",(char *) "format", NULL
28416 };
28417
28418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
28419 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28420 if (SWIG_arg_fail(1)) SWIG_fail;
28421 {
28422 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28423 if (SWIG_arg_fail(2)) SWIG_fail;
28424 if (arg2 == NULL) {
28425 SWIG_null_ref("wxDataFormat");
28426 }
28427 if (SWIG_arg_fail(2)) SWIG_fail;
28428 }
28429 {
28430 PyThreadState* __tstate = wxPyBeginAllowThreads();
28431 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
28432
28433 wxPyEndAllowThreads(__tstate);
28434 if (PyErr_Occurred()) SWIG_fail;
28435 }
28436 {
28437 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28438 }
28439 return resultobj;
28440 fail:
28441 return NULL;
28442 }
28443
28444
28445 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
28446 PyObject *resultobj = NULL;
28447 wxDataObject *arg1 = (wxDataObject *) 0 ;
28448 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
28449 PyObject *result;
28450 PyObject * obj0 = 0 ;
28451 PyObject * obj1 = 0 ;
28452 char *kwnames[] = {
28453 (char *) "self",(char *) "dir", NULL
28454 };
28455
28456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
28457 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28458 if (SWIG_arg_fail(1)) SWIG_fail;
28459 if (obj1) {
28460 {
28461 arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1));
28462 if (SWIG_arg_fail(2)) SWIG_fail;
28463 }
28464 }
28465 {
28466 PyThreadState* __tstate = wxPyBeginAllowThreads();
28467 result = (PyObject *)wxDataObject_GetAllFormats(arg1,arg2);
28468
28469 wxPyEndAllowThreads(__tstate);
28470 if (PyErr_Occurred()) SWIG_fail;
28471 }
28472 resultobj = result;
28473 return resultobj;
28474 fail:
28475 return NULL;
28476 }
28477
28478
28479 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
28480 PyObject *resultobj = NULL;
28481 wxDataObject *arg1 = (wxDataObject *) 0 ;
28482 wxDataFormat *arg2 = 0 ;
28483 PyObject *result;
28484 PyObject * obj0 = 0 ;
28485 PyObject * obj1 = 0 ;
28486 char *kwnames[] = {
28487 (char *) "self",(char *) "format", NULL
28488 };
28489
28490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
28491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28492 if (SWIG_arg_fail(1)) SWIG_fail;
28493 {
28494 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28495 if (SWIG_arg_fail(2)) SWIG_fail;
28496 if (arg2 == NULL) {
28497 SWIG_null_ref("wxDataFormat");
28498 }
28499 if (SWIG_arg_fail(2)) SWIG_fail;
28500 }
28501 {
28502 PyThreadState* __tstate = wxPyBeginAllowThreads();
28503 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
28504
28505 wxPyEndAllowThreads(__tstate);
28506 if (PyErr_Occurred()) SWIG_fail;
28507 }
28508 resultobj = result;
28509 return resultobj;
28510 fail:
28511 return NULL;
28512 }
28513
28514
28515 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
28516 PyObject *resultobj = NULL;
28517 wxDataObject *arg1 = (wxDataObject *) 0 ;
28518 wxDataFormat *arg2 = 0 ;
28519 PyObject *arg3 = (PyObject *) 0 ;
28520 bool result;
28521 PyObject * obj0 = 0 ;
28522 PyObject * obj1 = 0 ;
28523 PyObject * obj2 = 0 ;
28524 char *kwnames[] = {
28525 (char *) "self",(char *) "format",(char *) "data", NULL
28526 };
28527
28528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
28529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
28530 if (SWIG_arg_fail(1)) SWIG_fail;
28531 {
28532 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28533 if (SWIG_arg_fail(2)) SWIG_fail;
28534 if (arg2 == NULL) {
28535 SWIG_null_ref("wxDataFormat");
28536 }
28537 if (SWIG_arg_fail(2)) SWIG_fail;
28538 }
28539 arg3 = obj2;
28540 {
28541 PyThreadState* __tstate = wxPyBeginAllowThreads();
28542 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
28543
28544 wxPyEndAllowThreads(__tstate);
28545 if (PyErr_Occurred()) SWIG_fail;
28546 }
28547 {
28548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28549 }
28550 return resultobj;
28551 fail:
28552 return NULL;
28553 }
28554
28555
28556 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
28557 PyObject *obj;
28558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28559 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
28560 Py_INCREF(obj);
28561 return Py_BuildValue((char *)"");
28562 }
28563 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
28564 PyObject *resultobj = NULL;
28565 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
28566 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
28567 wxDataObjectSimple *result;
28568 PyObject * obj0 = 0 ;
28569 char *kwnames[] = {
28570 (char *) "format", NULL
28571 };
28572
28573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
28574 if (obj0) {
28575 {
28576 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28577 if (SWIG_arg_fail(1)) SWIG_fail;
28578 if (arg1 == NULL) {
28579 SWIG_null_ref("wxDataFormat");
28580 }
28581 if (SWIG_arg_fail(1)) SWIG_fail;
28582 }
28583 }
28584 {
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
28587
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
28592 return resultobj;
28593 fail:
28594 return NULL;
28595 }
28596
28597
28598 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28599 PyObject *resultobj = NULL;
28600 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28601 wxDataFormat *result;
28602 PyObject * obj0 = 0 ;
28603 char *kwnames[] = {
28604 (char *) "self", NULL
28605 };
28606
28607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",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 {
28613 wxDataFormat const &_result_ref = (arg1)->GetFormat();
28614 result = (wxDataFormat *) &_result_ref;
28615 }
28616
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
28621 return resultobj;
28622 fail:
28623 return NULL;
28624 }
28625
28626
28627 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
28628 PyObject *resultobj = NULL;
28629 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28630 wxDataFormat *arg2 = 0 ;
28631 PyObject * obj0 = 0 ;
28632 PyObject * obj1 = 0 ;
28633 char *kwnames[] = {
28634 (char *) "self",(char *) "format", NULL
28635 };
28636
28637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
28638 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28639 if (SWIG_arg_fail(1)) SWIG_fail;
28640 {
28641 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28642 if (SWIG_arg_fail(2)) SWIG_fail;
28643 if (arg2 == NULL) {
28644 SWIG_null_ref("wxDataFormat");
28645 }
28646 if (SWIG_arg_fail(2)) SWIG_fail;
28647 }
28648 {
28649 PyThreadState* __tstate = wxPyBeginAllowThreads();
28650 (arg1)->SetFormat((wxDataFormat const &)*arg2);
28651
28652 wxPyEndAllowThreads(__tstate);
28653 if (PyErr_Occurred()) SWIG_fail;
28654 }
28655 Py_INCREF(Py_None); resultobj = Py_None;
28656 return resultobj;
28657 fail:
28658 return NULL;
28659 }
28660
28661
28662 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
28663 PyObject *resultobj = NULL;
28664 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28665 size_t result;
28666 PyObject * obj0 = 0 ;
28667 char *kwnames[] = {
28668 (char *) "self", NULL
28669 };
28670
28671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
28672 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28673 if (SWIG_arg_fail(1)) SWIG_fail;
28674 {
28675 PyThreadState* __tstate = wxPyBeginAllowThreads();
28676 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
28677
28678 wxPyEndAllowThreads(__tstate);
28679 if (PyErr_Occurred()) SWIG_fail;
28680 }
28681 {
28682 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28683 }
28684 return resultobj;
28685 fail:
28686 return NULL;
28687 }
28688
28689
28690 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
28691 PyObject *resultobj = NULL;
28692 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28693 PyObject *result;
28694 PyObject * obj0 = 0 ;
28695 char *kwnames[] = {
28696 (char *) "self", NULL
28697 };
28698
28699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
28700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28701 if (SWIG_arg_fail(1)) SWIG_fail;
28702 {
28703 PyThreadState* __tstate = wxPyBeginAllowThreads();
28704 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
28705
28706 wxPyEndAllowThreads(__tstate);
28707 if (PyErr_Occurred()) SWIG_fail;
28708 }
28709 resultobj = result;
28710 return resultobj;
28711 fail:
28712 return NULL;
28713 }
28714
28715
28716 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
28717 PyObject *resultobj = NULL;
28718 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
28719 PyObject *arg2 = (PyObject *) 0 ;
28720 bool result;
28721 PyObject * obj0 = 0 ;
28722 PyObject * obj1 = 0 ;
28723 char *kwnames[] = {
28724 (char *) "self",(char *) "data", NULL
28725 };
28726
28727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
28728 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28729 if (SWIG_arg_fail(1)) SWIG_fail;
28730 arg2 = obj1;
28731 {
28732 PyThreadState* __tstate = wxPyBeginAllowThreads();
28733 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
28734
28735 wxPyEndAllowThreads(__tstate);
28736 if (PyErr_Occurred()) SWIG_fail;
28737 }
28738 {
28739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28740 }
28741 return resultobj;
28742 fail:
28743 return NULL;
28744 }
28745
28746
28747 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
28748 PyObject *obj;
28749 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28750 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
28751 Py_INCREF(obj);
28752 return Py_BuildValue((char *)"");
28753 }
28754 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
28755 PyObject *resultobj = NULL;
28756 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
28757 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
28758 wxPyDataObjectSimple *result;
28759 PyObject * obj0 = 0 ;
28760 char *kwnames[] = {
28761 (char *) "format", NULL
28762 };
28763
28764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
28765 if (obj0) {
28766 {
28767 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
28768 if (SWIG_arg_fail(1)) SWIG_fail;
28769 if (arg1 == NULL) {
28770 SWIG_null_ref("wxDataFormat");
28771 }
28772 if (SWIG_arg_fail(1)) SWIG_fail;
28773 }
28774 }
28775 {
28776 PyThreadState* __tstate = wxPyBeginAllowThreads();
28777 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
28778
28779 wxPyEndAllowThreads(__tstate);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
28783 return resultobj;
28784 fail:
28785 return NULL;
28786 }
28787
28788
28789 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
28790 PyObject *resultobj = NULL;
28791 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
28792 PyObject *arg2 = (PyObject *) 0 ;
28793 PyObject *arg3 = (PyObject *) 0 ;
28794 PyObject * obj0 = 0 ;
28795 PyObject * obj1 = 0 ;
28796 PyObject * obj2 = 0 ;
28797 char *kwnames[] = {
28798 (char *) "self",(char *) "self",(char *) "_class", NULL
28799 };
28800
28801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28802 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_EXCEPTION | 0);
28803 if (SWIG_arg_fail(1)) SWIG_fail;
28804 arg2 = obj1;
28805 arg3 = obj2;
28806 {
28807 PyThreadState* __tstate = wxPyBeginAllowThreads();
28808 (arg1)->_setCallbackInfo(arg2,arg3);
28809
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 Py_INCREF(Py_None); resultobj = Py_None;
28814 return resultobj;
28815 fail:
28816 return NULL;
28817 }
28818
28819
28820 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
28821 PyObject *obj;
28822 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28823 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
28824 Py_INCREF(obj);
28825 return Py_BuildValue((char *)"");
28826 }
28827 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
28828 PyObject *resultobj = NULL;
28829 wxDataObjectComposite *result;
28830 char *kwnames[] = {
28831 NULL
28832 };
28833
28834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
28835 {
28836 PyThreadState* __tstate = wxPyBeginAllowThreads();
28837 result = (wxDataObjectComposite *)new wxDataObjectComposite();
28838
28839 wxPyEndAllowThreads(__tstate);
28840 if (PyErr_Occurred()) SWIG_fail;
28841 }
28842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
28843 return resultobj;
28844 fail:
28845 return NULL;
28846 }
28847
28848
28849 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
28850 PyObject *resultobj = NULL;
28851 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
28852 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
28853 bool arg3 = (bool) false ;
28854 PyObject * obj0 = 0 ;
28855 PyObject * obj1 = 0 ;
28856 PyObject * obj2 = 0 ;
28857 char *kwnames[] = {
28858 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
28859 };
28860
28861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
28862 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_EXCEPTION | 0);
28863 if (SWIG_arg_fail(1)) SWIG_fail;
28864 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
28865 if (SWIG_arg_fail(2)) SWIG_fail;
28866 if (obj2) {
28867 {
28868 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
28869 if (SWIG_arg_fail(3)) SWIG_fail;
28870 }
28871 }
28872 {
28873 PyThreadState* __tstate = wxPyBeginAllowThreads();
28874 (arg1)->Add(arg2,arg3);
28875
28876 wxPyEndAllowThreads(__tstate);
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 Py_INCREF(Py_None); resultobj = Py_None;
28880 return resultobj;
28881 fail:
28882 return NULL;
28883 }
28884
28885
28886 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
28887 PyObject *obj;
28888 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28889 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
28890 Py_INCREF(obj);
28891 return Py_BuildValue((char *)"");
28892 }
28893 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
28894 PyObject *resultobj = NULL;
28895 wxString const &arg1_defvalue = wxPyEmptyString ;
28896 wxString *arg1 = (wxString *) &arg1_defvalue ;
28897 wxTextDataObject *result;
28898 bool temp1 = false ;
28899 PyObject * obj0 = 0 ;
28900 char *kwnames[] = {
28901 (char *) "text", NULL
28902 };
28903
28904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
28905 if (obj0) {
28906 {
28907 arg1 = wxString_in_helper(obj0);
28908 if (arg1 == NULL) SWIG_fail;
28909 temp1 = true;
28910 }
28911 }
28912 {
28913 PyThreadState* __tstate = wxPyBeginAllowThreads();
28914 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
28915
28916 wxPyEndAllowThreads(__tstate);
28917 if (PyErr_Occurred()) SWIG_fail;
28918 }
28919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
28920 {
28921 if (temp1)
28922 delete arg1;
28923 }
28924 return resultobj;
28925 fail:
28926 {
28927 if (temp1)
28928 delete arg1;
28929 }
28930 return NULL;
28931 }
28932
28933
28934 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
28935 PyObject *resultobj = NULL;
28936 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28937 size_t result;
28938 PyObject * obj0 = 0 ;
28939 char *kwnames[] = {
28940 (char *) "self", NULL
28941 };
28942
28943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
28944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
28945 if (SWIG_arg_fail(1)) SWIG_fail;
28946 {
28947 PyThreadState* __tstate = wxPyBeginAllowThreads();
28948 result = (size_t)(arg1)->GetTextLength();
28949
28950 wxPyEndAllowThreads(__tstate);
28951 if (PyErr_Occurred()) SWIG_fail;
28952 }
28953 {
28954 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
28955 }
28956 return resultobj;
28957 fail:
28958 return NULL;
28959 }
28960
28961
28962 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
28963 PyObject *resultobj = NULL;
28964 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28965 wxString result;
28966 PyObject * obj0 = 0 ;
28967 char *kwnames[] = {
28968 (char *) "self", NULL
28969 };
28970
28971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
28972 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
28973 if (SWIG_arg_fail(1)) SWIG_fail;
28974 {
28975 PyThreadState* __tstate = wxPyBeginAllowThreads();
28976 result = (arg1)->GetText();
28977
28978 wxPyEndAllowThreads(__tstate);
28979 if (PyErr_Occurred()) SWIG_fail;
28980 }
28981 {
28982 #if wxUSE_UNICODE
28983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28984 #else
28985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28986 #endif
28987 }
28988 return resultobj;
28989 fail:
28990 return NULL;
28991 }
28992
28993
28994 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
28995 PyObject *resultobj = NULL;
28996 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
28997 wxString *arg2 = 0 ;
28998 bool temp2 = false ;
28999 PyObject * obj0 = 0 ;
29000 PyObject * obj1 = 0 ;
29001 char *kwnames[] = {
29002 (char *) "self",(char *) "text", NULL
29003 };
29004
29005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
29006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0);
29007 if (SWIG_arg_fail(1)) SWIG_fail;
29008 {
29009 arg2 = wxString_in_helper(obj1);
29010 if (arg2 == NULL) SWIG_fail;
29011 temp2 = true;
29012 }
29013 {
29014 PyThreadState* __tstate = wxPyBeginAllowThreads();
29015 (arg1)->SetText((wxString const &)*arg2);
29016
29017 wxPyEndAllowThreads(__tstate);
29018 if (PyErr_Occurred()) SWIG_fail;
29019 }
29020 Py_INCREF(Py_None); resultobj = Py_None;
29021 {
29022 if (temp2)
29023 delete arg2;
29024 }
29025 return resultobj;
29026 fail:
29027 {
29028 if (temp2)
29029 delete arg2;
29030 }
29031 return NULL;
29032 }
29033
29034
29035 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
29036 PyObject *obj;
29037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29038 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
29039 Py_INCREF(obj);
29040 return Py_BuildValue((char *)"");
29041 }
29042 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29043 PyObject *resultobj = NULL;
29044 wxString const &arg1_defvalue = wxPyEmptyString ;
29045 wxString *arg1 = (wxString *) &arg1_defvalue ;
29046 wxPyTextDataObject *result;
29047 bool temp1 = false ;
29048 PyObject * obj0 = 0 ;
29049 char *kwnames[] = {
29050 (char *) "text", NULL
29051 };
29052
29053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
29054 if (obj0) {
29055 {
29056 arg1 = wxString_in_helper(obj0);
29057 if (arg1 == NULL) SWIG_fail;
29058 temp1 = true;
29059 }
29060 }
29061 {
29062 PyThreadState* __tstate = wxPyBeginAllowThreads();
29063 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
29064
29065 wxPyEndAllowThreads(__tstate);
29066 if (PyErr_Occurred()) SWIG_fail;
29067 }
29068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
29069 {
29070 if (temp1)
29071 delete arg1;
29072 }
29073 return resultobj;
29074 fail:
29075 {
29076 if (temp1)
29077 delete arg1;
29078 }
29079 return NULL;
29080 }
29081
29082
29083 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29084 PyObject *resultobj = NULL;
29085 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
29086 PyObject *arg2 = (PyObject *) 0 ;
29087 PyObject *arg3 = (PyObject *) 0 ;
29088 PyObject * obj0 = 0 ;
29089 PyObject * obj1 = 0 ;
29090 PyObject * obj2 = 0 ;
29091 char *kwnames[] = {
29092 (char *) "self",(char *) "self",(char *) "_class", NULL
29093 };
29094
29095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_EXCEPTION | 0);
29097 if (SWIG_arg_fail(1)) SWIG_fail;
29098 arg2 = obj1;
29099 arg3 = obj2;
29100 {
29101 PyThreadState* __tstate = wxPyBeginAllowThreads();
29102 (arg1)->_setCallbackInfo(arg2,arg3);
29103
29104 wxPyEndAllowThreads(__tstate);
29105 if (PyErr_Occurred()) SWIG_fail;
29106 }
29107 Py_INCREF(Py_None); resultobj = Py_None;
29108 return resultobj;
29109 fail:
29110 return NULL;
29111 }
29112
29113
29114 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
29115 PyObject *obj;
29116 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29117 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
29118 Py_INCREF(obj);
29119 return Py_BuildValue((char *)"");
29120 }
29121 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29122 PyObject *resultobj = NULL;
29123 wxBitmap const &arg1_defvalue = wxNullBitmap ;
29124 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
29125 wxBitmapDataObject *result;
29126 PyObject * obj0 = 0 ;
29127 char *kwnames[] = {
29128 (char *) "bitmap", NULL
29129 };
29130
29131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
29132 if (obj0) {
29133 {
29134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29135 if (SWIG_arg_fail(1)) SWIG_fail;
29136 if (arg1 == NULL) {
29137 SWIG_null_ref("wxBitmap");
29138 }
29139 if (SWIG_arg_fail(1)) SWIG_fail;
29140 }
29141 }
29142 {
29143 PyThreadState* __tstate = wxPyBeginAllowThreads();
29144 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
29145
29146 wxPyEndAllowThreads(__tstate);
29147 if (PyErr_Occurred()) SWIG_fail;
29148 }
29149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
29150 return resultobj;
29151 fail:
29152 return NULL;
29153 }
29154
29155
29156 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
29157 PyObject *resultobj = NULL;
29158 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
29159 wxBitmap result;
29160 PyObject * obj0 = 0 ;
29161 char *kwnames[] = {
29162 (char *) "self", NULL
29163 };
29164
29165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
29166 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29167 if (SWIG_arg_fail(1)) SWIG_fail;
29168 {
29169 PyThreadState* __tstate = wxPyBeginAllowThreads();
29170 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
29171
29172 wxPyEndAllowThreads(__tstate);
29173 if (PyErr_Occurred()) SWIG_fail;
29174 }
29175 {
29176 wxBitmap * resultptr;
29177 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
29178 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
29179 }
29180 return resultobj;
29181 fail:
29182 return NULL;
29183 }
29184
29185
29186 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
29187 PyObject *resultobj = NULL;
29188 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
29189 wxBitmap *arg2 = 0 ;
29190 PyObject * obj0 = 0 ;
29191 PyObject * obj1 = 0 ;
29192 char *kwnames[] = {
29193 (char *) "self",(char *) "bitmap", NULL
29194 };
29195
29196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
29197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29198 if (SWIG_arg_fail(1)) SWIG_fail;
29199 {
29200 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29201 if (SWIG_arg_fail(2)) SWIG_fail;
29202 if (arg2 == NULL) {
29203 SWIG_null_ref("wxBitmap");
29204 }
29205 if (SWIG_arg_fail(2)) SWIG_fail;
29206 }
29207 {
29208 PyThreadState* __tstate = wxPyBeginAllowThreads();
29209 (arg1)->SetBitmap((wxBitmap const &)*arg2);
29210
29211 wxPyEndAllowThreads(__tstate);
29212 if (PyErr_Occurred()) SWIG_fail;
29213 }
29214 Py_INCREF(Py_None); resultobj = Py_None;
29215 return resultobj;
29216 fail:
29217 return NULL;
29218 }
29219
29220
29221 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
29222 PyObject *obj;
29223 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29224 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
29225 Py_INCREF(obj);
29226 return Py_BuildValue((char *)"");
29227 }
29228 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29229 PyObject *resultobj = NULL;
29230 wxBitmap const &arg1_defvalue = wxNullBitmap ;
29231 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
29232 wxPyBitmapDataObject *result;
29233 PyObject * obj0 = 0 ;
29234 char *kwnames[] = {
29235 (char *) "bitmap", NULL
29236 };
29237
29238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
29239 if (obj0) {
29240 {
29241 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
29242 if (SWIG_arg_fail(1)) SWIG_fail;
29243 if (arg1 == NULL) {
29244 SWIG_null_ref("wxBitmap");
29245 }
29246 if (SWIG_arg_fail(1)) SWIG_fail;
29247 }
29248 }
29249 {
29250 PyThreadState* __tstate = wxPyBeginAllowThreads();
29251 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
29252
29253 wxPyEndAllowThreads(__tstate);
29254 if (PyErr_Occurred()) SWIG_fail;
29255 }
29256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
29257 return resultobj;
29258 fail:
29259 return NULL;
29260 }
29261
29262
29263 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29264 PyObject *resultobj = NULL;
29265 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
29266 PyObject *arg2 = (PyObject *) 0 ;
29267 PyObject *arg3 = (PyObject *) 0 ;
29268 PyObject * obj0 = 0 ;
29269 PyObject * obj1 = 0 ;
29270 PyObject * obj2 = 0 ;
29271 char *kwnames[] = {
29272 (char *) "self",(char *) "self",(char *) "_class", NULL
29273 };
29274
29275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_EXCEPTION | 0);
29277 if (SWIG_arg_fail(1)) SWIG_fail;
29278 arg2 = obj1;
29279 arg3 = obj2;
29280 {
29281 PyThreadState* __tstate = wxPyBeginAllowThreads();
29282 (arg1)->_setCallbackInfo(arg2,arg3);
29283
29284 wxPyEndAllowThreads(__tstate);
29285 if (PyErr_Occurred()) SWIG_fail;
29286 }
29287 Py_INCREF(Py_None); resultobj = Py_None;
29288 return resultobj;
29289 fail:
29290 return NULL;
29291 }
29292
29293
29294 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
29295 PyObject *obj;
29296 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29297 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
29298 Py_INCREF(obj);
29299 return Py_BuildValue((char *)"");
29300 }
29301 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29302 PyObject *resultobj = NULL;
29303 wxFileDataObject *result;
29304 char *kwnames[] = {
29305 NULL
29306 };
29307
29308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
29309 {
29310 PyThreadState* __tstate = wxPyBeginAllowThreads();
29311 result = (wxFileDataObject *)new wxFileDataObject();
29312
29313 wxPyEndAllowThreads(__tstate);
29314 if (PyErr_Occurred()) SWIG_fail;
29315 }
29316 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
29317 return resultobj;
29318 fail:
29319 return NULL;
29320 }
29321
29322
29323 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
29324 PyObject *resultobj = NULL;
29325 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
29326 wxArrayString *result;
29327 PyObject * obj0 = 0 ;
29328 char *kwnames[] = {
29329 (char *) "self", NULL
29330 };
29331
29332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
29333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0);
29334 if (SWIG_arg_fail(1)) SWIG_fail;
29335 {
29336 PyThreadState* __tstate = wxPyBeginAllowThreads();
29337 {
29338 wxArrayString const &_result_ref = (arg1)->GetFilenames();
29339 result = (wxArrayString *) &_result_ref;
29340 }
29341
29342 wxPyEndAllowThreads(__tstate);
29343 if (PyErr_Occurred()) SWIG_fail;
29344 }
29345 {
29346 resultobj = wxArrayString2PyList_helper(*result);
29347 }
29348 return resultobj;
29349 fail:
29350 return NULL;
29351 }
29352
29353
29354 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
29355 PyObject *resultobj = NULL;
29356 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
29357 wxString *arg2 = 0 ;
29358 bool temp2 = false ;
29359 PyObject * obj0 = 0 ;
29360 PyObject * obj1 = 0 ;
29361 char *kwnames[] = {
29362 (char *) "self",(char *) "filename", NULL
29363 };
29364
29365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
29366 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0);
29367 if (SWIG_arg_fail(1)) SWIG_fail;
29368 {
29369 arg2 = wxString_in_helper(obj1);
29370 if (arg2 == NULL) SWIG_fail;
29371 temp2 = true;
29372 }
29373 {
29374 PyThreadState* __tstate = wxPyBeginAllowThreads();
29375 (arg1)->AddFile((wxString const &)*arg2);
29376
29377 wxPyEndAllowThreads(__tstate);
29378 if (PyErr_Occurred()) SWIG_fail;
29379 }
29380 Py_INCREF(Py_None); resultobj = Py_None;
29381 {
29382 if (temp2)
29383 delete arg2;
29384 }
29385 return resultobj;
29386 fail:
29387 {
29388 if (temp2)
29389 delete arg2;
29390 }
29391 return NULL;
29392 }
29393
29394
29395 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
29396 PyObject *obj;
29397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29398 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
29399 Py_INCREF(obj);
29400 return Py_BuildValue((char *)"");
29401 }
29402 static PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *, PyObject *args) {
29403 PyObject *resultobj = NULL;
29404 wxDataFormat *arg1 = 0 ;
29405 wxCustomDataObject *result;
29406 PyObject * obj0 = 0 ;
29407
29408 if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail;
29409 {
29410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
29411 if (SWIG_arg_fail(1)) SWIG_fail;
29412 if (arg1 == NULL) {
29413 SWIG_null_ref("wxDataFormat");
29414 }
29415 if (SWIG_arg_fail(1)) SWIG_fail;
29416 }
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
29420
29421 wxPyEndAllowThreads(__tstate);
29422 if (PyErr_Occurred()) SWIG_fail;
29423 }
29424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29425 return resultobj;
29426 fail:
29427 return NULL;
29428 }
29429
29430
29431 static PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *, PyObject *args) {
29432 PyObject *resultobj = NULL;
29433 wxString *arg1 = 0 ;
29434 wxCustomDataObject *result;
29435 bool temp1 = false ;
29436 PyObject * obj0 = 0 ;
29437
29438 if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail;
29439 {
29440 arg1 = wxString_in_helper(obj0);
29441 if (arg1 == NULL) SWIG_fail;
29442 temp1 = true;
29443 }
29444 {
29445 PyThreadState* __tstate = wxPyBeginAllowThreads();
29446 result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1);
29447
29448 wxPyEndAllowThreads(__tstate);
29449 if (PyErr_Occurred()) SWIG_fail;
29450 }
29451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29452 {
29453 if (temp1)
29454 delete arg1;
29455 }
29456 return resultobj;
29457 fail:
29458 {
29459 if (temp1)
29460 delete arg1;
29461 }
29462 return NULL;
29463 }
29464
29465
29466 static PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *, PyObject *args) {
29467 PyObject *resultobj = NULL;
29468 wxCustomDataObject *result;
29469
29470 if(!PyArg_ParseTuple(args,(char *)":new_CustomDataObject")) goto fail;
29471 {
29472 PyThreadState* __tstate = wxPyBeginAllowThreads();
29473 result = (wxCustomDataObject *)new wxCustomDataObject();
29474
29475 wxPyEndAllowThreads(__tstate);
29476 if (PyErr_Occurred()) SWIG_fail;
29477 }
29478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
29479 return resultobj;
29480 fail:
29481 return NULL;
29482 }
29483
29484
29485 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) {
29486 int argc;
29487 PyObject *argv[2];
29488 int ii;
29489
29490 argc = PyObject_Length(args);
29491 for (ii = 0; (ii < argc) && (ii < 1); ii++) {
29492 argv[ii] = PyTuple_GetItem(args,ii);
29493 }
29494 if (argc == 0) {
29495 return _wrap_new_CustomDataObject__SWIG_2(self,args);
29496 }
29497 if (argc == 1) {
29498 int _v;
29499 {
29500 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
29501 }
29502 if (_v) {
29503 return _wrap_new_CustomDataObject__SWIG_1(self,args);
29504 }
29505 }
29506 if (argc == 1) {
29507 int _v;
29508 {
29509 void *ptr = 0;
29510 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
29511 _v = 0;
29512 PyErr_Clear();
29513 } else {
29514 _v = (ptr != 0);
29515 }
29516 }
29517 if (_v) {
29518 return _wrap_new_CustomDataObject__SWIG_0(self,args);
29519 }
29520 }
29521
29522 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'");
29523 return NULL;
29524 }
29525
29526
29527 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
29528 PyObject *resultobj = NULL;
29529 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29530 PyObject *arg2 = (PyObject *) 0 ;
29531 bool result;
29532 PyObject * obj0 = 0 ;
29533 PyObject * obj1 = 0 ;
29534 char *kwnames[] = {
29535 (char *) "self",(char *) "data", NULL
29536 };
29537
29538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
29539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29540 if (SWIG_arg_fail(1)) SWIG_fail;
29541 arg2 = obj1;
29542 {
29543 PyThreadState* __tstate = wxPyBeginAllowThreads();
29544 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
29545
29546 wxPyEndAllowThreads(__tstate);
29547 if (PyErr_Occurred()) SWIG_fail;
29548 }
29549 {
29550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29551 }
29552 return resultobj;
29553 fail:
29554 return NULL;
29555 }
29556
29557
29558 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29559 PyObject *resultobj = NULL;
29560 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29561 size_t result;
29562 PyObject * obj0 = 0 ;
29563 char *kwnames[] = {
29564 (char *) "self", NULL
29565 };
29566
29567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
29568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29569 if (SWIG_arg_fail(1)) SWIG_fail;
29570 {
29571 PyThreadState* __tstate = wxPyBeginAllowThreads();
29572 result = (size_t)(arg1)->GetSize();
29573
29574 wxPyEndAllowThreads(__tstate);
29575 if (PyErr_Occurred()) SWIG_fail;
29576 }
29577 {
29578 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
29579 }
29580 return resultobj;
29581 fail:
29582 return NULL;
29583 }
29584
29585
29586 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj = NULL;
29588 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
29589 PyObject *result;
29590 PyObject * obj0 = 0 ;
29591 char *kwnames[] = {
29592 (char *) "self", NULL
29593 };
29594
29595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
29596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0);
29597 if (SWIG_arg_fail(1)) SWIG_fail;
29598 {
29599 PyThreadState* __tstate = wxPyBeginAllowThreads();
29600 result = (PyObject *)wxCustomDataObject_GetData(arg1);
29601
29602 wxPyEndAllowThreads(__tstate);
29603 if (PyErr_Occurred()) SWIG_fail;
29604 }
29605 resultobj = result;
29606 return resultobj;
29607 fail:
29608 return NULL;
29609 }
29610
29611
29612 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
29613 PyObject *obj;
29614 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29615 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
29616 Py_INCREF(obj);
29617 return Py_BuildValue((char *)"");
29618 }
29619 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29620 PyObject *resultobj = NULL;
29621 wxURLDataObject *result;
29622 char *kwnames[] = {
29623 NULL
29624 };
29625
29626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
29627 {
29628 PyThreadState* __tstate = wxPyBeginAllowThreads();
29629 result = (wxURLDataObject *)new wxURLDataObject();
29630
29631 wxPyEndAllowThreads(__tstate);
29632 if (PyErr_Occurred()) SWIG_fail;
29633 }
29634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
29635 return resultobj;
29636 fail:
29637 return NULL;
29638 }
29639
29640
29641 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
29642 PyObject *resultobj = NULL;
29643 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
29644 wxString result;
29645 PyObject * obj0 = 0 ;
29646 char *kwnames[] = {
29647 (char *) "self", NULL
29648 };
29649
29650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
29651 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0);
29652 if (SWIG_arg_fail(1)) SWIG_fail;
29653 {
29654 PyThreadState* __tstate = wxPyBeginAllowThreads();
29655 result = (arg1)->GetURL();
29656
29657 wxPyEndAllowThreads(__tstate);
29658 if (PyErr_Occurred()) SWIG_fail;
29659 }
29660 {
29661 #if wxUSE_UNICODE
29662 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29663 #else
29664 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29665 #endif
29666 }
29667 return resultobj;
29668 fail:
29669 return NULL;
29670 }
29671
29672
29673 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
29674 PyObject *resultobj = NULL;
29675 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
29676 wxString *arg2 = 0 ;
29677 bool temp2 = false ;
29678 PyObject * obj0 = 0 ;
29679 PyObject * obj1 = 0 ;
29680 char *kwnames[] = {
29681 (char *) "self",(char *) "url", NULL
29682 };
29683
29684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
29685 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0);
29686 if (SWIG_arg_fail(1)) SWIG_fail;
29687 {
29688 arg2 = wxString_in_helper(obj1);
29689 if (arg2 == NULL) SWIG_fail;
29690 temp2 = true;
29691 }
29692 {
29693 PyThreadState* __tstate = wxPyBeginAllowThreads();
29694 (arg1)->SetURL((wxString const &)*arg2);
29695
29696 wxPyEndAllowThreads(__tstate);
29697 if (PyErr_Occurred()) SWIG_fail;
29698 }
29699 Py_INCREF(Py_None); resultobj = Py_None;
29700 {
29701 if (temp2)
29702 delete arg2;
29703 }
29704 return resultobj;
29705 fail:
29706 {
29707 if (temp2)
29708 delete arg2;
29709 }
29710 return NULL;
29711 }
29712
29713
29714 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
29715 PyObject *obj;
29716 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29717 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
29718 Py_INCREF(obj);
29719 return Py_BuildValue((char *)"");
29720 }
29721 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
29722 PyObject *resultobj = NULL;
29723 wxMetafileDataObject *result;
29724 char *kwnames[] = {
29725 NULL
29726 };
29727
29728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
29729 {
29730 PyThreadState* __tstate = wxPyBeginAllowThreads();
29731 result = (wxMetafileDataObject *)new wxMetafileDataObject();
29732
29733 wxPyEndAllowThreads(__tstate);
29734 if (PyErr_Occurred()) SWIG_fail;
29735 }
29736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
29737 return resultobj;
29738 fail:
29739 return NULL;
29740 }
29741
29742
29743 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
29744 PyObject *resultobj = NULL;
29745 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
29746 wxMetafile *arg2 = 0 ;
29747 PyObject * obj0 = 0 ;
29748 PyObject * obj1 = 0 ;
29749 char *kwnames[] = {
29750 (char *) "self",(char *) "metafile", NULL
29751 };
29752
29753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
29754 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0);
29755 if (SWIG_arg_fail(1)) SWIG_fail;
29756 {
29757 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMetafile, SWIG_POINTER_EXCEPTION | 0);
29758 if (SWIG_arg_fail(2)) SWIG_fail;
29759 if (arg2 == NULL) {
29760 SWIG_null_ref("wxMetafile");
29761 }
29762 if (SWIG_arg_fail(2)) SWIG_fail;
29763 }
29764 {
29765 PyThreadState* __tstate = wxPyBeginAllowThreads();
29766 (arg1)->SetMetafile((wxMetafile const &)*arg2);
29767
29768 wxPyEndAllowThreads(__tstate);
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 Py_INCREF(Py_None); resultobj = Py_None;
29772 return resultobj;
29773 fail:
29774 return NULL;
29775 }
29776
29777
29778 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
29779 PyObject *resultobj = NULL;
29780 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
29781 wxMetafile result;
29782 PyObject * obj0 = 0 ;
29783 char *kwnames[] = {
29784 (char *) "self", NULL
29785 };
29786
29787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
29788 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0);
29789 if (SWIG_arg_fail(1)) SWIG_fail;
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
29793
29794 wxPyEndAllowThreads(__tstate);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
29797 {
29798 wxMetafile * resultptr;
29799 resultptr = new wxMetafile(static_cast<wxMetafile & >(result));
29800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
29801 }
29802 return resultobj;
29803 fail:
29804 return NULL;
29805 }
29806
29807
29808 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
29809 PyObject *obj;
29810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29811 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
29812 Py_INCREF(obj);
29813 return Py_BuildValue((char *)"");
29814 }
29815 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
29816 PyObject *resultobj = NULL;
29817 wxDragResult arg1 ;
29818 bool result;
29819 PyObject * obj0 = 0 ;
29820 char *kwnames[] = {
29821 (char *) "res", NULL
29822 };
29823
29824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
29825 {
29826 arg1 = static_cast<wxDragResult >(SWIG_As_int(obj0));
29827 if (SWIG_arg_fail(1)) SWIG_fail;
29828 }
29829 {
29830 PyThreadState* __tstate = wxPyBeginAllowThreads();
29831 result = (bool)wxIsDragResultOk(arg1);
29832
29833 wxPyEndAllowThreads(__tstate);
29834 if (PyErr_Occurred()) SWIG_fail;
29835 }
29836 {
29837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29838 }
29839 return resultobj;
29840 fail:
29841 return NULL;
29842 }
29843
29844
29845 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
29846 PyObject *resultobj = NULL;
29847 wxWindow *arg1 = (wxWindow *) 0 ;
29848 wxCursor const &arg2_defvalue = wxNullCursor ;
29849 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29850 wxCursor const &arg3_defvalue = wxNullCursor ;
29851 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
29852 wxCursor const &arg4_defvalue = wxNullCursor ;
29853 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
29854 wxPyDropSource *result;
29855 PyObject * obj0 = 0 ;
29856 PyObject * obj1 = 0 ;
29857 PyObject * obj2 = 0 ;
29858 PyObject * obj3 = 0 ;
29859 char *kwnames[] = {
29860 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
29861 };
29862
29863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29864 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29865 if (SWIG_arg_fail(1)) SWIG_fail;
29866 if (obj1) {
29867 {
29868 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29869 if (SWIG_arg_fail(2)) SWIG_fail;
29870 if (arg2 == NULL) {
29871 SWIG_null_ref("wxCursor");
29872 }
29873 if (SWIG_arg_fail(2)) SWIG_fail;
29874 }
29875 }
29876 if (obj2) {
29877 {
29878 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29879 if (SWIG_arg_fail(3)) SWIG_fail;
29880 if (arg3 == NULL) {
29881 SWIG_null_ref("wxCursor");
29882 }
29883 if (SWIG_arg_fail(3)) SWIG_fail;
29884 }
29885 }
29886 if (obj3) {
29887 {
29888 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
29889 if (SWIG_arg_fail(4)) SWIG_fail;
29890 if (arg4 == NULL) {
29891 SWIG_null_ref("wxCursor");
29892 }
29893 if (SWIG_arg_fail(4)) SWIG_fail;
29894 }
29895 }
29896 {
29897 PyThreadState* __tstate = wxPyBeginAllowThreads();
29898 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
29899
29900 wxPyEndAllowThreads(__tstate);
29901 if (PyErr_Occurred()) SWIG_fail;
29902 }
29903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
29904 return resultobj;
29905 fail:
29906 return NULL;
29907 }
29908
29909
29910 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29911 PyObject *resultobj = NULL;
29912 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29913 PyObject *arg2 = (PyObject *) 0 ;
29914 PyObject *arg3 = (PyObject *) 0 ;
29915 int arg4 ;
29916 PyObject * obj0 = 0 ;
29917 PyObject * obj1 = 0 ;
29918 PyObject * obj2 = 0 ;
29919 PyObject * obj3 = 0 ;
29920 char *kwnames[] = {
29921 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
29922 };
29923
29924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29925 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29926 if (SWIG_arg_fail(1)) SWIG_fail;
29927 arg2 = obj1;
29928 arg3 = obj2;
29929 {
29930 arg4 = static_cast<int >(SWIG_As_int(obj3));
29931 if (SWIG_arg_fail(4)) SWIG_fail;
29932 }
29933 {
29934 PyThreadState* __tstate = wxPyBeginAllowThreads();
29935 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
29936
29937 wxPyEndAllowThreads(__tstate);
29938 if (PyErr_Occurred()) SWIG_fail;
29939 }
29940 Py_INCREF(Py_None); resultobj = Py_None;
29941 return resultobj;
29942 fail:
29943 return NULL;
29944 }
29945
29946
29947 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
29948 PyObject *resultobj = NULL;
29949 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29950 PyObject * obj0 = 0 ;
29951 char *kwnames[] = {
29952 (char *) "self", NULL
29953 };
29954
29955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
29956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29957 if (SWIG_arg_fail(1)) SWIG_fail;
29958 {
29959 PyThreadState* __tstate = wxPyBeginAllowThreads();
29960 delete arg1;
29961
29962 wxPyEndAllowThreads(__tstate);
29963 if (PyErr_Occurred()) SWIG_fail;
29964 }
29965 Py_INCREF(Py_None); resultobj = Py_None;
29966 return resultobj;
29967 fail:
29968 return NULL;
29969 }
29970
29971
29972 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
29973 PyObject *resultobj = NULL;
29974 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
29975 wxDataObject *arg2 = 0 ;
29976 PyObject * obj0 = 0 ;
29977 PyObject * obj1 = 0 ;
29978 char *kwnames[] = {
29979 (char *) "self",(char *) "data", NULL
29980 };
29981
29982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
29983 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
29984 if (SWIG_arg_fail(1)) SWIG_fail;
29985 {
29986 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
29987 if (SWIG_arg_fail(2)) SWIG_fail;
29988 if (arg2 == NULL) {
29989 SWIG_null_ref("wxDataObject");
29990 }
29991 if (SWIG_arg_fail(2)) SWIG_fail;
29992 }
29993 {
29994 PyThreadState* __tstate = wxPyBeginAllowThreads();
29995 (arg1)->SetData(*arg2);
29996
29997 wxPyEndAllowThreads(__tstate);
29998 if (PyErr_Occurred()) SWIG_fail;
29999 }
30000 Py_INCREF(Py_None); resultobj = Py_None;
30001 return resultobj;
30002 fail:
30003 return NULL;
30004 }
30005
30006
30007 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30008 PyObject *resultobj = NULL;
30009 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30010 wxDataObject *result;
30011 PyObject * obj0 = 0 ;
30012 char *kwnames[] = {
30013 (char *) "self", NULL
30014 };
30015
30016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
30017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30018 if (SWIG_arg_fail(1)) SWIG_fail;
30019 {
30020 PyThreadState* __tstate = wxPyBeginAllowThreads();
30021 result = (wxDataObject *)(arg1)->GetDataObject();
30022
30023 wxPyEndAllowThreads(__tstate);
30024 if (PyErr_Occurred()) SWIG_fail;
30025 }
30026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
30027 return resultobj;
30028 fail:
30029 return NULL;
30030 }
30031
30032
30033 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
30034 PyObject *resultobj = NULL;
30035 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30036 wxDragResult arg2 ;
30037 wxCursor *arg3 = 0 ;
30038 PyObject * obj0 = 0 ;
30039 PyObject * obj1 = 0 ;
30040 PyObject * obj2 = 0 ;
30041 char *kwnames[] = {
30042 (char *) "self",(char *) "res",(char *) "cursor", NULL
30043 };
30044
30045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
30046 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30047 if (SWIG_arg_fail(1)) SWIG_fail;
30048 {
30049 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
30050 if (SWIG_arg_fail(2)) SWIG_fail;
30051 }
30052 {
30053 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
30054 if (SWIG_arg_fail(3)) SWIG_fail;
30055 if (arg3 == NULL) {
30056 SWIG_null_ref("wxCursor");
30057 }
30058 if (SWIG_arg_fail(3)) SWIG_fail;
30059 }
30060 {
30061 PyThreadState* __tstate = wxPyBeginAllowThreads();
30062 (arg1)->SetCursor(arg2,(wxCursor const &)*arg3);
30063
30064 wxPyEndAllowThreads(__tstate);
30065 if (PyErr_Occurred()) SWIG_fail;
30066 }
30067 Py_INCREF(Py_None); resultobj = Py_None;
30068 return resultobj;
30069 fail:
30070 return NULL;
30071 }
30072
30073
30074 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30075 PyObject *resultobj = NULL;
30076 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30077 int arg2 = (int) wxDrag_CopyOnly ;
30078 wxDragResult result;
30079 PyObject * obj0 = 0 ;
30080 PyObject * obj1 = 0 ;
30081 char *kwnames[] = {
30082 (char *) "self",(char *) "flags", NULL
30083 };
30084
30085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
30086 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30087 if (SWIG_arg_fail(1)) SWIG_fail;
30088 if (obj1) {
30089 {
30090 arg2 = static_cast<int >(SWIG_As_int(obj1));
30091 if (SWIG_arg_fail(2)) SWIG_fail;
30092 }
30093 }
30094 {
30095 PyThreadState* __tstate = wxPyBeginAllowThreads();
30096 result = (wxDragResult)(arg1)->DoDragDrop(arg2);
30097
30098 wxPyEndAllowThreads(__tstate);
30099 if (PyErr_Occurred()) SWIG_fail;
30100 }
30101 resultobj = SWIG_From_int((result));
30102 return resultobj;
30103 fail:
30104 return NULL;
30105 }
30106
30107
30108 static PyObject *_wrap_DropSource_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
30109 PyObject *resultobj = NULL;
30110 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
30111 wxDragResult arg2 ;
30112 bool result;
30113 PyObject * obj0 = 0 ;
30114 PyObject * obj1 = 0 ;
30115 char *kwnames[] = {
30116 (char *) "self",(char *) "effect", NULL
30117 };
30118
30119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
30120 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0);
30121 if (SWIG_arg_fail(1)) SWIG_fail;
30122 {
30123 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
30124 if (SWIG_arg_fail(2)) SWIG_fail;
30125 }
30126 {
30127 PyThreadState* __tstate = wxPyBeginAllowThreads();
30128 result = (bool)(arg1)->GiveFeedback(arg2);
30129
30130 wxPyEndAllowThreads(__tstate);
30131 if (PyErr_Occurred()) SWIG_fail;
30132 }
30133 {
30134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30135 }
30136 return resultobj;
30137 fail:
30138 return NULL;
30139 }
30140
30141
30142 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
30143 PyObject *obj;
30144 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30145 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
30146 Py_INCREF(obj);
30147 return Py_BuildValue((char *)"");
30148 }
30149 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30150 PyObject *resultobj = NULL;
30151 wxDataObject *arg1 = (wxDataObject *) NULL ;
30152 wxPyDropTarget *result;
30153 PyObject * obj0 = 0 ;
30154 char *kwnames[] = {
30155 (char *) "dataObject", NULL
30156 };
30157
30158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
30159 if (obj0) {
30160 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
30161 if (SWIG_arg_fail(1)) SWIG_fail;
30162 }
30163 {
30164 PyThreadState* __tstate = wxPyBeginAllowThreads();
30165 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
30166
30167 wxPyEndAllowThreads(__tstate);
30168 if (PyErr_Occurred()) SWIG_fail;
30169 }
30170 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
30171 return resultobj;
30172 fail:
30173 return NULL;
30174 }
30175
30176
30177 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30178 PyObject *resultobj = NULL;
30179 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30180 PyObject *arg2 = (PyObject *) 0 ;
30181 PyObject *arg3 = (PyObject *) 0 ;
30182 PyObject * obj0 = 0 ;
30183 PyObject * obj1 = 0 ;
30184 PyObject * obj2 = 0 ;
30185 char *kwnames[] = {
30186 (char *) "self",(char *) "self",(char *) "_class", NULL
30187 };
30188
30189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30191 if (SWIG_arg_fail(1)) SWIG_fail;
30192 arg2 = obj1;
30193 arg3 = obj2;
30194 {
30195 PyThreadState* __tstate = wxPyBeginAllowThreads();
30196 (arg1)->_setCallbackInfo(arg2,arg3);
30197
30198 wxPyEndAllowThreads(__tstate);
30199 if (PyErr_Occurred()) SWIG_fail;
30200 }
30201 Py_INCREF(Py_None); resultobj = Py_None;
30202 return resultobj;
30203 fail:
30204 return NULL;
30205 }
30206
30207
30208 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30209 PyObject *resultobj = NULL;
30210 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30211 PyObject * obj0 = 0 ;
30212 char *kwnames[] = {
30213 (char *) "self", NULL
30214 };
30215
30216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
30217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30218 if (SWIG_arg_fail(1)) SWIG_fail;
30219 {
30220 PyThreadState* __tstate = wxPyBeginAllowThreads();
30221 delete arg1;
30222
30223 wxPyEndAllowThreads(__tstate);
30224 if (PyErr_Occurred()) SWIG_fail;
30225 }
30226 Py_INCREF(Py_None); resultobj = Py_None;
30227 return resultobj;
30228 fail:
30229 return NULL;
30230 }
30231
30232
30233 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30234 PyObject *resultobj = NULL;
30235 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30236 wxDataObject *result;
30237 PyObject * obj0 = 0 ;
30238 char *kwnames[] = {
30239 (char *) "self", NULL
30240 };
30241
30242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
30243 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30244 if (SWIG_arg_fail(1)) SWIG_fail;
30245 {
30246 PyThreadState* __tstate = wxPyBeginAllowThreads();
30247 result = (wxDataObject *)(arg1)->GetDataObject();
30248
30249 wxPyEndAllowThreads(__tstate);
30250 if (PyErr_Occurred()) SWIG_fail;
30251 }
30252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
30253 return resultobj;
30254 fail:
30255 return NULL;
30256 }
30257
30258
30259 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
30260 PyObject *resultobj = NULL;
30261 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30262 wxDataObject *arg2 = (wxDataObject *) 0 ;
30263 PyObject * obj0 = 0 ;
30264 PyObject * obj1 = 0 ;
30265 char *kwnames[] = {
30266 (char *) "self",(char *) "dataObject", NULL
30267 };
30268
30269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
30270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30271 if (SWIG_arg_fail(1)) SWIG_fail;
30272 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
30273 if (SWIG_arg_fail(2)) SWIG_fail;
30274 {
30275 PyThreadState* __tstate = wxPyBeginAllowThreads();
30276 (arg1)->SetDataObject(arg2);
30277
30278 wxPyEndAllowThreads(__tstate);
30279 if (PyErr_Occurred()) SWIG_fail;
30280 }
30281 Py_INCREF(Py_None); resultobj = Py_None;
30282 return resultobj;
30283 fail:
30284 return NULL;
30285 }
30286
30287
30288 static PyObject *_wrap_DropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30289 PyObject *resultobj = NULL;
30290 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30291 int arg2 ;
30292 int arg3 ;
30293 wxDragResult arg4 ;
30294 wxDragResult result;
30295 PyObject * obj0 = 0 ;
30296 PyObject * obj1 = 0 ;
30297 PyObject * obj2 = 0 ;
30298 PyObject * obj3 = 0 ;
30299 char *kwnames[] = {
30300 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30301 };
30302
30303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30304 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30305 if (SWIG_arg_fail(1)) SWIG_fail;
30306 {
30307 arg2 = static_cast<int >(SWIG_As_int(obj1));
30308 if (SWIG_arg_fail(2)) SWIG_fail;
30309 }
30310 {
30311 arg3 = static_cast<int >(SWIG_As_int(obj2));
30312 if (SWIG_arg_fail(3)) SWIG_fail;
30313 }
30314 {
30315 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30316 if (SWIG_arg_fail(4)) SWIG_fail;
30317 }
30318 {
30319 PyThreadState* __tstate = wxPyBeginAllowThreads();
30320 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
30321
30322 wxPyEndAllowThreads(__tstate);
30323 if (PyErr_Occurred()) SWIG_fail;
30324 }
30325 resultobj = SWIG_From_int((result));
30326 return resultobj;
30327 fail:
30328 return NULL;
30329 }
30330
30331
30332 static PyObject *_wrap_DropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
30333 PyObject *resultobj = NULL;
30334 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30335 int arg2 ;
30336 int arg3 ;
30337 wxDragResult arg4 ;
30338 wxDragResult result;
30339 PyObject * obj0 = 0 ;
30340 PyObject * obj1 = 0 ;
30341 PyObject * obj2 = 0 ;
30342 PyObject * obj3 = 0 ;
30343 char *kwnames[] = {
30344 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30345 };
30346
30347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30348 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30349 if (SWIG_arg_fail(1)) SWIG_fail;
30350 {
30351 arg2 = static_cast<int >(SWIG_As_int(obj1));
30352 if (SWIG_arg_fail(2)) SWIG_fail;
30353 }
30354 {
30355 arg3 = static_cast<int >(SWIG_As_int(obj2));
30356 if (SWIG_arg_fail(3)) SWIG_fail;
30357 }
30358 {
30359 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30360 if (SWIG_arg_fail(4)) SWIG_fail;
30361 }
30362 {
30363 PyThreadState* __tstate = wxPyBeginAllowThreads();
30364 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
30365
30366 wxPyEndAllowThreads(__tstate);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 resultobj = SWIG_From_int((result));
30370 return resultobj;
30371 fail:
30372 return NULL;
30373 }
30374
30375
30376 static PyObject *_wrap_DropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
30377 PyObject *resultobj = NULL;
30378 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30379 PyObject * obj0 = 0 ;
30380 char *kwnames[] = {
30381 (char *) "self", NULL
30382 };
30383
30384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_OnLeave",kwnames,&obj0)) goto fail;
30385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30386 if (SWIG_arg_fail(1)) SWIG_fail;
30387 {
30388 PyThreadState* __tstate = wxPyBeginAllowThreads();
30389 (arg1)->OnLeave();
30390
30391 wxPyEndAllowThreads(__tstate);
30392 if (PyErr_Occurred()) SWIG_fail;
30393 }
30394 Py_INCREF(Py_None); resultobj = Py_None;
30395 return resultobj;
30396 fail:
30397 return NULL;
30398 }
30399
30400
30401 static PyObject *_wrap_DropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30402 PyObject *resultobj = NULL;
30403 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30404 int arg2 ;
30405 int arg3 ;
30406 bool result;
30407 PyObject * obj0 = 0 ;
30408 PyObject * obj1 = 0 ;
30409 PyObject * obj2 = 0 ;
30410 char *kwnames[] = {
30411 (char *) "self",(char *) "x",(char *) "y", NULL
30412 };
30413
30414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30416 if (SWIG_arg_fail(1)) SWIG_fail;
30417 {
30418 arg2 = static_cast<int >(SWIG_As_int(obj1));
30419 if (SWIG_arg_fail(2)) SWIG_fail;
30420 }
30421 {
30422 arg3 = static_cast<int >(SWIG_As_int(obj2));
30423 if (SWIG_arg_fail(3)) SWIG_fail;
30424 }
30425 {
30426 PyThreadState* __tstate = wxPyBeginAllowThreads();
30427 result = (bool)(arg1)->OnDrop(arg2,arg3);
30428
30429 wxPyEndAllowThreads(__tstate);
30430 if (PyErr_Occurred()) SWIG_fail;
30431 }
30432 {
30433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30434 }
30435 return resultobj;
30436 fail:
30437 return NULL;
30438 }
30439
30440
30441 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
30442 PyObject *resultobj = NULL;
30443 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30444 bool result;
30445 PyObject * obj0 = 0 ;
30446 char *kwnames[] = {
30447 (char *) "self", NULL
30448 };
30449
30450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
30451 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30452 if (SWIG_arg_fail(1)) SWIG_fail;
30453 {
30454 PyThreadState* __tstate = wxPyBeginAllowThreads();
30455 result = (bool)(arg1)->GetData();
30456
30457 wxPyEndAllowThreads(__tstate);
30458 if (PyErr_Occurred()) SWIG_fail;
30459 }
30460 {
30461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30462 }
30463 return resultobj;
30464 fail:
30465 return NULL;
30466 }
30467
30468
30469 static PyObject *_wrap_DropTarget_SetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) {
30470 PyObject *resultobj = NULL;
30471 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30472 wxDragResult arg2 ;
30473 PyObject * obj0 = 0 ;
30474 PyObject * obj1 = 0 ;
30475 char *kwnames[] = {
30476 (char *) "self",(char *) "action", NULL
30477 };
30478
30479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDefaultAction",kwnames,&obj0,&obj1)) goto fail;
30480 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30481 if (SWIG_arg_fail(1)) SWIG_fail;
30482 {
30483 arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1));
30484 if (SWIG_arg_fail(2)) SWIG_fail;
30485 }
30486 {
30487 PyThreadState* __tstate = wxPyBeginAllowThreads();
30488 (arg1)->SetDefaultAction(arg2);
30489
30490 wxPyEndAllowThreads(__tstate);
30491 if (PyErr_Occurred()) SWIG_fail;
30492 }
30493 Py_INCREF(Py_None); resultobj = Py_None;
30494 return resultobj;
30495 fail:
30496 return NULL;
30497 }
30498
30499
30500 static PyObject *_wrap_DropTarget_GetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) {
30501 PyObject *resultobj = NULL;
30502 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
30503 wxDragResult result;
30504 PyObject * obj0 = 0 ;
30505 char *kwnames[] = {
30506 (char *) "self", NULL
30507 };
30508
30509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDefaultAction",kwnames,&obj0)) goto fail;
30510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0);
30511 if (SWIG_arg_fail(1)) SWIG_fail;
30512 {
30513 PyThreadState* __tstate = wxPyBeginAllowThreads();
30514 result = (wxDragResult)(arg1)->GetDefaultAction();
30515
30516 wxPyEndAllowThreads(__tstate);
30517 if (PyErr_Occurred()) SWIG_fail;
30518 }
30519 resultobj = SWIG_From_int((result));
30520 return resultobj;
30521 fail:
30522 return NULL;
30523 }
30524
30525
30526 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
30527 PyObject *obj;
30528 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30529 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
30530 Py_INCREF(obj);
30531 return Py_BuildValue((char *)"");
30532 }
30533 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30534 PyObject *resultobj = NULL;
30535 wxPyTextDropTarget *result;
30536 char *kwnames[] = {
30537 NULL
30538 };
30539
30540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
30541 {
30542 PyThreadState* __tstate = wxPyBeginAllowThreads();
30543 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
30544
30545 wxPyEndAllowThreads(__tstate);
30546 if (PyErr_Occurred()) SWIG_fail;
30547 }
30548 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
30549 return resultobj;
30550 fail:
30551 return NULL;
30552 }
30553
30554
30555 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30556 PyObject *resultobj = NULL;
30557 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30558 PyObject *arg2 = (PyObject *) 0 ;
30559 PyObject *arg3 = (PyObject *) 0 ;
30560 PyObject * obj0 = 0 ;
30561 PyObject * obj1 = 0 ;
30562 PyObject * obj2 = 0 ;
30563 char *kwnames[] = {
30564 (char *) "self",(char *) "self",(char *) "_class", NULL
30565 };
30566
30567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30569 if (SWIG_arg_fail(1)) SWIG_fail;
30570 arg2 = obj1;
30571 arg3 = obj2;
30572 {
30573 PyThreadState* __tstate = wxPyBeginAllowThreads();
30574 (arg1)->_setCallbackInfo(arg2,arg3);
30575
30576 wxPyEndAllowThreads(__tstate);
30577 if (PyErr_Occurred()) SWIG_fail;
30578 }
30579 Py_INCREF(Py_None); resultobj = Py_None;
30580 return resultobj;
30581 fail:
30582 return NULL;
30583 }
30584
30585
30586 static PyObject *_wrap_TextDropTarget_OnDropText(PyObject *, PyObject *args, PyObject *kwargs) {
30587 PyObject *resultobj = NULL;
30588 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30589 int arg2 ;
30590 int arg3 ;
30591 wxString *arg4 = 0 ;
30592 bool result;
30593 bool temp4 = false ;
30594 PyObject * obj0 = 0 ;
30595 PyObject * obj1 = 0 ;
30596 PyObject * obj2 = 0 ;
30597 PyObject * obj3 = 0 ;
30598 char *kwnames[] = {
30599 (char *) "self",(char *) "x",(char *) "y",(char *) "text", NULL
30600 };
30601
30602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDropText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30604 if (SWIG_arg_fail(1)) SWIG_fail;
30605 {
30606 arg2 = static_cast<int >(SWIG_As_int(obj1));
30607 if (SWIG_arg_fail(2)) SWIG_fail;
30608 }
30609 {
30610 arg3 = static_cast<int >(SWIG_As_int(obj2));
30611 if (SWIG_arg_fail(3)) SWIG_fail;
30612 }
30613 {
30614 arg4 = wxString_in_helper(obj3);
30615 if (arg4 == NULL) SWIG_fail;
30616 temp4 = true;
30617 }
30618 {
30619 PyThreadState* __tstate = wxPyBeginAllowThreads();
30620 result = (bool)(arg1)->OnDropText(arg2,arg3,(wxString const &)*arg4);
30621
30622 wxPyEndAllowThreads(__tstate);
30623 if (PyErr_Occurred()) SWIG_fail;
30624 }
30625 {
30626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30627 }
30628 {
30629 if (temp4)
30630 delete arg4;
30631 }
30632 return resultobj;
30633 fail:
30634 {
30635 if (temp4)
30636 delete arg4;
30637 }
30638 return NULL;
30639 }
30640
30641
30642 static PyObject *_wrap_TextDropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30643 PyObject *resultobj = NULL;
30644 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30645 int arg2 ;
30646 int arg3 ;
30647 wxDragResult arg4 ;
30648 wxDragResult result;
30649 PyObject * obj0 = 0 ;
30650 PyObject * obj1 = 0 ;
30651 PyObject * obj2 = 0 ;
30652 PyObject * obj3 = 0 ;
30653 char *kwnames[] = {
30654 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30655 };
30656
30657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30658 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30659 if (SWIG_arg_fail(1)) SWIG_fail;
30660 {
30661 arg2 = static_cast<int >(SWIG_As_int(obj1));
30662 if (SWIG_arg_fail(2)) SWIG_fail;
30663 }
30664 {
30665 arg3 = static_cast<int >(SWIG_As_int(obj2));
30666 if (SWIG_arg_fail(3)) SWIG_fail;
30667 }
30668 {
30669 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30670 if (SWIG_arg_fail(4)) SWIG_fail;
30671 }
30672 {
30673 PyThreadState* __tstate = wxPyBeginAllowThreads();
30674 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
30675
30676 wxPyEndAllowThreads(__tstate);
30677 if (PyErr_Occurred()) SWIG_fail;
30678 }
30679 resultobj = SWIG_From_int((result));
30680 return resultobj;
30681 fail:
30682 return NULL;
30683 }
30684
30685
30686 static PyObject *_wrap_TextDropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
30687 PyObject *resultobj = NULL;
30688 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30689 int arg2 ;
30690 int arg3 ;
30691 wxDragResult arg4 ;
30692 wxDragResult result;
30693 PyObject * obj0 = 0 ;
30694 PyObject * obj1 = 0 ;
30695 PyObject * obj2 = 0 ;
30696 PyObject * obj3 = 0 ;
30697 char *kwnames[] = {
30698 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30699 };
30700
30701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30702 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30703 if (SWIG_arg_fail(1)) SWIG_fail;
30704 {
30705 arg2 = static_cast<int >(SWIG_As_int(obj1));
30706 if (SWIG_arg_fail(2)) SWIG_fail;
30707 }
30708 {
30709 arg3 = static_cast<int >(SWIG_As_int(obj2));
30710 if (SWIG_arg_fail(3)) SWIG_fail;
30711 }
30712 {
30713 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30714 if (SWIG_arg_fail(4)) SWIG_fail;
30715 }
30716 {
30717 PyThreadState* __tstate = wxPyBeginAllowThreads();
30718 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
30719
30720 wxPyEndAllowThreads(__tstate);
30721 if (PyErr_Occurred()) SWIG_fail;
30722 }
30723 resultobj = SWIG_From_int((result));
30724 return resultobj;
30725 fail:
30726 return NULL;
30727 }
30728
30729
30730 static PyObject *_wrap_TextDropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
30731 PyObject *resultobj = NULL;
30732 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30733 PyObject * obj0 = 0 ;
30734 char *kwnames[] = {
30735 (char *) "self", NULL
30736 };
30737
30738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_OnLeave",kwnames,&obj0)) goto fail;
30739 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30740 if (SWIG_arg_fail(1)) SWIG_fail;
30741 {
30742 PyThreadState* __tstate = wxPyBeginAllowThreads();
30743 (arg1)->OnLeave();
30744
30745 wxPyEndAllowThreads(__tstate);
30746 if (PyErr_Occurred()) SWIG_fail;
30747 }
30748 Py_INCREF(Py_None); resultobj = Py_None;
30749 return resultobj;
30750 fail:
30751 return NULL;
30752 }
30753
30754
30755 static PyObject *_wrap_TextDropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
30756 PyObject *resultobj = NULL;
30757 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30758 int arg2 ;
30759 int arg3 ;
30760 bool result;
30761 PyObject * obj0 = 0 ;
30762 PyObject * obj1 = 0 ;
30763 PyObject * obj2 = 0 ;
30764 char *kwnames[] = {
30765 (char *) "self",(char *) "x",(char *) "y", NULL
30766 };
30767
30768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30769 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30770 if (SWIG_arg_fail(1)) SWIG_fail;
30771 {
30772 arg2 = static_cast<int >(SWIG_As_int(obj1));
30773 if (SWIG_arg_fail(2)) SWIG_fail;
30774 }
30775 {
30776 arg3 = static_cast<int >(SWIG_As_int(obj2));
30777 if (SWIG_arg_fail(3)) SWIG_fail;
30778 }
30779 {
30780 PyThreadState* __tstate = wxPyBeginAllowThreads();
30781 result = (bool)(arg1)->OnDrop(arg2,arg3);
30782
30783 wxPyEndAllowThreads(__tstate);
30784 if (PyErr_Occurred()) SWIG_fail;
30785 }
30786 {
30787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30788 }
30789 return resultobj;
30790 fail:
30791 return NULL;
30792 }
30793
30794
30795 static PyObject *_wrap_TextDropTarget_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
30796 PyObject *resultobj = NULL;
30797 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
30798 int arg2 ;
30799 int arg3 ;
30800 wxDragResult arg4 ;
30801 wxDragResult result;
30802 PyObject * obj0 = 0 ;
30803 PyObject * obj1 = 0 ;
30804 PyObject * obj2 = 0 ;
30805 PyObject * obj3 = 0 ;
30806 char *kwnames[] = {
30807 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30808 };
30809
30810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0);
30812 if (SWIG_arg_fail(1)) SWIG_fail;
30813 {
30814 arg2 = static_cast<int >(SWIG_As_int(obj1));
30815 if (SWIG_arg_fail(2)) SWIG_fail;
30816 }
30817 {
30818 arg3 = static_cast<int >(SWIG_As_int(obj2));
30819 if (SWIG_arg_fail(3)) SWIG_fail;
30820 }
30821 {
30822 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30823 if (SWIG_arg_fail(4)) SWIG_fail;
30824 }
30825 {
30826 PyThreadState* __tstate = wxPyBeginAllowThreads();
30827 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
30828
30829 wxPyEndAllowThreads(__tstate);
30830 if (PyErr_Occurred()) SWIG_fail;
30831 }
30832 resultobj = SWIG_From_int((result));
30833 return resultobj;
30834 fail:
30835 return NULL;
30836 }
30837
30838
30839 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
30840 PyObject *obj;
30841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30842 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
30843 Py_INCREF(obj);
30844 return Py_BuildValue((char *)"");
30845 }
30846 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30847 PyObject *resultobj = NULL;
30848 wxPyFileDropTarget *result;
30849 char *kwnames[] = {
30850 NULL
30851 };
30852
30853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
30854 {
30855 PyThreadState* __tstate = wxPyBeginAllowThreads();
30856 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
30857
30858 wxPyEndAllowThreads(__tstate);
30859 if (PyErr_Occurred()) SWIG_fail;
30860 }
30861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
30862 return resultobj;
30863 fail:
30864 return NULL;
30865 }
30866
30867
30868 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
30869 PyObject *resultobj = NULL;
30870 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30871 PyObject *arg2 = (PyObject *) 0 ;
30872 PyObject *arg3 = (PyObject *) 0 ;
30873 PyObject * obj0 = 0 ;
30874 PyObject * obj1 = 0 ;
30875 PyObject * obj2 = 0 ;
30876 char *kwnames[] = {
30877 (char *) "self",(char *) "self",(char *) "_class", NULL
30878 };
30879
30880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
30881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30882 if (SWIG_arg_fail(1)) SWIG_fail;
30883 arg2 = obj1;
30884 arg3 = obj2;
30885 {
30886 PyThreadState* __tstate = wxPyBeginAllowThreads();
30887 (arg1)->_setCallbackInfo(arg2,arg3);
30888
30889 wxPyEndAllowThreads(__tstate);
30890 if (PyErr_Occurred()) SWIG_fail;
30891 }
30892 Py_INCREF(Py_None); resultobj = Py_None;
30893 return resultobj;
30894 fail:
30895 return NULL;
30896 }
30897
30898
30899 static PyObject *_wrap_FileDropTarget_OnDropFiles(PyObject *, PyObject *args, PyObject *kwargs) {
30900 PyObject *resultobj = NULL;
30901 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30902 int arg2 ;
30903 int arg3 ;
30904 wxArrayString *arg4 = 0 ;
30905 bool result;
30906 bool temp4 = false ;
30907 PyObject * obj0 = 0 ;
30908 PyObject * obj1 = 0 ;
30909 PyObject * obj2 = 0 ;
30910 PyObject * obj3 = 0 ;
30911 char *kwnames[] = {
30912 (char *) "self",(char *) "x",(char *) "y",(char *) "filenames", NULL
30913 };
30914
30915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDropFiles",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30916 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30917 if (SWIG_arg_fail(1)) SWIG_fail;
30918 {
30919 arg2 = static_cast<int >(SWIG_As_int(obj1));
30920 if (SWIG_arg_fail(2)) SWIG_fail;
30921 }
30922 {
30923 arg3 = static_cast<int >(SWIG_As_int(obj2));
30924 if (SWIG_arg_fail(3)) SWIG_fail;
30925 }
30926 {
30927 if (! PySequence_Check(obj3)) {
30928 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
30929 SWIG_fail;
30930 }
30931 arg4 = new wxArrayString;
30932 temp4 = true;
30933 int i, len=PySequence_Length(obj3);
30934 for (i=0; i<len; i++) {
30935 PyObject* item = PySequence_GetItem(obj3, i);
30936 wxString* s = wxString_in_helper(item);
30937 if (PyErr_Occurred()) SWIG_fail;
30938 arg4->Add(*s);
30939 delete s;
30940 Py_DECREF(item);
30941 }
30942 }
30943 {
30944 PyThreadState* __tstate = wxPyBeginAllowThreads();
30945 result = (bool)(arg1)->OnDropFiles(arg2,arg3,(wxArrayString const &)*arg4);
30946
30947 wxPyEndAllowThreads(__tstate);
30948 if (PyErr_Occurred()) SWIG_fail;
30949 }
30950 {
30951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30952 }
30953 {
30954 if (temp4) delete arg4;
30955 }
30956 return resultobj;
30957 fail:
30958 {
30959 if (temp4) delete arg4;
30960 }
30961 return NULL;
30962 }
30963
30964
30965 static PyObject *_wrap_FileDropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
30966 PyObject *resultobj = NULL;
30967 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
30968 int arg2 ;
30969 int arg3 ;
30970 wxDragResult arg4 ;
30971 wxDragResult result;
30972 PyObject * obj0 = 0 ;
30973 PyObject * obj1 = 0 ;
30974 PyObject * obj2 = 0 ;
30975 PyObject * obj3 = 0 ;
30976 char *kwnames[] = {
30977 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
30978 };
30979
30980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30981 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
30982 if (SWIG_arg_fail(1)) SWIG_fail;
30983 {
30984 arg2 = static_cast<int >(SWIG_As_int(obj1));
30985 if (SWIG_arg_fail(2)) SWIG_fail;
30986 }
30987 {
30988 arg3 = static_cast<int >(SWIG_As_int(obj2));
30989 if (SWIG_arg_fail(3)) SWIG_fail;
30990 }
30991 {
30992 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
30993 if (SWIG_arg_fail(4)) SWIG_fail;
30994 }
30995 {
30996 PyThreadState* __tstate = wxPyBeginAllowThreads();
30997 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
30998
30999 wxPyEndAllowThreads(__tstate);
31000 if (PyErr_Occurred()) SWIG_fail;
31001 }
31002 resultobj = SWIG_From_int((result));
31003 return resultobj;
31004 fail:
31005 return NULL;
31006 }
31007
31008
31009 static PyObject *_wrap_FileDropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
31010 PyObject *resultobj = NULL;
31011 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31012 int arg2 ;
31013 int arg3 ;
31014 wxDragResult arg4 ;
31015 wxDragResult result;
31016 PyObject * obj0 = 0 ;
31017 PyObject * obj1 = 0 ;
31018 PyObject * obj2 = 0 ;
31019 PyObject * obj3 = 0 ;
31020 char *kwnames[] = {
31021 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
31022 };
31023
31024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31026 if (SWIG_arg_fail(1)) SWIG_fail;
31027 {
31028 arg2 = static_cast<int >(SWIG_As_int(obj1));
31029 if (SWIG_arg_fail(2)) SWIG_fail;
31030 }
31031 {
31032 arg3 = static_cast<int >(SWIG_As_int(obj2));
31033 if (SWIG_arg_fail(3)) SWIG_fail;
31034 }
31035 {
31036 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
31037 if (SWIG_arg_fail(4)) SWIG_fail;
31038 }
31039 {
31040 PyThreadState* __tstate = wxPyBeginAllowThreads();
31041 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
31042
31043 wxPyEndAllowThreads(__tstate);
31044 if (PyErr_Occurred()) SWIG_fail;
31045 }
31046 resultobj = SWIG_From_int((result));
31047 return resultobj;
31048 fail:
31049 return NULL;
31050 }
31051
31052
31053 static PyObject *_wrap_FileDropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
31054 PyObject *resultobj = NULL;
31055 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31056 PyObject * obj0 = 0 ;
31057 char *kwnames[] = {
31058 (char *) "self", NULL
31059 };
31060
31061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_OnLeave",kwnames,&obj0)) goto fail;
31062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31063 if (SWIG_arg_fail(1)) SWIG_fail;
31064 {
31065 PyThreadState* __tstate = wxPyBeginAllowThreads();
31066 (arg1)->OnLeave();
31067
31068 wxPyEndAllowThreads(__tstate);
31069 if (PyErr_Occurred()) SWIG_fail;
31070 }
31071 Py_INCREF(Py_None); resultobj = Py_None;
31072 return resultobj;
31073 fail:
31074 return NULL;
31075 }
31076
31077
31078 static PyObject *_wrap_FileDropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
31079 PyObject *resultobj = NULL;
31080 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31081 int arg2 ;
31082 int arg3 ;
31083 bool result;
31084 PyObject * obj0 = 0 ;
31085 PyObject * obj1 = 0 ;
31086 PyObject * obj2 = 0 ;
31087 char *kwnames[] = {
31088 (char *) "self",(char *) "x",(char *) "y", NULL
31089 };
31090
31091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31093 if (SWIG_arg_fail(1)) SWIG_fail;
31094 {
31095 arg2 = static_cast<int >(SWIG_As_int(obj1));
31096 if (SWIG_arg_fail(2)) SWIG_fail;
31097 }
31098 {
31099 arg3 = static_cast<int >(SWIG_As_int(obj2));
31100 if (SWIG_arg_fail(3)) SWIG_fail;
31101 }
31102 {
31103 PyThreadState* __tstate = wxPyBeginAllowThreads();
31104 result = (bool)(arg1)->OnDrop(arg2,arg3);
31105
31106 wxPyEndAllowThreads(__tstate);
31107 if (PyErr_Occurred()) SWIG_fail;
31108 }
31109 {
31110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31111 }
31112 return resultobj;
31113 fail:
31114 return NULL;
31115 }
31116
31117
31118 static PyObject *_wrap_FileDropTarget_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
31119 PyObject *resultobj = NULL;
31120 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
31121 int arg2 ;
31122 int arg3 ;
31123 wxDragResult arg4 ;
31124 wxDragResult result;
31125 PyObject * obj0 = 0 ;
31126 PyObject * obj1 = 0 ;
31127 PyObject * obj2 = 0 ;
31128 PyObject * obj3 = 0 ;
31129 char *kwnames[] = {
31130 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
31131 };
31132
31133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0);
31135 if (SWIG_arg_fail(1)) SWIG_fail;
31136 {
31137 arg2 = static_cast<int >(SWIG_As_int(obj1));
31138 if (SWIG_arg_fail(2)) SWIG_fail;
31139 }
31140 {
31141 arg3 = static_cast<int >(SWIG_As_int(obj2));
31142 if (SWIG_arg_fail(3)) SWIG_fail;
31143 }
31144 {
31145 arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3));
31146 if (SWIG_arg_fail(4)) SWIG_fail;
31147 }
31148 {
31149 PyThreadState* __tstate = wxPyBeginAllowThreads();
31150 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
31151
31152 wxPyEndAllowThreads(__tstate);
31153 if (PyErr_Occurred()) SWIG_fail;
31154 }
31155 resultobj = SWIG_From_int((result));
31156 return resultobj;
31157 fail:
31158 return NULL;
31159 }
31160
31161
31162 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
31163 PyObject *obj;
31164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31165 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
31166 Py_INCREF(obj);
31167 return Py_BuildValue((char *)"");
31168 }
31169 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
31170 PyObject *resultobj = NULL;
31171 wxClipboard *result;
31172 char *kwnames[] = {
31173 NULL
31174 };
31175
31176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
31177 {
31178 PyThreadState* __tstate = wxPyBeginAllowThreads();
31179 result = (wxClipboard *)new wxClipboard();
31180
31181 wxPyEndAllowThreads(__tstate);
31182 if (PyErr_Occurred()) SWIG_fail;
31183 }
31184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
31185 return resultobj;
31186 fail:
31187 return NULL;
31188 }
31189
31190
31191 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
31192 PyObject *resultobj = NULL;
31193 wxClipboard *arg1 = (wxClipboard *) 0 ;
31194 PyObject * obj0 = 0 ;
31195 char *kwnames[] = {
31196 (char *) "self", NULL
31197 };
31198
31199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
31200 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31201 if (SWIG_arg_fail(1)) SWIG_fail;
31202 {
31203 PyThreadState* __tstate = wxPyBeginAllowThreads();
31204 delete arg1;
31205
31206 wxPyEndAllowThreads(__tstate);
31207 if (PyErr_Occurred()) SWIG_fail;
31208 }
31209 Py_INCREF(Py_None); resultobj = Py_None;
31210 return resultobj;
31211 fail:
31212 return NULL;
31213 }
31214
31215
31216 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
31217 PyObject *resultobj = NULL;
31218 wxClipboard *arg1 = (wxClipboard *) 0 ;
31219 bool result;
31220 PyObject * obj0 = 0 ;
31221 char *kwnames[] = {
31222 (char *) "self", NULL
31223 };
31224
31225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
31226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31227 if (SWIG_arg_fail(1)) SWIG_fail;
31228 {
31229 PyThreadState* __tstate = wxPyBeginAllowThreads();
31230 result = (bool)(arg1)->Open();
31231
31232 wxPyEndAllowThreads(__tstate);
31233 if (PyErr_Occurred()) SWIG_fail;
31234 }
31235 {
31236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31237 }
31238 return resultobj;
31239 fail:
31240 return NULL;
31241 }
31242
31243
31244 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
31245 PyObject *resultobj = NULL;
31246 wxClipboard *arg1 = (wxClipboard *) 0 ;
31247 PyObject * obj0 = 0 ;
31248 char *kwnames[] = {
31249 (char *) "self", NULL
31250 };
31251
31252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
31253 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31254 if (SWIG_arg_fail(1)) SWIG_fail;
31255 {
31256 PyThreadState* __tstate = wxPyBeginAllowThreads();
31257 (arg1)->Close();
31258
31259 wxPyEndAllowThreads(__tstate);
31260 if (PyErr_Occurred()) SWIG_fail;
31261 }
31262 Py_INCREF(Py_None); resultobj = Py_None;
31263 return resultobj;
31264 fail:
31265 return NULL;
31266 }
31267
31268
31269 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
31270 PyObject *resultobj = NULL;
31271 wxClipboard *arg1 = (wxClipboard *) 0 ;
31272 bool result;
31273 PyObject * obj0 = 0 ;
31274 char *kwnames[] = {
31275 (char *) "self", NULL
31276 };
31277
31278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
31279 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31280 if (SWIG_arg_fail(1)) SWIG_fail;
31281 {
31282 PyThreadState* __tstate = wxPyBeginAllowThreads();
31283 result = (bool)((wxClipboard const *)arg1)->IsOpened();
31284
31285 wxPyEndAllowThreads(__tstate);
31286 if (PyErr_Occurred()) SWIG_fail;
31287 }
31288 {
31289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31290 }
31291 return resultobj;
31292 fail:
31293 return NULL;
31294 }
31295
31296
31297 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
31298 PyObject *resultobj = NULL;
31299 wxClipboard *arg1 = (wxClipboard *) 0 ;
31300 wxDataObject *arg2 = (wxDataObject *) 0 ;
31301 bool result;
31302 PyObject * obj0 = 0 ;
31303 PyObject * obj1 = 0 ;
31304 char *kwnames[] = {
31305 (char *) "self",(char *) "data", NULL
31306 };
31307
31308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
31309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31310 if (SWIG_arg_fail(1)) SWIG_fail;
31311 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
31312 if (SWIG_arg_fail(2)) SWIG_fail;
31313 {
31314 PyThreadState* __tstate = wxPyBeginAllowThreads();
31315 result = (bool)(arg1)->AddData(arg2);
31316
31317 wxPyEndAllowThreads(__tstate);
31318 if (PyErr_Occurred()) SWIG_fail;
31319 }
31320 {
31321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31322 }
31323 return resultobj;
31324 fail:
31325 return NULL;
31326 }
31327
31328
31329 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
31330 PyObject *resultobj = NULL;
31331 wxClipboard *arg1 = (wxClipboard *) 0 ;
31332 wxDataObject *arg2 = (wxDataObject *) 0 ;
31333 bool result;
31334 PyObject * obj0 = 0 ;
31335 PyObject * obj1 = 0 ;
31336 char *kwnames[] = {
31337 (char *) "self",(char *) "data", NULL
31338 };
31339
31340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
31341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31342 if (SWIG_arg_fail(1)) SWIG_fail;
31343 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
31344 if (SWIG_arg_fail(2)) SWIG_fail;
31345 {
31346 PyThreadState* __tstate = wxPyBeginAllowThreads();
31347 result = (bool)(arg1)->SetData(arg2);
31348
31349 wxPyEndAllowThreads(__tstate);
31350 if (PyErr_Occurred()) SWIG_fail;
31351 }
31352 {
31353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31354 }
31355 return resultobj;
31356 fail:
31357 return NULL;
31358 }
31359
31360
31361 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
31362 PyObject *resultobj = NULL;
31363 wxClipboard *arg1 = (wxClipboard *) 0 ;
31364 wxDataFormat *arg2 = 0 ;
31365 bool result;
31366 PyObject * obj0 = 0 ;
31367 PyObject * obj1 = 0 ;
31368 char *kwnames[] = {
31369 (char *) "self",(char *) "format", NULL
31370 };
31371
31372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
31373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31374 if (SWIG_arg_fail(1)) SWIG_fail;
31375 {
31376 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0);
31377 if (SWIG_arg_fail(2)) SWIG_fail;
31378 if (arg2 == NULL) {
31379 SWIG_null_ref("wxDataFormat");
31380 }
31381 if (SWIG_arg_fail(2)) SWIG_fail;
31382 }
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
31386
31387 wxPyEndAllowThreads(__tstate);
31388 if (PyErr_Occurred()) SWIG_fail;
31389 }
31390 {
31391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31392 }
31393 return resultobj;
31394 fail:
31395 return NULL;
31396 }
31397
31398
31399 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
31400 PyObject *resultobj = NULL;
31401 wxClipboard *arg1 = (wxClipboard *) 0 ;
31402 wxDataObject *arg2 = 0 ;
31403 bool result;
31404 PyObject * obj0 = 0 ;
31405 PyObject * obj1 = 0 ;
31406 char *kwnames[] = {
31407 (char *) "self",(char *) "data", NULL
31408 };
31409
31410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
31411 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31412 if (SWIG_arg_fail(1)) SWIG_fail;
31413 {
31414 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0);
31415 if (SWIG_arg_fail(2)) SWIG_fail;
31416 if (arg2 == NULL) {
31417 SWIG_null_ref("wxDataObject");
31418 }
31419 if (SWIG_arg_fail(2)) SWIG_fail;
31420 }
31421 {
31422 PyThreadState* __tstate = wxPyBeginAllowThreads();
31423 result = (bool)(arg1)->GetData(*arg2);
31424
31425 wxPyEndAllowThreads(__tstate);
31426 if (PyErr_Occurred()) SWIG_fail;
31427 }
31428 {
31429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31430 }
31431 return resultobj;
31432 fail:
31433 return NULL;
31434 }
31435
31436
31437 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
31438 PyObject *resultobj = NULL;
31439 wxClipboard *arg1 = (wxClipboard *) 0 ;
31440 PyObject * obj0 = 0 ;
31441 char *kwnames[] = {
31442 (char *) "self", NULL
31443 };
31444
31445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
31446 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31447 if (SWIG_arg_fail(1)) SWIG_fail;
31448 {
31449 PyThreadState* __tstate = wxPyBeginAllowThreads();
31450 (arg1)->Clear();
31451
31452 wxPyEndAllowThreads(__tstate);
31453 if (PyErr_Occurred()) SWIG_fail;
31454 }
31455 Py_INCREF(Py_None); resultobj = Py_None;
31456 return resultobj;
31457 fail:
31458 return NULL;
31459 }
31460
31461
31462 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
31463 PyObject *resultobj = NULL;
31464 wxClipboard *arg1 = (wxClipboard *) 0 ;
31465 bool result;
31466 PyObject * obj0 = 0 ;
31467 char *kwnames[] = {
31468 (char *) "self", NULL
31469 };
31470
31471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
31472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31473 if (SWIG_arg_fail(1)) SWIG_fail;
31474 {
31475 PyThreadState* __tstate = wxPyBeginAllowThreads();
31476 result = (bool)(arg1)->Flush();
31477
31478 wxPyEndAllowThreads(__tstate);
31479 if (PyErr_Occurred()) SWIG_fail;
31480 }
31481 {
31482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31483 }
31484 return resultobj;
31485 fail:
31486 return NULL;
31487 }
31488
31489
31490 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
31491 PyObject *resultobj = NULL;
31492 wxClipboard *arg1 = (wxClipboard *) 0 ;
31493 bool arg2 = (bool) true ;
31494 PyObject * obj0 = 0 ;
31495 PyObject * obj1 = 0 ;
31496 char *kwnames[] = {
31497 (char *) "self",(char *) "primary", NULL
31498 };
31499
31500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
31501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31502 if (SWIG_arg_fail(1)) SWIG_fail;
31503 if (obj1) {
31504 {
31505 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
31506 if (SWIG_arg_fail(2)) SWIG_fail;
31507 }
31508 }
31509 {
31510 PyThreadState* __tstate = wxPyBeginAllowThreads();
31511 (arg1)->UsePrimarySelection(arg2);
31512
31513 wxPyEndAllowThreads(__tstate);
31514 if (PyErr_Occurred()) SWIG_fail;
31515 }
31516 Py_INCREF(Py_None); resultobj = Py_None;
31517 return resultobj;
31518 fail:
31519 return NULL;
31520 }
31521
31522
31523 static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
31524 PyObject *resultobj = NULL;
31525 wxClipboard *result;
31526 char *kwnames[] = {
31527 NULL
31528 };
31529
31530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
31531 {
31532 PyThreadState* __tstate = wxPyBeginAllowThreads();
31533 result = (wxClipboard *)wxClipboard::Get();
31534
31535 wxPyEndAllowThreads(__tstate);
31536 if (PyErr_Occurred()) SWIG_fail;
31537 }
31538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
31539 return resultobj;
31540 fail:
31541 return NULL;
31542 }
31543
31544
31545 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
31546 PyObject *obj;
31547 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31548 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
31549 Py_INCREF(obj);
31550 return Py_BuildValue((char *)"");
31551 }
31552 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
31553 PyObject *resultobj = NULL;
31554 wxClipboard *arg1 = (wxClipboard *) NULL ;
31555 wxClipboardLocker *result;
31556 PyObject * obj0 = 0 ;
31557 char *kwnames[] = {
31558 (char *) "clipboard", NULL
31559 };
31560
31561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
31562 if (obj0) {
31563 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0);
31564 if (SWIG_arg_fail(1)) SWIG_fail;
31565 }
31566 {
31567 PyThreadState* __tstate = wxPyBeginAllowThreads();
31568 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
31569
31570 wxPyEndAllowThreads(__tstate);
31571 if (PyErr_Occurred()) SWIG_fail;
31572 }
31573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
31574 return resultobj;
31575 fail:
31576 return NULL;
31577 }
31578
31579
31580 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
31581 PyObject *resultobj = NULL;
31582 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
31583 PyObject * obj0 = 0 ;
31584 char *kwnames[] = {
31585 (char *) "self", NULL
31586 };
31587
31588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
31589 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0);
31590 if (SWIG_arg_fail(1)) SWIG_fail;
31591 {
31592 PyThreadState* __tstate = wxPyBeginAllowThreads();
31593 delete arg1;
31594
31595 wxPyEndAllowThreads(__tstate);
31596 if (PyErr_Occurred()) SWIG_fail;
31597 }
31598 Py_INCREF(Py_None); resultobj = Py_None;
31599 return resultobj;
31600 fail:
31601 return NULL;
31602 }
31603
31604
31605 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
31606 PyObject *resultobj = NULL;
31607 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
31608 bool result;
31609 PyObject * obj0 = 0 ;
31610 char *kwnames[] = {
31611 (char *) "self", NULL
31612 };
31613
31614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
31615 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0);
31616 if (SWIG_arg_fail(1)) SWIG_fail;
31617 {
31618 PyThreadState* __tstate = wxPyBeginAllowThreads();
31619 result = (bool)wxClipboardLocker___nonzero__(arg1);
31620
31621 wxPyEndAllowThreads(__tstate);
31622 if (PyErr_Occurred()) SWIG_fail;
31623 }
31624 {
31625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31626 }
31627 return resultobj;
31628 fail:
31629 return NULL;
31630 }
31631
31632
31633 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
31634 PyObject *obj;
31635 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31636 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
31637 Py_INCREF(obj);
31638 return Py_BuildValue((char *)"");
31639 }
31640 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
31641 PyObject *resultobj = NULL;
31642 int arg1 = (int) 0 ;
31643 int arg2 = (int) 0 ;
31644 int arg3 = (int) 0 ;
31645 int arg4 = (int) 0 ;
31646 wxVideoMode *result;
31647 PyObject * obj0 = 0 ;
31648 PyObject * obj1 = 0 ;
31649 PyObject * obj2 = 0 ;
31650 PyObject * obj3 = 0 ;
31651 char *kwnames[] = {
31652 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
31653 };
31654
31655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31656 if (obj0) {
31657 {
31658 arg1 = static_cast<int >(SWIG_As_int(obj0));
31659 if (SWIG_arg_fail(1)) SWIG_fail;
31660 }
31661 }
31662 if (obj1) {
31663 {
31664 arg2 = static_cast<int >(SWIG_As_int(obj1));
31665 if (SWIG_arg_fail(2)) SWIG_fail;
31666 }
31667 }
31668 if (obj2) {
31669 {
31670 arg3 = static_cast<int >(SWIG_As_int(obj2));
31671 if (SWIG_arg_fail(3)) SWIG_fail;
31672 }
31673 }
31674 if (obj3) {
31675 {
31676 arg4 = static_cast<int >(SWIG_As_int(obj3));
31677 if (SWIG_arg_fail(4)) SWIG_fail;
31678 }
31679 }
31680 {
31681 PyThreadState* __tstate = wxPyBeginAllowThreads();
31682 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
31683
31684 wxPyEndAllowThreads(__tstate);
31685 if (PyErr_Occurred()) SWIG_fail;
31686 }
31687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
31688 return resultobj;
31689 fail:
31690 return NULL;
31691 }
31692
31693
31694 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
31695 PyObject *resultobj = NULL;
31696 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31697 PyObject * obj0 = 0 ;
31698 char *kwnames[] = {
31699 (char *) "self", NULL
31700 };
31701
31702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
31703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31704 if (SWIG_arg_fail(1)) SWIG_fail;
31705 {
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 delete arg1;
31708
31709 wxPyEndAllowThreads(__tstate);
31710 if (PyErr_Occurred()) SWIG_fail;
31711 }
31712 Py_INCREF(Py_None); resultobj = Py_None;
31713 return resultobj;
31714 fail:
31715 return NULL;
31716 }
31717
31718
31719 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
31720 PyObject *resultobj = NULL;
31721 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31722 wxVideoMode *arg2 = 0 ;
31723 bool result;
31724 PyObject * obj0 = 0 ;
31725 PyObject * obj1 = 0 ;
31726 char *kwnames[] = {
31727 (char *) "self",(char *) "other", NULL
31728 };
31729
31730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
31731 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31732 if (SWIG_arg_fail(1)) SWIG_fail;
31733 {
31734 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31735 if (SWIG_arg_fail(2)) SWIG_fail;
31736 if (arg2 == NULL) {
31737 SWIG_null_ref("wxVideoMode");
31738 }
31739 if (SWIG_arg_fail(2)) SWIG_fail;
31740 }
31741 {
31742 PyThreadState* __tstate = wxPyBeginAllowThreads();
31743 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
31744
31745 wxPyEndAllowThreads(__tstate);
31746 if (PyErr_Occurred()) SWIG_fail;
31747 }
31748 {
31749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31750 }
31751 return resultobj;
31752 fail:
31753 return NULL;
31754 }
31755
31756
31757 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
31758 PyObject *resultobj = NULL;
31759 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31760 int result;
31761 PyObject * obj0 = 0 ;
31762 char *kwnames[] = {
31763 (char *) "self", NULL
31764 };
31765
31766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
31767 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31768 if (SWIG_arg_fail(1)) SWIG_fail;
31769 {
31770 PyThreadState* __tstate = wxPyBeginAllowThreads();
31771 result = (int)((wxVideoMode const *)arg1)->GetWidth();
31772
31773 wxPyEndAllowThreads(__tstate);
31774 if (PyErr_Occurred()) SWIG_fail;
31775 }
31776 {
31777 resultobj = SWIG_From_int(static_cast<int >(result));
31778 }
31779 return resultobj;
31780 fail:
31781 return NULL;
31782 }
31783
31784
31785 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
31786 PyObject *resultobj = NULL;
31787 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31788 int result;
31789 PyObject * obj0 = 0 ;
31790 char *kwnames[] = {
31791 (char *) "self", NULL
31792 };
31793
31794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
31795 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31796 if (SWIG_arg_fail(1)) SWIG_fail;
31797 {
31798 PyThreadState* __tstate = wxPyBeginAllowThreads();
31799 result = (int)((wxVideoMode const *)arg1)->GetHeight();
31800
31801 wxPyEndAllowThreads(__tstate);
31802 if (PyErr_Occurred()) SWIG_fail;
31803 }
31804 {
31805 resultobj = SWIG_From_int(static_cast<int >(result));
31806 }
31807 return resultobj;
31808 fail:
31809 return NULL;
31810 }
31811
31812
31813 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
31814 PyObject *resultobj = NULL;
31815 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31816 int result;
31817 PyObject * obj0 = 0 ;
31818 char *kwnames[] = {
31819 (char *) "self", NULL
31820 };
31821
31822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
31823 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31824 if (SWIG_arg_fail(1)) SWIG_fail;
31825 {
31826 PyThreadState* __tstate = wxPyBeginAllowThreads();
31827 result = (int)((wxVideoMode const *)arg1)->GetDepth();
31828
31829 wxPyEndAllowThreads(__tstate);
31830 if (PyErr_Occurred()) SWIG_fail;
31831 }
31832 {
31833 resultobj = SWIG_From_int(static_cast<int >(result));
31834 }
31835 return resultobj;
31836 fail:
31837 return NULL;
31838 }
31839
31840
31841 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
31842 PyObject *resultobj = NULL;
31843 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31844 bool result;
31845 PyObject * obj0 = 0 ;
31846 char *kwnames[] = {
31847 (char *) "self", NULL
31848 };
31849
31850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
31851 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31852 if (SWIG_arg_fail(1)) SWIG_fail;
31853 {
31854 PyThreadState* __tstate = wxPyBeginAllowThreads();
31855 result = (bool)((wxVideoMode const *)arg1)->IsOk();
31856
31857 wxPyEndAllowThreads(__tstate);
31858 if (PyErr_Occurred()) SWIG_fail;
31859 }
31860 {
31861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31862 }
31863 return resultobj;
31864 fail:
31865 return NULL;
31866 }
31867
31868
31869 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
31870 PyObject *resultobj = NULL;
31871 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31872 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
31873 bool result;
31874 PyObject * obj0 = 0 ;
31875 PyObject * obj1 = 0 ;
31876 char *kwnames[] = {
31877 (char *) "self",(char *) "other", NULL
31878 };
31879
31880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) 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 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31884 if (SWIG_arg_fail(2)) SWIG_fail;
31885 {
31886 PyThreadState* __tstate = wxPyBeginAllowThreads();
31887 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
31888
31889 wxPyEndAllowThreads(__tstate);
31890 if (PyErr_Occurred()) SWIG_fail;
31891 }
31892 {
31893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31894 }
31895 return resultobj;
31896 fail:
31897 return NULL;
31898 }
31899
31900
31901 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
31902 PyObject *resultobj = NULL;
31903 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31904 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
31905 bool result;
31906 PyObject * obj0 = 0 ;
31907 PyObject * obj1 = 0 ;
31908 char *kwnames[] = {
31909 (char *) "self",(char *) "other", NULL
31910 };
31911
31912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
31913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31914 if (SWIG_arg_fail(1)) SWIG_fail;
31915 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31916 if (SWIG_arg_fail(2)) SWIG_fail;
31917 {
31918 PyThreadState* __tstate = wxPyBeginAllowThreads();
31919 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
31920
31921 wxPyEndAllowThreads(__tstate);
31922 if (PyErr_Occurred()) SWIG_fail;
31923 }
31924 {
31925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31926 }
31927 return resultobj;
31928 fail:
31929 return NULL;
31930 }
31931
31932
31933 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
31934 PyObject *resultobj = NULL;
31935 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31936 int arg2 ;
31937 PyObject * obj0 = 0 ;
31938 PyObject * obj1 = 0 ;
31939 char *kwnames[] = {
31940 (char *) "self",(char *) "w", NULL
31941 };
31942
31943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
31944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31945 if (SWIG_arg_fail(1)) SWIG_fail;
31946 {
31947 arg2 = static_cast<int >(SWIG_As_int(obj1));
31948 if (SWIG_arg_fail(2)) SWIG_fail;
31949 }
31950 if (arg1) (arg1)->w = arg2;
31951
31952 Py_INCREF(Py_None); resultobj = Py_None;
31953 return resultobj;
31954 fail:
31955 return NULL;
31956 }
31957
31958
31959 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
31960 PyObject *resultobj = NULL;
31961 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31962 int result;
31963 PyObject * obj0 = 0 ;
31964 char *kwnames[] = {
31965 (char *) "self", NULL
31966 };
31967
31968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
31969 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31970 if (SWIG_arg_fail(1)) SWIG_fail;
31971 result = (int) ((arg1)->w);
31972
31973 {
31974 resultobj = SWIG_From_int(static_cast<int >(result));
31975 }
31976 return resultobj;
31977 fail:
31978 return NULL;
31979 }
31980
31981
31982 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
31983 PyObject *resultobj = NULL;
31984 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
31985 int arg2 ;
31986 PyObject * obj0 = 0 ;
31987 PyObject * obj1 = 0 ;
31988 char *kwnames[] = {
31989 (char *) "self",(char *) "h", NULL
31990 };
31991
31992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
31993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
31994 if (SWIG_arg_fail(1)) SWIG_fail;
31995 {
31996 arg2 = static_cast<int >(SWIG_As_int(obj1));
31997 if (SWIG_arg_fail(2)) SWIG_fail;
31998 }
31999 if (arg1) (arg1)->h = arg2;
32000
32001 Py_INCREF(Py_None); resultobj = Py_None;
32002 return resultobj;
32003 fail:
32004 return NULL;
32005 }
32006
32007
32008 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
32009 PyObject *resultobj = NULL;
32010 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32011 int result;
32012 PyObject * obj0 = 0 ;
32013 char *kwnames[] = {
32014 (char *) "self", NULL
32015 };
32016
32017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
32018 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32019 if (SWIG_arg_fail(1)) SWIG_fail;
32020 result = (int) ((arg1)->h);
32021
32022 {
32023 resultobj = SWIG_From_int(static_cast<int >(result));
32024 }
32025 return resultobj;
32026 fail:
32027 return NULL;
32028 }
32029
32030
32031 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
32032 PyObject *resultobj = NULL;
32033 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32034 int arg2 ;
32035 PyObject * obj0 = 0 ;
32036 PyObject * obj1 = 0 ;
32037 char *kwnames[] = {
32038 (char *) "self",(char *) "bpp", NULL
32039 };
32040
32041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
32042 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32043 if (SWIG_arg_fail(1)) SWIG_fail;
32044 {
32045 arg2 = static_cast<int >(SWIG_As_int(obj1));
32046 if (SWIG_arg_fail(2)) SWIG_fail;
32047 }
32048 if (arg1) (arg1)->bpp = arg2;
32049
32050 Py_INCREF(Py_None); resultobj = Py_None;
32051 return resultobj;
32052 fail:
32053 return NULL;
32054 }
32055
32056
32057 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
32058 PyObject *resultobj = NULL;
32059 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32060 int result;
32061 PyObject * obj0 = 0 ;
32062 char *kwnames[] = {
32063 (char *) "self", NULL
32064 };
32065
32066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
32067 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32068 if (SWIG_arg_fail(1)) SWIG_fail;
32069 result = (int) ((arg1)->bpp);
32070
32071 {
32072 resultobj = SWIG_From_int(static_cast<int >(result));
32073 }
32074 return resultobj;
32075 fail:
32076 return NULL;
32077 }
32078
32079
32080 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
32081 PyObject *resultobj = NULL;
32082 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32083 int arg2 ;
32084 PyObject * obj0 = 0 ;
32085 PyObject * obj1 = 0 ;
32086 char *kwnames[] = {
32087 (char *) "self",(char *) "refresh", NULL
32088 };
32089
32090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
32091 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32092 if (SWIG_arg_fail(1)) SWIG_fail;
32093 {
32094 arg2 = static_cast<int >(SWIG_As_int(obj1));
32095 if (SWIG_arg_fail(2)) SWIG_fail;
32096 }
32097 if (arg1) (arg1)->refresh = arg2;
32098
32099 Py_INCREF(Py_None); resultobj = Py_None;
32100 return resultobj;
32101 fail:
32102 return NULL;
32103 }
32104
32105
32106 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
32107 PyObject *resultobj = NULL;
32108 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
32109 int result;
32110 PyObject * obj0 = 0 ;
32111 char *kwnames[] = {
32112 (char *) "self", NULL
32113 };
32114
32115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
32116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32117 if (SWIG_arg_fail(1)) SWIG_fail;
32118 result = (int) ((arg1)->refresh);
32119
32120 {
32121 resultobj = SWIG_From_int(static_cast<int >(result));
32122 }
32123 return resultobj;
32124 fail:
32125 return NULL;
32126 }
32127
32128
32129 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
32130 PyObject *obj;
32131 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32132 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
32133 Py_INCREF(obj);
32134 return Py_BuildValue((char *)"");
32135 }
32136 static int _wrap_DefaultVideoMode_set(PyObject *) {
32137 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
32138 return 1;
32139 }
32140
32141
32142 static PyObject *_wrap_DefaultVideoMode_get(void) {
32143 PyObject *pyobj = NULL;
32144
32145 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
32146 return pyobj;
32147 }
32148
32149
32150 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
32151 PyObject *resultobj = NULL;
32152 size_t arg1 = (size_t) 0 ;
32153 wxDisplay *result;
32154 PyObject * obj0 = 0 ;
32155 char *kwnames[] = {
32156 (char *) "index", NULL
32157 };
32158
32159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
32160 if (obj0) {
32161 {
32162 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
32163 if (SWIG_arg_fail(1)) SWIG_fail;
32164 }
32165 }
32166 {
32167 PyThreadState* __tstate = wxPyBeginAllowThreads();
32168 result = (wxDisplay *)new wxDisplay(arg1);
32169
32170 wxPyEndAllowThreads(__tstate);
32171 if (PyErr_Occurred()) SWIG_fail;
32172 }
32173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
32174 return resultobj;
32175 fail:
32176 return NULL;
32177 }
32178
32179
32180 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
32181 PyObject *resultobj = NULL;
32182 wxDisplay *arg1 = (wxDisplay *) 0 ;
32183 PyObject * obj0 = 0 ;
32184 char *kwnames[] = {
32185 (char *) "self", NULL
32186 };
32187
32188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
32189 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32190 if (SWIG_arg_fail(1)) SWIG_fail;
32191 {
32192 PyThreadState* __tstate = wxPyBeginAllowThreads();
32193 delete arg1;
32194
32195 wxPyEndAllowThreads(__tstate);
32196 if (PyErr_Occurred()) SWIG_fail;
32197 }
32198 Py_INCREF(Py_None); resultobj = Py_None;
32199 return resultobj;
32200 fail:
32201 return NULL;
32202 }
32203
32204
32205 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
32206 PyObject *resultobj = NULL;
32207 size_t result;
32208 char *kwnames[] = {
32209 NULL
32210 };
32211
32212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
32213 {
32214 PyThreadState* __tstate = wxPyBeginAllowThreads();
32215 result = (size_t)wxDisplay::GetCount();
32216
32217 wxPyEndAllowThreads(__tstate);
32218 if (PyErr_Occurred()) SWIG_fail;
32219 }
32220 {
32221 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
32222 }
32223 return resultobj;
32224 fail:
32225 return NULL;
32226 }
32227
32228
32229 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
32230 PyObject *resultobj = NULL;
32231 wxPoint *arg1 = 0 ;
32232 int result;
32233 wxPoint temp1 ;
32234 PyObject * obj0 = 0 ;
32235 char *kwnames[] = {
32236 (char *) "pt", NULL
32237 };
32238
32239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
32240 {
32241 arg1 = &temp1;
32242 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
32243 }
32244 {
32245 PyThreadState* __tstate = wxPyBeginAllowThreads();
32246 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
32247
32248 wxPyEndAllowThreads(__tstate);
32249 if (PyErr_Occurred()) SWIG_fail;
32250 }
32251 {
32252 resultobj = SWIG_From_int(static_cast<int >(result));
32253 }
32254 return resultobj;
32255 fail:
32256 return NULL;
32257 }
32258
32259
32260 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32261 PyObject *resultobj = NULL;
32262 wxWindow *arg1 = (wxWindow *) 0 ;
32263 int result;
32264 PyObject * obj0 = 0 ;
32265 char *kwnames[] = {
32266 (char *) "window", NULL
32267 };
32268
32269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
32270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32271 if (SWIG_arg_fail(1)) SWIG_fail;
32272 {
32273 PyThreadState* __tstate = wxPyBeginAllowThreads();
32274 result = (int)wxDisplay::GetFromWindow(arg1);
32275
32276 wxPyEndAllowThreads(__tstate);
32277 if (PyErr_Occurred()) SWIG_fail;
32278 }
32279 {
32280 resultobj = SWIG_From_int(static_cast<int >(result));
32281 }
32282 return resultobj;
32283 fail:
32284 return NULL;
32285 }
32286
32287
32288 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
32289 PyObject *resultobj = NULL;
32290 wxDisplay *arg1 = (wxDisplay *) 0 ;
32291 bool result;
32292 PyObject * obj0 = 0 ;
32293 char *kwnames[] = {
32294 (char *) "self", NULL
32295 };
32296
32297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
32298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32299 if (SWIG_arg_fail(1)) SWIG_fail;
32300 {
32301 PyThreadState* __tstate = wxPyBeginAllowThreads();
32302 result = (bool)((wxDisplay const *)arg1)->IsOk();
32303
32304 wxPyEndAllowThreads(__tstate);
32305 if (PyErr_Occurred()) SWIG_fail;
32306 }
32307 {
32308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32309 }
32310 return resultobj;
32311 fail:
32312 return NULL;
32313 }
32314
32315
32316 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
32317 PyObject *resultobj = NULL;
32318 wxDisplay *arg1 = (wxDisplay *) 0 ;
32319 wxRect result;
32320 PyObject * obj0 = 0 ;
32321 char *kwnames[] = {
32322 (char *) "self", NULL
32323 };
32324
32325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
32326 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32327 if (SWIG_arg_fail(1)) SWIG_fail;
32328 {
32329 PyThreadState* __tstate = wxPyBeginAllowThreads();
32330 result = ((wxDisplay const *)arg1)->GetGeometry();
32331
32332 wxPyEndAllowThreads(__tstate);
32333 if (PyErr_Occurred()) SWIG_fail;
32334 }
32335 {
32336 wxRect * resultptr;
32337 resultptr = new wxRect(static_cast<wxRect & >(result));
32338 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
32339 }
32340 return resultobj;
32341 fail:
32342 return NULL;
32343 }
32344
32345
32346 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
32347 PyObject *resultobj = NULL;
32348 wxDisplay *arg1 = (wxDisplay *) 0 ;
32349 wxString result;
32350 PyObject * obj0 = 0 ;
32351 char *kwnames[] = {
32352 (char *) "self", NULL
32353 };
32354
32355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
32356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32357 if (SWIG_arg_fail(1)) SWIG_fail;
32358 {
32359 PyThreadState* __tstate = wxPyBeginAllowThreads();
32360 result = ((wxDisplay const *)arg1)->GetName();
32361
32362 wxPyEndAllowThreads(__tstate);
32363 if (PyErr_Occurred()) SWIG_fail;
32364 }
32365 {
32366 #if wxUSE_UNICODE
32367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32368 #else
32369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32370 #endif
32371 }
32372 return resultobj;
32373 fail:
32374 return NULL;
32375 }
32376
32377
32378 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
32379 PyObject *resultobj = NULL;
32380 wxDisplay *arg1 = (wxDisplay *) 0 ;
32381 bool result;
32382 PyObject * obj0 = 0 ;
32383 char *kwnames[] = {
32384 (char *) "self", NULL
32385 };
32386
32387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
32388 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32389 if (SWIG_arg_fail(1)) SWIG_fail;
32390 {
32391 PyThreadState* __tstate = wxPyBeginAllowThreads();
32392 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
32393
32394 wxPyEndAllowThreads(__tstate);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
32397 {
32398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32399 }
32400 return resultobj;
32401 fail:
32402 return NULL;
32403 }
32404
32405
32406 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
32407 PyObject *resultobj = NULL;
32408 wxDisplay *arg1 = (wxDisplay *) 0 ;
32409 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
32410 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
32411 PyObject *result;
32412 PyObject * obj0 = 0 ;
32413 PyObject * obj1 = 0 ;
32414 char *kwnames[] = {
32415 (char *) "self",(char *) "mode", NULL
32416 };
32417
32418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
32419 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32420 if (SWIG_arg_fail(1)) SWIG_fail;
32421 if (obj1) {
32422 {
32423 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32424 if (SWIG_arg_fail(2)) SWIG_fail;
32425 if (arg2 == NULL) {
32426 SWIG_null_ref("wxVideoMode");
32427 }
32428 if (SWIG_arg_fail(2)) SWIG_fail;
32429 }
32430 }
32431 {
32432 PyThreadState* __tstate = wxPyBeginAllowThreads();
32433 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
32434
32435 wxPyEndAllowThreads(__tstate);
32436 if (PyErr_Occurred()) SWIG_fail;
32437 }
32438 resultobj = result;
32439 return resultobj;
32440 fail:
32441 return NULL;
32442 }
32443
32444
32445 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
32446 PyObject *resultobj = NULL;
32447 wxDisplay *arg1 = (wxDisplay *) 0 ;
32448 wxVideoMode result;
32449 PyObject * obj0 = 0 ;
32450 char *kwnames[] = {
32451 (char *) "self", NULL
32452 };
32453
32454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
32455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32456 if (SWIG_arg_fail(1)) SWIG_fail;
32457 {
32458 PyThreadState* __tstate = wxPyBeginAllowThreads();
32459 result = ((wxDisplay const *)arg1)->GetCurrentMode();
32460
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
32464 {
32465 wxVideoMode * resultptr;
32466 resultptr = new wxVideoMode(static_cast<wxVideoMode & >(result));
32467 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
32468 }
32469 return resultobj;
32470 fail:
32471 return NULL;
32472 }
32473
32474
32475 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
32476 PyObject *resultobj = NULL;
32477 wxDisplay *arg1 = (wxDisplay *) 0 ;
32478 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
32479 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
32480 bool result;
32481 PyObject * obj0 = 0 ;
32482 PyObject * obj1 = 0 ;
32483 char *kwnames[] = {
32484 (char *) "self",(char *) "mode", NULL
32485 };
32486
32487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
32488 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32489 if (SWIG_arg_fail(1)) SWIG_fail;
32490 if (obj1) {
32491 {
32492 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0);
32493 if (SWIG_arg_fail(2)) SWIG_fail;
32494 if (arg2 == NULL) {
32495 SWIG_null_ref("wxVideoMode");
32496 }
32497 if (SWIG_arg_fail(2)) SWIG_fail;
32498 }
32499 }
32500 {
32501 PyThreadState* __tstate = wxPyBeginAllowThreads();
32502 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
32503
32504 wxPyEndAllowThreads(__tstate);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 {
32508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32509 }
32510 return resultobj;
32511 fail:
32512 return NULL;
32513 }
32514
32515
32516 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
32517 PyObject *resultobj = NULL;
32518 wxDisplay *arg1 = (wxDisplay *) 0 ;
32519 PyObject * obj0 = 0 ;
32520 char *kwnames[] = {
32521 (char *) "self", NULL
32522 };
32523
32524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
32525 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0);
32526 if (SWIG_arg_fail(1)) SWIG_fail;
32527 {
32528 PyThreadState* __tstate = wxPyBeginAllowThreads();
32529 (arg1)->ResetMode();
32530
32531 wxPyEndAllowThreads(__tstate);
32532 if (PyErr_Occurred()) SWIG_fail;
32533 }
32534 Py_INCREF(Py_None); resultobj = Py_None;
32535 return resultobj;
32536 fail:
32537 return NULL;
32538 }
32539
32540
32541 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
32542 PyObject *obj;
32543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32544 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
32545 Py_INCREF(obj);
32546 return Py_BuildValue((char *)"");
32547 }
32548 static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) {
32549 PyObject *resultobj = NULL;
32550 wxStandardPaths *result;
32551 char *kwnames[] = {
32552 NULL
32553 };
32554
32555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail;
32556 {
32557 PyThreadState* __tstate = wxPyBeginAllowThreads();
32558 result = (wxStandardPaths *)wxStandardPaths_Get();
32559
32560 wxPyEndAllowThreads(__tstate);
32561 if (PyErr_Occurred()) SWIG_fail;
32562 }
32563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0);
32564 return resultobj;
32565 fail:
32566 return NULL;
32567 }
32568
32569
32570 static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
32571 PyObject *resultobj = NULL;
32572 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32573 wxString result;
32574 PyObject * obj0 = 0 ;
32575 char *kwnames[] = {
32576 (char *) "self", NULL
32577 };
32578
32579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail;
32580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32581 if (SWIG_arg_fail(1)) SWIG_fail;
32582 {
32583 PyThreadState* __tstate = wxPyBeginAllowThreads();
32584 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
32585
32586 wxPyEndAllowThreads(__tstate);
32587 if (PyErr_Occurred()) SWIG_fail;
32588 }
32589 {
32590 #if wxUSE_UNICODE
32591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32592 #else
32593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32594 #endif
32595 }
32596 return resultobj;
32597 fail:
32598 return NULL;
32599 }
32600
32601
32602 static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
32603 PyObject *resultobj = NULL;
32604 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32605 wxString result;
32606 PyObject * obj0 = 0 ;
32607 char *kwnames[] = {
32608 (char *) "self", NULL
32609 };
32610
32611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail;
32612 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32613 if (SWIG_arg_fail(1)) SWIG_fail;
32614 {
32615 PyThreadState* __tstate = wxPyBeginAllowThreads();
32616 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
32617
32618 wxPyEndAllowThreads(__tstate);
32619 if (PyErr_Occurred()) SWIG_fail;
32620 }
32621 {
32622 #if wxUSE_UNICODE
32623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32624 #else
32625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32626 #endif
32627 }
32628 return resultobj;
32629 fail:
32630 return NULL;
32631 }
32632
32633
32634 static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32635 PyObject *resultobj = NULL;
32636 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32637 wxString result;
32638 PyObject * obj0 = 0 ;
32639 char *kwnames[] = {
32640 (char *) "self", NULL
32641 };
32642
32643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail;
32644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32645 if (SWIG_arg_fail(1)) SWIG_fail;
32646 {
32647 PyThreadState* __tstate = wxPyBeginAllowThreads();
32648 result = ((wxStandardPaths const *)arg1)->GetDataDir();
32649
32650 wxPyEndAllowThreads(__tstate);
32651 if (PyErr_Occurred()) SWIG_fail;
32652 }
32653 {
32654 #if wxUSE_UNICODE
32655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32656 #else
32657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32658 #endif
32659 }
32660 return resultobj;
32661 fail:
32662 return NULL;
32663 }
32664
32665
32666 static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32667 PyObject *resultobj = NULL;
32668 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32669 wxString result;
32670 PyObject * obj0 = 0 ;
32671 char *kwnames[] = {
32672 (char *) "self", NULL
32673 };
32674
32675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail;
32676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32677 if (SWIG_arg_fail(1)) SWIG_fail;
32678 {
32679 PyThreadState* __tstate = wxPyBeginAllowThreads();
32680 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
32681
32682 wxPyEndAllowThreads(__tstate);
32683 if (PyErr_Occurred()) SWIG_fail;
32684 }
32685 {
32686 #if wxUSE_UNICODE
32687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32688 #else
32689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32690 #endif
32691 }
32692 return resultobj;
32693 fail:
32694 return NULL;
32695 }
32696
32697
32698 static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32699 PyObject *resultobj = NULL;
32700 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32701 wxString result;
32702 PyObject * obj0 = 0 ;
32703 char *kwnames[] = {
32704 (char *) "self", NULL
32705 };
32706
32707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail;
32708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32709 if (SWIG_arg_fail(1)) SWIG_fail;
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
32713
32714 wxPyEndAllowThreads(__tstate);
32715 if (PyErr_Occurred()) SWIG_fail;
32716 }
32717 {
32718 #if wxUSE_UNICODE
32719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32720 #else
32721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32722 #endif
32723 }
32724 return resultobj;
32725 fail:
32726 return NULL;
32727 }
32728
32729
32730 static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
32731 PyObject *resultobj = NULL;
32732 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32733 wxString result;
32734 PyObject * obj0 = 0 ;
32735 char *kwnames[] = {
32736 (char *) "self", NULL
32737 };
32738
32739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail;
32740 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32741 if (SWIG_arg_fail(1)) SWIG_fail;
32742 {
32743 PyThreadState* __tstate = wxPyBeginAllowThreads();
32744 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
32745
32746 wxPyEndAllowThreads(__tstate);
32747 if (PyErr_Occurred()) SWIG_fail;
32748 }
32749 {
32750 #if wxUSE_UNICODE
32751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32752 #else
32753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32754 #endif
32755 }
32756 return resultobj;
32757 fail:
32758 return NULL;
32759 }
32760
32761
32762 static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) {
32763 PyObject *resultobj = NULL;
32764 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32765 wxString result;
32766 PyObject * obj0 = 0 ;
32767 char *kwnames[] = {
32768 (char *) "self", NULL
32769 };
32770
32771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail;
32772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32773 if (SWIG_arg_fail(1)) SWIG_fail;
32774 {
32775 PyThreadState* __tstate = wxPyBeginAllowThreads();
32776 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
32777
32778 wxPyEndAllowThreads(__tstate);
32779 if (PyErr_Occurred()) SWIG_fail;
32780 }
32781 {
32782 #if wxUSE_UNICODE
32783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32784 #else
32785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32786 #endif
32787 }
32788 return resultobj;
32789 fail:
32790 return NULL;
32791 }
32792
32793
32794 static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
32795 PyObject *resultobj = NULL;
32796 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32797 wxString *arg2 = 0 ;
32798 bool temp2 = false ;
32799 PyObject * obj0 = 0 ;
32800 PyObject * obj1 = 0 ;
32801 char *kwnames[] = {
32802 (char *) "self",(char *) "prefix", NULL
32803 };
32804
32805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail;
32806 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32807 if (SWIG_arg_fail(1)) SWIG_fail;
32808 {
32809 arg2 = wxString_in_helper(obj1);
32810 if (arg2 == NULL) SWIG_fail;
32811 temp2 = true;
32812 }
32813 {
32814 PyThreadState* __tstate = wxPyBeginAllowThreads();
32815 wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2);
32816
32817 wxPyEndAllowThreads(__tstate);
32818 if (PyErr_Occurred()) SWIG_fail;
32819 }
32820 Py_INCREF(Py_None); resultobj = Py_None;
32821 {
32822 if (temp2)
32823 delete arg2;
32824 }
32825 return resultobj;
32826 fail:
32827 {
32828 if (temp2)
32829 delete arg2;
32830 }
32831 return NULL;
32832 }
32833
32834
32835 static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
32836 PyObject *resultobj = NULL;
32837 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
32838 wxString result;
32839 PyObject * obj0 = 0 ;
32840 char *kwnames[] = {
32841 (char *) "self", NULL
32842 };
32843
32844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail;
32845 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0);
32846 if (SWIG_arg_fail(1)) SWIG_fail;
32847 {
32848 PyThreadState* __tstate = wxPyBeginAllowThreads();
32849 result = wxStandardPaths_GetInstallPrefix(arg1);
32850
32851 wxPyEndAllowThreads(__tstate);
32852 if (PyErr_Occurred()) SWIG_fail;
32853 }
32854 {
32855 #if wxUSE_UNICODE
32856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32857 #else
32858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32859 #endif
32860 }
32861 return resultobj;
32862 fail:
32863 return NULL;
32864 }
32865
32866
32867 static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) {
32868 PyObject *obj;
32869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32870 SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj);
32871 Py_INCREF(obj);
32872 return Py_BuildValue((char *)"");
32873 }
32874 static PyMethodDef SwigMethods[] = {
32875 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32876 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32877 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL},
32878 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL},
32879 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
32880 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
32881 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL},
32882 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL},
32883 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
32884 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
32885 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
32886 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
32887 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
32888 { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL},
32889 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL},
32890 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL},
32891 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL},
32892 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL},
32893 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL},
32894 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32895 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32896 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL},
32897 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32898 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL},
32899 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL},
32900 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL},
32901 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL},
32902 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL},
32903 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32904 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL},
32905 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL},
32906 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL},
32907 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL},
32908 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL},
32909 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL},
32910 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL},
32911 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL},
32912 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL},
32913 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL},
32914 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL},
32915 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL},
32916 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL},
32917 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL},
32918 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL},
32919 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL},
32920 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL},
32921 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32922 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32923 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32924 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL},
32925 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
32926 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
32927 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL},
32928 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL},
32929 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL},
32930 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL},
32931 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32932 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32933 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL},
32934 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL},
32935 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
32936 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
32937 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL},
32938 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL},
32939 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32940 { (char *)"GetXDisplay", (PyCFunction) _wrap_GetXDisplay, METH_VARARGS | METH_KEYWORDS, NULL},
32941 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32942 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL},
32943 { (char *)"FindWindowAtPointer", (PyCFunction) _wrap_FindWindowAtPointer, METH_VARARGS | METH_KEYWORDS, NULL},
32944 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32945 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32946 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32947 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL},
32948 { (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL},
32949 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL},
32950 { (char *)"new_MouseState", (PyCFunction) _wrap_new_MouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32951 { (char *)"delete_MouseState", (PyCFunction) _wrap_delete_MouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32952 { (char *)"MouseState_GetX", (PyCFunction) _wrap_MouseState_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
32953 { (char *)"MouseState_GetY", (PyCFunction) _wrap_MouseState_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
32954 { (char *)"MouseState_LeftDown", (PyCFunction) _wrap_MouseState_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32955 { (char *)"MouseState_MiddleDown", (PyCFunction) _wrap_MouseState_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
32956 { (char *)"MouseState_RightDown", (PyCFunction) _wrap_MouseState_RightDown, METH_VARARGS | METH_KEYWORDS, NULL},
32957 { (char *)"MouseState_ControlDown", (PyCFunction) _wrap_MouseState_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
32958 { (char *)"MouseState_ShiftDown", (PyCFunction) _wrap_MouseState_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32959 { (char *)"MouseState_AltDown", (PyCFunction) _wrap_MouseState_AltDown, METH_VARARGS | METH_KEYWORDS, NULL},
32960 { (char *)"MouseState_MetaDown", (PyCFunction) _wrap_MouseState_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
32961 { (char *)"MouseState_CmdDown", (PyCFunction) _wrap_MouseState_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL},
32962 { (char *)"MouseState_SetX", (PyCFunction) _wrap_MouseState_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
32963 { (char *)"MouseState_SetY", (PyCFunction) _wrap_MouseState_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
32964 { (char *)"MouseState_SetLeftDown", (PyCFunction) _wrap_MouseState_SetLeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32965 { (char *)"MouseState_SetMiddleDown", (PyCFunction) _wrap_MouseState_SetMiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
32966 { (char *)"MouseState_SetRightDown", (PyCFunction) _wrap_MouseState_SetRightDown, METH_VARARGS | METH_KEYWORDS, NULL},
32967 { (char *)"MouseState_SetControlDown", (PyCFunction) _wrap_MouseState_SetControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
32968 { (char *)"MouseState_SetShiftDown", (PyCFunction) _wrap_MouseState_SetShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
32969 { (char *)"MouseState_SetAltDown", (PyCFunction) _wrap_MouseState_SetAltDown, METH_VARARGS | METH_KEYWORDS, NULL},
32970 { (char *)"MouseState_SetMetaDown", (PyCFunction) _wrap_MouseState_SetMetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
32971 { (char *)"MouseState_swigregister", MouseState_swigregister, METH_VARARGS, NULL},
32972 { (char *)"GetMouseState", (PyCFunction) _wrap_GetMouseState, METH_VARARGS | METH_KEYWORDS, NULL},
32973 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL},
32974 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL},
32975 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL},
32976 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL},
32977 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL},
32978 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL},
32979 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL},
32980 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
32981 { (char *)"delete_ToolTip", (PyCFunction) _wrap_delete_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
32982 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL},
32983 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
32984 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32985 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
32986 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL},
32987 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL},
32988 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
32989 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
32990 { (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
32991 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
32992 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
32993 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
32994 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL},
32995 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32996 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
32997 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
32998 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
32999 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL},
33000 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
33001 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
33002 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL},
33003 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL},
33004 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
33005 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
33006 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL},
33007 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
33008 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
33009 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL},
33010 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
33011 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
33012 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL},
33013 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33014 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33015 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL},
33016 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL},
33017 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL},
33018 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL},
33019 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL},
33020 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL},
33021 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL},
33022 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33023 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33024 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33025 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL},
33026 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL},
33027 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33028 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33029 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL},
33030 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL},
33031 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33032 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL},
33033 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL},
33034 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
33035 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL},
33036 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
33037 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
33038 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
33039 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33040 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL},
33041 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL},
33042 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL},
33043 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33044 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
33045 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL},
33046 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL},
33047 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL},
33048 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33049 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33050 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL},
33051 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL},
33052 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33053 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
33054 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
33055 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33056 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
33057 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
33058 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL},
33059 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
33060 { (char *)"Timer_Notify", (PyCFunction) _wrap_Timer_Notify, METH_VARARGS | METH_KEYWORDS, NULL},
33061 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL},
33062 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL},
33063 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL},
33064 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
33065 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL},
33066 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
33067 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL},
33068 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL},
33069 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL},
33070 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL},
33071 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL},
33072 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL},
33073 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL},
33074 { (char *)"delete_Log", (PyCFunction) _wrap_delete_Log, METH_VARARGS | METH_KEYWORDS, NULL},
33075 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
33076 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL},
33077 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL},
33078 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33079 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL},
33080 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33081 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33082 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL},
33083 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL},
33084 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
33085 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
33086 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL},
33087 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33088 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33089 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33090 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL},
33091 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL},
33092 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
33093 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
33094 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33095 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
33096 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
33097 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
33098 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL},
33099 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
33100 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL},
33101 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL},
33102 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL},
33103 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
33104 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL},
33105 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL},
33106 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL},
33107 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL},
33108 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL},
33109 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL},
33110 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL},
33111 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33112 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33113 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL},
33114 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL},
33115 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL},
33116 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33117 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL},
33118 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL},
33119 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL},
33120 { (char *)"new_LogBuffer", (PyCFunction) _wrap_new_LogBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
33121 { (char *)"LogBuffer_GetBuffer", (PyCFunction) _wrap_LogBuffer_GetBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
33122 { (char *)"LogBuffer_Flush", (PyCFunction) _wrap_LogBuffer_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33123 { (char *)"LogBuffer_swigregister", LogBuffer_swigregister, METH_VARARGS, NULL},
33124 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL},
33125 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL},
33126 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL},
33127 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL},
33128 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL},
33129 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL},
33130 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33131 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL},
33132 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
33133 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL},
33134 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL},
33135 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL},
33136 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
33137 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL},
33138 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL},
33139 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL},
33140 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL},
33141 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL},
33142 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL},
33143 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33144 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL},
33145 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
33146 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
33147 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
33148 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
33149 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33150 { (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
33151 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL},
33152 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL},
33153 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
33154 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL},
33155 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL},
33156 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL},
33157 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL},
33158 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL},
33159 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
33160 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
33161 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL},
33162 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
33163 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL},
33164 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL},
33165 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL},
33166 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL},
33167 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL},
33168 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL},
33169 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL},
33170 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL},
33171 { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
33172 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
33173 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
33174 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33175 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33176 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33177 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33178 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33179 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33180 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33181 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33182 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
33183 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
33184 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33185 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL},
33186 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL},
33187 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL},
33188 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL},
33189 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL},
33190 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL},
33191 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL},
33192 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL},
33193 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL},
33194 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL},
33195 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL},
33196 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL},
33197 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL},
33198 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL},
33199 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL},
33200 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL},
33201 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL},
33202 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL},
33203 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL},
33204 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL},
33205 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL},
33206 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL},
33207 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL},
33208 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL},
33209 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL},
33210 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL},
33211 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL},
33212 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL},
33213 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL},
33214 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL},
33215 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL},
33216 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL},
33217 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL},
33218 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33219 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33220 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33221 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
33222 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
33223 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
33224 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
33225 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
33226 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33227 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
33228 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL},
33229 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL},
33230 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL},
33231 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
33232 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
33233 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
33234 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL},
33235 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
33236 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL},
33237 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
33238 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33239 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL},
33240 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33241 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL},
33242 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL},
33243 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
33244 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL},
33245 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33246 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL},
33247 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33248 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL},
33249 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33250 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
33251 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33252 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33253 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33254 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
33255 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
33256 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL},
33257 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL},
33258 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL},
33259 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL},
33260 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL},
33261 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
33262 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
33263 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33264 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33265 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL},
33266 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33267 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33268 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
33269 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33270 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33271 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL},
33272 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33273 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33274 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
33275 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL},
33276 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL},
33277 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL},
33278 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
33279 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL},
33280 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL},
33281 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL},
33282 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
33283 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL},
33284 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33285 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL},
33286 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL},
33287 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL},
33288 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
33289 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
33290 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL},
33291 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33292 { (char *)"delete_ArtProvider", (PyCFunction) _wrap_delete_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33293 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33294 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33295 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33296 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL},
33297 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33298 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33299 { (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL},
33300 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
33301 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL},
33302 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL},
33303 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL},
33304 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33305 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL},
33306 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL},
33307 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
33308 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL},
33309 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33310 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33311 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33312 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33313 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL},
33314 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL},
33315 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33316 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33317 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
33318 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL},
33319 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL},
33320 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL},
33321 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL},
33322 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL},
33323 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL},
33324 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL},
33325 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL},
33326 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL},
33327 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33328 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33329 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33330 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL},
33331 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL},
33332 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL},
33333 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33334 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33335 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
33336 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
33337 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33338 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
33339 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
33340 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
33341 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
33342 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33343 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33344 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL},
33345 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL},
33346 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL},
33347 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL},
33348 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
33349 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
33350 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL},
33351 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
33352 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
33353 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL},
33354 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL},
33355 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
33356 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33357 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33358 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL},
33359 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL},
33360 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL},
33361 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33362 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL},
33363 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL},
33364 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL},
33365 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33366 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL},
33367 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL},
33368 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL},
33369 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL},
33370 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL},
33371 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL},
33372 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL},
33373 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL},
33374 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL},
33375 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33376 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
33377 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33378 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL},
33379 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL},
33380 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33381 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL},
33382 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
33383 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33384 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL},
33385 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL},
33386 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL},
33387 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL},
33388 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33389 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL},
33390 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL},
33391 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
33392 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
33393 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
33394 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33395 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33396 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33397 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33398 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33399 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33400 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33401 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33402 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33403 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33404 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL},
33405 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33406 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
33407 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
33408 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
33409 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
33410 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL},
33411 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
33412 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL},
33413 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL},
33414 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL},
33415 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33416 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33417 { (char *)"DateTime_FromTimezone", (PyCFunction) _wrap_DateTime_FromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33418 { (char *)"DateTime_MakeFromTimezone", (PyCFunction) _wrap_DateTime_MakeFromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
33419 { (char *)"DateTime_ToUTC", (PyCFunction) _wrap_DateTime_ToUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33420 { (char *)"DateTime_MakeUTC", (PyCFunction) _wrap_DateTime_MakeUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33421 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL},
33422 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL},
33423 { (char *)"DateTime_FromUTC", (PyCFunction) _wrap_DateTime_FromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33424 { (char *)"DateTime_MakeFromUTC", (PyCFunction) _wrap_DateTime_MakeFromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
33425 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL},
33426 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL},
33427 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL},
33428 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL},
33429 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33430 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL},
33431 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
33432 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL},
33433 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
33434 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
33435 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
33436 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33437 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
33438 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL},
33439 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL},
33440 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
33441 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL},
33442 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL},
33443 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL},
33444 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL},
33445 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL},
33446 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL},
33447 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL},
33448 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL},
33449 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL},
33450 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL},
33451 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL},
33452 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33453 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL},
33454 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL},
33455 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL},
33456 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL},
33457 { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
33458 { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL},
33459 { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
33460 { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
33461 { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33462 { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33463 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL},
33464 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33465 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL},
33466 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL},
33467 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL},
33468 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL},
33469 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL},
33470 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL},
33471 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL},
33472 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL},
33473 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL},
33474 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL},
33475 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL},
33476 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL},
33477 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL},
33478 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL},
33479 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL},
33480 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
33481 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL},
33482 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
33483 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL},
33484 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33485 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33486 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33487 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33488 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
33489 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL},
33490 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL},
33491 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
33492 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
33493 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
33494 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL},
33495 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
33496 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
33497 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
33498 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
33499 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
33500 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL},
33501 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
33502 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
33503 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33504 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33505 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
33506 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL},
33507 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL},
33508 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
33509 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL},
33510 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL},
33511 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33512 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33513 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL},
33514 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL},
33515 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL},
33516 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL},
33517 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL},
33518 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL},
33519 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33520 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
33521 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
33522 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL},
33523 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
33524 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL},
33525 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL},
33526 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL},
33527 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL},
33528 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL},
33529 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL},
33530 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
33531 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33532 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33533 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL},
33534 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
33535 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
33536 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL},
33537 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL},
33538 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33539 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
33540 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL},
33541 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
33542 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
33543 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
33544 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL},
33545 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
33546 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
33547 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
33548 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
33549 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
33550 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33551 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33552 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL},
33553 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL},
33554 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL},
33555 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL},
33556 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL},
33557 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33558 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33559 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33560 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL},
33561 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL},
33562 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
33563 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL},
33564 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
33565 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
33566 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL},
33567 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33568 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33569 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL},
33570 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
33571 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
33572 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL},
33573 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
33574 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33575 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL},
33576 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
33577 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33578 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
33579 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
33580 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
33581 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33582 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL},
33583 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
33584 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33585 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL},
33586 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL},
33587 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL},
33588 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL},
33589 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33590 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL},
33591 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
33592 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
33593 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL},
33594 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33595 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33596 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL},
33597 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33598 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33599 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33600 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL},
33601 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33602 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33603 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL},
33604 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33605 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL},
33606 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL},
33607 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL},
33608 { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL},
33609 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33610 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
33611 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33612 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL},
33613 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33614 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL},
33615 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
33616 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL},
33617 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33618 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL},
33619 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL},
33620 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL},
33621 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL},
33622 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
33623 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33624 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
33625 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33626 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33627 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
33628 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33629 { (char *)"DropSource_GiveFeedback", (PyCFunction) _wrap_DropSource_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL},
33630 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL},
33631 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33632 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33633 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33634 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33635 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
33636 { (char *)"DropTarget_OnEnter", (PyCFunction) _wrap_DropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33637 { (char *)"DropTarget_OnDragOver", (PyCFunction) _wrap_DropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33638 { (char *)"DropTarget_OnLeave", (PyCFunction) _wrap_DropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33639 { (char *)"DropTarget_OnDrop", (PyCFunction) _wrap_DropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33640 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33641 { (char *)"DropTarget_SetDefaultAction", (PyCFunction) _wrap_DropTarget_SetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
33642 { (char *)"DropTarget_GetDefaultAction", (PyCFunction) _wrap_DropTarget_GetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
33643 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL},
33644 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33645 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33646 { (char *)"TextDropTarget_OnDropText", (PyCFunction) _wrap_TextDropTarget_OnDropText, METH_VARARGS | METH_KEYWORDS, NULL},
33647 { (char *)"TextDropTarget_OnEnter", (PyCFunction) _wrap_TextDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33648 { (char *)"TextDropTarget_OnDragOver", (PyCFunction) _wrap_TextDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33649 { (char *)"TextDropTarget_OnLeave", (PyCFunction) _wrap_TextDropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33650 { (char *)"TextDropTarget_OnDrop", (PyCFunction) _wrap_TextDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33651 { (char *)"TextDropTarget_OnData", (PyCFunction) _wrap_TextDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
33652 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL},
33653 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
33654 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
33655 { (char *)"FileDropTarget_OnDropFiles", (PyCFunction) _wrap_FileDropTarget_OnDropFiles, METH_VARARGS | METH_KEYWORDS, NULL},
33656 { (char *)"FileDropTarget_OnEnter", (PyCFunction) _wrap_FileDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
33657 { (char *)"FileDropTarget_OnDragOver", (PyCFunction) _wrap_FileDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
33658 { (char *)"FileDropTarget_OnLeave", (PyCFunction) _wrap_FileDropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL},
33659 { (char *)"FileDropTarget_OnDrop", (PyCFunction) _wrap_FileDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
33660 { (char *)"FileDropTarget_OnData", (PyCFunction) _wrap_FileDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
33661 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL},
33662 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL},
33663 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL},
33664 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL},
33665 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL},
33666 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL},
33667 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL},
33668 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
33669 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
33670 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
33671 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
33672 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
33673 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
33674 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33675 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
33676 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
33677 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
33678 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
33679 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL},
33680 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
33681 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
33682 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL},
33683 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
33684 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
33685 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
33686 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33687 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33688 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33689 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL},
33690 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL},
33691 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL},
33692 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL},
33693 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL},
33694 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL},
33695 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL},
33696 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL},
33697 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL},
33698 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL},
33699 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL},
33700 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
33701 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
33702 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
33703 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
33704 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL},
33705 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
33706 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL},
33707 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL},
33708 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL},
33709 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL},
33710 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL},
33711 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
33712 { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL},
33713 { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL},
33714 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL},
33715 { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33716 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33717 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33718 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL},
33719 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL},
33720 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
33721 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
33722 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL},
33723 { NULL, NULL, 0, NULL }
33724 };
33725
33726
33727 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
33728
33729 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
33730 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
33731 }
33732 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
33733 return (void *)((wxEvent *) ((wxMenuEvent *) x));
33734 }
33735 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
33736 return (void *)((wxEvent *) ((wxCloseEvent *) x));
33737 }
33738 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
33739 return (void *)((wxEvent *) ((wxMouseEvent *) x));
33740 }
33741 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
33742 return (void *)((wxEvent *) ((wxEraseEvent *) x));
33743 }
33744 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
33745 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
33746 }
33747 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
33748 return (void *)((wxEvent *) ((wxTimerEvent *) x));
33749 }
33750 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
33751 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
33752 }
33753 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
33754 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
33755 }
33756 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
33757 return (void *)((wxEvent *) ((wxPyEvent *) x));
33758 }
33759 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
33760 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
33761 }
33762 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
33763 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
33764 }
33765 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
33766 return (void *)((wxEvent *) ((wxIdleEvent *) x));
33767 }
33768 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
33769 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
33770 }
33771 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
33772 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
33773 }
33774 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
33775 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
33776 }
33777 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
33778 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
33779 }
33780 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
33781 return (void *)((wxEvent *) ((wxActivateEvent *) x));
33782 }
33783 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
33784 return (void *)((wxEvent *) ((wxSizeEvent *) x));
33785 }
33786 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
33787 return (void *)((wxEvent *) ((wxMoveEvent *) x));
33788 }
33789 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
33790 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
33791 }
33792 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
33793 return (void *)((wxEvent *) ((wxPaintEvent *) x));
33794 }
33795 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
33796 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
33797 }
33798 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
33799 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
33800 }
33801 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
33802 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
33803 }
33804 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
33805 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
33806 }
33807 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
33808 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33809 }
33810 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
33811 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
33812 }
33813 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
33814 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
33815 }
33816 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
33817 return (void *)((wxEvent *) ((wxFocusEvent *) x));
33818 }
33819 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
33820 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
33821 }
33822 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
33823 return (void *)((wxEvent *) ((wxProcessEvent *) x));
33824 }
33825 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
33826 return (void *)((wxEvent *) ((wxShowEvent *) x));
33827 }
33828 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
33829 return (void *)((wxEvent *) ((wxCommandEvent *) x));
33830 }
33831 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
33832 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
33833 }
33834 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
33835 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33836 }
33837 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
33838 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
33839 }
33840 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
33841 return (void *)((wxEvent *) ((wxKeyEvent *) x));
33842 }
33843 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
33844 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
33845 }
33846 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
33847 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
33848 }
33849 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
33850 return (void *)((wxConfigBase *) ((wxConfig *) x));
33851 }
33852 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
33853 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33854 }
33855 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
33856 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
33857 }
33858 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
33859 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
33860 }
33861 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
33862 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
33863 }
33864 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
33865 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
33866 }
33867 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
33868 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
33869 }
33870 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
33871 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
33872 }
33873 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
33874 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
33875 }
33876 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
33877 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33878 }
33879 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
33880 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
33881 }
33882 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
33883 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
33884 }
33885 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
33886 return (void *)((wxDataObject *) ((wxURLDataObject *) x));
33887 }
33888 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
33889 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
33890 }
33891 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
33892 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
33893 }
33894 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
33895 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
33896 }
33897 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
33898 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
33899 }
33900 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
33901 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
33902 }
33903 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
33904 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
33905 }
33906 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
33907 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
33908 }
33909 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
33910 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
33911 }
33912 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
33913 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
33914 }
33915 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
33916 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
33917 }
33918 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
33919 return (void *)((wxEvtHandler *) ((wxWindow *) x));
33920 }
33921 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
33922 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33923 }
33924 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
33925 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
33926 }
33927 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
33928 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
33929 }
33930 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
33931 return (void *)((wxEvtHandler *) ((wxValidator *) x));
33932 }
33933 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
33934 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
33935 }
33936 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
33937 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
33938 }
33939 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
33940 return (void *)((wxEvtHandler *) ((wxMenu *) x));
33941 }
33942 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
33943 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
33944 }
33945 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
33946 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
33947 }
33948 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33949 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33950 }
33951 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33952 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33953 }
33954 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33955 return (void *)((wxObject *) ((wxSizerItem *) x));
33956 }
33957 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33958 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33959 }
33960 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33961 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33962 }
33963 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33964 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33965 }
33966 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33967 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33968 }
33969 static void *_p_wxSizerTo_p_wxObject(void *x) {
33970 return (void *)((wxObject *) ((wxSizer *) x));
33971 }
33972 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33973 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33974 }
33975 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
33976 return (void *)((wxObject *) ((wxFileHistory *) x));
33977 }
33978 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33979 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33980 }
33981 static void *_p_wxEventTo_p_wxObject(void *x) {
33982 return (void *)((wxObject *) ((wxEvent *) x));
33983 }
33984 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33985 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33986 }
33987 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33988 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33989 }
33990 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33991 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33992 }
33993 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33994 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33995 }
33996 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33997 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33998 }
33999 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
34000 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
34001 }
34002 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
34003 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
34004 }
34005 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
34006 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
34007 }
34008 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
34009 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
34010 }
34011 static void *_p_wxControlTo_p_wxObject(void *x) {
34012 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
34013 }
34014 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
34015 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
34016 }
34017 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
34018 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
34019 }
34020 static void *_p_wxFSFileTo_p_wxObject(void *x) {
34021 return (void *)((wxObject *) ((wxFSFile *) x));
34022 }
34023 static void *_p_wxClipboardTo_p_wxObject(void *x) {
34024 return (void *)((wxObject *) ((wxClipboard *) x));
34025 }
34026 static void *_p_wxPySizerTo_p_wxObject(void *x) {
34027 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
34028 }
34029 static void *_p_wxPyEventTo_p_wxObject(void *x) {
34030 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
34031 }
34032 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
34033 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
34034 }
34035 static void *_p_wxShowEventTo_p_wxObject(void *x) {
34036 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
34037 }
34038 static void *_p_wxToolTipTo_p_wxObject(void *x) {
34039 return (void *)((wxObject *) ((wxToolTip *) x));
34040 }
34041 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
34042 return (void *)((wxObject *) ((wxMenuItem *) x));
34043 }
34044 static void *_p_wxDateEventTo_p_wxObject(void *x) {
34045 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
34046 }
34047 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
34048 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
34049 }
34050 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
34051 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
34052 }
34053 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
34054 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
34055 }
34056 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
34057 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
34058 }
34059 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
34060 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
34061 }
34062 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
34063 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
34064 }
34065 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
34066 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
34067 }
34068 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
34069 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
34070 }
34071 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
34072 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
34073 }
34074 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
34075 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
34076 }
34077 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
34078 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
34079 }
34080 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
34081 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
34082 }
34083 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
34084 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
34085 }
34086 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
34087 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
34088 }
34089 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
34090 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
34091 }
34092 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
34093 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
34094 }
34095 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
34096 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
34097 }
34098 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
34099 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
34100 }
34101 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
34102 return (void *)((wxObject *) ((wxImageHandler *) x));
34103 }
34104 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
34105 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
34106 }
34107 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
34108 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
34109 }
34110 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
34111 return (void *)((wxObject *) ((wxEvtHandler *) x));
34112 }
34113 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
34114 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
34115 }
34116 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
34117 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
34118 }
34119 static void *_p_wxImageTo_p_wxObject(void *x) {
34120 return (void *)((wxObject *) ((wxImage *) x));
34121 }
34122 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
34123 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
34124 }
34125 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
34126 return (void *)((wxObject *) ((wxSystemOptions *) x));
34127 }
34128 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
34129 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
34130 }
34131 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
34132 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
34133 }
34134 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
34135 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
34136 }
34137 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
34138 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
34139 }
34140 static void *_p_wxWindowTo_p_wxObject(void *x) {
34141 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
34142 }
34143 static void *_p_wxMenuTo_p_wxObject(void *x) {
34144 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
34145 }
34146 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
34147 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
34148 }
34149 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
34150 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
34151 }
34152 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
34153 return (void *)((wxObject *) ((wxFileSystem *) x));
34154 }
34155 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
34156 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
34157 }
34158 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
34159 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
34160 }
34161 static void *_p_wxPyAppTo_p_wxObject(void *x) {
34162 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
34163 }
34164 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
34165 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
34166 }
34167 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
34168 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
34169 }
34170 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
34171 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
34172 }
34173 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
34174 return (void *)((wxObject *) ((wxBusyInfo *) x));
34175 }
34176 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
34177 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
34178 }
34179 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
34180 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
34181 }
34182 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
34183 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
34184 }
34185 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
34186 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
34187 }
34188 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
34189 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
34190 }
34191 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
34192 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
34193 }
34194 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
34195 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
34196 }
34197 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
34198 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
34199 }
34200 static void *_p_wxValidatorTo_p_wxObject(void *x) {
34201 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
34202 }
34203 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
34204 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
34205 }
34206 static void *_p_wxLogBufferTo_p_wxLog(void *x) {
34207 return (void *)((wxLog *) ((wxLogBuffer *) x));
34208 }
34209 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
34210 return (void *)((wxLog *) ((wxLogStderr *) x));
34211 }
34212 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
34213 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
34214 }
34215 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
34216 return (void *)((wxLog *) ((wxLogWindow *) x));
34217 }
34218 static void *_p_wxLogChainTo_p_wxLog(void *x) {
34219 return (void *)((wxLog *) ((wxLogChain *) x));
34220 }
34221 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
34222 return (void *)((wxLog *) ((wxLogGui *) x));
34223 }
34224 static void *_p_wxPyLogTo_p_wxLog(void *x) {
34225 return (void *)((wxLog *) ((wxPyLog *) x));
34226 }
34227 static void *_p_wxControlTo_p_wxWindow(void *x) {
34228 return (void *)((wxWindow *) ((wxControl *) x));
34229 }
34230 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
34231 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
34232 }
34233 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
34234 return (void *)((wxWindow *) ((wxMenuBar *) x));
34235 }
34236 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
34237 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
34238 }
34239 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
34240 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
34241 }
34242 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
34243 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
34244 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
34245 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
34246 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
34247 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, 0};
34248 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0};
34249 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, 0};
34250 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
34251 static swig_type_info _swigt__p_wxBitmapDataObject = {"_p_wxBitmapDataObject", "wxBitmapDataObject *", 0, 0, 0};
34252 static swig_type_info _swigt__p_wxBusyCursor = {"_p_wxBusyCursor", "wxBusyCursor *", 0, 0, 0};
34253 static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", "wxBusyInfo *", 0, 0, 0};
34254 static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, 0};
34255 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, 0};
34256 static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", "wxClipboard *", 0, 0, 0};
34257 static swig_type_info _swigt__p_wxClipboardLocker = {"_p_wxClipboardLocker", "wxClipboardLocker *", 0, 0, 0};
34258 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
34259 static swig_type_info _swigt__p_wxConfig = {"_p_wxConfig", "wxConfig *", 0, 0, 0};
34260 static swig_type_info _swigt__p_wxConfigBase = {"_p_wxConfigBase", "wxConfigBase *", 0, 0, 0};
34261 static swig_type_info _swigt__p_wxConfigPathChanger = {"_p_wxConfigPathChanger", "wxConfigPathChanger *", 0, 0, 0};
34262 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0};
34263 static swig_type_info _swigt__p_wxCustomDataObject = {"_p_wxCustomDataObject", "wxCustomDataObject *", 0, 0, 0};
34264 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0};
34265 static swig_type_info _swigt__p_wxDataFormat = {"_p_wxDataFormat", "wxDataFormat *", 0, 0, 0};
34266 static swig_type_info _swigt__p_wxDataObject = {"_p_wxDataObject", "wxDataObject *", 0, 0, 0};
34267 static swig_type_info _swigt__p_wxDataObjectComposite = {"_p_wxDataObjectComposite", "wxDataObjectComposite *", 0, 0, 0};
34268 static swig_type_info _swigt__p_wxDataObjectSimple = {"_p_wxDataObjectSimple", "wxDataObjectSimple *", 0, 0, 0};
34269 static swig_type_info _swigt__p_wxDateSpan = {"_p_wxDateSpan", "wxDateSpan *", 0, 0, 0};
34270 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0};
34271 static swig_type_info _swigt__p_wxDateTime__TimeZone = {"_p_wxDateTime__TimeZone", "wxDateTime::TimeZone *", 0, 0, 0};
34272 static swig_type_info _swigt__p_wxDisplay = {"_p_wxDisplay", "wxDisplay *", 0, 0, 0};
34273 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
34274 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0};
34275 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
34276 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
34277 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
34278 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
34279 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
34280 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
34281 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
34282 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
34283 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
34284 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
34285 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
34286 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
34287 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
34288 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
34289 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
34290 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
34291 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
34292 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
34293 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
34294 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
34295 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
34296 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
34297 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
34298 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
34299 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
34300 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
34301 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
34302 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
34303 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
34304 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
34305 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
34306 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
34307 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
34308 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
34309 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
34310 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
34311 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
34312 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
34313 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
34314 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
34315 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
34316 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
34317 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
34318 static swig_type_info _swigt__p_wxFileConfig = {"_p_wxFileConfig", "wxFileConfig *", 0, 0, 0};
34319 static swig_type_info _swigt__p_wxFileDataObject = {"_p_wxFileDataObject", "wxFileDataObject *", 0, 0, 0};
34320 static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", "wxFileHistory *", 0, 0, 0};
34321 static swig_type_info _swigt__p_wxFileType = {"_p_wxFileType", "wxFileType *", 0, 0, 0};
34322 static swig_type_info _swigt__p_wxFileTypeInfo = {"_p_wxFileTypeInfo", "wxFileTypeInfo *", 0, 0, 0};
34323 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
34324 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, 0};
34325 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
34326 static swig_type_info _swigt__p_wxJoystick = {"_p_wxJoystick", "wxJoystick *", 0, 0, 0};
34327 static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", "wxJoystickEvent *", 0, 0, 0};
34328 static swig_type_info _swigt__p_wxKillError = {"_p_wxKillError", "enum wxKillError *|wxKillError *", 0, 0, 0};
34329 static swig_type_info _swigt__p_wxLog = {"_p_wxLog", "wxLog *", 0, 0, 0};
34330 static swig_type_info _swigt__p_wxLogBuffer = {"_p_wxLogBuffer", "wxLogBuffer *", 0, 0, 0};
34331 static swig_type_info _swigt__p_wxLogChain = {"_p_wxLogChain", "wxLogChain *", 0, 0, 0};
34332 static swig_type_info _swigt__p_wxLogGui = {"_p_wxLogGui", "wxLogGui *", 0, 0, 0};
34333 static swig_type_info _swigt__p_wxLogNull = {"_p_wxLogNull", "wxLogNull *", 0, 0, 0};
34334 static swig_type_info _swigt__p_wxLogStderr = {"_p_wxLogStderr", "wxLogStderr *", 0, 0, 0};
34335 static swig_type_info _swigt__p_wxLogTextCtrl = {"_p_wxLogTextCtrl", "wxLogTextCtrl *", 0, 0, 0};
34336 static swig_type_info _swigt__p_wxLogWindow = {"_p_wxLogWindow", "wxLogWindow *", 0, 0, 0};
34337 static swig_type_info _swigt__p_wxMemorySize = {"_p_wxMemorySize", "wxMemorySize *", 0, 0, 0};
34338 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, 0};
34339 static swig_type_info _swigt__p_wxMetafile = {"_p_wxMetafile", "wxMetafile *", 0, 0, 0};
34340 static swig_type_info _swigt__p_wxMetafileDataObject = {"_p_wxMetafileDataObject", "wxMetafileDataObject *", 0, 0, 0};
34341 static swig_type_info _swigt__p_wxMimeTypesManager = {"_p_wxMimeTypesManager", "wxMimeTypesManager *", 0, 0, 0};
34342 static swig_type_info _swigt__p_wxMouseState = {"_p_wxMouseState", "wxMouseState *", 0, 0, 0};
34343 static swig_type_info _swigt__p_wxMutexGuiLocker = {"_p_wxMutexGuiLocker", "wxMutexGuiLocker *", 0, 0, 0};
34344 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
34345 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
34346 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
34347 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
34348 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
34349 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
34350 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
34351 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
34352 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
34353 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
34354 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
34355 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
34356 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
34357 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
34358 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
34359 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
34360 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
34361 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
34362 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
34363 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
34364 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
34365 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
34366 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
34367 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
34368 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
34369 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
34370 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
34371 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
34372 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
34373 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
34374 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
34375 static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, 0};
34376 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
34377 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
34378 static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", "wxProcessEvent *", 0, 0, 0};
34379 static swig_type_info _swigt__p_wxPyArtProvider = {"_p_wxPyArtProvider", "wxPyArtProvider *", 0, 0, 0};
34380 static swig_type_info _swigt__p_wxPyBitmapDataObject = {"_p_wxPyBitmapDataObject", "wxPyBitmapDataObject *", 0, 0, 0};
34381 static swig_type_info _swigt__p_wxPyDataObjectSimple = {"_p_wxPyDataObjectSimple", "wxPyDataObjectSimple *", 0, 0, 0};
34382 static swig_type_info _swigt__p_wxPyDropSource = {"_p_wxPyDropSource", "wxPyDropSource *", 0, 0, 0};
34383 static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, 0};
34384 static swig_type_info _swigt__p_wxPyFileDropTarget = {"_p_wxPyFileDropTarget", "wxPyFileDropTarget *", 0, 0, 0};
34385 static swig_type_info _swigt__p_wxPyLog = {"_p_wxPyLog", "wxPyLog *", 0, 0, 0};
34386 static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", "wxPyProcess *", 0, 0, 0};
34387 static swig_type_info _swigt__p_wxPyTextDataObject = {"_p_wxPyTextDataObject", "wxPyTextDataObject *", 0, 0, 0};
34388 static swig_type_info _swigt__p_wxPyTextDropTarget = {"_p_wxPyTextDropTarget", "wxPyTextDropTarget *", 0, 0, 0};
34389 static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", "wxPyTimer *", 0, 0, 0};
34390 static swig_type_info _swigt__p_wxPyTipProvider = {"_p_wxPyTipProvider", "wxPyTipProvider *", 0, 0, 0};
34391 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0};
34392 static swig_type_info _swigt__p_wxSingleInstanceChecker = {"_p_wxSingleInstanceChecker", "wxSingleInstanceChecker *", 0, 0, 0};
34393 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
34394 static swig_type_info _swigt__p_wxSound = {"_p_wxSound", "wxSound *", 0, 0, 0};
34395 static swig_type_info _swigt__p_wxStandardPaths = {"_p_wxStandardPaths", "wxStandardPaths *", 0, 0, 0};
34396 static swig_type_info _swigt__p_wxStopWatch = {"_p_wxStopWatch", "wxStopWatch *", 0, 0, 0};
34397 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0};
34398 static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", "wxSystemOptions *", 0, 0, 0};
34399 static swig_type_info _swigt__p_wxSystemSettings = {"_p_wxSystemSettings", "wxSystemSettings *", 0, 0, 0};
34400 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, 0};
34401 static swig_type_info _swigt__p_wxTextDataObject = {"_p_wxTextDataObject", "wxTextDataObject *", 0, 0, 0};
34402 static swig_type_info _swigt__p_wxTimeSpan = {"_p_wxTimeSpan", "wxTimeSpan *", 0, 0, 0};
34403 static swig_type_info _swigt__p_wxTimer = {"_p_wxTimer", "wxTimer *", 0, 0, 0};
34404 static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", "wxTimerEvent *", 0, 0, 0};
34405 static swig_type_info _swigt__p_wxTimerRunner = {"_p_wxTimerRunner", "wxTimerRunner *", 0, 0, 0};
34406 static swig_type_info _swigt__p_wxTipProvider = {"_p_wxTipProvider", "wxTipProvider *", 0, 0, 0};
34407 static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, 0};
34408 static swig_type_info _swigt__p_wxURLDataObject = {"_p_wxURLDataObject", "wxURLDataObject *", 0, 0, 0};
34409 static swig_type_info _swigt__p_wxVideoMode = {"_p_wxVideoMode", "wxVideoMode *", 0, 0, 0};
34410 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
34411 static swig_type_info _swigt__p_wxWindowDisabler = {"_p_wxWindowDisabler", "wxWindowDisabler *", 0, 0, 0};
34412 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
34413 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
34414 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
34415
34416 static swig_type_info *swig_type_initial[] = {
34417 &_swigt__p_char,
34418 &_swigt__p_form_ops_t,
34419 &_swigt__p_int,
34420 &_swigt__p_unsigned_char,
34421 &_swigt__p_unsigned_int,
34422 &_swigt__p_unsigned_long,
34423 &_swigt__p_void,
34424 &_swigt__p_wxANIHandler,
34425 &_swigt__p_wxAcceleratorTable,
34426 &_swigt__p_wxActivateEvent,
34427 &_swigt__p_wxArrayString,
34428 &_swigt__p_wxBMPHandler,
34429 &_swigt__p_wxBitmap,
34430 &_swigt__p_wxBitmapDataObject,
34431 &_swigt__p_wxBoxSizer,
34432 &_swigt__p_wxBusyCursor,
34433 &_swigt__p_wxBusyInfo,
34434 &_swigt__p_wxCURHandler,
34435 &_swigt__p_wxCaret,
34436 &_swigt__p_wxChar,
34437 &_swigt__p_wxChildFocusEvent,
34438 &_swigt__p_wxClipboard,
34439 &_swigt__p_wxClipboardLocker,
34440 &_swigt__p_wxCloseEvent,
34441 &_swigt__p_wxColour,
34442 &_swigt__p_wxCommandEvent,
34443 &_swigt__p_wxConfig,
34444 &_swigt__p_wxConfigBase,
34445 &_swigt__p_wxConfigPathChanger,
34446 &_swigt__p_wxContextMenuEvent,
34447 &_swigt__p_wxControl,
34448 &_swigt__p_wxControlWithItems,
34449 &_swigt__p_wxCursor,
34450 &_swigt__p_wxCustomDataObject,
34451 &_swigt__p_wxDC,
34452 &_swigt__p_wxDataFormat,
34453 &_swigt__p_wxDataObject,
34454 &_swigt__p_wxDataObjectComposite,
34455 &_swigt__p_wxDataObjectSimple,
34456 &_swigt__p_wxDateEvent,
34457 &_swigt__p_wxDateSpan,
34458 &_swigt__p_wxDateTime,
34459 &_swigt__p_wxDateTime__TimeZone,
34460 &_swigt__p_wxDisplay,
34461 &_swigt__p_wxDisplayChangedEvent,
34462 &_swigt__p_wxDropFilesEvent,
34463 &_swigt__p_wxDuplexMode,
34464 &_swigt__p_wxEraseEvent,
34465 &_swigt__p_wxEvent,
34466 &_swigt__p_wxEvtHandler,
34467 &_swigt__p_wxFSFile,
34468 &_swigt__p_wxFileConfig,
34469 &_swigt__p_wxFileDataObject,
34470 &_swigt__p_wxFileHistory,
34471 &_swigt__p_wxFileSystem,
34472 &_swigt__p_wxFileType,
34473 &_swigt__p_wxFileTypeInfo,
34474 &_swigt__p_wxFlexGridSizer,
34475 &_swigt__p_wxFocusEvent,
34476 &_swigt__p_wxFont,
34477 &_swigt__p_wxFrame,
34478 &_swigt__p_wxGBSizerItem,
34479 &_swigt__p_wxGIFHandler,
34480 &_swigt__p_wxGridBagSizer,
34481 &_swigt__p_wxGridSizer,
34482 &_swigt__p_wxICOHandler,
34483 &_swigt__p_wxIcon,
34484 &_swigt__p_wxIconizeEvent,
34485 &_swigt__p_wxIdleEvent,
34486 &_swigt__p_wxImage,
34487 &_swigt__p_wxImageHandler,
34488 &_swigt__p_wxIndividualLayoutConstraint,
34489 &_swigt__p_wxInitDialogEvent,
34490 &_swigt__p_wxJPEGHandler,
34491 &_swigt__p_wxJoystick,
34492 &_swigt__p_wxJoystickEvent,
34493 &_swigt__p_wxKeyEvent,
34494 &_swigt__p_wxKillError,
34495 &_swigt__p_wxLayoutConstraints,
34496 &_swigt__p_wxLog,
34497 &_swigt__p_wxLogBuffer,
34498 &_swigt__p_wxLogChain,
34499 &_swigt__p_wxLogGui,
34500 &_swigt__p_wxLogNull,
34501 &_swigt__p_wxLogStderr,
34502 &_swigt__p_wxLogTextCtrl,
34503 &_swigt__p_wxLogWindow,
34504 &_swigt__p_wxMaximizeEvent,
34505 &_swigt__p_wxMemorySize,
34506 &_swigt__p_wxMenu,
34507 &_swigt__p_wxMenuBar,
34508 &_swigt__p_wxMenuEvent,
34509 &_swigt__p_wxMenuItem,
34510 &_swigt__p_wxMetafile,
34511 &_swigt__p_wxMetafileDataObject,
34512 &_swigt__p_wxMimeTypesManager,
34513 &_swigt__p_wxMouseCaptureChangedEvent,
34514 &_swigt__p_wxMouseEvent,
34515 &_swigt__p_wxMouseState,
34516 &_swigt__p_wxMoveEvent,
34517 &_swigt__p_wxMutexGuiLocker,
34518 &_swigt__p_wxNavigationKeyEvent,
34519 &_swigt__p_wxNcPaintEvent,
34520 &_swigt__p_wxNotifyEvent,
34521 &_swigt__p_wxObject,
34522 &_swigt__p_wxOutputStream,
34523 &_swigt__p_wxPCXHandler,
34524 &_swigt__p_wxPNGHandler,
34525 &_swigt__p_wxPNMHandler,
34526 &_swigt__p_wxPaintEvent,
34527 &_swigt__p_wxPaletteChangedEvent,
34528 &_swigt__p_wxPaperSize,
34529 &_swigt__p_wxPoint,
34530 &_swigt__p_wxProcessEvent,
34531 &_swigt__p_wxPyApp,
34532 &_swigt__p_wxPyArtProvider,
34533 &_swigt__p_wxPyBitmapDataObject,
34534 &_swigt__p_wxPyCommandEvent,
34535 &_swigt__p_wxPyDataObjectSimple,
34536 &_swigt__p_wxPyDropSource,
34537 &_swigt__p_wxPyDropTarget,
34538 &_swigt__p_wxPyEvent,
34539 &_swigt__p_wxPyFileDropTarget,
34540 &_swigt__p_wxPyImageHandler,
34541 &_swigt__p_wxPyLog,
34542 &_swigt__p_wxPyProcess,
34543 &_swigt__p_wxPySizer,
34544 &_swigt__p_wxPyTextDataObject,
34545 &_swigt__p_wxPyTextDropTarget,
34546 &_swigt__p_wxPyTimer,
34547 &_swigt__p_wxPyTipProvider,
34548 &_swigt__p_wxPyValidator,
34549 &_swigt__p_wxQueryNewPaletteEvent,
34550 &_swigt__p_wxRect,
34551 &_swigt__p_wxScrollEvent,
34552 &_swigt__p_wxScrollWinEvent,
34553 &_swigt__p_wxSetCursorEvent,
34554 &_swigt__p_wxShowEvent,
34555 &_swigt__p_wxSingleInstanceChecker,
34556 &_swigt__p_wxSize,
34557 &_swigt__p_wxSizeEvent,
34558 &_swigt__p_wxSizer,
34559 &_swigt__p_wxSizerItem,
34560 &_swigt__p_wxSound,
34561 &_swigt__p_wxStandardPaths,
34562 &_swigt__p_wxStaticBoxSizer,
34563 &_swigt__p_wxStdDialogButtonSizer,
34564 &_swigt__p_wxStopWatch,
34565 &_swigt__p_wxString,
34566 &_swigt__p_wxSysColourChangedEvent,
34567 &_swigt__p_wxSystemOptions,
34568 &_swigt__p_wxSystemSettings,
34569 &_swigt__p_wxTIFFHandler,
34570 &_swigt__p_wxTextCtrl,
34571 &_swigt__p_wxTextDataObject,
34572 &_swigt__p_wxTimeSpan,
34573 &_swigt__p_wxTimer,
34574 &_swigt__p_wxTimerEvent,
34575 &_swigt__p_wxTimerRunner,
34576 &_swigt__p_wxTipProvider,
34577 &_swigt__p_wxToolTip,
34578 &_swigt__p_wxURLDataObject,
34579 &_swigt__p_wxUpdateUIEvent,
34580 &_swigt__p_wxValidator,
34581 &_swigt__p_wxVideoMode,
34582 &_swigt__p_wxWindow,
34583 &_swigt__p_wxWindowCreateEvent,
34584 &_swigt__p_wxWindowDestroyEvent,
34585 &_swigt__p_wxWindowDisabler,
34586 &_swigt__p_wxXPMHandler,
34587 &_swigt__ptrdiff_t,
34588 &_swigt__std__ptrdiff_t,
34589 &_swigt__unsigned_int,
34590 };
34591
34592 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
34593 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
34594 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
34595 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
34596 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
34597 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
34598 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
34599 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
34600 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
34601 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}};
34602 static swig_cast_info _swigc__p_wxBusyCursor[] = { {&_swigt__p_wxBusyCursor, 0, 0, 0},{0, 0, 0, 0}};
34603 static swig_cast_info _swigc__p_wxBusyInfo[] = { {&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}};
34604 static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
34605 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
34606 static swig_cast_info _swigc__p_wxClipboard[] = { {&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}};
34607 static swig_cast_info _swigc__p_wxClipboardLocker[] = { {&_swigt__p_wxClipboardLocker, 0, 0, 0},{0, 0, 0, 0}};
34608 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
34609 static swig_cast_info _swigc__p_wxConfig[] = { {&_swigt__p_wxConfig, 0, 0, 0},{0, 0, 0, 0}};
34610 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}};
34611 static swig_cast_info _swigc__p_wxConfigPathChanger[] = { {&_swigt__p_wxConfigPathChanger, 0, 0, 0},{0, 0, 0, 0}};
34612 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
34613 static swig_cast_info _swigc__p_wxCustomDataObject[] = { {&_swigt__p_wxCustomDataObject, 0, 0, 0},{0, 0, 0, 0}};
34614 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
34615 static swig_cast_info _swigc__p_wxDataFormat[] = { {&_swigt__p_wxDataFormat, 0, 0, 0},{0, 0, 0, 0}};
34616 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}};
34617 static swig_cast_info _swigc__p_wxDataObjectComposite[] = { {&_swigt__p_wxDataObjectComposite, 0, 0, 0},{0, 0, 0, 0}};
34618 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}};
34619 static swig_cast_info _swigc__p_wxDateSpan[] = { {&_swigt__p_wxDateSpan, 0, 0, 0},{0, 0, 0, 0}};
34620 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
34621 static swig_cast_info _swigc__p_wxDateTime__TimeZone[] = { {&_swigt__p_wxDateTime__TimeZone, 0, 0, 0},{0, 0, 0, 0}};
34622 static swig_cast_info _swigc__p_wxDisplay[] = { {&_swigt__p_wxDisplay, 0, 0, 0},{0, 0, 0, 0}};
34623 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
34624 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
34625 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
34626 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
34627 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
34628 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
34629 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
34630 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
34631 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
34632 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34633 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
34634 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
34635 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
34636 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
34637 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34638 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34639 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
34640 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
34641 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34642 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
34643 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
34644 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
34645 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
34646 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34647 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34648 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34649 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34650 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
34651 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
34652 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
34653 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
34654 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
34655 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
34656 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
34657 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
34658 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
34659 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34660 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}};
34661 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
34662 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
34663 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
34664 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
34665 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
34666 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
34667 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}};
34668 static swig_cast_info _swigc__p_wxFileConfig[] = { {&_swigt__p_wxFileConfig, 0, 0, 0},{0, 0, 0, 0}};
34669 static swig_cast_info _swigc__p_wxFileDataObject[] = { {&_swigt__p_wxFileDataObject, 0, 0, 0},{0, 0, 0, 0}};
34670 static swig_cast_info _swigc__p_wxFileHistory[] = { {&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}};
34671 static swig_cast_info _swigc__p_wxFileType[] = { {&_swigt__p_wxFileType, 0, 0, 0},{0, 0, 0, 0}};
34672 static swig_cast_info _swigc__p_wxFileTypeInfo[] = { {&_swigt__p_wxFileTypeInfo, 0, 0, 0},{0, 0, 0, 0}};
34673 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
34674 static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
34675 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
34676 static swig_cast_info _swigc__p_wxJoystick[] = { {&_swigt__p_wxJoystick, 0, 0, 0},{0, 0, 0, 0}};
34677 static swig_cast_info _swigc__p_wxJoystickEvent[] = { {&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}};
34678 static swig_cast_info _swigc__p_wxKillError[] = { {&_swigt__p_wxKillError, 0, 0, 0},{0, 0, 0, 0}};
34679 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}};
34680 static swig_cast_info _swigc__p_wxLogBuffer[] = { {&_swigt__p_wxLogBuffer, 0, 0, 0},{0, 0, 0, 0}};
34681 static swig_cast_info _swigc__p_wxLogChain[] = { {&_swigt__p_wxLogChain, 0, 0, 0},{0, 0, 0, 0}};
34682 static swig_cast_info _swigc__p_wxLogGui[] = { {&_swigt__p_wxLogGui, 0, 0, 0},{0, 0, 0, 0}};
34683 static swig_cast_info _swigc__p_wxLogNull[] = { {&_swigt__p_wxLogNull, 0, 0, 0},{0, 0, 0, 0}};
34684 static swig_cast_info _swigc__p_wxLogStderr[] = { {&_swigt__p_wxLogStderr, 0, 0, 0},{0, 0, 0, 0}};
34685 static swig_cast_info _swigc__p_wxLogTextCtrl[] = { {&_swigt__p_wxLogTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
34686 static swig_cast_info _swigc__p_wxLogWindow[] = { {&_swigt__p_wxLogWindow, 0, 0, 0},{0, 0, 0, 0}};
34687 static swig_cast_info _swigc__p_wxMemorySize[] = { {&_swigt__p_wxMemorySize, 0, 0, 0},{0, 0, 0, 0}};
34688 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
34689 static swig_cast_info _swigc__p_wxMetafile[] = { {&_swigt__p_wxMetafile, 0, 0, 0},{0, 0, 0, 0}};
34690 static swig_cast_info _swigc__p_wxMetafileDataObject[] = { {&_swigt__p_wxMetafileDataObject, 0, 0, 0},{0, 0, 0, 0}};
34691 static swig_cast_info _swigc__p_wxMimeTypesManager[] = { {&_swigt__p_wxMimeTypesManager, 0, 0, 0},{0, 0, 0, 0}};
34692 static swig_cast_info _swigc__p_wxMouseState[] = { {&_swigt__p_wxMouseState, 0, 0, 0},{0, 0, 0, 0}};
34693 static swig_cast_info _swigc__p_wxMutexGuiLocker[] = { {&_swigt__p_wxMutexGuiLocker, 0, 0, 0},{0, 0, 0, 0}};
34694 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
34695 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34696 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34697 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
34698 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
34699 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
34700 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
34701 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
34702 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
34703 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
34704 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
34705 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
34706 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
34707 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
34708 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
34709 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
34710 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
34711 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
34712 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
34713 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
34714 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
34715 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
34716 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
34717 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
34718 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
34719 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34720 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
34721 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
34722 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
34723 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34724 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}};
34725 static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
34726 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
34727 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
34728 static swig_cast_info _swigc__p_wxProcessEvent[] = { {&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}};
34729 static swig_cast_info _swigc__p_wxPyArtProvider[] = { {&_swigt__p_wxPyArtProvider, 0, 0, 0},{0, 0, 0, 0}};
34730 static swig_cast_info _swigc__p_wxPyBitmapDataObject[] = { {&_swigt__p_wxPyBitmapDataObject, 0, 0, 0},{0, 0, 0, 0}};
34731 static swig_cast_info _swigc__p_wxPyDataObjectSimple[] = { {&_swigt__p_wxPyDataObjectSimple, 0, 0, 0},{0, 0, 0, 0}};
34732 static swig_cast_info _swigc__p_wxPyDropSource[] = { {&_swigt__p_wxPyDropSource, 0, 0, 0},{0, 0, 0, 0}};
34733 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}};
34734 static swig_cast_info _swigc__p_wxPyFileDropTarget[] = { {&_swigt__p_wxPyFileDropTarget, 0, 0, 0},{0, 0, 0, 0}};
34735 static swig_cast_info _swigc__p_wxPyLog[] = { {&_swigt__p_wxPyLog, 0, 0, 0},{0, 0, 0, 0}};
34736 static swig_cast_info _swigc__p_wxPyProcess[] = { {&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}};
34737 static swig_cast_info _swigc__p_wxPyTextDataObject[] = { {&_swigt__p_wxPyTextDataObject, 0, 0, 0},{0, 0, 0, 0}};
34738 static swig_cast_info _swigc__p_wxPyTextDropTarget[] = { {&_swigt__p_wxPyTextDropTarget, 0, 0, 0},{0, 0, 0, 0}};
34739 static swig_cast_info _swigc__p_wxPyTimer[] = { {&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}};
34740 static swig_cast_info _swigc__p_wxPyTipProvider[] = { {&_swigt__p_wxPyTipProvider, 0, 0, 0},{0, 0, 0, 0}};
34741 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
34742 static swig_cast_info _swigc__p_wxSingleInstanceChecker[] = { {&_swigt__p_wxSingleInstanceChecker, 0, 0, 0},{0, 0, 0, 0}};
34743 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
34744 static swig_cast_info _swigc__p_wxSound[] = { {&_swigt__p_wxSound, 0, 0, 0},{0, 0, 0, 0}};
34745 static swig_cast_info _swigc__p_wxStandardPaths[] = { {&_swigt__p_wxStandardPaths, 0, 0, 0},{0, 0, 0, 0}};
34746 static swig_cast_info _swigc__p_wxStopWatch[] = { {&_swigt__p_wxStopWatch, 0, 0, 0},{0, 0, 0, 0}};
34747 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
34748 static swig_cast_info _swigc__p_wxSystemOptions[] = { {&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}};
34749 static swig_cast_info _swigc__p_wxSystemSettings[] = { {&_swigt__p_wxSystemSettings, 0, 0, 0},{0, 0, 0, 0}};
34750 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
34751 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}};
34752 static swig_cast_info _swigc__p_wxTimeSpan[] = { {&_swigt__p_wxTimeSpan, 0, 0, 0},{0, 0, 0, 0}};
34753 static swig_cast_info _swigc__p_wxTimer[] = { {&_swigt__p_wxTimer, 0, 0, 0},{0, 0, 0, 0}};
34754 static swig_cast_info _swigc__p_wxTimerEvent[] = { {&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}};
34755 static swig_cast_info _swigc__p_wxTimerRunner[] = { {&_swigt__p_wxTimerRunner, 0, 0, 0},{0, 0, 0, 0}};
34756 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}};
34757 static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
34758 static swig_cast_info _swigc__p_wxURLDataObject[] = { {&_swigt__p_wxURLDataObject, 0, 0, 0},{0, 0, 0, 0}};
34759 static swig_cast_info _swigc__p_wxVideoMode[] = { {&_swigt__p_wxVideoMode, 0, 0, 0},{0, 0, 0, 0}};
34760 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}};
34761 static swig_cast_info _swigc__p_wxWindowDisabler[] = { {&_swigt__p_wxWindowDisabler, 0, 0, 0},{0, 0, 0, 0}};
34762 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
34763 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
34764 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
34765
34766 static swig_cast_info *swig_cast_initial[] = {
34767 _swigc__p_char,
34768 _swigc__p_form_ops_t,
34769 _swigc__p_int,
34770 _swigc__p_unsigned_char,
34771 _swigc__p_unsigned_int,
34772 _swigc__p_unsigned_long,
34773 _swigc__p_void,
34774 _swigc__p_wxANIHandler,
34775 _swigc__p_wxAcceleratorTable,
34776 _swigc__p_wxActivateEvent,
34777 _swigc__p_wxArrayString,
34778 _swigc__p_wxBMPHandler,
34779 _swigc__p_wxBitmap,
34780 _swigc__p_wxBitmapDataObject,
34781 _swigc__p_wxBoxSizer,
34782 _swigc__p_wxBusyCursor,
34783 _swigc__p_wxBusyInfo,
34784 _swigc__p_wxCURHandler,
34785 _swigc__p_wxCaret,
34786 _swigc__p_wxChar,
34787 _swigc__p_wxChildFocusEvent,
34788 _swigc__p_wxClipboard,
34789 _swigc__p_wxClipboardLocker,
34790 _swigc__p_wxCloseEvent,
34791 _swigc__p_wxColour,
34792 _swigc__p_wxCommandEvent,
34793 _swigc__p_wxConfig,
34794 _swigc__p_wxConfigBase,
34795 _swigc__p_wxConfigPathChanger,
34796 _swigc__p_wxContextMenuEvent,
34797 _swigc__p_wxControl,
34798 _swigc__p_wxControlWithItems,
34799 _swigc__p_wxCursor,
34800 _swigc__p_wxCustomDataObject,
34801 _swigc__p_wxDC,
34802 _swigc__p_wxDataFormat,
34803 _swigc__p_wxDataObject,
34804 _swigc__p_wxDataObjectComposite,
34805 _swigc__p_wxDataObjectSimple,
34806 _swigc__p_wxDateEvent,
34807 _swigc__p_wxDateSpan,
34808 _swigc__p_wxDateTime,
34809 _swigc__p_wxDateTime__TimeZone,
34810 _swigc__p_wxDisplay,
34811 _swigc__p_wxDisplayChangedEvent,
34812 _swigc__p_wxDropFilesEvent,
34813 _swigc__p_wxDuplexMode,
34814 _swigc__p_wxEraseEvent,
34815 _swigc__p_wxEvent,
34816 _swigc__p_wxEvtHandler,
34817 _swigc__p_wxFSFile,
34818 _swigc__p_wxFileConfig,
34819 _swigc__p_wxFileDataObject,
34820 _swigc__p_wxFileHistory,
34821 _swigc__p_wxFileSystem,
34822 _swigc__p_wxFileType,
34823 _swigc__p_wxFileTypeInfo,
34824 _swigc__p_wxFlexGridSizer,
34825 _swigc__p_wxFocusEvent,
34826 _swigc__p_wxFont,
34827 _swigc__p_wxFrame,
34828 _swigc__p_wxGBSizerItem,
34829 _swigc__p_wxGIFHandler,
34830 _swigc__p_wxGridBagSizer,
34831 _swigc__p_wxGridSizer,
34832 _swigc__p_wxICOHandler,
34833 _swigc__p_wxIcon,
34834 _swigc__p_wxIconizeEvent,
34835 _swigc__p_wxIdleEvent,
34836 _swigc__p_wxImage,
34837 _swigc__p_wxImageHandler,
34838 _swigc__p_wxIndividualLayoutConstraint,
34839 _swigc__p_wxInitDialogEvent,
34840 _swigc__p_wxJPEGHandler,
34841 _swigc__p_wxJoystick,
34842 _swigc__p_wxJoystickEvent,
34843 _swigc__p_wxKeyEvent,
34844 _swigc__p_wxKillError,
34845 _swigc__p_wxLayoutConstraints,
34846 _swigc__p_wxLog,
34847 _swigc__p_wxLogBuffer,
34848 _swigc__p_wxLogChain,
34849 _swigc__p_wxLogGui,
34850 _swigc__p_wxLogNull,
34851 _swigc__p_wxLogStderr,
34852 _swigc__p_wxLogTextCtrl,
34853 _swigc__p_wxLogWindow,
34854 _swigc__p_wxMaximizeEvent,
34855 _swigc__p_wxMemorySize,
34856 _swigc__p_wxMenu,
34857 _swigc__p_wxMenuBar,
34858 _swigc__p_wxMenuEvent,
34859 _swigc__p_wxMenuItem,
34860 _swigc__p_wxMetafile,
34861 _swigc__p_wxMetafileDataObject,
34862 _swigc__p_wxMimeTypesManager,
34863 _swigc__p_wxMouseCaptureChangedEvent,
34864 _swigc__p_wxMouseEvent,
34865 _swigc__p_wxMouseState,
34866 _swigc__p_wxMoveEvent,
34867 _swigc__p_wxMutexGuiLocker,
34868 _swigc__p_wxNavigationKeyEvent,
34869 _swigc__p_wxNcPaintEvent,
34870 _swigc__p_wxNotifyEvent,
34871 _swigc__p_wxObject,
34872 _swigc__p_wxOutputStream,
34873 _swigc__p_wxPCXHandler,
34874 _swigc__p_wxPNGHandler,
34875 _swigc__p_wxPNMHandler,
34876 _swigc__p_wxPaintEvent,
34877 _swigc__p_wxPaletteChangedEvent,
34878 _swigc__p_wxPaperSize,
34879 _swigc__p_wxPoint,
34880 _swigc__p_wxProcessEvent,
34881 _swigc__p_wxPyApp,
34882 _swigc__p_wxPyArtProvider,
34883 _swigc__p_wxPyBitmapDataObject,
34884 _swigc__p_wxPyCommandEvent,
34885 _swigc__p_wxPyDataObjectSimple,
34886 _swigc__p_wxPyDropSource,
34887 _swigc__p_wxPyDropTarget,
34888 _swigc__p_wxPyEvent,
34889 _swigc__p_wxPyFileDropTarget,
34890 _swigc__p_wxPyImageHandler,
34891 _swigc__p_wxPyLog,
34892 _swigc__p_wxPyProcess,
34893 _swigc__p_wxPySizer,
34894 _swigc__p_wxPyTextDataObject,
34895 _swigc__p_wxPyTextDropTarget,
34896 _swigc__p_wxPyTimer,
34897 _swigc__p_wxPyTipProvider,
34898 _swigc__p_wxPyValidator,
34899 _swigc__p_wxQueryNewPaletteEvent,
34900 _swigc__p_wxRect,
34901 _swigc__p_wxScrollEvent,
34902 _swigc__p_wxScrollWinEvent,
34903 _swigc__p_wxSetCursorEvent,
34904 _swigc__p_wxShowEvent,
34905 _swigc__p_wxSingleInstanceChecker,
34906 _swigc__p_wxSize,
34907 _swigc__p_wxSizeEvent,
34908 _swigc__p_wxSizer,
34909 _swigc__p_wxSizerItem,
34910 _swigc__p_wxSound,
34911 _swigc__p_wxStandardPaths,
34912 _swigc__p_wxStaticBoxSizer,
34913 _swigc__p_wxStdDialogButtonSizer,
34914 _swigc__p_wxStopWatch,
34915 _swigc__p_wxString,
34916 _swigc__p_wxSysColourChangedEvent,
34917 _swigc__p_wxSystemOptions,
34918 _swigc__p_wxSystemSettings,
34919 _swigc__p_wxTIFFHandler,
34920 _swigc__p_wxTextCtrl,
34921 _swigc__p_wxTextDataObject,
34922 _swigc__p_wxTimeSpan,
34923 _swigc__p_wxTimer,
34924 _swigc__p_wxTimerEvent,
34925 _swigc__p_wxTimerRunner,
34926 _swigc__p_wxTipProvider,
34927 _swigc__p_wxToolTip,
34928 _swigc__p_wxURLDataObject,
34929 _swigc__p_wxUpdateUIEvent,
34930 _swigc__p_wxValidator,
34931 _swigc__p_wxVideoMode,
34932 _swigc__p_wxWindow,
34933 _swigc__p_wxWindowCreateEvent,
34934 _swigc__p_wxWindowDestroyEvent,
34935 _swigc__p_wxWindowDisabler,
34936 _swigc__p_wxXPMHandler,
34937 _swigc__ptrdiff_t,
34938 _swigc__std__ptrdiff_t,
34939 _swigc__unsigned_int,
34940 };
34941
34942
34943 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
34944
34945 static swig_const_info swig_const_table[] = {
34946 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
34947 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
34948 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
34949 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
34950 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
34951 {0, 0, 0, 0.0, 0, 0}};
34952
34953 #ifdef __cplusplus
34954 }
34955 #endif
34956 /*************************************************************************
34957 * Type initialization:
34958 * This problem is tough by the requirement that no dynamic
34959 * memory is used. Also, since swig_type_info structures store pointers to
34960 * swig_cast_info structures and swig_cast_info structures store pointers back
34961 * to swig_type_info structures, we need some lookup code at initialization.
34962 * The idea is that swig generates all the structures that are needed.
34963 * The runtime then collects these partially filled structures.
34964 * The SWIG_InitializeModule function takes these initial arrays out of
34965 * swig_module, and does all the lookup, filling in the swig_module.types
34966 * array with the correct data and linking the correct swig_cast_info
34967 * structures together.
34968
34969 * The generated swig_type_info structures are assigned staticly to an initial
34970 * array. We just loop though that array, and handle each type individually.
34971 * First we lookup if this type has been already loaded, and if so, use the
34972 * loaded structure instead of the generated one. Then we have to fill in the
34973 * cast linked list. The cast data is initially stored in something like a
34974 * two-dimensional array. Each row corresponds to a type (there are the same
34975 * number of rows as there are in the swig_type_initial array). Each entry in
34976 * a column is one of the swig_cast_info structures for that type.
34977 * The cast_initial array is actually an array of arrays, because each row has
34978 * a variable number of columns. So to actually build the cast linked list,
34979 * we find the array of casts associated with the type, and loop through it
34980 * adding the casts to the list. The one last trick we need to do is making
34981 * sure the type pointer in the swig_cast_info struct is correct.
34982
34983 * First off, we lookup the cast->type name to see if it is already loaded.
34984 * There are three cases to handle:
34985 * 1) If the cast->type has already been loaded AND the type we are adding
34986 * casting info to has not been loaded (it is in this module), THEN we
34987 * replace the cast->type pointer with the type pointer that has already
34988 * been loaded.
34989 * 2) If BOTH types (the one we are adding casting info to, and the
34990 * cast->type) are loaded, THEN the cast info has already been loaded by
34991 * the previous module so we just ignore it.
34992 * 3) Finally, if cast->type has not already been loaded, then we add that
34993 * swig_cast_info to the linked list (because the cast->type) pointer will
34994 * be correct.
34995 **/
34996
34997 #ifdef __cplusplus
34998 extern "C" {
34999 #if 0
35000 } /* c-mode */
35001 #endif
35002 #endif
35003
35004 #if 0
35005 #define SWIGRUNTIME_DEBUG
35006 #endif
35007
35008 SWIGRUNTIME void
35009 SWIG_InitializeModule(void *clientdata) {
35010 size_t i;
35011 swig_module_info *module_head;
35012 static int init_run = 0;
35013
35014 clientdata = clientdata;
35015
35016 if (init_run) return;
35017 init_run = 1;
35018
35019 /* Initialize the swig_module */
35020 swig_module.type_initial = swig_type_initial;
35021 swig_module.cast_initial = swig_cast_initial;
35022
35023 /* Try and load any already created modules */
35024 module_head = SWIG_GetModule(clientdata);
35025 if (module_head) {
35026 swig_module.next = module_head->next;
35027 module_head->next = &swig_module;
35028 } else {
35029 /* This is the first module loaded */
35030 swig_module.next = &swig_module;
35031 SWIG_SetModule(clientdata, &swig_module);
35032 }
35033
35034 /* Now work on filling in swig_module.types */
35035 #ifdef SWIGRUNTIME_DEBUG
35036 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
35037 #endif
35038 for (i = 0; i < swig_module.size; ++i) {
35039 swig_type_info *type = 0;
35040 swig_type_info *ret;
35041 swig_cast_info *cast;
35042
35043 #ifdef SWIGRUNTIME_DEBUG
35044 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
35045 #endif
35046
35047 /* if there is another module already loaded */
35048 if (swig_module.next != &swig_module) {
35049 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
35050 }
35051 if (type) {
35052 /* Overwrite clientdata field */
35053 #ifdef SWIGRUNTIME_DEBUG
35054 printf("SWIG_InitializeModule: found type %s\n", type->name);
35055 #endif
35056 if (swig_module.type_initial[i]->clientdata) {
35057 type->clientdata = swig_module.type_initial[i]->clientdata;
35058 #ifdef SWIGRUNTIME_DEBUG
35059 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
35060 #endif
35061 }
35062 } else {
35063 type = swig_module.type_initial[i];
35064 }
35065
35066 /* Insert casting types */
35067 cast = swig_module.cast_initial[i];
35068 while (cast->type) {
35069 /* Don't need to add information already in the list */
35070 ret = 0;
35071 #ifdef SWIGRUNTIME_DEBUG
35072 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
35073 #endif
35074 if (swig_module.next != &swig_module) {
35075 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
35076 #ifdef SWIGRUNTIME_DEBUG
35077 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
35078 #endif
35079 }
35080 if (ret) {
35081 if (type == swig_module.type_initial[i]) {
35082 #ifdef SWIGRUNTIME_DEBUG
35083 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
35084 #endif
35085 cast->type = ret;
35086 ret = 0;
35087 } else {
35088 /* Check for casting already in the list */
35089 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
35090 #ifdef SWIGRUNTIME_DEBUG
35091 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
35092 #endif
35093 if (!ocast) ret = 0;
35094 }
35095 }
35096
35097 if (!ret) {
35098 #ifdef SWIGRUNTIME_DEBUG
35099 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
35100 #endif
35101 if (type->cast) {
35102 type->cast->prev = cast;
35103 cast->next = type->cast;
35104 }
35105 type->cast = cast;
35106 }
35107 cast++;
35108 }
35109 /* Set entry in modules->types array equal to the type */
35110 swig_module.types[i] = type;
35111 }
35112 swig_module.types[i] = 0;
35113
35114 #ifdef SWIGRUNTIME_DEBUG
35115 printf("**** SWIG_InitializeModule: Cast List ******\n");
35116 for (i = 0; i < swig_module.size; ++i) {
35117 int j = 0;
35118 swig_cast_info *cast = swig_module.cast_initial[i];
35119 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
35120 while (cast->type) {
35121 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
35122 cast++;
35123 ++j;
35124 }
35125 printf("---- Total casts: %d\n",j);
35126 }
35127 printf("**** SWIG_InitializeModule: Cast List ******\n");
35128 #endif
35129 }
35130
35131 /* This function will propagate the clientdata field of type to
35132 * any new swig_type_info structures that have been added into the list
35133 * of equivalent types. It is like calling
35134 * SWIG_TypeClientData(type, clientdata) a second time.
35135 */
35136 SWIGRUNTIME void
35137 SWIG_PropagateClientData(void) {
35138 size_t i;
35139 swig_cast_info *equiv;
35140 static int init_run = 0;
35141
35142 if (init_run) return;
35143 init_run = 1;
35144
35145 for (i = 0; i < swig_module.size; i++) {
35146 if (swig_module.types[i]->clientdata) {
35147 equiv = swig_module.types[i]->cast;
35148 while (equiv) {
35149 if (!equiv->converter) {
35150 if (equiv->type && !equiv->type->clientdata)
35151 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
35152 }
35153 equiv = equiv->next;
35154 }
35155 }
35156 }
35157 }
35158
35159 #ifdef __cplusplus
35160 #if 0
35161 {
35162 /* c-mode */
35163 #endif
35164 }
35165 #endif
35166
35167
35168
35169 #ifdef __cplusplus
35170 extern "C" {
35171 #endif
35172
35173 /* Python-specific SWIG API */
35174 #define SWIG_newvarlink() SWIG_Python_newvarlink()
35175 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
35176 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
35177
35178 /* -----------------------------------------------------------------------------
35179 * global variable support code.
35180 * ----------------------------------------------------------------------------- */
35181
35182 typedef struct swig_globalvar {
35183 char *name; /* Name of global variable */
35184 PyObject *(*get_attr)(void); /* Return the current value */
35185 int (*set_attr)(PyObject *); /* Set the value */
35186 struct swig_globalvar *next;
35187 } swig_globalvar;
35188
35189 typedef struct swig_varlinkobject {
35190 PyObject_HEAD
35191 swig_globalvar *vars;
35192 } swig_varlinkobject;
35193
35194 SWIGINTERN PyObject *
35195 swig_varlink_repr(swig_varlinkobject *v) {
35196 v = v;
35197 return PyString_FromString("<Swig global variables>");
35198 }
35199
35200 SWIGINTERN int
35201 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
35202 swig_globalvar *var;
35203 flags = flags;
35204 fprintf(fp,"Swig global variables { ");
35205 for (var = v->vars; var; var=var->next) {
35206 fprintf(fp,"%s", var->name);
35207 if (var->next) fprintf(fp,", ");
35208 }
35209 fprintf(fp," }\n");
35210 return 0;
35211 }
35212
35213 SWIGINTERN PyObject *
35214 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
35215 swig_globalvar *var = v->vars;
35216 while (var) {
35217 if (strcmp(var->name,n) == 0) {
35218 return (*var->get_attr)();
35219 }
35220 var = var->next;
35221 }
35222 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
35223 return NULL;
35224 }
35225
35226 SWIGINTERN int
35227 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
35228 swig_globalvar *var = v->vars;
35229 while (var) {
35230 if (strcmp(var->name,n) == 0) {
35231 return (*var->set_attr)(p);
35232 }
35233 var = var->next;
35234 }
35235 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
35236 return 1;
35237 }
35238
35239 SWIGINTERN PyTypeObject*
35240 swig_varlink_type(void) {
35241 static char varlink__doc__[] = "Swig var link object";
35242 static PyTypeObject varlink_type
35243 #if !defined(__cplusplus)
35244 ;
35245 static int type_init = 0;
35246 if (!type_init) {
35247 PyTypeObject tmp
35248 #endif
35249 = {
35250 PyObject_HEAD_INIT(&PyType_Type)
35251 0, /* Number of items in variable part (ob_size) */
35252 (char *)"swigvarlink", /* Type name (tp_name) */
35253 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
35254 0, /* Itemsize (tp_itemsize) */
35255 0, /* Deallocator (tp_dealloc) */
35256 (printfunc) swig_varlink_print, /* Print (tp_print) */
35257 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
35258 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
35259 0, /* tp_compare */
35260 (reprfunc) swig_varlink_repr, /* tp_repr */
35261 0, /* tp_as_number */
35262 0, /* tp_as_sequence */
35263 0, /* tp_as_mapping */
35264 0, /* tp_hash */
35265 0, /* tp_call */
35266 0, /* tp_str */
35267 0, /* tp_getattro */
35268 0, /* tp_setattro */
35269 0, /* tp_as_buffer */
35270 0, /* tp_flags */
35271 varlink__doc__, /* tp_doc */
35272 #if PY_VERSION_HEX >= 0x02000000
35273 0, /* tp_traverse */
35274 0, /* tp_clear */
35275 #endif
35276 #if PY_VERSION_HEX >= 0x02010000
35277 0, /* tp_richcompare */
35278 0, /* tp_weaklistoffset */
35279 #endif
35280 #if PY_VERSION_HEX >= 0x02020000
35281 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
35282 #endif
35283 #if PY_VERSION_HEX >= 0x02030000
35284 0, /* tp_del */
35285 #endif
35286 #ifdef COUNT_ALLOCS
35287 0,0,0,0 /* tp_alloc -> tp_next */
35288 #endif
35289 };
35290 #if !defined(__cplusplus)
35291 varlink_type = tmp;
35292 type_init = 1;
35293 }
35294 #endif
35295 return &varlink_type;
35296 }
35297
35298 /* Create a variable linking object for use later */
35299 SWIGINTERN PyObject *
35300 SWIG_Python_newvarlink(void) {
35301 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
35302 if (result) {
35303 result->vars = 0;
35304 }
35305 return ((PyObject*) result);
35306 }
35307
35308 SWIGINTERN void
35309 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
35310 swig_varlinkobject *v = (swig_varlinkobject *) p;
35311 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
35312 if (gv) {
35313 size_t size = strlen(name)+1;
35314 gv->name = (char *)malloc(size);
35315 if (gv->name) {
35316 strncpy(gv->name,name,size);
35317 gv->get_attr = get_attr;
35318 gv->set_attr = set_attr;
35319 gv->next = v->vars;
35320 }
35321 }
35322 v->vars = gv;
35323 }
35324
35325 /* -----------------------------------------------------------------------------
35326 * constants/methods manipulation
35327 * ----------------------------------------------------------------------------- */
35328
35329 /* Install Constants */
35330 SWIGINTERN void
35331 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
35332 PyObject *obj = 0;
35333 size_t i;
35334 for (i = 0; constants[i].type; ++i) {
35335 switch(constants[i].type) {
35336 case SWIG_PY_INT:
35337 obj = PyInt_FromLong(constants[i].lvalue);
35338 break;
35339 case SWIG_PY_FLOAT:
35340 obj = PyFloat_FromDouble(constants[i].dvalue);
35341 break;
35342 case SWIG_PY_STRING:
35343 if (constants[i].pvalue) {
35344 obj = PyString_FromString((char *) constants[i].pvalue);
35345 } else {
35346 Py_INCREF(Py_None);
35347 obj = Py_None;
35348 }
35349 break;
35350 case SWIG_PY_POINTER:
35351 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
35352 break;
35353 case SWIG_PY_BINARY:
35354 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
35355 break;
35356 default:
35357 obj = 0;
35358 break;
35359 }
35360 if (obj) {
35361 PyDict_SetItemString(d,constants[i].name,obj);
35362 Py_DECREF(obj);
35363 }
35364 }
35365 }
35366
35367 /* -----------------------------------------------------------------------------*/
35368 /* Fix SwigMethods to carry the callback ptrs when needed */
35369 /* -----------------------------------------------------------------------------*/
35370
35371 SWIGINTERN void
35372 SWIG_Python_FixMethods(PyMethodDef *methods,
35373 swig_const_info *const_table,
35374 swig_type_info **types,
35375 swig_type_info **types_initial) {
35376 size_t i;
35377 for (i = 0; methods[i].ml_name; ++i) {
35378 char *c = methods[i].ml_doc;
35379 if (c && (c = strstr(c, "swig_ptr: "))) {
35380 int j;
35381 swig_const_info *ci = 0;
35382 char *name = c + 10;
35383 for (j = 0; const_table[j].type; ++j) {
35384 if (strncmp(const_table[j].name, name,
35385 strlen(const_table[j].name)) == 0) {
35386 ci = &(const_table[j]);
35387 break;
35388 }
35389 }
35390 if (ci) {
35391 size_t shift = (ci->ptype) - types;
35392 swig_type_info *ty = types_initial[shift];
35393 size_t ldoc = (c - methods[i].ml_doc);
35394 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
35395 char *ndoc = (char*)malloc(ldoc + lptr + 10);
35396 if (ndoc) {
35397 char *buff = ndoc;
35398 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
35399 if (ptr) {
35400 strncpy(buff, methods[i].ml_doc, ldoc);
35401 buff += ldoc;
35402 strncpy(buff, "swig_ptr: ", 10);
35403 buff += 10;
35404 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
35405 methods[i].ml_doc = ndoc;
35406 }
35407 }
35408 }
35409 }
35410 }
35411 }
35412
35413 /* -----------------------------------------------------------------------------*
35414 * Initialize type list
35415 * -----------------------------------------------------------------------------*/
35416
35417 #ifdef __cplusplus
35418 }
35419 #endif
35420
35421 /* -----------------------------------------------------------------------------*
35422 * Partial Init method
35423 * -----------------------------------------------------------------------------*/
35424
35425 #ifdef __cplusplus
35426 extern "C"
35427 #endif
35428 SWIGEXPORT void SWIG_init(void) {
35429 static PyObject *SWIG_globals = 0;
35430 PyObject *m, *d;
35431 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
35432
35433 /* Fix SwigMethods to carry the callback ptrs when needed */
35434 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
35435
35436 m = Py_InitModule((char *) SWIG_name, SwigMethods);
35437 d = PyModule_GetDict(m);
35438
35439 SWIG_InitializeModule(0);
35440 SWIG_InstallConstants(d,swig_const_table);
35441
35442 {
35443 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_OEM_FIXED_FONT)));
35444 }
35445 {
35446 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_FIXED_FONT)));
35447 }
35448 {
35449 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_VAR_FONT)));
35450 }
35451 {
35452 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FONT)));
35453 }
35454 {
35455 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEVICE_DEFAULT_FONT)));
35456 }
35457 {
35458 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_PALETTE)));
35459 }
35460 {
35461 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FIXED_FONT)));
35462 }
35463 {
35464 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_GUI_FONT)));
35465 }
35466 {
35467 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int(static_cast<int >(wxSYS_ICONTITLE_FONT)));
35468 }
35469 {
35470 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_SCROLLBAR)));
35471 }
35472 {
35473 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BACKGROUND)));
35474 }
35475 {
35476 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_DESKTOP)));
35477 }
35478 {
35479 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVECAPTION)));
35480 }
35481 {
35482 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTION)));
35483 }
35484 {
35485 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENU)));
35486 }
35487 {
35488 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOW)));
35489 }
35490 {
35491 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWFRAME)));
35492 }
35493 {
35494 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUTEXT)));
35495 }
35496 {
35497 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWTEXT)));
35498 }
35499 {
35500 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_CAPTIONTEXT)));
35501 }
35502 {
35503 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVEBORDER)));
35504 }
35505 {
35506 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVEBORDER)));
35507 }
35508 {
35509 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_APPWORKSPACE)));
35510 }
35511 {
35512 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHT)));
35513 }
35514 {
35515 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHTTEXT)));
35516 }
35517 {
35518 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNFACE)));
35519 }
35520 {
35521 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DFACE)));
35522 }
35523 {
35524 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNSHADOW)));
35525 }
35526 {
35527 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DSHADOW)));
35528 }
35529 {
35530 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRAYTEXT)));
35531 }
35532 {
35533 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNTEXT)));
35534 }
35535 {
35536 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTIONTEXT)));
35537 }
35538 {
35539 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHIGHLIGHT)));
35540 }
35541 {
35542 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHILIGHT)));
35543 }
35544 {
35545 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHIGHLIGHT)));
35546 }
35547 {
35548 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHILIGHT)));
35549 }
35550 {
35551 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DDKSHADOW)));
35552 }
35553 {
35554 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DLIGHT)));
35555 }
35556 {
35557 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOTEXT)));
35558 }
35559 {
35560 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOBK)));
35561 }
35562 {
35563 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_LISTBOX)));
35564 }
35565 {
35566 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HOTLIGHT)));
35567 }
35568 {
35569 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTACTIVECAPTION)));
35570 }
35571 {
35572 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTINACTIVECAPTION)));
35573 }
35574 {
35575 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUHILIGHT)));
35576 }
35577 {
35578 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUBAR)));
35579 }
35580 {
35581 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MAX)));
35582 }
35583 {
35584 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_MOUSE_BUTTONS)));
35585 }
35586 {
35587 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int(static_cast<int >(wxSYS_BORDER_X)));
35588 }
35589 {
35590 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int(static_cast<int >(wxSYS_BORDER_Y)));
35591 }
35592 {
35593 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_X)));
35594 }
35595 {
35596 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_Y)));
35597 }
35598 {
35599 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_X)));
35600 }
35601 {
35602 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_Y)));
35603 }
35604 {
35605 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int(static_cast<int >(wxSYS_DRAG_X)));
35606 }
35607 {
35608 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int(static_cast<int >(wxSYS_DRAG_Y)));
35609 }
35610 {
35611 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int(static_cast<int >(wxSYS_EDGE_X)));
35612 }
35613 {
35614 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int(static_cast<int >(wxSYS_EDGE_Y)));
35615 }
35616 {
35617 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_X)));
35618 }
35619 {
35620 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_Y)));
35621 }
35622 {
35623 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int(static_cast<int >(wxSYS_HTHUMB_X)));
35624 }
35625 {
35626 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int(static_cast<int >(wxSYS_ICON_X)));
35627 }
35628 {
35629 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int(static_cast<int >(wxSYS_ICON_Y)));
35630 }
35631 {
35632 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_X)));
35633 }
35634 {
35635 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_Y)));
35636 }
35637 {
35638 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_X)));
35639 }
35640 {
35641 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_Y)));
35642 }
35643 {
35644 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_X)));
35645 }
35646 {
35647 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_Y)));
35648 }
35649 {
35650 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_X)));
35651 }
35652 {
35653 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_Y)));
35654 }
35655 {
35656 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_X)));
35657 }
35658 {
35659 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_Y)));
35660 }
35661 {
35662 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_Y)));
35663 }
35664 {
35665 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_X)));
35666 }
35667 {
35668 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_X)));
35669 }
35670 {
35671 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_Y)));
35672 }
35673 {
35674 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int(static_cast<int >(wxSYS_VTHUMB_Y)));
35675 }
35676 {
35677 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int(static_cast<int >(wxSYS_CAPTION_Y)));
35678 }
35679 {
35680 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int(static_cast<int >(wxSYS_MENU_Y)));
35681 }
35682 {
35683 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_NETWORK_PRESENT)));
35684 }
35685 {
35686 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_PENWINDOWS_PRESENT)));
35687 }
35688 {
35689 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int(static_cast<int >(wxSYS_SHOW_SOUNDS)));
35690 }
35691 {
35692 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_SWAP_BUTTONS)));
35693 }
35694 {
35695 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int(static_cast<int >(wxSYS_CAN_DRAW_FRAME_DECORATIONS)));
35696 }
35697 {
35698 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int(static_cast<int >(wxSYS_CAN_ICONIZE_FRAME)));
35699 }
35700 {
35701 PyDict_SetItemString(d,"SYS_TABLET_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_TABLET_PRESENT)));
35702 }
35703 {
35704 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_NONE)));
35705 }
35706 {
35707 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_TINY)));
35708 }
35709 {
35710 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_PDA)));
35711 }
35712 {
35713 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_SMALL)));
35714 }
35715 {
35716 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_DESKTOP)));
35717 }
35718 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
35719 SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set);
35720 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
35721 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
35722 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
35723 {
35724 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int(static_cast<int >(wxSHUTDOWN_POWEROFF)));
35725 }
35726 {
35727 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int(static_cast<int >(wxSHUTDOWN_REBOOT)));
35728 }
35729 {
35730 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int(static_cast<int >(wxTIMER_CONTINUOUS)));
35731 }
35732 {
35733 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int(static_cast<int >(wxTIMER_ONE_SHOT)));
35734 }
35735 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
35736
35737 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
35738
35739 {
35740 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int(static_cast<int >(wxLOG_FatalError)));
35741 }
35742 {
35743 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int(static_cast<int >(wxLOG_Error)));
35744 }
35745 {
35746 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int(static_cast<int >(wxLOG_Warning)));
35747 }
35748 {
35749 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int(static_cast<int >(wxLOG_Message)));
35750 }
35751 {
35752 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int(static_cast<int >(wxLOG_Status)));
35753 }
35754 {
35755 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int(static_cast<int >(wxLOG_Info)));
35756 }
35757 {
35758 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int(static_cast<int >(wxLOG_Debug)));
35759 }
35760 {
35761 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int(static_cast<int >(wxLOG_Trace)));
35762 }
35763 {
35764 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int(static_cast<int >(wxLOG_Progress)));
35765 }
35766 {
35767 PyDict_SetItemString(d,"LOG_User", SWIG_From_int(static_cast<int >(wxLOG_User)));
35768 }
35769 {
35770 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int(static_cast<int >(wxLOG_Max)));
35771 }
35772 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
35773 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
35774 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
35775 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
35776 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
35777 {
35778 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int(static_cast<int >(0x0001)));
35779 }
35780 {
35781 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int(static_cast<int >(0x0002)));
35782 }
35783 {
35784 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int(static_cast<int >(0x0004)));
35785 }
35786 {
35787 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int(static_cast<int >(0x0008)));
35788 }
35789 {
35790 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int(static_cast<int >(0x0100)));
35791 }
35792 {
35793 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int(static_cast<int >(wxPROCESS_DEFAULT)));
35794 }
35795 {
35796 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int(static_cast<int >(wxPROCESS_REDIRECT)));
35797 }
35798 {
35799 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int(static_cast<int >(wxKILL_OK)));
35800 }
35801 {
35802 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int(static_cast<int >(wxKILL_BAD_SIGNAL)));
35803 }
35804 {
35805 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int(static_cast<int >(wxKILL_ACCESS_DENIED)));
35806 }
35807 {
35808 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int(static_cast<int >(wxKILL_NO_PROCESS)));
35809 }
35810 {
35811 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int(static_cast<int >(wxKILL_ERROR)));
35812 }
35813 {
35814 PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int(static_cast<int >(wxKILL_NOCHILDREN)));
35815 }
35816 {
35817 PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int(static_cast<int >(wxKILL_CHILDREN)));
35818 }
35819 {
35820 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int(static_cast<int >(wxSIGNONE)));
35821 }
35822 {
35823 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int(static_cast<int >(wxSIGHUP)));
35824 }
35825 {
35826 PyDict_SetItemString(d,"SIGINT", SWIG_From_int(static_cast<int >(wxSIGINT)));
35827 }
35828 {
35829 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int(static_cast<int >(wxSIGQUIT)));
35830 }
35831 {
35832 PyDict_SetItemString(d,"SIGILL", SWIG_From_int(static_cast<int >(wxSIGILL)));
35833 }
35834 {
35835 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int(static_cast<int >(wxSIGTRAP)));
35836 }
35837 {
35838 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int(static_cast<int >(wxSIGABRT)));
35839 }
35840 {
35841 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int(static_cast<int >(wxSIGIOT)));
35842 }
35843 {
35844 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int(static_cast<int >(wxSIGEMT)));
35845 }
35846 {
35847 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int(static_cast<int >(wxSIGFPE)));
35848 }
35849 {
35850 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int(static_cast<int >(wxSIGKILL)));
35851 }
35852 {
35853 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int(static_cast<int >(wxSIGBUS)));
35854 }
35855 {
35856 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int(static_cast<int >(wxSIGSEGV)));
35857 }
35858 {
35859 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int(static_cast<int >(wxSIGSYS)));
35860 }
35861 {
35862 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int(static_cast<int >(wxSIGPIPE)));
35863 }
35864 {
35865 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int(static_cast<int >(wxSIGALRM)));
35866 }
35867 {
35868 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int(static_cast<int >(wxSIGTERM)));
35869 }
35870 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
35871 {
35872 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int(static_cast<int >(wxEXEC_ASYNC)));
35873 }
35874 {
35875 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int(static_cast<int >(wxEXEC_SYNC)));
35876 }
35877 {
35878 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int(static_cast<int >(wxEXEC_NOHIDE)));
35879 }
35880 {
35881 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int(static_cast<int >(wxEXEC_MAKE_GROUP_LEADER)));
35882 }
35883 {
35884 PyDict_SetItemString(d,"EXEC_NODISABLE", SWIG_From_int(static_cast<int >(wxEXEC_NODISABLE)));
35885 }
35886
35887 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
35888
35889 {
35890 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int(static_cast<int >(wxJOYSTICK1)));
35891 }
35892 {
35893 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int(static_cast<int >(wxJOYSTICK2)));
35894 }
35895 {
35896 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int(static_cast<int >(wxJOY_BUTTON_ANY)));
35897 }
35898 {
35899 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int(static_cast<int >(wxJOY_BUTTON1)));
35900 }
35901 {
35902 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int(static_cast<int >(wxJOY_BUTTON2)));
35903 }
35904 {
35905 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int(static_cast<int >(wxJOY_BUTTON3)));
35906 }
35907 {
35908 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int(static_cast<int >(wxJOY_BUTTON4)));
35909 }
35910 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
35911 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
35912 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
35913 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
35914 {
35915 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int(static_cast<int >(wxSOUND_SYNC)));
35916 }
35917 {
35918 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int(static_cast<int >(wxSOUND_ASYNC)));
35919 }
35920 {
35921 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int(static_cast<int >(wxSOUND_LOOP)));
35922 }
35923 {
35924 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int(static_cast<int >(wxMAILCAP_STANDARD)));
35925 }
35926 {
35927 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int(static_cast<int >(wxMAILCAP_NETSCAPE)));
35928 }
35929 {
35930 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int(static_cast<int >(wxMAILCAP_KDE)));
35931 }
35932 {
35933 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int(static_cast<int >(wxMAILCAP_GNOME)));
35934 }
35935 {
35936 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int(static_cast<int >(wxMAILCAP_ALL)));
35937 }
35938 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
35939 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
35940 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
35941 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
35942 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
35943 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
35944 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
35945 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
35946 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
35947 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
35948 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
35949 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
35950 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
35951 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
35952 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
35953 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
35954 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
35955 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
35956 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
35957 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
35958 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
35959 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
35960 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
35961 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE",_wrap_ART_FILE_SAVE_get, _wrap_ART_FILE_SAVE_set);
35962 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE_AS",_wrap_ART_FILE_SAVE_AS_get, _wrap_ART_FILE_SAVE_AS_set);
35963 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
35964 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
35965 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
35966 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
35967 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
35968 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
35969 SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set);
35970 SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set);
35971 SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set);
35972 SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set);
35973 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
35974 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set);
35975 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
35976 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
35977 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
35978 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
35979 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
35980 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
35981 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
35982 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
35983 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
35984 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
35985 SWIG_addvarlink(SWIG_globals,(char*)"ART_COPY",_wrap_ART_COPY_get, _wrap_ART_COPY_set);
35986 SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set);
35987 SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set);
35988 SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set);
35989 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW",_wrap_ART_NEW_get, _wrap_ART_NEW_set);
35990 SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set);
35991 SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set);
35992 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set);
35993 SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND",_wrap_ART_FIND_get, _wrap_ART_FIND_set);
35994 SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND_AND_REPLACE",_wrap_ART_FIND_AND_REPLACE_get, _wrap_ART_FIND_AND_REPLACE_set);
35995
35996 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
35997
35998 {
35999 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_LOCAL_FILE)));
36000 }
36001 {
36002 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_GLOBAL_FILE)));
36003 }
36004 {
36005 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int(static_cast<int >(wxCONFIG_USE_RELATIVE_PATH)));
36006 }
36007 {
36008 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int(static_cast<int >(wxCONFIG_USE_NO_ESCAPE_CHARACTERS)));
36009 }
36010 {
36011 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Unknown)));
36012 }
36013 {
36014 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int(static_cast<int >(wxConfigBase::Type_String)));
36015 }
36016 {
36017 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Boolean)));
36018 }
36019 {
36020 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Integer)));
36021 }
36022 {
36023 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Float)));
36024 }
36025 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTimeFormat",_wrap_DefaultDateTimeFormat_get, _wrap_DefaultDateTimeFormat_set);
36026 SWIG_addvarlink(SWIG_globals,(char*)"DefaultTimeSpanFormat",_wrap_DefaultTimeSpanFormat_get, _wrap_DefaultTimeSpanFormat_set);
36027 {
36028 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int(static_cast<int >(wxDateTime::Local)));
36029 }
36030 {
36031 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int(static_cast<int >(wxDateTime::GMT_12)));
36032 }
36033 {
36034 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int(static_cast<int >(wxDateTime::GMT_11)));
36035 }
36036 {
36037 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int(static_cast<int >(wxDateTime::GMT_10)));
36038 }
36039 {
36040 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int(static_cast<int >(wxDateTime::GMT_9)));
36041 }
36042 {
36043 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int(static_cast<int >(wxDateTime::GMT_8)));
36044 }
36045 {
36046 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int(static_cast<int >(wxDateTime::GMT_7)));
36047 }
36048 {
36049 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int(static_cast<int >(wxDateTime::GMT_6)));
36050 }
36051 {
36052 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int(static_cast<int >(wxDateTime::GMT_5)));
36053 }
36054 {
36055 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int(static_cast<int >(wxDateTime::GMT_4)));
36056 }
36057 {
36058 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int(static_cast<int >(wxDateTime::GMT_3)));
36059 }
36060 {
36061 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int(static_cast<int >(wxDateTime::GMT_2)));
36062 }
36063 {
36064 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int(static_cast<int >(wxDateTime::GMT_1)));
36065 }
36066 {
36067 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int(static_cast<int >(wxDateTime::GMT0)));
36068 }
36069 {
36070 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int(static_cast<int >(wxDateTime::GMT1)));
36071 }
36072 {
36073 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int(static_cast<int >(wxDateTime::GMT2)));
36074 }
36075 {
36076 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int(static_cast<int >(wxDateTime::GMT3)));
36077 }
36078 {
36079 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int(static_cast<int >(wxDateTime::GMT4)));
36080 }
36081 {
36082 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int(static_cast<int >(wxDateTime::GMT5)));
36083 }
36084 {
36085 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int(static_cast<int >(wxDateTime::GMT6)));
36086 }
36087 {
36088 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int(static_cast<int >(wxDateTime::GMT7)));
36089 }
36090 {
36091 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int(static_cast<int >(wxDateTime::GMT8)));
36092 }
36093 {
36094 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int(static_cast<int >(wxDateTime::GMT9)));
36095 }
36096 {
36097 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int(static_cast<int >(wxDateTime::GMT10)));
36098 }
36099 {
36100 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int(static_cast<int >(wxDateTime::GMT11)));
36101 }
36102 {
36103 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int(static_cast<int >(wxDateTime::GMT12)));
36104 }
36105 {
36106 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int(static_cast<int >(wxDateTime::WET)));
36107 }
36108 {
36109 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int(static_cast<int >(wxDateTime::WEST)));
36110 }
36111 {
36112 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int(static_cast<int >(wxDateTime::CET)));
36113 }
36114 {
36115 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int(static_cast<int >(wxDateTime::CEST)));
36116 }
36117 {
36118 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int(static_cast<int >(wxDateTime::EET)));
36119 }
36120 {
36121 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int(static_cast<int >(wxDateTime::EEST)));
36122 }
36123 {
36124 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int(static_cast<int >(wxDateTime::MSK)));
36125 }
36126 {
36127 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int(static_cast<int >(wxDateTime::MSD)));
36128 }
36129 {
36130 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int(static_cast<int >(wxDateTime::AST)));
36131 }
36132 {
36133 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int(static_cast<int >(wxDateTime::ADT)));
36134 }
36135 {
36136 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int(static_cast<int >(wxDateTime::EST)));
36137 }
36138 {
36139 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int(static_cast<int >(wxDateTime::EDT)));
36140 }
36141 {
36142 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int(static_cast<int >(wxDateTime::CST)));
36143 }
36144 {
36145 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int(static_cast<int >(wxDateTime::CDT)));
36146 }
36147 {
36148 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int(static_cast<int >(wxDateTime::MST)));
36149 }
36150 {
36151 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int(static_cast<int >(wxDateTime::MDT)));
36152 }
36153 {
36154 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int(static_cast<int >(wxDateTime::PST)));
36155 }
36156 {
36157 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int(static_cast<int >(wxDateTime::PDT)));
36158 }
36159 {
36160 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int(static_cast<int >(wxDateTime::HST)));
36161 }
36162 {
36163 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int(static_cast<int >(wxDateTime::AKST)));
36164 }
36165 {
36166 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int(static_cast<int >(wxDateTime::AKDT)));
36167 }
36168 {
36169 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int(static_cast<int >(wxDateTime::A_WST)));
36170 }
36171 {
36172 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int(static_cast<int >(wxDateTime::A_CST)));
36173 }
36174 {
36175 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int(static_cast<int >(wxDateTime::A_EST)));
36176 }
36177 {
36178 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int(static_cast<int >(wxDateTime::A_ESST)));
36179 }
36180 {
36181 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int(static_cast<int >(wxDateTime::UTC)));
36182 }
36183 {
36184 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int(static_cast<int >(wxDateTime::Gregorian)));
36185 }
36186 {
36187 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int(static_cast<int >(wxDateTime::Julian)));
36188 }
36189 {
36190 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Unknown)));
36191 }
36192 {
36193 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Standard)));
36194 }
36195 {
36196 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Alaska)));
36197 }
36198 {
36199 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Albania)));
36200 }
36201 {
36202 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria)));
36203 }
36204 {
36205 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Brixen)));
36206 }
36207 {
36208 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Salzburg)));
36209 }
36210 {
36211 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Tyrol)));
36212 }
36213 {
36214 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Carinthia)));
36215 }
36216 {
36217 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Styria)));
36218 }
36219 {
36220 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Belgium)));
36221 }
36222 {
36223 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria)));
36224 }
36225 {
36226 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_1)));
36227 }
36228 {
36229 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_2)));
36230 }
36231 {
36232 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_3)));
36233 }
36234 {
36235 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Canada)));
36236 }
36237 {
36238 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China)));
36239 }
36240 {
36241 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_1)));
36242 }
36243 {
36244 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_2)));
36245 }
36246 {
36247 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Czechoslovakia)));
36248 }
36249 {
36250 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Denmark)));
36251 }
36252 {
36253 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Egypt)));
36254 }
36255 {
36256 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Estonia)));
36257 }
36258 {
36259 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Finland)));
36260 }
36261 {
36262 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France)));
36263 }
36264 {
36265 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Alsace)));
36266 }
36267 {
36268 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Lorraine)));
36269 }
36270 {
36271 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Strasbourg)));
36272 }
36273 {
36274 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany)));
36275 }
36276 {
36277 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Catholic)));
36278 }
36279 {
36280 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Prussia)));
36281 }
36282 {
36283 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Protestant)));
36284 }
36285 {
36286 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_GreatBritain)));
36287 }
36288 {
36289 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Greece)));
36290 }
36291 {
36292 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Hungary)));
36293 }
36294 {
36295 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Ireland)));
36296 }
36297 {
36298 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Italy)));
36299 }
36300 {
36301 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan)));
36302 }
36303 {
36304 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_1)));
36305 }
36306 {
36307 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_2)));
36308 }
36309 {
36310 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_3)));
36311 }
36312 {
36313 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Latvia)));
36314 }
36315 {
36316 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Lithuania)));
36317 }
36318 {
36319 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Luxemburg)));
36320 }
36321 {
36322 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands)));
36323 }
36324 {
36325 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Groningen)));
36326 }
36327 {
36328 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Gelderland)));
36329 }
36330 {
36331 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Utrecht)));
36332 }
36333 {
36334 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Friesland)));
36335 }
36336 {
36337 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Norway)));
36338 }
36339 {
36340 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Poland)));
36341 }
36342 {
36343 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Portugal)));
36344 }
36345 {
36346 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Romania)));
36347 }
36348 {
36349 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Russia)));
36350 }
36351 {
36352 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Scotland)));
36353 }
36354 {
36355 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Spain)));
36356 }
36357 {
36358 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Sweden)));
36359 }
36360 {
36361 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland)));
36362 }
36363 {
36364 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Catholic)));
36365 }
36366 {
36367 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Protestant)));
36368 }
36369 {
36370 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Turkey)));
36371 }
36372 {
36373 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int(static_cast<int >(wxDateTime::Gr_USA)));
36374 }
36375 {
36376 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Wales)));
36377 }
36378 {
36379 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Yugoslavia)));
36380 }
36381 {
36382 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Country_Unknown)));
36383 }
36384 {
36385 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int(static_cast<int >(wxDateTime::Country_Default)));
36386 }
36387 {
36388 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_Start)));
36389 }
36390 {
36391 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int(static_cast<int >(wxDateTime::Country_EEC)));
36392 }
36393 {
36394 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int(static_cast<int >(wxDateTime::France)));
36395 }
36396 {
36397 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Germany)));
36398 }
36399 {
36400 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int(static_cast<int >(wxDateTime::UK)));
36401 }
36402 {
36403 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_End)));
36404 }
36405 {
36406 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Russia)));
36407 }
36408 {
36409 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int(static_cast<int >(wxDateTime::USA)));
36410 }
36411 {
36412 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int(static_cast<int >(wxDateTime::Jan)));
36413 }
36414 {
36415 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int(static_cast<int >(wxDateTime::Feb)));
36416 }
36417 {
36418 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int(static_cast<int >(wxDateTime::Mar)));
36419 }
36420 {
36421 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int(static_cast<int >(wxDateTime::Apr)));
36422 }
36423 {
36424 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int(static_cast<int >(wxDateTime::May)));
36425 }
36426 {
36427 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int(static_cast<int >(wxDateTime::Jun)));
36428 }
36429 {
36430 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int(static_cast<int >(wxDateTime::Jul)));
36431 }
36432 {
36433 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int(static_cast<int >(wxDateTime::Aug)));
36434 }
36435 {
36436 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int(static_cast<int >(wxDateTime::Sep)));
36437 }
36438 {
36439 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int(static_cast<int >(wxDateTime::Oct)));
36440 }
36441 {
36442 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int(static_cast<int >(wxDateTime::Nov)));
36443 }
36444 {
36445 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int(static_cast<int >(wxDateTime::Dec)));
36446 }
36447 {
36448 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Month)));
36449 }
36450 {
36451 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int(static_cast<int >(wxDateTime::Sun)));
36452 }
36453 {
36454 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int(static_cast<int >(wxDateTime::Mon)));
36455 }
36456 {
36457 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int(static_cast<int >(wxDateTime::Tue)));
36458 }
36459 {
36460 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int(static_cast<int >(wxDateTime::Wed)));
36461 }
36462 {
36463 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int(static_cast<int >(wxDateTime::Thu)));
36464 }
36465 {
36466 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int(static_cast<int >(wxDateTime::Fri)));
36467 }
36468 {
36469 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int(static_cast<int >(wxDateTime::Sat)));
36470 }
36471 {
36472 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int(static_cast<int >(wxDateTime::Inv_WeekDay)));
36473 }
36474 {
36475 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Year)));
36476 }
36477 {
36478 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int(static_cast<int >(wxDateTime::Name_Full)));
36479 }
36480 {
36481 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int(static_cast<int >(wxDateTime::Name_Abbr)));
36482 }
36483 {
36484 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int(static_cast<int >(wxDateTime::Default_First)));
36485 }
36486 {
36487 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int(static_cast<int >(wxDateTime::Monday_First)));
36488 }
36489 {
36490 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int(static_cast<int >(wxDateTime::Sunday_First)));
36491 }
36492 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
36493 {
36494 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int(static_cast<int >(wxDF_INVALID)));
36495 }
36496 {
36497 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int(static_cast<int >(wxDF_TEXT)));
36498 }
36499 {
36500 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int(static_cast<int >(wxDF_BITMAP)));
36501 }
36502 {
36503 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int(static_cast<int >(wxDF_METAFILE)));
36504 }
36505 {
36506 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int(static_cast<int >(wxDF_SYLK)));
36507 }
36508 {
36509 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int(static_cast<int >(wxDF_DIF)));
36510 }
36511 {
36512 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int(static_cast<int >(wxDF_TIFF)));
36513 }
36514 {
36515 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int(static_cast<int >(wxDF_OEMTEXT)));
36516 }
36517 {
36518 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int(static_cast<int >(wxDF_DIB)));
36519 }
36520 {
36521 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int(static_cast<int >(wxDF_PALETTE)));
36522 }
36523 {
36524 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int(static_cast<int >(wxDF_PENDATA)));
36525 }
36526 {
36527 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int(static_cast<int >(wxDF_RIFF)));
36528 }
36529 {
36530 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int(static_cast<int >(wxDF_WAVE)));
36531 }
36532 {
36533 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int(static_cast<int >(wxDF_UNICODETEXT)));
36534 }
36535 {
36536 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int(static_cast<int >(wxDF_ENHMETAFILE)));
36537 }
36538 {
36539 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int(static_cast<int >(wxDF_FILENAME)));
36540 }
36541 {
36542 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int(static_cast<int >(wxDF_LOCALE)));
36543 }
36544 {
36545 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int(static_cast<int >(wxDF_PRIVATE)));
36546 }
36547 {
36548 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int(static_cast<int >(wxDF_HTML)));
36549 }
36550 {
36551 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int(static_cast<int >(wxDF_MAX)));
36552 }
36553 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
36554 {
36555 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int(static_cast<int >(wxDataObject::Get)));
36556 }
36557 {
36558 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int(static_cast<int >(wxDataObject::Set)));
36559 }
36560 {
36561 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int(static_cast<int >(wxDataObject::Both)));
36562 }
36563 {
36564 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int(static_cast<int >(wxDrag_CopyOnly)));
36565 }
36566 {
36567 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int(static_cast<int >(wxDrag_AllowMove)));
36568 }
36569 {
36570 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int(static_cast<int >(wxDrag_DefaultMove)));
36571 }
36572 {
36573 PyDict_SetItemString(d,"DragError", SWIG_From_int(static_cast<int >(wxDragError)));
36574 }
36575 {
36576 PyDict_SetItemString(d,"DragNone", SWIG_From_int(static_cast<int >(wxDragNone)));
36577 }
36578 {
36579 PyDict_SetItemString(d,"DragCopy", SWIG_From_int(static_cast<int >(wxDragCopy)));
36580 }
36581 {
36582 PyDict_SetItemString(d,"DragMove", SWIG_From_int(static_cast<int >(wxDragMove)));
36583 }
36584 {
36585 PyDict_SetItemString(d,"DragLink", SWIG_From_int(static_cast<int >(wxDragLink)));
36586 }
36587 {
36588 PyDict_SetItemString(d,"DragCancel", SWIG_From_int(static_cast<int >(wxDragCancel)));
36589 }
36590
36591 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
36592 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
36593 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
36594 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
36595
36596 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
36597 }
36598