]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
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_PYTHON_DIRECTOR_NO_VTABLE
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 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxColour swig_types[30]
2497 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499 #define SWIGTYPE_p_wxComboBox swig_types[33]
2500 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2502 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504 #define SWIGTYPE_p_wxControl swig_types[38]
2505 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506 #define SWIGTYPE_p_wxCursor swig_types[40]
2507 #define SWIGTYPE_p_wxDC swig_types[41]
2508 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510 #define SWIGTYPE_p_wxDateTime swig_types[44]
2511 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvent swig_types[51]
2518 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519 #define SWIGTYPE_p_wxFSFile swig_types[53]
2520 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2523 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525 #define SWIGTYPE_p_wxFont swig_types[59]
2526 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGauge swig_types[64]
2531 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2535 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2540 #define SWIGTYPE_p_wxIcon swig_types[74]
2541 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543 #define SWIGTYPE_p_wxImage swig_types[77]
2544 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2545 #define SWIGTYPE_p_wxImageList swig_types[79]
2546 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2549 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552 #define SWIGTYPE_p_wxListBox swig_types[86]
2553 #define SWIGTYPE_p_wxListEvent swig_types[87]
2554 #define SWIGTYPE_p_wxListItem swig_types[88]
2555 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556 #define SWIGTYPE_p_wxListView swig_types[90]
2557 #define SWIGTYPE_p_wxListbook swig_types[91]
2558 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561 #define SWIGTYPE_p_wxMenu swig_types[95]
2562 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2563 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2565 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNotebook swig_types[105]
2572 #define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574 #define SWIGTYPE_p_wxObject swig_types[108]
2575 #define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576 #define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577 #define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPaperSize swig_types[114]
2581 #define SWIGTYPE_p_wxPickerBase swig_types[115]
2582 #define SWIGTYPE_p_wxPoint swig_types[116]
2583 #define SWIGTYPE_p_wxPyApp swig_types[117]
2584 #define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPyControl swig_types[119]
2586 #define SWIGTYPE_p_wxPyEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588 #define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589 #define SWIGTYPE_p_wxPySizer swig_types[123]
2590 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592 #define SWIGTYPE_p_wxPyValidator swig_types[126]
2593 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594 #define SWIGTYPE_p_wxRadioBox swig_types[128]
2595 #define SWIGTYPE_p_wxRadioButton swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxScrollBar swig_types[131]
2598 #define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599 #define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600 #define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601 #define SWIGTYPE_p_wxShowEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603 #define SWIGTYPE_p_wxSize swig_types[137]
2604 #define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSizer swig_types[139]
2606 #define SWIGTYPE_p_wxSizerItem swig_types[140]
2607 #define SWIGTYPE_p_wxSlider swig_types[141]
2608 #define SWIGTYPE_p_wxSpinButton swig_types[142]
2609 #define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610 #define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612 #define SWIGTYPE_p_wxStaticBox swig_types[146]
2613 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614 #define SWIGTYPE_p_wxStaticLine swig_types[148]
2615 #define SWIGTYPE_p_wxStaticText swig_types[149]
2616 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617 #define SWIGTYPE_p_wxString swig_types[151]
2618 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619 #define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620 #define SWIGTYPE_p_wxTextAttr swig_types[154]
2621 #define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622 #define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623 #define SWIGTYPE_p_wxToggleButton swig_types[157]
2624 #define SWIGTYPE_p_wxToolBar swig_types[158]
2625 #define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626 #define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627 #define SWIGTYPE_p_wxToolbook swig_types[161]
2628 #define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629 #define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630 #define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631 #define SWIGTYPE_p_wxTreebook swig_types[165]
2632 #define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634 #define SWIGTYPE_p_wxValidator swig_types[168]
2635 #define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636 #define SWIGTYPE_p_wxWindow swig_types[170]
2637 #define SWIGTYPE_p_wxWindowBase swig_types[171]
2638 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640 #define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641 static swig_type_info *swig_types[176];
2642 static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
2643 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2645
2646 /* -------- TYPES TABLE (END) -------- */
2647
2648 #if (PY_VERSION_HEX <= 0x02000000)
2649 # if !defined(SWIG_PYTHON_CLASSIC)
2650 # error "This python version requires to use swig with the '-classic' option"
2651 # endif
2652 #endif
2653 #if (PY_VERSION_HEX <= 0x02020000)
2654 # error "This python version requires to use swig with the '-nomodern' option"
2655 #endif
2656 #if (PY_VERSION_HEX <= 0x02020000)
2657 # error "This python version requires to use swig with the '-nomodernargs' option"
2658 #endif
2659 #ifndef METH_O
2660 # error "This python version requires to use swig with the '-nofastunpack' option"
2661 #endif
2662
2663 /*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666 #define SWIG_init init_controls_
2667
2668 #define SWIG_name "_controls_"
2669
2670 #define SWIGVERSION 0x010329
2671
2672
2673 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677 #include <stdexcept>
2678
2679
2680 namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723 }
2724
2725
2726 namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737 }
2738
2739
2740 #include "wx/wxPython/wxPython.h"
2741 #include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
2751 #define SWIG_From_long PyInt_FromLong
2752
2753
2754 SWIGINTERNINLINE PyObject *
2755 SWIG_From_int (int value)
2756 {
2757 return SWIG_From_long (value);
2758 }
2759
2760
2761 #include <limits.h>
2762 #ifndef LLONG_MIN
2763 # define LLONG_MIN LONG_LONG_MIN
2764 #endif
2765 #ifndef LLONG_MAX
2766 # define LLONG_MAX LONG_LONG_MAX
2767 #endif
2768 #ifndef ULLONG_MAX
2769 # define ULLONG_MAX ULONG_LONG_MAX
2770 #endif
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_long (PyObject* obj, long* val)
2775 {
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
2778 return SWIG_OK;
2779 }
2780 return SWIG_TypeError;
2781 }
2782
2783
2784 SWIGINTERN int
2785 SWIG_AsVal_int (PyObject * obj, int *val)
2786 {
2787 long v;
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
2792 } else {
2793 if (val) *val = static_cast< int >(v);
2794 }
2795 }
2796 return res;
2797 }
2798
2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2800
2801 SWIGINTERN int
2802 SWIG_AsVal_bool (PyObject *obj, bool *val)
2803 {
2804 if (obj == Py_True) {
2805 if (val) *val = true;
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
2808 if (val) *val = false;
2809 return SWIG_OK;
2810 } else {
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
2815 }
2816 }
2817
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2824
2825 #include <wx/checklst.h>
2826
2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2828 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2829 if (clientData)
2830 {
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
2833 }
2834 else
2835 self->Insert(item, pos);
2836 }
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840 {
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848 }
2849
2850
2851 SWIGINTERN int
2852 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853 {
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864 }
2865
2866 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
2875 wxPyEndBlockThreads(blocked);
2876 return tup;
2877 }
2878 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
2884 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2897 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2898 self->AppendText(text);
2899 }
2900 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2901 return self->GetValue().Mid(from, to - from);
2902 }
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2908
2909 SWIGINTERNINLINE PyObject*
2910 SWIG_From_unsigned_SS_long (unsigned long value)
2911 {
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914 }
2915
2916
2917 SWIGINTERNINLINE PyObject *
2918 SWIG_From_size_t (size_t value)
2919 {
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_unsigned_SS_int (unsigned int value)
2926 {
2927 return SWIG_From_unsigned_SS_long (value);
2928 }
2929
2930
2931 #include <wx/slider.h>
2932
2933
2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2936
2937 #if !wxUSE_TOGGLEBTN
2938 // implement dummy items for platforms that don't have this class
2939
2940 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942 class wxToggleButton : public wxControl
2943 {
2944 public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
2948 { wxPyRaiseNotImplemented(); }
2949
2950 wxToggleButton()
2951 { wxPyRaiseNotImplemented(); }
2952 };
2953 #endif
2954
2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2956
2957 SWIGINTERNINLINE int
2958 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2959 {
2960 unsigned long v;
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
2964 }
2965
2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2967 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
2977 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
2980 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
2987 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
3004 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008 #include <wx/listctrl.h>
3009
3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3011 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
3026 wxPyEndBlockThreads(blocked);
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031 class wxPyListCtrl : public wxListCtrl {
3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3033 public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3058
3059 PYPRIVATE;
3060 };
3061
3062 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3065 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3066 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3067 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
3069
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
3085 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
3093 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
3098 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
3103 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3104 if (!PyCallable_Check(func))
3105 return false;
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
3108 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3109
3110 return self;
3111
3112
3113
3114 }
3115
3116 #include <wx/treectrl.h>
3117 #include "wx/wxPython/pytree.h"
3118
3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3120 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
3126 // C++ version of Python aware wxTreeCtrl
3127 class wxPyTreeCtrl : public wxTreeCtrl {
3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3129 public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
3161 wxPyEndBlockThreads(blocked);
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167 };
3168
3169 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
3172 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
3181 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
3190 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
3203 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3212 PyList_Append(rval, item);
3213 Py_DECREF(item);
3214 }
3215 wxPyEndBlockThreads(blocked);
3216 return rval;
3217 }
3218 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3222 PyObject* tup = PyTuple_New(2);
3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3225 wxPyEndBlockThreads(blocked);
3226 return tup;
3227 }
3228 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3231 PyObject* tup = PyTuple_New(2);
3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3234 wxPyEndBlockThreads(blocked);
3235 return tup;
3236 }
3237 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3241 wxRect* r = new wxRect(rect);
3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3243 wxPyEndBlockThreads(blocked);
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3250
3251 SWIGINTERNINLINE PyObject*
3252 SWIG_From_bool (bool value)
3253 {
3254 return PyBool_FromLong(value ? 1 : 0);
3255 }
3256
3257 // C++ version of Python aware wxControl
3258 class wxPyControl : public wxControl
3259 {
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261 public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3272
3273 bool DoEraseBackground(wxDC* dc) {
3274 #ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276 #else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280 #endif
3281 }
3282
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3309
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
3314 PYPRIVATE;
3315 };
3316
3317 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
3343 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3344 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3345
3346 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3347
3348 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
3350
3351
3352 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3353
3354 #include <wx/generic/dragimgg.h>
3355
3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3357 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3375 #ifdef __cplusplus
3376 extern "C" {
3377 #endif
3378 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
3381 }
3382
3383
3384 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
3388 #if wxUSE_UNICODE
3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3390 #else
3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3392 #endif
3393 }
3394 return pyobj;
3395 }
3396
3397
3398 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
3452 {
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
3456 }
3457 }
3458 if (obj3) {
3459 {
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3462 }
3463 }
3464 if (obj4) {
3465 {
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3468 }
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3481 }
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3484 }
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
3488 {
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
3492 }
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511 fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
3521 }
3522
3523
3524 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
3606 {
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
3610 }
3611 }
3612 if (obj4) {
3613 {
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3616 }
3617 }
3618 if (obj5) {
3619 {
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3622 }
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3635 }
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3638 }
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
3642 {
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
3646 }
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666 fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
3676 }
3677
3678
3679 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762 }
3763
3764 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766 }
3767
3768 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
3833 {
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3836 }
3837 }
3838 if (obj4) {
3839 {
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3842 }
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3855 }
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3858 }
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
3862 {
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
3866 }
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881 fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
3887 }
3888
3889
3890 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3976 }
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3979 }
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
3983 {
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3986 }
3987 }
3988 if (obj5) {
3989 {
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
4012 {
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
4016 }
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032 fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
4038 }
4039
4040
4041 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064 fail:
4065 return NULL;
4066 }
4067
4068
4069 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299 fail:
4300 return NULL;
4301 }
4302
4303
4304 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428 fail:
4429 return NULL;
4430 }
4431
4432
4433 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484 fail:
4485 return NULL;
4486 }
4487
4488
4489 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
4494 }
4495
4496 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498 }
4499
4500 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
4503 }
4504
4505
4506 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510 #if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512 #else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514 #endif
4515 }
4516 return pyobj;
4517 }
4518
4519
4520 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
4574 {
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
4578 }
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4584 }
4585 }
4586 if (obj4) {
4587 {
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4590 }
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4603 }
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
4610 {
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
4614 }
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633 fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
4643 }
4644
4645
4646 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660 fail:
4661 return NULL;
4662 }
4663
4664
4665 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
4728 {
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
4732 }
4733 }
4734 if (obj4) {
4735 {
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4738 }
4739 }
4740 if (obj5) {
4741 {
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4744 }
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4757 }
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
4764 {
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
4768 }
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788 fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826 fail:
4827 return NULL;
4828 }
4829
4830
4831 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894 fail:
4895 return NULL;
4896 }
4897
4898
4899 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
5063 }
5064
5065 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067 }
5068
5069 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
5072 }
5073
5074
5075 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079 #if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081 #else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083 #endif
5084 }
5085 return pyobj;
5086 }
5087
5088
5089 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
5143 {
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5146 }
5147 }
5148 if (obj3) {
5149 {
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5152 }
5153 }
5154 if (obj4) {
5155 {
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
5171 }
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5184 }
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
5191 {
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
5195 }
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213 fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
5222 }
5223
5224
5225 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
5307 {
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5310 }
5311 }
5312 if (obj4) {
5313 {
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5316 }
5317 }
5318 if (obj5) {
5319 {
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5348 }
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
5355 {
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
5359 }
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378 fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
5387 }
5388
5389
5390 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413 fail:
5414 return NULL;
5415 }
5416
5417
5418 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
5456 }
5457
5458 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460 }
5461
5462 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
5465 }
5466
5467
5468 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
5472 #if wxUSE_UNICODE
5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5474 #else
5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5476 #endif
5477 }
5478 return pyobj;
5479 }
5480
5481
5482 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
5540 {
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
5544 }
5545 }
5546 if (obj3) {
5547 {
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5550 }
5551 }
5552 if (obj4) {
5553 {
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5556 }
5557 }
5558 if (obj5) {
5559 {
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
5575 }
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
5595 {
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
5599 }
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621 fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
5723 {
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
5727 }
5728 }
5729 if (obj4) {
5730 {
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5733 }
5734 }
5735 if (obj5) {
5736 {
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5739 }
5740 }
5741 if (obj6) {
5742 {
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
5758 }
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5771 }
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5774 }
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
5778 {
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
5782 }
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805 fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
5818 }
5819
5820
5821 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 #if wxUSE_UNICODE
5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5845 #else
5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5847 #endif
5848 }
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891 fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
5897 }
5898
5899
5900 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129 fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135 }
6136
6137
6138 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "self",(char *) "from",(char *) "to", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180 fail:
6181 return NULL;
6182 }
6183
6184
6185 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 long *arg2 = (long *) 0 ;
6189 long *arg3 = (long *) 0 ;
6190 void *argp1 = 0 ;
6191 int res1 = 0 ;
6192 long temp2 ;
6193 int res2 = SWIG_TMPOBJ ;
6194 long temp3 ;
6195 int res3 = SWIG_TMPOBJ ;
6196 PyObject *swig_obj[1] ;
6197
6198 arg2 = &temp2;
6199 arg3 = &temp3;
6200 if (!args) SWIG_fail;
6201 swig_obj[0] = args;
6202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6203 if (!SWIG_IsOK(res1)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6205 }
6206 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->GetSelection(arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_Py_Void();
6214 if (SWIG_IsTmpObj(res2)) {
6215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6216 } else {
6217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6219 }
6220 if (SWIG_IsTmpObj(res3)) {
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6222 } else {
6223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6225 }
6226 return resultobj;
6227 fail:
6228 return NULL;
6229 }
6230
6231
6232 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6233 PyObject *resultobj = 0;
6234 wxComboBox *arg1 = (wxComboBox *) 0 ;
6235 int result;
6236 void *argp1 = 0 ;
6237 int res1 = 0 ;
6238 PyObject *swig_obj[1] ;
6239
6240 if (!args) SWIG_fail;
6241 swig_obj[0] = args;
6242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6245 }
6246 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_From_int(static_cast< int >(result));
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxComboBox *arg1 = (wxComboBox *) 0 ;
6263 wxString *arg2 = 0 ;
6264 bool result;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 bool temp2 = false ;
6268 PyObject * obj0 = 0 ;
6269 PyObject * obj1 = 0 ;
6270 char * kwnames[] = {
6271 (char *) "self",(char *) "string", NULL
6272 };
6273
6274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6276 if (!SWIG_IsOK(res1)) {
6277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6278 }
6279 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6280 {
6281 arg2 = wxString_in_helper(obj1);
6282 if (arg2 == NULL) SWIG_fail;
6283 temp2 = true;
6284 }
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 {
6292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6293 }
6294 {
6295 if (temp2)
6296 delete arg2;
6297 }
6298 return resultobj;
6299 fail:
6300 {
6301 if (temp2)
6302 delete arg2;
6303 }
6304 return NULL;
6305 }
6306
6307
6308 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxComboBox *arg1 = (wxComboBox *) 0 ;
6311 int arg2 ;
6312 wxString *arg3 = 0 ;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 int val2 ;
6316 int ecode2 = 0 ;
6317 bool temp3 = false ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 PyObject * obj2 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "n",(char *) "string", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6329 }
6330 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6331 ecode2 = SWIG_AsVal_int(obj1, &val2);
6332 if (!SWIG_IsOK(ecode2)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6334 }
6335 arg2 = static_cast< int >(val2);
6336 {
6337 arg3 = wxString_in_helper(obj2);
6338 if (arg3 == NULL) SWIG_fail;
6339 temp3 = true;
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 (arg1)->SetString(arg2,(wxString const &)*arg3);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 {
6349 if (temp3)
6350 delete arg3;
6351 }
6352 return resultobj;
6353 fail:
6354 {
6355 if (temp3)
6356 delete arg3;
6357 }
6358 return NULL;
6359 }
6360
6361
6362 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxComboBox *arg1 = (wxComboBox *) 0 ;
6365 bool arg2 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 bool val2 ;
6369 int ecode2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "editable", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6380 }
6381 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6383 if (!SWIG_IsOK(ecode2)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6385 }
6386 arg2 = static_cast< bool >(val2);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetEditable(arg2);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6412 }
6413 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetInsertionPointEnd();
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 long arg2 ;
6431 long arg3 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 long val2 ;
6435 int ecode2 = 0 ;
6436 long val3 ;
6437 int ecode3 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 PyObject * obj2 = 0 ;
6441 char * kwnames[] = {
6442 (char *) "self",(char *) "from",(char *) "to", NULL
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 ecode2 = SWIG_AsVal_long(obj1, &val2);
6452 if (!SWIG_IsOK(ecode2)) {
6453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6454 }
6455 arg2 = static_cast< long >(val2);
6456 ecode3 = SWIG_AsVal_long(obj2, &val3);
6457 if (!SWIG_IsOK(ecode3)) {
6458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6459 }
6460 arg3 = static_cast< long >(val3);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 (arg1)->Remove(arg2,arg3);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_Py_Void();
6468 return resultobj;
6469 fail:
6470 return NULL;
6471 }
6472
6473
6474 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxComboBox *arg1 = (wxComboBox *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Undo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526 fail:
6527 return NULL;
6528 }
6529
6530
6531 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->Redo();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6570 }
6571 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SelectAll();
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_Py_Void();
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxComboBox *arg1 = (wxComboBox *) 0 ;
6588 bool result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610 fail:
6611 return NULL;
6612 }
6613
6614
6615 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 wxComboBox *arg1 = (wxComboBox *) 0 ;
6618 bool result;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 PyObject *swig_obj[1] ;
6622
6623 if (!args) SWIG_fail;
6624 swig_obj[0] = args;
6625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6628 }
6629 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxComboBox const *)arg1)->CanCut();
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6638 }
6639 return resultobj;
6640 fail:
6641 return NULL;
6642 }
6643
6644
6645 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxComboBox *arg1 = (wxComboBox *) 0 ;
6648 bool result;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 {
6667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6668 }
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxComboBox *arg1 = (wxComboBox *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxComboBox *arg1 = (wxComboBox *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6718 }
6719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = 0;
6737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6738 SwigValueWrapper<wxVisualAttributes > result;
6739 int val1 ;
6740 int ecode1 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 char * kwnames[] = {
6743 (char *) "variant", NULL
6744 };
6745
6746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6747 if (obj0) {
6748 ecode1 = SWIG_AsVal_int(obj0, &val1);
6749 if (!SWIG_IsOK(ecode1)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6751 }
6752 arg1 = static_cast< wxWindowVariant >(val1);
6753 }
6754 {
6755 if (!wxPyCheckForApp()) SWIG_fail;
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = wxComboBox::GetClassDefaultAttributes(arg1);
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6762 return resultobj;
6763 fail:
6764 return NULL;
6765 }
6766
6767
6768 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6769 PyObject *obj;
6770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6771 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6772 return SWIG_Py_Void();
6773 }
6774
6775 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777 }
6778
6779 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
6782 }
6783
6784
6785 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6786 PyObject *pyobj = 0;
6787
6788 {
6789 #if wxUSE_UNICODE
6790 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6791 #else
6792 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6793 #endif
6794 }
6795 return pyobj;
6796 }
6797
6798
6799 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj = 0;
6801 wxWindow *arg1 = (wxWindow *) 0 ;
6802 int arg2 = (int) -1 ;
6803 int arg3 = (int) 100 ;
6804 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6805 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6806 wxSize const &arg5_defvalue = wxDefaultSize ;
6807 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6808 long arg6 = (long) wxGA_HORIZONTAL ;
6809 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6810 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6811 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6812 wxString *arg8 = (wxString *) &arg8_defvalue ;
6813 wxGauge *result = 0 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 int val3 ;
6819 int ecode3 = 0 ;
6820 wxPoint temp4 ;
6821 wxSize temp5 ;
6822 long val6 ;
6823 int ecode6 = 0 ;
6824 void *argp7 = 0 ;
6825 int res7 = 0 ;
6826 bool temp8 = false ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 PyObject * obj4 = 0 ;
6832 PyObject * obj5 = 0 ;
6833 PyObject * obj6 = 0 ;
6834 PyObject * obj7 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6843 }
6844 arg1 = reinterpret_cast< wxWindow * >(argp1);
6845 if (obj1) {
6846 ecode2 = SWIG_AsVal_int(obj1, &val2);
6847 if (!SWIG_IsOK(ecode2)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6849 }
6850 arg2 = static_cast< int >(val2);
6851 }
6852 if (obj2) {
6853 ecode3 = SWIG_AsVal_int(obj2, &val3);
6854 if (!SWIG_IsOK(ecode3)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6856 }
6857 arg3 = static_cast< int >(val3);
6858 }
6859 if (obj3) {
6860 {
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6863 }
6864 }
6865 if (obj4) {
6866 {
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6869 }
6870 }
6871 if (obj5) {
6872 ecode6 = SWIG_AsVal_long(obj5, &val6);
6873 if (!SWIG_IsOK(ecode6)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6875 }
6876 arg6 = static_cast< long >(val6);
6877 }
6878 if (obj6) {
6879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6880 if (!SWIG_IsOK(res7)) {
6881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6882 }
6883 if (!argp7) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6885 }
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
6889 {
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
6893 }
6894 }
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6903 {
6904 if (temp8)
6905 delete arg8;
6906 }
6907 return resultobj;
6908 fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxGauge *result = 0 ;
6920
6921 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6922 {
6923 if (!wxPyCheckForApp()) SWIG_fail;
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 result = (wxGauge *)new wxGauge();
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxGauge *arg1 = (wxGauge *) 0 ;
6939 wxWindow *arg2 = (wxWindow *) 0 ;
6940 int arg3 = (int) -1 ;
6941 int arg4 = (int) 100 ;
6942 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6943 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6944 wxSize const &arg6_defvalue = wxDefaultSize ;
6945 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6946 long arg7 = (long) wxGA_HORIZONTAL ;
6947 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6948 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6949 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6950 wxString *arg9 = (wxString *) &arg9_defvalue ;
6951 bool result;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 void *argp2 = 0 ;
6955 int res2 = 0 ;
6956 int val3 ;
6957 int ecode3 = 0 ;
6958 int val4 ;
6959 int ecode4 = 0 ;
6960 wxPoint temp5 ;
6961 wxSize temp6 ;
6962 long val7 ;
6963 int ecode7 = 0 ;
6964 void *argp8 = 0 ;
6965 int res8 = 0 ;
6966 bool temp9 = false ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 PyObject * obj2 = 0 ;
6970 PyObject * obj3 = 0 ;
6971 PyObject * obj4 = 0 ;
6972 PyObject * obj5 = 0 ;
6973 PyObject * obj6 = 0 ;
6974 PyObject * obj7 = 0 ;
6975 PyObject * obj8 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6989 }
6990 arg2 = reinterpret_cast< wxWindow * >(argp2);
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 if (obj3) {
6999 ecode4 = SWIG_AsVal_int(obj3, &val4);
7000 if (!SWIG_IsOK(ecode4)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7002 }
7003 arg4 = static_cast< int >(val4);
7004 }
7005 if (obj4) {
7006 {
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7009 }
7010 }
7011 if (obj5) {
7012 {
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7015 }
7016 }
7017 if (obj6) {
7018 ecode7 = SWIG_AsVal_long(obj6, &val7);
7019 if (!SWIG_IsOK(ecode7)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7021 }
7022 arg7 = static_cast< long >(val7);
7023 }
7024 if (obj7) {
7025 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7026 if (!SWIG_IsOK(res8)) {
7027 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7028 }
7029 if (!argp8) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 arg8 = reinterpret_cast< wxValidator * >(argp8);
7033 }
7034 if (obj8) {
7035 {
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
7039 }
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7049 }
7050 {
7051 if (temp9)
7052 delete arg9;
7053 }
7054 return resultobj;
7055 fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061 }
7062
7063
7064 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxGauge *arg1 = (wxGauge *) 0 ;
7067 int arg2 ;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 char * kwnames[] = {
7075 (char *) "self",(char *) "range", NULL
7076 };
7077
7078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7082 }
7083 arg1 = reinterpret_cast< wxGauge * >(argp1);
7084 ecode2 = SWIG_AsVal_int(obj1, &val2);
7085 if (!SWIG_IsOK(ecode2)) {
7086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7087 }
7088 arg2 = static_cast< int >(val2);
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 (arg1)->SetRange(arg2);
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_Py_Void();
7096 return resultobj;
7097 fail:
7098 return NULL;
7099 }
7100
7101
7102 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 wxGauge *arg1 = (wxGauge *) 0 ;
7105 int result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject *swig_obj[1] ;
7109
7110 if (!args) SWIG_fail;
7111 swig_obj[0] = args;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7115 }
7116 arg1 = reinterpret_cast< wxGauge * >(argp1);
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (int)((wxGauge const *)arg1)->GetRange();
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_From_int(static_cast< int >(result));
7124 return resultobj;
7125 fail:
7126 return NULL;
7127 }
7128
7129
7130 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxGauge *arg1 = (wxGauge *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "pos", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7148 }
7149 arg1 = reinterpret_cast< wxGauge * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetValue(arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163 fail:
7164 return NULL;
7165 }
7166
7167
7168 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxGauge *arg1 = (wxGauge *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7181 }
7182 arg1 = reinterpret_cast< wxGauge * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)((wxGauge const *)arg1)->GetValue();
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 bool result;
7200 void *argp1 = 0 ;
7201 int res1 = 0 ;
7202 PyObject *swig_obj[1] ;
7203
7204 if (!args) SWIG_fail;
7205 swig_obj[0] = args;
7206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7209 }
7210 arg1 = reinterpret_cast< wxGauge * >(argp1);
7211 {
7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
7213 result = (bool)((wxGauge const *)arg1)->IsVertical();
7214 wxPyEndAllowThreads(__tstate);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 {
7218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7219 }
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7227 PyObject *resultobj = 0;
7228 wxGauge *arg1 = (wxGauge *) 0 ;
7229 int arg2 ;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 int val2 ;
7233 int ecode2 = 0 ;
7234 PyObject * obj0 = 0 ;
7235 PyObject * obj1 = 0 ;
7236 char * kwnames[] = {
7237 (char *) "self",(char *) "w", NULL
7238 };
7239
7240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7242 if (!SWIG_IsOK(res1)) {
7243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7244 }
7245 arg1 = reinterpret_cast< wxGauge * >(argp1);
7246 ecode2 = SWIG_AsVal_int(obj1, &val2);
7247 if (!SWIG_IsOK(ecode2)) {
7248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7249 }
7250 arg2 = static_cast< int >(val2);
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 (arg1)->SetShadowWidth(arg2);
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 resultobj = SWIG_Py_Void();
7258 return resultobj;
7259 fail:
7260 return NULL;
7261 }
7262
7263
7264 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7265 PyObject *resultobj = 0;
7266 wxGauge *arg1 = (wxGauge *) 0 ;
7267 int result;
7268 void *argp1 = 0 ;
7269 int res1 = 0 ;
7270 PyObject *swig_obj[1] ;
7271
7272 if (!args) SWIG_fail;
7273 swig_obj[0] = args;
7274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7275 if (!SWIG_IsOK(res1)) {
7276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7277 }
7278 arg1 = reinterpret_cast< wxGauge * >(argp1);
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_From_int(static_cast< int >(result));
7286 return resultobj;
7287 fail:
7288 return NULL;
7289 }
7290
7291
7292 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj = 0;
7294 wxGauge *arg1 = (wxGauge *) 0 ;
7295 int arg2 ;
7296 void *argp1 = 0 ;
7297 int res1 = 0 ;
7298 int val2 ;
7299 int ecode2 = 0 ;
7300 PyObject * obj0 = 0 ;
7301 PyObject * obj1 = 0 ;
7302 char * kwnames[] = {
7303 (char *) "self",(char *) "w", NULL
7304 };
7305
7306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7308 if (!SWIG_IsOK(res1)) {
7309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7310 }
7311 arg1 = reinterpret_cast< wxGauge * >(argp1);
7312 ecode2 = SWIG_AsVal_int(obj1, &val2);
7313 if (!SWIG_IsOK(ecode2)) {
7314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7315 }
7316 arg2 = static_cast< int >(val2);
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 (arg1)->SetBezelFace(arg2);
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 resultobj = SWIG_Py_Void();
7324 return resultobj;
7325 fail:
7326 return NULL;
7327 }
7328
7329
7330 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7331 PyObject *resultobj = 0;
7332 wxGauge *arg1 = (wxGauge *) 0 ;
7333 int result;
7334 void *argp1 = 0 ;
7335 int res1 = 0 ;
7336 PyObject *swig_obj[1] ;
7337
7338 if (!args) SWIG_fail;
7339 swig_obj[0] = args;
7340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7341 if (!SWIG_IsOK(res1)) {
7342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7343 }
7344 arg1 = reinterpret_cast< wxGauge * >(argp1);
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7348 wxPyEndAllowThreads(__tstate);
7349 if (PyErr_Occurred()) SWIG_fail;
7350 }
7351 resultobj = SWIG_From_int(static_cast< int >(result));
7352 return resultobj;
7353 fail:
7354 return NULL;
7355 }
7356
7357
7358 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj = 0;
7360 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7361 SwigValueWrapper<wxVisualAttributes > result;
7362 int val1 ;
7363 int ecode1 = 0 ;
7364 PyObject * obj0 = 0 ;
7365 char * kwnames[] = {
7366 (char *) "variant", NULL
7367 };
7368
7369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7370 if (obj0) {
7371 ecode1 = SWIG_AsVal_int(obj0, &val1);
7372 if (!SWIG_IsOK(ecode1)) {
7373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7374 }
7375 arg1 = static_cast< wxWindowVariant >(val1);
7376 }
7377 {
7378 if (!wxPyCheckForApp()) SWIG_fail;
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 result = wxGauge::GetClassDefaultAttributes(arg1);
7381 wxPyEndAllowThreads(__tstate);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7385 return resultobj;
7386 fail:
7387 return NULL;
7388 }
7389
7390
7391 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7392 PyObject *obj;
7393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7394 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7395 return SWIG_Py_Void();
7396 }
7397
7398 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7399 return SWIG_Python_InitShadowInstance(args);
7400 }
7401
7402 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7404 return 1;
7405 }
7406
7407
7408 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
7412 #if wxUSE_UNICODE
7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7414 #else
7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7416 #endif
7417 }
7418 return pyobj;
7419 }
7420
7421
7422 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7424 return 1;
7425 }
7426
7427
7428 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432 #if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7434 #else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7436 #endif
7437 }
7438 return pyobj;
7439 }
7440
7441
7442 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7443 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7444 return 1;
7445 }
7446
7447
7448 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7449 PyObject *pyobj = 0;
7450
7451 {
7452 #if wxUSE_UNICODE
7453 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7454 #else
7455 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7456 #endif
7457 }
7458 return pyobj;
7459 }
7460
7461
7462 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7463 PyObject *resultobj = 0;
7464 wxWindow *arg1 = (wxWindow *) 0 ;
7465 int arg2 = (int) -1 ;
7466 wxString const &arg3_defvalue = wxPyEmptyString ;
7467 wxString *arg3 = (wxString *) &arg3_defvalue ;
7468 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7469 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7470 wxSize const &arg5_defvalue = wxDefaultSize ;
7471 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7472 long arg6 = (long) 0 ;
7473 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7474 wxString *arg7 = (wxString *) &arg7_defvalue ;
7475 wxStaticBox *result = 0 ;
7476 void *argp1 = 0 ;
7477 int res1 = 0 ;
7478 int val2 ;
7479 int ecode2 = 0 ;
7480 bool temp3 = false ;
7481 wxPoint temp4 ;
7482 wxSize temp5 ;
7483 long val6 ;
7484 int ecode6 = 0 ;
7485 bool temp7 = false ;
7486 PyObject * obj0 = 0 ;
7487 PyObject * obj1 = 0 ;
7488 PyObject * obj2 = 0 ;
7489 PyObject * obj3 = 0 ;
7490 PyObject * obj4 = 0 ;
7491 PyObject * obj5 = 0 ;
7492 PyObject * obj6 = 0 ;
7493 char * kwnames[] = {
7494 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7495 };
7496
7497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7499 if (!SWIG_IsOK(res1)) {
7500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7501 }
7502 arg1 = reinterpret_cast< wxWindow * >(argp1);
7503 if (obj1) {
7504 ecode2 = SWIG_AsVal_int(obj1, &val2);
7505 if (!SWIG_IsOK(ecode2)) {
7506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7507 }
7508 arg2 = static_cast< int >(val2);
7509 }
7510 if (obj2) {
7511 {
7512 arg3 = wxString_in_helper(obj2);
7513 if (arg3 == NULL) SWIG_fail;
7514 temp3 = true;
7515 }
7516 }
7517 if (obj3) {
7518 {
7519 arg4 = &temp4;
7520 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7521 }
7522 }
7523 if (obj4) {
7524 {
7525 arg5 = &temp5;
7526 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7527 }
7528 }
7529 if (obj5) {
7530 ecode6 = SWIG_AsVal_long(obj5, &val6);
7531 if (!SWIG_IsOK(ecode6)) {
7532 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7533 }
7534 arg6 = static_cast< long >(val6);
7535 }
7536 if (obj6) {
7537 {
7538 arg7 = wxString_in_helper(obj6);
7539 if (arg7 == NULL) SWIG_fail;
7540 temp7 = true;
7541 }
7542 }
7543 {
7544 if (!wxPyCheckForApp()) SWIG_fail;
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7547 wxPyEndAllowThreads(__tstate);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7551 {
7552 if (temp3)
7553 delete arg3;
7554 }
7555 {
7556 if (temp7)
7557 delete arg7;
7558 }
7559 return resultobj;
7560 fail:
7561 {
7562 if (temp3)
7563 delete arg3;
7564 }
7565 {
7566 if (temp7)
7567 delete arg7;
7568 }
7569 return NULL;
7570 }
7571
7572
7573 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7574 PyObject *resultobj = 0;
7575 wxStaticBox *result = 0 ;
7576
7577 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7578 {
7579 if (!wxPyCheckForApp()) SWIG_fail;
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 result = (wxStaticBox *)new wxStaticBox();
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7586 return resultobj;
7587 fail:
7588 return NULL;
7589 }
7590
7591
7592 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj = 0;
7594 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7595 wxWindow *arg2 = (wxWindow *) 0 ;
7596 int arg3 = (int) -1 ;
7597 wxString const &arg4_defvalue = wxPyEmptyString ;
7598 wxString *arg4 = (wxString *) &arg4_defvalue ;
7599 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7600 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7601 wxSize const &arg6_defvalue = wxDefaultSize ;
7602 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7603 long arg7 = (long) 0 ;
7604 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7605 wxString *arg8 = (wxString *) &arg8_defvalue ;
7606 bool result;
7607 void *argp1 = 0 ;
7608 int res1 = 0 ;
7609 void *argp2 = 0 ;
7610 int res2 = 0 ;
7611 int val3 ;
7612 int ecode3 = 0 ;
7613 bool temp4 = false ;
7614 wxPoint temp5 ;
7615 wxSize temp6 ;
7616 long val7 ;
7617 int ecode7 = 0 ;
7618 bool temp8 = false ;
7619 PyObject * obj0 = 0 ;
7620 PyObject * obj1 = 0 ;
7621 PyObject * obj2 = 0 ;
7622 PyObject * obj3 = 0 ;
7623 PyObject * obj4 = 0 ;
7624 PyObject * obj5 = 0 ;
7625 PyObject * obj6 = 0 ;
7626 PyObject * obj7 = 0 ;
7627 char * kwnames[] = {
7628 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7629 };
7630
7631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7633 if (!SWIG_IsOK(res1)) {
7634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7635 }
7636 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7637 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7638 if (!SWIG_IsOK(res2)) {
7639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7640 }
7641 arg2 = reinterpret_cast< wxWindow * >(argp2);
7642 if (obj2) {
7643 ecode3 = SWIG_AsVal_int(obj2, &val3);
7644 if (!SWIG_IsOK(ecode3)) {
7645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7646 }
7647 arg3 = static_cast< int >(val3);
7648 }
7649 if (obj3) {
7650 {
7651 arg4 = wxString_in_helper(obj3);
7652 if (arg4 == NULL) SWIG_fail;
7653 temp4 = true;
7654 }
7655 }
7656 if (obj4) {
7657 {
7658 arg5 = &temp5;
7659 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7660 }
7661 }
7662 if (obj5) {
7663 {
7664 arg6 = &temp6;
7665 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7666 }
7667 }
7668 if (obj6) {
7669 ecode7 = SWIG_AsVal_long(obj6, &val7);
7670 if (!SWIG_IsOK(ecode7)) {
7671 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7672 }
7673 arg7 = static_cast< long >(val7);
7674 }
7675 if (obj7) {
7676 {
7677 arg8 = wxString_in_helper(obj7);
7678 if (arg8 == NULL) SWIG_fail;
7679 temp8 = true;
7680 }
7681 }
7682 {
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7685 wxPyEndAllowThreads(__tstate);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 {
7689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7690 }
7691 {
7692 if (temp4)
7693 delete arg4;
7694 }
7695 {
7696 if (temp8)
7697 delete arg8;
7698 }
7699 return resultobj;
7700 fail:
7701 {
7702 if (temp4)
7703 delete arg4;
7704 }
7705 {
7706 if (temp8)
7707 delete arg8;
7708 }
7709 return NULL;
7710 }
7711
7712
7713 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj = 0;
7715 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7716 SwigValueWrapper<wxVisualAttributes > result;
7717 int val1 ;
7718 int ecode1 = 0 ;
7719 PyObject * obj0 = 0 ;
7720 char * kwnames[] = {
7721 (char *) "variant", NULL
7722 };
7723
7724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7725 if (obj0) {
7726 ecode1 = SWIG_AsVal_int(obj0, &val1);
7727 if (!SWIG_IsOK(ecode1)) {
7728 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7729 }
7730 arg1 = static_cast< wxWindowVariant >(val1);
7731 }
7732 {
7733 if (!wxPyCheckForApp()) SWIG_fail;
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7740 return resultobj;
7741 fail:
7742 return NULL;
7743 }
7744
7745
7746 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7747 PyObject *obj;
7748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7749 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7750 return SWIG_Py_Void();
7751 }
7752
7753 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7754 return SWIG_Python_InitShadowInstance(args);
7755 }
7756
7757 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj = 0;
7759 wxWindow *arg1 = (wxWindow *) 0 ;
7760 int arg2 = (int) -1 ;
7761 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7762 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7763 wxSize const &arg4_defvalue = wxDefaultSize ;
7764 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7765 long arg5 = (long) wxLI_HORIZONTAL ;
7766 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7767 wxString *arg6 = (wxString *) &arg6_defvalue ;
7768 wxStaticLine *result = 0 ;
7769 void *argp1 = 0 ;
7770 int res1 = 0 ;
7771 int val2 ;
7772 int ecode2 = 0 ;
7773 wxPoint temp3 ;
7774 wxSize temp4 ;
7775 long val5 ;
7776 int ecode5 = 0 ;
7777 bool temp6 = false ;
7778 PyObject * obj0 = 0 ;
7779 PyObject * obj1 = 0 ;
7780 PyObject * obj2 = 0 ;
7781 PyObject * obj3 = 0 ;
7782 PyObject * obj4 = 0 ;
7783 PyObject * obj5 = 0 ;
7784 char * kwnames[] = {
7785 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7786 };
7787
7788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7790 if (!SWIG_IsOK(res1)) {
7791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7792 }
7793 arg1 = reinterpret_cast< wxWindow * >(argp1);
7794 if (obj1) {
7795 ecode2 = SWIG_AsVal_int(obj1, &val2);
7796 if (!SWIG_IsOK(ecode2)) {
7797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7798 }
7799 arg2 = static_cast< int >(val2);
7800 }
7801 if (obj2) {
7802 {
7803 arg3 = &temp3;
7804 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7805 }
7806 }
7807 if (obj3) {
7808 {
7809 arg4 = &temp4;
7810 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7811 }
7812 }
7813 if (obj4) {
7814 ecode5 = SWIG_AsVal_long(obj4, &val5);
7815 if (!SWIG_IsOK(ecode5)) {
7816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7817 }
7818 arg5 = static_cast< long >(val5);
7819 }
7820 if (obj5) {
7821 {
7822 arg6 = wxString_in_helper(obj5);
7823 if (arg6 == NULL) SWIG_fail;
7824 temp6 = true;
7825 }
7826 }
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7835 {
7836 if (temp6)
7837 delete arg6;
7838 }
7839 return resultobj;
7840 fail:
7841 {
7842 if (temp6)
7843 delete arg6;
7844 }
7845 return NULL;
7846 }
7847
7848
7849 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 PyObject *resultobj = 0;
7851 wxStaticLine *result = 0 ;
7852
7853 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7854 {
7855 if (!wxPyCheckForApp()) SWIG_fail;
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (wxStaticLine *)new wxStaticLine();
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7862 return resultobj;
7863 fail:
7864 return NULL;
7865 }
7866
7867
7868 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7869 PyObject *resultobj = 0;
7870 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7871 wxWindow *arg2 = (wxWindow *) 0 ;
7872 int arg3 = (int) -1 ;
7873 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7874 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7875 wxSize const &arg5_defvalue = wxDefaultSize ;
7876 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7877 long arg6 = (long) wxLI_HORIZONTAL ;
7878 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7879 wxString *arg7 = (wxString *) &arg7_defvalue ;
7880 bool result;
7881 void *argp1 = 0 ;
7882 int res1 = 0 ;
7883 void *argp2 = 0 ;
7884 int res2 = 0 ;
7885 int val3 ;
7886 int ecode3 = 0 ;
7887 wxPoint temp4 ;
7888 wxSize temp5 ;
7889 long val6 ;
7890 int ecode6 = 0 ;
7891 bool temp7 = false ;
7892 PyObject * obj0 = 0 ;
7893 PyObject * obj1 = 0 ;
7894 PyObject * obj2 = 0 ;
7895 PyObject * obj3 = 0 ;
7896 PyObject * obj4 = 0 ;
7897 PyObject * obj5 = 0 ;
7898 PyObject * obj6 = 0 ;
7899 char * kwnames[] = {
7900 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7901 };
7902
7903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7905 if (!SWIG_IsOK(res1)) {
7906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7907 }
7908 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7910 if (!SWIG_IsOK(res2)) {
7911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7912 }
7913 arg2 = reinterpret_cast< wxWindow * >(argp2);
7914 if (obj2) {
7915 ecode3 = SWIG_AsVal_int(obj2, &val3);
7916 if (!SWIG_IsOK(ecode3)) {
7917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7918 }
7919 arg3 = static_cast< int >(val3);
7920 }
7921 if (obj3) {
7922 {
7923 arg4 = &temp4;
7924 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7925 }
7926 }
7927 if (obj4) {
7928 {
7929 arg5 = &temp5;
7930 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7931 }
7932 }
7933 if (obj5) {
7934 ecode6 = SWIG_AsVal_long(obj5, &val6);
7935 if (!SWIG_IsOK(ecode6)) {
7936 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7937 }
7938 arg6 = static_cast< long >(val6);
7939 }
7940 if (obj6) {
7941 {
7942 arg7 = wxString_in_helper(obj6);
7943 if (arg7 == NULL) SWIG_fail;
7944 temp7 = true;
7945 }
7946 }
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 {
7954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7955 }
7956 {
7957 if (temp7)
7958 delete arg7;
7959 }
7960 return resultobj;
7961 fail:
7962 {
7963 if (temp7)
7964 delete arg7;
7965 }
7966 return NULL;
7967 }
7968
7969
7970 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7971 PyObject *resultobj = 0;
7972 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7973 bool result;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 PyObject *swig_obj[1] ;
7977
7978 if (!args) SWIG_fail;
7979 swig_obj[0] = args;
7980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7981 if (!SWIG_IsOK(res1)) {
7982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7983 }
7984 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 {
7992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7993 }
7994 return resultobj;
7995 fail:
7996 return NULL;
7997 }
7998
7999
8000 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *resultobj = 0;
8002 int result;
8003
8004 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8005 {
8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
8007 result = (int)wxStaticLine::GetDefaultSize();
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 resultobj = SWIG_From_int(static_cast< int >(result));
8012 return resultobj;
8013 fail:
8014 return NULL;
8015 }
8016
8017
8018 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8019 PyObject *resultobj = 0;
8020 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8021 SwigValueWrapper<wxVisualAttributes > result;
8022 int val1 ;
8023 int ecode1 = 0 ;
8024 PyObject * obj0 = 0 ;
8025 char * kwnames[] = {
8026 (char *) "variant", NULL
8027 };
8028
8029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8030 if (obj0) {
8031 ecode1 = SWIG_AsVal_int(obj0, &val1);
8032 if (!SWIG_IsOK(ecode1)) {
8033 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8034 }
8035 arg1 = static_cast< wxWindowVariant >(val1);
8036 }
8037 {
8038 if (!wxPyCheckForApp()) SWIG_fail;
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8041 wxPyEndAllowThreads(__tstate);
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8045 return resultobj;
8046 fail:
8047 return NULL;
8048 }
8049
8050
8051 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8052 PyObject *obj;
8053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8054 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8055 return SWIG_Py_Void();
8056 }
8057
8058 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8059 return SWIG_Python_InitShadowInstance(args);
8060 }
8061
8062 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj = 0;
8064 wxWindow *arg1 = (wxWindow *) 0 ;
8065 int arg2 = (int) -1 ;
8066 wxString const &arg3_defvalue = wxPyEmptyString ;
8067 wxString *arg3 = (wxString *) &arg3_defvalue ;
8068 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8069 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8070 wxSize const &arg5_defvalue = wxDefaultSize ;
8071 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8072 long arg6 = (long) 0 ;
8073 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8074 wxString *arg7 = (wxString *) &arg7_defvalue ;
8075 wxStaticText *result = 0 ;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 int val2 ;
8079 int ecode2 = 0 ;
8080 bool temp3 = false ;
8081 wxPoint temp4 ;
8082 wxSize temp5 ;
8083 long val6 ;
8084 int ecode6 = 0 ;
8085 bool temp7 = false ;
8086 PyObject * obj0 = 0 ;
8087 PyObject * obj1 = 0 ;
8088 PyObject * obj2 = 0 ;
8089 PyObject * obj3 = 0 ;
8090 PyObject * obj4 = 0 ;
8091 PyObject * obj5 = 0 ;
8092 PyObject * obj6 = 0 ;
8093 char * kwnames[] = {
8094 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8095 };
8096
8097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8099 if (!SWIG_IsOK(res1)) {
8100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8101 }
8102 arg1 = reinterpret_cast< wxWindow * >(argp1);
8103 if (obj1) {
8104 ecode2 = SWIG_AsVal_int(obj1, &val2);
8105 if (!SWIG_IsOK(ecode2)) {
8106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8107 }
8108 arg2 = static_cast< int >(val2);
8109 }
8110 if (obj2) {
8111 {
8112 arg3 = wxString_in_helper(obj2);
8113 if (arg3 == NULL) SWIG_fail;
8114 temp3 = true;
8115 }
8116 }
8117 if (obj3) {
8118 {
8119 arg4 = &temp4;
8120 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8121 }
8122 }
8123 if (obj4) {
8124 {
8125 arg5 = &temp5;
8126 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8127 }
8128 }
8129 if (obj5) {
8130 ecode6 = SWIG_AsVal_long(obj5, &val6);
8131 if (!SWIG_IsOK(ecode6)) {
8132 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8133 }
8134 arg6 = static_cast< long >(val6);
8135 }
8136 if (obj6) {
8137 {
8138 arg7 = wxString_in_helper(obj6);
8139 if (arg7 == NULL) SWIG_fail;
8140 temp7 = true;
8141 }
8142 }
8143 {
8144 if (!wxPyCheckForApp()) SWIG_fail;
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8147 wxPyEndAllowThreads(__tstate);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 }
8150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8151 {
8152 if (temp3)
8153 delete arg3;
8154 }
8155 {
8156 if (temp7)
8157 delete arg7;
8158 }
8159 return resultobj;
8160 fail:
8161 {
8162 if (temp3)
8163 delete arg3;
8164 }
8165 {
8166 if (temp7)
8167 delete arg7;
8168 }
8169 return NULL;
8170 }
8171
8172
8173 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8174 PyObject *resultobj = 0;
8175 wxStaticText *result = 0 ;
8176
8177 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8178 {
8179 if (!wxPyCheckForApp()) SWIG_fail;
8180 PyThreadState* __tstate = wxPyBeginAllowThreads();
8181 result = (wxStaticText *)new wxStaticText();
8182 wxPyEndAllowThreads(__tstate);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8186 return resultobj;
8187 fail:
8188 return NULL;
8189 }
8190
8191
8192 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj = 0;
8194 wxStaticText *arg1 = (wxStaticText *) 0 ;
8195 wxWindow *arg2 = (wxWindow *) 0 ;
8196 int arg3 = (int) -1 ;
8197 wxString const &arg4_defvalue = wxPyEmptyString ;
8198 wxString *arg4 = (wxString *) &arg4_defvalue ;
8199 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8200 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8201 wxSize const &arg6_defvalue = wxDefaultSize ;
8202 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8203 long arg7 = (long) 0 ;
8204 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8205 wxString *arg8 = (wxString *) &arg8_defvalue ;
8206 bool result;
8207 void *argp1 = 0 ;
8208 int res1 = 0 ;
8209 void *argp2 = 0 ;
8210 int res2 = 0 ;
8211 int val3 ;
8212 int ecode3 = 0 ;
8213 bool temp4 = false ;
8214 wxPoint temp5 ;
8215 wxSize temp6 ;
8216 long val7 ;
8217 int ecode7 = 0 ;
8218 bool temp8 = false ;
8219 PyObject * obj0 = 0 ;
8220 PyObject * obj1 = 0 ;
8221 PyObject * obj2 = 0 ;
8222 PyObject * obj3 = 0 ;
8223 PyObject * obj4 = 0 ;
8224 PyObject * obj5 = 0 ;
8225 PyObject * obj6 = 0 ;
8226 PyObject * obj7 = 0 ;
8227 char * kwnames[] = {
8228 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8229 };
8230
8231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8233 if (!SWIG_IsOK(res1)) {
8234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8235 }
8236 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8238 if (!SWIG_IsOK(res2)) {
8239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8240 }
8241 arg2 = reinterpret_cast< wxWindow * >(argp2);
8242 if (obj2) {
8243 ecode3 = SWIG_AsVal_int(obj2, &val3);
8244 if (!SWIG_IsOK(ecode3)) {
8245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8246 }
8247 arg3 = static_cast< int >(val3);
8248 }
8249 if (obj3) {
8250 {
8251 arg4 = wxString_in_helper(obj3);
8252 if (arg4 == NULL) SWIG_fail;
8253 temp4 = true;
8254 }
8255 }
8256 if (obj4) {
8257 {
8258 arg5 = &temp5;
8259 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8260 }
8261 }
8262 if (obj5) {
8263 {
8264 arg6 = &temp6;
8265 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8266 }
8267 }
8268 if (obj6) {
8269 ecode7 = SWIG_AsVal_long(obj6, &val7);
8270 if (!SWIG_IsOK(ecode7)) {
8271 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8272 }
8273 arg7 = static_cast< long >(val7);
8274 }
8275 if (obj7) {
8276 {
8277 arg8 = wxString_in_helper(obj7);
8278 if (arg8 == NULL) SWIG_fail;
8279 temp8 = true;
8280 }
8281 }
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8285 wxPyEndAllowThreads(__tstate);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 {
8289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8290 }
8291 {
8292 if (temp4)
8293 delete arg4;
8294 }
8295 {
8296 if (temp8)
8297 delete arg8;
8298 }
8299 return resultobj;
8300 fail:
8301 {
8302 if (temp4)
8303 delete arg4;
8304 }
8305 {
8306 if (temp8)
8307 delete arg8;
8308 }
8309 return NULL;
8310 }
8311
8312
8313 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8314 PyObject *resultobj = 0;
8315 wxStaticText *arg1 = (wxStaticText *) 0 ;
8316 int arg2 ;
8317 void *argp1 = 0 ;
8318 int res1 = 0 ;
8319 int val2 ;
8320 int ecode2 = 0 ;
8321 PyObject * obj0 = 0 ;
8322 PyObject * obj1 = 0 ;
8323 char * kwnames[] = {
8324 (char *) "self",(char *) "width", NULL
8325 };
8326
8327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8329 if (!SWIG_IsOK(res1)) {
8330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8331 }
8332 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8333 ecode2 = SWIG_AsVal_int(obj1, &val2);
8334 if (!SWIG_IsOK(ecode2)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8336 }
8337 arg2 = static_cast< int >(val2);
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 (arg1)->Wrap(arg2);
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 resultobj = SWIG_Py_Void();
8345 return resultobj;
8346 fail:
8347 return NULL;
8348 }
8349
8350
8351 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj = 0;
8353 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8354 SwigValueWrapper<wxVisualAttributes > result;
8355 int val1 ;
8356 int ecode1 = 0 ;
8357 PyObject * obj0 = 0 ;
8358 char * kwnames[] = {
8359 (char *) "variant", NULL
8360 };
8361
8362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8363 if (obj0) {
8364 ecode1 = SWIG_AsVal_int(obj0, &val1);
8365 if (!SWIG_IsOK(ecode1)) {
8366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8367 }
8368 arg1 = static_cast< wxWindowVariant >(val1);
8369 }
8370 {
8371 if (!wxPyCheckForApp()) SWIG_fail;
8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
8373 result = wxStaticText::GetClassDefaultAttributes(arg1);
8374 wxPyEndAllowThreads(__tstate);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8378 return resultobj;
8379 fail:
8380 return NULL;
8381 }
8382
8383
8384 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8385 PyObject *obj;
8386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8387 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8388 return SWIG_Py_Void();
8389 }
8390
8391 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8392 return SWIG_Python_InitShadowInstance(args);
8393 }
8394
8395 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj = 0;
8397 wxWindow *arg1 = (wxWindow *) 0 ;
8398 int arg2 = (int) -1 ;
8399 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8400 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8401 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8402 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8403 wxSize const &arg5_defvalue = wxDefaultSize ;
8404 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8405 long arg6 = (long) 0 ;
8406 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8407 wxString *arg7 = (wxString *) &arg7_defvalue ;
8408 wxStaticBitmap *result = 0 ;
8409 void *argp1 = 0 ;
8410 int res1 = 0 ;
8411 int val2 ;
8412 int ecode2 = 0 ;
8413 void *argp3 = 0 ;
8414 int res3 = 0 ;
8415 wxPoint temp4 ;
8416 wxSize temp5 ;
8417 long val6 ;
8418 int ecode6 = 0 ;
8419 bool temp7 = false ;
8420 PyObject * obj0 = 0 ;
8421 PyObject * obj1 = 0 ;
8422 PyObject * obj2 = 0 ;
8423 PyObject * obj3 = 0 ;
8424 PyObject * obj4 = 0 ;
8425 PyObject * obj5 = 0 ;
8426 PyObject * obj6 = 0 ;
8427 char * kwnames[] = {
8428 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8429 };
8430
8431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8433 if (!SWIG_IsOK(res1)) {
8434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8435 }
8436 arg1 = reinterpret_cast< wxWindow * >(argp1);
8437 if (obj1) {
8438 ecode2 = SWIG_AsVal_int(obj1, &val2);
8439 if (!SWIG_IsOK(ecode2)) {
8440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8441 }
8442 arg2 = static_cast< int >(val2);
8443 }
8444 if (obj2) {
8445 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8446 if (!SWIG_IsOK(res3)) {
8447 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8448 }
8449 if (!argp3) {
8450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8451 }
8452 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8453 }
8454 if (obj3) {
8455 {
8456 arg4 = &temp4;
8457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8458 }
8459 }
8460 if (obj4) {
8461 {
8462 arg5 = &temp5;
8463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8464 }
8465 }
8466 if (obj5) {
8467 ecode6 = SWIG_AsVal_long(obj5, &val6);
8468 if (!SWIG_IsOK(ecode6)) {
8469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8470 }
8471 arg6 = static_cast< long >(val6);
8472 }
8473 if (obj6) {
8474 {
8475 arg7 = wxString_in_helper(obj6);
8476 if (arg7 == NULL) SWIG_fail;
8477 temp7 = true;
8478 }
8479 }
8480 {
8481 if (!wxPyCheckForApp()) SWIG_fail;
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8488 {
8489 if (temp7)
8490 delete arg7;
8491 }
8492 return resultobj;
8493 fail:
8494 {
8495 if (temp7)
8496 delete arg7;
8497 }
8498 return NULL;
8499 }
8500
8501
8502 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8503 PyObject *resultobj = 0;
8504 wxStaticBitmap *result = 0 ;
8505
8506 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8507 {
8508 if (!wxPyCheckForApp()) SWIG_fail;
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = (wxStaticBitmap *)new wxStaticBitmap();
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8515 return resultobj;
8516 fail:
8517 return NULL;
8518 }
8519
8520
8521 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj = 0;
8523 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8524 wxWindow *arg2 = (wxWindow *) 0 ;
8525 int arg3 = (int) -1 ;
8526 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8527 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8528 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8529 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8530 wxSize const &arg6_defvalue = wxDefaultSize ;
8531 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8532 long arg7 = (long) 0 ;
8533 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8534 wxString *arg8 = (wxString *) &arg8_defvalue ;
8535 bool result;
8536 void *argp1 = 0 ;
8537 int res1 = 0 ;
8538 void *argp2 = 0 ;
8539 int res2 = 0 ;
8540 int val3 ;
8541 int ecode3 = 0 ;
8542 void *argp4 = 0 ;
8543 int res4 = 0 ;
8544 wxPoint temp5 ;
8545 wxSize temp6 ;
8546 long val7 ;
8547 int ecode7 = 0 ;
8548 bool temp8 = false ;
8549 PyObject * obj0 = 0 ;
8550 PyObject * obj1 = 0 ;
8551 PyObject * obj2 = 0 ;
8552 PyObject * obj3 = 0 ;
8553 PyObject * obj4 = 0 ;
8554 PyObject * obj5 = 0 ;
8555 PyObject * obj6 = 0 ;
8556 PyObject * obj7 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8565 }
8566 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8568 if (!SWIG_IsOK(res2)) {
8569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8570 }
8571 arg2 = reinterpret_cast< wxWindow * >(argp2);
8572 if (obj2) {
8573 ecode3 = SWIG_AsVal_int(obj2, &val3);
8574 if (!SWIG_IsOK(ecode3)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8576 }
8577 arg3 = static_cast< int >(val3);
8578 }
8579 if (obj3) {
8580 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8581 if (!SWIG_IsOK(res4)) {
8582 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8583 }
8584 if (!argp4) {
8585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8586 }
8587 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8588 }
8589 if (obj4) {
8590 {
8591 arg5 = &temp5;
8592 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8593 }
8594 }
8595 if (obj5) {
8596 {
8597 arg6 = &temp6;
8598 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8599 }
8600 }
8601 if (obj6) {
8602 ecode7 = SWIG_AsVal_long(obj6, &val7);
8603 if (!SWIG_IsOK(ecode7)) {
8604 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8605 }
8606 arg7 = static_cast< long >(val7);
8607 }
8608 if (obj7) {
8609 {
8610 arg8 = wxString_in_helper(obj7);
8611 if (arg8 == NULL) SWIG_fail;
8612 temp8 = true;
8613 }
8614 }
8615 {
8616 PyThreadState* __tstate = wxPyBeginAllowThreads();
8617 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8618 wxPyEndAllowThreads(__tstate);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8623 }
8624 {
8625 if (temp8)
8626 delete arg8;
8627 }
8628 return resultobj;
8629 fail:
8630 {
8631 if (temp8)
8632 delete arg8;
8633 }
8634 return NULL;
8635 }
8636
8637
8638 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8639 PyObject *resultobj = 0;
8640 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8641 wxBitmap result;
8642 void *argp1 = 0 ;
8643 int res1 = 0 ;
8644 PyObject *swig_obj[1] ;
8645
8646 if (!args) SWIG_fail;
8647 swig_obj[0] = args;
8648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8649 if (!SWIG_IsOK(res1)) {
8650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8651 }
8652 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8653 {
8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
8655 result = (arg1)->GetBitmap();
8656 wxPyEndAllowThreads(__tstate);
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8660 return resultobj;
8661 fail:
8662 return NULL;
8663 }
8664
8665
8666 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj = 0;
8668 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8669 wxBitmap *arg2 = 0 ;
8670 void *argp1 = 0 ;
8671 int res1 = 0 ;
8672 void *argp2 = 0 ;
8673 int res2 = 0 ;
8674 PyObject * obj0 = 0 ;
8675 PyObject * obj1 = 0 ;
8676 char * kwnames[] = {
8677 (char *) "self",(char *) "bitmap", NULL
8678 };
8679
8680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8682 if (!SWIG_IsOK(res1)) {
8683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8684 }
8685 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8687 if (!SWIG_IsOK(res2)) {
8688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8689 }
8690 if (!argp2) {
8691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8692 }
8693 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = SWIG_Py_Void();
8701 return resultobj;
8702 fail:
8703 return NULL;
8704 }
8705
8706
8707 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj = 0;
8709 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8710 wxIcon *arg2 = 0 ;
8711 void *argp1 = 0 ;
8712 int res1 = 0 ;
8713 void *argp2 = 0 ;
8714 int res2 = 0 ;
8715 PyObject * obj0 = 0 ;
8716 PyObject * obj1 = 0 ;
8717 char * kwnames[] = {
8718 (char *) "self",(char *) "icon", NULL
8719 };
8720
8721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8723 if (!SWIG_IsOK(res1)) {
8724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8725 }
8726 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8728 if (!SWIG_IsOK(res2)) {
8729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8730 }
8731 if (!argp2) {
8732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8733 }
8734 arg2 = reinterpret_cast< wxIcon * >(argp2);
8735 {
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 (arg1)->SetIcon((wxIcon const &)*arg2);
8738 wxPyEndAllowThreads(__tstate);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 }
8741 resultobj = SWIG_Py_Void();
8742 return resultobj;
8743 fail:
8744 return NULL;
8745 }
8746
8747
8748 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8749 PyObject *resultobj = 0;
8750 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8751 SwigValueWrapper<wxVisualAttributes > result;
8752 int val1 ;
8753 int ecode1 = 0 ;
8754 PyObject * obj0 = 0 ;
8755 char * kwnames[] = {
8756 (char *) "variant", NULL
8757 };
8758
8759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8760 if (obj0) {
8761 ecode1 = SWIG_AsVal_int(obj0, &val1);
8762 if (!SWIG_IsOK(ecode1)) {
8763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8764 }
8765 arg1 = static_cast< wxWindowVariant >(val1);
8766 }
8767 {
8768 if (!wxPyCheckForApp()) SWIG_fail;
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8775 return resultobj;
8776 fail:
8777 return NULL;
8778 }
8779
8780
8781 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8782 PyObject *obj;
8783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8784 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8785 return SWIG_Py_Void();
8786 }
8787
8788 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8789 return SWIG_Python_InitShadowInstance(args);
8790 }
8791
8792 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8793 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8794 return 1;
8795 }
8796
8797
8798 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8799 PyObject *pyobj = 0;
8800
8801 {
8802 #if wxUSE_UNICODE
8803 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8804 #else
8805 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8806 #endif
8807 }
8808 return pyobj;
8809 }
8810
8811
8812 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj = 0;
8814 wxWindow *arg1 = (wxWindow *) 0 ;
8815 int arg2 = (int) -1 ;
8816 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8817 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8818 wxSize const &arg4_defvalue = wxDefaultSize ;
8819 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8820 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8821 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8822 long arg6 = (long) 0 ;
8823 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8824 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8825 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8826 wxString *arg8 = (wxString *) &arg8_defvalue ;
8827 wxListBox *result = 0 ;
8828 void *argp1 = 0 ;
8829 int res1 = 0 ;
8830 int val2 ;
8831 int ecode2 = 0 ;
8832 wxPoint temp3 ;
8833 wxSize temp4 ;
8834 bool temp5 = false ;
8835 long val6 ;
8836 int ecode6 = 0 ;
8837 void *argp7 = 0 ;
8838 int res7 = 0 ;
8839 bool temp8 = false ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 PyObject * obj2 = 0 ;
8843 PyObject * obj3 = 0 ;
8844 PyObject * obj4 = 0 ;
8845 PyObject * obj5 = 0 ;
8846 PyObject * obj6 = 0 ;
8847 PyObject * obj7 = 0 ;
8848 char * kwnames[] = {
8849 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8850 };
8851
8852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8854 if (!SWIG_IsOK(res1)) {
8855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8856 }
8857 arg1 = reinterpret_cast< wxWindow * >(argp1);
8858 if (obj1) {
8859 ecode2 = SWIG_AsVal_int(obj1, &val2);
8860 if (!SWIG_IsOK(ecode2)) {
8861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8862 }
8863 arg2 = static_cast< int >(val2);
8864 }
8865 if (obj2) {
8866 {
8867 arg3 = &temp3;
8868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8869 }
8870 }
8871 if (obj3) {
8872 {
8873 arg4 = &temp4;
8874 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8875 }
8876 }
8877 if (obj4) {
8878 {
8879 if (! PySequence_Check(obj4)) {
8880 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8881 SWIG_fail;
8882 }
8883 arg5 = new wxArrayString;
8884 temp5 = true;
8885 int i, len=PySequence_Length(obj4);
8886 for (i=0; i<len; i++) {
8887 PyObject* item = PySequence_GetItem(obj4, i);
8888 wxString* s = wxString_in_helper(item);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 arg5->Add(*s);
8891 delete s;
8892 Py_DECREF(item);
8893 }
8894 }
8895 }
8896 if (obj5) {
8897 ecode6 = SWIG_AsVal_long(obj5, &val6);
8898 if (!SWIG_IsOK(ecode6)) {
8899 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8900 }
8901 arg6 = static_cast< long >(val6);
8902 }
8903 if (obj6) {
8904 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8905 if (!SWIG_IsOK(res7)) {
8906 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8907 }
8908 if (!argp7) {
8909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8910 }
8911 arg7 = reinterpret_cast< wxValidator * >(argp7);
8912 }
8913 if (obj7) {
8914 {
8915 arg8 = wxString_in_helper(obj7);
8916 if (arg8 == NULL) SWIG_fail;
8917 temp8 = true;
8918 }
8919 }
8920 {
8921 if (!wxPyCheckForApp()) SWIG_fail;
8922 PyThreadState* __tstate = wxPyBeginAllowThreads();
8923 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8928 {
8929 if (temp5) delete arg5;
8930 }
8931 {
8932 if (temp8)
8933 delete arg8;
8934 }
8935 return resultobj;
8936 fail:
8937 {
8938 if (temp5) delete arg5;
8939 }
8940 {
8941 if (temp8)
8942 delete arg8;
8943 }
8944 return NULL;
8945 }
8946
8947
8948 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8949 PyObject *resultobj = 0;
8950 wxListBox *result = 0 ;
8951
8952 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8953 {
8954 if (!wxPyCheckForApp()) SWIG_fail;
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = (wxListBox *)new wxListBox();
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8961 return resultobj;
8962 fail:
8963 return NULL;
8964 }
8965
8966
8967 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj = 0;
8969 wxListBox *arg1 = (wxListBox *) 0 ;
8970 wxWindow *arg2 = (wxWindow *) 0 ;
8971 int arg3 = (int) -1 ;
8972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8974 wxSize const &arg5_defvalue = wxDefaultSize ;
8975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8976 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8977 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8978 long arg7 = (long) 0 ;
8979 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8980 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8981 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8982 wxString *arg9 = (wxString *) &arg9_defvalue ;
8983 bool result;
8984 void *argp1 = 0 ;
8985 int res1 = 0 ;
8986 void *argp2 = 0 ;
8987 int res2 = 0 ;
8988 int val3 ;
8989 int ecode3 = 0 ;
8990 wxPoint temp4 ;
8991 wxSize temp5 ;
8992 bool temp6 = false ;
8993 long val7 ;
8994 int ecode7 = 0 ;
8995 void *argp8 = 0 ;
8996 int res8 = 0 ;
8997 bool temp9 = false ;
8998 PyObject * obj0 = 0 ;
8999 PyObject * obj1 = 0 ;
9000 PyObject * obj2 = 0 ;
9001 PyObject * obj3 = 0 ;
9002 PyObject * obj4 = 0 ;
9003 PyObject * obj5 = 0 ;
9004 PyObject * obj6 = 0 ;
9005 PyObject * obj7 = 0 ;
9006 PyObject * obj8 = 0 ;
9007 char * kwnames[] = {
9008 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9009 };
9010
9011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9013 if (!SWIG_IsOK(res1)) {
9014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9015 }
9016 arg1 = reinterpret_cast< wxListBox * >(argp1);
9017 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9018 if (!SWIG_IsOK(res2)) {
9019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9020 }
9021 arg2 = reinterpret_cast< wxWindow * >(argp2);
9022 if (obj2) {
9023 ecode3 = SWIG_AsVal_int(obj2, &val3);
9024 if (!SWIG_IsOK(ecode3)) {
9025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9026 }
9027 arg3 = static_cast< int >(val3);
9028 }
9029 if (obj3) {
9030 {
9031 arg4 = &temp4;
9032 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9033 }
9034 }
9035 if (obj4) {
9036 {
9037 arg5 = &temp5;
9038 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9039 }
9040 }
9041 if (obj5) {
9042 {
9043 if (! PySequence_Check(obj5)) {
9044 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9045 SWIG_fail;
9046 }
9047 arg6 = new wxArrayString;
9048 temp6 = true;
9049 int i, len=PySequence_Length(obj5);
9050 for (i=0; i<len; i++) {
9051 PyObject* item = PySequence_GetItem(obj5, i);
9052 wxString* s = wxString_in_helper(item);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 arg6->Add(*s);
9055 delete s;
9056 Py_DECREF(item);
9057 }
9058 }
9059 }
9060 if (obj6) {
9061 ecode7 = SWIG_AsVal_long(obj6, &val7);
9062 if (!SWIG_IsOK(ecode7)) {
9063 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9064 }
9065 arg7 = static_cast< long >(val7);
9066 }
9067 if (obj7) {
9068 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9069 if (!SWIG_IsOK(res8)) {
9070 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9071 }
9072 if (!argp8) {
9073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9074 }
9075 arg8 = reinterpret_cast< wxValidator * >(argp8);
9076 }
9077 if (obj8) {
9078 {
9079 arg9 = wxString_in_helper(obj8);
9080 if (arg9 == NULL) SWIG_fail;
9081 temp9 = true;
9082 }
9083 }
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 {
9091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9092 }
9093 {
9094 if (temp6) delete arg6;
9095 }
9096 {
9097 if (temp9)
9098 delete arg9;
9099 }
9100 return resultobj;
9101 fail:
9102 {
9103 if (temp6) delete arg6;
9104 }
9105 {
9106 if (temp9)
9107 delete arg9;
9108 }
9109 return NULL;
9110 }
9111
9112
9113 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9114 PyObject *resultobj = 0;
9115 wxListBox *arg1 = (wxListBox *) 0 ;
9116 wxString *arg2 = 0 ;
9117 int arg3 ;
9118 PyObject *arg4 = (PyObject *) NULL ;
9119 void *argp1 = 0 ;
9120 int res1 = 0 ;
9121 bool temp2 = false ;
9122 int val3 ;
9123 int ecode3 = 0 ;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 PyObject * obj2 = 0 ;
9127 PyObject * obj3 = 0 ;
9128 char * kwnames[] = {
9129 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9130 };
9131
9132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9134 if (!SWIG_IsOK(res1)) {
9135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9136 }
9137 arg1 = reinterpret_cast< wxListBox * >(argp1);
9138 {
9139 arg2 = wxString_in_helper(obj1);
9140 if (arg2 == NULL) SWIG_fail;
9141 temp2 = true;
9142 }
9143 ecode3 = SWIG_AsVal_int(obj2, &val3);
9144 if (!SWIG_IsOK(ecode3)) {
9145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9146 }
9147 arg3 = static_cast< int >(val3);
9148 if (obj3) {
9149 arg4 = obj3;
9150 }
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 resultobj = SWIG_Py_Void();
9158 {
9159 if (temp2)
9160 delete arg2;
9161 }
9162 return resultobj;
9163 fail:
9164 {
9165 if (temp2)
9166 delete arg2;
9167 }
9168 return NULL;
9169 }
9170
9171
9172 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9173 PyObject *resultobj = 0;
9174 wxListBox *arg1 = (wxListBox *) 0 ;
9175 wxArrayString *arg2 = 0 ;
9176 unsigned int arg3 ;
9177 void *argp1 = 0 ;
9178 int res1 = 0 ;
9179 bool temp2 = false ;
9180 unsigned int val3 ;
9181 int ecode3 = 0 ;
9182 PyObject * obj0 = 0 ;
9183 PyObject * obj1 = 0 ;
9184 PyObject * obj2 = 0 ;
9185 char * kwnames[] = {
9186 (char *) "self",(char *) "items",(char *) "pos", NULL
9187 };
9188
9189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9191 if (!SWIG_IsOK(res1)) {
9192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9193 }
9194 arg1 = reinterpret_cast< wxListBox * >(argp1);
9195 {
9196 if (! PySequence_Check(obj1)) {
9197 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9198 SWIG_fail;
9199 }
9200 arg2 = new wxArrayString;
9201 temp2 = true;
9202 int i, len=PySequence_Length(obj1);
9203 for (i=0; i<len; i++) {
9204 PyObject* item = PySequence_GetItem(obj1, i);
9205 wxString* s = wxString_in_helper(item);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 arg2->Add(*s);
9208 delete s;
9209 Py_DECREF(item);
9210 }
9211 }
9212 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9213 if (!SWIG_IsOK(ecode3)) {
9214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9215 }
9216 arg3 = static_cast< unsigned int >(val3);
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_Py_Void();
9224 {
9225 if (temp2) delete arg2;
9226 }
9227 return resultobj;
9228 fail:
9229 {
9230 if (temp2) delete arg2;
9231 }
9232 return NULL;
9233 }
9234
9235
9236 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj = 0;
9238 wxListBox *arg1 = (wxListBox *) 0 ;
9239 wxArrayString *arg2 = 0 ;
9240 void *argp1 = 0 ;
9241 int res1 = 0 ;
9242 bool temp2 = false ;
9243 PyObject * obj0 = 0 ;
9244 PyObject * obj1 = 0 ;
9245 char * kwnames[] = {
9246 (char *) "self",(char *) "items", NULL
9247 };
9248
9249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9251 if (!SWIG_IsOK(res1)) {
9252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9253 }
9254 arg1 = reinterpret_cast< wxListBox * >(argp1);
9255 {
9256 if (! PySequence_Check(obj1)) {
9257 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9258 SWIG_fail;
9259 }
9260 arg2 = new wxArrayString;
9261 temp2 = true;
9262 int i, len=PySequence_Length(obj1);
9263 for (i=0; i<len; i++) {
9264 PyObject* item = PySequence_GetItem(obj1, i);
9265 wxString* s = wxString_in_helper(item);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 arg2->Add(*s);
9268 delete s;
9269 Py_DECREF(item);
9270 }
9271 }
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 (arg1)->Set((wxArrayString const &)*arg2);
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 resultobj = SWIG_Py_Void();
9279 {
9280 if (temp2) delete arg2;
9281 }
9282 return resultobj;
9283 fail:
9284 {
9285 if (temp2) delete arg2;
9286 }
9287 return NULL;
9288 }
9289
9290
9291 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj = 0;
9293 wxListBox *arg1 = (wxListBox *) 0 ;
9294 int arg2 ;
9295 bool result;
9296 void *argp1 = 0 ;
9297 int res1 = 0 ;
9298 int val2 ;
9299 int ecode2 = 0 ;
9300 PyObject * obj0 = 0 ;
9301 PyObject * obj1 = 0 ;
9302 char * kwnames[] = {
9303 (char *) "self",(char *) "n", NULL
9304 };
9305
9306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9310 }
9311 arg1 = reinterpret_cast< wxListBox * >(argp1);
9312 ecode2 = SWIG_AsVal_int(obj1, &val2);
9313 if (!SWIG_IsOK(ecode2)) {
9314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9315 }
9316 arg2 = static_cast< int >(val2);
9317 {
9318 PyThreadState* __tstate = wxPyBeginAllowThreads();
9319 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 {
9324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9325 }
9326 return resultobj;
9327 fail:
9328 return NULL;
9329 }
9330
9331
9332 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj = 0;
9334 wxListBox *arg1 = (wxListBox *) 0 ;
9335 int arg2 ;
9336 bool arg3 = (bool) true ;
9337 void *argp1 = 0 ;
9338 int res1 = 0 ;
9339 int val2 ;
9340 int ecode2 = 0 ;
9341 bool val3 ;
9342 int ecode3 = 0 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 PyObject * obj2 = 0 ;
9346 char * kwnames[] = {
9347 (char *) "self",(char *) "n",(char *) "select", NULL
9348 };
9349
9350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9354 }
9355 arg1 = reinterpret_cast< wxListBox * >(argp1);
9356 ecode2 = SWIG_AsVal_int(obj1, &val2);
9357 if (!SWIG_IsOK(ecode2)) {
9358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9359 }
9360 arg2 = static_cast< int >(val2);
9361 if (obj2) {
9362 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9363 if (!SWIG_IsOK(ecode3)) {
9364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9365 }
9366 arg3 = static_cast< bool >(val3);
9367 }
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 (arg1)->SetSelection(arg2,arg3);
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 }
9374 resultobj = SWIG_Py_Void();
9375 return resultobj;
9376 fail:
9377 return NULL;
9378 }
9379
9380
9381 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9382 PyObject *resultobj = 0;
9383 wxListBox *arg1 = (wxListBox *) 0 ;
9384 int arg2 ;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 int val2 ;
9388 int ecode2 = 0 ;
9389 PyObject * obj0 = 0 ;
9390 PyObject * obj1 = 0 ;
9391 char * kwnames[] = {
9392 (char *) "self",(char *) "n", NULL
9393 };
9394
9395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9397 if (!SWIG_IsOK(res1)) {
9398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9399 }
9400 arg1 = reinterpret_cast< wxListBox * >(argp1);
9401 ecode2 = SWIG_AsVal_int(obj1, &val2);
9402 if (!SWIG_IsOK(ecode2)) {
9403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9404 }
9405 arg2 = static_cast< int >(val2);
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 (arg1)->Select(arg2);
9409 wxPyEndAllowThreads(__tstate);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 resultobj = SWIG_Py_Void();
9413 return resultobj;
9414 fail:
9415 return NULL;
9416 }
9417
9418
9419 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 wxListBox *arg1 = (wxListBox *) 0 ;
9422 int arg2 ;
9423 void *argp1 = 0 ;
9424 int res1 = 0 ;
9425 int val2 ;
9426 int ecode2 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char * kwnames[] = {
9430 (char *) "self",(char *) "n", NULL
9431 };
9432
9433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9435 if (!SWIG_IsOK(res1)) {
9436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9437 }
9438 arg1 = reinterpret_cast< wxListBox * >(argp1);
9439 ecode2 = SWIG_AsVal_int(obj1, &val2);
9440 if (!SWIG_IsOK(ecode2)) {
9441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9442 }
9443 arg2 = static_cast< int >(val2);
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 (arg1)->Deselect(arg2);
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_Py_Void();
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj = 0;
9459 wxListBox *arg1 = (wxListBox *) 0 ;
9460 int arg2 = (int) -1 ;
9461 void *argp1 = 0 ;
9462 int res1 = 0 ;
9463 int val2 ;
9464 int ecode2 = 0 ;
9465 PyObject * obj0 = 0 ;
9466 PyObject * obj1 = 0 ;
9467 char * kwnames[] = {
9468 (char *) "self",(char *) "itemToLeaveSelected", NULL
9469 };
9470
9471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9473 if (!SWIG_IsOK(res1)) {
9474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9475 }
9476 arg1 = reinterpret_cast< wxListBox * >(argp1);
9477 if (obj1) {
9478 ecode2 = SWIG_AsVal_int(obj1, &val2);
9479 if (!SWIG_IsOK(ecode2)) {
9480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9481 }
9482 arg2 = static_cast< int >(val2);
9483 }
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 (arg1)->DeselectAll(arg2);
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_Py_Void();
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj = 0;
9499 wxListBox *arg1 = (wxListBox *) 0 ;
9500 wxString *arg2 = 0 ;
9501 bool arg3 = (bool) true ;
9502 bool result;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 bool temp2 = false ;
9506 bool val3 ;
9507 int ecode3 = 0 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 PyObject * obj2 = 0 ;
9511 char * kwnames[] = {
9512 (char *) "self",(char *) "s",(char *) "select", NULL
9513 };
9514
9515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9517 if (!SWIG_IsOK(res1)) {
9518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9519 }
9520 arg1 = reinterpret_cast< wxListBox * >(argp1);
9521 {
9522 arg2 = wxString_in_helper(obj1);
9523 if (arg2 == NULL) SWIG_fail;
9524 temp2 = true;
9525 }
9526 if (obj2) {
9527 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9528 if (!SWIG_IsOK(ecode3)) {
9529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9530 }
9531 arg3 = static_cast< bool >(val3);
9532 }
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 {
9540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9541 }
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
9546 return resultobj;
9547 fail:
9548 {
9549 if (temp2)
9550 delete arg2;
9551 }
9552 return NULL;
9553 }
9554
9555
9556 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9557 PyObject *resultobj = 0;
9558 wxListBox *arg1 = (wxListBox *) 0 ;
9559 PyObject *result = 0 ;
9560 void *argp1 = 0 ;
9561 int res1 = 0 ;
9562 PyObject *swig_obj[1] ;
9563
9564 if (!args) SWIG_fail;
9565 swig_obj[0] = args;
9566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9567 if (!SWIG_IsOK(res1)) {
9568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9569 }
9570 arg1 = reinterpret_cast< wxListBox * >(argp1);
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 result = (PyObject *)wxListBox_GetSelections(arg1);
9574 wxPyEndAllowThreads(__tstate);
9575 if (PyErr_Occurred()) SWIG_fail;
9576 }
9577 resultobj = result;
9578 return resultobj;
9579 fail:
9580 return NULL;
9581 }
9582
9583
9584 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9585 PyObject *resultobj = 0;
9586 wxListBox *arg1 = (wxListBox *) 0 ;
9587 int arg2 ;
9588 void *argp1 = 0 ;
9589 int res1 = 0 ;
9590 int val2 ;
9591 int ecode2 = 0 ;
9592 PyObject * obj0 = 0 ;
9593 PyObject * obj1 = 0 ;
9594 char * kwnames[] = {
9595 (char *) "self",(char *) "n", NULL
9596 };
9597
9598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9600 if (!SWIG_IsOK(res1)) {
9601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9602 }
9603 arg1 = reinterpret_cast< wxListBox * >(argp1);
9604 ecode2 = SWIG_AsVal_int(obj1, &val2);
9605 if (!SWIG_IsOK(ecode2)) {
9606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9607 }
9608 arg2 = static_cast< int >(val2);
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 (arg1)->SetFirstItem(arg2);
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_Py_Void();
9616 return resultobj;
9617 fail:
9618 return NULL;
9619 }
9620
9621
9622 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj = 0;
9624 wxListBox *arg1 = (wxListBox *) 0 ;
9625 wxString *arg2 = 0 ;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 bool temp2 = false ;
9629 PyObject * obj0 = 0 ;
9630 PyObject * obj1 = 0 ;
9631 char * kwnames[] = {
9632 (char *) "self",(char *) "s", NULL
9633 };
9634
9635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9639 }
9640 arg1 = reinterpret_cast< wxListBox * >(argp1);
9641 {
9642 arg2 = wxString_in_helper(obj1);
9643 if (arg2 == NULL) SWIG_fail;
9644 temp2 = true;
9645 }
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 (arg1)->SetFirstItem((wxString const &)*arg2);
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 resultobj = SWIG_Py_Void();
9653 {
9654 if (temp2)
9655 delete arg2;
9656 }
9657 return resultobj;
9658 fail:
9659 {
9660 if (temp2)
9661 delete arg2;
9662 }
9663 return NULL;
9664 }
9665
9666
9667 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj = 0;
9669 wxListBox *arg1 = (wxListBox *) 0 ;
9670 int arg2 ;
9671 void *argp1 = 0 ;
9672 int res1 = 0 ;
9673 int val2 ;
9674 int ecode2 = 0 ;
9675 PyObject * obj0 = 0 ;
9676 PyObject * obj1 = 0 ;
9677 char * kwnames[] = {
9678 (char *) "self",(char *) "n", NULL
9679 };
9680
9681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9683 if (!SWIG_IsOK(res1)) {
9684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9685 }
9686 arg1 = reinterpret_cast< wxListBox * >(argp1);
9687 ecode2 = SWIG_AsVal_int(obj1, &val2);
9688 if (!SWIG_IsOK(ecode2)) {
9689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9690 }
9691 arg2 = static_cast< int >(val2);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 (arg1)->EnsureVisible(arg2);
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_Py_Void();
9699 return resultobj;
9700 fail:
9701 return NULL;
9702 }
9703
9704
9705 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9706 PyObject *resultobj = 0;
9707 wxListBox *arg1 = (wxListBox *) 0 ;
9708 wxString *arg2 = 0 ;
9709 void *argp1 = 0 ;
9710 int res1 = 0 ;
9711 bool temp2 = false ;
9712 PyObject * obj0 = 0 ;
9713 PyObject * obj1 = 0 ;
9714 char * kwnames[] = {
9715 (char *) "self",(char *) "s", NULL
9716 };
9717
9718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9720 if (!SWIG_IsOK(res1)) {
9721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9722 }
9723 arg1 = reinterpret_cast< wxListBox * >(argp1);
9724 {
9725 arg2 = wxString_in_helper(obj1);
9726 if (arg2 == NULL) SWIG_fail;
9727 temp2 = true;
9728 }
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9732 wxPyEndAllowThreads(__tstate);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 }
9735 resultobj = SWIG_Py_Void();
9736 {
9737 if (temp2)
9738 delete arg2;
9739 }
9740 return resultobj;
9741 fail:
9742 {
9743 if (temp2)
9744 delete arg2;
9745 }
9746 return NULL;
9747 }
9748
9749
9750 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9751 PyObject *resultobj = 0;
9752 wxListBox *arg1 = (wxListBox *) 0 ;
9753 bool result;
9754 void *argp1 = 0 ;
9755 int res1 = 0 ;
9756 PyObject *swig_obj[1] ;
9757
9758 if (!args) SWIG_fail;
9759 swig_obj[0] = args;
9760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9761 if (!SWIG_IsOK(res1)) {
9762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9763 }
9764 arg1 = reinterpret_cast< wxListBox * >(argp1);
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 result = (bool)((wxListBox const *)arg1)->IsSorted();
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) SWIG_fail;
9770 }
9771 {
9772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9773 }
9774 return resultobj;
9775 fail:
9776 return NULL;
9777 }
9778
9779
9780 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9781 PyObject *resultobj = 0;
9782 wxListBox *arg1 = (wxListBox *) 0 ;
9783 wxPoint *arg2 = 0 ;
9784 int result;
9785 void *argp1 = 0 ;
9786 int res1 = 0 ;
9787 wxPoint temp2 ;
9788 PyObject * obj0 = 0 ;
9789 PyObject * obj1 = 0 ;
9790 char * kwnames[] = {
9791 (char *) "self",(char *) "pt", NULL
9792 };
9793
9794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9796 if (!SWIG_IsOK(res1)) {
9797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9798 }
9799 arg1 = reinterpret_cast< wxListBox * >(argp1);
9800 {
9801 arg2 = &temp2;
9802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9803 }
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 resultobj = SWIG_From_int(static_cast< int >(result));
9811 return resultobj;
9812 fail:
9813 return NULL;
9814 }
9815
9816
9817 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj = 0;
9819 wxListBox *arg1 = (wxListBox *) 0 ;
9820 int arg2 ;
9821 wxColour *arg3 = 0 ;
9822 void *argp1 = 0 ;
9823 int res1 = 0 ;
9824 int val2 ;
9825 int ecode2 = 0 ;
9826 wxColour temp3 ;
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 PyObject * obj2 = 0 ;
9830 char * kwnames[] = {
9831 (char *) "self",(char *) "item",(char *) "c", NULL
9832 };
9833
9834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9836 if (!SWIG_IsOK(res1)) {
9837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9838 }
9839 arg1 = reinterpret_cast< wxListBox * >(argp1);
9840 ecode2 = SWIG_AsVal_int(obj1, &val2);
9841 if (!SWIG_IsOK(ecode2)) {
9842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9843 }
9844 arg2 = static_cast< int >(val2);
9845 {
9846 arg3 = &temp3;
9847 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = SWIG_Py_Void();
9856 return resultobj;
9857 fail:
9858 return NULL;
9859 }
9860
9861
9862 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj = 0;
9864 wxListBox *arg1 = (wxListBox *) 0 ;
9865 int arg2 ;
9866 wxColour *arg3 = 0 ;
9867 void *argp1 = 0 ;
9868 int res1 = 0 ;
9869 int val2 ;
9870 int ecode2 = 0 ;
9871 wxColour temp3 ;
9872 PyObject * obj0 = 0 ;
9873 PyObject * obj1 = 0 ;
9874 PyObject * obj2 = 0 ;
9875 char * kwnames[] = {
9876 (char *) "self",(char *) "item",(char *) "c", NULL
9877 };
9878
9879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9881 if (!SWIG_IsOK(res1)) {
9882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9883 }
9884 arg1 = reinterpret_cast< wxListBox * >(argp1);
9885 ecode2 = SWIG_AsVal_int(obj1, &val2);
9886 if (!SWIG_IsOK(ecode2)) {
9887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9888 }
9889 arg2 = static_cast< int >(val2);
9890 {
9891 arg3 = &temp3;
9892 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9893 }
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 resultobj = SWIG_Py_Void();
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxListBox *arg1 = (wxListBox *) 0 ;
9910 int arg2 ;
9911 wxFont *arg3 = 0 ;
9912 void *argp1 = 0 ;
9913 int res1 = 0 ;
9914 int val2 ;
9915 int ecode2 = 0 ;
9916 void *argp3 = 0 ;
9917 int res3 = 0 ;
9918 PyObject * obj0 = 0 ;
9919 PyObject * obj1 = 0 ;
9920 PyObject * obj2 = 0 ;
9921 char * kwnames[] = {
9922 (char *) "self",(char *) "item",(char *) "f", NULL
9923 };
9924
9925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9927 if (!SWIG_IsOK(res1)) {
9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9929 }
9930 arg1 = reinterpret_cast< wxListBox * >(argp1);
9931 ecode2 = SWIG_AsVal_int(obj1, &val2);
9932 if (!SWIG_IsOK(ecode2)) {
9933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9934 }
9935 arg2 = static_cast< int >(val2);
9936 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9937 if (!SWIG_IsOK(res3)) {
9938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9939 }
9940 if (!argp3) {
9941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9942 }
9943 arg3 = reinterpret_cast< wxFont * >(argp3);
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 resultobj = SWIG_Py_Void();
9951 return resultobj;
9952 fail:
9953 return NULL;
9954 }
9955
9956
9957 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = 0;
9959 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9960 SwigValueWrapper<wxVisualAttributes > result;
9961 int val1 ;
9962 int ecode1 = 0 ;
9963 PyObject * obj0 = 0 ;
9964 char * kwnames[] = {
9965 (char *) "variant", NULL
9966 };
9967
9968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9969 if (obj0) {
9970 ecode1 = SWIG_AsVal_int(obj0, &val1);
9971 if (!SWIG_IsOK(ecode1)) {
9972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9973 }
9974 arg1 = static_cast< wxWindowVariant >(val1);
9975 }
9976 {
9977 if (!wxPyCheckForApp()) SWIG_fail;
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 result = wxListBox::GetClassDefaultAttributes(arg1);
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9984 return resultobj;
9985 fail:
9986 return NULL;
9987 }
9988
9989
9990 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9991 PyObject *obj;
9992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9993 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9994 return SWIG_Py_Void();
9995 }
9996
9997 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9998 return SWIG_Python_InitShadowInstance(args);
9999 }
10000
10001 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj = 0;
10003 wxWindow *arg1 = (wxWindow *) 0 ;
10004 int arg2 = (int) -1 ;
10005 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10006 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10007 wxSize const &arg4_defvalue = wxDefaultSize ;
10008 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10009 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10010 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10011 long arg6 = (long) 0 ;
10012 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10013 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10014 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10015 wxString *arg8 = (wxString *) &arg8_defvalue ;
10016 wxCheckListBox *result = 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 int val2 ;
10020 int ecode2 = 0 ;
10021 wxPoint temp3 ;
10022 wxSize temp4 ;
10023 bool temp5 = false ;
10024 long val6 ;
10025 int ecode6 = 0 ;
10026 void *argp7 = 0 ;
10027 int res7 = 0 ;
10028 bool temp8 = false ;
10029 PyObject * obj0 = 0 ;
10030 PyObject * obj1 = 0 ;
10031 PyObject * obj2 = 0 ;
10032 PyObject * obj3 = 0 ;
10033 PyObject * obj4 = 0 ;
10034 PyObject * obj5 = 0 ;
10035 PyObject * obj6 = 0 ;
10036 PyObject * obj7 = 0 ;
10037 char * kwnames[] = {
10038 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10039 };
10040
10041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10043 if (!SWIG_IsOK(res1)) {
10044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10045 }
10046 arg1 = reinterpret_cast< wxWindow * >(argp1);
10047 if (obj1) {
10048 ecode2 = SWIG_AsVal_int(obj1, &val2);
10049 if (!SWIG_IsOK(ecode2)) {
10050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10051 }
10052 arg2 = static_cast< int >(val2);
10053 }
10054 if (obj2) {
10055 {
10056 arg3 = &temp3;
10057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10058 }
10059 }
10060 if (obj3) {
10061 {
10062 arg4 = &temp4;
10063 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10064 }
10065 }
10066 if (obj4) {
10067 {
10068 if (! PySequence_Check(obj4)) {
10069 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10070 SWIG_fail;
10071 }
10072 arg5 = new wxArrayString;
10073 temp5 = true;
10074 int i, len=PySequence_Length(obj4);
10075 for (i=0; i<len; i++) {
10076 PyObject* item = PySequence_GetItem(obj4, i);
10077 wxString* s = wxString_in_helper(item);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 arg5->Add(*s);
10080 delete s;
10081 Py_DECREF(item);
10082 }
10083 }
10084 }
10085 if (obj5) {
10086 ecode6 = SWIG_AsVal_long(obj5, &val6);
10087 if (!SWIG_IsOK(ecode6)) {
10088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10089 }
10090 arg6 = static_cast< long >(val6);
10091 }
10092 if (obj6) {
10093 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10094 if (!SWIG_IsOK(res7)) {
10095 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10096 }
10097 if (!argp7) {
10098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10099 }
10100 arg7 = reinterpret_cast< wxValidator * >(argp7);
10101 }
10102 if (obj7) {
10103 {
10104 arg8 = wxString_in_helper(obj7);
10105 if (arg8 == NULL) SWIG_fail;
10106 temp8 = true;
10107 }
10108 }
10109 {
10110 if (!wxPyCheckForApp()) SWIG_fail;
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10117 {
10118 if (temp5) delete arg5;
10119 }
10120 {
10121 if (temp8)
10122 delete arg8;
10123 }
10124 return resultobj;
10125 fail:
10126 {
10127 if (temp5) delete arg5;
10128 }
10129 {
10130 if (temp8)
10131 delete arg8;
10132 }
10133 return NULL;
10134 }
10135
10136
10137 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10138 PyObject *resultobj = 0;
10139 wxCheckListBox *result = 0 ;
10140
10141 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10142 {
10143 if (!wxPyCheckForApp()) SWIG_fail;
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (wxCheckListBox *)new wxCheckListBox();
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10150 return resultobj;
10151 fail:
10152 return NULL;
10153 }
10154
10155
10156 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj = 0;
10158 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10159 wxWindow *arg2 = (wxWindow *) 0 ;
10160 int arg3 = (int) -1 ;
10161 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10162 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10163 wxSize const &arg5_defvalue = wxDefaultSize ;
10164 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10165 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10166 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10167 long arg7 = (long) 0 ;
10168 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10169 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10170 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10171 wxString *arg9 = (wxString *) &arg9_defvalue ;
10172 bool result;
10173 void *argp1 = 0 ;
10174 int res1 = 0 ;
10175 void *argp2 = 0 ;
10176 int res2 = 0 ;
10177 int val3 ;
10178 int ecode3 = 0 ;
10179 wxPoint temp4 ;
10180 wxSize temp5 ;
10181 bool temp6 = false ;
10182 long val7 ;
10183 int ecode7 = 0 ;
10184 void *argp8 = 0 ;
10185 int res8 = 0 ;
10186 bool temp9 = false ;
10187 PyObject * obj0 = 0 ;
10188 PyObject * obj1 = 0 ;
10189 PyObject * obj2 = 0 ;
10190 PyObject * obj3 = 0 ;
10191 PyObject * obj4 = 0 ;
10192 PyObject * obj5 = 0 ;
10193 PyObject * obj6 = 0 ;
10194 PyObject * obj7 = 0 ;
10195 PyObject * obj8 = 0 ;
10196 char * kwnames[] = {
10197 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10198 };
10199
10200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10202 if (!SWIG_IsOK(res1)) {
10203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10204 }
10205 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10207 if (!SWIG_IsOK(res2)) {
10208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10209 }
10210 arg2 = reinterpret_cast< wxWindow * >(argp2);
10211 if (obj2) {
10212 ecode3 = SWIG_AsVal_int(obj2, &val3);
10213 if (!SWIG_IsOK(ecode3)) {
10214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10215 }
10216 arg3 = static_cast< int >(val3);
10217 }
10218 if (obj3) {
10219 {
10220 arg4 = &temp4;
10221 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10222 }
10223 }
10224 if (obj4) {
10225 {
10226 arg5 = &temp5;
10227 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10228 }
10229 }
10230 if (obj5) {
10231 {
10232 if (! PySequence_Check(obj5)) {
10233 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10234 SWIG_fail;
10235 }
10236 arg6 = new wxArrayString;
10237 temp6 = true;
10238 int i, len=PySequence_Length(obj5);
10239 for (i=0; i<len; i++) {
10240 PyObject* item = PySequence_GetItem(obj5, i);
10241 wxString* s = wxString_in_helper(item);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 arg6->Add(*s);
10244 delete s;
10245 Py_DECREF(item);
10246 }
10247 }
10248 }
10249 if (obj6) {
10250 ecode7 = SWIG_AsVal_long(obj6, &val7);
10251 if (!SWIG_IsOK(ecode7)) {
10252 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10253 }
10254 arg7 = static_cast< long >(val7);
10255 }
10256 if (obj7) {
10257 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10258 if (!SWIG_IsOK(res8)) {
10259 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10260 }
10261 if (!argp8) {
10262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10263 }
10264 arg8 = reinterpret_cast< wxValidator * >(argp8);
10265 }
10266 if (obj8) {
10267 {
10268 arg9 = wxString_in_helper(obj8);
10269 if (arg9 == NULL) SWIG_fail;
10270 temp9 = true;
10271 }
10272 }
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 {
10280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10281 }
10282 {
10283 if (temp6) delete arg6;
10284 }
10285 {
10286 if (temp9)
10287 delete arg9;
10288 }
10289 return resultobj;
10290 fail:
10291 {
10292 if (temp6) delete arg6;
10293 }
10294 {
10295 if (temp9)
10296 delete arg9;
10297 }
10298 return NULL;
10299 }
10300
10301
10302 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10303 PyObject *resultobj = 0;
10304 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10305 unsigned int arg2 ;
10306 bool result;
10307 void *argp1 = 0 ;
10308 int res1 = 0 ;
10309 unsigned int val2 ;
10310 int ecode2 = 0 ;
10311 PyObject * obj0 = 0 ;
10312 PyObject * obj1 = 0 ;
10313 char * kwnames[] = {
10314 (char *) "self",(char *) "index", NULL
10315 };
10316
10317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10319 if (!SWIG_IsOK(res1)) {
10320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10321 }
10322 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10323 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10324 if (!SWIG_IsOK(ecode2)) {
10325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10326 }
10327 arg2 = static_cast< unsigned int >(val2);
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (bool)(arg1)->IsChecked(arg2);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 {
10335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10336 }
10337 return resultobj;
10338 fail:
10339 return NULL;
10340 }
10341
10342
10343 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10344 PyObject *resultobj = 0;
10345 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10346 unsigned int arg2 ;
10347 int arg3 = (int) true ;
10348 void *argp1 = 0 ;
10349 int res1 = 0 ;
10350 unsigned int val2 ;
10351 int ecode2 = 0 ;
10352 int val3 ;
10353 int ecode3 = 0 ;
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 PyObject * obj2 = 0 ;
10357 char * kwnames[] = {
10358 (char *) "self",(char *) "index",(char *) "check", NULL
10359 };
10360
10361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10363 if (!SWIG_IsOK(res1)) {
10364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10365 }
10366 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10367 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10368 if (!SWIG_IsOK(ecode2)) {
10369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10370 }
10371 arg2 = static_cast< unsigned int >(val2);
10372 if (obj2) {
10373 ecode3 = SWIG_AsVal_int(obj2, &val3);
10374 if (!SWIG_IsOK(ecode3)) {
10375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10376 }
10377 arg3 = static_cast< int >(val3);
10378 }
10379 {
10380 PyThreadState* __tstate = wxPyBeginAllowThreads();
10381 (arg1)->Check(arg2,arg3);
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 resultobj = SWIG_Py_Void();
10386 return resultobj;
10387 fail:
10388 return NULL;
10389 }
10390
10391
10392 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10393 PyObject *resultobj = 0;
10394 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10395 int result;
10396 void *argp1 = 0 ;
10397 int res1 = 0 ;
10398 PyObject *swig_obj[1] ;
10399
10400 if (!args) SWIG_fail;
10401 swig_obj[0] = args;
10402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10403 if (!SWIG_IsOK(res1)) {
10404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10405 }
10406 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10407 {
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (int)(arg1)->GetItemHeight();
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_From_int(static_cast< int >(result));
10414 return resultobj;
10415 fail:
10416 return NULL;
10417 }
10418
10419
10420 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10421 PyObject *obj;
10422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10423 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10424 return SWIG_Py_Void();
10425 }
10426
10427 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10428 return SWIG_Python_InitShadowInstance(args);
10429 }
10430
10431 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10432 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10433 return 1;
10434 }
10435
10436
10437 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10438 PyObject *pyobj = 0;
10439
10440 {
10441 #if wxUSE_UNICODE
10442 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10443 #else
10444 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10445 #endif
10446 }
10447 return pyobj;
10448 }
10449
10450
10451 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj = 0;
10453 wxColour const &arg1_defvalue = wxNullColour ;
10454 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10455 wxColour const &arg2_defvalue = wxNullColour ;
10456 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10457 wxFont const &arg3_defvalue = wxNullFont ;
10458 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10459 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10460 wxTextAttr *result = 0 ;
10461 wxColour temp1 ;
10462 wxColour temp2 ;
10463 void *argp3 = 0 ;
10464 int res3 = 0 ;
10465 int val4 ;
10466 int ecode4 = 0 ;
10467 PyObject * obj0 = 0 ;
10468 PyObject * obj1 = 0 ;
10469 PyObject * obj2 = 0 ;
10470 PyObject * obj3 = 0 ;
10471 char * kwnames[] = {
10472 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10473 };
10474
10475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10476 if (obj0) {
10477 {
10478 arg1 = &temp1;
10479 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10480 }
10481 }
10482 if (obj1) {
10483 {
10484 arg2 = &temp2;
10485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10486 }
10487 }
10488 if (obj2) {
10489 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10490 if (!SWIG_IsOK(res3)) {
10491 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10492 }
10493 if (!argp3) {
10494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10495 }
10496 arg3 = reinterpret_cast< wxFont * >(argp3);
10497 }
10498 if (obj3) {
10499 ecode4 = SWIG_AsVal_int(obj3, &val4);
10500 if (!SWIG_IsOK(ecode4)) {
10501 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10502 }
10503 arg4 = static_cast< wxTextAttrAlignment >(val4);
10504 }
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10519 PyObject *resultobj = 0;
10520 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 PyObject *swig_obj[1] ;
10524
10525 if (!args) SWIG_fail;
10526 swig_obj[0] = args;
10527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10528 if (!SWIG_IsOK(res1)) {
10529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10530 }
10531 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 delete arg1;
10535
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541 fail:
10542 return NULL;
10543 }
10544
10545
10546 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10547 PyObject *resultobj = 0;
10548 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 PyObject *swig_obj[1] ;
10552
10553 if (!args) SWIG_fail;
10554 swig_obj[0] = args;
10555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10556 if (!SWIG_IsOK(res1)) {
10557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10558 }
10559 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 (arg1)->Init();
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568 fail:
10569 return NULL;
10570 }
10571
10572
10573 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 wxTextAttr *arg1 = 0 ;
10576 wxTextAttr *arg2 = 0 ;
10577 wxTextAttr result;
10578 void *argp1 = 0 ;
10579 int res1 = 0 ;
10580 void *argp2 = 0 ;
10581 int res2 = 0 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "base",(char *) "overlay", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10592 }
10593 if (!argp1) {
10594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10595 }
10596 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10598 if (!SWIG_IsOK(res2)) {
10599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10600 }
10601 if (!argp2) {
10602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10603 }
10604 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10612 return resultobj;
10613 fail:
10614 return NULL;
10615 }
10616
10617
10618 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj = 0;
10620 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10621 wxColour *arg2 = 0 ;
10622 void *argp1 = 0 ;
10623 int res1 = 0 ;
10624 wxColour temp2 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 char * kwnames[] = {
10628 (char *) "self",(char *) "colText", NULL
10629 };
10630
10631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10633 if (!SWIG_IsOK(res1)) {
10634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10635 }
10636 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10637 {
10638 arg2 = &temp2;
10639 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10640 }
10641 {
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 (arg1)->SetTextColour((wxColour const &)*arg2);
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_Py_Void();
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj = 0;
10656 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10657 wxColour *arg2 = 0 ;
10658 void *argp1 = 0 ;
10659 int res1 = 0 ;
10660 wxColour temp2 ;
10661 PyObject * obj0 = 0 ;
10662 PyObject * obj1 = 0 ;
10663 char * kwnames[] = {
10664 (char *) "self",(char *) "colBack", NULL
10665 };
10666
10667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10669 if (!SWIG_IsOK(res1)) {
10670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10671 }
10672 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10673 {
10674 arg2 = &temp2;
10675 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10676 }
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 resultobj = SWIG_Py_Void();
10684 return resultobj;
10685 fail:
10686 return NULL;
10687 }
10688
10689
10690 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10691 PyObject *resultobj = 0;
10692 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10693 wxFont *arg2 = 0 ;
10694 long arg3 = (long) wxTEXT_ATTR_FONT ;
10695 void *argp1 = 0 ;
10696 int res1 = 0 ;
10697 void *argp2 = 0 ;
10698 int res2 = 0 ;
10699 long val3 ;
10700 int ecode3 = 0 ;
10701 PyObject * obj0 = 0 ;
10702 PyObject * obj1 = 0 ;
10703 PyObject * obj2 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "self",(char *) "font",(char *) "flags", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10710 if (!SWIG_IsOK(res1)) {
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10712 }
10713 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10715 if (!SWIG_IsOK(res2)) {
10716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10717 }
10718 if (!argp2) {
10719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10720 }
10721 arg2 = reinterpret_cast< wxFont * >(argp2);
10722 if (obj2) {
10723 ecode3 = SWIG_AsVal_long(obj2, &val3);
10724 if (!SWIG_IsOK(ecode3)) {
10725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10726 }
10727 arg3 = static_cast< long >(val3);
10728 }
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
10735 resultobj = SWIG_Py_Void();
10736 return resultobj;
10737 fail:
10738 return NULL;
10739 }
10740
10741
10742 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10743 PyObject *resultobj = 0;
10744 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10745 wxTextAttrAlignment arg2 ;
10746 void *argp1 = 0 ;
10747 int res1 = 0 ;
10748 int val2 ;
10749 int ecode2 = 0 ;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 char * kwnames[] = {
10753 (char *) "self",(char *) "alignment", NULL
10754 };
10755
10756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10758 if (!SWIG_IsOK(res1)) {
10759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10760 }
10761 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10762 ecode2 = SWIG_AsVal_int(obj1, &val2);
10763 if (!SWIG_IsOK(ecode2)) {
10764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10765 }
10766 arg2 = static_cast< wxTextAttrAlignment >(val2);
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->SetAlignment(arg2);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_Py_Void();
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj = 0;
10782 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10783 wxArrayInt *arg2 = 0 ;
10784 void *argp1 = 0 ;
10785 int res1 = 0 ;
10786 bool temp2 = false ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 char * kwnames[] = {
10790 (char *) "self",(char *) "tabs", NULL
10791 };
10792
10793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10795 if (!SWIG_IsOK(res1)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10797 }
10798 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10799 {
10800 if (! PySequence_Check(obj1)) {
10801 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10802 SWIG_fail;
10803 }
10804 arg2 = new wxArrayInt;
10805 temp2 = true;
10806 int i, len=PySequence_Length(obj1);
10807 for (i=0; i<len; i++) {
10808 PyObject* item = PySequence_GetItem(obj1, i);
10809 PyObject* number = PyNumber_Int(item);
10810 arg2->Add(PyInt_AS_LONG(number));
10811 Py_DECREF(item);
10812 Py_DECREF(number);
10813 }
10814 }
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10818 wxPyEndAllowThreads(__tstate);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 }
10821 resultobj = SWIG_Py_Void();
10822 {
10823 if (temp2) delete arg2;
10824 }
10825 return resultobj;
10826 fail:
10827 {
10828 if (temp2) delete arg2;
10829 }
10830 return NULL;
10831 }
10832
10833
10834 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10835 PyObject *resultobj = 0;
10836 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10837 int arg2 ;
10838 int arg3 = (int) 0 ;
10839 void *argp1 = 0 ;
10840 int res1 = 0 ;
10841 int val2 ;
10842 int ecode2 = 0 ;
10843 int val3 ;
10844 int ecode3 = 0 ;
10845 PyObject * obj0 = 0 ;
10846 PyObject * obj1 = 0 ;
10847 PyObject * obj2 = 0 ;
10848 char * kwnames[] = {
10849 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10850 };
10851
10852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10854 if (!SWIG_IsOK(res1)) {
10855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10856 }
10857 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10858 ecode2 = SWIG_AsVal_int(obj1, &val2);
10859 if (!SWIG_IsOK(ecode2)) {
10860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10861 }
10862 arg2 = static_cast< int >(val2);
10863 if (obj2) {
10864 ecode3 = SWIG_AsVal_int(obj2, &val3);
10865 if (!SWIG_IsOK(ecode3)) {
10866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10867 }
10868 arg3 = static_cast< int >(val3);
10869 }
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 (arg1)->SetLeftIndent(arg2,arg3);
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 resultobj = SWIG_Py_Void();
10877 return resultobj;
10878 fail:
10879 return NULL;
10880 }
10881
10882
10883 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10884 PyObject *resultobj = 0;
10885 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10886 int arg2 ;
10887 void *argp1 = 0 ;
10888 int res1 = 0 ;
10889 int val2 ;
10890 int ecode2 = 0 ;
10891 PyObject * obj0 = 0 ;
10892 PyObject * obj1 = 0 ;
10893 char * kwnames[] = {
10894 (char *) "self",(char *) "indent", NULL
10895 };
10896
10897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10899 if (!SWIG_IsOK(res1)) {
10900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10901 }
10902 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10903 ecode2 = SWIG_AsVal_int(obj1, &val2);
10904 if (!SWIG_IsOK(ecode2)) {
10905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10906 }
10907 arg2 = static_cast< int >(val2);
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 (arg1)->SetRightIndent(arg2);
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 resultobj = SWIG_Py_Void();
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj = 0;
10923 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10924 long arg2 ;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 long val2 ;
10928 int ecode2 = 0 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "flags", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10937 if (!SWIG_IsOK(res1)) {
10938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10939 }
10940 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10941 ecode2 = SWIG_AsVal_long(obj1, &val2);
10942 if (!SWIG_IsOK(ecode2)) {
10943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10944 }
10945 arg2 = static_cast< long >(val2);
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 (arg1)->SetFlags(arg2);
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 resultobj = SWIG_Py_Void();
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10960 PyObject *resultobj = 0;
10961 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10962 bool result;
10963 void *argp1 = 0 ;
10964 int res1 = 0 ;
10965 PyObject *swig_obj[1] ;
10966
10967 if (!args) SWIG_fail;
10968 swig_obj[0] = args;
10969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10970 if (!SWIG_IsOK(res1)) {
10971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10972 }
10973 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 {
10981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10982 }
10983 return resultobj;
10984 fail:
10985 return NULL;
10986 }
10987
10988
10989 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10990 PyObject *resultobj = 0;
10991 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10992 bool result;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 PyObject *swig_obj[1] ;
10996
10997 if (!args) SWIG_fail;
10998 swig_obj[0] = args;
10999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11000 if (!SWIG_IsOK(res1)) {
11001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11002 }
11003 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 {
11011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11012 }
11013 return resultobj;
11014 fail:
11015 return NULL;
11016 }
11017
11018
11019 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11020 PyObject *resultobj = 0;
11021 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11022 bool result;
11023 void *argp1 = 0 ;
11024 int res1 = 0 ;
11025 PyObject *swig_obj[1] ;
11026
11027 if (!args) SWIG_fail;
11028 swig_obj[0] = args;
11029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11030 if (!SWIG_IsOK(res1)) {
11031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11032 }
11033 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11034 {
11035 PyThreadState* __tstate = wxPyBeginAllowThreads();
11036 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11042 }
11043 return resultobj;
11044 fail:
11045 return NULL;
11046 }
11047
11048
11049 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11050 PyObject *resultobj = 0;
11051 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11052 bool result;
11053 void *argp1 = 0 ;
11054 int res1 = 0 ;
11055 PyObject *swig_obj[1] ;
11056
11057 if (!args) SWIG_fail;
11058 swig_obj[0] = args;
11059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11060 if (!SWIG_IsOK(res1)) {
11061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11062 }
11063 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11067 wxPyEndAllowThreads(__tstate);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 {
11071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11072 }
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11080 PyObject *resultobj = 0;
11081 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11082 bool result;
11083 void *argp1 = 0 ;
11084 int res1 = 0 ;
11085 PyObject *swig_obj[1] ;
11086
11087 if (!args) SWIG_fail;
11088 swig_obj[0] = args;
11089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11090 if (!SWIG_IsOK(res1)) {
11091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11092 }
11093 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11102 }
11103 return resultobj;
11104 fail:
11105 return NULL;
11106 }
11107
11108
11109 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11110 PyObject *resultobj = 0;
11111 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11112 bool result;
11113 void *argp1 = 0 ;
11114 int res1 = 0 ;
11115 PyObject *swig_obj[1] ;
11116
11117 if (!args) SWIG_fail;
11118 swig_obj[0] = args;
11119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11120 if (!SWIG_IsOK(res1)) {
11121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11122 }
11123 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 {
11131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11132 }
11133 return resultobj;
11134 fail:
11135 return NULL;
11136 }
11137
11138
11139 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11140 PyObject *resultobj = 0;
11141 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11142 bool result;
11143 void *argp1 = 0 ;
11144 int res1 = 0 ;
11145 PyObject *swig_obj[1] ;
11146
11147 if (!args) SWIG_fail;
11148 swig_obj[0] = args;
11149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11150 if (!SWIG_IsOK(res1)) {
11151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11152 }
11153 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 {
11161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11162 }
11163 return resultobj;
11164 fail:
11165 return NULL;
11166 }
11167
11168
11169 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11170 PyObject *resultobj = 0;
11171 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11172 long arg2 ;
11173 bool result;
11174 void *argp1 = 0 ;
11175 int res1 = 0 ;
11176 long val2 ;
11177 int ecode2 = 0 ;
11178 PyObject * obj0 = 0 ;
11179 PyObject * obj1 = 0 ;
11180 char * kwnames[] = {
11181 (char *) "self",(char *) "flag", NULL
11182 };
11183
11184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11186 if (!SWIG_IsOK(res1)) {
11187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11188 }
11189 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11190 ecode2 = SWIG_AsVal_long(obj1, &val2);
11191 if (!SWIG_IsOK(ecode2)) {
11192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11193 }
11194 arg2 = static_cast< long >(val2);
11195 {
11196 PyThreadState* __tstate = wxPyBeginAllowThreads();
11197 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 {
11202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11203 }
11204 return resultobj;
11205 fail:
11206 return NULL;
11207 }
11208
11209
11210 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11211 PyObject *resultobj = 0;
11212 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11213 wxColour *result = 0 ;
11214 void *argp1 = 0 ;
11215 int res1 = 0 ;
11216 PyObject *swig_obj[1] ;
11217
11218 if (!args) SWIG_fail;
11219 swig_obj[0] = args;
11220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11221 if (!SWIG_IsOK(res1)) {
11222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11223 }
11224 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11225 {
11226 PyThreadState* __tstate = wxPyBeginAllowThreads();
11227 {
11228 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11229 result = (wxColour *) &_result_ref;
11230 }
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11242 PyObject *resultobj = 0;
11243 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11244 wxColour *result = 0 ;
11245 void *argp1 = 0 ;
11246 int res1 = 0 ;
11247 PyObject *swig_obj[1] ;
11248
11249 if (!args) SWIG_fail;
11250 swig_obj[0] = args;
11251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11252 if (!SWIG_IsOK(res1)) {
11253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11254 }
11255 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11256 {
11257 PyThreadState* __tstate = wxPyBeginAllowThreads();
11258 {
11259 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11260 result = (wxColour *) &_result_ref;
11261 }
11262 wxPyEndAllowThreads(__tstate);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11266 return resultobj;
11267 fail:
11268 return NULL;
11269 }
11270
11271
11272 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11273 PyObject *resultobj = 0;
11274 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11275 wxFont *result = 0 ;
11276 void *argp1 = 0 ;
11277 int res1 = 0 ;
11278 PyObject *swig_obj[1] ;
11279
11280 if (!args) SWIG_fail;
11281 swig_obj[0] = args;
11282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11283 if (!SWIG_IsOK(res1)) {
11284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11285 }
11286 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 {
11290 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11291 result = (wxFont *) &_result_ref;
11292 }
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 wxFont* resultptr = new wxFont(*result);
11298 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11299 }
11300 return resultobj;
11301 fail:
11302 return NULL;
11303 }
11304
11305
11306 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 wxTextAttrAlignment result;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 PyObject *swig_obj[1] ;
11313
11314 if (!args) SWIG_fail;
11315 swig_obj[0] = args;
11316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_From_int(static_cast< int >(result));
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11335 PyObject *resultobj = 0;
11336 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11337 wxArrayInt *result = 0 ;
11338 void *argp1 = 0 ;
11339 int res1 = 0 ;
11340 PyObject *swig_obj[1] ;
11341
11342 if (!args) SWIG_fail;
11343 swig_obj[0] = args;
11344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11345 if (!SWIG_IsOK(res1)) {
11346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11347 }
11348 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 {
11352 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11353 result = (wxArrayInt *) &_result_ref;
11354 }
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 {
11359 resultobj = PyList_New(0);
11360 size_t idx;
11361 for (idx = 0; idx < result->GetCount(); idx += 1) {
11362 PyObject* val = PyInt_FromLong( result->Item(idx) );
11363 PyList_Append(resultobj, val);
11364 Py_DECREF(val);
11365 }
11366 }
11367 return resultobj;
11368 fail:
11369 return NULL;
11370 }
11371
11372
11373 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11374 PyObject *resultobj = 0;
11375 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11376 long result;
11377 void *argp1 = 0 ;
11378 int res1 = 0 ;
11379 PyObject *swig_obj[1] ;
11380
11381 if (!args) SWIG_fail;
11382 swig_obj[0] = args;
11383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11384 if (!SWIG_IsOK(res1)) {
11385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11386 }
11387 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11388 {
11389 PyThreadState* __tstate = wxPyBeginAllowThreads();
11390 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11391 wxPyEndAllowThreads(__tstate);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 resultobj = SWIG_From_long(static_cast< long >(result));
11395 return resultobj;
11396 fail:
11397 return NULL;
11398 }
11399
11400
11401 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11402 PyObject *resultobj = 0;
11403 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11404 long result;
11405 void *argp1 = 0 ;
11406 int res1 = 0 ;
11407 PyObject *swig_obj[1] ;
11408
11409 if (!args) SWIG_fail;
11410 swig_obj[0] = args;
11411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11412 if (!SWIG_IsOK(res1)) {
11413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11414 }
11415 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 resultobj = SWIG_From_long(static_cast< long >(result));
11423 return resultobj;
11424 fail:
11425 return NULL;
11426 }
11427
11428
11429 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11430 PyObject *resultobj = 0;
11431 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11432 long result;
11433 void *argp1 = 0 ;
11434 int res1 = 0 ;
11435 PyObject *swig_obj[1] ;
11436
11437 if (!args) SWIG_fail;
11438 swig_obj[0] = args;
11439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11440 if (!SWIG_IsOK(res1)) {
11441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11442 }
11443 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 resultobj = SWIG_From_long(static_cast< long >(result));
11451 return resultobj;
11452 fail:
11453 return NULL;
11454 }
11455
11456
11457 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11458 PyObject *resultobj = 0;
11459 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11460 long result;
11461 void *argp1 = 0 ;
11462 int res1 = 0 ;
11463 PyObject *swig_obj[1] ;
11464
11465 if (!args) SWIG_fail;
11466 swig_obj[0] = args;
11467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11468 if (!SWIG_IsOK(res1)) {
11469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11470 }
11471 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 resultobj = SWIG_From_long(static_cast< long >(result));
11479 return resultobj;
11480 fail:
11481 return NULL;
11482 }
11483
11484
11485 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11486 PyObject *resultobj = 0;
11487 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11488 bool result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 PyObject *swig_obj[1] ;
11492
11493 if (!args) SWIG_fail;
11494 swig_obj[0] = args;
11495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11496 if (!SWIG_IsOK(res1)) {
11497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11498 }
11499 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 {
11507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11508 }
11509 return resultobj;
11510 fail:
11511 return NULL;
11512 }
11513
11514
11515 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11516 PyObject *resultobj = 0;
11517 wxTextAttr *arg1 = 0 ;
11518 wxTextAttr *arg2 = 0 ;
11519 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11520 wxTextAttr result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 void *argp2 = 0 ;
11524 int res2 = 0 ;
11525 void *argp3 = 0 ;
11526 int res3 = 0 ;
11527 PyObject * obj0 = 0 ;
11528 PyObject * obj1 = 0 ;
11529 PyObject * obj2 = 0 ;
11530 char * kwnames[] = {
11531 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11532 };
11533
11534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11535 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11536 if (!SWIG_IsOK(res1)) {
11537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11538 }
11539 if (!argp1) {
11540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11541 }
11542 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11544 if (!SWIG_IsOK(res2)) {
11545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11546 }
11547 if (!argp2) {
11548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11549 }
11550 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11551 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11552 if (!SWIG_IsOK(res3)) {
11553 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11554 }
11555 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11570 PyObject *obj;
11571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11572 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11573 return SWIG_Py_Void();
11574 }
11575
11576 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11577 return SWIG_Python_InitShadowInstance(args);
11578 }
11579
11580 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11581 PyObject *resultobj = 0;
11582 wxWindow *arg1 = (wxWindow *) 0 ;
11583 int arg2 = (int) -1 ;
11584 wxString const &arg3_defvalue = wxPyEmptyString ;
11585 wxString *arg3 = (wxString *) &arg3_defvalue ;
11586 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11587 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11588 wxSize const &arg5_defvalue = wxDefaultSize ;
11589 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11590 long arg6 = (long) 0 ;
11591 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11592 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11593 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11594 wxString *arg8 = (wxString *) &arg8_defvalue ;
11595 wxTextCtrl *result = 0 ;
11596 void *argp1 = 0 ;
11597 int res1 = 0 ;
11598 int val2 ;
11599 int ecode2 = 0 ;
11600 bool temp3 = false ;
11601 wxPoint temp4 ;
11602 wxSize temp5 ;
11603 long val6 ;
11604 int ecode6 = 0 ;
11605 void *argp7 = 0 ;
11606 int res7 = 0 ;
11607 bool temp8 = false ;
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 PyObject * obj2 = 0 ;
11611 PyObject * obj3 = 0 ;
11612 PyObject * obj4 = 0 ;
11613 PyObject * obj5 = 0 ;
11614 PyObject * obj6 = 0 ;
11615 PyObject * obj7 = 0 ;
11616 char * kwnames[] = {
11617 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11618 };
11619
11620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11622 if (!SWIG_IsOK(res1)) {
11623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11624 }
11625 arg1 = reinterpret_cast< wxWindow * >(argp1);
11626 if (obj1) {
11627 ecode2 = SWIG_AsVal_int(obj1, &val2);
11628 if (!SWIG_IsOK(ecode2)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11630 }
11631 arg2 = static_cast< int >(val2);
11632 }
11633 if (obj2) {
11634 {
11635 arg3 = wxString_in_helper(obj2);
11636 if (arg3 == NULL) SWIG_fail;
11637 temp3 = true;
11638 }
11639 }
11640 if (obj3) {
11641 {
11642 arg4 = &temp4;
11643 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11644 }
11645 }
11646 if (obj4) {
11647 {
11648 arg5 = &temp5;
11649 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11650 }
11651 }
11652 if (obj5) {
11653 ecode6 = SWIG_AsVal_long(obj5, &val6);
11654 if (!SWIG_IsOK(ecode6)) {
11655 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11656 }
11657 arg6 = static_cast< long >(val6);
11658 }
11659 if (obj6) {
11660 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11661 if (!SWIG_IsOK(res7)) {
11662 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11663 }
11664 if (!argp7) {
11665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11666 }
11667 arg7 = reinterpret_cast< wxValidator * >(argp7);
11668 }
11669 if (obj7) {
11670 {
11671 arg8 = wxString_in_helper(obj7);
11672 if (arg8 == NULL) SWIG_fail;
11673 temp8 = true;
11674 }
11675 }
11676 {
11677 if (!wxPyCheckForApp()) SWIG_fail;
11678 PyThreadState* __tstate = wxPyBeginAllowThreads();
11679 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11680 wxPyEndAllowThreads(__tstate);
11681 if (PyErr_Occurred()) SWIG_fail;
11682 }
11683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11684 {
11685 if (temp3)
11686 delete arg3;
11687 }
11688 {
11689 if (temp8)
11690 delete arg8;
11691 }
11692 return resultobj;
11693 fail:
11694 {
11695 if (temp3)
11696 delete arg3;
11697 }
11698 {
11699 if (temp8)
11700 delete arg8;
11701 }
11702 return NULL;
11703 }
11704
11705
11706 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11707 PyObject *resultobj = 0;
11708 wxTextCtrl *result = 0 ;
11709
11710 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11711 {
11712 if (!wxPyCheckForApp()) SWIG_fail;
11713 PyThreadState* __tstate = wxPyBeginAllowThreads();
11714 result = (wxTextCtrl *)new wxTextCtrl();
11715 wxPyEndAllowThreads(__tstate);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
11718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11719 return resultobj;
11720 fail:
11721 return NULL;
11722 }
11723
11724
11725 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11726 PyObject *resultobj = 0;
11727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11728 wxWindow *arg2 = (wxWindow *) 0 ;
11729 int arg3 = (int) -1 ;
11730 wxString const &arg4_defvalue = wxPyEmptyString ;
11731 wxString *arg4 = (wxString *) &arg4_defvalue ;
11732 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11733 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11734 wxSize const &arg6_defvalue = wxDefaultSize ;
11735 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11736 long arg7 = (long) 0 ;
11737 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11738 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11739 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11740 wxString *arg9 = (wxString *) &arg9_defvalue ;
11741 bool result;
11742 void *argp1 = 0 ;
11743 int res1 = 0 ;
11744 void *argp2 = 0 ;
11745 int res2 = 0 ;
11746 int val3 ;
11747 int ecode3 = 0 ;
11748 bool temp4 = false ;
11749 wxPoint temp5 ;
11750 wxSize temp6 ;
11751 long val7 ;
11752 int ecode7 = 0 ;
11753 void *argp8 = 0 ;
11754 int res8 = 0 ;
11755 bool temp9 = false ;
11756 PyObject * obj0 = 0 ;
11757 PyObject * obj1 = 0 ;
11758 PyObject * obj2 = 0 ;
11759 PyObject * obj3 = 0 ;
11760 PyObject * obj4 = 0 ;
11761 PyObject * obj5 = 0 ;
11762 PyObject * obj6 = 0 ;
11763 PyObject * obj7 = 0 ;
11764 PyObject * obj8 = 0 ;
11765 char * kwnames[] = {
11766 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11767 };
11768
11769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11771 if (!SWIG_IsOK(res1)) {
11772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11773 }
11774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11776 if (!SWIG_IsOK(res2)) {
11777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11778 }
11779 arg2 = reinterpret_cast< wxWindow * >(argp2);
11780 if (obj2) {
11781 ecode3 = SWIG_AsVal_int(obj2, &val3);
11782 if (!SWIG_IsOK(ecode3)) {
11783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11784 }
11785 arg3 = static_cast< int >(val3);
11786 }
11787 if (obj3) {
11788 {
11789 arg4 = wxString_in_helper(obj3);
11790 if (arg4 == NULL) SWIG_fail;
11791 temp4 = true;
11792 }
11793 }
11794 if (obj4) {
11795 {
11796 arg5 = &temp5;
11797 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11798 }
11799 }
11800 if (obj5) {
11801 {
11802 arg6 = &temp6;
11803 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11804 }
11805 }
11806 if (obj6) {
11807 ecode7 = SWIG_AsVal_long(obj6, &val7);
11808 if (!SWIG_IsOK(ecode7)) {
11809 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11810 }
11811 arg7 = static_cast< long >(val7);
11812 }
11813 if (obj7) {
11814 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11815 if (!SWIG_IsOK(res8)) {
11816 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11817 }
11818 if (!argp8) {
11819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11820 }
11821 arg8 = reinterpret_cast< wxValidator * >(argp8);
11822 }
11823 if (obj8) {
11824 {
11825 arg9 = wxString_in_helper(obj8);
11826 if (arg9 == NULL) SWIG_fail;
11827 temp9 = true;
11828 }
11829 }
11830 {
11831 PyThreadState* __tstate = wxPyBeginAllowThreads();
11832 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11833 wxPyEndAllowThreads(__tstate);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 {
11837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11838 }
11839 {
11840 if (temp4)
11841 delete arg4;
11842 }
11843 {
11844 if (temp9)
11845 delete arg9;
11846 }
11847 return resultobj;
11848 fail:
11849 {
11850 if (temp4)
11851 delete arg4;
11852 }
11853 {
11854 if (temp9)
11855 delete arg9;
11856 }
11857 return NULL;
11858 }
11859
11860
11861 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11862 PyObject *resultobj = 0;
11863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11864 wxString result;
11865 void *argp1 = 0 ;
11866 int res1 = 0 ;
11867 PyObject *swig_obj[1] ;
11868
11869 if (!args) SWIG_fail;
11870 swig_obj[0] = args;
11871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11872 if (!SWIG_IsOK(res1)) {
11873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11874 }
11875 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = ((wxTextCtrl const *)arg1)->GetValue();
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883 #if wxUSE_UNICODE
11884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11885 #else
11886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11887 #endif
11888 }
11889 return resultobj;
11890 fail:
11891 return NULL;
11892 }
11893
11894
11895 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11896 PyObject *resultobj = 0;
11897 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11898 wxString *arg2 = 0 ;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 bool temp2 = false ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char * kwnames[] = {
11905 (char *) "self",(char *) "value", NULL
11906 };
11907
11908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11912 }
11913 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11914 {
11915 arg2 = wxString_in_helper(obj1);
11916 if (arg2 == NULL) SWIG_fail;
11917 temp2 = true;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->SetValue((wxString const &)*arg2);
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 resultobj = SWIG_Py_Void();
11926 {
11927 if (temp2)
11928 delete arg2;
11929 }
11930 return resultobj;
11931 fail:
11932 {
11933 if (temp2)
11934 delete arg2;
11935 }
11936 return NULL;
11937 }
11938
11939
11940 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11941 PyObject *resultobj = 0;
11942 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11943 long arg2 ;
11944 long arg3 ;
11945 wxString result;
11946 void *argp1 = 0 ;
11947 int res1 = 0 ;
11948 long val2 ;
11949 int ecode2 = 0 ;
11950 long val3 ;
11951 int ecode3 = 0 ;
11952 PyObject * obj0 = 0 ;
11953 PyObject * obj1 = 0 ;
11954 PyObject * obj2 = 0 ;
11955 char * kwnames[] = {
11956 (char *) "self",(char *) "from",(char *) "to", NULL
11957 };
11958
11959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11961 if (!SWIG_IsOK(res1)) {
11962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11963 }
11964 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11965 ecode2 = SWIG_AsVal_long(obj1, &val2);
11966 if (!SWIG_IsOK(ecode2)) {
11967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11968 }
11969 arg2 = static_cast< long >(val2);
11970 ecode3 = SWIG_AsVal_long(obj2, &val3);
11971 if (!SWIG_IsOK(ecode3)) {
11972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11973 }
11974 arg3 = static_cast< long >(val3);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982 #if wxUSE_UNICODE
11983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11984 #else
11985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11986 #endif
11987 }
11988 return resultobj;
11989 fail:
11990 return NULL;
11991 }
11992
11993
11994 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11995 PyObject *resultobj = 0;
11996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11997 long arg2 ;
11998 int result;
11999 void *argp1 = 0 ;
12000 int res1 = 0 ;
12001 long val2 ;
12002 int ecode2 = 0 ;
12003 PyObject * obj0 = 0 ;
12004 PyObject * obj1 = 0 ;
12005 char * kwnames[] = {
12006 (char *) "self",(char *) "lineNo", NULL
12007 };
12008
12009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12013 }
12014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12015 ecode2 = SWIG_AsVal_long(obj1, &val2);
12016 if (!SWIG_IsOK(ecode2)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12018 }
12019 arg2 = static_cast< long >(val2);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 resultobj = SWIG_From_int(static_cast< int >(result));
12027 return resultobj;
12028 fail:
12029 return NULL;
12030 }
12031
12032
12033 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12034 PyObject *resultobj = 0;
12035 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12036 long arg2 ;
12037 wxString result;
12038 void *argp1 = 0 ;
12039 int res1 = 0 ;
12040 long val2 ;
12041 int ecode2 = 0 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 char * kwnames[] = {
12045 (char *) "self",(char *) "lineNo", NULL
12046 };
12047
12048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12050 if (!SWIG_IsOK(res1)) {
12051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12052 }
12053 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12054 ecode2 = SWIG_AsVal_long(obj1, &val2);
12055 if (!SWIG_IsOK(ecode2)) {
12056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12057 }
12058 arg2 = static_cast< long >(val2);
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 {
12066 #if wxUSE_UNICODE
12067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12068 #else
12069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12070 #endif
12071 }
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12079 PyObject *resultobj = 0;
12080 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12081 int result;
12082 void *argp1 = 0 ;
12083 int res1 = 0 ;
12084 PyObject *swig_obj[1] ;
12085
12086 if (!args) SWIG_fail;
12087 swig_obj[0] = args;
12088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12089 if (!SWIG_IsOK(res1)) {
12090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12091 }
12092 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12093 {
12094 PyThreadState* __tstate = wxPyBeginAllowThreads();
12095 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 resultobj = SWIG_From_int(static_cast< int >(result));
12100 return resultobj;
12101 fail:
12102 return NULL;
12103 }
12104
12105
12106 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12107 PyObject *resultobj = 0;
12108 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12109 bool result;
12110 void *argp1 = 0 ;
12111 int res1 = 0 ;
12112 PyObject *swig_obj[1] ;
12113
12114 if (!args) SWIG_fail;
12115 swig_obj[0] = args;
12116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12119 }
12120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 {
12128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12129 }
12130 return resultobj;
12131 fail:
12132 return NULL;
12133 }
12134
12135
12136 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12137 PyObject *resultobj = 0;
12138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12139 bool result;
12140 void *argp1 = 0 ;
12141 int res1 = 0 ;
12142 PyObject *swig_obj[1] ;
12143
12144 if (!args) SWIG_fail;
12145 swig_obj[0] = args;
12146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12147 if (!SWIG_IsOK(res1)) {
12148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12149 }
12150 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12151 {
12152 PyThreadState* __tstate = wxPyBeginAllowThreads();
12153 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 {
12158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12159 }
12160 return resultobj;
12161 fail:
12162 return NULL;
12163 }
12164
12165
12166 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12167 PyObject *resultobj = 0;
12168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12169 bool result;
12170 void *argp1 = 0 ;
12171 int res1 = 0 ;
12172 PyObject *swig_obj[1] ;
12173
12174 if (!args) SWIG_fail;
12175 swig_obj[0] = args;
12176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12177 if (!SWIG_IsOK(res1)) {
12178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12179 }
12180 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 {
12188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12189 }
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12197 PyObject *resultobj = 0;
12198 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12199 bool result;
12200 void *argp1 = 0 ;
12201 int res1 = 0 ;
12202 PyObject *swig_obj[1] ;
12203
12204 if (!args) SWIG_fail;
12205 swig_obj[0] = args;
12206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12207 if (!SWIG_IsOK(res1)) {
12208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12209 }
12210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 {
12218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12219 }
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12229 long *arg2 = (long *) 0 ;
12230 long *arg3 = (long *) 0 ;
12231 void *argp1 = 0 ;
12232 int res1 = 0 ;
12233 long temp2 ;
12234 int res2 = SWIG_TMPOBJ ;
12235 long temp3 ;
12236 int res3 = SWIG_TMPOBJ ;
12237 PyObject *swig_obj[1] ;
12238
12239 arg2 = &temp2;
12240 arg3 = &temp3;
12241 if (!args) SWIG_fail;
12242 swig_obj[0] = args;
12243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12246 }
12247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 resultobj = SWIG_Py_Void();
12255 if (SWIG_IsTmpObj(res2)) {
12256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12257 } else {
12258 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12260 }
12261 if (SWIG_IsTmpObj(res3)) {
12262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12263 } else {
12264 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12266 }
12267 return resultobj;
12268 fail:
12269 return NULL;
12270 }
12271
12272
12273 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12274 PyObject *resultobj = 0;
12275 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12276 wxString result;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject *swig_obj[1] ;
12280
12281 if (!args) SWIG_fail;
12282 swig_obj[0] = args;
12283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12286 }
12287 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 {
12295 #if wxUSE_UNICODE
12296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12297 #else
12298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12299 #endif
12300 }
12301 return resultobj;
12302 fail:
12303 return NULL;
12304 }
12305
12306
12307 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12319 }
12320 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 (arg1)->Clear();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 resultobj = SWIG_Py_Void();
12328 return resultobj;
12329 fail:
12330 return NULL;
12331 }
12332
12333
12334 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12335 PyObject *resultobj = 0;
12336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12337 long arg2 ;
12338 long arg3 ;
12339 wxString *arg4 = 0 ;
12340 void *argp1 = 0 ;
12341 int res1 = 0 ;
12342 long val2 ;
12343 int ecode2 = 0 ;
12344 long val3 ;
12345 int ecode3 = 0 ;
12346 bool temp4 = false ;
12347 PyObject * obj0 = 0 ;
12348 PyObject * obj1 = 0 ;
12349 PyObject * obj2 = 0 ;
12350 PyObject * obj3 = 0 ;
12351 char * kwnames[] = {
12352 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12353 };
12354
12355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12359 }
12360 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12361 ecode2 = SWIG_AsVal_long(obj1, &val2);
12362 if (!SWIG_IsOK(ecode2)) {
12363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12364 }
12365 arg2 = static_cast< long >(val2);
12366 ecode3 = SWIG_AsVal_long(obj2, &val3);
12367 if (!SWIG_IsOK(ecode3)) {
12368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12369 }
12370 arg3 = static_cast< long >(val3);
12371 {
12372 arg4 = wxString_in_helper(obj3);
12373 if (arg4 == NULL) SWIG_fail;
12374 temp4 = true;
12375 }
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = SWIG_Py_Void();
12383 {
12384 if (temp4)
12385 delete arg4;
12386 }
12387 return resultobj;
12388 fail:
12389 {
12390 if (temp4)
12391 delete arg4;
12392 }
12393 return NULL;
12394 }
12395
12396
12397 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12400 long arg2 ;
12401 long arg3 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 long val2 ;
12405 int ecode2 = 0 ;
12406 long val3 ;
12407 int ecode3 = 0 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 PyObject * obj2 = 0 ;
12411 char * kwnames[] = {
12412 (char *) "self",(char *) "from",(char *) "to", NULL
12413 };
12414
12415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12419 }
12420 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12421 ecode2 = SWIG_AsVal_long(obj1, &val2);
12422 if (!SWIG_IsOK(ecode2)) {
12423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12424 }
12425 arg2 = static_cast< long >(val2);
12426 ecode3 = SWIG_AsVal_long(obj2, &val3);
12427 if (!SWIG_IsOK(ecode3)) {
12428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12429 }
12430 arg3 = static_cast< long >(val3);
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 (arg1)->Remove(arg2,arg3);
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 resultobj = SWIG_Py_Void();
12438 return resultobj;
12439 fail:
12440 return NULL;
12441 }
12442
12443
12444 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj = 0;
12446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12447 wxString *arg2 = 0 ;
12448 bool result;
12449 void *argp1 = 0 ;
12450 int res1 = 0 ;
12451 bool temp2 = false ;
12452 PyObject * obj0 = 0 ;
12453 PyObject * obj1 = 0 ;
12454 char * kwnames[] = {
12455 (char *) "self",(char *) "file", NULL
12456 };
12457
12458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12460 if (!SWIG_IsOK(res1)) {
12461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12462 }
12463 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12464 {
12465 arg2 = wxString_in_helper(obj1);
12466 if (arg2 == NULL) SWIG_fail;
12467 temp2 = true;
12468 }
12469 {
12470 PyThreadState* __tstate = wxPyBeginAllowThreads();
12471 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 {
12476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12477 }
12478 {
12479 if (temp2)
12480 delete arg2;
12481 }
12482 return resultobj;
12483 fail:
12484 {
12485 if (temp2)
12486 delete arg2;
12487 }
12488 return NULL;
12489 }
12490
12491
12492 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj = 0;
12494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12495 wxString const &arg2_defvalue = wxPyEmptyString ;
12496 wxString *arg2 = (wxString *) &arg2_defvalue ;
12497 bool result;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 bool temp2 = false ;
12501 PyObject * obj0 = 0 ;
12502 PyObject * obj1 = 0 ;
12503 char * kwnames[] = {
12504 (char *) "self",(char *) "file", NULL
12505 };
12506
12507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12509 if (!SWIG_IsOK(res1)) {
12510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12511 }
12512 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12513 if (obj1) {
12514 {
12515 arg2 = wxString_in_helper(obj1);
12516 if (arg2 == NULL) SWIG_fail;
12517 temp2 = true;
12518 }
12519 }
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 {
12527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12528 }
12529 {
12530 if (temp2)
12531 delete arg2;
12532 }
12533 return resultobj;
12534 fail:
12535 {
12536 if (temp2)
12537 delete arg2;
12538 }
12539 return NULL;
12540 }
12541
12542
12543 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 PyObject *swig_obj[1] ;
12549
12550 if (!args) SWIG_fail;
12551 swig_obj[0] = args;
12552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12555 }
12556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->MarkDirty();
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 PyObject *swig_obj[1] ;
12576
12577 if (!args) SWIG_fail;
12578 swig_obj[0] = args;
12579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->DiscardEdits();
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 resultobj = SWIG_Py_Void();
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj = 0;
12599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12600 bool arg2 ;
12601 void *argp1 = 0 ;
12602 int res1 = 0 ;
12603 bool val2 ;
12604 int ecode2 = 0 ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 char * kwnames[] = {
12608 (char *) "self",(char *) "modified", NULL
12609 };
12610
12611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12613 if (!SWIG_IsOK(res1)) {
12614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12615 }
12616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12617 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12618 if (!SWIG_IsOK(ecode2)) {
12619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12620 }
12621 arg2 = static_cast< bool >(val2);
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->SetModified(arg2);
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 return resultobj;
12630 fail:
12631 return NULL;
12632 }
12633
12634
12635 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12636 PyObject *resultobj = 0;
12637 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12638 unsigned long arg2 ;
12639 void *argp1 = 0 ;
12640 int res1 = 0 ;
12641 unsigned long val2 ;
12642 int ecode2 = 0 ;
12643 PyObject * obj0 = 0 ;
12644 PyObject * obj1 = 0 ;
12645 char * kwnames[] = {
12646 (char *) "self",(char *) "len", NULL
12647 };
12648
12649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12651 if (!SWIG_IsOK(res1)) {
12652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12653 }
12654 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12655 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12656 if (!SWIG_IsOK(ecode2)) {
12657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12658 }
12659 arg2 = static_cast< unsigned long >(val2);
12660 {
12661 PyThreadState* __tstate = wxPyBeginAllowThreads();
12662 (arg1)->SetMaxLength(arg2);
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 resultobj = SWIG_Py_Void();
12667 return resultobj;
12668 fail:
12669 return NULL;
12670 }
12671
12672
12673 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj = 0;
12675 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12676 wxString *arg2 = 0 ;
12677 void *argp1 = 0 ;
12678 int res1 = 0 ;
12679 bool temp2 = false ;
12680 PyObject * obj0 = 0 ;
12681 PyObject * obj1 = 0 ;
12682 char * kwnames[] = {
12683 (char *) "self",(char *) "text", NULL
12684 };
12685
12686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12688 if (!SWIG_IsOK(res1)) {
12689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12690 }
12691 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12692 {
12693 arg2 = wxString_in_helper(obj1);
12694 if (arg2 == NULL) SWIG_fail;
12695 temp2 = true;
12696 }
12697 {
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 (arg1)->WriteText((wxString const &)*arg2);
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 resultobj = SWIG_Py_Void();
12704 {
12705 if (temp2)
12706 delete arg2;
12707 }
12708 return resultobj;
12709 fail:
12710 {
12711 if (temp2)
12712 delete arg2;
12713 }
12714 return NULL;
12715 }
12716
12717
12718 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj = 0;
12720 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12721 wxString *arg2 = 0 ;
12722 void *argp1 = 0 ;
12723 int res1 = 0 ;
12724 bool temp2 = false ;
12725 PyObject * obj0 = 0 ;
12726 PyObject * obj1 = 0 ;
12727 char * kwnames[] = {
12728 (char *) "self",(char *) "text", NULL
12729 };
12730
12731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12733 if (!SWIG_IsOK(res1)) {
12734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12735 }
12736 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12737 {
12738 arg2 = wxString_in_helper(obj1);
12739 if (arg2 == NULL) SWIG_fail;
12740 temp2 = true;
12741 }
12742 {
12743 PyThreadState* __tstate = wxPyBeginAllowThreads();
12744 (arg1)->AppendText((wxString const &)*arg2);
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 resultobj = SWIG_Py_Void();
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return resultobj;
12754 fail:
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return NULL;
12760 }
12761
12762
12763 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj = 0;
12765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12766 wxKeyEvent *arg2 = 0 ;
12767 bool result;
12768 void *argp1 = 0 ;
12769 int res1 = 0 ;
12770 void *argp2 = 0 ;
12771 int res2 = 0 ;
12772 PyObject * obj0 = 0 ;
12773 PyObject * obj1 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "self",(char *) "event", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12782 }
12783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12785 if (!SWIG_IsOK(res2)) {
12786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12787 }
12788 if (!argp2) {
12789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12790 }
12791 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12792 {
12793 PyThreadState* __tstate = wxPyBeginAllowThreads();
12794 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12795 wxPyEndAllowThreads(__tstate);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 {
12799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12800 }
12801 return resultobj;
12802 fail:
12803 return NULL;
12804 }
12805
12806
12807 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12808 PyObject *resultobj = 0;
12809 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12810 long arg2 ;
12811 long arg3 ;
12812 wxTextAttr *arg4 = 0 ;
12813 bool result;
12814 void *argp1 = 0 ;
12815 int res1 = 0 ;
12816 long val2 ;
12817 int ecode2 = 0 ;
12818 long val3 ;
12819 int ecode3 = 0 ;
12820 void *argp4 = 0 ;
12821 int res4 = 0 ;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 PyObject * obj2 = 0 ;
12825 PyObject * obj3 = 0 ;
12826 char * kwnames[] = {
12827 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12828 };
12829
12830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12832 if (!SWIG_IsOK(res1)) {
12833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12834 }
12835 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12836 ecode2 = SWIG_AsVal_long(obj1, &val2);
12837 if (!SWIG_IsOK(ecode2)) {
12838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12839 }
12840 arg2 = static_cast< long >(val2);
12841 ecode3 = SWIG_AsVal_long(obj2, &val3);
12842 if (!SWIG_IsOK(ecode3)) {
12843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12844 }
12845 arg3 = static_cast< long >(val3);
12846 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12847 if (!SWIG_IsOK(res4)) {
12848 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12849 }
12850 if (!argp4) {
12851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12852 }
12853 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12857 wxPyEndAllowThreads(__tstate);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 }
12860 {
12861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12862 }
12863 return resultobj;
12864 fail:
12865 return NULL;
12866 }
12867
12868
12869 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj = 0;
12871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12872 long arg2 ;
12873 wxTextAttr *arg3 = 0 ;
12874 bool result;
12875 void *argp1 = 0 ;
12876 int res1 = 0 ;
12877 long val2 ;
12878 int ecode2 = 0 ;
12879 void *argp3 = 0 ;
12880 int res3 = 0 ;
12881 PyObject * obj0 = 0 ;
12882 PyObject * obj1 = 0 ;
12883 PyObject * obj2 = 0 ;
12884 char * kwnames[] = {
12885 (char *) "self",(char *) "position",(char *) "style", NULL
12886 };
12887
12888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12890 if (!SWIG_IsOK(res1)) {
12891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12892 }
12893 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12894 ecode2 = SWIG_AsVal_long(obj1, &val2);
12895 if (!SWIG_IsOK(ecode2)) {
12896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12897 }
12898 arg2 = static_cast< long >(val2);
12899 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12900 if (!SWIG_IsOK(res3)) {
12901 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12902 }
12903 if (!argp3) {
12904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12905 }
12906 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12907 {
12908 PyThreadState* __tstate = wxPyBeginAllowThreads();
12909 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 {
12914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12915 }
12916 return resultobj;
12917 fail:
12918 return NULL;
12919 }
12920
12921
12922 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj = 0;
12924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12925 wxTextAttr *arg2 = 0 ;
12926 bool result;
12927 void *argp1 = 0 ;
12928 int res1 = 0 ;
12929 void *argp2 = 0 ;
12930 int res2 = 0 ;
12931 PyObject * obj0 = 0 ;
12932 PyObject * obj1 = 0 ;
12933 char * kwnames[] = {
12934 (char *) "self",(char *) "style", NULL
12935 };
12936
12937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12939 if (!SWIG_IsOK(res1)) {
12940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12941 }
12942 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12944 if (!SWIG_IsOK(res2)) {
12945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12946 }
12947 if (!argp2) {
12948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12949 }
12950 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 {
12958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12959 }
12960 return resultobj;
12961 fail:
12962 return NULL;
12963 }
12964
12965
12966 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12969 wxTextAttr *result = 0 ;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 PyObject *swig_obj[1] ;
12973
12974 if (!args) SWIG_fail;
12975 swig_obj[0] = args;
12976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12979 }
12980 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 {
12984 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12985 result = (wxTextAttr *) &_result_ref;
12986 }
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12991 return resultobj;
12992 fail:
12993 return NULL;
12994 }
12995
12996
12997 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj = 0;
12999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13000 long arg2 ;
13001 long arg3 ;
13002 long result;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 long val2 ;
13006 int ecode2 = 0 ;
13007 long val3 ;
13008 int ecode3 = 0 ;
13009 PyObject * obj0 = 0 ;
13010 PyObject * obj1 = 0 ;
13011 PyObject * obj2 = 0 ;
13012 char * kwnames[] = {
13013 (char *) "self",(char *) "x",(char *) "y", NULL
13014 };
13015
13016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13018 if (!SWIG_IsOK(res1)) {
13019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13020 }
13021 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13022 ecode2 = SWIG_AsVal_long(obj1, &val2);
13023 if (!SWIG_IsOK(ecode2)) {
13024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13025 }
13026 arg2 = static_cast< long >(val2);
13027 ecode3 = SWIG_AsVal_long(obj2, &val3);
13028 if (!SWIG_IsOK(ecode3)) {
13029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13030 }
13031 arg3 = static_cast< long >(val3);
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 resultobj = SWIG_From_long(static_cast< long >(result));
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj = 0;
13047 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13048 long arg2 ;
13049 long *arg3 = (long *) 0 ;
13050 long *arg4 = (long *) 0 ;
13051 void *argp1 = 0 ;
13052 int res1 = 0 ;
13053 long val2 ;
13054 int ecode2 = 0 ;
13055 long temp3 ;
13056 int res3 = SWIG_TMPOBJ ;
13057 long temp4 ;
13058 int res4 = SWIG_TMPOBJ ;
13059 PyObject * obj0 = 0 ;
13060 PyObject * obj1 = 0 ;
13061 char * kwnames[] = {
13062 (char *) "self",(char *) "pos", NULL
13063 };
13064
13065 arg3 = &temp3;
13066 arg4 = &temp4;
13067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13069 if (!SWIG_IsOK(res1)) {
13070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13071 }
13072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13073 ecode2 = SWIG_AsVal_long(obj1, &val2);
13074 if (!SWIG_IsOK(ecode2)) {
13075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13076 }
13077 arg2 = static_cast< long >(val2);
13078 {
13079 PyThreadState* __tstate = wxPyBeginAllowThreads();
13080 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13081 wxPyEndAllowThreads(__tstate);
13082 if (PyErr_Occurred()) SWIG_fail;
13083 }
13084 resultobj = SWIG_Py_Void();
13085 if (SWIG_IsTmpObj(res3)) {
13086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13087 } else {
13088 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13090 }
13091 if (SWIG_IsTmpObj(res4)) {
13092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13093 } else {
13094 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13096 }
13097 return resultobj;
13098 fail:
13099 return NULL;
13100 }
13101
13102
13103 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj = 0;
13105 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13106 long arg2 ;
13107 void *argp1 = 0 ;
13108 int res1 = 0 ;
13109 long val2 ;
13110 int ecode2 = 0 ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 char * kwnames[] = {
13114 (char *) "self",(char *) "pos", NULL
13115 };
13116
13117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13119 if (!SWIG_IsOK(res1)) {
13120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13121 }
13122 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13123 ecode2 = SWIG_AsVal_long(obj1, &val2);
13124 if (!SWIG_IsOK(ecode2)) {
13125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13126 }
13127 arg2 = static_cast< long >(val2);
13128 {
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 (arg1)->ShowPosition(arg2);
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_Py_Void();
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj = 0;
13143 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13144 wxPoint *arg2 = 0 ;
13145 long *arg3 = (long *) 0 ;
13146 long *arg4 = (long *) 0 ;
13147 wxTextCtrlHitTestResult result;
13148 void *argp1 = 0 ;
13149 int res1 = 0 ;
13150 wxPoint temp2 ;
13151 long temp3 ;
13152 int res3 = SWIG_TMPOBJ ;
13153 long temp4 ;
13154 int res4 = SWIG_TMPOBJ ;
13155 PyObject * obj0 = 0 ;
13156 PyObject * obj1 = 0 ;
13157 char * kwnames[] = {
13158 (char *) "self",(char *) "pt", NULL
13159 };
13160
13161 arg3 = &temp3;
13162 arg4 = &temp4;
13163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13165 if (!SWIG_IsOK(res1)) {
13166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13167 }
13168 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13169 {
13170 arg2 = &temp2;
13171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13172 }
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_From_int(static_cast< int >(result));
13180 if (SWIG_IsTmpObj(res3)) {
13181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13182 } else {
13183 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13185 }
13186 if (SWIG_IsTmpObj(res4)) {
13187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13188 } else {
13189 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13191 }
13192 return resultobj;
13193 fail:
13194 return NULL;
13195 }
13196
13197
13198 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13199 PyObject *resultobj = 0;
13200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13201 wxPoint *arg2 = 0 ;
13202 long *arg3 = (long *) 0 ;
13203 wxTextCtrlHitTestResult result;
13204 void *argp1 = 0 ;
13205 int res1 = 0 ;
13206 wxPoint temp2 ;
13207 long temp3 ;
13208 int res3 = SWIG_TMPOBJ ;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 char * kwnames[] = {
13212 (char *) "self",(char *) "pt", NULL
13213 };
13214
13215 arg3 = &temp3;
13216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13218 if (!SWIG_IsOK(res1)) {
13219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13220 }
13221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13222 {
13223 arg2 = &temp2;
13224 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13225 }
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = SWIG_From_int(static_cast< int >(result));
13233 if (SWIG_IsTmpObj(res3)) {
13234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13235 } else {
13236 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13238 }
13239 return resultobj;
13240 fail:
13241 return NULL;
13242 }
13243
13244
13245 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13246 PyObject *resultobj = 0;
13247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13248 void *argp1 = 0 ;
13249 int res1 = 0 ;
13250 PyObject *swig_obj[1] ;
13251
13252 if (!args) SWIG_fail;
13253 swig_obj[0] = args;
13254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13255 if (!SWIG_IsOK(res1)) {
13256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13257 }
13258 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13259 {
13260 PyThreadState* __tstate = wxPyBeginAllowThreads();
13261 (arg1)->Copy();
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 resultobj = SWIG_Py_Void();
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 PyObject *swig_obj[1] ;
13278
13279 if (!args) SWIG_fail;
13280 swig_obj[0] = args;
13281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13284 }
13285 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 (arg1)->Cut();
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_Py_Void();
13293 return resultobj;
13294 fail:
13295 return NULL;
13296 }
13297
13298
13299 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13311 }
13312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 (arg1)->Paste();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_Py_Void();
13320 return resultobj;
13321 fail:
13322 return NULL;
13323 }
13324
13325
13326 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13327 PyObject *resultobj = 0;
13328 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13329 bool result;
13330 void *argp1 = 0 ;
13331 int res1 = 0 ;
13332 PyObject *swig_obj[1] ;
13333
13334 if (!args) SWIG_fail;
13335 swig_obj[0] = args;
13336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13337 if (!SWIG_IsOK(res1)) {
13338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13339 }
13340 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13341 {
13342 PyThreadState* __tstate = wxPyBeginAllowThreads();
13343 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 {
13348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13349 }
13350 return resultobj;
13351 fail:
13352 return NULL;
13353 }
13354
13355
13356 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13357 PyObject *resultobj = 0;
13358 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13359 bool result;
13360 void *argp1 = 0 ;
13361 int res1 = 0 ;
13362 PyObject *swig_obj[1] ;
13363
13364 if (!args) SWIG_fail;
13365 swig_obj[0] = args;
13366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13367 if (!SWIG_IsOK(res1)) {
13368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13369 }
13370 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13379 }
13380 return resultobj;
13381 fail:
13382 return NULL;
13383 }
13384
13385
13386 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13389 bool result;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject *swig_obj[1] ;
13393
13394 if (!args) SWIG_fail;
13395 swig_obj[0] = args;
13396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13399 }
13400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 {
13408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13409 }
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13417 PyObject *resultobj = 0;
13418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13419 void *argp1 = 0 ;
13420 int res1 = 0 ;
13421 PyObject *swig_obj[1] ;
13422
13423 if (!args) SWIG_fail;
13424 swig_obj[0] = args;
13425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13426 if (!SWIG_IsOK(res1)) {
13427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13428 }
13429 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 (arg1)->Undo();
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 resultobj = SWIG_Py_Void();
13437 return resultobj;
13438 fail:
13439 return NULL;
13440 }
13441
13442
13443 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13444 PyObject *resultobj = 0;
13445 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 PyObject *swig_obj[1] ;
13449
13450 if (!args) SWIG_fail;
13451 swig_obj[0] = args;
13452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13455 }
13456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->Redo();
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_Py_Void();
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 PyObject *resultobj = 0;
13472 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13473 bool result;
13474 void *argp1 = 0 ;
13475 int res1 = 0 ;
13476 PyObject *swig_obj[1] ;
13477
13478 if (!args) SWIG_fail;
13479 swig_obj[0] = args;
13480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13481 if (!SWIG_IsOK(res1)) {
13482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13483 }
13484 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 {
13492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13493 }
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13501 PyObject *resultobj = 0;
13502 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13503 bool result;
13504 void *argp1 = 0 ;
13505 int res1 = 0 ;
13506 PyObject *swig_obj[1] ;
13507
13508 if (!args) SWIG_fail;
13509 swig_obj[0] = args;
13510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13511 if (!SWIG_IsOK(res1)) {
13512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13513 }
13514 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13515 {
13516 PyThreadState* __tstate = wxPyBeginAllowThreads();
13517 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 {
13522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13523 }
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 long arg2 ;
13534 void *argp1 = 0 ;
13535 int res1 = 0 ;
13536 long val2 ;
13537 int ecode2 = 0 ;
13538 PyObject * obj0 = 0 ;
13539 PyObject * obj1 = 0 ;
13540 char * kwnames[] = {
13541 (char *) "self",(char *) "pos", NULL
13542 };
13543
13544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13546 if (!SWIG_IsOK(res1)) {
13547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13548 }
13549 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13550 ecode2 = SWIG_AsVal_long(obj1, &val2);
13551 if (!SWIG_IsOK(ecode2)) {
13552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13553 }
13554 arg2 = static_cast< long >(val2);
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 (arg1)->SetInsertionPoint(arg2);
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 resultobj = SWIG_Py_Void();
13562 return resultobj;
13563 fail:
13564 return NULL;
13565 }
13566
13567
13568 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13569 PyObject *resultobj = 0;
13570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13571 void *argp1 = 0 ;
13572 int res1 = 0 ;
13573 PyObject *swig_obj[1] ;
13574
13575 if (!args) SWIG_fail;
13576 swig_obj[0] = args;
13577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13578 if (!SWIG_IsOK(res1)) {
13579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13580 }
13581 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->SetInsertionPointEnd();
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_Py_Void();
13589 return resultobj;
13590 fail:
13591 return NULL;
13592 }
13593
13594
13595 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 long result;
13599 void *argp1 = 0 ;
13600 int res1 = 0 ;
13601 PyObject *swig_obj[1] ;
13602
13603 if (!args) SWIG_fail;
13604 swig_obj[0] = args;
13605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13608 }
13609 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_From_long(static_cast< long >(result));
13617 return resultobj;
13618 fail:
13619 return NULL;
13620 }
13621
13622
13623 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13624 PyObject *resultobj = 0;
13625 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13626 long result;
13627 void *argp1 = 0 ;
13628 int res1 = 0 ;
13629 PyObject *swig_obj[1] ;
13630
13631 if (!args) SWIG_fail;
13632 swig_obj[0] = args;
13633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13634 if (!SWIG_IsOK(res1)) {
13635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13636 }
13637 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 resultobj = SWIG_From_long(static_cast< long >(result));
13645 return resultobj;
13646 fail:
13647 return NULL;
13648 }
13649
13650
13651 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13652 PyObject *resultobj = 0;
13653 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13654 long arg2 ;
13655 long arg3 ;
13656 void *argp1 = 0 ;
13657 int res1 = 0 ;
13658 long val2 ;
13659 int ecode2 = 0 ;
13660 long val3 ;
13661 int ecode3 = 0 ;
13662 PyObject * obj0 = 0 ;
13663 PyObject * obj1 = 0 ;
13664 PyObject * obj2 = 0 ;
13665 char * kwnames[] = {
13666 (char *) "self",(char *) "from",(char *) "to", NULL
13667 };
13668
13669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13671 if (!SWIG_IsOK(res1)) {
13672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13673 }
13674 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13675 ecode2 = SWIG_AsVal_long(obj1, &val2);
13676 if (!SWIG_IsOK(ecode2)) {
13677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13678 }
13679 arg2 = static_cast< long >(val2);
13680 ecode3 = SWIG_AsVal_long(obj2, &val3);
13681 if (!SWIG_IsOK(ecode3)) {
13682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13683 }
13684 arg3 = static_cast< long >(val3);
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 (arg1)->SetSelection(arg2,arg3);
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 resultobj = SWIG_Py_Void();
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13699 PyObject *resultobj = 0;
13700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13701 void *argp1 = 0 ;
13702 int res1 = 0 ;
13703 PyObject *swig_obj[1] ;
13704
13705 if (!args) SWIG_fail;
13706 swig_obj[0] = args;
13707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13708 if (!SWIG_IsOK(res1)) {
13709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13710 }
13711 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 (arg1)->SelectAll();
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 resultobj = SWIG_Py_Void();
13719 return resultobj;
13720 fail:
13721 return NULL;
13722 }
13723
13724
13725 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13726 PyObject *resultobj = 0;
13727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13728 bool arg2 ;
13729 void *argp1 = 0 ;
13730 int res1 = 0 ;
13731 bool val2 ;
13732 int ecode2 = 0 ;
13733 PyObject * obj0 = 0 ;
13734 PyObject * obj1 = 0 ;
13735 char * kwnames[] = {
13736 (char *) "self",(char *) "editable", NULL
13737 };
13738
13739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13741 if (!SWIG_IsOK(res1)) {
13742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13743 }
13744 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13745 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13746 if (!SWIG_IsOK(ecode2)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13748 }
13749 arg2 = static_cast< bool >(val2);
13750 {
13751 PyThreadState* __tstate = wxPyBeginAllowThreads();
13752 (arg1)->SetEditable(arg2);
13753 wxPyEndAllowThreads(__tstate);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 resultobj = SWIG_Py_Void();
13757 return resultobj;
13758 fail:
13759 return NULL;
13760 }
13761
13762
13763 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13764 PyObject *resultobj = 0;
13765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13766 bool arg2 = (bool) true ;
13767 bool result;
13768 void *argp1 = 0 ;
13769 int res1 = 0 ;
13770 bool val2 ;
13771 int ecode2 = 0 ;
13772 PyObject * obj0 = 0 ;
13773 PyObject * obj1 = 0 ;
13774 char * kwnames[] = {
13775 (char *) "self",(char *) "show", NULL
13776 };
13777
13778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13780 if (!SWIG_IsOK(res1)) {
13781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13782 }
13783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13784 if (obj1) {
13785 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13786 if (!SWIG_IsOK(ecode2)) {
13787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13788 }
13789 arg2 = static_cast< bool >(val2);
13790 }
13791 {
13792 PyThreadState* __tstate = wxPyBeginAllowThreads();
13793 result = (bool)(arg1)->ShowNativeCaret(arg2);
13794 wxPyEndAllowThreads(__tstate);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 }
13797 {
13798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13799 }
13800 return resultobj;
13801 fail:
13802 return NULL;
13803 }
13804
13805
13806 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13807 PyObject *resultobj = 0;
13808 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13809 bool result;
13810 void *argp1 = 0 ;
13811 int res1 = 0 ;
13812 PyObject *swig_obj[1] ;
13813
13814 if (!args) SWIG_fail;
13815 swig_obj[0] = args;
13816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13817 if (!SWIG_IsOK(res1)) {
13818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13819 }
13820 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13821 {
13822 PyThreadState* __tstate = wxPyBeginAllowThreads();
13823 result = (bool)(arg1)->HideNativeCaret();
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 {
13828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13829 }
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj = 0;
13838 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13839 wxString *arg2 = 0 ;
13840 void *argp1 = 0 ;
13841 int res1 = 0 ;
13842 bool temp2 = false ;
13843 PyObject * obj0 = 0 ;
13844 PyObject * obj1 = 0 ;
13845 char * kwnames[] = {
13846 (char *) "self",(char *) "text", NULL
13847 };
13848
13849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13851 if (!SWIG_IsOK(res1)) {
13852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13853 }
13854 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13855 {
13856 arg2 = wxString_in_helper(obj1);
13857 if (arg2 == NULL) SWIG_fail;
13858 temp2 = true;
13859 }
13860 {
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 resultobj = SWIG_Py_Void();
13867 {
13868 if (temp2)
13869 delete arg2;
13870 }
13871 return resultobj;
13872 fail:
13873 {
13874 if (temp2)
13875 delete arg2;
13876 }
13877 return NULL;
13878 }
13879
13880
13881 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13882 PyObject *resultobj = 0;
13883 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13884 long arg2 ;
13885 long arg3 ;
13886 wxString result;
13887 void *argp1 = 0 ;
13888 int res1 = 0 ;
13889 long val2 ;
13890 int ecode2 = 0 ;
13891 long val3 ;
13892 int ecode3 = 0 ;
13893 PyObject * obj0 = 0 ;
13894 PyObject * obj1 = 0 ;
13895 PyObject * obj2 = 0 ;
13896 char * kwnames[] = {
13897 (char *) "self",(char *) "from",(char *) "to", NULL
13898 };
13899
13900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13902 if (!SWIG_IsOK(res1)) {
13903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13904 }
13905 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13906 ecode2 = SWIG_AsVal_long(obj1, &val2);
13907 if (!SWIG_IsOK(ecode2)) {
13908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13909 }
13910 arg2 = static_cast< long >(val2);
13911 ecode3 = SWIG_AsVal_long(obj2, &val3);
13912 if (!SWIG_IsOK(ecode3)) {
13913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13914 }
13915 arg3 = static_cast< long >(val3);
13916 {
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
13918 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 {
13923 #if wxUSE_UNICODE
13924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13925 #else
13926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13927 #endif
13928 }
13929 return resultobj;
13930 fail:
13931 return NULL;
13932 }
13933
13934
13935 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13936 PyObject *resultobj = 0;
13937 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13938 SwigValueWrapper<wxVisualAttributes > result;
13939 int val1 ;
13940 int ecode1 = 0 ;
13941 PyObject * obj0 = 0 ;
13942 char * kwnames[] = {
13943 (char *) "variant", NULL
13944 };
13945
13946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13947 if (obj0) {
13948 ecode1 = SWIG_AsVal_int(obj0, &val1);
13949 if (!SWIG_IsOK(ecode1)) {
13950 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13951 }
13952 arg1 = static_cast< wxWindowVariant >(val1);
13953 }
13954 {
13955 if (!wxPyCheckForApp()) SWIG_fail;
13956 PyThreadState* __tstate = wxPyBeginAllowThreads();
13957 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13962 return resultobj;
13963 fail:
13964 return NULL;
13965 }
13966
13967
13968 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13969 PyObject *obj;
13970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13971 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13972 return SWIG_Py_Void();
13973 }
13974
13975 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13976 return SWIG_Python_InitShadowInstance(args);
13977 }
13978
13979 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13980 PyObject *resultobj = 0;
13981 int arg1 ;
13982 wxMouseEvent *arg2 = 0 ;
13983 long arg3 ;
13984 long arg4 ;
13985 wxTextUrlEvent *result = 0 ;
13986 int val1 ;
13987 int ecode1 = 0 ;
13988 void *argp2 = 0 ;
13989 int res2 = 0 ;
13990 long val3 ;
13991 int ecode3 = 0 ;
13992 long val4 ;
13993 int ecode4 = 0 ;
13994 PyObject * obj0 = 0 ;
13995 PyObject * obj1 = 0 ;
13996 PyObject * obj2 = 0 ;
13997 PyObject * obj3 = 0 ;
13998 char * kwnames[] = {
13999 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14000 };
14001
14002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14003 ecode1 = SWIG_AsVal_int(obj0, &val1);
14004 if (!SWIG_IsOK(ecode1)) {
14005 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14006 }
14007 arg1 = static_cast< int >(val1);
14008 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14009 if (!SWIG_IsOK(res2)) {
14010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14011 }
14012 if (!argp2) {
14013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14014 }
14015 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14016 ecode3 = SWIG_AsVal_long(obj2, &val3);
14017 if (!SWIG_IsOK(ecode3)) {
14018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14019 }
14020 arg3 = static_cast< long >(val3);
14021 ecode4 = SWIG_AsVal_long(obj3, &val4);
14022 if (!SWIG_IsOK(ecode4)) {
14023 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14024 }
14025 arg4 = static_cast< long >(val4);
14026 {
14027 PyThreadState* __tstate = wxPyBeginAllowThreads();
14028 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14033 return resultobj;
14034 fail:
14035 return NULL;
14036 }
14037
14038
14039 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14040 PyObject *resultobj = 0;
14041 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14042 wxMouseEvent *result = 0 ;
14043 void *argp1 = 0 ;
14044 int res1 = 0 ;
14045 PyObject *swig_obj[1] ;
14046
14047 if (!args) SWIG_fail;
14048 swig_obj[0] = args;
14049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14050 if (!SWIG_IsOK(res1)) {
14051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14052 }
14053 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 {
14057 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14058 result = (wxMouseEvent *) &_result_ref;
14059 }
14060 wxPyEndAllowThreads(__tstate);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 }
14063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14071 PyObject *resultobj = 0;
14072 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14073 long result;
14074 void *argp1 = 0 ;
14075 int res1 = 0 ;
14076 PyObject *swig_obj[1] ;
14077
14078 if (!args) SWIG_fail;
14079 swig_obj[0] = args;
14080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14081 if (!SWIG_IsOK(res1)) {
14082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14083 }
14084 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14085 {
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14088 wxPyEndAllowThreads(__tstate);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 }
14091 resultobj = SWIG_From_long(static_cast< long >(result));
14092 return resultobj;
14093 fail:
14094 return NULL;
14095 }
14096
14097
14098 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14099 PyObject *resultobj = 0;
14100 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14101 long result;
14102 void *argp1 = 0 ;
14103 int res1 = 0 ;
14104 PyObject *swig_obj[1] ;
14105
14106 if (!args) SWIG_fail;
14107 swig_obj[0] = args;
14108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14109 if (!SWIG_IsOK(res1)) {
14110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14111 }
14112 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14113 {
14114 PyThreadState* __tstate = wxPyBeginAllowThreads();
14115 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14116 wxPyEndAllowThreads(__tstate);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 resultobj = SWIG_From_long(static_cast< long >(result));
14120 return resultobj;
14121 fail:
14122 return NULL;
14123 }
14124
14125
14126 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14127 PyObject *obj;
14128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14129 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14130 return SWIG_Py_Void();
14131 }
14132
14133 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14134 return SWIG_Python_InitShadowInstance(args);
14135 }
14136
14137 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14138 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14139 return 1;
14140 }
14141
14142
14143 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14144 PyObject *pyobj = 0;
14145
14146 {
14147 #if wxUSE_UNICODE
14148 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14149 #else
14150 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14151 #endif
14152 }
14153 return pyobj;
14154 }
14155
14156
14157 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14158 PyObject *resultobj = 0;
14159 wxWindow *arg1 = (wxWindow *) 0 ;
14160 int arg2 = (int) -1 ;
14161 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14162 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14163 wxSize const &arg4_defvalue = wxDefaultSize ;
14164 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14165 long arg5 = (long) wxSB_HORIZONTAL ;
14166 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14167 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14168 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14169 wxString *arg7 = (wxString *) &arg7_defvalue ;
14170 wxScrollBar *result = 0 ;
14171 void *argp1 = 0 ;
14172 int res1 = 0 ;
14173 int val2 ;
14174 int ecode2 = 0 ;
14175 wxPoint temp3 ;
14176 wxSize temp4 ;
14177 long val5 ;
14178 int ecode5 = 0 ;
14179 void *argp6 = 0 ;
14180 int res6 = 0 ;
14181 bool temp7 = false ;
14182 PyObject * obj0 = 0 ;
14183 PyObject * obj1 = 0 ;
14184 PyObject * obj2 = 0 ;
14185 PyObject * obj3 = 0 ;
14186 PyObject * obj4 = 0 ;
14187 PyObject * obj5 = 0 ;
14188 PyObject * obj6 = 0 ;
14189 char * kwnames[] = {
14190 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14191 };
14192
14193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14195 if (!SWIG_IsOK(res1)) {
14196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14197 }
14198 arg1 = reinterpret_cast< wxWindow * >(argp1);
14199 if (obj1) {
14200 ecode2 = SWIG_AsVal_int(obj1, &val2);
14201 if (!SWIG_IsOK(ecode2)) {
14202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14203 }
14204 arg2 = static_cast< int >(val2);
14205 }
14206 if (obj2) {
14207 {
14208 arg3 = &temp3;
14209 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14210 }
14211 }
14212 if (obj3) {
14213 {
14214 arg4 = &temp4;
14215 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14216 }
14217 }
14218 if (obj4) {
14219 ecode5 = SWIG_AsVal_long(obj4, &val5);
14220 if (!SWIG_IsOK(ecode5)) {
14221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14222 }
14223 arg5 = static_cast< long >(val5);
14224 }
14225 if (obj5) {
14226 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14227 if (!SWIG_IsOK(res6)) {
14228 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14229 }
14230 if (!argp6) {
14231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14232 }
14233 arg6 = reinterpret_cast< wxValidator * >(argp6);
14234 }
14235 if (obj6) {
14236 {
14237 arg7 = wxString_in_helper(obj6);
14238 if (arg7 == NULL) SWIG_fail;
14239 temp7 = true;
14240 }
14241 }
14242 {
14243 if (!wxPyCheckForApp()) SWIG_fail;
14244 PyThreadState* __tstate = wxPyBeginAllowThreads();
14245 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14250 {
14251 if (temp7)
14252 delete arg7;
14253 }
14254 return resultobj;
14255 fail:
14256 {
14257 if (temp7)
14258 delete arg7;
14259 }
14260 return NULL;
14261 }
14262
14263
14264 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14265 PyObject *resultobj = 0;
14266 wxScrollBar *result = 0 ;
14267
14268 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14269 {
14270 if (!wxPyCheckForApp()) SWIG_fail;
14271 PyThreadState* __tstate = wxPyBeginAllowThreads();
14272 result = (wxScrollBar *)new wxScrollBar();
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14277 return resultobj;
14278 fail:
14279 return NULL;
14280 }
14281
14282
14283 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj = 0;
14285 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14286 wxWindow *arg2 = (wxWindow *) 0 ;
14287 int arg3 = (int) -1 ;
14288 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14289 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14290 wxSize const &arg5_defvalue = wxDefaultSize ;
14291 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14292 long arg6 = (long) wxSB_HORIZONTAL ;
14293 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14294 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14295 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14296 wxString *arg8 = (wxString *) &arg8_defvalue ;
14297 bool result;
14298 void *argp1 = 0 ;
14299 int res1 = 0 ;
14300 void *argp2 = 0 ;
14301 int res2 = 0 ;
14302 int val3 ;
14303 int ecode3 = 0 ;
14304 wxPoint temp4 ;
14305 wxSize temp5 ;
14306 long val6 ;
14307 int ecode6 = 0 ;
14308 void *argp7 = 0 ;
14309 int res7 = 0 ;
14310 bool temp8 = false ;
14311 PyObject * obj0 = 0 ;
14312 PyObject * obj1 = 0 ;
14313 PyObject * obj2 = 0 ;
14314 PyObject * obj3 = 0 ;
14315 PyObject * obj4 = 0 ;
14316 PyObject * obj5 = 0 ;
14317 PyObject * obj6 = 0 ;
14318 PyObject * obj7 = 0 ;
14319 char * kwnames[] = {
14320 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14321 };
14322
14323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14325 if (!SWIG_IsOK(res1)) {
14326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14327 }
14328 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14329 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14330 if (!SWIG_IsOK(res2)) {
14331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14332 }
14333 arg2 = reinterpret_cast< wxWindow * >(argp2);
14334 if (obj2) {
14335 ecode3 = SWIG_AsVal_int(obj2, &val3);
14336 if (!SWIG_IsOK(ecode3)) {
14337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14338 }
14339 arg3 = static_cast< int >(val3);
14340 }
14341 if (obj3) {
14342 {
14343 arg4 = &temp4;
14344 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14345 }
14346 }
14347 if (obj4) {
14348 {
14349 arg5 = &temp5;
14350 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14351 }
14352 }
14353 if (obj5) {
14354 ecode6 = SWIG_AsVal_long(obj5, &val6);
14355 if (!SWIG_IsOK(ecode6)) {
14356 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14357 }
14358 arg6 = static_cast< long >(val6);
14359 }
14360 if (obj6) {
14361 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14362 if (!SWIG_IsOK(res7)) {
14363 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14364 }
14365 if (!argp7) {
14366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14367 }
14368 arg7 = reinterpret_cast< wxValidator * >(argp7);
14369 }
14370 if (obj7) {
14371 {
14372 arg8 = wxString_in_helper(obj7);
14373 if (arg8 == NULL) SWIG_fail;
14374 temp8 = true;
14375 }
14376 }
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 {
14384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14385 }
14386 {
14387 if (temp8)
14388 delete arg8;
14389 }
14390 return resultobj;
14391 fail:
14392 {
14393 if (temp8)
14394 delete arg8;
14395 }
14396 return NULL;
14397 }
14398
14399
14400 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14401 PyObject *resultobj = 0;
14402 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14403 int result;
14404 void *argp1 = 0 ;
14405 int res1 = 0 ;
14406 PyObject *swig_obj[1] ;
14407
14408 if (!args) SWIG_fail;
14409 swig_obj[0] = args;
14410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14411 if (!SWIG_IsOK(res1)) {
14412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14413 }
14414 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14415 {
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 resultobj = SWIG_From_int(static_cast< int >(result));
14422 return resultobj;
14423 fail:
14424 return NULL;
14425 }
14426
14427
14428 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14429 PyObject *resultobj = 0;
14430 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14431 int result;
14432 void *argp1 = 0 ;
14433 int res1 = 0 ;
14434 PyObject *swig_obj[1] ;
14435
14436 if (!args) SWIG_fail;
14437 swig_obj[0] = args;
14438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14439 if (!SWIG_IsOK(res1)) {
14440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14441 }
14442 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = SWIG_From_int(static_cast< int >(result));
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14457 PyObject *resultobj = 0;
14458 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14459 int result;
14460 void *argp1 = 0 ;
14461 int res1 = 0 ;
14462 PyObject *swig_obj[1] ;
14463
14464 if (!args) SWIG_fail;
14465 swig_obj[0] = args;
14466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14467 if (!SWIG_IsOK(res1)) {
14468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14469 }
14470 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14474 wxPyEndAllowThreads(__tstate);
14475 if (PyErr_Occurred()) SWIG_fail;
14476 }
14477 resultobj = SWIG_From_int(static_cast< int >(result));
14478 return resultobj;
14479 fail:
14480 return NULL;
14481 }
14482
14483
14484 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14485 PyObject *resultobj = 0;
14486 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14487 int result;
14488 void *argp1 = 0 ;
14489 int res1 = 0 ;
14490 PyObject *swig_obj[1] ;
14491
14492 if (!args) SWIG_fail;
14493 swig_obj[0] = args;
14494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14495 if (!SWIG_IsOK(res1)) {
14496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14497 }
14498 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 result = (int)((wxScrollBar const *)arg1)->GetRange();
14502 wxPyEndAllowThreads(__tstate);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 resultobj = SWIG_From_int(static_cast< int >(result));
14506 return resultobj;
14507 fail:
14508 return NULL;
14509 }
14510
14511
14512 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14513 PyObject *resultobj = 0;
14514 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14515 bool result;
14516 void *argp1 = 0 ;
14517 int res1 = 0 ;
14518 PyObject *swig_obj[1] ;
14519
14520 if (!args) SWIG_fail;
14521 swig_obj[0] = args;
14522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14523 if (!SWIG_IsOK(res1)) {
14524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14525 }
14526 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 {
14534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14535 }
14536 return resultobj;
14537 fail:
14538 return NULL;
14539 }
14540
14541
14542 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14543 PyObject *resultobj = 0;
14544 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14545 int arg2 ;
14546 void *argp1 = 0 ;
14547 int res1 = 0 ;
14548 int val2 ;
14549 int ecode2 = 0 ;
14550 PyObject * obj0 = 0 ;
14551 PyObject * obj1 = 0 ;
14552 char * kwnames[] = {
14553 (char *) "self",(char *) "viewStart", NULL
14554 };
14555
14556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14558 if (!SWIG_IsOK(res1)) {
14559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14560 }
14561 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14562 ecode2 = SWIG_AsVal_int(obj1, &val2);
14563 if (!SWIG_IsOK(ecode2)) {
14564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14565 }
14566 arg2 = static_cast< int >(val2);
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 (arg1)->SetThumbPosition(arg2);
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 resultobj = SWIG_Py_Void();
14574 return resultobj;
14575 fail:
14576 return NULL;
14577 }
14578
14579
14580 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14581 PyObject *resultobj = 0;
14582 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14583 SwigValueWrapper<wxVisualAttributes > result;
14584 int val1 ;
14585 int ecode1 = 0 ;
14586 PyObject * obj0 = 0 ;
14587 char * kwnames[] = {
14588 (char *) "variant", NULL
14589 };
14590
14591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14592 if (obj0) {
14593 ecode1 = SWIG_AsVal_int(obj0, &val1);
14594 if (!SWIG_IsOK(ecode1)) {
14595 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14596 }
14597 arg1 = static_cast< wxWindowVariant >(val1);
14598 }
14599 {
14600 if (!wxPyCheckForApp()) SWIG_fail;
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14603 wxPyEndAllowThreads(__tstate);
14604 if (PyErr_Occurred()) SWIG_fail;
14605 }
14606 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14607 return resultobj;
14608 fail:
14609 return NULL;
14610 }
14611
14612
14613 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14614 PyObject *obj;
14615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14616 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14617 return SWIG_Py_Void();
14618 }
14619
14620 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14621 return SWIG_Python_InitShadowInstance(args);
14622 }
14623
14624 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14625 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14626 return 1;
14627 }
14628
14629
14630 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14631 PyObject *pyobj = 0;
14632
14633 {
14634 #if wxUSE_UNICODE
14635 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14636 #else
14637 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14638 #endif
14639 }
14640 return pyobj;
14641 }
14642
14643
14644 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14645 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14646 return 1;
14647 }
14648
14649
14650 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14651 PyObject *pyobj = 0;
14652
14653 {
14654 #if wxUSE_UNICODE
14655 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14656 #else
14657 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14658 #endif
14659 }
14660 return pyobj;
14661 }
14662
14663
14664 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj = 0;
14666 wxWindow *arg1 = (wxWindow *) 0 ;
14667 int arg2 = (int) -1 ;
14668 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14669 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14670 wxSize const &arg4_defvalue = wxDefaultSize ;
14671 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14672 long arg5 = (long) wxSP_HORIZONTAL ;
14673 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14674 wxString *arg6 = (wxString *) &arg6_defvalue ;
14675 wxSpinButton *result = 0 ;
14676 void *argp1 = 0 ;
14677 int res1 = 0 ;
14678 int val2 ;
14679 int ecode2 = 0 ;
14680 wxPoint temp3 ;
14681 wxSize temp4 ;
14682 long val5 ;
14683 int ecode5 = 0 ;
14684 bool temp6 = false ;
14685 PyObject * obj0 = 0 ;
14686 PyObject * obj1 = 0 ;
14687 PyObject * obj2 = 0 ;
14688 PyObject * obj3 = 0 ;
14689 PyObject * obj4 = 0 ;
14690 PyObject * obj5 = 0 ;
14691 char * kwnames[] = {
14692 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14693 };
14694
14695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14697 if (!SWIG_IsOK(res1)) {
14698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14699 }
14700 arg1 = reinterpret_cast< wxWindow * >(argp1);
14701 if (obj1) {
14702 ecode2 = SWIG_AsVal_int(obj1, &val2);
14703 if (!SWIG_IsOK(ecode2)) {
14704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14705 }
14706 arg2 = static_cast< int >(val2);
14707 }
14708 if (obj2) {
14709 {
14710 arg3 = &temp3;
14711 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14712 }
14713 }
14714 if (obj3) {
14715 {
14716 arg4 = &temp4;
14717 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14718 }
14719 }
14720 if (obj4) {
14721 ecode5 = SWIG_AsVal_long(obj4, &val5);
14722 if (!SWIG_IsOK(ecode5)) {
14723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14724 }
14725 arg5 = static_cast< long >(val5);
14726 }
14727 if (obj5) {
14728 {
14729 arg6 = wxString_in_helper(obj5);
14730 if (arg6 == NULL) SWIG_fail;
14731 temp6 = true;
14732 }
14733 }
14734 {
14735 if (!wxPyCheckForApp()) SWIG_fail;
14736 PyThreadState* __tstate = wxPyBeginAllowThreads();
14737 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14742 {
14743 if (temp6)
14744 delete arg6;
14745 }
14746 return resultobj;
14747 fail:
14748 {
14749 if (temp6)
14750 delete arg6;
14751 }
14752 return NULL;
14753 }
14754
14755
14756 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14757 PyObject *resultobj = 0;
14758 wxSpinButton *result = 0 ;
14759
14760 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14761 {
14762 if (!wxPyCheckForApp()) SWIG_fail;
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = (wxSpinButton *)new wxSpinButton();
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14769 return resultobj;
14770 fail:
14771 return NULL;
14772 }
14773
14774
14775 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14776 PyObject *resultobj = 0;
14777 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14778 wxWindow *arg2 = (wxWindow *) 0 ;
14779 int arg3 = (int) -1 ;
14780 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14781 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14782 wxSize const &arg5_defvalue = wxDefaultSize ;
14783 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14784 long arg6 = (long) wxSP_HORIZONTAL ;
14785 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14786 wxString *arg7 = (wxString *) &arg7_defvalue ;
14787 bool result;
14788 void *argp1 = 0 ;
14789 int res1 = 0 ;
14790 void *argp2 = 0 ;
14791 int res2 = 0 ;
14792 int val3 ;
14793 int ecode3 = 0 ;
14794 wxPoint temp4 ;
14795 wxSize temp5 ;
14796 long val6 ;
14797 int ecode6 = 0 ;
14798 bool temp7 = false ;
14799 PyObject * obj0 = 0 ;
14800 PyObject * obj1 = 0 ;
14801 PyObject * obj2 = 0 ;
14802 PyObject * obj3 = 0 ;
14803 PyObject * obj4 = 0 ;
14804 PyObject * obj5 = 0 ;
14805 PyObject * obj6 = 0 ;
14806 char * kwnames[] = {
14807 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14808 };
14809
14810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14812 if (!SWIG_IsOK(res1)) {
14813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14814 }
14815 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14817 if (!SWIG_IsOK(res2)) {
14818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14819 }
14820 arg2 = reinterpret_cast< wxWindow * >(argp2);
14821 if (obj2) {
14822 ecode3 = SWIG_AsVal_int(obj2, &val3);
14823 if (!SWIG_IsOK(ecode3)) {
14824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14825 }
14826 arg3 = static_cast< int >(val3);
14827 }
14828 if (obj3) {
14829 {
14830 arg4 = &temp4;
14831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14832 }
14833 }
14834 if (obj4) {
14835 {
14836 arg5 = &temp5;
14837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14838 }
14839 }
14840 if (obj5) {
14841 ecode6 = SWIG_AsVal_long(obj5, &val6);
14842 if (!SWIG_IsOK(ecode6)) {
14843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14844 }
14845 arg6 = static_cast< long >(val6);
14846 }
14847 if (obj6) {
14848 {
14849 arg7 = wxString_in_helper(obj6);
14850 if (arg7 == NULL) SWIG_fail;
14851 temp7 = true;
14852 }
14853 }
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14857 wxPyEndAllowThreads(__tstate);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 }
14860 {
14861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14862 }
14863 {
14864 if (temp7)
14865 delete arg7;
14866 }
14867 return resultobj;
14868 fail:
14869 {
14870 if (temp7)
14871 delete arg7;
14872 }
14873 return NULL;
14874 }
14875
14876
14877 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14878 PyObject *resultobj = 0;
14879 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14880 int result;
14881 void *argp1 = 0 ;
14882 int res1 = 0 ;
14883 PyObject *swig_obj[1] ;
14884
14885 if (!args) SWIG_fail;
14886 swig_obj[0] = args;
14887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14888 if (!SWIG_IsOK(res1)) {
14889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14890 }
14891 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14892 {
14893 PyThreadState* __tstate = wxPyBeginAllowThreads();
14894 result = (int)((wxSpinButton const *)arg1)->GetValue();
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 resultobj = SWIG_From_int(static_cast< int >(result));
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14906 PyObject *resultobj = 0;
14907 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14908 int result;
14909 void *argp1 = 0 ;
14910 int res1 = 0 ;
14911 PyObject *swig_obj[1] ;
14912
14913 if (!args) SWIG_fail;
14914 swig_obj[0] = args;
14915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14918 }
14919 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14920 {
14921 PyThreadState* __tstate = wxPyBeginAllowThreads();
14922 result = (int)((wxSpinButton const *)arg1)->GetMin();
14923 wxPyEndAllowThreads(__tstate);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 resultobj = SWIG_From_int(static_cast< int >(result));
14927 return resultobj;
14928 fail:
14929 return NULL;
14930 }
14931
14932
14933 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14934 PyObject *resultobj = 0;
14935 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14936 int result;
14937 void *argp1 = 0 ;
14938 int res1 = 0 ;
14939 PyObject *swig_obj[1] ;
14940
14941 if (!args) SWIG_fail;
14942 swig_obj[0] = args;
14943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14944 if (!SWIG_IsOK(res1)) {
14945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14946 }
14947 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 result = (int)((wxSpinButton const *)arg1)->GetMax();
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 resultobj = SWIG_From_int(static_cast< int >(result));
14955 return resultobj;
14956 fail:
14957 return NULL;
14958 }
14959
14960
14961 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj = 0;
14963 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14964 int arg2 ;
14965 void *argp1 = 0 ;
14966 int res1 = 0 ;
14967 int val2 ;
14968 int ecode2 = 0 ;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 char * kwnames[] = {
14972 (char *) "self",(char *) "val", NULL
14973 };
14974
14975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14977 if (!SWIG_IsOK(res1)) {
14978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14979 }
14980 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14981 ecode2 = SWIG_AsVal_int(obj1, &val2);
14982 if (!SWIG_IsOK(ecode2)) {
14983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14984 }
14985 arg2 = static_cast< int >(val2);
14986 {
14987 PyThreadState* __tstate = wxPyBeginAllowThreads();
14988 (arg1)->SetValue(arg2);
14989 wxPyEndAllowThreads(__tstate);
14990 if (PyErr_Occurred()) SWIG_fail;
14991 }
14992 resultobj = SWIG_Py_Void();
14993 return resultobj;
14994 fail:
14995 return NULL;
14996 }
14997
14998
14999 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15000 PyObject *resultobj = 0;
15001 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15002 int arg2 ;
15003 void *argp1 = 0 ;
15004 int res1 = 0 ;
15005 int val2 ;
15006 int ecode2 = 0 ;
15007 PyObject * obj0 = 0 ;
15008 PyObject * obj1 = 0 ;
15009 char * kwnames[] = {
15010 (char *) "self",(char *) "minVal", NULL
15011 };
15012
15013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15015 if (!SWIG_IsOK(res1)) {
15016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15017 }
15018 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15019 ecode2 = SWIG_AsVal_int(obj1, &val2);
15020 if (!SWIG_IsOK(ecode2)) {
15021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15022 }
15023 arg2 = static_cast< int >(val2);
15024 {
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 (arg1)->SetMin(arg2);
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 resultobj = SWIG_Py_Void();
15031 return resultobj;
15032 fail:
15033 return NULL;
15034 }
15035
15036
15037 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15038 PyObject *resultobj = 0;
15039 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15040 int arg2 ;
15041 void *argp1 = 0 ;
15042 int res1 = 0 ;
15043 int val2 ;
15044 int ecode2 = 0 ;
15045 PyObject * obj0 = 0 ;
15046 PyObject * obj1 = 0 ;
15047 char * kwnames[] = {
15048 (char *) "self",(char *) "maxVal", NULL
15049 };
15050
15051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15053 if (!SWIG_IsOK(res1)) {
15054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15055 }
15056 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15057 ecode2 = SWIG_AsVal_int(obj1, &val2);
15058 if (!SWIG_IsOK(ecode2)) {
15059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15060 }
15061 arg2 = static_cast< int >(val2);
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 (arg1)->SetMax(arg2);
15065 wxPyEndAllowThreads(__tstate);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 }
15068 resultobj = SWIG_Py_Void();
15069 return resultobj;
15070 fail:
15071 return NULL;
15072 }
15073
15074
15075 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj = 0;
15077 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15078 int arg2 ;
15079 int arg3 ;
15080 void *argp1 = 0 ;
15081 int res1 = 0 ;
15082 int val2 ;
15083 int ecode2 = 0 ;
15084 int val3 ;
15085 int ecode3 = 0 ;
15086 PyObject * obj0 = 0 ;
15087 PyObject * obj1 = 0 ;
15088 PyObject * obj2 = 0 ;
15089 char * kwnames[] = {
15090 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15091 };
15092
15093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15095 if (!SWIG_IsOK(res1)) {
15096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15097 }
15098 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15099 ecode2 = SWIG_AsVal_int(obj1, &val2);
15100 if (!SWIG_IsOK(ecode2)) {
15101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15102 }
15103 arg2 = static_cast< int >(val2);
15104 ecode3 = SWIG_AsVal_int(obj2, &val3);
15105 if (!SWIG_IsOK(ecode3)) {
15106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15107 }
15108 arg3 = static_cast< int >(val3);
15109 {
15110 PyThreadState* __tstate = wxPyBeginAllowThreads();
15111 (arg1)->SetRange(arg2,arg3);
15112 wxPyEndAllowThreads(__tstate);
15113 if (PyErr_Occurred()) SWIG_fail;
15114 }
15115 resultobj = SWIG_Py_Void();
15116 return resultobj;
15117 fail:
15118 return NULL;
15119 }
15120
15121
15122 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15123 PyObject *resultobj = 0;
15124 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15125 bool result;
15126 void *argp1 = 0 ;
15127 int res1 = 0 ;
15128 PyObject *swig_obj[1] ;
15129
15130 if (!args) SWIG_fail;
15131 swig_obj[0] = args;
15132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15133 if (!SWIG_IsOK(res1)) {
15134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15135 }
15136 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15137 {
15138 PyThreadState* __tstate = wxPyBeginAllowThreads();
15139 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 {
15144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15145 }
15146 return resultobj;
15147 fail:
15148 return NULL;
15149 }
15150
15151
15152 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15153 PyObject *resultobj = 0;
15154 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15155 SwigValueWrapper<wxVisualAttributes > result;
15156 int val1 ;
15157 int ecode1 = 0 ;
15158 PyObject * obj0 = 0 ;
15159 char * kwnames[] = {
15160 (char *) "variant", NULL
15161 };
15162
15163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15164 if (obj0) {
15165 ecode1 = SWIG_AsVal_int(obj0, &val1);
15166 if (!SWIG_IsOK(ecode1)) {
15167 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15168 }
15169 arg1 = static_cast< wxWindowVariant >(val1);
15170 }
15171 {
15172 if (!wxPyCheckForApp()) SWIG_fail;
15173 PyThreadState* __tstate = wxPyBeginAllowThreads();
15174 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15175 wxPyEndAllowThreads(__tstate);
15176 if (PyErr_Occurred()) SWIG_fail;
15177 }
15178 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15179 return resultobj;
15180 fail:
15181 return NULL;
15182 }
15183
15184
15185 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15186 PyObject *obj;
15187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15188 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15189 return SWIG_Py_Void();
15190 }
15191
15192 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15193 return SWIG_Python_InitShadowInstance(args);
15194 }
15195
15196 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15197 PyObject *resultobj = 0;
15198 wxWindow *arg1 = (wxWindow *) 0 ;
15199 int arg2 = (int) -1 ;
15200 wxString const &arg3_defvalue = wxPyEmptyString ;
15201 wxString *arg3 = (wxString *) &arg3_defvalue ;
15202 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15203 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15204 wxSize const &arg5_defvalue = wxDefaultSize ;
15205 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15206 long arg6 = (long) wxSP_ARROW_KEYS ;
15207 int arg7 = (int) 0 ;
15208 int arg8 = (int) 100 ;
15209 int arg9 = (int) 0 ;
15210 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15211 wxString *arg10 = (wxString *) &arg10_defvalue ;
15212 wxSpinCtrl *result = 0 ;
15213 void *argp1 = 0 ;
15214 int res1 = 0 ;
15215 int val2 ;
15216 int ecode2 = 0 ;
15217 bool temp3 = false ;
15218 wxPoint temp4 ;
15219 wxSize temp5 ;
15220 long val6 ;
15221 int ecode6 = 0 ;
15222 int val7 ;
15223 int ecode7 = 0 ;
15224 int val8 ;
15225 int ecode8 = 0 ;
15226 int val9 ;
15227 int ecode9 = 0 ;
15228 bool temp10 = false ;
15229 PyObject * obj0 = 0 ;
15230 PyObject * obj1 = 0 ;
15231 PyObject * obj2 = 0 ;
15232 PyObject * obj3 = 0 ;
15233 PyObject * obj4 = 0 ;
15234 PyObject * obj5 = 0 ;
15235 PyObject * obj6 = 0 ;
15236 PyObject * obj7 = 0 ;
15237 PyObject * obj8 = 0 ;
15238 PyObject * obj9 = 0 ;
15239 char * kwnames[] = {
15240 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15241 };
15242
15243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15245 if (!SWIG_IsOK(res1)) {
15246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15247 }
15248 arg1 = reinterpret_cast< wxWindow * >(argp1);
15249 if (obj1) {
15250 ecode2 = SWIG_AsVal_int(obj1, &val2);
15251 if (!SWIG_IsOK(ecode2)) {
15252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15253 }
15254 arg2 = static_cast< int >(val2);
15255 }
15256 if (obj2) {
15257 {
15258 arg3 = wxString_in_helper(obj2);
15259 if (arg3 == NULL) SWIG_fail;
15260 temp3 = true;
15261 }
15262 }
15263 if (obj3) {
15264 {
15265 arg4 = &temp4;
15266 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15267 }
15268 }
15269 if (obj4) {
15270 {
15271 arg5 = &temp5;
15272 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15273 }
15274 }
15275 if (obj5) {
15276 ecode6 = SWIG_AsVal_long(obj5, &val6);
15277 if (!SWIG_IsOK(ecode6)) {
15278 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15279 }
15280 arg6 = static_cast< long >(val6);
15281 }
15282 if (obj6) {
15283 ecode7 = SWIG_AsVal_int(obj6, &val7);
15284 if (!SWIG_IsOK(ecode7)) {
15285 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15286 }
15287 arg7 = static_cast< int >(val7);
15288 }
15289 if (obj7) {
15290 ecode8 = SWIG_AsVal_int(obj7, &val8);
15291 if (!SWIG_IsOK(ecode8)) {
15292 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15293 }
15294 arg8 = static_cast< int >(val8);
15295 }
15296 if (obj8) {
15297 ecode9 = SWIG_AsVal_int(obj8, &val9);
15298 if (!SWIG_IsOK(ecode9)) {
15299 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15300 }
15301 arg9 = static_cast< int >(val9);
15302 }
15303 if (obj9) {
15304 {
15305 arg10 = wxString_in_helper(obj9);
15306 if (arg10 == NULL) SWIG_fail;
15307 temp10 = true;
15308 }
15309 }
15310 {
15311 if (!wxPyCheckForApp()) SWIG_fail;
15312 PyThreadState* __tstate = wxPyBeginAllowThreads();
15313 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15318 {
15319 if (temp3)
15320 delete arg3;
15321 }
15322 {
15323 if (temp10)
15324 delete arg10;
15325 }
15326 return resultobj;
15327 fail:
15328 {
15329 if (temp3)
15330 delete arg3;
15331 }
15332 {
15333 if (temp10)
15334 delete arg10;
15335 }
15336 return NULL;
15337 }
15338
15339
15340 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15341 PyObject *resultobj = 0;
15342 wxSpinCtrl *result = 0 ;
15343
15344 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15345 {
15346 if (!wxPyCheckForApp()) SWIG_fail;
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 result = (wxSpinCtrl *)new wxSpinCtrl();
15349 wxPyEndAllowThreads(__tstate);
15350 if (PyErr_Occurred()) SWIG_fail;
15351 }
15352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15353 return resultobj;
15354 fail:
15355 return NULL;
15356 }
15357
15358
15359 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj = 0;
15361 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15362 wxWindow *arg2 = (wxWindow *) 0 ;
15363 int arg3 = (int) -1 ;
15364 wxString const &arg4_defvalue = wxPyEmptyString ;
15365 wxString *arg4 = (wxString *) &arg4_defvalue ;
15366 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15367 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15368 wxSize const &arg6_defvalue = wxDefaultSize ;
15369 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15370 long arg7 = (long) wxSP_ARROW_KEYS ;
15371 int arg8 = (int) 0 ;
15372 int arg9 = (int) 100 ;
15373 int arg10 = (int) 0 ;
15374 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15375 wxString *arg11 = (wxString *) &arg11_defvalue ;
15376 bool result;
15377 void *argp1 = 0 ;
15378 int res1 = 0 ;
15379 void *argp2 = 0 ;
15380 int res2 = 0 ;
15381 int val3 ;
15382 int ecode3 = 0 ;
15383 bool temp4 = false ;
15384 wxPoint temp5 ;
15385 wxSize temp6 ;
15386 long val7 ;
15387 int ecode7 = 0 ;
15388 int val8 ;
15389 int ecode8 = 0 ;
15390 int val9 ;
15391 int ecode9 = 0 ;
15392 int val10 ;
15393 int ecode10 = 0 ;
15394 bool temp11 = false ;
15395 PyObject * obj0 = 0 ;
15396 PyObject * obj1 = 0 ;
15397 PyObject * obj2 = 0 ;
15398 PyObject * obj3 = 0 ;
15399 PyObject * obj4 = 0 ;
15400 PyObject * obj5 = 0 ;
15401 PyObject * obj6 = 0 ;
15402 PyObject * obj7 = 0 ;
15403 PyObject * obj8 = 0 ;
15404 PyObject * obj9 = 0 ;
15405 PyObject * obj10 = 0 ;
15406 char * kwnames[] = {
15407 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15408 };
15409
15410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15412 if (!SWIG_IsOK(res1)) {
15413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15414 }
15415 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15416 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15417 if (!SWIG_IsOK(res2)) {
15418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15419 }
15420 arg2 = reinterpret_cast< wxWindow * >(argp2);
15421 if (obj2) {
15422 ecode3 = SWIG_AsVal_int(obj2, &val3);
15423 if (!SWIG_IsOK(ecode3)) {
15424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15425 }
15426 arg3 = static_cast< int >(val3);
15427 }
15428 if (obj3) {
15429 {
15430 arg4 = wxString_in_helper(obj3);
15431 if (arg4 == NULL) SWIG_fail;
15432 temp4 = true;
15433 }
15434 }
15435 if (obj4) {
15436 {
15437 arg5 = &temp5;
15438 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15439 }
15440 }
15441 if (obj5) {
15442 {
15443 arg6 = &temp6;
15444 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15445 }
15446 }
15447 if (obj6) {
15448 ecode7 = SWIG_AsVal_long(obj6, &val7);
15449 if (!SWIG_IsOK(ecode7)) {
15450 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15451 }
15452 arg7 = static_cast< long >(val7);
15453 }
15454 if (obj7) {
15455 ecode8 = SWIG_AsVal_int(obj7, &val8);
15456 if (!SWIG_IsOK(ecode8)) {
15457 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15458 }
15459 arg8 = static_cast< int >(val8);
15460 }
15461 if (obj8) {
15462 ecode9 = SWIG_AsVal_int(obj8, &val9);
15463 if (!SWIG_IsOK(ecode9)) {
15464 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15465 }
15466 arg9 = static_cast< int >(val9);
15467 }
15468 if (obj9) {
15469 ecode10 = SWIG_AsVal_int(obj9, &val10);
15470 if (!SWIG_IsOK(ecode10)) {
15471 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15472 }
15473 arg10 = static_cast< int >(val10);
15474 }
15475 if (obj10) {
15476 {
15477 arg11 = wxString_in_helper(obj10);
15478 if (arg11 == NULL) SWIG_fail;
15479 temp11 = true;
15480 }
15481 }
15482 {
15483 PyThreadState* __tstate = wxPyBeginAllowThreads();
15484 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 {
15489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15490 }
15491 {
15492 if (temp4)
15493 delete arg4;
15494 }
15495 {
15496 if (temp11)
15497 delete arg11;
15498 }
15499 return resultobj;
15500 fail:
15501 {
15502 if (temp4)
15503 delete arg4;
15504 }
15505 {
15506 if (temp11)
15507 delete arg11;
15508 }
15509 return NULL;
15510 }
15511
15512
15513 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15514 PyObject *resultobj = 0;
15515 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15516 int result;
15517 void *argp1 = 0 ;
15518 int res1 = 0 ;
15519 PyObject *swig_obj[1] ;
15520
15521 if (!args) SWIG_fail;
15522 swig_obj[0] = args;
15523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15524 if (!SWIG_IsOK(res1)) {
15525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15526 }
15527 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 resultobj = SWIG_From_int(static_cast< int >(result));
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj = 0;
15543 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15544 int arg2 ;
15545 void *argp1 = 0 ;
15546 int res1 = 0 ;
15547 int val2 ;
15548 int ecode2 = 0 ;
15549 PyObject * obj0 = 0 ;
15550 PyObject * obj1 = 0 ;
15551 char * kwnames[] = {
15552 (char *) "self",(char *) "value", NULL
15553 };
15554
15555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15557 if (!SWIG_IsOK(res1)) {
15558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15559 }
15560 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15561 ecode2 = SWIG_AsVal_int(obj1, &val2);
15562 if (!SWIG_IsOK(ecode2)) {
15563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15564 }
15565 arg2 = static_cast< int >(val2);
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 (arg1)->SetValue(arg2);
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 resultobj = SWIG_Py_Void();
15573 return resultobj;
15574 fail:
15575 return NULL;
15576 }
15577
15578
15579 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj = 0;
15581 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15582 wxString *arg2 = 0 ;
15583 void *argp1 = 0 ;
15584 int res1 = 0 ;
15585 bool temp2 = false ;
15586 PyObject * obj0 = 0 ;
15587 PyObject * obj1 = 0 ;
15588 char * kwnames[] = {
15589 (char *) "self",(char *) "text", NULL
15590 };
15591
15592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15594 if (!SWIG_IsOK(res1)) {
15595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15596 }
15597 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15598 {
15599 arg2 = wxString_in_helper(obj1);
15600 if (arg2 == NULL) SWIG_fail;
15601 temp2 = true;
15602 }
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 (arg1)->SetValue((wxString const &)*arg2);
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 resultobj = SWIG_Py_Void();
15610 {
15611 if (temp2)
15612 delete arg2;
15613 }
15614 return resultobj;
15615 fail:
15616 {
15617 if (temp2)
15618 delete arg2;
15619 }
15620 return NULL;
15621 }
15622
15623
15624 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15625 PyObject *resultobj = 0;
15626 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15627 int arg2 ;
15628 int arg3 ;
15629 void *argp1 = 0 ;
15630 int res1 = 0 ;
15631 int val2 ;
15632 int ecode2 = 0 ;
15633 int val3 ;
15634 int ecode3 = 0 ;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 PyObject * obj2 = 0 ;
15638 char * kwnames[] = {
15639 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15640 };
15641
15642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15644 if (!SWIG_IsOK(res1)) {
15645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15646 }
15647 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15648 ecode2 = SWIG_AsVal_int(obj1, &val2);
15649 if (!SWIG_IsOK(ecode2)) {
15650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15651 }
15652 arg2 = static_cast< int >(val2);
15653 ecode3 = SWIG_AsVal_int(obj2, &val3);
15654 if (!SWIG_IsOK(ecode3)) {
15655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15656 }
15657 arg3 = static_cast< int >(val3);
15658 {
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 (arg1)->SetRange(arg2,arg3);
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 resultobj = SWIG_Py_Void();
15665 return resultobj;
15666 fail:
15667 return NULL;
15668 }
15669
15670
15671 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15672 PyObject *resultobj = 0;
15673 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15674 int result;
15675 void *argp1 = 0 ;
15676 int res1 = 0 ;
15677 PyObject *swig_obj[1] ;
15678
15679 if (!args) SWIG_fail;
15680 swig_obj[0] = args;
15681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15682 if (!SWIG_IsOK(res1)) {
15683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15684 }
15685 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15689 wxPyEndAllowThreads(__tstate);
15690 if (PyErr_Occurred()) SWIG_fail;
15691 }
15692 resultobj = SWIG_From_int(static_cast< int >(result));
15693 return resultobj;
15694 fail:
15695 return NULL;
15696 }
15697
15698
15699 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15700 PyObject *resultobj = 0;
15701 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15702 int result;
15703 void *argp1 = 0 ;
15704 int res1 = 0 ;
15705 PyObject *swig_obj[1] ;
15706
15707 if (!args) SWIG_fail;
15708 swig_obj[0] = args;
15709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15710 if (!SWIG_IsOK(res1)) {
15711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15712 }
15713 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15714 {
15715 PyThreadState* __tstate = wxPyBeginAllowThreads();
15716 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 resultobj = SWIG_From_int(static_cast< int >(result));
15721 return resultobj;
15722 fail:
15723 return NULL;
15724 }
15725
15726
15727 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15728 PyObject *resultobj = 0;
15729 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15730 long arg2 ;
15731 long arg3 ;
15732 void *argp1 = 0 ;
15733 int res1 = 0 ;
15734 long val2 ;
15735 int ecode2 = 0 ;
15736 long val3 ;
15737 int ecode3 = 0 ;
15738 PyObject * obj0 = 0 ;
15739 PyObject * obj1 = 0 ;
15740 PyObject * obj2 = 0 ;
15741 char * kwnames[] = {
15742 (char *) "self",(char *) "from",(char *) "to", NULL
15743 };
15744
15745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15747 if (!SWIG_IsOK(res1)) {
15748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15749 }
15750 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15751 ecode2 = SWIG_AsVal_long(obj1, &val2);
15752 if (!SWIG_IsOK(ecode2)) {
15753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15754 }
15755 arg2 = static_cast< long >(val2);
15756 ecode3 = SWIG_AsVal_long(obj2, &val3);
15757 if (!SWIG_IsOK(ecode3)) {
15758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15759 }
15760 arg3 = static_cast< long >(val3);
15761 {
15762 PyThreadState* __tstate = wxPyBeginAllowThreads();
15763 (arg1)->SetSelection(arg2,arg3);
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 resultobj = SWIG_Py_Void();
15768 return resultobj;
15769 fail:
15770 return NULL;
15771 }
15772
15773
15774 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj = 0;
15776 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15777 SwigValueWrapper<wxVisualAttributes > result;
15778 int val1 ;
15779 int ecode1 = 0 ;
15780 PyObject * obj0 = 0 ;
15781 char * kwnames[] = {
15782 (char *) "variant", NULL
15783 };
15784
15785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15786 if (obj0) {
15787 ecode1 = SWIG_AsVal_int(obj0, &val1);
15788 if (!SWIG_IsOK(ecode1)) {
15789 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15790 }
15791 arg1 = static_cast< wxWindowVariant >(val1);
15792 }
15793 {
15794 if (!wxPyCheckForApp()) SWIG_fail;
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15797 wxPyEndAllowThreads(__tstate);
15798 if (PyErr_Occurred()) SWIG_fail;
15799 }
15800 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15801 return resultobj;
15802 fail:
15803 return NULL;
15804 }
15805
15806
15807 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15808 PyObject *obj;
15809 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15810 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15811 return SWIG_Py_Void();
15812 }
15813
15814 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15815 return SWIG_Python_InitShadowInstance(args);
15816 }
15817
15818 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15819 PyObject *resultobj = 0;
15820 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15821 int arg2 = (int) 0 ;
15822 wxSpinEvent *result = 0 ;
15823 int val1 ;
15824 int ecode1 = 0 ;
15825 int val2 ;
15826 int ecode2 = 0 ;
15827 PyObject * obj0 = 0 ;
15828 PyObject * obj1 = 0 ;
15829 char * kwnames[] = {
15830 (char *) "commandType",(char *) "winid", NULL
15831 };
15832
15833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15834 if (obj0) {
15835 ecode1 = SWIG_AsVal_int(obj0, &val1);
15836 if (!SWIG_IsOK(ecode1)) {
15837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15838 }
15839 arg1 = static_cast< wxEventType >(val1);
15840 }
15841 if (obj1) {
15842 ecode2 = SWIG_AsVal_int(obj1, &val2);
15843 if (!SWIG_IsOK(ecode2)) {
15844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15845 }
15846 arg2 = static_cast< int >(val2);
15847 }
15848 {
15849 PyThreadState* __tstate = wxPyBeginAllowThreads();
15850 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15855 return resultobj;
15856 fail:
15857 return NULL;
15858 }
15859
15860
15861 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15862 PyObject *resultobj = 0;
15863 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15864 int result;
15865 void *argp1 = 0 ;
15866 int res1 = 0 ;
15867 PyObject *swig_obj[1] ;
15868
15869 if (!args) SWIG_fail;
15870 swig_obj[0] = args;
15871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15872 if (!SWIG_IsOK(res1)) {
15873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15874 }
15875 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15876 {
15877 PyThreadState* __tstate = wxPyBeginAllowThreads();
15878 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15879 wxPyEndAllowThreads(__tstate);
15880 if (PyErr_Occurred()) SWIG_fail;
15881 }
15882 resultobj = SWIG_From_int(static_cast< int >(result));
15883 return resultobj;
15884 fail:
15885 return NULL;
15886 }
15887
15888
15889 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15890 PyObject *resultobj = 0;
15891 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15892 int arg2 ;
15893 void *argp1 = 0 ;
15894 int res1 = 0 ;
15895 int val2 ;
15896 int ecode2 = 0 ;
15897 PyObject * obj0 = 0 ;
15898 PyObject * obj1 = 0 ;
15899 char * kwnames[] = {
15900 (char *) "self",(char *) "pos", NULL
15901 };
15902
15903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15905 if (!SWIG_IsOK(res1)) {
15906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15907 }
15908 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15909 ecode2 = SWIG_AsVal_int(obj1, &val2);
15910 if (!SWIG_IsOK(ecode2)) {
15911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15912 }
15913 arg2 = static_cast< int >(val2);
15914 {
15915 PyThreadState* __tstate = wxPyBeginAllowThreads();
15916 (arg1)->SetPosition(arg2);
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 resultobj = SWIG_Py_Void();
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15928 PyObject *obj;
15929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15930 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15931 return SWIG_Py_Void();
15932 }
15933
15934 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15935 return SWIG_Python_InitShadowInstance(args);
15936 }
15937
15938 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15939 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15940 return 1;
15941 }
15942
15943
15944 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15945 PyObject *pyobj = 0;
15946
15947 {
15948 #if wxUSE_UNICODE
15949 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15950 #else
15951 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15952 #endif
15953 }
15954 return pyobj;
15955 }
15956
15957
15958 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15959 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15960 return 1;
15961 }
15962
15963
15964 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15965 PyObject *pyobj = 0;
15966
15967 {
15968 #if wxUSE_UNICODE
15969 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15970 #else
15971 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15972 #endif
15973 }
15974 return pyobj;
15975 }
15976
15977
15978 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15979 PyObject *resultobj = 0;
15980 wxWindow *arg1 = (wxWindow *) 0 ;
15981 int arg2 = (int) -1 ;
15982 wxString const &arg3_defvalue = wxPyEmptyString ;
15983 wxString *arg3 = (wxString *) &arg3_defvalue ;
15984 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15985 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15986 wxSize const &arg5_defvalue = wxDefaultSize ;
15987 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15988 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15989 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15990 int arg7 = (int) 0 ;
15991 long arg8 = (long) wxRA_HORIZONTAL ;
15992 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15993 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15994 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15995 wxString *arg10 = (wxString *) &arg10_defvalue ;
15996 wxRadioBox *result = 0 ;
15997 void *argp1 = 0 ;
15998 int res1 = 0 ;
15999 int val2 ;
16000 int ecode2 = 0 ;
16001 bool temp3 = false ;
16002 wxPoint temp4 ;
16003 wxSize temp5 ;
16004 bool temp6 = false ;
16005 int val7 ;
16006 int ecode7 = 0 ;
16007 long val8 ;
16008 int ecode8 = 0 ;
16009 void *argp9 = 0 ;
16010 int res9 = 0 ;
16011 bool temp10 = false ;
16012 PyObject * obj0 = 0 ;
16013 PyObject * obj1 = 0 ;
16014 PyObject * obj2 = 0 ;
16015 PyObject * obj3 = 0 ;
16016 PyObject * obj4 = 0 ;
16017 PyObject * obj5 = 0 ;
16018 PyObject * obj6 = 0 ;
16019 PyObject * obj7 = 0 ;
16020 PyObject * obj8 = 0 ;
16021 PyObject * obj9 = 0 ;
16022 char * kwnames[] = {
16023 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16024 };
16025
16026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16028 if (!SWIG_IsOK(res1)) {
16029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16030 }
16031 arg1 = reinterpret_cast< wxWindow * >(argp1);
16032 if (obj1) {
16033 ecode2 = SWIG_AsVal_int(obj1, &val2);
16034 if (!SWIG_IsOK(ecode2)) {
16035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16036 }
16037 arg2 = static_cast< int >(val2);
16038 }
16039 if (obj2) {
16040 {
16041 arg3 = wxString_in_helper(obj2);
16042 if (arg3 == NULL) SWIG_fail;
16043 temp3 = true;
16044 }
16045 }
16046 if (obj3) {
16047 {
16048 arg4 = &temp4;
16049 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16050 }
16051 }
16052 if (obj4) {
16053 {
16054 arg5 = &temp5;
16055 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16056 }
16057 }
16058 if (obj5) {
16059 {
16060 if (! PySequence_Check(obj5)) {
16061 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16062 SWIG_fail;
16063 }
16064 arg6 = new wxArrayString;
16065 temp6 = true;
16066 int i, len=PySequence_Length(obj5);
16067 for (i=0; i<len; i++) {
16068 PyObject* item = PySequence_GetItem(obj5, i);
16069 wxString* s = wxString_in_helper(item);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 arg6->Add(*s);
16072 delete s;
16073 Py_DECREF(item);
16074 }
16075 }
16076 }
16077 if (obj6) {
16078 ecode7 = SWIG_AsVal_int(obj6, &val7);
16079 if (!SWIG_IsOK(ecode7)) {
16080 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16081 }
16082 arg7 = static_cast< int >(val7);
16083 }
16084 if (obj7) {
16085 ecode8 = SWIG_AsVal_long(obj7, &val8);
16086 if (!SWIG_IsOK(ecode8)) {
16087 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16088 }
16089 arg8 = static_cast< long >(val8);
16090 }
16091 if (obj8) {
16092 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16093 if (!SWIG_IsOK(res9)) {
16094 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16095 }
16096 if (!argp9) {
16097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16098 }
16099 arg9 = reinterpret_cast< wxValidator * >(argp9);
16100 }
16101 if (obj9) {
16102 {
16103 arg10 = wxString_in_helper(obj9);
16104 if (arg10 == NULL) SWIG_fail;
16105 temp10 = true;
16106 }
16107 }
16108 {
16109 if (!wxPyCheckForApp()) SWIG_fail;
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16116 {
16117 if (temp3)
16118 delete arg3;
16119 }
16120 {
16121 if (temp6) delete arg6;
16122 }
16123 {
16124 if (temp10)
16125 delete arg10;
16126 }
16127 return resultobj;
16128 fail:
16129 {
16130 if (temp3)
16131 delete arg3;
16132 }
16133 {
16134 if (temp6) delete arg6;
16135 }
16136 {
16137 if (temp10)
16138 delete arg10;
16139 }
16140 return NULL;
16141 }
16142
16143
16144 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16145 PyObject *resultobj = 0;
16146 wxRadioBox *result = 0 ;
16147
16148 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16149 {
16150 if (!wxPyCheckForApp()) SWIG_fail;
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (wxRadioBox *)new wxRadioBox();
16153 wxPyEndAllowThreads(__tstate);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16157 return resultobj;
16158 fail:
16159 return NULL;
16160 }
16161
16162
16163 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16164 PyObject *resultobj = 0;
16165 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16166 wxWindow *arg2 = (wxWindow *) 0 ;
16167 int arg3 = (int) -1 ;
16168 wxString const &arg4_defvalue = wxPyEmptyString ;
16169 wxString *arg4 = (wxString *) &arg4_defvalue ;
16170 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16171 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16172 wxSize const &arg6_defvalue = wxDefaultSize ;
16173 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16174 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16175 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16176 int arg8 = (int) 0 ;
16177 long arg9 = (long) wxRA_HORIZONTAL ;
16178 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16179 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16180 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16181 wxString *arg11 = (wxString *) &arg11_defvalue ;
16182 bool result;
16183 void *argp1 = 0 ;
16184 int res1 = 0 ;
16185 void *argp2 = 0 ;
16186 int res2 = 0 ;
16187 int val3 ;
16188 int ecode3 = 0 ;
16189 bool temp4 = false ;
16190 wxPoint temp5 ;
16191 wxSize temp6 ;
16192 bool temp7 = false ;
16193 int val8 ;
16194 int ecode8 = 0 ;
16195 long val9 ;
16196 int ecode9 = 0 ;
16197 void *argp10 = 0 ;
16198 int res10 = 0 ;
16199 bool temp11 = false ;
16200 PyObject * obj0 = 0 ;
16201 PyObject * obj1 = 0 ;
16202 PyObject * obj2 = 0 ;
16203 PyObject * obj3 = 0 ;
16204 PyObject * obj4 = 0 ;
16205 PyObject * obj5 = 0 ;
16206 PyObject * obj6 = 0 ;
16207 PyObject * obj7 = 0 ;
16208 PyObject * obj8 = 0 ;
16209 PyObject * obj9 = 0 ;
16210 PyObject * obj10 = 0 ;
16211 char * kwnames[] = {
16212 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16213 };
16214
16215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16217 if (!SWIG_IsOK(res1)) {
16218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16219 }
16220 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16221 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16222 if (!SWIG_IsOK(res2)) {
16223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16224 }
16225 arg2 = reinterpret_cast< wxWindow * >(argp2);
16226 if (obj2) {
16227 ecode3 = SWIG_AsVal_int(obj2, &val3);
16228 if (!SWIG_IsOK(ecode3)) {
16229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16230 }
16231 arg3 = static_cast< int >(val3);
16232 }
16233 if (obj3) {
16234 {
16235 arg4 = wxString_in_helper(obj3);
16236 if (arg4 == NULL) SWIG_fail;
16237 temp4 = true;
16238 }
16239 }
16240 if (obj4) {
16241 {
16242 arg5 = &temp5;
16243 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16244 }
16245 }
16246 if (obj5) {
16247 {
16248 arg6 = &temp6;
16249 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16250 }
16251 }
16252 if (obj6) {
16253 {
16254 if (! PySequence_Check(obj6)) {
16255 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16256 SWIG_fail;
16257 }
16258 arg7 = new wxArrayString;
16259 temp7 = true;
16260 int i, len=PySequence_Length(obj6);
16261 for (i=0; i<len; i++) {
16262 PyObject* item = PySequence_GetItem(obj6, i);
16263 wxString* s = wxString_in_helper(item);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 arg7->Add(*s);
16266 delete s;
16267 Py_DECREF(item);
16268 }
16269 }
16270 }
16271 if (obj7) {
16272 ecode8 = SWIG_AsVal_int(obj7, &val8);
16273 if (!SWIG_IsOK(ecode8)) {
16274 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16275 }
16276 arg8 = static_cast< int >(val8);
16277 }
16278 if (obj8) {
16279 ecode9 = SWIG_AsVal_long(obj8, &val9);
16280 if (!SWIG_IsOK(ecode9)) {
16281 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16282 }
16283 arg9 = static_cast< long >(val9);
16284 }
16285 if (obj9) {
16286 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16287 if (!SWIG_IsOK(res10)) {
16288 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16289 }
16290 if (!argp10) {
16291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16292 }
16293 arg10 = reinterpret_cast< wxValidator * >(argp10);
16294 }
16295 if (obj10) {
16296 {
16297 arg11 = wxString_in_helper(obj10);
16298 if (arg11 == NULL) SWIG_fail;
16299 temp11 = true;
16300 }
16301 }
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
16305 wxPyEndAllowThreads(__tstate);
16306 if (PyErr_Occurred()) SWIG_fail;
16307 }
16308 {
16309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16310 }
16311 {
16312 if (temp4)
16313 delete arg4;
16314 }
16315 {
16316 if (temp7) delete arg7;
16317 }
16318 {
16319 if (temp11)
16320 delete arg11;
16321 }
16322 return resultobj;
16323 fail:
16324 {
16325 if (temp4)
16326 delete arg4;
16327 }
16328 {
16329 if (temp7) delete arg7;
16330 }
16331 {
16332 if (temp11)
16333 delete arg11;
16334 }
16335 return NULL;
16336 }
16337
16338
16339 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16340 PyObject *resultobj = 0;
16341 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16342 int arg2 ;
16343 void *argp1 = 0 ;
16344 int res1 = 0 ;
16345 int val2 ;
16346 int ecode2 = 0 ;
16347 PyObject * obj0 = 0 ;
16348 PyObject * obj1 = 0 ;
16349 char * kwnames[] = {
16350 (char *) "self",(char *) "n", NULL
16351 };
16352
16353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16355 if (!SWIG_IsOK(res1)) {
16356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16357 }
16358 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16359 ecode2 = SWIG_AsVal_int(obj1, &val2);
16360 if (!SWIG_IsOK(ecode2)) {
16361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16362 }
16363 arg2 = static_cast< int >(val2);
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 (arg1)->SetSelection(arg2);
16367 wxPyEndAllowThreads(__tstate);
16368 if (PyErr_Occurred()) SWIG_fail;
16369 }
16370 resultobj = SWIG_Py_Void();
16371 return resultobj;
16372 fail:
16373 return NULL;
16374 }
16375
16376
16377 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16378 PyObject *resultobj = 0;
16379 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16380 int result;
16381 void *argp1 = 0 ;
16382 int res1 = 0 ;
16383 PyObject *swig_obj[1] ;
16384
16385 if (!args) SWIG_fail;
16386 swig_obj[0] = args;
16387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16388 if (!SWIG_IsOK(res1)) {
16389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16390 }
16391 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 resultobj = SWIG_From_int(static_cast< int >(result));
16399 return resultobj;
16400 fail:
16401 return NULL;
16402 }
16403
16404
16405 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16406 PyObject *resultobj = 0;
16407 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16408 wxString result;
16409 void *argp1 = 0 ;
16410 int res1 = 0 ;
16411 PyObject *swig_obj[1] ;
16412
16413 if (!args) SWIG_fail;
16414 swig_obj[0] = args;
16415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16416 if (!SWIG_IsOK(res1)) {
16417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16418 }
16419 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16420 {
16421 PyThreadState* __tstate = wxPyBeginAllowThreads();
16422 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16423 wxPyEndAllowThreads(__tstate);
16424 if (PyErr_Occurred()) SWIG_fail;
16425 }
16426 {
16427 #if wxUSE_UNICODE
16428 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16429 #else
16430 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16431 #endif
16432 }
16433 return resultobj;
16434 fail:
16435 return NULL;
16436 }
16437
16438
16439 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16440 PyObject *resultobj = 0;
16441 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16442 wxString *arg2 = 0 ;
16443 bool result;
16444 void *argp1 = 0 ;
16445 int res1 = 0 ;
16446 bool temp2 = false ;
16447 PyObject * obj0 = 0 ;
16448 PyObject * obj1 = 0 ;
16449 char * kwnames[] = {
16450 (char *) "self",(char *) "s", NULL
16451 };
16452
16453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16455 if (!SWIG_IsOK(res1)) {
16456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16457 }
16458 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16459 {
16460 arg2 = wxString_in_helper(obj1);
16461 if (arg2 == NULL) SWIG_fail;
16462 temp2 = true;
16463 }
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16467 wxPyEndAllowThreads(__tstate);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 }
16470 {
16471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16472 }
16473 {
16474 if (temp2)
16475 delete arg2;
16476 }
16477 return resultobj;
16478 fail:
16479 {
16480 if (temp2)
16481 delete arg2;
16482 }
16483 return NULL;
16484 }
16485
16486
16487 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16488 PyObject *resultobj = 0;
16489 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16490 size_t result;
16491 void *argp1 = 0 ;
16492 int res1 = 0 ;
16493 PyObject *swig_obj[1] ;
16494
16495 if (!args) SWIG_fail;
16496 swig_obj[0] = args;
16497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16498 if (!SWIG_IsOK(res1)) {
16499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16500 }
16501 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16502 {
16503 PyThreadState* __tstate = wxPyBeginAllowThreads();
16504 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16505 wxPyEndAllowThreads(__tstate);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16509 return resultobj;
16510 fail:
16511 return NULL;
16512 }
16513
16514
16515 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16516 PyObject *resultobj = 0;
16517 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16518 wxString *arg2 = 0 ;
16519 int result;
16520 void *argp1 = 0 ;
16521 int res1 = 0 ;
16522 bool temp2 = false ;
16523 PyObject * obj0 = 0 ;
16524 PyObject * obj1 = 0 ;
16525 char * kwnames[] = {
16526 (char *) "self",(char *) "s", NULL
16527 };
16528
16529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16531 if (!SWIG_IsOK(res1)) {
16532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16533 }
16534 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16535 {
16536 arg2 = wxString_in_helper(obj1);
16537 if (arg2 == NULL) SWIG_fail;
16538 temp2 = true;
16539 }
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 resultobj = SWIG_From_int(static_cast< int >(result));
16547 {
16548 if (temp2)
16549 delete arg2;
16550 }
16551 return resultobj;
16552 fail:
16553 {
16554 if (temp2)
16555 delete arg2;
16556 }
16557 return NULL;
16558 }
16559
16560
16561 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16562 PyObject *resultobj = 0;
16563 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16564 int arg2 ;
16565 wxString result;
16566 void *argp1 = 0 ;
16567 int res1 = 0 ;
16568 int val2 ;
16569 int ecode2 = 0 ;
16570 PyObject * obj0 = 0 ;
16571 PyObject * obj1 = 0 ;
16572 char * kwnames[] = {
16573 (char *) "self",(char *) "n", NULL
16574 };
16575
16576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16578 if (!SWIG_IsOK(res1)) {
16579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16580 }
16581 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16582 ecode2 = SWIG_AsVal_int(obj1, &val2);
16583 if (!SWIG_IsOK(ecode2)) {
16584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16585 }
16586 arg2 = static_cast< int >(val2);
16587 {
16588 PyThreadState* __tstate = wxPyBeginAllowThreads();
16589 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16590 wxPyEndAllowThreads(__tstate);
16591 if (PyErr_Occurred()) SWIG_fail;
16592 }
16593 {
16594 #if wxUSE_UNICODE
16595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16596 #else
16597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16598 #endif
16599 }
16600 return resultobj;
16601 fail:
16602 return NULL;
16603 }
16604
16605
16606 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16607 PyObject *resultobj = 0;
16608 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16609 int arg2 ;
16610 wxString *arg3 = 0 ;
16611 void *argp1 = 0 ;
16612 int res1 = 0 ;
16613 int val2 ;
16614 int ecode2 = 0 ;
16615 bool temp3 = false ;
16616 PyObject * obj0 = 0 ;
16617 PyObject * obj1 = 0 ;
16618 PyObject * obj2 = 0 ;
16619 char * kwnames[] = {
16620 (char *) "self",(char *) "n",(char *) "label", NULL
16621 };
16622
16623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16625 if (!SWIG_IsOK(res1)) {
16626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16627 }
16628 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16629 ecode2 = SWIG_AsVal_int(obj1, &val2);
16630 if (!SWIG_IsOK(ecode2)) {
16631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16632 }
16633 arg2 = static_cast< int >(val2);
16634 {
16635 arg3 = wxString_in_helper(obj2);
16636 if (arg3 == NULL) SWIG_fail;
16637 temp3 = true;
16638 }
16639 {
16640 PyThreadState* __tstate = wxPyBeginAllowThreads();
16641 (arg1)->SetString(arg2,(wxString const &)*arg3);
16642 wxPyEndAllowThreads(__tstate);
16643 if (PyErr_Occurred()) SWIG_fail;
16644 }
16645 resultobj = SWIG_Py_Void();
16646 {
16647 if (temp3)
16648 delete arg3;
16649 }
16650 return resultobj;
16651 fail:
16652 {
16653 if (temp3)
16654 delete arg3;
16655 }
16656 return NULL;
16657 }
16658
16659
16660 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16661 PyObject *resultobj = 0;
16662 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16663 unsigned int arg2 ;
16664 bool arg3 = (bool) true ;
16665 void *argp1 = 0 ;
16666 int res1 = 0 ;
16667 unsigned int val2 ;
16668 int ecode2 = 0 ;
16669 bool val3 ;
16670 int ecode3 = 0 ;
16671 PyObject * obj0 = 0 ;
16672 PyObject * obj1 = 0 ;
16673 PyObject * obj2 = 0 ;
16674 char * kwnames[] = {
16675 (char *) "self",(char *) "n",(char *) "enable", NULL
16676 };
16677
16678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16680 if (!SWIG_IsOK(res1)) {
16681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16682 }
16683 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16684 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16685 if (!SWIG_IsOK(ecode2)) {
16686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16687 }
16688 arg2 = static_cast< unsigned int >(val2);
16689 if (obj2) {
16690 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16691 if (!SWIG_IsOK(ecode3)) {
16692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16693 }
16694 arg3 = static_cast< bool >(val3);
16695 }
16696 {
16697 PyThreadState* __tstate = wxPyBeginAllowThreads();
16698 (arg1)->Enable(arg2,arg3);
16699 wxPyEndAllowThreads(__tstate);
16700 if (PyErr_Occurred()) SWIG_fail;
16701 }
16702 resultobj = SWIG_Py_Void();
16703 return resultobj;
16704 fail:
16705 return NULL;
16706 }
16707
16708
16709 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16710 PyObject *resultobj = 0;
16711 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16712 unsigned int arg2 ;
16713 bool arg3 = (bool) true ;
16714 void *argp1 = 0 ;
16715 int res1 = 0 ;
16716 unsigned int val2 ;
16717 int ecode2 = 0 ;
16718 bool val3 ;
16719 int ecode3 = 0 ;
16720 PyObject * obj0 = 0 ;
16721 PyObject * obj1 = 0 ;
16722 PyObject * obj2 = 0 ;
16723 char * kwnames[] = {
16724 (char *) "self",(char *) "n",(char *) "show", NULL
16725 };
16726
16727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16729 if (!SWIG_IsOK(res1)) {
16730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16731 }
16732 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16733 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16734 if (!SWIG_IsOK(ecode2)) {
16735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16736 }
16737 arg2 = static_cast< unsigned int >(val2);
16738 if (obj2) {
16739 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16740 if (!SWIG_IsOK(ecode3)) {
16741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16742 }
16743 arg3 = static_cast< bool >(val3);
16744 }
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
16747 (arg1)->Show(arg2,arg3);
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
16751 resultobj = SWIG_Py_Void();
16752 return resultobj;
16753 fail:
16754 return NULL;
16755 }
16756
16757
16758 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16759 PyObject *resultobj = 0;
16760 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16761 unsigned int arg2 ;
16762 bool result;
16763 void *argp1 = 0 ;
16764 int res1 = 0 ;
16765 unsigned int val2 ;
16766 int ecode2 = 0 ;
16767 PyObject * obj0 = 0 ;
16768 PyObject * obj1 = 0 ;
16769 char * kwnames[] = {
16770 (char *) "self",(char *) "n", NULL
16771 };
16772
16773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16775 if (!SWIG_IsOK(res1)) {
16776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16777 }
16778 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16779 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16780 if (!SWIG_IsOK(ecode2)) {
16781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16782 }
16783 arg2 = static_cast< unsigned int >(val2);
16784 {
16785 PyThreadState* __tstate = wxPyBeginAllowThreads();
16786 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 {
16791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16792 }
16793 return resultobj;
16794 fail:
16795 return NULL;
16796 }
16797
16798
16799 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16800 PyObject *resultobj = 0;
16801 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16802 unsigned int arg2 ;
16803 bool result;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 unsigned int val2 ;
16807 int ecode2 = 0 ;
16808 PyObject * obj0 = 0 ;
16809 PyObject * obj1 = 0 ;
16810 char * kwnames[] = {
16811 (char *) "self",(char *) "n", NULL
16812 };
16813
16814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16816 if (!SWIG_IsOK(res1)) {
16817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16818 }
16819 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16820 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16821 if (!SWIG_IsOK(ecode2)) {
16822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16823 }
16824 arg2 = static_cast< unsigned int >(val2);
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 {
16832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16833 }
16834 return resultobj;
16835 fail:
16836 return NULL;
16837 }
16838
16839
16840 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16841 PyObject *resultobj = 0;
16842 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16843 unsigned int result;
16844 void *argp1 = 0 ;
16845 int res1 = 0 ;
16846 PyObject *swig_obj[1] ;
16847
16848 if (!args) SWIG_fail;
16849 swig_obj[0] = args;
16850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16851 if (!SWIG_IsOK(res1)) {
16852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16853 }
16854 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16858 wxPyEndAllowThreads(__tstate);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16862 return resultobj;
16863 fail:
16864 return NULL;
16865 }
16866
16867
16868 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16869 PyObject *resultobj = 0;
16870 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16871 unsigned int result;
16872 void *argp1 = 0 ;
16873 int res1 = 0 ;
16874 PyObject *swig_obj[1] ;
16875
16876 if (!args) SWIG_fail;
16877 swig_obj[0] = args;
16878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16879 if (!SWIG_IsOK(res1)) {
16880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16881 }
16882 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16886 wxPyEndAllowThreads(__tstate);
16887 if (PyErr_Occurred()) SWIG_fail;
16888 }
16889 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16890 return resultobj;
16891 fail:
16892 return NULL;
16893 }
16894
16895
16896 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16897 PyObject *resultobj = 0;
16898 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16899 int arg2 ;
16900 wxDirection arg3 ;
16901 long arg4 ;
16902 int result;
16903 void *argp1 = 0 ;
16904 int res1 = 0 ;
16905 int val2 ;
16906 int ecode2 = 0 ;
16907 int val3 ;
16908 int ecode3 = 0 ;
16909 long val4 ;
16910 int ecode4 = 0 ;
16911 PyObject * obj0 = 0 ;
16912 PyObject * obj1 = 0 ;
16913 PyObject * obj2 = 0 ;
16914 PyObject * obj3 = 0 ;
16915 char * kwnames[] = {
16916 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16917 };
16918
16919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16921 if (!SWIG_IsOK(res1)) {
16922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16923 }
16924 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16925 ecode2 = SWIG_AsVal_int(obj1, &val2);
16926 if (!SWIG_IsOK(ecode2)) {
16927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16928 }
16929 arg2 = static_cast< int >(val2);
16930 ecode3 = SWIG_AsVal_int(obj2, &val3);
16931 if (!SWIG_IsOK(ecode3)) {
16932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16933 }
16934 arg3 = static_cast< wxDirection >(val3);
16935 ecode4 = SWIG_AsVal_long(obj3, &val4);
16936 if (!SWIG_IsOK(ecode4)) {
16937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16938 }
16939 arg4 = static_cast< long >(val4);
16940 {
16941 PyThreadState* __tstate = wxPyBeginAllowThreads();
16942 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 resultobj = SWIG_From_int(static_cast< int >(result));
16947 return resultobj;
16948 fail:
16949 return NULL;
16950 }
16951
16952
16953 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj = 0;
16955 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16956 unsigned int arg2 ;
16957 wxString *arg3 = 0 ;
16958 void *argp1 = 0 ;
16959 int res1 = 0 ;
16960 unsigned int val2 ;
16961 int ecode2 = 0 ;
16962 bool temp3 = false ;
16963 PyObject * obj0 = 0 ;
16964 PyObject * obj1 = 0 ;
16965 PyObject * obj2 = 0 ;
16966 char * kwnames[] = {
16967 (char *) "self",(char *) "item",(char *) "text", NULL
16968 };
16969
16970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16972 if (!SWIG_IsOK(res1)) {
16973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16974 }
16975 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16976 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16977 if (!SWIG_IsOK(ecode2)) {
16978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16979 }
16980 arg2 = static_cast< unsigned int >(val2);
16981 {
16982 arg3 = wxString_in_helper(obj2);
16983 if (arg3 == NULL) SWIG_fail;
16984 temp3 = true;
16985 }
16986 {
16987 PyThreadState* __tstate = wxPyBeginAllowThreads();
16988 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16989 wxPyEndAllowThreads(__tstate);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 resultobj = SWIG_Py_Void();
16993 {
16994 if (temp3)
16995 delete arg3;
16996 }
16997 return resultobj;
16998 fail:
16999 {
17000 if (temp3)
17001 delete arg3;
17002 }
17003 return NULL;
17004 }
17005
17006
17007 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17008 PyObject *resultobj = 0;
17009 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17010 unsigned int arg2 ;
17011 wxToolTip *result = 0 ;
17012 void *argp1 = 0 ;
17013 int res1 = 0 ;
17014 unsigned int val2 ;
17015 int ecode2 = 0 ;
17016 PyObject * obj0 = 0 ;
17017 PyObject * obj1 = 0 ;
17018 char * kwnames[] = {
17019 (char *) "self",(char *) "item", NULL
17020 };
17021
17022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17024 if (!SWIG_IsOK(res1)) {
17025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17026 }
17027 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17028 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17029 if (!SWIG_IsOK(ecode2)) {
17030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17031 }
17032 arg2 = static_cast< unsigned int >(val2);
17033 {
17034 PyThreadState* __tstate = wxPyBeginAllowThreads();
17035 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17036 wxPyEndAllowThreads(__tstate);
17037 if (PyErr_Occurred()) SWIG_fail;
17038 }
17039 {
17040 resultobj = wxPyMake_wxObject(result, (bool)0);
17041 }
17042 return resultobj;
17043 fail:
17044 return NULL;
17045 }
17046
17047
17048 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17049 PyObject *resultobj = 0;
17050 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17051 unsigned int arg2 ;
17052 wxString *arg3 = 0 ;
17053 void *argp1 = 0 ;
17054 int res1 = 0 ;
17055 unsigned int val2 ;
17056 int ecode2 = 0 ;
17057 bool temp3 = false ;
17058 PyObject * obj0 = 0 ;
17059 PyObject * obj1 = 0 ;
17060 PyObject * obj2 = 0 ;
17061 char * kwnames[] = {
17062 (char *) "self",(char *) "n",(char *) "helpText", NULL
17063 };
17064
17065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17067 if (!SWIG_IsOK(res1)) {
17068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17069 }
17070 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17071 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17072 if (!SWIG_IsOK(ecode2)) {
17073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17074 }
17075 arg2 = static_cast< unsigned int >(val2);
17076 {
17077 arg3 = wxString_in_helper(obj2);
17078 if (arg3 == NULL) SWIG_fail;
17079 temp3 = true;
17080 }
17081 {
17082 PyThreadState* __tstate = wxPyBeginAllowThreads();
17083 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17084 wxPyEndAllowThreads(__tstate);
17085 if (PyErr_Occurred()) SWIG_fail;
17086 }
17087 resultobj = SWIG_Py_Void();
17088 {
17089 if (temp3)
17090 delete arg3;
17091 }
17092 return resultobj;
17093 fail:
17094 {
17095 if (temp3)
17096 delete arg3;
17097 }
17098 return NULL;
17099 }
17100
17101
17102 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17103 PyObject *resultobj = 0;
17104 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17105 unsigned int arg2 ;
17106 wxString result;
17107 void *argp1 = 0 ;
17108 int res1 = 0 ;
17109 unsigned int val2 ;
17110 int ecode2 = 0 ;
17111 PyObject * obj0 = 0 ;
17112 PyObject * obj1 = 0 ;
17113 char * kwnames[] = {
17114 (char *) "self",(char *) "n", NULL
17115 };
17116
17117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17119 if (!SWIG_IsOK(res1)) {
17120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17121 }
17122 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17123 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17124 if (!SWIG_IsOK(ecode2)) {
17125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17126 }
17127 arg2 = static_cast< unsigned int >(val2);
17128 {
17129 PyThreadState* __tstate = wxPyBeginAllowThreads();
17130 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 {
17135 #if wxUSE_UNICODE
17136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17137 #else
17138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17139 #endif
17140 }
17141 return resultobj;
17142 fail:
17143 return NULL;
17144 }
17145
17146
17147 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17148 PyObject *resultobj = 0;
17149 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17150 SwigValueWrapper<wxVisualAttributes > result;
17151 int val1 ;
17152 int ecode1 = 0 ;
17153 PyObject * obj0 = 0 ;
17154 char * kwnames[] = {
17155 (char *) "variant", NULL
17156 };
17157
17158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17159 if (obj0) {
17160 ecode1 = SWIG_AsVal_int(obj0, &val1);
17161 if (!SWIG_IsOK(ecode1)) {
17162 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17163 }
17164 arg1 = static_cast< wxWindowVariant >(val1);
17165 }
17166 {
17167 if (!wxPyCheckForApp()) SWIG_fail;
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17174 return resultobj;
17175 fail:
17176 return NULL;
17177 }
17178
17179
17180 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17181 PyObject *obj;
17182 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17183 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17184 return SWIG_Py_Void();
17185 }
17186
17187 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17188 return SWIG_Python_InitShadowInstance(args);
17189 }
17190
17191 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17192 PyObject *resultobj = 0;
17193 wxWindow *arg1 = (wxWindow *) 0 ;
17194 int arg2 = (int) -1 ;
17195 wxString const &arg3_defvalue = wxPyEmptyString ;
17196 wxString *arg3 = (wxString *) &arg3_defvalue ;
17197 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17198 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17199 wxSize const &arg5_defvalue = wxDefaultSize ;
17200 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17201 long arg6 = (long) 0 ;
17202 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17203 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17204 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17205 wxString *arg8 = (wxString *) &arg8_defvalue ;
17206 wxRadioButton *result = 0 ;
17207 void *argp1 = 0 ;
17208 int res1 = 0 ;
17209 int val2 ;
17210 int ecode2 = 0 ;
17211 bool temp3 = false ;
17212 wxPoint temp4 ;
17213 wxSize temp5 ;
17214 long val6 ;
17215 int ecode6 = 0 ;
17216 void *argp7 = 0 ;
17217 int res7 = 0 ;
17218 bool temp8 = false ;
17219 PyObject * obj0 = 0 ;
17220 PyObject * obj1 = 0 ;
17221 PyObject * obj2 = 0 ;
17222 PyObject * obj3 = 0 ;
17223 PyObject * obj4 = 0 ;
17224 PyObject * obj5 = 0 ;
17225 PyObject * obj6 = 0 ;
17226 PyObject * obj7 = 0 ;
17227 char * kwnames[] = {
17228 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17229 };
17230
17231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17233 if (!SWIG_IsOK(res1)) {
17234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17235 }
17236 arg1 = reinterpret_cast< wxWindow * >(argp1);
17237 if (obj1) {
17238 ecode2 = SWIG_AsVal_int(obj1, &val2);
17239 if (!SWIG_IsOK(ecode2)) {
17240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17241 }
17242 arg2 = static_cast< int >(val2);
17243 }
17244 if (obj2) {
17245 {
17246 arg3 = wxString_in_helper(obj2);
17247 if (arg3 == NULL) SWIG_fail;
17248 temp3 = true;
17249 }
17250 }
17251 if (obj3) {
17252 {
17253 arg4 = &temp4;
17254 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17255 }
17256 }
17257 if (obj4) {
17258 {
17259 arg5 = &temp5;
17260 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17261 }
17262 }
17263 if (obj5) {
17264 ecode6 = SWIG_AsVal_long(obj5, &val6);
17265 if (!SWIG_IsOK(ecode6)) {
17266 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17267 }
17268 arg6 = static_cast< long >(val6);
17269 }
17270 if (obj6) {
17271 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17272 if (!SWIG_IsOK(res7)) {
17273 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17274 }
17275 if (!argp7) {
17276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17277 }
17278 arg7 = reinterpret_cast< wxValidator * >(argp7);
17279 }
17280 if (obj7) {
17281 {
17282 arg8 = wxString_in_helper(obj7);
17283 if (arg8 == NULL) SWIG_fail;
17284 temp8 = true;
17285 }
17286 }
17287 {
17288 if (!wxPyCheckForApp()) SWIG_fail;
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17291 wxPyEndAllowThreads(__tstate);
17292 if (PyErr_Occurred()) SWIG_fail;
17293 }
17294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17295 {
17296 if (temp3)
17297 delete arg3;
17298 }
17299 {
17300 if (temp8)
17301 delete arg8;
17302 }
17303 return resultobj;
17304 fail:
17305 {
17306 if (temp3)
17307 delete arg3;
17308 }
17309 {
17310 if (temp8)
17311 delete arg8;
17312 }
17313 return NULL;
17314 }
17315
17316
17317 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17318 PyObject *resultobj = 0;
17319 wxRadioButton *result = 0 ;
17320
17321 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17322 {
17323 if (!wxPyCheckForApp()) SWIG_fail;
17324 PyThreadState* __tstate = wxPyBeginAllowThreads();
17325 result = (wxRadioButton *)new wxRadioButton();
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17330 return resultobj;
17331 fail:
17332 return NULL;
17333 }
17334
17335
17336 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj = 0;
17338 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17339 wxWindow *arg2 = (wxWindow *) 0 ;
17340 int arg3 = (int) -1 ;
17341 wxString const &arg4_defvalue = wxPyEmptyString ;
17342 wxString *arg4 = (wxString *) &arg4_defvalue ;
17343 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17344 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17345 wxSize const &arg6_defvalue = wxDefaultSize ;
17346 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17347 long arg7 = (long) 0 ;
17348 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17349 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17350 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17351 wxString *arg9 = (wxString *) &arg9_defvalue ;
17352 bool result;
17353 void *argp1 = 0 ;
17354 int res1 = 0 ;
17355 void *argp2 = 0 ;
17356 int res2 = 0 ;
17357 int val3 ;
17358 int ecode3 = 0 ;
17359 bool temp4 = false ;
17360 wxPoint temp5 ;
17361 wxSize temp6 ;
17362 long val7 ;
17363 int ecode7 = 0 ;
17364 void *argp8 = 0 ;
17365 int res8 = 0 ;
17366 bool temp9 = false ;
17367 PyObject * obj0 = 0 ;
17368 PyObject * obj1 = 0 ;
17369 PyObject * obj2 = 0 ;
17370 PyObject * obj3 = 0 ;
17371 PyObject * obj4 = 0 ;
17372 PyObject * obj5 = 0 ;
17373 PyObject * obj6 = 0 ;
17374 PyObject * obj7 = 0 ;
17375 PyObject * obj8 = 0 ;
17376 char * kwnames[] = {
17377 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17378 };
17379
17380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17382 if (!SWIG_IsOK(res1)) {
17383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17384 }
17385 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17387 if (!SWIG_IsOK(res2)) {
17388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17389 }
17390 arg2 = reinterpret_cast< wxWindow * >(argp2);
17391 if (obj2) {
17392 ecode3 = SWIG_AsVal_int(obj2, &val3);
17393 if (!SWIG_IsOK(ecode3)) {
17394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17395 }
17396 arg3 = static_cast< int >(val3);
17397 }
17398 if (obj3) {
17399 {
17400 arg4 = wxString_in_helper(obj3);
17401 if (arg4 == NULL) SWIG_fail;
17402 temp4 = true;
17403 }
17404 }
17405 if (obj4) {
17406 {
17407 arg5 = &temp5;
17408 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17409 }
17410 }
17411 if (obj5) {
17412 {
17413 arg6 = &temp6;
17414 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17415 }
17416 }
17417 if (obj6) {
17418 ecode7 = SWIG_AsVal_long(obj6, &val7);
17419 if (!SWIG_IsOK(ecode7)) {
17420 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17421 }
17422 arg7 = static_cast< long >(val7);
17423 }
17424 if (obj7) {
17425 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17426 if (!SWIG_IsOK(res8)) {
17427 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17428 }
17429 if (!argp8) {
17430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17431 }
17432 arg8 = reinterpret_cast< wxValidator * >(argp8);
17433 }
17434 if (obj8) {
17435 {
17436 arg9 = wxString_in_helper(obj8);
17437 if (arg9 == NULL) SWIG_fail;
17438 temp9 = true;
17439 }
17440 }
17441 {
17442 PyThreadState* __tstate = wxPyBeginAllowThreads();
17443 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17444 wxPyEndAllowThreads(__tstate);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 {
17448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17449 }
17450 {
17451 if (temp4)
17452 delete arg4;
17453 }
17454 {
17455 if (temp9)
17456 delete arg9;
17457 }
17458 return resultobj;
17459 fail:
17460 {
17461 if (temp4)
17462 delete arg4;
17463 }
17464 {
17465 if (temp9)
17466 delete arg9;
17467 }
17468 return NULL;
17469 }
17470
17471
17472 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17473 PyObject *resultobj = 0;
17474 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17475 bool result;
17476 void *argp1 = 0 ;
17477 int res1 = 0 ;
17478 PyObject *swig_obj[1] ;
17479
17480 if (!args) SWIG_fail;
17481 swig_obj[0] = args;
17482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17483 if (!SWIG_IsOK(res1)) {
17484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17485 }
17486 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17487 {
17488 PyThreadState* __tstate = wxPyBeginAllowThreads();
17489 result = (bool)(arg1)->GetValue();
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 {
17494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17495 }
17496 return resultobj;
17497 fail:
17498 return NULL;
17499 }
17500
17501
17502 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17503 PyObject *resultobj = 0;
17504 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17505 bool arg2 ;
17506 void *argp1 = 0 ;
17507 int res1 = 0 ;
17508 bool val2 ;
17509 int ecode2 = 0 ;
17510 PyObject * obj0 = 0 ;
17511 PyObject * obj1 = 0 ;
17512 char * kwnames[] = {
17513 (char *) "self",(char *) "value", NULL
17514 };
17515
17516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17518 if (!SWIG_IsOK(res1)) {
17519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17520 }
17521 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17522 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17523 if (!SWIG_IsOK(ecode2)) {
17524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17525 }
17526 arg2 = static_cast< bool >(val2);
17527 {
17528 PyThreadState* __tstate = wxPyBeginAllowThreads();
17529 (arg1)->SetValue(arg2);
17530 wxPyEndAllowThreads(__tstate);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 resultobj = SWIG_Py_Void();
17534 return resultobj;
17535 fail:
17536 return NULL;
17537 }
17538
17539
17540 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17541 PyObject *resultobj = 0;
17542 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17543 SwigValueWrapper<wxVisualAttributes > result;
17544 int val1 ;
17545 int ecode1 = 0 ;
17546 PyObject * obj0 = 0 ;
17547 char * kwnames[] = {
17548 (char *) "variant", NULL
17549 };
17550
17551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17552 if (obj0) {
17553 ecode1 = SWIG_AsVal_int(obj0, &val1);
17554 if (!SWIG_IsOK(ecode1)) {
17555 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17556 }
17557 arg1 = static_cast< wxWindowVariant >(val1);
17558 }
17559 {
17560 if (!wxPyCheckForApp()) SWIG_fail;
17561 PyThreadState* __tstate = wxPyBeginAllowThreads();
17562 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17567 return resultobj;
17568 fail:
17569 return NULL;
17570 }
17571
17572
17573 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17574 PyObject *obj;
17575 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17576 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17577 return SWIG_Py_Void();
17578 }
17579
17580 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17581 return SWIG_Python_InitShadowInstance(args);
17582 }
17583
17584 SWIGINTERN int SliderNameStr_set(PyObject *) {
17585 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17586 return 1;
17587 }
17588
17589
17590 SWIGINTERN PyObject *SliderNameStr_get(void) {
17591 PyObject *pyobj = 0;
17592
17593 {
17594 #if wxUSE_UNICODE
17595 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17596 #else
17597 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17598 #endif
17599 }
17600 return pyobj;
17601 }
17602
17603
17604 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17605 PyObject *resultobj = 0;
17606 wxWindow *arg1 = (wxWindow *) 0 ;
17607 int arg2 = (int) -1 ;
17608 int arg3 = (int) 0 ;
17609 int arg4 = (int) 0 ;
17610 int arg5 = (int) 100 ;
17611 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17612 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17613 wxSize const &arg7_defvalue = wxDefaultSize ;
17614 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17615 long arg8 = (long) wxSL_HORIZONTAL ;
17616 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17617 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17618 wxString const &arg10_defvalue = wxPySliderNameStr ;
17619 wxString *arg10 = (wxString *) &arg10_defvalue ;
17620 wxSlider *result = 0 ;
17621 void *argp1 = 0 ;
17622 int res1 = 0 ;
17623 int val2 ;
17624 int ecode2 = 0 ;
17625 int val3 ;
17626 int ecode3 = 0 ;
17627 int val4 ;
17628 int ecode4 = 0 ;
17629 int val5 ;
17630 int ecode5 = 0 ;
17631 wxPoint temp6 ;
17632 wxSize temp7 ;
17633 long val8 ;
17634 int ecode8 = 0 ;
17635 void *argp9 = 0 ;
17636 int res9 = 0 ;
17637 bool temp10 = false ;
17638 PyObject * obj0 = 0 ;
17639 PyObject * obj1 = 0 ;
17640 PyObject * obj2 = 0 ;
17641 PyObject * obj3 = 0 ;
17642 PyObject * obj4 = 0 ;
17643 PyObject * obj5 = 0 ;
17644 PyObject * obj6 = 0 ;
17645 PyObject * obj7 = 0 ;
17646 PyObject * obj8 = 0 ;
17647 PyObject * obj9 = 0 ;
17648 char * kwnames[] = {
17649 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17650 };
17651
17652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17654 if (!SWIG_IsOK(res1)) {
17655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17656 }
17657 arg1 = reinterpret_cast< wxWindow * >(argp1);
17658 if (obj1) {
17659 ecode2 = SWIG_AsVal_int(obj1, &val2);
17660 if (!SWIG_IsOK(ecode2)) {
17661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17662 }
17663 arg2 = static_cast< int >(val2);
17664 }
17665 if (obj2) {
17666 ecode3 = SWIG_AsVal_int(obj2, &val3);
17667 if (!SWIG_IsOK(ecode3)) {
17668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17669 }
17670 arg3 = static_cast< int >(val3);
17671 }
17672 if (obj3) {
17673 ecode4 = SWIG_AsVal_int(obj3, &val4);
17674 if (!SWIG_IsOK(ecode4)) {
17675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17676 }
17677 arg4 = static_cast< int >(val4);
17678 }
17679 if (obj4) {
17680 ecode5 = SWIG_AsVal_int(obj4, &val5);
17681 if (!SWIG_IsOK(ecode5)) {
17682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17683 }
17684 arg5 = static_cast< int >(val5);
17685 }
17686 if (obj5) {
17687 {
17688 arg6 = &temp6;
17689 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17690 }
17691 }
17692 if (obj6) {
17693 {
17694 arg7 = &temp7;
17695 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17696 }
17697 }
17698 if (obj7) {
17699 ecode8 = SWIG_AsVal_long(obj7, &val8);
17700 if (!SWIG_IsOK(ecode8)) {
17701 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17702 }
17703 arg8 = static_cast< long >(val8);
17704 }
17705 if (obj8) {
17706 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17707 if (!SWIG_IsOK(res9)) {
17708 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17709 }
17710 if (!argp9) {
17711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17712 }
17713 arg9 = reinterpret_cast< wxValidator * >(argp9);
17714 }
17715 if (obj9) {
17716 {
17717 arg10 = wxString_in_helper(obj9);
17718 if (arg10 == NULL) SWIG_fail;
17719 temp10 = true;
17720 }
17721 }
17722 {
17723 if (!wxPyCheckForApp()) SWIG_fail;
17724 PyThreadState* __tstate = wxPyBeginAllowThreads();
17725 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17726 wxPyEndAllowThreads(__tstate);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17730 {
17731 if (temp10)
17732 delete arg10;
17733 }
17734 return resultobj;
17735 fail:
17736 {
17737 if (temp10)
17738 delete arg10;
17739 }
17740 return NULL;
17741 }
17742
17743
17744 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17745 PyObject *resultobj = 0;
17746 wxSlider *result = 0 ;
17747
17748 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17749 {
17750 if (!wxPyCheckForApp()) SWIG_fail;
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 result = (wxSlider *)new wxSlider();
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17757 return resultobj;
17758 fail:
17759 return NULL;
17760 }
17761
17762
17763 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17764 PyObject *resultobj = 0;
17765 wxSlider *arg1 = (wxSlider *) 0 ;
17766 wxWindow *arg2 = (wxWindow *) 0 ;
17767 int arg3 = (int) -1 ;
17768 int arg4 = (int) 0 ;
17769 int arg5 = (int) 0 ;
17770 int arg6 = (int) 100 ;
17771 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17772 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17773 wxSize const &arg8_defvalue = wxDefaultSize ;
17774 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17775 long arg9 = (long) wxSL_HORIZONTAL ;
17776 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17777 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17778 wxString const &arg11_defvalue = wxPySliderNameStr ;
17779 wxString *arg11 = (wxString *) &arg11_defvalue ;
17780 bool result;
17781 void *argp1 = 0 ;
17782 int res1 = 0 ;
17783 void *argp2 = 0 ;
17784 int res2 = 0 ;
17785 int val3 ;
17786 int ecode3 = 0 ;
17787 int val4 ;
17788 int ecode4 = 0 ;
17789 int val5 ;
17790 int ecode5 = 0 ;
17791 int val6 ;
17792 int ecode6 = 0 ;
17793 wxPoint temp7 ;
17794 wxSize temp8 ;
17795 long val9 ;
17796 int ecode9 = 0 ;
17797 void *argp10 = 0 ;
17798 int res10 = 0 ;
17799 bool temp11 = false ;
17800 PyObject * obj0 = 0 ;
17801 PyObject * obj1 = 0 ;
17802 PyObject * obj2 = 0 ;
17803 PyObject * obj3 = 0 ;
17804 PyObject * obj4 = 0 ;
17805 PyObject * obj5 = 0 ;
17806 PyObject * obj6 = 0 ;
17807 PyObject * obj7 = 0 ;
17808 PyObject * obj8 = 0 ;
17809 PyObject * obj9 = 0 ;
17810 PyObject * obj10 = 0 ;
17811 char * kwnames[] = {
17812 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17813 };
17814
17815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17817 if (!SWIG_IsOK(res1)) {
17818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17819 }
17820 arg1 = reinterpret_cast< wxSlider * >(argp1);
17821 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17822 if (!SWIG_IsOK(res2)) {
17823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17824 }
17825 arg2 = reinterpret_cast< wxWindow * >(argp2);
17826 if (obj2) {
17827 ecode3 = SWIG_AsVal_int(obj2, &val3);
17828 if (!SWIG_IsOK(ecode3)) {
17829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17830 }
17831 arg3 = static_cast< int >(val3);
17832 }
17833 if (obj3) {
17834 ecode4 = SWIG_AsVal_int(obj3, &val4);
17835 if (!SWIG_IsOK(ecode4)) {
17836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17837 }
17838 arg4 = static_cast< int >(val4);
17839 }
17840 if (obj4) {
17841 ecode5 = SWIG_AsVal_int(obj4, &val5);
17842 if (!SWIG_IsOK(ecode5)) {
17843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17844 }
17845 arg5 = static_cast< int >(val5);
17846 }
17847 if (obj5) {
17848 ecode6 = SWIG_AsVal_int(obj5, &val6);
17849 if (!SWIG_IsOK(ecode6)) {
17850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17851 }
17852 arg6 = static_cast< int >(val6);
17853 }
17854 if (obj6) {
17855 {
17856 arg7 = &temp7;
17857 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17858 }
17859 }
17860 if (obj7) {
17861 {
17862 arg8 = &temp8;
17863 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17864 }
17865 }
17866 if (obj8) {
17867 ecode9 = SWIG_AsVal_long(obj8, &val9);
17868 if (!SWIG_IsOK(ecode9)) {
17869 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17870 }
17871 arg9 = static_cast< long >(val9);
17872 }
17873 if (obj9) {
17874 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17875 if (!SWIG_IsOK(res10)) {
17876 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17877 }
17878 if (!argp10) {
17879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17880 }
17881 arg10 = reinterpret_cast< wxValidator * >(argp10);
17882 }
17883 if (obj10) {
17884 {
17885 arg11 = wxString_in_helper(obj10);
17886 if (arg11 == NULL) SWIG_fail;
17887 temp11 = true;
17888 }
17889 }
17890 {
17891 PyThreadState* __tstate = wxPyBeginAllowThreads();
17892 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 {
17897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17898 }
17899 {
17900 if (temp11)
17901 delete arg11;
17902 }
17903 return resultobj;
17904 fail:
17905 {
17906 if (temp11)
17907 delete arg11;
17908 }
17909 return NULL;
17910 }
17911
17912
17913 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17914 PyObject *resultobj = 0;
17915 wxSlider *arg1 = (wxSlider *) 0 ;
17916 int result;
17917 void *argp1 = 0 ;
17918 int res1 = 0 ;
17919 PyObject *swig_obj[1] ;
17920
17921 if (!args) SWIG_fail;
17922 swig_obj[0] = args;
17923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17924 if (!SWIG_IsOK(res1)) {
17925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17926 }
17927 arg1 = reinterpret_cast< wxSlider * >(argp1);
17928 {
17929 PyThreadState* __tstate = wxPyBeginAllowThreads();
17930 result = (int)((wxSlider const *)arg1)->GetValue();
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 resultobj = SWIG_From_int(static_cast< int >(result));
17935 return resultobj;
17936 fail:
17937 return NULL;
17938 }
17939
17940
17941 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj = 0;
17943 wxSlider *arg1 = (wxSlider *) 0 ;
17944 int arg2 ;
17945 void *argp1 = 0 ;
17946 int res1 = 0 ;
17947 int val2 ;
17948 int ecode2 = 0 ;
17949 PyObject * obj0 = 0 ;
17950 PyObject * obj1 = 0 ;
17951 char * kwnames[] = {
17952 (char *) "self",(char *) "value", NULL
17953 };
17954
17955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17957 if (!SWIG_IsOK(res1)) {
17958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17959 }
17960 arg1 = reinterpret_cast< wxSlider * >(argp1);
17961 ecode2 = SWIG_AsVal_int(obj1, &val2);
17962 if (!SWIG_IsOK(ecode2)) {
17963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17964 }
17965 arg2 = static_cast< int >(val2);
17966 {
17967 PyThreadState* __tstate = wxPyBeginAllowThreads();
17968 (arg1)->SetValue(arg2);
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 resultobj = SWIG_Py_Void();
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj = 0;
17981 wxSlider *arg1 = (wxSlider *) 0 ;
17982 int arg2 ;
17983 int arg3 ;
17984 void *argp1 = 0 ;
17985 int res1 = 0 ;
17986 int val2 ;
17987 int ecode2 = 0 ;
17988 int val3 ;
17989 int ecode3 = 0 ;
17990 PyObject * obj0 = 0 ;
17991 PyObject * obj1 = 0 ;
17992 PyObject * obj2 = 0 ;
17993 char * kwnames[] = {
17994 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17995 };
17996
17997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17999 if (!SWIG_IsOK(res1)) {
18000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18001 }
18002 arg1 = reinterpret_cast< wxSlider * >(argp1);
18003 ecode2 = SWIG_AsVal_int(obj1, &val2);
18004 if (!SWIG_IsOK(ecode2)) {
18005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18006 }
18007 arg2 = static_cast< int >(val2);
18008 ecode3 = SWIG_AsVal_int(obj2, &val3);
18009 if (!SWIG_IsOK(ecode3)) {
18010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18011 }
18012 arg3 = static_cast< int >(val3);
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 (arg1)->SetRange(arg2,arg3);
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 resultobj = SWIG_Py_Void();
18020 return resultobj;
18021 fail:
18022 return NULL;
18023 }
18024
18025
18026 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18027 PyObject *resultobj = 0;
18028 wxSlider *arg1 = (wxSlider *) 0 ;
18029 int result;
18030 void *argp1 = 0 ;
18031 int res1 = 0 ;
18032 PyObject *swig_obj[1] ;
18033
18034 if (!args) SWIG_fail;
18035 swig_obj[0] = args;
18036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18037 if (!SWIG_IsOK(res1)) {
18038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18039 }
18040 arg1 = reinterpret_cast< wxSlider * >(argp1);
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 result = (int)((wxSlider const *)arg1)->GetMin();
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = SWIG_From_int(static_cast< int >(result));
18048 return resultobj;
18049 fail:
18050 return NULL;
18051 }
18052
18053
18054 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18055 PyObject *resultobj = 0;
18056 wxSlider *arg1 = (wxSlider *) 0 ;
18057 int result;
18058 void *argp1 = 0 ;
18059 int res1 = 0 ;
18060 PyObject *swig_obj[1] ;
18061
18062 if (!args) SWIG_fail;
18063 swig_obj[0] = args;
18064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18065 if (!SWIG_IsOK(res1)) {
18066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18067 }
18068 arg1 = reinterpret_cast< wxSlider * >(argp1);
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 result = (int)((wxSlider const *)arg1)->GetMax();
18072 wxPyEndAllowThreads(__tstate);
18073 if (PyErr_Occurred()) SWIG_fail;
18074 }
18075 resultobj = SWIG_From_int(static_cast< int >(result));
18076 return resultobj;
18077 fail:
18078 return NULL;
18079 }
18080
18081
18082 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18083 PyObject *resultobj = 0;
18084 wxSlider *arg1 = (wxSlider *) 0 ;
18085 int arg2 ;
18086 void *argp1 = 0 ;
18087 int res1 = 0 ;
18088 int val2 ;
18089 int ecode2 = 0 ;
18090 PyObject * obj0 = 0 ;
18091 PyObject * obj1 = 0 ;
18092 char * kwnames[] = {
18093 (char *) "self",(char *) "minValue", NULL
18094 };
18095
18096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18098 if (!SWIG_IsOK(res1)) {
18099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18100 }
18101 arg1 = reinterpret_cast< wxSlider * >(argp1);
18102 ecode2 = SWIG_AsVal_int(obj1, &val2);
18103 if (!SWIG_IsOK(ecode2)) {
18104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18105 }
18106 arg2 = static_cast< int >(val2);
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 (arg1)->SetMin(arg2);
18110 wxPyEndAllowThreads(__tstate);
18111 if (PyErr_Occurred()) SWIG_fail;
18112 }
18113 resultobj = SWIG_Py_Void();
18114 return resultobj;
18115 fail:
18116 return NULL;
18117 }
18118
18119
18120 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18121 PyObject *resultobj = 0;
18122 wxSlider *arg1 = (wxSlider *) 0 ;
18123 int arg2 ;
18124 void *argp1 = 0 ;
18125 int res1 = 0 ;
18126 int val2 ;
18127 int ecode2 = 0 ;
18128 PyObject * obj0 = 0 ;
18129 PyObject * obj1 = 0 ;
18130 char * kwnames[] = {
18131 (char *) "self",(char *) "maxValue", NULL
18132 };
18133
18134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18136 if (!SWIG_IsOK(res1)) {
18137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18138 }
18139 arg1 = reinterpret_cast< wxSlider * >(argp1);
18140 ecode2 = SWIG_AsVal_int(obj1, &val2);
18141 if (!SWIG_IsOK(ecode2)) {
18142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18143 }
18144 arg2 = static_cast< int >(val2);
18145 {
18146 PyThreadState* __tstate = wxPyBeginAllowThreads();
18147 (arg1)->SetMax(arg2);
18148 wxPyEndAllowThreads(__tstate);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 }
18151 resultobj = SWIG_Py_Void();
18152 return resultobj;
18153 fail:
18154 return NULL;
18155 }
18156
18157
18158 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18159 PyObject *resultobj = 0;
18160 wxSlider *arg1 = (wxSlider *) 0 ;
18161 int arg2 ;
18162 void *argp1 = 0 ;
18163 int res1 = 0 ;
18164 int val2 ;
18165 int ecode2 = 0 ;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168 char * kwnames[] = {
18169 (char *) "self",(char *) "lineSize", NULL
18170 };
18171
18172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18174 if (!SWIG_IsOK(res1)) {
18175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18176 }
18177 arg1 = reinterpret_cast< wxSlider * >(argp1);
18178 ecode2 = SWIG_AsVal_int(obj1, &val2);
18179 if (!SWIG_IsOK(ecode2)) {
18180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18181 }
18182 arg2 = static_cast< int >(val2);
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 (arg1)->SetLineSize(arg2);
18186 wxPyEndAllowThreads(__tstate);
18187 if (PyErr_Occurred()) SWIG_fail;
18188 }
18189 resultobj = SWIG_Py_Void();
18190 return resultobj;
18191 fail:
18192 return NULL;
18193 }
18194
18195
18196 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18197 PyObject *resultobj = 0;
18198 wxSlider *arg1 = (wxSlider *) 0 ;
18199 int arg2 ;
18200 void *argp1 = 0 ;
18201 int res1 = 0 ;
18202 int val2 ;
18203 int ecode2 = 0 ;
18204 PyObject * obj0 = 0 ;
18205 PyObject * obj1 = 0 ;
18206 char * kwnames[] = {
18207 (char *) "self",(char *) "pageSize", NULL
18208 };
18209
18210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18212 if (!SWIG_IsOK(res1)) {
18213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18214 }
18215 arg1 = reinterpret_cast< wxSlider * >(argp1);
18216 ecode2 = SWIG_AsVal_int(obj1, &val2);
18217 if (!SWIG_IsOK(ecode2)) {
18218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18219 }
18220 arg2 = static_cast< int >(val2);
18221 {
18222 PyThreadState* __tstate = wxPyBeginAllowThreads();
18223 (arg1)->SetPageSize(arg2);
18224 wxPyEndAllowThreads(__tstate);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 }
18227 resultobj = SWIG_Py_Void();
18228 return resultobj;
18229 fail:
18230 return NULL;
18231 }
18232
18233
18234 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18235 PyObject *resultobj = 0;
18236 wxSlider *arg1 = (wxSlider *) 0 ;
18237 int result;
18238 void *argp1 = 0 ;
18239 int res1 = 0 ;
18240 PyObject *swig_obj[1] ;
18241
18242 if (!args) SWIG_fail;
18243 swig_obj[0] = args;
18244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18245 if (!SWIG_IsOK(res1)) {
18246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18247 }
18248 arg1 = reinterpret_cast< wxSlider * >(argp1);
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 result = (int)((wxSlider const *)arg1)->GetLineSize();
18252 wxPyEndAllowThreads(__tstate);
18253 if (PyErr_Occurred()) SWIG_fail;
18254 }
18255 resultobj = SWIG_From_int(static_cast< int >(result));
18256 return resultobj;
18257 fail:
18258 return NULL;
18259 }
18260
18261
18262 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18263 PyObject *resultobj = 0;
18264 wxSlider *arg1 = (wxSlider *) 0 ;
18265 int result;
18266 void *argp1 = 0 ;
18267 int res1 = 0 ;
18268 PyObject *swig_obj[1] ;
18269
18270 if (!args) SWIG_fail;
18271 swig_obj[0] = args;
18272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18273 if (!SWIG_IsOK(res1)) {
18274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18275 }
18276 arg1 = reinterpret_cast< wxSlider * >(argp1);
18277 {
18278 PyThreadState* __tstate = wxPyBeginAllowThreads();
18279 result = (int)((wxSlider const *)arg1)->GetPageSize();
18280 wxPyEndAllowThreads(__tstate);
18281 if (PyErr_Occurred()) SWIG_fail;
18282 }
18283 resultobj = SWIG_From_int(static_cast< int >(result));
18284 return resultobj;
18285 fail:
18286 return NULL;
18287 }
18288
18289
18290 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18291 PyObject *resultobj = 0;
18292 wxSlider *arg1 = (wxSlider *) 0 ;
18293 int arg2 ;
18294 void *argp1 = 0 ;
18295 int res1 = 0 ;
18296 int val2 ;
18297 int ecode2 = 0 ;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300 char * kwnames[] = {
18301 (char *) "self",(char *) "lenPixels", NULL
18302 };
18303
18304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18306 if (!SWIG_IsOK(res1)) {
18307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18308 }
18309 arg1 = reinterpret_cast< wxSlider * >(argp1);
18310 ecode2 = SWIG_AsVal_int(obj1, &val2);
18311 if (!SWIG_IsOK(ecode2)) {
18312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18313 }
18314 arg2 = static_cast< int >(val2);
18315 {
18316 PyThreadState* __tstate = wxPyBeginAllowThreads();
18317 (arg1)->SetThumbLength(arg2);
18318 wxPyEndAllowThreads(__tstate);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 resultobj = SWIG_Py_Void();
18322 return resultobj;
18323 fail:
18324 return NULL;
18325 }
18326
18327
18328 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18329 PyObject *resultobj = 0;
18330 wxSlider *arg1 = (wxSlider *) 0 ;
18331 int result;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 PyObject *swig_obj[1] ;
18335
18336 if (!args) SWIG_fail;
18337 swig_obj[0] = args;
18338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18341 }
18342 arg1 = reinterpret_cast< wxSlider * >(argp1);
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 resultobj = SWIG_From_int(static_cast< int >(result));
18350 return resultobj;
18351 fail:
18352 return NULL;
18353 }
18354
18355
18356 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18357 PyObject *resultobj = 0;
18358 wxSlider *arg1 = (wxSlider *) 0 ;
18359 int arg2 ;
18360 int arg3 = (int) 1 ;
18361 void *argp1 = 0 ;
18362 int res1 = 0 ;
18363 int val2 ;
18364 int ecode2 = 0 ;
18365 int val3 ;
18366 int ecode3 = 0 ;
18367 PyObject * obj0 = 0 ;
18368 PyObject * obj1 = 0 ;
18369 PyObject * obj2 = 0 ;
18370 char * kwnames[] = {
18371 (char *) "self",(char *) "n",(char *) "pos", NULL
18372 };
18373
18374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18376 if (!SWIG_IsOK(res1)) {
18377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18378 }
18379 arg1 = reinterpret_cast< wxSlider * >(argp1);
18380 ecode2 = SWIG_AsVal_int(obj1, &val2);
18381 if (!SWIG_IsOK(ecode2)) {
18382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18383 }
18384 arg2 = static_cast< int >(val2);
18385 if (obj2) {
18386 ecode3 = SWIG_AsVal_int(obj2, &val3);
18387 if (!SWIG_IsOK(ecode3)) {
18388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18389 }
18390 arg3 = static_cast< int >(val3);
18391 }
18392 {
18393 PyThreadState* __tstate = wxPyBeginAllowThreads();
18394 (arg1)->SetTickFreq(arg2,arg3);
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 resultobj = SWIG_Py_Void();
18399 return resultobj;
18400 fail:
18401 return NULL;
18402 }
18403
18404
18405 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18406 PyObject *resultobj = 0;
18407 wxSlider *arg1 = (wxSlider *) 0 ;
18408 int result;
18409 void *argp1 = 0 ;
18410 int res1 = 0 ;
18411 PyObject *swig_obj[1] ;
18412
18413 if (!args) SWIG_fail;
18414 swig_obj[0] = args;
18415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18416 if (!SWIG_IsOK(res1)) {
18417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18418 }
18419 arg1 = reinterpret_cast< wxSlider * >(argp1);
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18423 wxPyEndAllowThreads(__tstate);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 resultobj = SWIG_From_int(static_cast< int >(result));
18427 return resultobj;
18428 fail:
18429 return NULL;
18430 }
18431
18432
18433 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18434 PyObject *resultobj = 0;
18435 wxSlider *arg1 = (wxSlider *) 0 ;
18436 void *argp1 = 0 ;
18437 int res1 = 0 ;
18438 PyObject *swig_obj[1] ;
18439
18440 if (!args) SWIG_fail;
18441 swig_obj[0] = args;
18442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18443 if (!SWIG_IsOK(res1)) {
18444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18445 }
18446 arg1 = reinterpret_cast< wxSlider * >(argp1);
18447 {
18448 PyThreadState* __tstate = wxPyBeginAllowThreads();
18449 (arg1)->ClearTicks();
18450 wxPyEndAllowThreads(__tstate);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 }
18453 resultobj = SWIG_Py_Void();
18454 return resultobj;
18455 fail:
18456 return NULL;
18457 }
18458
18459
18460 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18461 PyObject *resultobj = 0;
18462 wxSlider *arg1 = (wxSlider *) 0 ;
18463 int arg2 ;
18464 void *argp1 = 0 ;
18465 int res1 = 0 ;
18466 int val2 ;
18467 int ecode2 = 0 ;
18468 PyObject * obj0 = 0 ;
18469 PyObject * obj1 = 0 ;
18470 char * kwnames[] = {
18471 (char *) "self",(char *) "tickPos", NULL
18472 };
18473
18474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18476 if (!SWIG_IsOK(res1)) {
18477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18478 }
18479 arg1 = reinterpret_cast< wxSlider * >(argp1);
18480 ecode2 = SWIG_AsVal_int(obj1, &val2);
18481 if (!SWIG_IsOK(ecode2)) {
18482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18483 }
18484 arg2 = static_cast< int >(val2);
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 (arg1)->SetTick(arg2);
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 resultobj = SWIG_Py_Void();
18492 return resultobj;
18493 fail:
18494 return NULL;
18495 }
18496
18497
18498 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18499 PyObject *resultobj = 0;
18500 wxSlider *arg1 = (wxSlider *) 0 ;
18501 void *argp1 = 0 ;
18502 int res1 = 0 ;
18503 PyObject *swig_obj[1] ;
18504
18505 if (!args) SWIG_fail;
18506 swig_obj[0] = args;
18507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18508 if (!SWIG_IsOK(res1)) {
18509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18510 }
18511 arg1 = reinterpret_cast< wxSlider * >(argp1);
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 (arg1)->ClearSel();
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 resultobj = SWIG_Py_Void();
18519 return resultobj;
18520 fail:
18521 return NULL;
18522 }
18523
18524
18525 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18526 PyObject *resultobj = 0;
18527 wxSlider *arg1 = (wxSlider *) 0 ;
18528 int result;
18529 void *argp1 = 0 ;
18530 int res1 = 0 ;
18531 PyObject *swig_obj[1] ;
18532
18533 if (!args) SWIG_fail;
18534 swig_obj[0] = args;
18535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18536 if (!SWIG_IsOK(res1)) {
18537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18538 }
18539 arg1 = reinterpret_cast< wxSlider * >(argp1);
18540 {
18541 PyThreadState* __tstate = wxPyBeginAllowThreads();
18542 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18543 wxPyEndAllowThreads(__tstate);
18544 if (PyErr_Occurred()) SWIG_fail;
18545 }
18546 resultobj = SWIG_From_int(static_cast< int >(result));
18547 return resultobj;
18548 fail:
18549 return NULL;
18550 }
18551
18552
18553 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18554 PyObject *resultobj = 0;
18555 wxSlider *arg1 = (wxSlider *) 0 ;
18556 int result;
18557 void *argp1 = 0 ;
18558 int res1 = 0 ;
18559 PyObject *swig_obj[1] ;
18560
18561 if (!args) SWIG_fail;
18562 swig_obj[0] = args;
18563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18564 if (!SWIG_IsOK(res1)) {
18565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18566 }
18567 arg1 = reinterpret_cast< wxSlider * >(argp1);
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 result = (int)((wxSlider const *)arg1)->GetSelStart();
18571 wxPyEndAllowThreads(__tstate);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
18574 resultobj = SWIG_From_int(static_cast< int >(result));
18575 return resultobj;
18576 fail:
18577 return NULL;
18578 }
18579
18580
18581 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18582 PyObject *resultobj = 0;
18583 wxSlider *arg1 = (wxSlider *) 0 ;
18584 int arg2 ;
18585 int arg3 ;
18586 void *argp1 = 0 ;
18587 int res1 = 0 ;
18588 int val2 ;
18589 int ecode2 = 0 ;
18590 int val3 ;
18591 int ecode3 = 0 ;
18592 PyObject * obj0 = 0 ;
18593 PyObject * obj1 = 0 ;
18594 PyObject * obj2 = 0 ;
18595 char * kwnames[] = {
18596 (char *) "self",(char *) "min",(char *) "max", NULL
18597 };
18598
18599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18601 if (!SWIG_IsOK(res1)) {
18602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18603 }
18604 arg1 = reinterpret_cast< wxSlider * >(argp1);
18605 ecode2 = SWIG_AsVal_int(obj1, &val2);
18606 if (!SWIG_IsOK(ecode2)) {
18607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18608 }
18609 arg2 = static_cast< int >(val2);
18610 ecode3 = SWIG_AsVal_int(obj2, &val3);
18611 if (!SWIG_IsOK(ecode3)) {
18612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18613 }
18614 arg3 = static_cast< int >(val3);
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 (arg1)->SetSelection(arg2,arg3);
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
18621 resultobj = SWIG_Py_Void();
18622 return resultobj;
18623 fail:
18624 return NULL;
18625 }
18626
18627
18628 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18629 PyObject *resultobj = 0;
18630 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18631 SwigValueWrapper<wxVisualAttributes > result;
18632 int val1 ;
18633 int ecode1 = 0 ;
18634 PyObject * obj0 = 0 ;
18635 char * kwnames[] = {
18636 (char *) "variant", NULL
18637 };
18638
18639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18640 if (obj0) {
18641 ecode1 = SWIG_AsVal_int(obj0, &val1);
18642 if (!SWIG_IsOK(ecode1)) {
18643 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18644 }
18645 arg1 = static_cast< wxWindowVariant >(val1);
18646 }
18647 {
18648 if (!wxPyCheckForApp()) SWIG_fail;
18649 PyThreadState* __tstate = wxPyBeginAllowThreads();
18650 result = wxSlider::GetClassDefaultAttributes(arg1);
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18655 return resultobj;
18656 fail:
18657 return NULL;
18658 }
18659
18660
18661 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18662 PyObject *obj;
18663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18664 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18665 return SWIG_Py_Void();
18666 }
18667
18668 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18669 return SWIG_Python_InitShadowInstance(args);
18670 }
18671
18672 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18673 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18674 return 1;
18675 }
18676
18677
18678 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18679 PyObject *pyobj = 0;
18680
18681 {
18682 #if wxUSE_UNICODE
18683 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18684 #else
18685 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18686 #endif
18687 }
18688 return pyobj;
18689 }
18690
18691
18692 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18693 PyObject *resultobj = 0;
18694 wxWindow *arg1 = (wxWindow *) 0 ;
18695 int arg2 = (int) -1 ;
18696 wxString const &arg3_defvalue = wxPyEmptyString ;
18697 wxString *arg3 = (wxString *) &arg3_defvalue ;
18698 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18699 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18700 wxSize const &arg5_defvalue = wxDefaultSize ;
18701 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18702 long arg6 = (long) 0 ;
18703 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18704 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18705 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18706 wxString *arg8 = (wxString *) &arg8_defvalue ;
18707 wxToggleButton *result = 0 ;
18708 void *argp1 = 0 ;
18709 int res1 = 0 ;
18710 int val2 ;
18711 int ecode2 = 0 ;
18712 bool temp3 = false ;
18713 wxPoint temp4 ;
18714 wxSize temp5 ;
18715 long val6 ;
18716 int ecode6 = 0 ;
18717 void *argp7 = 0 ;
18718 int res7 = 0 ;
18719 bool temp8 = false ;
18720 PyObject * obj0 = 0 ;
18721 PyObject * obj1 = 0 ;
18722 PyObject * obj2 = 0 ;
18723 PyObject * obj3 = 0 ;
18724 PyObject * obj4 = 0 ;
18725 PyObject * obj5 = 0 ;
18726 PyObject * obj6 = 0 ;
18727 PyObject * obj7 = 0 ;
18728 char * kwnames[] = {
18729 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18730 };
18731
18732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18734 if (!SWIG_IsOK(res1)) {
18735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18736 }
18737 arg1 = reinterpret_cast< wxWindow * >(argp1);
18738 if (obj1) {
18739 ecode2 = SWIG_AsVal_int(obj1, &val2);
18740 if (!SWIG_IsOK(ecode2)) {
18741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18742 }
18743 arg2 = static_cast< int >(val2);
18744 }
18745 if (obj2) {
18746 {
18747 arg3 = wxString_in_helper(obj2);
18748 if (arg3 == NULL) SWIG_fail;
18749 temp3 = true;
18750 }
18751 }
18752 if (obj3) {
18753 {
18754 arg4 = &temp4;
18755 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18756 }
18757 }
18758 if (obj4) {
18759 {
18760 arg5 = &temp5;
18761 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18762 }
18763 }
18764 if (obj5) {
18765 ecode6 = SWIG_AsVal_long(obj5, &val6);
18766 if (!SWIG_IsOK(ecode6)) {
18767 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18768 }
18769 arg6 = static_cast< long >(val6);
18770 }
18771 if (obj6) {
18772 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18773 if (!SWIG_IsOK(res7)) {
18774 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18775 }
18776 if (!argp7) {
18777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18778 }
18779 arg7 = reinterpret_cast< wxValidator * >(argp7);
18780 }
18781 if (obj7) {
18782 {
18783 arg8 = wxString_in_helper(obj7);
18784 if (arg8 == NULL) SWIG_fail;
18785 temp8 = true;
18786 }
18787 }
18788 {
18789 if (!wxPyCheckForApp()) SWIG_fail;
18790 PyThreadState* __tstate = wxPyBeginAllowThreads();
18791 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18792 wxPyEndAllowThreads(__tstate);
18793 if (PyErr_Occurred()) SWIG_fail;
18794 }
18795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18796 {
18797 if (temp3)
18798 delete arg3;
18799 }
18800 {
18801 if (temp8)
18802 delete arg8;
18803 }
18804 return resultobj;
18805 fail:
18806 {
18807 if (temp3)
18808 delete arg3;
18809 }
18810 {
18811 if (temp8)
18812 delete arg8;
18813 }
18814 return NULL;
18815 }
18816
18817
18818 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18819 PyObject *resultobj = 0;
18820 wxToggleButton *result = 0 ;
18821
18822 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18823 {
18824 if (!wxPyCheckForApp()) SWIG_fail;
18825 PyThreadState* __tstate = wxPyBeginAllowThreads();
18826 result = (wxToggleButton *)new wxToggleButton();
18827 wxPyEndAllowThreads(__tstate);
18828 if (PyErr_Occurred()) SWIG_fail;
18829 }
18830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18831 return resultobj;
18832 fail:
18833 return NULL;
18834 }
18835
18836
18837 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18838 PyObject *resultobj = 0;
18839 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18840 wxWindow *arg2 = (wxWindow *) 0 ;
18841 int arg3 = (int) -1 ;
18842 wxString const &arg4_defvalue = wxPyEmptyString ;
18843 wxString *arg4 = (wxString *) &arg4_defvalue ;
18844 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18845 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18846 wxSize const &arg6_defvalue = wxDefaultSize ;
18847 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18848 long arg7 = (long) 0 ;
18849 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18850 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18851 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18852 wxString *arg9 = (wxString *) &arg9_defvalue ;
18853 bool result;
18854 void *argp1 = 0 ;
18855 int res1 = 0 ;
18856 void *argp2 = 0 ;
18857 int res2 = 0 ;
18858 int val3 ;
18859 int ecode3 = 0 ;
18860 bool temp4 = false ;
18861 wxPoint temp5 ;
18862 wxSize temp6 ;
18863 long val7 ;
18864 int ecode7 = 0 ;
18865 void *argp8 = 0 ;
18866 int res8 = 0 ;
18867 bool temp9 = false ;
18868 PyObject * obj0 = 0 ;
18869 PyObject * obj1 = 0 ;
18870 PyObject * obj2 = 0 ;
18871 PyObject * obj3 = 0 ;
18872 PyObject * obj4 = 0 ;
18873 PyObject * obj5 = 0 ;
18874 PyObject * obj6 = 0 ;
18875 PyObject * obj7 = 0 ;
18876 PyObject * obj8 = 0 ;
18877 char * kwnames[] = {
18878 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18879 };
18880
18881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18883 if (!SWIG_IsOK(res1)) {
18884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18885 }
18886 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18887 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18888 if (!SWIG_IsOK(res2)) {
18889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18890 }
18891 arg2 = reinterpret_cast< wxWindow * >(argp2);
18892 if (obj2) {
18893 ecode3 = SWIG_AsVal_int(obj2, &val3);
18894 if (!SWIG_IsOK(ecode3)) {
18895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18896 }
18897 arg3 = static_cast< int >(val3);
18898 }
18899 if (obj3) {
18900 {
18901 arg4 = wxString_in_helper(obj3);
18902 if (arg4 == NULL) SWIG_fail;
18903 temp4 = true;
18904 }
18905 }
18906 if (obj4) {
18907 {
18908 arg5 = &temp5;
18909 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18910 }
18911 }
18912 if (obj5) {
18913 {
18914 arg6 = &temp6;
18915 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18916 }
18917 }
18918 if (obj6) {
18919 ecode7 = SWIG_AsVal_long(obj6, &val7);
18920 if (!SWIG_IsOK(ecode7)) {
18921 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18922 }
18923 arg7 = static_cast< long >(val7);
18924 }
18925 if (obj7) {
18926 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18927 if (!SWIG_IsOK(res8)) {
18928 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18929 }
18930 if (!argp8) {
18931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18932 }
18933 arg8 = reinterpret_cast< wxValidator * >(argp8);
18934 }
18935 if (obj8) {
18936 {
18937 arg9 = wxString_in_helper(obj8);
18938 if (arg9 == NULL) SWIG_fail;
18939 temp9 = true;
18940 }
18941 }
18942 {
18943 PyThreadState* __tstate = wxPyBeginAllowThreads();
18944 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18945 wxPyEndAllowThreads(__tstate);
18946 if (PyErr_Occurred()) SWIG_fail;
18947 }
18948 {
18949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18950 }
18951 {
18952 if (temp4)
18953 delete arg4;
18954 }
18955 {
18956 if (temp9)
18957 delete arg9;
18958 }
18959 return resultobj;
18960 fail:
18961 {
18962 if (temp4)
18963 delete arg4;
18964 }
18965 {
18966 if (temp9)
18967 delete arg9;
18968 }
18969 return NULL;
18970 }
18971
18972
18973 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18974 PyObject *resultobj = 0;
18975 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18976 bool arg2 ;
18977 void *argp1 = 0 ;
18978 int res1 = 0 ;
18979 bool val2 ;
18980 int ecode2 = 0 ;
18981 PyObject * obj0 = 0 ;
18982 PyObject * obj1 = 0 ;
18983 char * kwnames[] = {
18984 (char *) "self",(char *) "value", NULL
18985 };
18986
18987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18989 if (!SWIG_IsOK(res1)) {
18990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18991 }
18992 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18993 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18994 if (!SWIG_IsOK(ecode2)) {
18995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18996 }
18997 arg2 = static_cast< bool >(val2);
18998 {
18999 PyThreadState* __tstate = wxPyBeginAllowThreads();
19000 (arg1)->SetValue(arg2);
19001 wxPyEndAllowThreads(__tstate);
19002 if (PyErr_Occurred()) SWIG_fail;
19003 }
19004 resultobj = SWIG_Py_Void();
19005 return resultobj;
19006 fail:
19007 return NULL;
19008 }
19009
19010
19011 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19012 PyObject *resultobj = 0;
19013 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19014 bool result;
19015 void *argp1 = 0 ;
19016 int res1 = 0 ;
19017 PyObject *swig_obj[1] ;
19018
19019 if (!args) SWIG_fail;
19020 swig_obj[0] = args;
19021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19022 if (!SWIG_IsOK(res1)) {
19023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19024 }
19025 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19026 {
19027 PyThreadState* __tstate = wxPyBeginAllowThreads();
19028 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19029 wxPyEndAllowThreads(__tstate);
19030 if (PyErr_Occurred()) SWIG_fail;
19031 }
19032 {
19033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19034 }
19035 return resultobj;
19036 fail:
19037 return NULL;
19038 }
19039
19040
19041 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19042 PyObject *resultobj = 0;
19043 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19044 SwigValueWrapper<wxVisualAttributes > result;
19045 int val1 ;
19046 int ecode1 = 0 ;
19047 PyObject * obj0 = 0 ;
19048 char * kwnames[] = {
19049 (char *) "variant", NULL
19050 };
19051
19052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19053 if (obj0) {
19054 ecode1 = SWIG_AsVal_int(obj0, &val1);
19055 if (!SWIG_IsOK(ecode1)) {
19056 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19057 }
19058 arg1 = static_cast< wxWindowVariant >(val1);
19059 }
19060 {
19061 if (!wxPyCheckForApp()) SWIG_fail;
19062 PyThreadState* __tstate = wxPyBeginAllowThreads();
19063 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19064 wxPyEndAllowThreads(__tstate);
19065 if (PyErr_Occurred()) SWIG_fail;
19066 }
19067 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19068 return resultobj;
19069 fail:
19070 return NULL;
19071 }
19072
19073
19074 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19075 PyObject *obj;
19076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19077 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19078 return SWIG_Py_Void();
19079 }
19080
19081 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19082 return SWIG_Python_InitShadowInstance(args);
19083 }
19084
19085 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19086 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19087 return 1;
19088 }
19089
19090
19091 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19092 PyObject *pyobj = 0;
19093
19094 {
19095 #if wxUSE_UNICODE
19096 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19097 #else
19098 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19099 #endif
19100 }
19101 return pyobj;
19102 }
19103
19104
19105 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19106 PyObject *resultobj = 0;
19107 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19108 size_t result;
19109 void *argp1 = 0 ;
19110 int res1 = 0 ;
19111 PyObject *swig_obj[1] ;
19112
19113 if (!args) SWIG_fail;
19114 swig_obj[0] = args;
19115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19116 if (!SWIG_IsOK(res1)) {
19117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19118 }
19119 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19120 {
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19123 wxPyEndAllowThreads(__tstate);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19127 return resultobj;
19128 fail:
19129 return NULL;
19130 }
19131
19132
19133 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19134 PyObject *resultobj = 0;
19135 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19136 size_t arg2 ;
19137 wxWindow *result = 0 ;
19138 void *argp1 = 0 ;
19139 int res1 = 0 ;
19140 size_t val2 ;
19141 int ecode2 = 0 ;
19142 PyObject * obj0 = 0 ;
19143 PyObject * obj1 = 0 ;
19144 char * kwnames[] = {
19145 (char *) "self",(char *) "n", NULL
19146 };
19147
19148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19150 if (!SWIG_IsOK(res1)) {
19151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19152 }
19153 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19154 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19155 if (!SWIG_IsOK(ecode2)) {
19156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19157 }
19158 arg2 = static_cast< size_t >(val2);
19159 {
19160 PyThreadState* __tstate = wxPyBeginAllowThreads();
19161 result = (wxWindow *)(arg1)->GetPage(arg2);
19162 wxPyEndAllowThreads(__tstate);
19163 if (PyErr_Occurred()) SWIG_fail;
19164 }
19165 {
19166 resultobj = wxPyMake_wxObject(result, 0);
19167 }
19168 return resultobj;
19169 fail:
19170 return NULL;
19171 }
19172
19173
19174 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19175 PyObject *resultobj = 0;
19176 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19177 wxWindow *result = 0 ;
19178 void *argp1 = 0 ;
19179 int res1 = 0 ;
19180 PyObject *swig_obj[1] ;
19181
19182 if (!args) SWIG_fail;
19183 swig_obj[0] = args;
19184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19185 if (!SWIG_IsOK(res1)) {
19186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19187 }
19188 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19189 {
19190 PyThreadState* __tstate = wxPyBeginAllowThreads();
19191 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19192 wxPyEndAllowThreads(__tstate);
19193 if (PyErr_Occurred()) SWIG_fail;
19194 }
19195 {
19196 resultobj = wxPyMake_wxObject(result, 0);
19197 }
19198 return resultobj;
19199 fail:
19200 return NULL;
19201 }
19202
19203
19204 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19205 PyObject *resultobj = 0;
19206 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19207 int result;
19208 void *argp1 = 0 ;
19209 int res1 = 0 ;
19210 PyObject *swig_obj[1] ;
19211
19212 if (!args) SWIG_fail;
19213 swig_obj[0] = args;
19214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19215 if (!SWIG_IsOK(res1)) {
19216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19217 }
19218 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19219 {
19220 PyThreadState* __tstate = wxPyBeginAllowThreads();
19221 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19222 wxPyEndAllowThreads(__tstate);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
19225 resultobj = SWIG_From_int(static_cast< int >(result));
19226 return resultobj;
19227 fail:
19228 return NULL;
19229 }
19230
19231
19232 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19233 PyObject *resultobj = 0;
19234 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19235 size_t arg2 ;
19236 wxString *arg3 = 0 ;
19237 bool result;
19238 void *argp1 = 0 ;
19239 int res1 = 0 ;
19240 size_t val2 ;
19241 int ecode2 = 0 ;
19242 bool temp3 = false ;
19243 PyObject * obj0 = 0 ;
19244 PyObject * obj1 = 0 ;
19245 PyObject * obj2 = 0 ;
19246 char * kwnames[] = {
19247 (char *) "self",(char *) "n",(char *) "strText", NULL
19248 };
19249
19250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19252 if (!SWIG_IsOK(res1)) {
19253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19254 }
19255 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19256 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19257 if (!SWIG_IsOK(ecode2)) {
19258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19259 }
19260 arg2 = static_cast< size_t >(val2);
19261 {
19262 arg3 = wxString_in_helper(obj2);
19263 if (arg3 == NULL) SWIG_fail;
19264 temp3 = true;
19265 }
19266 {
19267 PyThreadState* __tstate = wxPyBeginAllowThreads();
19268 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19269 wxPyEndAllowThreads(__tstate);
19270 if (PyErr_Occurred()) SWIG_fail;
19271 }
19272 {
19273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19274 }
19275 {
19276 if (temp3)
19277 delete arg3;
19278 }
19279 return resultobj;
19280 fail:
19281 {
19282 if (temp3)
19283 delete arg3;
19284 }
19285 return NULL;
19286 }
19287
19288
19289 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19290 PyObject *resultobj = 0;
19291 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19292 size_t arg2 ;
19293 wxString result;
19294 void *argp1 = 0 ;
19295 int res1 = 0 ;
19296 size_t val2 ;
19297 int ecode2 = 0 ;
19298 PyObject * obj0 = 0 ;
19299 PyObject * obj1 = 0 ;
19300 char * kwnames[] = {
19301 (char *) "self",(char *) "n", NULL
19302 };
19303
19304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19306 if (!SWIG_IsOK(res1)) {
19307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19308 }
19309 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19310 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19311 if (!SWIG_IsOK(ecode2)) {
19312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19313 }
19314 arg2 = static_cast< size_t >(val2);
19315 {
19316 PyThreadState* __tstate = wxPyBeginAllowThreads();
19317 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19318 wxPyEndAllowThreads(__tstate);
19319 if (PyErr_Occurred()) SWIG_fail;
19320 }
19321 {
19322 #if wxUSE_UNICODE
19323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19324 #else
19325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19326 #endif
19327 }
19328 return resultobj;
19329 fail:
19330 return NULL;
19331 }
19332
19333
19334 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19335 PyObject *resultobj = 0;
19336 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19337 wxImageList *arg2 = (wxImageList *) 0 ;
19338 void *argp1 = 0 ;
19339 int res1 = 0 ;
19340 void *argp2 = 0 ;
19341 int res2 = 0 ;
19342 PyObject * obj0 = 0 ;
19343 PyObject * obj1 = 0 ;
19344 char * kwnames[] = {
19345 (char *) "self",(char *) "imageList", NULL
19346 };
19347
19348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19350 if (!SWIG_IsOK(res1)) {
19351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19352 }
19353 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19354 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19355 if (!SWIG_IsOK(res2)) {
19356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19357 }
19358 arg2 = reinterpret_cast< wxImageList * >(argp2);
19359 {
19360 PyThreadState* __tstate = wxPyBeginAllowThreads();
19361 (arg1)->SetImageList(arg2);
19362 wxPyEndAllowThreads(__tstate);
19363 if (PyErr_Occurred()) SWIG_fail;
19364 }
19365 resultobj = SWIG_Py_Void();
19366 return resultobj;
19367 fail:
19368 return NULL;
19369 }
19370
19371
19372 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19373 PyObject *resultobj = 0;
19374 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19375 wxImageList *arg2 = (wxImageList *) 0 ;
19376 void *argp1 = 0 ;
19377 int res1 = 0 ;
19378 int res2 = 0 ;
19379 PyObject * obj0 = 0 ;
19380 PyObject * obj1 = 0 ;
19381 char * kwnames[] = {
19382 (char *) "self",(char *) "imageList", NULL
19383 };
19384
19385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19387 if (!SWIG_IsOK(res1)) {
19388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19389 }
19390 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19391 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19392 if (!SWIG_IsOK(res2)) {
19393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19394 }
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 (arg1)->AssignImageList(arg2);
19398 wxPyEndAllowThreads(__tstate);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 }
19401 resultobj = SWIG_Py_Void();
19402 return resultobj;
19403 fail:
19404 return NULL;
19405 }
19406
19407
19408 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19409 PyObject *resultobj = 0;
19410 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19411 wxImageList *result = 0 ;
19412 void *argp1 = 0 ;
19413 int res1 = 0 ;
19414 PyObject *swig_obj[1] ;
19415
19416 if (!args) SWIG_fail;
19417 swig_obj[0] = args;
19418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19419 if (!SWIG_IsOK(res1)) {
19420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19421 }
19422 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 {
19430 resultobj = wxPyMake_wxObject(result, (bool)0);
19431 }
19432 return resultobj;
19433 fail:
19434 return NULL;
19435 }
19436
19437
19438 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19439 PyObject *resultobj = 0;
19440 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19441 size_t arg2 ;
19442 int result;
19443 void *argp1 = 0 ;
19444 int res1 = 0 ;
19445 size_t val2 ;
19446 int ecode2 = 0 ;
19447 PyObject * obj0 = 0 ;
19448 PyObject * obj1 = 0 ;
19449 char * kwnames[] = {
19450 (char *) "self",(char *) "n", NULL
19451 };
19452
19453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19455 if (!SWIG_IsOK(res1)) {
19456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19457 }
19458 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19459 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19460 if (!SWIG_IsOK(ecode2)) {
19461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19462 }
19463 arg2 = static_cast< size_t >(val2);
19464 {
19465 PyThreadState* __tstate = wxPyBeginAllowThreads();
19466 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19467 wxPyEndAllowThreads(__tstate);
19468 if (PyErr_Occurred()) SWIG_fail;
19469 }
19470 resultobj = SWIG_From_int(static_cast< int >(result));
19471 return resultobj;
19472 fail:
19473 return NULL;
19474 }
19475
19476
19477 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19478 PyObject *resultobj = 0;
19479 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19480 size_t arg2 ;
19481 int arg3 ;
19482 bool result;
19483 void *argp1 = 0 ;
19484 int res1 = 0 ;
19485 size_t val2 ;
19486 int ecode2 = 0 ;
19487 int val3 ;
19488 int ecode3 = 0 ;
19489 PyObject * obj0 = 0 ;
19490 PyObject * obj1 = 0 ;
19491 PyObject * obj2 = 0 ;
19492 char * kwnames[] = {
19493 (char *) "self",(char *) "n",(char *) "imageId", NULL
19494 };
19495
19496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19498 if (!SWIG_IsOK(res1)) {
19499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19500 }
19501 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19502 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19503 if (!SWIG_IsOK(ecode2)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19505 }
19506 arg2 = static_cast< size_t >(val2);
19507 ecode3 = SWIG_AsVal_int(obj2, &val3);
19508 if (!SWIG_IsOK(ecode3)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19510 }
19511 arg3 = static_cast< int >(val3);
19512 {
19513 PyThreadState* __tstate = wxPyBeginAllowThreads();
19514 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19515 wxPyEndAllowThreads(__tstate);
19516 if (PyErr_Occurred()) SWIG_fail;
19517 }
19518 {
19519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19520 }
19521 return resultobj;
19522 fail:
19523 return NULL;
19524 }
19525
19526
19527 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19528 PyObject *resultobj = 0;
19529 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19530 wxSize *arg2 = 0 ;
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 wxSize temp2 ;
19534 PyObject * obj0 = 0 ;
19535 PyObject * obj1 = 0 ;
19536 char * kwnames[] = {
19537 (char *) "self",(char *) "size", NULL
19538 };
19539
19540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19542 if (!SWIG_IsOK(res1)) {
19543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19544 }
19545 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19546 {
19547 arg2 = &temp2;
19548 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19549 }
19550 {
19551 PyThreadState* __tstate = wxPyBeginAllowThreads();
19552 (arg1)->SetPageSize((wxSize const &)*arg2);
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 resultobj = SWIG_Py_Void();
19557 return resultobj;
19558 fail:
19559 return NULL;
19560 }
19561
19562
19563 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19564 PyObject *resultobj = 0;
19565 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19566 wxSize *arg2 = 0 ;
19567 wxSize result;
19568 void *argp1 = 0 ;
19569 int res1 = 0 ;
19570 wxSize temp2 ;
19571 PyObject * obj0 = 0 ;
19572 PyObject * obj1 = 0 ;
19573 char * kwnames[] = {
19574 (char *) "self",(char *) "sizePage", NULL
19575 };
19576
19577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19579 if (!SWIG_IsOK(res1)) {
19580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19581 }
19582 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19583 {
19584 arg2 = &temp2;
19585 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19586 }
19587 {
19588 PyThreadState* __tstate = wxPyBeginAllowThreads();
19589 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19590 wxPyEndAllowThreads(__tstate);
19591 if (PyErr_Occurred()) SWIG_fail;
19592 }
19593 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19594 return resultobj;
19595 fail:
19596 return NULL;
19597 }
19598
19599
19600 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19601 PyObject *resultobj = 0;
19602 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19603 unsigned int result;
19604 void *argp1 = 0 ;
19605 int res1 = 0 ;
19606 PyObject *swig_obj[1] ;
19607
19608 if (!args) SWIG_fail;
19609 swig_obj[0] = args;
19610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19611 if (!SWIG_IsOK(res1)) {
19612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19613 }
19614 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19615 {
19616 PyThreadState* __tstate = wxPyBeginAllowThreads();
19617 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19618 wxPyEndAllowThreads(__tstate);
19619 if (PyErr_Occurred()) SWIG_fail;
19620 }
19621 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19622 return resultobj;
19623 fail:
19624 return NULL;
19625 }
19626
19627
19628 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19629 PyObject *resultobj = 0;
19630 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19631 unsigned int arg2 ;
19632 void *argp1 = 0 ;
19633 int res1 = 0 ;
19634 unsigned int val2 ;
19635 int ecode2 = 0 ;
19636 PyObject * obj0 = 0 ;
19637 PyObject * obj1 = 0 ;
19638 char * kwnames[] = {
19639 (char *) "self",(char *) "internalBorder", NULL
19640 };
19641
19642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19644 if (!SWIG_IsOK(res1)) {
19645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19646 }
19647 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19648 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19649 if (!SWIG_IsOK(ecode2)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19651 }
19652 arg2 = static_cast< unsigned int >(val2);
19653 {
19654 PyThreadState* __tstate = wxPyBeginAllowThreads();
19655 (arg1)->SetInternalBorder(arg2);
19656 wxPyEndAllowThreads(__tstate);
19657 if (PyErr_Occurred()) SWIG_fail;
19658 }
19659 resultobj = SWIG_Py_Void();
19660 return resultobj;
19661 fail:
19662 return NULL;
19663 }
19664
19665
19666 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19667 PyObject *resultobj = 0;
19668 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19669 bool result;
19670 void *argp1 = 0 ;
19671 int res1 = 0 ;
19672 PyObject *swig_obj[1] ;
19673
19674 if (!args) SWIG_fail;
19675 swig_obj[0] = args;
19676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19677 if (!SWIG_IsOK(res1)) {
19678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19679 }
19680 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19681 {
19682 PyThreadState* __tstate = wxPyBeginAllowThreads();
19683 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19684 wxPyEndAllowThreads(__tstate);
19685 if (PyErr_Occurred()) SWIG_fail;
19686 }
19687 {
19688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19689 }
19690 return resultobj;
19691 fail:
19692 return NULL;
19693 }
19694
19695
19696 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19697 PyObject *resultobj = 0;
19698 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19699 int arg2 ;
19700 void *argp1 = 0 ;
19701 int res1 = 0 ;
19702 int val2 ;
19703 int ecode2 = 0 ;
19704 PyObject * obj0 = 0 ;
19705 PyObject * obj1 = 0 ;
19706 char * kwnames[] = {
19707 (char *) "self",(char *) "margin", NULL
19708 };
19709
19710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19712 if (!SWIG_IsOK(res1)) {
19713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19714 }
19715 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19716 ecode2 = SWIG_AsVal_int(obj1, &val2);
19717 if (!SWIG_IsOK(ecode2)) {
19718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19719 }
19720 arg2 = static_cast< int >(val2);
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 (arg1)->SetControlMargin(arg2);
19724 wxPyEndAllowThreads(__tstate);
19725 if (PyErr_Occurred()) SWIG_fail;
19726 }
19727 resultobj = SWIG_Py_Void();
19728 return resultobj;
19729 fail:
19730 return NULL;
19731 }
19732
19733
19734 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19735 PyObject *resultobj = 0;
19736 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19737 int result;
19738 void *argp1 = 0 ;
19739 int res1 = 0 ;
19740 PyObject *swig_obj[1] ;
19741
19742 if (!args) SWIG_fail;
19743 swig_obj[0] = args;
19744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19745 if (!SWIG_IsOK(res1)) {
19746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19747 }
19748 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19749 {
19750 PyThreadState* __tstate = wxPyBeginAllowThreads();
19751 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19752 wxPyEndAllowThreads(__tstate);
19753 if (PyErr_Occurred()) SWIG_fail;
19754 }
19755 resultobj = SWIG_From_int(static_cast< int >(result));
19756 return resultobj;
19757 fail:
19758 return NULL;
19759 }
19760
19761
19762 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19763 PyObject *resultobj = 0;
19764 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19765 bool arg2 ;
19766 void *argp1 = 0 ;
19767 int res1 = 0 ;
19768 bool val2 ;
19769 int ecode2 = 0 ;
19770 PyObject * obj0 = 0 ;
19771 PyObject * obj1 = 0 ;
19772 char * kwnames[] = {
19773 (char *) "self",(char *) "fit", NULL
19774 };
19775
19776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19778 if (!SWIG_IsOK(res1)) {
19779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19780 }
19781 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19782 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19783 if (!SWIG_IsOK(ecode2)) {
19784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19785 }
19786 arg2 = static_cast< bool >(val2);
19787 {
19788 PyThreadState* __tstate = wxPyBeginAllowThreads();
19789 (arg1)->SetFitToCurrentPage(arg2);
19790 wxPyEndAllowThreads(__tstate);
19791 if (PyErr_Occurred()) SWIG_fail;
19792 }
19793 resultobj = SWIG_Py_Void();
19794 return resultobj;
19795 fail:
19796 return NULL;
19797 }
19798
19799
19800 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19801 PyObject *resultobj = 0;
19802 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19803 bool result;
19804 void *argp1 = 0 ;
19805 int res1 = 0 ;
19806 PyObject *swig_obj[1] ;
19807
19808 if (!args) SWIG_fail;
19809 swig_obj[0] = args;
19810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19811 if (!SWIG_IsOK(res1)) {
19812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19813 }
19814 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19815 {
19816 PyThreadState* __tstate = wxPyBeginAllowThreads();
19817 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19818 wxPyEndAllowThreads(__tstate);
19819 if (PyErr_Occurred()) SWIG_fail;
19820 }
19821 {
19822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19823 }
19824 return resultobj;
19825 fail:
19826 return NULL;
19827 }
19828
19829
19830 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19831 PyObject *resultobj = 0;
19832 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19833 wxSizer *result = 0 ;
19834 void *argp1 = 0 ;
19835 int res1 = 0 ;
19836 PyObject *swig_obj[1] ;
19837
19838 if (!args) SWIG_fail;
19839 swig_obj[0] = args;
19840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19841 if (!SWIG_IsOK(res1)) {
19842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19843 }
19844 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19845 {
19846 PyThreadState* __tstate = wxPyBeginAllowThreads();
19847 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19848 wxPyEndAllowThreads(__tstate);
19849 if (PyErr_Occurred()) SWIG_fail;
19850 }
19851 {
19852 resultobj = wxPyMake_wxObject(result, (bool)0);
19853 }
19854 return resultobj;
19855 fail:
19856 return NULL;
19857 }
19858
19859
19860 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj = 0;
19862 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19863 size_t arg2 ;
19864 bool result;
19865 void *argp1 = 0 ;
19866 int res1 = 0 ;
19867 size_t val2 ;
19868 int ecode2 = 0 ;
19869 PyObject * obj0 = 0 ;
19870 PyObject * obj1 = 0 ;
19871 char * kwnames[] = {
19872 (char *) "self",(char *) "n", NULL
19873 };
19874
19875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19877 if (!SWIG_IsOK(res1)) {
19878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19879 }
19880 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19881 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19882 if (!SWIG_IsOK(ecode2)) {
19883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19884 }
19885 arg2 = static_cast< size_t >(val2);
19886 {
19887 PyThreadState* __tstate = wxPyBeginAllowThreads();
19888 result = (bool)(arg1)->DeletePage(arg2);
19889 wxPyEndAllowThreads(__tstate);
19890 if (PyErr_Occurred()) SWIG_fail;
19891 }
19892 {
19893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19894 }
19895 return resultobj;
19896 fail:
19897 return NULL;
19898 }
19899
19900
19901 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj = 0;
19903 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19904 size_t arg2 ;
19905 bool result;
19906 void *argp1 = 0 ;
19907 int res1 = 0 ;
19908 size_t val2 ;
19909 int ecode2 = 0 ;
19910 PyObject * obj0 = 0 ;
19911 PyObject * obj1 = 0 ;
19912 char * kwnames[] = {
19913 (char *) "self",(char *) "n", NULL
19914 };
19915
19916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19918 if (!SWIG_IsOK(res1)) {
19919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19920 }
19921 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19922 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19923 if (!SWIG_IsOK(ecode2)) {
19924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19925 }
19926 arg2 = static_cast< size_t >(val2);
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 result = (bool)(arg1)->RemovePage(arg2);
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 {
19934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19935 }
19936 return resultobj;
19937 fail:
19938 return NULL;
19939 }
19940
19941
19942 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19943 PyObject *resultobj = 0;
19944 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19945 bool result;
19946 void *argp1 = 0 ;
19947 int res1 = 0 ;
19948 PyObject *swig_obj[1] ;
19949
19950 if (!args) SWIG_fail;
19951 swig_obj[0] = args;
19952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19953 if (!SWIG_IsOK(res1)) {
19954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19955 }
19956 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19957 {
19958 PyThreadState* __tstate = wxPyBeginAllowThreads();
19959 result = (bool)(arg1)->DeleteAllPages();
19960 wxPyEndAllowThreads(__tstate);
19961 if (PyErr_Occurred()) SWIG_fail;
19962 }
19963 {
19964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19965 }
19966 return resultobj;
19967 fail:
19968 return NULL;
19969 }
19970
19971
19972 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19973 PyObject *resultobj = 0;
19974 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19975 wxWindow *arg2 = (wxWindow *) 0 ;
19976 wxString *arg3 = 0 ;
19977 bool arg4 = (bool) false ;
19978 int arg5 = (int) -1 ;
19979 bool result;
19980 void *argp1 = 0 ;
19981 int res1 = 0 ;
19982 void *argp2 = 0 ;
19983 int res2 = 0 ;
19984 bool temp3 = false ;
19985 bool val4 ;
19986 int ecode4 = 0 ;
19987 int val5 ;
19988 int ecode5 = 0 ;
19989 PyObject * obj0 = 0 ;
19990 PyObject * obj1 = 0 ;
19991 PyObject * obj2 = 0 ;
19992 PyObject * obj3 = 0 ;
19993 PyObject * obj4 = 0 ;
19994 char * kwnames[] = {
19995 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19996 };
19997
19998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20000 if (!SWIG_IsOK(res1)) {
20001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20002 }
20003 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20004 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20005 if (!SWIG_IsOK(res2)) {
20006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20007 }
20008 arg2 = reinterpret_cast< wxWindow * >(argp2);
20009 {
20010 arg3 = wxString_in_helper(obj2);
20011 if (arg3 == NULL) SWIG_fail;
20012 temp3 = true;
20013 }
20014 if (obj3) {
20015 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20016 if (!SWIG_IsOK(ecode4)) {
20017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20018 }
20019 arg4 = static_cast< bool >(val4);
20020 }
20021 if (obj4) {
20022 ecode5 = SWIG_AsVal_int(obj4, &val5);
20023 if (!SWIG_IsOK(ecode5)) {
20024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20025 }
20026 arg5 = static_cast< int >(val5);
20027 }
20028 {
20029 PyThreadState* __tstate = wxPyBeginAllowThreads();
20030 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20031 wxPyEndAllowThreads(__tstate);
20032 if (PyErr_Occurred()) SWIG_fail;
20033 }
20034 {
20035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20036 }
20037 {
20038 if (temp3)
20039 delete arg3;
20040 }
20041 return resultobj;
20042 fail:
20043 {
20044 if (temp3)
20045 delete arg3;
20046 }
20047 return NULL;
20048 }
20049
20050
20051 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20052 PyObject *resultobj = 0;
20053 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20054 size_t arg2 ;
20055 wxWindow *arg3 = (wxWindow *) 0 ;
20056 wxString *arg4 = 0 ;
20057 bool arg5 = (bool) false ;
20058 int arg6 = (int) -1 ;
20059 bool result;
20060 void *argp1 = 0 ;
20061 int res1 = 0 ;
20062 size_t val2 ;
20063 int ecode2 = 0 ;
20064 void *argp3 = 0 ;
20065 int res3 = 0 ;
20066 bool temp4 = false ;
20067 bool val5 ;
20068 int ecode5 = 0 ;
20069 int val6 ;
20070 int ecode6 = 0 ;
20071 PyObject * obj0 = 0 ;
20072 PyObject * obj1 = 0 ;
20073 PyObject * obj2 = 0 ;
20074 PyObject * obj3 = 0 ;
20075 PyObject * obj4 = 0 ;
20076 PyObject * obj5 = 0 ;
20077 char * kwnames[] = {
20078 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20079 };
20080
20081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20083 if (!SWIG_IsOK(res1)) {
20084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20085 }
20086 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20087 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20088 if (!SWIG_IsOK(ecode2)) {
20089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20090 }
20091 arg2 = static_cast< size_t >(val2);
20092 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20093 if (!SWIG_IsOK(res3)) {
20094 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20095 }
20096 arg3 = reinterpret_cast< wxWindow * >(argp3);
20097 {
20098 arg4 = wxString_in_helper(obj3);
20099 if (arg4 == NULL) SWIG_fail;
20100 temp4 = true;
20101 }
20102 if (obj4) {
20103 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20104 if (!SWIG_IsOK(ecode5)) {
20105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20106 }
20107 arg5 = static_cast< bool >(val5);
20108 }
20109 if (obj5) {
20110 ecode6 = SWIG_AsVal_int(obj5, &val6);
20111 if (!SWIG_IsOK(ecode6)) {
20112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20113 }
20114 arg6 = static_cast< int >(val6);
20115 }
20116 {
20117 PyThreadState* __tstate = wxPyBeginAllowThreads();
20118 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20119 wxPyEndAllowThreads(__tstate);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 }
20122 {
20123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20124 }
20125 {
20126 if (temp4)
20127 delete arg4;
20128 }
20129 return resultobj;
20130 fail:
20131 {
20132 if (temp4)
20133 delete arg4;
20134 }
20135 return NULL;
20136 }
20137
20138
20139 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20140 PyObject *resultobj = 0;
20141 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20142 size_t arg2 ;
20143 int result;
20144 void *argp1 = 0 ;
20145 int res1 = 0 ;
20146 size_t val2 ;
20147 int ecode2 = 0 ;
20148 PyObject * obj0 = 0 ;
20149 PyObject * obj1 = 0 ;
20150 char * kwnames[] = {
20151 (char *) "self",(char *) "n", NULL
20152 };
20153
20154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20156 if (!SWIG_IsOK(res1)) {
20157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20158 }
20159 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20160 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20161 if (!SWIG_IsOK(ecode2)) {
20162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20163 }
20164 arg2 = static_cast< size_t >(val2);
20165 {
20166 PyThreadState* __tstate = wxPyBeginAllowThreads();
20167 result = (int)(arg1)->SetSelection(arg2);
20168 wxPyEndAllowThreads(__tstate);
20169 if (PyErr_Occurred()) SWIG_fail;
20170 }
20171 resultobj = SWIG_From_int(static_cast< int >(result));
20172 return resultobj;
20173 fail:
20174 return NULL;
20175 }
20176
20177
20178 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20179 PyObject *resultobj = 0;
20180 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20181 bool arg2 = (bool) true ;
20182 void *argp1 = 0 ;
20183 int res1 = 0 ;
20184 bool val2 ;
20185 int ecode2 = 0 ;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188 char * kwnames[] = {
20189 (char *) "self",(char *) "forward", NULL
20190 };
20191
20192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20194 if (!SWIG_IsOK(res1)) {
20195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20196 }
20197 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20198 if (obj1) {
20199 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20200 if (!SWIG_IsOK(ecode2)) {
20201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20202 }
20203 arg2 = static_cast< bool >(val2);
20204 }
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 (arg1)->AdvanceSelection(arg2);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_Py_Void();
20212 return resultobj;
20213 fail:
20214 return NULL;
20215 }
20216
20217
20218 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20221 wxPoint *arg2 = 0 ;
20222 long *arg3 = (long *) 0 ;
20223 int result;
20224 void *argp1 = 0 ;
20225 int res1 = 0 ;
20226 wxPoint temp2 ;
20227 long temp3 ;
20228 int res3 = SWIG_TMPOBJ ;
20229 PyObject * obj0 = 0 ;
20230 PyObject * obj1 = 0 ;
20231 char * kwnames[] = {
20232 (char *) "self",(char *) "pt", NULL
20233 };
20234
20235 arg3 = &temp3;
20236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20240 }
20241 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20242 {
20243 arg2 = &temp2;
20244 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20245 }
20246 {
20247 PyThreadState* __tstate = wxPyBeginAllowThreads();
20248 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20249 wxPyEndAllowThreads(__tstate);
20250 if (PyErr_Occurred()) SWIG_fail;
20251 }
20252 resultobj = SWIG_From_int(static_cast< int >(result));
20253 if (SWIG_IsTmpObj(res3)) {
20254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20255 } else {
20256 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20257 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20258 }
20259 return resultobj;
20260 fail:
20261 return NULL;
20262 }
20263
20264
20265 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20266 PyObject *resultobj = 0;
20267 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20268 SwigValueWrapper<wxVisualAttributes > result;
20269 int val1 ;
20270 int ecode1 = 0 ;
20271 PyObject * obj0 = 0 ;
20272 char * kwnames[] = {
20273 (char *) "variant", NULL
20274 };
20275
20276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20277 if (obj0) {
20278 ecode1 = SWIG_AsVal_int(obj0, &val1);
20279 if (!SWIG_IsOK(ecode1)) {
20280 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20281 }
20282 arg1 = static_cast< wxWindowVariant >(val1);
20283 }
20284 {
20285 if (!wxPyCheckForApp()) SWIG_fail;
20286 PyThreadState* __tstate = wxPyBeginAllowThreads();
20287 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20288 wxPyEndAllowThreads(__tstate);
20289 if (PyErr_Occurred()) SWIG_fail;
20290 }
20291 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20292 return resultobj;
20293 fail:
20294 return NULL;
20295 }
20296
20297
20298 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20299 PyObject *obj;
20300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20301 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20302 return SWIG_Py_Void();
20303 }
20304
20305 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20306 PyObject *resultobj = 0;
20307 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20308 int arg2 = (int) 0 ;
20309 int arg3 = (int) -1 ;
20310 int arg4 = (int) -1 ;
20311 wxBookCtrlBaseEvent *result = 0 ;
20312 int val1 ;
20313 int ecode1 = 0 ;
20314 int val2 ;
20315 int ecode2 = 0 ;
20316 int val3 ;
20317 int ecode3 = 0 ;
20318 int val4 ;
20319 int ecode4 = 0 ;
20320 PyObject * obj0 = 0 ;
20321 PyObject * obj1 = 0 ;
20322 PyObject * obj2 = 0 ;
20323 PyObject * obj3 = 0 ;
20324 char * kwnames[] = {
20325 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20326 };
20327
20328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20329 if (obj0) {
20330 ecode1 = SWIG_AsVal_int(obj0, &val1);
20331 if (!SWIG_IsOK(ecode1)) {
20332 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20333 }
20334 arg1 = static_cast< wxEventType >(val1);
20335 }
20336 if (obj1) {
20337 ecode2 = SWIG_AsVal_int(obj1, &val2);
20338 if (!SWIG_IsOK(ecode2)) {
20339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20340 }
20341 arg2 = static_cast< int >(val2);
20342 }
20343 if (obj2) {
20344 ecode3 = SWIG_AsVal_int(obj2, &val3);
20345 if (!SWIG_IsOK(ecode3)) {
20346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20347 }
20348 arg3 = static_cast< int >(val3);
20349 }
20350 if (obj3) {
20351 ecode4 = SWIG_AsVal_int(obj3, &val4);
20352 if (!SWIG_IsOK(ecode4)) {
20353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20354 }
20355 arg4 = static_cast< int >(val4);
20356 }
20357 {
20358 PyThreadState* __tstate = wxPyBeginAllowThreads();
20359 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20360 wxPyEndAllowThreads(__tstate);
20361 if (PyErr_Occurred()) SWIG_fail;
20362 }
20363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20364 return resultobj;
20365 fail:
20366 return NULL;
20367 }
20368
20369
20370 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20371 PyObject *resultobj = 0;
20372 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20373 int result;
20374 void *argp1 = 0 ;
20375 int res1 = 0 ;
20376 PyObject *swig_obj[1] ;
20377
20378 if (!args) SWIG_fail;
20379 swig_obj[0] = args;
20380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20381 if (!SWIG_IsOK(res1)) {
20382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20383 }
20384 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20385 {
20386 PyThreadState* __tstate = wxPyBeginAllowThreads();
20387 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20388 wxPyEndAllowThreads(__tstate);
20389 if (PyErr_Occurred()) SWIG_fail;
20390 }
20391 resultobj = SWIG_From_int(static_cast< int >(result));
20392 return resultobj;
20393 fail:
20394 return NULL;
20395 }
20396
20397
20398 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20399 PyObject *resultobj = 0;
20400 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20401 int arg2 ;
20402 void *argp1 = 0 ;
20403 int res1 = 0 ;
20404 int val2 ;
20405 int ecode2 = 0 ;
20406 PyObject * obj0 = 0 ;
20407 PyObject * obj1 = 0 ;
20408 char * kwnames[] = {
20409 (char *) "self",(char *) "nSel", NULL
20410 };
20411
20412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20414 if (!SWIG_IsOK(res1)) {
20415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20416 }
20417 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20418 ecode2 = SWIG_AsVal_int(obj1, &val2);
20419 if (!SWIG_IsOK(ecode2)) {
20420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20421 }
20422 arg2 = static_cast< int >(val2);
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 (arg1)->SetSelection(arg2);
20426 wxPyEndAllowThreads(__tstate);
20427 if (PyErr_Occurred()) SWIG_fail;
20428 }
20429 resultobj = SWIG_Py_Void();
20430 return resultobj;
20431 fail:
20432 return NULL;
20433 }
20434
20435
20436 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20437 PyObject *resultobj = 0;
20438 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20439 int result;
20440 void *argp1 = 0 ;
20441 int res1 = 0 ;
20442 PyObject *swig_obj[1] ;
20443
20444 if (!args) SWIG_fail;
20445 swig_obj[0] = args;
20446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20447 if (!SWIG_IsOK(res1)) {
20448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20449 }
20450 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20451 {
20452 PyThreadState* __tstate = wxPyBeginAllowThreads();
20453 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20454 wxPyEndAllowThreads(__tstate);
20455 if (PyErr_Occurred()) SWIG_fail;
20456 }
20457 resultobj = SWIG_From_int(static_cast< int >(result));
20458 return resultobj;
20459 fail:
20460 return NULL;
20461 }
20462
20463
20464 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20465 PyObject *resultobj = 0;
20466 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20467 int arg2 ;
20468 void *argp1 = 0 ;
20469 int res1 = 0 ;
20470 int val2 ;
20471 int ecode2 = 0 ;
20472 PyObject * obj0 = 0 ;
20473 PyObject * obj1 = 0 ;
20474 char * kwnames[] = {
20475 (char *) "self",(char *) "nOldSel", NULL
20476 };
20477
20478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20480 if (!SWIG_IsOK(res1)) {
20481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20482 }
20483 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20484 ecode2 = SWIG_AsVal_int(obj1, &val2);
20485 if (!SWIG_IsOK(ecode2)) {
20486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20487 }
20488 arg2 = static_cast< int >(val2);
20489 {
20490 PyThreadState* __tstate = wxPyBeginAllowThreads();
20491 (arg1)->SetOldSelection(arg2);
20492 wxPyEndAllowThreads(__tstate);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 }
20495 resultobj = SWIG_Py_Void();
20496 return resultobj;
20497 fail:
20498 return NULL;
20499 }
20500
20501
20502 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20503 PyObject *obj;
20504 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20505 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20506 return SWIG_Py_Void();
20507 }
20508
20509 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20510 return SWIG_Python_InitShadowInstance(args);
20511 }
20512
20513 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20514 PyObject *resultobj = 0;
20515 wxWindow *arg1 = (wxWindow *) 0 ;
20516 int arg2 = (int) -1 ;
20517 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20518 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20519 wxSize const &arg4_defvalue = wxDefaultSize ;
20520 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20521 long arg5 = (long) 0 ;
20522 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20523 wxString *arg6 = (wxString *) &arg6_defvalue ;
20524 wxNotebook *result = 0 ;
20525 void *argp1 = 0 ;
20526 int res1 = 0 ;
20527 int val2 ;
20528 int ecode2 = 0 ;
20529 wxPoint temp3 ;
20530 wxSize temp4 ;
20531 long val5 ;
20532 int ecode5 = 0 ;
20533 bool temp6 = false ;
20534 PyObject * obj0 = 0 ;
20535 PyObject * obj1 = 0 ;
20536 PyObject * obj2 = 0 ;
20537 PyObject * obj3 = 0 ;
20538 PyObject * obj4 = 0 ;
20539 PyObject * obj5 = 0 ;
20540 char * kwnames[] = {
20541 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20542 };
20543
20544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20546 if (!SWIG_IsOK(res1)) {
20547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20548 }
20549 arg1 = reinterpret_cast< wxWindow * >(argp1);
20550 if (obj1) {
20551 ecode2 = SWIG_AsVal_int(obj1, &val2);
20552 if (!SWIG_IsOK(ecode2)) {
20553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20554 }
20555 arg2 = static_cast< int >(val2);
20556 }
20557 if (obj2) {
20558 {
20559 arg3 = &temp3;
20560 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20561 }
20562 }
20563 if (obj3) {
20564 {
20565 arg4 = &temp4;
20566 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20567 }
20568 }
20569 if (obj4) {
20570 ecode5 = SWIG_AsVal_long(obj4, &val5);
20571 if (!SWIG_IsOK(ecode5)) {
20572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20573 }
20574 arg5 = static_cast< long >(val5);
20575 }
20576 if (obj5) {
20577 {
20578 arg6 = wxString_in_helper(obj5);
20579 if (arg6 == NULL) SWIG_fail;
20580 temp6 = true;
20581 }
20582 }
20583 {
20584 if (!wxPyCheckForApp()) SWIG_fail;
20585 PyThreadState* __tstate = wxPyBeginAllowThreads();
20586 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20591 {
20592 if (temp6)
20593 delete arg6;
20594 }
20595 return resultobj;
20596 fail:
20597 {
20598 if (temp6)
20599 delete arg6;
20600 }
20601 return NULL;
20602 }
20603
20604
20605 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 PyObject *resultobj = 0;
20607 wxNotebook *result = 0 ;
20608
20609 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20610 {
20611 if (!wxPyCheckForApp()) SWIG_fail;
20612 PyThreadState* __tstate = wxPyBeginAllowThreads();
20613 result = (wxNotebook *)new wxNotebook();
20614 wxPyEndAllowThreads(__tstate);
20615 if (PyErr_Occurred()) SWIG_fail;
20616 }
20617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20618 return resultobj;
20619 fail:
20620 return NULL;
20621 }
20622
20623
20624 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20625 PyObject *resultobj = 0;
20626 wxNotebook *arg1 = (wxNotebook *) 0 ;
20627 wxWindow *arg2 = (wxWindow *) 0 ;
20628 int arg3 = (int) -1 ;
20629 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20630 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20631 wxSize const &arg5_defvalue = wxDefaultSize ;
20632 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20633 long arg6 = (long) 0 ;
20634 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20635 wxString *arg7 = (wxString *) &arg7_defvalue ;
20636 bool result;
20637 void *argp1 = 0 ;
20638 int res1 = 0 ;
20639 void *argp2 = 0 ;
20640 int res2 = 0 ;
20641 int val3 ;
20642 int ecode3 = 0 ;
20643 wxPoint temp4 ;
20644 wxSize temp5 ;
20645 long val6 ;
20646 int ecode6 = 0 ;
20647 bool temp7 = false ;
20648 PyObject * obj0 = 0 ;
20649 PyObject * obj1 = 0 ;
20650 PyObject * obj2 = 0 ;
20651 PyObject * obj3 = 0 ;
20652 PyObject * obj4 = 0 ;
20653 PyObject * obj5 = 0 ;
20654 PyObject * obj6 = 0 ;
20655 char * kwnames[] = {
20656 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20657 };
20658
20659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20661 if (!SWIG_IsOK(res1)) {
20662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20663 }
20664 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20666 if (!SWIG_IsOK(res2)) {
20667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20668 }
20669 arg2 = reinterpret_cast< wxWindow * >(argp2);
20670 if (obj2) {
20671 ecode3 = SWIG_AsVal_int(obj2, &val3);
20672 if (!SWIG_IsOK(ecode3)) {
20673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20674 }
20675 arg3 = static_cast< int >(val3);
20676 }
20677 if (obj3) {
20678 {
20679 arg4 = &temp4;
20680 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20681 }
20682 }
20683 if (obj4) {
20684 {
20685 arg5 = &temp5;
20686 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20687 }
20688 }
20689 if (obj5) {
20690 ecode6 = SWIG_AsVal_long(obj5, &val6);
20691 if (!SWIG_IsOK(ecode6)) {
20692 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20693 }
20694 arg6 = static_cast< long >(val6);
20695 }
20696 if (obj6) {
20697 {
20698 arg7 = wxString_in_helper(obj6);
20699 if (arg7 == NULL) SWIG_fail;
20700 temp7 = true;
20701 }
20702 }
20703 {
20704 PyThreadState* __tstate = wxPyBeginAllowThreads();
20705 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20706 wxPyEndAllowThreads(__tstate);
20707 if (PyErr_Occurred()) SWIG_fail;
20708 }
20709 {
20710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20711 }
20712 {
20713 if (temp7)
20714 delete arg7;
20715 }
20716 return resultobj;
20717 fail:
20718 {
20719 if (temp7)
20720 delete arg7;
20721 }
20722 return NULL;
20723 }
20724
20725
20726 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20727 PyObject *resultobj = 0;
20728 wxNotebook *arg1 = (wxNotebook *) 0 ;
20729 int result;
20730 void *argp1 = 0 ;
20731 int res1 = 0 ;
20732 PyObject *swig_obj[1] ;
20733
20734 if (!args) SWIG_fail;
20735 swig_obj[0] = args;
20736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20737 if (!SWIG_IsOK(res1)) {
20738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20739 }
20740 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20741 {
20742 PyThreadState* __tstate = wxPyBeginAllowThreads();
20743 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20744 wxPyEndAllowThreads(__tstate);
20745 if (PyErr_Occurred()) SWIG_fail;
20746 }
20747 resultobj = SWIG_From_int(static_cast< int >(result));
20748 return resultobj;
20749 fail:
20750 return NULL;
20751 }
20752
20753
20754 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20755 PyObject *resultobj = 0;
20756 wxNotebook *arg1 = (wxNotebook *) 0 ;
20757 wxSize *arg2 = 0 ;
20758 void *argp1 = 0 ;
20759 int res1 = 0 ;
20760 wxSize temp2 ;
20761 PyObject * obj0 = 0 ;
20762 PyObject * obj1 = 0 ;
20763 char * kwnames[] = {
20764 (char *) "self",(char *) "padding", NULL
20765 };
20766
20767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20771 }
20772 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20773 {
20774 arg2 = &temp2;
20775 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20776 }
20777 {
20778 PyThreadState* __tstate = wxPyBeginAllowThreads();
20779 (arg1)->SetPadding((wxSize const &)*arg2);
20780 wxPyEndAllowThreads(__tstate);
20781 if (PyErr_Occurred()) SWIG_fail;
20782 }
20783 resultobj = SWIG_Py_Void();
20784 return resultobj;
20785 fail:
20786 return NULL;
20787 }
20788
20789
20790 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20791 PyObject *resultobj = 0;
20792 wxNotebook *arg1 = (wxNotebook *) 0 ;
20793 wxSize *arg2 = 0 ;
20794 void *argp1 = 0 ;
20795 int res1 = 0 ;
20796 wxSize temp2 ;
20797 PyObject * obj0 = 0 ;
20798 PyObject * obj1 = 0 ;
20799 char * kwnames[] = {
20800 (char *) "self",(char *) "sz", NULL
20801 };
20802
20803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20805 if (!SWIG_IsOK(res1)) {
20806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20807 }
20808 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20809 {
20810 arg2 = &temp2;
20811 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20812 }
20813 {
20814 PyThreadState* __tstate = wxPyBeginAllowThreads();
20815 (arg1)->SetTabSize((wxSize const &)*arg2);
20816 wxPyEndAllowThreads(__tstate);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 }
20819 resultobj = SWIG_Py_Void();
20820 return resultobj;
20821 fail:
20822 return NULL;
20823 }
20824
20825
20826 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20827 PyObject *resultobj = 0;
20828 wxNotebook *arg1 = (wxNotebook *) 0 ;
20829 wxColour result;
20830 void *argp1 = 0 ;
20831 int res1 = 0 ;
20832 PyObject *swig_obj[1] ;
20833
20834 if (!args) SWIG_fail;
20835 swig_obj[0] = args;
20836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20837 if (!SWIG_IsOK(res1)) {
20838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20839 }
20840 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20841 {
20842 PyThreadState* __tstate = wxPyBeginAllowThreads();
20843 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20844 wxPyEndAllowThreads(__tstate);
20845 if (PyErr_Occurred()) SWIG_fail;
20846 }
20847 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20848 return resultobj;
20849 fail:
20850 return NULL;
20851 }
20852
20853
20854 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20855 PyObject *resultobj = 0;
20856 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20857 SwigValueWrapper<wxVisualAttributes > result;
20858 int val1 ;
20859 int ecode1 = 0 ;
20860 PyObject * obj0 = 0 ;
20861 char * kwnames[] = {
20862 (char *) "variant", NULL
20863 };
20864
20865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20866 if (obj0) {
20867 ecode1 = SWIG_AsVal_int(obj0, &val1);
20868 if (!SWIG_IsOK(ecode1)) {
20869 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20870 }
20871 arg1 = static_cast< wxWindowVariant >(val1);
20872 }
20873 {
20874 if (!wxPyCheckForApp()) SWIG_fail;
20875 PyThreadState* __tstate = wxPyBeginAllowThreads();
20876 result = wxNotebook::GetClassDefaultAttributes(arg1);
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20881 return resultobj;
20882 fail:
20883 return NULL;
20884 }
20885
20886
20887 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *obj;
20889 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20890 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20891 return SWIG_Py_Void();
20892 }
20893
20894 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20895 return SWIG_Python_InitShadowInstance(args);
20896 }
20897
20898 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20899 PyObject *resultobj = 0;
20900 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20901 int arg2 = (int) 0 ;
20902 int arg3 = (int) -1 ;
20903 int arg4 = (int) -1 ;
20904 wxNotebookEvent *result = 0 ;
20905 int val1 ;
20906 int ecode1 = 0 ;
20907 int val2 ;
20908 int ecode2 = 0 ;
20909 int val3 ;
20910 int ecode3 = 0 ;
20911 int val4 ;
20912 int ecode4 = 0 ;
20913 PyObject * obj0 = 0 ;
20914 PyObject * obj1 = 0 ;
20915 PyObject * obj2 = 0 ;
20916 PyObject * obj3 = 0 ;
20917 char * kwnames[] = {
20918 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20919 };
20920
20921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20922 if (obj0) {
20923 ecode1 = SWIG_AsVal_int(obj0, &val1);
20924 if (!SWIG_IsOK(ecode1)) {
20925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20926 }
20927 arg1 = static_cast< wxEventType >(val1);
20928 }
20929 if (obj1) {
20930 ecode2 = SWIG_AsVal_int(obj1, &val2);
20931 if (!SWIG_IsOK(ecode2)) {
20932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20933 }
20934 arg2 = static_cast< int >(val2);
20935 }
20936 if (obj2) {
20937 ecode3 = SWIG_AsVal_int(obj2, &val3);
20938 if (!SWIG_IsOK(ecode3)) {
20939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20940 }
20941 arg3 = static_cast< int >(val3);
20942 }
20943 if (obj3) {
20944 ecode4 = SWIG_AsVal_int(obj3, &val4);
20945 if (!SWIG_IsOK(ecode4)) {
20946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20947 }
20948 arg4 = static_cast< int >(val4);
20949 }
20950 {
20951 PyThreadState* __tstate = wxPyBeginAllowThreads();
20952 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20953 wxPyEndAllowThreads(__tstate);
20954 if (PyErr_Occurred()) SWIG_fail;
20955 }
20956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20957 return resultobj;
20958 fail:
20959 return NULL;
20960 }
20961
20962
20963 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20964 PyObject *obj;
20965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20966 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20967 return SWIG_Py_Void();
20968 }
20969
20970 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20971 return SWIG_Python_InitShadowInstance(args);
20972 }
20973
20974 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20975 PyObject *resultobj = 0;
20976 wxWindow *arg1 = (wxWindow *) 0 ;
20977 int arg2 = (int) -1 ;
20978 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20979 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20980 wxSize const &arg4_defvalue = wxDefaultSize ;
20981 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20982 long arg5 = (long) 0 ;
20983 wxString const &arg6_defvalue = wxPyEmptyString ;
20984 wxString *arg6 = (wxString *) &arg6_defvalue ;
20985 wxListbook *result = 0 ;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 int val2 ;
20989 int ecode2 = 0 ;
20990 wxPoint temp3 ;
20991 wxSize temp4 ;
20992 long val5 ;
20993 int ecode5 = 0 ;
20994 bool temp6 = false ;
20995 PyObject * obj0 = 0 ;
20996 PyObject * obj1 = 0 ;
20997 PyObject * obj2 = 0 ;
20998 PyObject * obj3 = 0 ;
20999 PyObject * obj4 = 0 ;
21000 PyObject * obj5 = 0 ;
21001 char * kwnames[] = {
21002 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21003 };
21004
21005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21007 if (!SWIG_IsOK(res1)) {
21008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21009 }
21010 arg1 = reinterpret_cast< wxWindow * >(argp1);
21011 if (obj1) {
21012 ecode2 = SWIG_AsVal_int(obj1, &val2);
21013 if (!SWIG_IsOK(ecode2)) {
21014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21015 }
21016 arg2 = static_cast< int >(val2);
21017 }
21018 if (obj2) {
21019 {
21020 arg3 = &temp3;
21021 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21022 }
21023 }
21024 if (obj3) {
21025 {
21026 arg4 = &temp4;
21027 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21028 }
21029 }
21030 if (obj4) {
21031 ecode5 = SWIG_AsVal_long(obj4, &val5);
21032 if (!SWIG_IsOK(ecode5)) {
21033 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21034 }
21035 arg5 = static_cast< long >(val5);
21036 }
21037 if (obj5) {
21038 {
21039 arg6 = wxString_in_helper(obj5);
21040 if (arg6 == NULL) SWIG_fail;
21041 temp6 = true;
21042 }
21043 }
21044 {
21045 if (!wxPyCheckForApp()) SWIG_fail;
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21048 wxPyEndAllowThreads(__tstate);
21049 if (PyErr_Occurred()) SWIG_fail;
21050 }
21051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21052 {
21053 if (temp6)
21054 delete arg6;
21055 }
21056 return resultobj;
21057 fail:
21058 {
21059 if (temp6)
21060 delete arg6;
21061 }
21062 return NULL;
21063 }
21064
21065
21066 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21067 PyObject *resultobj = 0;
21068 wxListbook *result = 0 ;
21069
21070 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21071 {
21072 if (!wxPyCheckForApp()) SWIG_fail;
21073 PyThreadState* __tstate = wxPyBeginAllowThreads();
21074 result = (wxListbook *)new wxListbook();
21075 wxPyEndAllowThreads(__tstate);
21076 if (PyErr_Occurred()) SWIG_fail;
21077 }
21078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21079 return resultobj;
21080 fail:
21081 return NULL;
21082 }
21083
21084
21085 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21086 PyObject *resultobj = 0;
21087 wxListbook *arg1 = (wxListbook *) 0 ;
21088 wxWindow *arg2 = (wxWindow *) 0 ;
21089 int arg3 = (int) -1 ;
21090 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21091 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21092 wxSize const &arg5_defvalue = wxDefaultSize ;
21093 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21094 long arg6 = (long) 0 ;
21095 wxString const &arg7_defvalue = wxPyEmptyString ;
21096 wxString *arg7 = (wxString *) &arg7_defvalue ;
21097 bool result;
21098 void *argp1 = 0 ;
21099 int res1 = 0 ;
21100 void *argp2 = 0 ;
21101 int res2 = 0 ;
21102 int val3 ;
21103 int ecode3 = 0 ;
21104 wxPoint temp4 ;
21105 wxSize temp5 ;
21106 long val6 ;
21107 int ecode6 = 0 ;
21108 bool temp7 = false ;
21109 PyObject * obj0 = 0 ;
21110 PyObject * obj1 = 0 ;
21111 PyObject * obj2 = 0 ;
21112 PyObject * obj3 = 0 ;
21113 PyObject * obj4 = 0 ;
21114 PyObject * obj5 = 0 ;
21115 PyObject * obj6 = 0 ;
21116 char * kwnames[] = {
21117 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21118 };
21119
21120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21122 if (!SWIG_IsOK(res1)) {
21123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21124 }
21125 arg1 = reinterpret_cast< wxListbook * >(argp1);
21126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21127 if (!SWIG_IsOK(res2)) {
21128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21129 }
21130 arg2 = reinterpret_cast< wxWindow * >(argp2);
21131 if (obj2) {
21132 ecode3 = SWIG_AsVal_int(obj2, &val3);
21133 if (!SWIG_IsOK(ecode3)) {
21134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21135 }
21136 arg3 = static_cast< int >(val3);
21137 }
21138 if (obj3) {
21139 {
21140 arg4 = &temp4;
21141 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21142 }
21143 }
21144 if (obj4) {
21145 {
21146 arg5 = &temp5;
21147 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21148 }
21149 }
21150 if (obj5) {
21151 ecode6 = SWIG_AsVal_long(obj5, &val6);
21152 if (!SWIG_IsOK(ecode6)) {
21153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21154 }
21155 arg6 = static_cast< long >(val6);
21156 }
21157 if (obj6) {
21158 {
21159 arg7 = wxString_in_helper(obj6);
21160 if (arg7 == NULL) SWIG_fail;
21161 temp7 = true;
21162 }
21163 }
21164 {
21165 PyThreadState* __tstate = wxPyBeginAllowThreads();
21166 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 {
21171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21172 }
21173 {
21174 if (temp7)
21175 delete arg7;
21176 }
21177 return resultobj;
21178 fail:
21179 {
21180 if (temp7)
21181 delete arg7;
21182 }
21183 return NULL;
21184 }
21185
21186
21187 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21188 PyObject *resultobj = 0;
21189 wxListbook *arg1 = (wxListbook *) 0 ;
21190 wxListView *result = 0 ;
21191 void *argp1 = 0 ;
21192 int res1 = 0 ;
21193 PyObject *swig_obj[1] ;
21194
21195 if (!args) SWIG_fail;
21196 swig_obj[0] = args;
21197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21198 if (!SWIG_IsOK(res1)) {
21199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21200 }
21201 arg1 = reinterpret_cast< wxListbook * >(argp1);
21202 {
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 result = (wxListView *)(arg1)->GetListView();
21205 wxPyEndAllowThreads(__tstate);
21206 if (PyErr_Occurred()) SWIG_fail;
21207 }
21208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21209 return resultobj;
21210 fail:
21211 return NULL;
21212 }
21213
21214
21215 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21216 PyObject *obj;
21217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21218 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21219 return SWIG_Py_Void();
21220 }
21221
21222 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21223 return SWIG_Python_InitShadowInstance(args);
21224 }
21225
21226 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21227 PyObject *resultobj = 0;
21228 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21229 int arg2 = (int) 0 ;
21230 int arg3 = (int) -1 ;
21231 int arg4 = (int) -1 ;
21232 wxListbookEvent *result = 0 ;
21233 int val1 ;
21234 int ecode1 = 0 ;
21235 int val2 ;
21236 int ecode2 = 0 ;
21237 int val3 ;
21238 int ecode3 = 0 ;
21239 int val4 ;
21240 int ecode4 = 0 ;
21241 PyObject * obj0 = 0 ;
21242 PyObject * obj1 = 0 ;
21243 PyObject * obj2 = 0 ;
21244 PyObject * obj3 = 0 ;
21245 char * kwnames[] = {
21246 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21247 };
21248
21249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21250 if (obj0) {
21251 ecode1 = SWIG_AsVal_int(obj0, &val1);
21252 if (!SWIG_IsOK(ecode1)) {
21253 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21254 }
21255 arg1 = static_cast< wxEventType >(val1);
21256 }
21257 if (obj1) {
21258 ecode2 = SWIG_AsVal_int(obj1, &val2);
21259 if (!SWIG_IsOK(ecode2)) {
21260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21261 }
21262 arg2 = static_cast< int >(val2);
21263 }
21264 if (obj2) {
21265 ecode3 = SWIG_AsVal_int(obj2, &val3);
21266 if (!SWIG_IsOK(ecode3)) {
21267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21268 }
21269 arg3 = static_cast< int >(val3);
21270 }
21271 if (obj3) {
21272 ecode4 = SWIG_AsVal_int(obj3, &val4);
21273 if (!SWIG_IsOK(ecode4)) {
21274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21275 }
21276 arg4 = static_cast< int >(val4);
21277 }
21278 {
21279 PyThreadState* __tstate = wxPyBeginAllowThreads();
21280 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21281 wxPyEndAllowThreads(__tstate);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21285 return resultobj;
21286 fail:
21287 return NULL;
21288 }
21289
21290
21291 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21292 PyObject *obj;
21293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21294 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21295 return SWIG_Py_Void();
21296 }
21297
21298 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21299 return SWIG_Python_InitShadowInstance(args);
21300 }
21301
21302 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21303 PyObject *resultobj = 0;
21304 wxWindow *arg1 = (wxWindow *) 0 ;
21305 int arg2 ;
21306 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21307 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21308 wxSize const &arg4_defvalue = wxDefaultSize ;
21309 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21310 long arg5 = (long) 0 ;
21311 wxString const &arg6_defvalue = wxPyEmptyString ;
21312 wxString *arg6 = (wxString *) &arg6_defvalue ;
21313 wxChoicebook *result = 0 ;
21314 void *argp1 = 0 ;
21315 int res1 = 0 ;
21316 int val2 ;
21317 int ecode2 = 0 ;
21318 wxPoint temp3 ;
21319 wxSize temp4 ;
21320 long val5 ;
21321 int ecode5 = 0 ;
21322 bool temp6 = false ;
21323 PyObject * obj0 = 0 ;
21324 PyObject * obj1 = 0 ;
21325 PyObject * obj2 = 0 ;
21326 PyObject * obj3 = 0 ;
21327 PyObject * obj4 = 0 ;
21328 PyObject * obj5 = 0 ;
21329 char * kwnames[] = {
21330 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21331 };
21332
21333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21335 if (!SWIG_IsOK(res1)) {
21336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21337 }
21338 arg1 = reinterpret_cast< wxWindow * >(argp1);
21339 ecode2 = SWIG_AsVal_int(obj1, &val2);
21340 if (!SWIG_IsOK(ecode2)) {
21341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21342 }
21343 arg2 = static_cast< int >(val2);
21344 if (obj2) {
21345 {
21346 arg3 = &temp3;
21347 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21348 }
21349 }
21350 if (obj3) {
21351 {
21352 arg4 = &temp4;
21353 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21354 }
21355 }
21356 if (obj4) {
21357 ecode5 = SWIG_AsVal_long(obj4, &val5);
21358 if (!SWIG_IsOK(ecode5)) {
21359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21360 }
21361 arg5 = static_cast< long >(val5);
21362 }
21363 if (obj5) {
21364 {
21365 arg6 = wxString_in_helper(obj5);
21366 if (arg6 == NULL) SWIG_fail;
21367 temp6 = true;
21368 }
21369 }
21370 {
21371 if (!wxPyCheckForApp()) SWIG_fail;
21372 PyThreadState* __tstate = wxPyBeginAllowThreads();
21373 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21374 wxPyEndAllowThreads(__tstate);
21375 if (PyErr_Occurred()) SWIG_fail;
21376 }
21377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21378 {
21379 if (temp6)
21380 delete arg6;
21381 }
21382 return resultobj;
21383 fail:
21384 {
21385 if (temp6)
21386 delete arg6;
21387 }
21388 return NULL;
21389 }
21390
21391
21392 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21393 PyObject *resultobj = 0;
21394 wxChoicebook *result = 0 ;
21395
21396 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21397 {
21398 if (!wxPyCheckForApp()) SWIG_fail;
21399 PyThreadState* __tstate = wxPyBeginAllowThreads();
21400 result = (wxChoicebook *)new wxChoicebook();
21401 wxPyEndAllowThreads(__tstate);
21402 if (PyErr_Occurred()) SWIG_fail;
21403 }
21404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21405 return resultobj;
21406 fail:
21407 return NULL;
21408 }
21409
21410
21411 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21412 PyObject *resultobj = 0;
21413 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21414 wxWindow *arg2 = (wxWindow *) 0 ;
21415 int arg3 ;
21416 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21417 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21418 wxSize const &arg5_defvalue = wxDefaultSize ;
21419 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21420 long arg6 = (long) 0 ;
21421 wxString const &arg7_defvalue = wxPyEmptyString ;
21422 wxString *arg7 = (wxString *) &arg7_defvalue ;
21423 bool result;
21424 void *argp1 = 0 ;
21425 int res1 = 0 ;
21426 void *argp2 = 0 ;
21427 int res2 = 0 ;
21428 int val3 ;
21429 int ecode3 = 0 ;
21430 wxPoint temp4 ;
21431 wxSize temp5 ;
21432 long val6 ;
21433 int ecode6 = 0 ;
21434 bool temp7 = false ;
21435 PyObject * obj0 = 0 ;
21436 PyObject * obj1 = 0 ;
21437 PyObject * obj2 = 0 ;
21438 PyObject * obj3 = 0 ;
21439 PyObject * obj4 = 0 ;
21440 PyObject * obj5 = 0 ;
21441 PyObject * obj6 = 0 ;
21442 char * kwnames[] = {
21443 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21444 };
21445
21446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21448 if (!SWIG_IsOK(res1)) {
21449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21450 }
21451 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21452 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21453 if (!SWIG_IsOK(res2)) {
21454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21455 }
21456 arg2 = reinterpret_cast< wxWindow * >(argp2);
21457 ecode3 = SWIG_AsVal_int(obj2, &val3);
21458 if (!SWIG_IsOK(ecode3)) {
21459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21460 }
21461 arg3 = static_cast< int >(val3);
21462 if (obj3) {
21463 {
21464 arg4 = &temp4;
21465 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21466 }
21467 }
21468 if (obj4) {
21469 {
21470 arg5 = &temp5;
21471 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21472 }
21473 }
21474 if (obj5) {
21475 ecode6 = SWIG_AsVal_long(obj5, &val6);
21476 if (!SWIG_IsOK(ecode6)) {
21477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21478 }
21479 arg6 = static_cast< long >(val6);
21480 }
21481 if (obj6) {
21482 {
21483 arg7 = wxString_in_helper(obj6);
21484 if (arg7 == NULL) SWIG_fail;
21485 temp7 = true;
21486 }
21487 }
21488 {
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 {
21495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21496 }
21497 {
21498 if (temp7)
21499 delete arg7;
21500 }
21501 return resultobj;
21502 fail:
21503 {
21504 if (temp7)
21505 delete arg7;
21506 }
21507 return NULL;
21508 }
21509
21510
21511 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21512 PyObject *resultobj = 0;
21513 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21514 wxChoice *result = 0 ;
21515 void *argp1 = 0 ;
21516 int res1 = 0 ;
21517 PyObject *swig_obj[1] ;
21518
21519 if (!args) SWIG_fail;
21520 swig_obj[0] = args;
21521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21522 if (!SWIG_IsOK(res1)) {
21523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21524 }
21525 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21526 {
21527 PyThreadState* __tstate = wxPyBeginAllowThreads();
21528 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21529 wxPyEndAllowThreads(__tstate);
21530 if (PyErr_Occurred()) SWIG_fail;
21531 }
21532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21533 return resultobj;
21534 fail:
21535 return NULL;
21536 }
21537
21538
21539 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21540 PyObject *obj;
21541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21542 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21543 return SWIG_Py_Void();
21544 }
21545
21546 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21547 return SWIG_Python_InitShadowInstance(args);
21548 }
21549
21550 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21551 PyObject *resultobj = 0;
21552 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21553 int arg2 = (int) 0 ;
21554 int arg3 = (int) -1 ;
21555 int arg4 = (int) -1 ;
21556 wxChoicebookEvent *result = 0 ;
21557 int val1 ;
21558 int ecode1 = 0 ;
21559 int val2 ;
21560 int ecode2 = 0 ;
21561 int val3 ;
21562 int ecode3 = 0 ;
21563 int val4 ;
21564 int ecode4 = 0 ;
21565 PyObject * obj0 = 0 ;
21566 PyObject * obj1 = 0 ;
21567 PyObject * obj2 = 0 ;
21568 PyObject * obj3 = 0 ;
21569 char * kwnames[] = {
21570 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21571 };
21572
21573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21574 if (obj0) {
21575 ecode1 = SWIG_AsVal_int(obj0, &val1);
21576 if (!SWIG_IsOK(ecode1)) {
21577 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21578 }
21579 arg1 = static_cast< wxEventType >(val1);
21580 }
21581 if (obj1) {
21582 ecode2 = SWIG_AsVal_int(obj1, &val2);
21583 if (!SWIG_IsOK(ecode2)) {
21584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21585 }
21586 arg2 = static_cast< int >(val2);
21587 }
21588 if (obj2) {
21589 ecode3 = SWIG_AsVal_int(obj2, &val3);
21590 if (!SWIG_IsOK(ecode3)) {
21591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21592 }
21593 arg3 = static_cast< int >(val3);
21594 }
21595 if (obj3) {
21596 ecode4 = SWIG_AsVal_int(obj3, &val4);
21597 if (!SWIG_IsOK(ecode4)) {
21598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21599 }
21600 arg4 = static_cast< int >(val4);
21601 }
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21605 wxPyEndAllowThreads(__tstate);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21609 return resultobj;
21610 fail:
21611 return NULL;
21612 }
21613
21614
21615 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21616 PyObject *obj;
21617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21618 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21619 return SWIG_Py_Void();
21620 }
21621
21622 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21623 return SWIG_Python_InitShadowInstance(args);
21624 }
21625
21626 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21627 PyObject *resultobj = 0;
21628 wxWindow *arg1 = (wxWindow *) 0 ;
21629 int arg2 ;
21630 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21631 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21632 wxSize const &arg4_defvalue = wxDefaultSize ;
21633 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21634 long arg5 = (long) wxBK_DEFAULT ;
21635 wxString const &arg6_defvalue = wxPyEmptyString ;
21636 wxString *arg6 = (wxString *) &arg6_defvalue ;
21637 wxTreebook *result = 0 ;
21638 void *argp1 = 0 ;
21639 int res1 = 0 ;
21640 int val2 ;
21641 int ecode2 = 0 ;
21642 wxPoint temp3 ;
21643 wxSize temp4 ;
21644 long val5 ;
21645 int ecode5 = 0 ;
21646 bool temp6 = false ;
21647 PyObject * obj0 = 0 ;
21648 PyObject * obj1 = 0 ;
21649 PyObject * obj2 = 0 ;
21650 PyObject * obj3 = 0 ;
21651 PyObject * obj4 = 0 ;
21652 PyObject * obj5 = 0 ;
21653 char * kwnames[] = {
21654 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21655 };
21656
21657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21659 if (!SWIG_IsOK(res1)) {
21660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21661 }
21662 arg1 = reinterpret_cast< wxWindow * >(argp1);
21663 ecode2 = SWIG_AsVal_int(obj1, &val2);
21664 if (!SWIG_IsOK(ecode2)) {
21665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21666 }
21667 arg2 = static_cast< int >(val2);
21668 if (obj2) {
21669 {
21670 arg3 = &temp3;
21671 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21672 }
21673 }
21674 if (obj3) {
21675 {
21676 arg4 = &temp4;
21677 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21678 }
21679 }
21680 if (obj4) {
21681 ecode5 = SWIG_AsVal_long(obj4, &val5);
21682 if (!SWIG_IsOK(ecode5)) {
21683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21684 }
21685 arg5 = static_cast< long >(val5);
21686 }
21687 if (obj5) {
21688 {
21689 arg6 = wxString_in_helper(obj5);
21690 if (arg6 == NULL) SWIG_fail;
21691 temp6 = true;
21692 }
21693 }
21694 {
21695 if (!wxPyCheckForApp()) SWIG_fail;
21696 PyThreadState* __tstate = wxPyBeginAllowThreads();
21697 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21698 wxPyEndAllowThreads(__tstate);
21699 if (PyErr_Occurred()) SWIG_fail;
21700 }
21701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21702 {
21703 if (temp6)
21704 delete arg6;
21705 }
21706 return resultobj;
21707 fail:
21708 {
21709 if (temp6)
21710 delete arg6;
21711 }
21712 return NULL;
21713 }
21714
21715
21716 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21717 PyObject *resultobj = 0;
21718 wxTreebook *result = 0 ;
21719
21720 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21721 {
21722 if (!wxPyCheckForApp()) SWIG_fail;
21723 PyThreadState* __tstate = wxPyBeginAllowThreads();
21724 result = (wxTreebook *)new wxTreebook();
21725 wxPyEndAllowThreads(__tstate);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 }
21728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21729 return resultobj;
21730 fail:
21731 return NULL;
21732 }
21733
21734
21735 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21736 PyObject *resultobj = 0;
21737 wxTreebook *arg1 = (wxTreebook *) 0 ;
21738 wxWindow *arg2 = (wxWindow *) 0 ;
21739 int arg3 ;
21740 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21741 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21742 wxSize const &arg5_defvalue = wxDefaultSize ;
21743 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21744 long arg6 = (long) wxBK_DEFAULT ;
21745 wxString const &arg7_defvalue = wxPyEmptyString ;
21746 wxString *arg7 = (wxString *) &arg7_defvalue ;
21747 bool result;
21748 void *argp1 = 0 ;
21749 int res1 = 0 ;
21750 void *argp2 = 0 ;
21751 int res2 = 0 ;
21752 int val3 ;
21753 int ecode3 = 0 ;
21754 wxPoint temp4 ;
21755 wxSize temp5 ;
21756 long val6 ;
21757 int ecode6 = 0 ;
21758 bool temp7 = false ;
21759 PyObject * obj0 = 0 ;
21760 PyObject * obj1 = 0 ;
21761 PyObject * obj2 = 0 ;
21762 PyObject * obj3 = 0 ;
21763 PyObject * obj4 = 0 ;
21764 PyObject * obj5 = 0 ;
21765 PyObject * obj6 = 0 ;
21766 char * kwnames[] = {
21767 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21768 };
21769
21770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21772 if (!SWIG_IsOK(res1)) {
21773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21774 }
21775 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21777 if (!SWIG_IsOK(res2)) {
21778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21779 }
21780 arg2 = reinterpret_cast< wxWindow * >(argp2);
21781 ecode3 = SWIG_AsVal_int(obj2, &val3);
21782 if (!SWIG_IsOK(ecode3)) {
21783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21784 }
21785 arg3 = static_cast< int >(val3);
21786 if (obj3) {
21787 {
21788 arg4 = &temp4;
21789 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21790 }
21791 }
21792 if (obj4) {
21793 {
21794 arg5 = &temp5;
21795 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21796 }
21797 }
21798 if (obj5) {
21799 ecode6 = SWIG_AsVal_long(obj5, &val6);
21800 if (!SWIG_IsOK(ecode6)) {
21801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21802 }
21803 arg6 = static_cast< long >(val6);
21804 }
21805 if (obj6) {
21806 {
21807 arg7 = wxString_in_helper(obj6);
21808 if (arg7 == NULL) SWIG_fail;
21809 temp7 = true;
21810 }
21811 }
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21815 wxPyEndAllowThreads(__tstate);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 {
21819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21820 }
21821 {
21822 if (temp7)
21823 delete arg7;
21824 }
21825 return resultobj;
21826 fail:
21827 {
21828 if (temp7)
21829 delete arg7;
21830 }
21831 return NULL;
21832 }
21833
21834
21835 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21836 PyObject *resultobj = 0;
21837 wxTreebook *arg1 = (wxTreebook *) 0 ;
21838 size_t arg2 ;
21839 wxWindow *arg3 = (wxWindow *) 0 ;
21840 wxString *arg4 = 0 ;
21841 bool arg5 = (bool) false ;
21842 int arg6 = (int) wxNOT_FOUND ;
21843 bool result;
21844 void *argp1 = 0 ;
21845 int res1 = 0 ;
21846 size_t val2 ;
21847 int ecode2 = 0 ;
21848 void *argp3 = 0 ;
21849 int res3 = 0 ;
21850 bool temp4 = false ;
21851 bool val5 ;
21852 int ecode5 = 0 ;
21853 int val6 ;
21854 int ecode6 = 0 ;
21855 PyObject * obj0 = 0 ;
21856 PyObject * obj1 = 0 ;
21857 PyObject * obj2 = 0 ;
21858 PyObject * obj3 = 0 ;
21859 PyObject * obj4 = 0 ;
21860 PyObject * obj5 = 0 ;
21861 char * kwnames[] = {
21862 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21863 };
21864
21865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21867 if (!SWIG_IsOK(res1)) {
21868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21869 }
21870 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21871 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21872 if (!SWIG_IsOK(ecode2)) {
21873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21874 }
21875 arg2 = static_cast< size_t >(val2);
21876 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21877 if (!SWIG_IsOK(res3)) {
21878 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21879 }
21880 arg3 = reinterpret_cast< wxWindow * >(argp3);
21881 {
21882 arg4 = wxString_in_helper(obj3);
21883 if (arg4 == NULL) SWIG_fail;
21884 temp4 = true;
21885 }
21886 if (obj4) {
21887 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21888 if (!SWIG_IsOK(ecode5)) {
21889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21890 }
21891 arg5 = static_cast< bool >(val5);
21892 }
21893 if (obj5) {
21894 ecode6 = SWIG_AsVal_int(obj5, &val6);
21895 if (!SWIG_IsOK(ecode6)) {
21896 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21897 }
21898 arg6 = static_cast< int >(val6);
21899 }
21900 {
21901 PyThreadState* __tstate = wxPyBeginAllowThreads();
21902 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21903 wxPyEndAllowThreads(__tstate);
21904 if (PyErr_Occurred()) SWIG_fail;
21905 }
21906 {
21907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21908 }
21909 {
21910 if (temp4)
21911 delete arg4;
21912 }
21913 return resultobj;
21914 fail:
21915 {
21916 if (temp4)
21917 delete arg4;
21918 }
21919 return NULL;
21920 }
21921
21922
21923 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21924 PyObject *resultobj = 0;
21925 wxTreebook *arg1 = (wxTreebook *) 0 ;
21926 wxWindow *arg2 = (wxWindow *) 0 ;
21927 wxString *arg3 = 0 ;
21928 bool arg4 = (bool) false ;
21929 int arg5 = (int) wxNOT_FOUND ;
21930 bool result;
21931 void *argp1 = 0 ;
21932 int res1 = 0 ;
21933 void *argp2 = 0 ;
21934 int res2 = 0 ;
21935 bool temp3 = false ;
21936 bool val4 ;
21937 int ecode4 = 0 ;
21938 int val5 ;
21939 int ecode5 = 0 ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 PyObject * obj2 = 0 ;
21943 PyObject * obj3 = 0 ;
21944 PyObject * obj4 = 0 ;
21945 char * kwnames[] = {
21946 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21947 };
21948
21949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21951 if (!SWIG_IsOK(res1)) {
21952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21953 }
21954 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21956 if (!SWIG_IsOK(res2)) {
21957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21958 }
21959 arg2 = reinterpret_cast< wxWindow * >(argp2);
21960 {
21961 arg3 = wxString_in_helper(obj2);
21962 if (arg3 == NULL) SWIG_fail;
21963 temp3 = true;
21964 }
21965 if (obj3) {
21966 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21967 if (!SWIG_IsOK(ecode4)) {
21968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21969 }
21970 arg4 = static_cast< bool >(val4);
21971 }
21972 if (obj4) {
21973 ecode5 = SWIG_AsVal_int(obj4, &val5);
21974 if (!SWIG_IsOK(ecode5)) {
21975 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21976 }
21977 arg5 = static_cast< int >(val5);
21978 }
21979 {
21980 PyThreadState* __tstate = wxPyBeginAllowThreads();
21981 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21982 wxPyEndAllowThreads(__tstate);
21983 if (PyErr_Occurred()) SWIG_fail;
21984 }
21985 {
21986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21987 }
21988 {
21989 if (temp3)
21990 delete arg3;
21991 }
21992 return resultobj;
21993 fail:
21994 {
21995 if (temp3)
21996 delete arg3;
21997 }
21998 return NULL;
21999 }
22000
22001
22002 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22003 PyObject *resultobj = 0;
22004 wxTreebook *arg1 = (wxTreebook *) 0 ;
22005 size_t arg2 ;
22006 bool result;
22007 void *argp1 = 0 ;
22008 int res1 = 0 ;
22009 size_t val2 ;
22010 int ecode2 = 0 ;
22011 PyObject * obj0 = 0 ;
22012 PyObject * obj1 = 0 ;
22013 char * kwnames[] = {
22014 (char *) "self",(char *) "pos", NULL
22015 };
22016
22017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22019 if (!SWIG_IsOK(res1)) {
22020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22021 }
22022 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22023 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22024 if (!SWIG_IsOK(ecode2)) {
22025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22026 }
22027 arg2 = static_cast< size_t >(val2);
22028 {
22029 PyThreadState* __tstate = wxPyBeginAllowThreads();
22030 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22031 wxPyEndAllowThreads(__tstate);
22032 if (PyErr_Occurred()) SWIG_fail;
22033 }
22034 {
22035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22036 }
22037 return resultobj;
22038 fail:
22039 return NULL;
22040 }
22041
22042
22043 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22044 PyObject *resultobj = 0;
22045 wxTreebook *arg1 = (wxTreebook *) 0 ;
22046 size_t arg2 ;
22047 bool arg3 = (bool) true ;
22048 bool result;
22049 void *argp1 = 0 ;
22050 int res1 = 0 ;
22051 size_t val2 ;
22052 int ecode2 = 0 ;
22053 bool val3 ;
22054 int ecode3 = 0 ;
22055 PyObject * obj0 = 0 ;
22056 PyObject * obj1 = 0 ;
22057 PyObject * obj2 = 0 ;
22058 char * kwnames[] = {
22059 (char *) "self",(char *) "pos",(char *) "expand", NULL
22060 };
22061
22062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22064 if (!SWIG_IsOK(res1)) {
22065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22066 }
22067 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22068 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22069 if (!SWIG_IsOK(ecode2)) {
22070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22071 }
22072 arg2 = static_cast< size_t >(val2);
22073 if (obj2) {
22074 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22075 if (!SWIG_IsOK(ecode3)) {
22076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22077 }
22078 arg3 = static_cast< bool >(val3);
22079 }
22080 {
22081 PyThreadState* __tstate = wxPyBeginAllowThreads();
22082 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 {
22087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22088 }
22089 return resultobj;
22090 fail:
22091 return NULL;
22092 }
22093
22094
22095 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22096 PyObject *resultobj = 0;
22097 wxTreebook *arg1 = (wxTreebook *) 0 ;
22098 size_t arg2 ;
22099 bool result;
22100 void *argp1 = 0 ;
22101 int res1 = 0 ;
22102 size_t val2 ;
22103 int ecode2 = 0 ;
22104 PyObject * obj0 = 0 ;
22105 PyObject * obj1 = 0 ;
22106 char * kwnames[] = {
22107 (char *) "self",(char *) "pos", NULL
22108 };
22109
22110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22112 if (!SWIG_IsOK(res1)) {
22113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22114 }
22115 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22116 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22117 if (!SWIG_IsOK(ecode2)) {
22118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22119 }
22120 arg2 = static_cast< size_t >(val2);
22121 {
22122 PyThreadState* __tstate = wxPyBeginAllowThreads();
22123 result = (bool)(arg1)->CollapseNode(arg2);
22124 wxPyEndAllowThreads(__tstate);
22125 if (PyErr_Occurred()) SWIG_fail;
22126 }
22127 {
22128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22129 }
22130 return resultobj;
22131 fail:
22132 return NULL;
22133 }
22134
22135
22136 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22137 PyObject *resultobj = 0;
22138 wxTreebook *arg1 = (wxTreebook *) 0 ;
22139 size_t arg2 ;
22140 int result;
22141 void *argp1 = 0 ;
22142 int res1 = 0 ;
22143 size_t val2 ;
22144 int ecode2 = 0 ;
22145 PyObject * obj0 = 0 ;
22146 PyObject * obj1 = 0 ;
22147 char * kwnames[] = {
22148 (char *) "self",(char *) "pos", NULL
22149 };
22150
22151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22153 if (!SWIG_IsOK(res1)) {
22154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22155 }
22156 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22157 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22158 if (!SWIG_IsOK(ecode2)) {
22159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22160 }
22161 arg2 = static_cast< size_t >(val2);
22162 {
22163 PyThreadState* __tstate = wxPyBeginAllowThreads();
22164 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 resultobj = SWIG_From_int(static_cast< int >(result));
22169 return resultobj;
22170 fail:
22171 return NULL;
22172 }
22173
22174
22175 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22176 PyObject *resultobj = 0;
22177 wxTreebook *arg1 = (wxTreebook *) 0 ;
22178 wxPyTreeCtrl *result = 0 ;
22179 void *argp1 = 0 ;
22180 int res1 = 0 ;
22181 PyObject *swig_obj[1] ;
22182
22183 if (!args) SWIG_fail;
22184 swig_obj[0] = args;
22185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22186 if (!SWIG_IsOK(res1)) {
22187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22188 }
22189 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22193 wxPyEndAllowThreads(__tstate);
22194 if (PyErr_Occurred()) SWIG_fail;
22195 }
22196 {
22197 resultobj = wxPyMake_wxObject(result, (bool)0);
22198 }
22199 return resultobj;
22200 fail:
22201 return NULL;
22202 }
22203
22204
22205 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22206 PyObject *obj;
22207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22208 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22209 return SWIG_Py_Void();
22210 }
22211
22212 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22213 return SWIG_Python_InitShadowInstance(args);
22214 }
22215
22216 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22217 PyObject *resultobj = 0;
22218 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22219 int arg2 = (int) 0 ;
22220 int arg3 = (int) wxNOT_FOUND ;
22221 int arg4 = (int) wxNOT_FOUND ;
22222 wxTreebookEvent *result = 0 ;
22223 int val1 ;
22224 int ecode1 = 0 ;
22225 int val2 ;
22226 int ecode2 = 0 ;
22227 int val3 ;
22228 int ecode3 = 0 ;
22229 int val4 ;
22230 int ecode4 = 0 ;
22231 PyObject * obj0 = 0 ;
22232 PyObject * obj1 = 0 ;
22233 PyObject * obj2 = 0 ;
22234 PyObject * obj3 = 0 ;
22235 char * kwnames[] = {
22236 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22237 };
22238
22239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22240 if (obj0) {
22241 ecode1 = SWIG_AsVal_int(obj0, &val1);
22242 if (!SWIG_IsOK(ecode1)) {
22243 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22244 }
22245 arg1 = static_cast< wxEventType >(val1);
22246 }
22247 if (obj1) {
22248 ecode2 = SWIG_AsVal_int(obj1, &val2);
22249 if (!SWIG_IsOK(ecode2)) {
22250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22251 }
22252 arg2 = static_cast< int >(val2);
22253 }
22254 if (obj2) {
22255 ecode3 = SWIG_AsVal_int(obj2, &val3);
22256 if (!SWIG_IsOK(ecode3)) {
22257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22258 }
22259 arg3 = static_cast< int >(val3);
22260 }
22261 if (obj3) {
22262 ecode4 = SWIG_AsVal_int(obj3, &val4);
22263 if (!SWIG_IsOK(ecode4)) {
22264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22265 }
22266 arg4 = static_cast< int >(val4);
22267 }
22268 {
22269 PyThreadState* __tstate = wxPyBeginAllowThreads();
22270 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22271 wxPyEndAllowThreads(__tstate);
22272 if (PyErr_Occurred()) SWIG_fail;
22273 }
22274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22275 return resultobj;
22276 fail:
22277 return NULL;
22278 }
22279
22280
22281 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22282 PyObject *obj;
22283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22284 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22285 return SWIG_Py_Void();
22286 }
22287
22288 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22289 return SWIG_Python_InitShadowInstance(args);
22290 }
22291
22292 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22293 PyObject *resultobj = 0;
22294 wxWindow *arg1 = (wxWindow *) 0 ;
22295 int arg2 ;
22296 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22297 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22298 wxSize const &arg4_defvalue = wxDefaultSize ;
22299 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22300 long arg5 = (long) wxBK_DEFAULT ;
22301 wxString const &arg6_defvalue = wxPyEmptyString ;
22302 wxString *arg6 = (wxString *) &arg6_defvalue ;
22303 wxToolbook *result = 0 ;
22304 void *argp1 = 0 ;
22305 int res1 = 0 ;
22306 int val2 ;
22307 int ecode2 = 0 ;
22308 wxPoint temp3 ;
22309 wxSize temp4 ;
22310 long val5 ;
22311 int ecode5 = 0 ;
22312 bool temp6 = false ;
22313 PyObject * obj0 = 0 ;
22314 PyObject * obj1 = 0 ;
22315 PyObject * obj2 = 0 ;
22316 PyObject * obj3 = 0 ;
22317 PyObject * obj4 = 0 ;
22318 PyObject * obj5 = 0 ;
22319 char * kwnames[] = {
22320 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22321 };
22322
22323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22325 if (!SWIG_IsOK(res1)) {
22326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22327 }
22328 arg1 = reinterpret_cast< wxWindow * >(argp1);
22329 ecode2 = SWIG_AsVal_int(obj1, &val2);
22330 if (!SWIG_IsOK(ecode2)) {
22331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22332 }
22333 arg2 = static_cast< int >(val2);
22334 if (obj2) {
22335 {
22336 arg3 = &temp3;
22337 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22338 }
22339 }
22340 if (obj3) {
22341 {
22342 arg4 = &temp4;
22343 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22344 }
22345 }
22346 if (obj4) {
22347 ecode5 = SWIG_AsVal_long(obj4, &val5);
22348 if (!SWIG_IsOK(ecode5)) {
22349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22350 }
22351 arg5 = static_cast< long >(val5);
22352 }
22353 if (obj5) {
22354 {
22355 arg6 = wxString_in_helper(obj5);
22356 if (arg6 == NULL) SWIG_fail;
22357 temp6 = true;
22358 }
22359 }
22360 {
22361 PyThreadState* __tstate = wxPyBeginAllowThreads();
22362 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22363 wxPyEndAllowThreads(__tstate);
22364 if (PyErr_Occurred()) SWIG_fail;
22365 }
22366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22367 {
22368 if (temp6)
22369 delete arg6;
22370 }
22371 return resultobj;
22372 fail:
22373 {
22374 if (temp6)
22375 delete arg6;
22376 }
22377 return NULL;
22378 }
22379
22380
22381 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22382 PyObject *resultobj = 0;
22383 wxToolbook *result = 0 ;
22384
22385 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22386 {
22387 PyThreadState* __tstate = wxPyBeginAllowThreads();
22388 result = (wxToolbook *)new wxToolbook();
22389 wxPyEndAllowThreads(__tstate);
22390 if (PyErr_Occurred()) SWIG_fail;
22391 }
22392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22393 return resultobj;
22394 fail:
22395 return NULL;
22396 }
22397
22398
22399 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22400 PyObject *resultobj = 0;
22401 wxToolbook *arg1 = (wxToolbook *) 0 ;
22402 wxWindow *arg2 = (wxWindow *) 0 ;
22403 int arg3 ;
22404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22406 wxSize const &arg5_defvalue = wxDefaultSize ;
22407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22408 long arg6 = (long) 0 ;
22409 wxString const &arg7_defvalue = wxEmptyString ;
22410 wxString *arg7 = (wxString *) &arg7_defvalue ;
22411 bool result;
22412 void *argp1 = 0 ;
22413 int res1 = 0 ;
22414 void *argp2 = 0 ;
22415 int res2 = 0 ;
22416 int val3 ;
22417 int ecode3 = 0 ;
22418 wxPoint temp4 ;
22419 wxSize temp5 ;
22420 long val6 ;
22421 int ecode6 = 0 ;
22422 bool temp7 = false ;
22423 PyObject * obj0 = 0 ;
22424 PyObject * obj1 = 0 ;
22425 PyObject * obj2 = 0 ;
22426 PyObject * obj3 = 0 ;
22427 PyObject * obj4 = 0 ;
22428 PyObject * obj5 = 0 ;
22429 PyObject * obj6 = 0 ;
22430 char * kwnames[] = {
22431 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22432 };
22433
22434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22436 if (!SWIG_IsOK(res1)) {
22437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22438 }
22439 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22441 if (!SWIG_IsOK(res2)) {
22442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22443 }
22444 arg2 = reinterpret_cast< wxWindow * >(argp2);
22445 ecode3 = SWIG_AsVal_int(obj2, &val3);
22446 if (!SWIG_IsOK(ecode3)) {
22447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22448 }
22449 arg3 = static_cast< int >(val3);
22450 if (obj3) {
22451 {
22452 arg4 = &temp4;
22453 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22454 }
22455 }
22456 if (obj4) {
22457 {
22458 arg5 = &temp5;
22459 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22460 }
22461 }
22462 if (obj5) {
22463 ecode6 = SWIG_AsVal_long(obj5, &val6);
22464 if (!SWIG_IsOK(ecode6)) {
22465 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22466 }
22467 arg6 = static_cast< long >(val6);
22468 }
22469 if (obj6) {
22470 {
22471 arg7 = wxString_in_helper(obj6);
22472 if (arg7 == NULL) SWIG_fail;
22473 temp7 = true;
22474 }
22475 }
22476 {
22477 PyThreadState* __tstate = wxPyBeginAllowThreads();
22478 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
22482 {
22483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22484 }
22485 {
22486 if (temp7)
22487 delete arg7;
22488 }
22489 return resultobj;
22490 fail:
22491 {
22492 if (temp7)
22493 delete arg7;
22494 }
22495 return NULL;
22496 }
22497
22498
22499 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22500 PyObject *resultobj = 0;
22501 wxToolbook *arg1 = (wxToolbook *) 0 ;
22502 wxToolBarBase *result = 0 ;
22503 void *argp1 = 0 ;
22504 int res1 = 0 ;
22505 PyObject *swig_obj[1] ;
22506
22507 if (!args) SWIG_fail;
22508 swig_obj[0] = args;
22509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22510 if (!SWIG_IsOK(res1)) {
22511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22512 }
22513 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22514 {
22515 PyThreadState* __tstate = wxPyBeginAllowThreads();
22516 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22517 wxPyEndAllowThreads(__tstate);
22518 if (PyErr_Occurred()) SWIG_fail;
22519 }
22520 {
22521 resultobj = wxPyMake_wxObject(result, (bool)0);
22522 }
22523 return resultobj;
22524 fail:
22525 return NULL;
22526 }
22527
22528
22529 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22530 PyObject *resultobj = 0;
22531 wxToolbook *arg1 = (wxToolbook *) 0 ;
22532 void *argp1 = 0 ;
22533 int res1 = 0 ;
22534 PyObject *swig_obj[1] ;
22535
22536 if (!args) SWIG_fail;
22537 swig_obj[0] = args;
22538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22539 if (!SWIG_IsOK(res1)) {
22540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22541 }
22542 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22543 {
22544 PyThreadState* __tstate = wxPyBeginAllowThreads();
22545 (arg1)->Realize();
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 resultobj = SWIG_Py_Void();
22550 return resultobj;
22551 fail:
22552 return NULL;
22553 }
22554
22555
22556 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22557 PyObject *obj;
22558 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22559 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22560 return SWIG_Py_Void();
22561 }
22562
22563 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22564 return SWIG_Python_InitShadowInstance(args);
22565 }
22566
22567 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22568 PyObject *resultobj = 0;
22569 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22570 int arg2 = (int) 0 ;
22571 int arg3 = (int) wxNOT_FOUND ;
22572 int arg4 = (int) wxNOT_FOUND ;
22573 wxToolbookEvent *result = 0 ;
22574 int val1 ;
22575 int ecode1 = 0 ;
22576 int val2 ;
22577 int ecode2 = 0 ;
22578 int val3 ;
22579 int ecode3 = 0 ;
22580 int val4 ;
22581 int ecode4 = 0 ;
22582 PyObject * obj0 = 0 ;
22583 PyObject * obj1 = 0 ;
22584 PyObject * obj2 = 0 ;
22585 PyObject * obj3 = 0 ;
22586 char * kwnames[] = {
22587 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22588 };
22589
22590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22591 if (obj0) {
22592 ecode1 = SWIG_AsVal_int(obj0, &val1);
22593 if (!SWIG_IsOK(ecode1)) {
22594 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22595 }
22596 arg1 = static_cast< wxEventType >(val1);
22597 }
22598 if (obj1) {
22599 ecode2 = SWIG_AsVal_int(obj1, &val2);
22600 if (!SWIG_IsOK(ecode2)) {
22601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22602 }
22603 arg2 = static_cast< int >(val2);
22604 }
22605 if (obj2) {
22606 ecode3 = SWIG_AsVal_int(obj2, &val3);
22607 if (!SWIG_IsOK(ecode3)) {
22608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22609 }
22610 arg3 = static_cast< int >(val3);
22611 }
22612 if (obj3) {
22613 ecode4 = SWIG_AsVal_int(obj3, &val4);
22614 if (!SWIG_IsOK(ecode4)) {
22615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22616 }
22617 arg4 = static_cast< int >(val4);
22618 }
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22626 return resultobj;
22627 fail:
22628 return NULL;
22629 }
22630
22631
22632 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22633 PyObject *obj;
22634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22635 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22636 return SWIG_Py_Void();
22637 }
22638
22639 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22640 return SWIG_Python_InitShadowInstance(args);
22641 }
22642
22643 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22644 PyObject *resultobj = 0;
22645 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22646 int result;
22647 void *argp1 = 0 ;
22648 int res1 = 0 ;
22649 PyObject *swig_obj[1] ;
22650
22651 if (!args) SWIG_fail;
22652 swig_obj[0] = args;
22653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22654 if (!SWIG_IsOK(res1)) {
22655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22656 }
22657 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22658 {
22659 PyThreadState* __tstate = wxPyBeginAllowThreads();
22660 result = (int)(arg1)->GetId();
22661 wxPyEndAllowThreads(__tstate);
22662 if (PyErr_Occurred()) SWIG_fail;
22663 }
22664 resultobj = SWIG_From_int(static_cast< int >(result));
22665 return resultobj;
22666 fail:
22667 return NULL;
22668 }
22669
22670
22671 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22672 PyObject *resultobj = 0;
22673 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22674 wxControl *result = 0 ;
22675 void *argp1 = 0 ;
22676 int res1 = 0 ;
22677 PyObject *swig_obj[1] ;
22678
22679 if (!args) SWIG_fail;
22680 swig_obj[0] = args;
22681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22682 if (!SWIG_IsOK(res1)) {
22683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22684 }
22685 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22686 {
22687 PyThreadState* __tstate = wxPyBeginAllowThreads();
22688 result = (wxControl *)(arg1)->GetControl();
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 {
22693 resultobj = wxPyMake_wxObject(result, 0);
22694 }
22695 return resultobj;
22696 fail:
22697 return NULL;
22698 }
22699
22700
22701 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22702 PyObject *resultobj = 0;
22703 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22704 wxToolBarBase *result = 0 ;
22705 void *argp1 = 0 ;
22706 int res1 = 0 ;
22707 PyObject *swig_obj[1] ;
22708
22709 if (!args) SWIG_fail;
22710 swig_obj[0] = args;
22711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22712 if (!SWIG_IsOK(res1)) {
22713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22714 }
22715 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22716 {
22717 PyThreadState* __tstate = wxPyBeginAllowThreads();
22718 result = (wxToolBarBase *)(arg1)->GetToolBar();
22719 wxPyEndAllowThreads(__tstate);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 }
22722 {
22723 resultobj = wxPyMake_wxObject(result, (bool)0);
22724 }
22725 return resultobj;
22726 fail:
22727 return NULL;
22728 }
22729
22730
22731 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22732 PyObject *resultobj = 0;
22733 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22734 int result;
22735 void *argp1 = 0 ;
22736 int res1 = 0 ;
22737 PyObject *swig_obj[1] ;
22738
22739 if (!args) SWIG_fail;
22740 swig_obj[0] = args;
22741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22742 if (!SWIG_IsOK(res1)) {
22743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22744 }
22745 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22746 {
22747 PyThreadState* __tstate = wxPyBeginAllowThreads();
22748 result = (int)(arg1)->IsButton();
22749 wxPyEndAllowThreads(__tstate);
22750 if (PyErr_Occurred()) SWIG_fail;
22751 }
22752 resultobj = SWIG_From_int(static_cast< int >(result));
22753 return resultobj;
22754 fail:
22755 return NULL;
22756 }
22757
22758
22759 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22760 PyObject *resultobj = 0;
22761 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22762 int result;
22763 void *argp1 = 0 ;
22764 int res1 = 0 ;
22765 PyObject *swig_obj[1] ;
22766
22767 if (!args) SWIG_fail;
22768 swig_obj[0] = args;
22769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22770 if (!SWIG_IsOK(res1)) {
22771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22772 }
22773 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22774 {
22775 PyThreadState* __tstate = wxPyBeginAllowThreads();
22776 result = (int)(arg1)->IsControl();
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
22780 resultobj = SWIG_From_int(static_cast< int >(result));
22781 return resultobj;
22782 fail:
22783 return NULL;
22784 }
22785
22786
22787 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22788 PyObject *resultobj = 0;
22789 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22790 int result;
22791 void *argp1 = 0 ;
22792 int res1 = 0 ;
22793 PyObject *swig_obj[1] ;
22794
22795 if (!args) SWIG_fail;
22796 swig_obj[0] = args;
22797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22798 if (!SWIG_IsOK(res1)) {
22799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22800 }
22801 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22802 {
22803 PyThreadState* __tstate = wxPyBeginAllowThreads();
22804 result = (int)(arg1)->IsSeparator();
22805 wxPyEndAllowThreads(__tstate);
22806 if (PyErr_Occurred()) SWIG_fail;
22807 }
22808 resultobj = SWIG_From_int(static_cast< int >(result));
22809 return resultobj;
22810 fail:
22811 return NULL;
22812 }
22813
22814
22815 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22816 PyObject *resultobj = 0;
22817 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22818 int result;
22819 void *argp1 = 0 ;
22820 int res1 = 0 ;
22821 PyObject *swig_obj[1] ;
22822
22823 if (!args) SWIG_fail;
22824 swig_obj[0] = args;
22825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22826 if (!SWIG_IsOK(res1)) {
22827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22828 }
22829 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 result = (int)(arg1)->GetStyle();
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 resultobj = SWIG_From_int(static_cast< int >(result));
22837 return resultobj;
22838 fail:
22839 return NULL;
22840 }
22841
22842
22843 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22844 PyObject *resultobj = 0;
22845 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22846 wxItemKind result;
22847 void *argp1 = 0 ;
22848 int res1 = 0 ;
22849 PyObject *swig_obj[1] ;
22850
22851 if (!args) SWIG_fail;
22852 swig_obj[0] = args;
22853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22854 if (!SWIG_IsOK(res1)) {
22855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22856 }
22857 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22858 {
22859 PyThreadState* __tstate = wxPyBeginAllowThreads();
22860 result = (wxItemKind)(arg1)->GetKind();
22861 wxPyEndAllowThreads(__tstate);
22862 if (PyErr_Occurred()) SWIG_fail;
22863 }
22864 resultobj = SWIG_From_int(static_cast< int >(result));
22865 return resultobj;
22866 fail:
22867 return NULL;
22868 }
22869
22870
22871 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22872 PyObject *resultobj = 0;
22873 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22874 bool result;
22875 void *argp1 = 0 ;
22876 int res1 = 0 ;
22877 PyObject *swig_obj[1] ;
22878
22879 if (!args) SWIG_fail;
22880 swig_obj[0] = args;
22881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22882 if (!SWIG_IsOK(res1)) {
22883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22884 }
22885 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22886 {
22887 PyThreadState* __tstate = wxPyBeginAllowThreads();
22888 result = (bool)(arg1)->IsEnabled();
22889 wxPyEndAllowThreads(__tstate);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 {
22893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22894 }
22895 return resultobj;
22896 fail:
22897 return NULL;
22898 }
22899
22900
22901 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22902 PyObject *resultobj = 0;
22903 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22904 bool result;
22905 void *argp1 = 0 ;
22906 int res1 = 0 ;
22907 PyObject *swig_obj[1] ;
22908
22909 if (!args) SWIG_fail;
22910 swig_obj[0] = args;
22911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22912 if (!SWIG_IsOK(res1)) {
22913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22914 }
22915 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22916 {
22917 PyThreadState* __tstate = wxPyBeginAllowThreads();
22918 result = (bool)(arg1)->IsToggled();
22919 wxPyEndAllowThreads(__tstate);
22920 if (PyErr_Occurred()) SWIG_fail;
22921 }
22922 {
22923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22924 }
22925 return resultobj;
22926 fail:
22927 return NULL;
22928 }
22929
22930
22931 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22932 PyObject *resultobj = 0;
22933 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22934 bool result;
22935 void *argp1 = 0 ;
22936 int res1 = 0 ;
22937 PyObject *swig_obj[1] ;
22938
22939 if (!args) SWIG_fail;
22940 swig_obj[0] = args;
22941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22942 if (!SWIG_IsOK(res1)) {
22943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22944 }
22945 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22946 {
22947 PyThreadState* __tstate = wxPyBeginAllowThreads();
22948 result = (bool)(arg1)->CanBeToggled();
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 {
22953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22954 }
22955 return resultobj;
22956 fail:
22957 return NULL;
22958 }
22959
22960
22961 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22962 PyObject *resultobj = 0;
22963 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22964 wxBitmap *result = 0 ;
22965 void *argp1 = 0 ;
22966 int res1 = 0 ;
22967 PyObject *swig_obj[1] ;
22968
22969 if (!args) SWIG_fail;
22970 swig_obj[0] = args;
22971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22972 if (!SWIG_IsOK(res1)) {
22973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22974 }
22975 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22976 {
22977 PyThreadState* __tstate = wxPyBeginAllowThreads();
22978 {
22979 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22980 result = (wxBitmap *) &_result_ref;
22981 }
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 {
22986 wxBitmap* resultptr = new wxBitmap(*result);
22987 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22988 }
22989 return resultobj;
22990 fail:
22991 return NULL;
22992 }
22993
22994
22995 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22996 PyObject *resultobj = 0;
22997 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22998 wxBitmap *result = 0 ;
22999 void *argp1 = 0 ;
23000 int res1 = 0 ;
23001 PyObject *swig_obj[1] ;
23002
23003 if (!args) SWIG_fail;
23004 swig_obj[0] = args;
23005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23006 if (!SWIG_IsOK(res1)) {
23007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23008 }
23009 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23010 {
23011 PyThreadState* __tstate = wxPyBeginAllowThreads();
23012 {
23013 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23014 result = (wxBitmap *) &_result_ref;
23015 }
23016 wxPyEndAllowThreads(__tstate);
23017 if (PyErr_Occurred()) SWIG_fail;
23018 }
23019 {
23020 wxBitmap* resultptr = new wxBitmap(*result);
23021 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23022 }
23023 return resultobj;
23024 fail:
23025 return NULL;
23026 }
23027
23028
23029 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23030 PyObject *resultobj = 0;
23031 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23032 wxBitmap result;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 PyObject *swig_obj[1] ;
23036
23037 if (!args) SWIG_fail;
23038 swig_obj[0] = args;
23039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23040 if (!SWIG_IsOK(res1)) {
23041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23042 }
23043 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 result = (arg1)->GetBitmap();
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23051 return resultobj;
23052 fail:
23053 return NULL;
23054 }
23055
23056
23057 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23060 wxString result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23070 }
23071 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (arg1)->GetLabel();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 {
23079 #if wxUSE_UNICODE
23080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23081 #else
23082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23083 #endif
23084 }
23085 return resultobj;
23086 fail:
23087 return NULL;
23088 }
23089
23090
23091 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23092 PyObject *resultobj = 0;
23093 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23094 wxString result;
23095 void *argp1 = 0 ;
23096 int res1 = 0 ;
23097 PyObject *swig_obj[1] ;
23098
23099 if (!args) SWIG_fail;
23100 swig_obj[0] = args;
23101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23102 if (!SWIG_IsOK(res1)) {
23103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23104 }
23105 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
23108 result = (arg1)->GetShortHelp();
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 {
23113 #if wxUSE_UNICODE
23114 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23115 #else
23116 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23117 #endif
23118 }
23119 return resultobj;
23120 fail:
23121 return NULL;
23122 }
23123
23124
23125 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23126 PyObject *resultobj = 0;
23127 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23128 wxString result;
23129 void *argp1 = 0 ;
23130 int res1 = 0 ;
23131 PyObject *swig_obj[1] ;
23132
23133 if (!args) SWIG_fail;
23134 swig_obj[0] = args;
23135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23136 if (!SWIG_IsOK(res1)) {
23137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23138 }
23139 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23140 {
23141 PyThreadState* __tstate = wxPyBeginAllowThreads();
23142 result = (arg1)->GetLongHelp();
23143 wxPyEndAllowThreads(__tstate);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 }
23146 {
23147 #if wxUSE_UNICODE
23148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23149 #else
23150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23151 #endif
23152 }
23153 return resultobj;
23154 fail:
23155 return NULL;
23156 }
23157
23158
23159 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23160 PyObject *resultobj = 0;
23161 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23162 bool arg2 ;
23163 bool result;
23164 void *argp1 = 0 ;
23165 int res1 = 0 ;
23166 bool val2 ;
23167 int ecode2 = 0 ;
23168 PyObject * obj0 = 0 ;
23169 PyObject * obj1 = 0 ;
23170 char * kwnames[] = {
23171 (char *) "self",(char *) "enable", NULL
23172 };
23173
23174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23176 if (!SWIG_IsOK(res1)) {
23177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23178 }
23179 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23180 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23181 if (!SWIG_IsOK(ecode2)) {
23182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23183 }
23184 arg2 = static_cast< bool >(val2);
23185 {
23186 PyThreadState* __tstate = wxPyBeginAllowThreads();
23187 result = (bool)(arg1)->Enable(arg2);
23188 wxPyEndAllowThreads(__tstate);
23189 if (PyErr_Occurred()) SWIG_fail;
23190 }
23191 {
23192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23193 }
23194 return resultobj;
23195 fail:
23196 return NULL;
23197 }
23198
23199
23200 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23201 PyObject *resultobj = 0;
23202 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23203 void *argp1 = 0 ;
23204 int res1 = 0 ;
23205 PyObject *swig_obj[1] ;
23206
23207 if (!args) SWIG_fail;
23208 swig_obj[0] = args;
23209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23210 if (!SWIG_IsOK(res1)) {
23211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23212 }
23213 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23214 {
23215 PyThreadState* __tstate = wxPyBeginAllowThreads();
23216 (arg1)->Toggle();
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 resultobj = SWIG_Py_Void();
23221 return resultobj;
23222 fail:
23223 return NULL;
23224 }
23225
23226
23227 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23228 PyObject *resultobj = 0;
23229 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23230 bool arg2 ;
23231 bool result;
23232 void *argp1 = 0 ;
23233 int res1 = 0 ;
23234 bool val2 ;
23235 int ecode2 = 0 ;
23236 PyObject * obj0 = 0 ;
23237 PyObject * obj1 = 0 ;
23238 char * kwnames[] = {
23239 (char *) "self",(char *) "toggle", NULL
23240 };
23241
23242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23244 if (!SWIG_IsOK(res1)) {
23245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23246 }
23247 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23248 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23249 if (!SWIG_IsOK(ecode2)) {
23250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23251 }
23252 arg2 = static_cast< bool >(val2);
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 result = (bool)(arg1)->SetToggle(arg2);
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 {
23260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23261 }
23262 return resultobj;
23263 fail:
23264 return NULL;
23265 }
23266
23267
23268 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23269 PyObject *resultobj = 0;
23270 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23271 wxString *arg2 = 0 ;
23272 bool result;
23273 void *argp1 = 0 ;
23274 int res1 = 0 ;
23275 bool temp2 = false ;
23276 PyObject * obj0 = 0 ;
23277 PyObject * obj1 = 0 ;
23278 char * kwnames[] = {
23279 (char *) "self",(char *) "help", NULL
23280 };
23281
23282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23284 if (!SWIG_IsOK(res1)) {
23285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23286 }
23287 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23288 {
23289 arg2 = wxString_in_helper(obj1);
23290 if (arg2 == NULL) SWIG_fail;
23291 temp2 = true;
23292 }
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23296 wxPyEndAllowThreads(__tstate);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 }
23299 {
23300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23301 }
23302 {
23303 if (temp2)
23304 delete arg2;
23305 }
23306 return resultobj;
23307 fail:
23308 {
23309 if (temp2)
23310 delete arg2;
23311 }
23312 return NULL;
23313 }
23314
23315
23316 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23317 PyObject *resultobj = 0;
23318 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23319 wxString *arg2 = 0 ;
23320 bool result;
23321 void *argp1 = 0 ;
23322 int res1 = 0 ;
23323 bool temp2 = false ;
23324 PyObject * obj0 = 0 ;
23325 PyObject * obj1 = 0 ;
23326 char * kwnames[] = {
23327 (char *) "self",(char *) "help", NULL
23328 };
23329
23330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23332 if (!SWIG_IsOK(res1)) {
23333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23334 }
23335 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23336 {
23337 arg2 = wxString_in_helper(obj1);
23338 if (arg2 == NULL) SWIG_fail;
23339 temp2 = true;
23340 }
23341 {
23342 PyThreadState* __tstate = wxPyBeginAllowThreads();
23343 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23344 wxPyEndAllowThreads(__tstate);
23345 if (PyErr_Occurred()) SWIG_fail;
23346 }
23347 {
23348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23349 }
23350 {
23351 if (temp2)
23352 delete arg2;
23353 }
23354 return resultobj;
23355 fail:
23356 {
23357 if (temp2)
23358 delete arg2;
23359 }
23360 return NULL;
23361 }
23362
23363
23364 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23365 PyObject *resultobj = 0;
23366 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23367 wxBitmap *arg2 = 0 ;
23368 void *argp1 = 0 ;
23369 int res1 = 0 ;
23370 void *argp2 = 0 ;
23371 int res2 = 0 ;
23372 PyObject * obj0 = 0 ;
23373 PyObject * obj1 = 0 ;
23374 char * kwnames[] = {
23375 (char *) "self",(char *) "bmp", NULL
23376 };
23377
23378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23380 if (!SWIG_IsOK(res1)) {
23381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23382 }
23383 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23384 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23385 if (!SWIG_IsOK(res2)) {
23386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23387 }
23388 if (!argp2) {
23389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23390 }
23391 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23395 wxPyEndAllowThreads(__tstate);
23396 if (PyErr_Occurred()) SWIG_fail;
23397 }
23398 resultobj = SWIG_Py_Void();
23399 return resultobj;
23400 fail:
23401 return NULL;
23402 }
23403
23404
23405 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23406 PyObject *resultobj = 0;
23407 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23408 wxBitmap *arg2 = 0 ;
23409 void *argp1 = 0 ;
23410 int res1 = 0 ;
23411 void *argp2 = 0 ;
23412 int res2 = 0 ;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 char * kwnames[] = {
23416 (char *) "self",(char *) "bmp", NULL
23417 };
23418
23419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23421 if (!SWIG_IsOK(res1)) {
23422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23423 }
23424 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23426 if (!SWIG_IsOK(res2)) {
23427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23428 }
23429 if (!argp2) {
23430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23431 }
23432 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23436 wxPyEndAllowThreads(__tstate);
23437 if (PyErr_Occurred()) SWIG_fail;
23438 }
23439 resultobj = SWIG_Py_Void();
23440 return resultobj;
23441 fail:
23442 return NULL;
23443 }
23444
23445
23446 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23447 PyObject *resultobj = 0;
23448 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23449 wxString *arg2 = 0 ;
23450 void *argp1 = 0 ;
23451 int res1 = 0 ;
23452 bool temp2 = false ;
23453 PyObject * obj0 = 0 ;
23454 PyObject * obj1 = 0 ;
23455 char * kwnames[] = {
23456 (char *) "self",(char *) "label", NULL
23457 };
23458
23459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23461 if (!SWIG_IsOK(res1)) {
23462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23463 }
23464 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23465 {
23466 arg2 = wxString_in_helper(obj1);
23467 if (arg2 == NULL) SWIG_fail;
23468 temp2 = true;
23469 }
23470 {
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 (arg1)->SetLabel((wxString const &)*arg2);
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 resultobj = SWIG_Py_Void();
23477 {
23478 if (temp2)
23479 delete arg2;
23480 }
23481 return resultobj;
23482 fail:
23483 {
23484 if (temp2)
23485 delete arg2;
23486 }
23487 return NULL;
23488 }
23489
23490
23491 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23492 PyObject *resultobj = 0;
23493 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23494 void *argp1 = 0 ;
23495 int res1 = 0 ;
23496 PyObject *swig_obj[1] ;
23497
23498 if (!args) SWIG_fail;
23499 swig_obj[0] = args;
23500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23501 if (!SWIG_IsOK(res1)) {
23502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23503 }
23504 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23505 {
23506 PyThreadState* __tstate = wxPyBeginAllowThreads();
23507 (arg1)->Detach();
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 resultobj = SWIG_Py_Void();
23512 return resultobj;
23513 fail:
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23519 PyObject *resultobj = 0;
23520 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23521 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23522 void *argp1 = 0 ;
23523 int res1 = 0 ;
23524 void *argp2 = 0 ;
23525 int res2 = 0 ;
23526 PyObject * obj0 = 0 ;
23527 PyObject * obj1 = 0 ;
23528 char * kwnames[] = {
23529 (char *) "self",(char *) "tbar", NULL
23530 };
23531
23532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23534 if (!SWIG_IsOK(res1)) {
23535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23536 }
23537 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23538 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23539 if (!SWIG_IsOK(res2)) {
23540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23541 }
23542 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23543 {
23544 PyThreadState* __tstate = wxPyBeginAllowThreads();
23545 (arg1)->Attach(arg2);
23546 wxPyEndAllowThreads(__tstate);
23547 if (PyErr_Occurred()) SWIG_fail;
23548 }
23549 resultobj = SWIG_Py_Void();
23550 return resultobj;
23551 fail:
23552 return NULL;
23553 }
23554
23555
23556 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23557 PyObject *resultobj = 0;
23558 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23559 PyObject *result = 0 ;
23560 void *argp1 = 0 ;
23561 int res1 = 0 ;
23562 PyObject *swig_obj[1] ;
23563
23564 if (!args) SWIG_fail;
23565 swig_obj[0] = args;
23566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23567 if (!SWIG_IsOK(res1)) {
23568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23569 }
23570 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23574 wxPyEndAllowThreads(__tstate);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
23577 resultobj = result;
23578 return resultobj;
23579 fail:
23580 return NULL;
23581 }
23582
23583
23584 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23585 PyObject *resultobj = 0;
23586 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23587 PyObject *arg2 = (PyObject *) 0 ;
23588 void *argp1 = 0 ;
23589 int res1 = 0 ;
23590 PyObject * obj0 = 0 ;
23591 PyObject * obj1 = 0 ;
23592 char * kwnames[] = {
23593 (char *) "self",(char *) "clientData", NULL
23594 };
23595
23596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23598 if (!SWIG_IsOK(res1)) {
23599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23600 }
23601 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23602 arg2 = obj1;
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 wxToolBarToolBase_SetClientData(arg1,arg2);
23606 wxPyEndAllowThreads(__tstate);
23607 if (PyErr_Occurred()) SWIG_fail;
23608 }
23609 resultobj = SWIG_Py_Void();
23610 return resultobj;
23611 fail:
23612 return NULL;
23613 }
23614
23615
23616 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23617 PyObject *obj;
23618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23619 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23620 return SWIG_Py_Void();
23621 }
23622
23623 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23624 PyObject *resultobj = 0;
23625 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23626 int arg2 ;
23627 wxString *arg3 = 0 ;
23628 wxBitmap *arg4 = 0 ;
23629 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23630 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23631 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23632 wxString const &arg7_defvalue = wxPyEmptyString ;
23633 wxString *arg7 = (wxString *) &arg7_defvalue ;
23634 wxString const &arg8_defvalue = wxPyEmptyString ;
23635 wxString *arg8 = (wxString *) &arg8_defvalue ;
23636 PyObject *arg9 = (PyObject *) NULL ;
23637 wxToolBarToolBase *result = 0 ;
23638 void *argp1 = 0 ;
23639 int res1 = 0 ;
23640 int val2 ;
23641 int ecode2 = 0 ;
23642 bool temp3 = false ;
23643 void *argp4 = 0 ;
23644 int res4 = 0 ;
23645 void *argp5 = 0 ;
23646 int res5 = 0 ;
23647 int val6 ;
23648 int ecode6 = 0 ;
23649 bool temp7 = false ;
23650 bool temp8 = false ;
23651 PyObject * obj0 = 0 ;
23652 PyObject * obj1 = 0 ;
23653 PyObject * obj2 = 0 ;
23654 PyObject * obj3 = 0 ;
23655 PyObject * obj4 = 0 ;
23656 PyObject * obj5 = 0 ;
23657 PyObject * obj6 = 0 ;
23658 PyObject * obj7 = 0 ;
23659 PyObject * obj8 = 0 ;
23660 char * kwnames[] = {
23661 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23662 };
23663
23664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23666 if (!SWIG_IsOK(res1)) {
23667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23668 }
23669 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23670 ecode2 = SWIG_AsVal_int(obj1, &val2);
23671 if (!SWIG_IsOK(ecode2)) {
23672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23673 }
23674 arg2 = static_cast< int >(val2);
23675 {
23676 arg3 = wxString_in_helper(obj2);
23677 if (arg3 == NULL) SWIG_fail;
23678 temp3 = true;
23679 }
23680 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23681 if (!SWIG_IsOK(res4)) {
23682 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23683 }
23684 if (!argp4) {
23685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23686 }
23687 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23688 if (obj4) {
23689 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23690 if (!SWIG_IsOK(res5)) {
23691 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23692 }
23693 if (!argp5) {
23694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23695 }
23696 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23697 }
23698 if (obj5) {
23699 ecode6 = SWIG_AsVal_int(obj5, &val6);
23700 if (!SWIG_IsOK(ecode6)) {
23701 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23702 }
23703 arg6 = static_cast< wxItemKind >(val6);
23704 }
23705 if (obj6) {
23706 {
23707 arg7 = wxString_in_helper(obj6);
23708 if (arg7 == NULL) SWIG_fail;
23709 temp7 = true;
23710 }
23711 }
23712 if (obj7) {
23713 {
23714 arg8 = wxString_in_helper(obj7);
23715 if (arg8 == NULL) SWIG_fail;
23716 temp8 = true;
23717 }
23718 }
23719 if (obj8) {
23720 arg9 = obj8;
23721 }
23722 {
23723 PyThreadState* __tstate = wxPyBeginAllowThreads();
23724 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23725 wxPyEndAllowThreads(__tstate);
23726 if (PyErr_Occurred()) SWIG_fail;
23727 }
23728 {
23729 resultobj = wxPyMake_wxObject(result, (bool)0);
23730 }
23731 {
23732 if (temp3)
23733 delete arg3;
23734 }
23735 {
23736 if (temp7)
23737 delete arg7;
23738 }
23739 {
23740 if (temp8)
23741 delete arg8;
23742 }
23743 return resultobj;
23744 fail:
23745 {
23746 if (temp3)
23747 delete arg3;
23748 }
23749 {
23750 if (temp7)
23751 delete arg7;
23752 }
23753 {
23754 if (temp8)
23755 delete arg8;
23756 }
23757 return NULL;
23758 }
23759
23760
23761 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23762 PyObject *resultobj = 0;
23763 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23764 size_t arg2 ;
23765 int arg3 ;
23766 wxString *arg4 = 0 ;
23767 wxBitmap *arg5 = 0 ;
23768 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23769 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23770 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23771 wxString const &arg8_defvalue = wxPyEmptyString ;
23772 wxString *arg8 = (wxString *) &arg8_defvalue ;
23773 wxString const &arg9_defvalue = wxPyEmptyString ;
23774 wxString *arg9 = (wxString *) &arg9_defvalue ;
23775 PyObject *arg10 = (PyObject *) NULL ;
23776 wxToolBarToolBase *result = 0 ;
23777 void *argp1 = 0 ;
23778 int res1 = 0 ;
23779 size_t val2 ;
23780 int ecode2 = 0 ;
23781 int val3 ;
23782 int ecode3 = 0 ;
23783 bool temp4 = false ;
23784 void *argp5 = 0 ;
23785 int res5 = 0 ;
23786 void *argp6 = 0 ;
23787 int res6 = 0 ;
23788 int val7 ;
23789 int ecode7 = 0 ;
23790 bool temp8 = false ;
23791 bool temp9 = false ;
23792 PyObject * obj0 = 0 ;
23793 PyObject * obj1 = 0 ;
23794 PyObject * obj2 = 0 ;
23795 PyObject * obj3 = 0 ;
23796 PyObject * obj4 = 0 ;
23797 PyObject * obj5 = 0 ;
23798 PyObject * obj6 = 0 ;
23799 PyObject * obj7 = 0 ;
23800 PyObject * obj8 = 0 ;
23801 PyObject * obj9 = 0 ;
23802 char * kwnames[] = {
23803 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23804 };
23805
23806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23808 if (!SWIG_IsOK(res1)) {
23809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23810 }
23811 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23812 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23813 if (!SWIG_IsOK(ecode2)) {
23814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23815 }
23816 arg2 = static_cast< size_t >(val2);
23817 ecode3 = SWIG_AsVal_int(obj2, &val3);
23818 if (!SWIG_IsOK(ecode3)) {
23819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23820 }
23821 arg3 = static_cast< int >(val3);
23822 {
23823 arg4 = wxString_in_helper(obj3);
23824 if (arg4 == NULL) SWIG_fail;
23825 temp4 = true;
23826 }
23827 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23828 if (!SWIG_IsOK(res5)) {
23829 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23830 }
23831 if (!argp5) {
23832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23833 }
23834 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23835 if (obj5) {
23836 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23837 if (!SWIG_IsOK(res6)) {
23838 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23839 }
23840 if (!argp6) {
23841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23842 }
23843 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23844 }
23845 if (obj6) {
23846 ecode7 = SWIG_AsVal_int(obj6, &val7);
23847 if (!SWIG_IsOK(ecode7)) {
23848 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23849 }
23850 arg7 = static_cast< wxItemKind >(val7);
23851 }
23852 if (obj7) {
23853 {
23854 arg8 = wxString_in_helper(obj7);
23855 if (arg8 == NULL) SWIG_fail;
23856 temp8 = true;
23857 }
23858 }
23859 if (obj8) {
23860 {
23861 arg9 = wxString_in_helper(obj8);
23862 if (arg9 == NULL) SWIG_fail;
23863 temp9 = true;
23864 }
23865 }
23866 if (obj9) {
23867 arg10 = obj9;
23868 }
23869 {
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
23871 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 {
23876 resultobj = wxPyMake_wxObject(result, (bool)0);
23877 }
23878 {
23879 if (temp4)
23880 delete arg4;
23881 }
23882 {
23883 if (temp8)
23884 delete arg8;
23885 }
23886 {
23887 if (temp9)
23888 delete arg9;
23889 }
23890 return resultobj;
23891 fail:
23892 {
23893 if (temp4)
23894 delete arg4;
23895 }
23896 {
23897 if (temp8)
23898 delete arg8;
23899 }
23900 {
23901 if (temp9)
23902 delete arg9;
23903 }
23904 return NULL;
23905 }
23906
23907
23908 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23909 PyObject *resultobj = 0;
23910 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23911 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23912 wxToolBarToolBase *result = 0 ;
23913 void *argp1 = 0 ;
23914 int res1 = 0 ;
23915 void *argp2 = 0 ;
23916 int res2 = 0 ;
23917 PyObject * obj0 = 0 ;
23918 PyObject * obj1 = 0 ;
23919 char * kwnames[] = {
23920 (char *) "self",(char *) "tool", NULL
23921 };
23922
23923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23925 if (!SWIG_IsOK(res1)) {
23926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23927 }
23928 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23929 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23930 if (!SWIG_IsOK(res2)) {
23931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23932 }
23933 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23934 {
23935 PyThreadState* __tstate = wxPyBeginAllowThreads();
23936 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23937 wxPyEndAllowThreads(__tstate);
23938 if (PyErr_Occurred()) SWIG_fail;
23939 }
23940 {
23941 resultobj = wxPyMake_wxObject(result, (bool)0);
23942 }
23943 return resultobj;
23944 fail:
23945 return NULL;
23946 }
23947
23948
23949 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23950 PyObject *resultobj = 0;
23951 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23952 size_t arg2 ;
23953 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23954 wxToolBarToolBase *result = 0 ;
23955 void *argp1 = 0 ;
23956 int res1 = 0 ;
23957 size_t val2 ;
23958 int ecode2 = 0 ;
23959 void *argp3 = 0 ;
23960 int res3 = 0 ;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 PyObject * obj2 = 0 ;
23964 char * kwnames[] = {
23965 (char *) "self",(char *) "pos",(char *) "tool", NULL
23966 };
23967
23968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23970 if (!SWIG_IsOK(res1)) {
23971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23972 }
23973 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23974 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23975 if (!SWIG_IsOK(ecode2)) {
23976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23977 }
23978 arg2 = static_cast< size_t >(val2);
23979 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23980 if (!SWIG_IsOK(res3)) {
23981 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23982 }
23983 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23984 {
23985 PyThreadState* __tstate = wxPyBeginAllowThreads();
23986 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23987 wxPyEndAllowThreads(__tstate);
23988 if (PyErr_Occurred()) SWIG_fail;
23989 }
23990 {
23991 resultobj = wxPyMake_wxObject(result, (bool)0);
23992 }
23993 return resultobj;
23994 fail:
23995 return NULL;
23996 }
23997
23998
23999 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24000 PyObject *resultobj = 0;
24001 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24002 wxControl *arg2 = (wxControl *) 0 ;
24003 wxToolBarToolBase *result = 0 ;
24004 void *argp1 = 0 ;
24005 int res1 = 0 ;
24006 void *argp2 = 0 ;
24007 int res2 = 0 ;
24008 PyObject * obj0 = 0 ;
24009 PyObject * obj1 = 0 ;
24010 char * kwnames[] = {
24011 (char *) "self",(char *) "control", NULL
24012 };
24013
24014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24016 if (!SWIG_IsOK(res1)) {
24017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24018 }
24019 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24020 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24021 if (!SWIG_IsOK(res2)) {
24022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24023 }
24024 arg2 = reinterpret_cast< wxControl * >(argp2);
24025 {
24026 PyThreadState* __tstate = wxPyBeginAllowThreads();
24027 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24028 wxPyEndAllowThreads(__tstate);
24029 if (PyErr_Occurred()) SWIG_fail;
24030 }
24031 {
24032 resultobj = wxPyMake_wxObject(result, (bool)0);
24033 }
24034 return resultobj;
24035 fail:
24036 return NULL;
24037 }
24038
24039
24040 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24041 PyObject *resultobj = 0;
24042 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24043 size_t arg2 ;
24044 wxControl *arg3 = (wxControl *) 0 ;
24045 wxToolBarToolBase *result = 0 ;
24046 void *argp1 = 0 ;
24047 int res1 = 0 ;
24048 size_t val2 ;
24049 int ecode2 = 0 ;
24050 void *argp3 = 0 ;
24051 int res3 = 0 ;
24052 PyObject * obj0 = 0 ;
24053 PyObject * obj1 = 0 ;
24054 PyObject * obj2 = 0 ;
24055 char * kwnames[] = {
24056 (char *) "self",(char *) "pos",(char *) "control", NULL
24057 };
24058
24059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24061 if (!SWIG_IsOK(res1)) {
24062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24063 }
24064 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24065 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24066 if (!SWIG_IsOK(ecode2)) {
24067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24068 }
24069 arg2 = static_cast< size_t >(val2);
24070 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24071 if (!SWIG_IsOK(res3)) {
24072 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24073 }
24074 arg3 = reinterpret_cast< wxControl * >(argp3);
24075 {
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 {
24082 resultobj = wxPyMake_wxObject(result, (bool)0);
24083 }
24084 return resultobj;
24085 fail:
24086 return NULL;
24087 }
24088
24089
24090 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24091 PyObject *resultobj = 0;
24092 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24093 int arg2 ;
24094 wxControl *result = 0 ;
24095 void *argp1 = 0 ;
24096 int res1 = 0 ;
24097 int val2 ;
24098 int ecode2 = 0 ;
24099 PyObject * obj0 = 0 ;
24100 PyObject * obj1 = 0 ;
24101 char * kwnames[] = {
24102 (char *) "self",(char *) "id", NULL
24103 };
24104
24105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24107 if (!SWIG_IsOK(res1)) {
24108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24109 }
24110 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24111 ecode2 = SWIG_AsVal_int(obj1, &val2);
24112 if (!SWIG_IsOK(ecode2)) {
24113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24114 }
24115 arg2 = static_cast< int >(val2);
24116 {
24117 PyThreadState* __tstate = wxPyBeginAllowThreads();
24118 result = (wxControl *)(arg1)->FindControl(arg2);
24119 wxPyEndAllowThreads(__tstate);
24120 if (PyErr_Occurred()) SWIG_fail;
24121 }
24122 {
24123 resultobj = wxPyMake_wxObject(result, 0);
24124 }
24125 return resultobj;
24126 fail:
24127 return NULL;
24128 }
24129
24130
24131 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24132 PyObject *resultobj = 0;
24133 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24134 wxToolBarToolBase *result = 0 ;
24135 void *argp1 = 0 ;
24136 int res1 = 0 ;
24137 PyObject *swig_obj[1] ;
24138
24139 if (!args) SWIG_fail;
24140 swig_obj[0] = args;
24141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24142 if (!SWIG_IsOK(res1)) {
24143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24144 }
24145 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24146 {
24147 PyThreadState* __tstate = wxPyBeginAllowThreads();
24148 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 {
24153 resultobj = wxPyMake_wxObject(result, (bool)0);
24154 }
24155 return resultobj;
24156 fail:
24157 return NULL;
24158 }
24159
24160
24161 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24162 PyObject *resultobj = 0;
24163 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24164 size_t arg2 ;
24165 wxToolBarToolBase *result = 0 ;
24166 void *argp1 = 0 ;
24167 int res1 = 0 ;
24168 size_t val2 ;
24169 int ecode2 = 0 ;
24170 PyObject * obj0 = 0 ;
24171 PyObject * obj1 = 0 ;
24172 char * kwnames[] = {
24173 (char *) "self",(char *) "pos", NULL
24174 };
24175
24176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24178 if (!SWIG_IsOK(res1)) {
24179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24180 }
24181 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24182 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24183 if (!SWIG_IsOK(ecode2)) {
24184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24185 }
24186 arg2 = static_cast< size_t >(val2);
24187 {
24188 PyThreadState* __tstate = wxPyBeginAllowThreads();
24189 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24190 wxPyEndAllowThreads(__tstate);
24191 if (PyErr_Occurred()) SWIG_fail;
24192 }
24193 {
24194 resultobj = wxPyMake_wxObject(result, (bool)0);
24195 }
24196 return resultobj;
24197 fail:
24198 return NULL;
24199 }
24200
24201
24202 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24203 PyObject *resultobj = 0;
24204 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24205 int arg2 ;
24206 wxToolBarToolBase *result = 0 ;
24207 void *argp1 = 0 ;
24208 int res1 = 0 ;
24209 int val2 ;
24210 int ecode2 = 0 ;
24211 PyObject * obj0 = 0 ;
24212 PyObject * obj1 = 0 ;
24213 char * kwnames[] = {
24214 (char *) "self",(char *) "id", NULL
24215 };
24216
24217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24219 if (!SWIG_IsOK(res1)) {
24220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24221 }
24222 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24223 ecode2 = SWIG_AsVal_int(obj1, &val2);
24224 if (!SWIG_IsOK(ecode2)) {
24225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24226 }
24227 arg2 = static_cast< int >(val2);
24228 {
24229 PyThreadState* __tstate = wxPyBeginAllowThreads();
24230 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24231 wxPyEndAllowThreads(__tstate);
24232 if (PyErr_Occurred()) SWIG_fail;
24233 }
24234 {
24235 resultobj = wxPyMake_wxObject(result, (bool)0);
24236 }
24237 return resultobj;
24238 fail:
24239 return NULL;
24240 }
24241
24242
24243 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24244 PyObject *resultobj = 0;
24245 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24246 size_t arg2 ;
24247 bool result;
24248 void *argp1 = 0 ;
24249 int res1 = 0 ;
24250 size_t val2 ;
24251 int ecode2 = 0 ;
24252 PyObject * obj0 = 0 ;
24253 PyObject * obj1 = 0 ;
24254 char * kwnames[] = {
24255 (char *) "self",(char *) "pos", NULL
24256 };
24257
24258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24260 if (!SWIG_IsOK(res1)) {
24261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24262 }
24263 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24264 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24265 if (!SWIG_IsOK(ecode2)) {
24266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24267 }
24268 arg2 = static_cast< size_t >(val2);
24269 {
24270 PyThreadState* __tstate = wxPyBeginAllowThreads();
24271 result = (bool)(arg1)->DeleteToolByPos(arg2);
24272 wxPyEndAllowThreads(__tstate);
24273 if (PyErr_Occurred()) SWIG_fail;
24274 }
24275 {
24276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24277 }
24278 return resultobj;
24279 fail:
24280 return NULL;
24281 }
24282
24283
24284 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24285 PyObject *resultobj = 0;
24286 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24287 int arg2 ;
24288 bool result;
24289 void *argp1 = 0 ;
24290 int res1 = 0 ;
24291 int val2 ;
24292 int ecode2 = 0 ;
24293 PyObject * obj0 = 0 ;
24294 PyObject * obj1 = 0 ;
24295 char * kwnames[] = {
24296 (char *) "self",(char *) "id", NULL
24297 };
24298
24299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24301 if (!SWIG_IsOK(res1)) {
24302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24303 }
24304 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24305 ecode2 = SWIG_AsVal_int(obj1, &val2);
24306 if (!SWIG_IsOK(ecode2)) {
24307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24308 }
24309 arg2 = static_cast< int >(val2);
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 result = (bool)(arg1)->DeleteTool(arg2);
24313 wxPyEndAllowThreads(__tstate);
24314 if (PyErr_Occurred()) SWIG_fail;
24315 }
24316 {
24317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24318 }
24319 return resultobj;
24320 fail:
24321 return NULL;
24322 }
24323
24324
24325 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24326 PyObject *resultobj = 0;
24327 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24328 void *argp1 = 0 ;
24329 int res1 = 0 ;
24330 PyObject *swig_obj[1] ;
24331
24332 if (!args) SWIG_fail;
24333 swig_obj[0] = args;
24334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24335 if (!SWIG_IsOK(res1)) {
24336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24337 }
24338 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24339 {
24340 PyThreadState* __tstate = wxPyBeginAllowThreads();
24341 (arg1)->ClearTools();
24342 wxPyEndAllowThreads(__tstate);
24343 if (PyErr_Occurred()) SWIG_fail;
24344 }
24345 resultobj = SWIG_Py_Void();
24346 return resultobj;
24347 fail:
24348 return NULL;
24349 }
24350
24351
24352 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24353 PyObject *resultobj = 0;
24354 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24355 bool result;
24356 void *argp1 = 0 ;
24357 int res1 = 0 ;
24358 PyObject *swig_obj[1] ;
24359
24360 if (!args) SWIG_fail;
24361 swig_obj[0] = args;
24362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24363 if (!SWIG_IsOK(res1)) {
24364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24365 }
24366 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24367 {
24368 PyThreadState* __tstate = wxPyBeginAllowThreads();
24369 result = (bool)(arg1)->Realize();
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 {
24374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24375 }
24376 return resultobj;
24377 fail:
24378 return NULL;
24379 }
24380
24381
24382 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24383 PyObject *resultobj = 0;
24384 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24385 int arg2 ;
24386 bool arg3 ;
24387 void *argp1 = 0 ;
24388 int res1 = 0 ;
24389 int val2 ;
24390 int ecode2 = 0 ;
24391 bool val3 ;
24392 int ecode3 = 0 ;
24393 PyObject * obj0 = 0 ;
24394 PyObject * obj1 = 0 ;
24395 PyObject * obj2 = 0 ;
24396 char * kwnames[] = {
24397 (char *) "self",(char *) "id",(char *) "enable", NULL
24398 };
24399
24400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24402 if (!SWIG_IsOK(res1)) {
24403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24404 }
24405 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24406 ecode2 = SWIG_AsVal_int(obj1, &val2);
24407 if (!SWIG_IsOK(ecode2)) {
24408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24409 }
24410 arg2 = static_cast< int >(val2);
24411 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24412 if (!SWIG_IsOK(ecode3)) {
24413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24414 }
24415 arg3 = static_cast< bool >(val3);
24416 {
24417 PyThreadState* __tstate = wxPyBeginAllowThreads();
24418 (arg1)->EnableTool(arg2,arg3);
24419 wxPyEndAllowThreads(__tstate);
24420 if (PyErr_Occurred()) SWIG_fail;
24421 }
24422 resultobj = SWIG_Py_Void();
24423 return resultobj;
24424 fail:
24425 return NULL;
24426 }
24427
24428
24429 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24430 PyObject *resultobj = 0;
24431 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24432 int arg2 ;
24433 bool arg3 ;
24434 void *argp1 = 0 ;
24435 int res1 = 0 ;
24436 int val2 ;
24437 int ecode2 = 0 ;
24438 bool val3 ;
24439 int ecode3 = 0 ;
24440 PyObject * obj0 = 0 ;
24441 PyObject * obj1 = 0 ;
24442 PyObject * obj2 = 0 ;
24443 char * kwnames[] = {
24444 (char *) "self",(char *) "id",(char *) "toggle", NULL
24445 };
24446
24447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24449 if (!SWIG_IsOK(res1)) {
24450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24451 }
24452 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24453 ecode2 = SWIG_AsVal_int(obj1, &val2);
24454 if (!SWIG_IsOK(ecode2)) {
24455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24456 }
24457 arg2 = static_cast< int >(val2);
24458 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24459 if (!SWIG_IsOK(ecode3)) {
24460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24461 }
24462 arg3 = static_cast< bool >(val3);
24463 {
24464 PyThreadState* __tstate = wxPyBeginAllowThreads();
24465 (arg1)->ToggleTool(arg2,arg3);
24466 wxPyEndAllowThreads(__tstate);
24467 if (PyErr_Occurred()) SWIG_fail;
24468 }
24469 resultobj = SWIG_Py_Void();
24470 return resultobj;
24471 fail:
24472 return NULL;
24473 }
24474
24475
24476 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24477 PyObject *resultobj = 0;
24478 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24479 int arg2 ;
24480 bool arg3 ;
24481 void *argp1 = 0 ;
24482 int res1 = 0 ;
24483 int val2 ;
24484 int ecode2 = 0 ;
24485 bool val3 ;
24486 int ecode3 = 0 ;
24487 PyObject * obj0 = 0 ;
24488 PyObject * obj1 = 0 ;
24489 PyObject * obj2 = 0 ;
24490 char * kwnames[] = {
24491 (char *) "self",(char *) "id",(char *) "toggle", NULL
24492 };
24493
24494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24496 if (!SWIG_IsOK(res1)) {
24497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24498 }
24499 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24500 ecode2 = SWIG_AsVal_int(obj1, &val2);
24501 if (!SWIG_IsOK(ecode2)) {
24502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24503 }
24504 arg2 = static_cast< int >(val2);
24505 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24506 if (!SWIG_IsOK(ecode3)) {
24507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24508 }
24509 arg3 = static_cast< bool >(val3);
24510 {
24511 PyThreadState* __tstate = wxPyBeginAllowThreads();
24512 (arg1)->SetToggle(arg2,arg3);
24513 wxPyEndAllowThreads(__tstate);
24514 if (PyErr_Occurred()) SWIG_fail;
24515 }
24516 resultobj = SWIG_Py_Void();
24517 return resultobj;
24518 fail:
24519 return NULL;
24520 }
24521
24522
24523 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24524 PyObject *resultobj = 0;
24525 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24526 int arg2 ;
24527 PyObject *result = 0 ;
24528 void *argp1 = 0 ;
24529 int res1 = 0 ;
24530 int val2 ;
24531 int ecode2 = 0 ;
24532 PyObject * obj0 = 0 ;
24533 PyObject * obj1 = 0 ;
24534 char * kwnames[] = {
24535 (char *) "self",(char *) "id", NULL
24536 };
24537
24538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24540 if (!SWIG_IsOK(res1)) {
24541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24542 }
24543 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24544 ecode2 = SWIG_AsVal_int(obj1, &val2);
24545 if (!SWIG_IsOK(ecode2)) {
24546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24547 }
24548 arg2 = static_cast< int >(val2);
24549 {
24550 PyThreadState* __tstate = wxPyBeginAllowThreads();
24551 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24552 wxPyEndAllowThreads(__tstate);
24553 if (PyErr_Occurred()) SWIG_fail;
24554 }
24555 resultobj = result;
24556 return resultobj;
24557 fail:
24558 return NULL;
24559 }
24560
24561
24562 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24563 PyObject *resultobj = 0;
24564 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24565 int arg2 ;
24566 PyObject *arg3 = (PyObject *) 0 ;
24567 void *argp1 = 0 ;
24568 int res1 = 0 ;
24569 int val2 ;
24570 int ecode2 = 0 ;
24571 PyObject * obj0 = 0 ;
24572 PyObject * obj1 = 0 ;
24573 PyObject * obj2 = 0 ;
24574 char * kwnames[] = {
24575 (char *) "self",(char *) "id",(char *) "clientData", NULL
24576 };
24577
24578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24580 if (!SWIG_IsOK(res1)) {
24581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24582 }
24583 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24584 ecode2 = SWIG_AsVal_int(obj1, &val2);
24585 if (!SWIG_IsOK(ecode2)) {
24586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24587 }
24588 arg2 = static_cast< int >(val2);
24589 arg3 = obj2;
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24593 wxPyEndAllowThreads(__tstate);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 resultobj = SWIG_Py_Void();
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24604 PyObject *resultobj = 0;
24605 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24606 int arg2 ;
24607 int result;
24608 void *argp1 = 0 ;
24609 int res1 = 0 ;
24610 int val2 ;
24611 int ecode2 = 0 ;
24612 PyObject * obj0 = 0 ;
24613 PyObject * obj1 = 0 ;
24614 char * kwnames[] = {
24615 (char *) "self",(char *) "id", NULL
24616 };
24617
24618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24620 if (!SWIG_IsOK(res1)) {
24621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24622 }
24623 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24624 ecode2 = SWIG_AsVal_int(obj1, &val2);
24625 if (!SWIG_IsOK(ecode2)) {
24626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24627 }
24628 arg2 = static_cast< int >(val2);
24629 {
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
24631 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24632 wxPyEndAllowThreads(__tstate);
24633 if (PyErr_Occurred()) SWIG_fail;
24634 }
24635 resultobj = SWIG_From_int(static_cast< int >(result));
24636 return resultobj;
24637 fail:
24638 return NULL;
24639 }
24640
24641
24642 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24643 PyObject *resultobj = 0;
24644 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24645 int arg2 ;
24646 bool result;
24647 void *argp1 = 0 ;
24648 int res1 = 0 ;
24649 int val2 ;
24650 int ecode2 = 0 ;
24651 PyObject * obj0 = 0 ;
24652 PyObject * obj1 = 0 ;
24653 char * kwnames[] = {
24654 (char *) "self",(char *) "id", NULL
24655 };
24656
24657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24659 if (!SWIG_IsOK(res1)) {
24660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24661 }
24662 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24663 ecode2 = SWIG_AsVal_int(obj1, &val2);
24664 if (!SWIG_IsOK(ecode2)) {
24665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24666 }
24667 arg2 = static_cast< int >(val2);
24668 {
24669 PyThreadState* __tstate = wxPyBeginAllowThreads();
24670 result = (bool)(arg1)->GetToolState(arg2);
24671 wxPyEndAllowThreads(__tstate);
24672 if (PyErr_Occurred()) SWIG_fail;
24673 }
24674 {
24675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24676 }
24677 return resultobj;
24678 fail:
24679 return NULL;
24680 }
24681
24682
24683 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24684 PyObject *resultobj = 0;
24685 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24686 int arg2 ;
24687 bool result;
24688 void *argp1 = 0 ;
24689 int res1 = 0 ;
24690 int val2 ;
24691 int ecode2 = 0 ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 char * kwnames[] = {
24695 (char *) "self",(char *) "id", NULL
24696 };
24697
24698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24700 if (!SWIG_IsOK(res1)) {
24701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24702 }
24703 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24704 ecode2 = SWIG_AsVal_int(obj1, &val2);
24705 if (!SWIG_IsOK(ecode2)) {
24706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24707 }
24708 arg2 = static_cast< int >(val2);
24709 {
24710 PyThreadState* __tstate = wxPyBeginAllowThreads();
24711 result = (bool)(arg1)->GetToolEnabled(arg2);
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 {
24716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24717 }
24718 return resultobj;
24719 fail:
24720 return NULL;
24721 }
24722
24723
24724 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24725 PyObject *resultobj = 0;
24726 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24727 int arg2 ;
24728 wxString *arg3 = 0 ;
24729 void *argp1 = 0 ;
24730 int res1 = 0 ;
24731 int val2 ;
24732 int ecode2 = 0 ;
24733 bool temp3 = false ;
24734 PyObject * obj0 = 0 ;
24735 PyObject * obj1 = 0 ;
24736 PyObject * obj2 = 0 ;
24737 char * kwnames[] = {
24738 (char *) "self",(char *) "id",(char *) "helpString", NULL
24739 };
24740
24741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24743 if (!SWIG_IsOK(res1)) {
24744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24745 }
24746 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24747 ecode2 = SWIG_AsVal_int(obj1, &val2);
24748 if (!SWIG_IsOK(ecode2)) {
24749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24750 }
24751 arg2 = static_cast< int >(val2);
24752 {
24753 arg3 = wxString_in_helper(obj2);
24754 if (arg3 == NULL) SWIG_fail;
24755 temp3 = true;
24756 }
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_Py_Void();
24764 {
24765 if (temp3)
24766 delete arg3;
24767 }
24768 return resultobj;
24769 fail:
24770 {
24771 if (temp3)
24772 delete arg3;
24773 }
24774 return NULL;
24775 }
24776
24777
24778 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24779 PyObject *resultobj = 0;
24780 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24781 int arg2 ;
24782 wxString result;
24783 void *argp1 = 0 ;
24784 int res1 = 0 ;
24785 int val2 ;
24786 int ecode2 = 0 ;
24787 PyObject * obj0 = 0 ;
24788 PyObject * obj1 = 0 ;
24789 char * kwnames[] = {
24790 (char *) "self",(char *) "id", NULL
24791 };
24792
24793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24795 if (!SWIG_IsOK(res1)) {
24796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24797 }
24798 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24799 ecode2 = SWIG_AsVal_int(obj1, &val2);
24800 if (!SWIG_IsOK(ecode2)) {
24801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24802 }
24803 arg2 = static_cast< int >(val2);
24804 {
24805 PyThreadState* __tstate = wxPyBeginAllowThreads();
24806 result = (arg1)->GetToolShortHelp(arg2);
24807 wxPyEndAllowThreads(__tstate);
24808 if (PyErr_Occurred()) SWIG_fail;
24809 }
24810 {
24811 #if wxUSE_UNICODE
24812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24813 #else
24814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24815 #endif
24816 }
24817 return resultobj;
24818 fail:
24819 return NULL;
24820 }
24821
24822
24823 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24824 PyObject *resultobj = 0;
24825 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24826 int arg2 ;
24827 wxString *arg3 = 0 ;
24828 void *argp1 = 0 ;
24829 int res1 = 0 ;
24830 int val2 ;
24831 int ecode2 = 0 ;
24832 bool temp3 = false ;
24833 PyObject * obj0 = 0 ;
24834 PyObject * obj1 = 0 ;
24835 PyObject * obj2 = 0 ;
24836 char * kwnames[] = {
24837 (char *) "self",(char *) "id",(char *) "helpString", NULL
24838 };
24839
24840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24842 if (!SWIG_IsOK(res1)) {
24843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24844 }
24845 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24846 ecode2 = SWIG_AsVal_int(obj1, &val2);
24847 if (!SWIG_IsOK(ecode2)) {
24848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24849 }
24850 arg2 = static_cast< int >(val2);
24851 {
24852 arg3 = wxString_in_helper(obj2);
24853 if (arg3 == NULL) SWIG_fail;
24854 temp3 = true;
24855 }
24856 {
24857 PyThreadState* __tstate = wxPyBeginAllowThreads();
24858 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24859 wxPyEndAllowThreads(__tstate);
24860 if (PyErr_Occurred()) SWIG_fail;
24861 }
24862 resultobj = SWIG_Py_Void();
24863 {
24864 if (temp3)
24865 delete arg3;
24866 }
24867 return resultobj;
24868 fail:
24869 {
24870 if (temp3)
24871 delete arg3;
24872 }
24873 return NULL;
24874 }
24875
24876
24877 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24878 PyObject *resultobj = 0;
24879 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24880 int arg2 ;
24881 wxString result;
24882 void *argp1 = 0 ;
24883 int res1 = 0 ;
24884 int val2 ;
24885 int ecode2 = 0 ;
24886 PyObject * obj0 = 0 ;
24887 PyObject * obj1 = 0 ;
24888 char * kwnames[] = {
24889 (char *) "self",(char *) "id", NULL
24890 };
24891
24892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24894 if (!SWIG_IsOK(res1)) {
24895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24896 }
24897 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24898 ecode2 = SWIG_AsVal_int(obj1, &val2);
24899 if (!SWIG_IsOK(ecode2)) {
24900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24901 }
24902 arg2 = static_cast< int >(val2);
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 result = (arg1)->GetToolLongHelp(arg2);
24906 wxPyEndAllowThreads(__tstate);
24907 if (PyErr_Occurred()) SWIG_fail;
24908 }
24909 {
24910 #if wxUSE_UNICODE
24911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24912 #else
24913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24914 #endif
24915 }
24916 return resultobj;
24917 fail:
24918 return NULL;
24919 }
24920
24921
24922 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24923 PyObject *resultobj = 0;
24924 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24925 int arg2 ;
24926 int arg3 ;
24927 void *argp1 = 0 ;
24928 int res1 = 0 ;
24929 int val2 ;
24930 int ecode2 = 0 ;
24931 int val3 ;
24932 int ecode3 = 0 ;
24933 PyObject * obj0 = 0 ;
24934 PyObject * obj1 = 0 ;
24935 PyObject * obj2 = 0 ;
24936 char * kwnames[] = {
24937 (char *) "self",(char *) "x",(char *) "y", NULL
24938 };
24939
24940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24942 if (!SWIG_IsOK(res1)) {
24943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24944 }
24945 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24946 ecode2 = SWIG_AsVal_int(obj1, &val2);
24947 if (!SWIG_IsOK(ecode2)) {
24948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24949 }
24950 arg2 = static_cast< int >(val2);
24951 ecode3 = SWIG_AsVal_int(obj2, &val3);
24952 if (!SWIG_IsOK(ecode3)) {
24953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24954 }
24955 arg3 = static_cast< int >(val3);
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 (arg1)->SetMargins(arg2,arg3);
24959 wxPyEndAllowThreads(__tstate);
24960 if (PyErr_Occurred()) SWIG_fail;
24961 }
24962 resultobj = SWIG_Py_Void();
24963 return resultobj;
24964 fail:
24965 return NULL;
24966 }
24967
24968
24969 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24970 PyObject *resultobj = 0;
24971 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24972 wxSize *arg2 = 0 ;
24973 void *argp1 = 0 ;
24974 int res1 = 0 ;
24975 wxSize temp2 ;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 char * kwnames[] = {
24979 (char *) "self",(char *) "size", NULL
24980 };
24981
24982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24984 if (!SWIG_IsOK(res1)) {
24985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24986 }
24987 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24988 {
24989 arg2 = &temp2;
24990 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24991 }
24992 {
24993 PyThreadState* __tstate = wxPyBeginAllowThreads();
24994 (arg1)->SetMargins((wxSize const &)*arg2);
24995 wxPyEndAllowThreads(__tstate);
24996 if (PyErr_Occurred()) SWIG_fail;
24997 }
24998 resultobj = SWIG_Py_Void();
24999 return resultobj;
25000 fail:
25001 return NULL;
25002 }
25003
25004
25005 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25006 PyObject *resultobj = 0;
25007 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25008 int arg2 ;
25009 void *argp1 = 0 ;
25010 int res1 = 0 ;
25011 int val2 ;
25012 int ecode2 = 0 ;
25013 PyObject * obj0 = 0 ;
25014 PyObject * obj1 = 0 ;
25015 char * kwnames[] = {
25016 (char *) "self",(char *) "packing", NULL
25017 };
25018
25019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25021 if (!SWIG_IsOK(res1)) {
25022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25023 }
25024 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25025 ecode2 = SWIG_AsVal_int(obj1, &val2);
25026 if (!SWIG_IsOK(ecode2)) {
25027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25028 }
25029 arg2 = static_cast< int >(val2);
25030 {
25031 PyThreadState* __tstate = wxPyBeginAllowThreads();
25032 (arg1)->SetToolPacking(arg2);
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 resultobj = SWIG_Py_Void();
25037 return resultobj;
25038 fail:
25039 return NULL;
25040 }
25041
25042
25043 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25044 PyObject *resultobj = 0;
25045 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25046 int arg2 ;
25047 void *argp1 = 0 ;
25048 int res1 = 0 ;
25049 int val2 ;
25050 int ecode2 = 0 ;
25051 PyObject * obj0 = 0 ;
25052 PyObject * obj1 = 0 ;
25053 char * kwnames[] = {
25054 (char *) "self",(char *) "separation", NULL
25055 };
25056
25057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25059 if (!SWIG_IsOK(res1)) {
25060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25061 }
25062 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25063 ecode2 = SWIG_AsVal_int(obj1, &val2);
25064 if (!SWIG_IsOK(ecode2)) {
25065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25066 }
25067 arg2 = static_cast< int >(val2);
25068 {
25069 PyThreadState* __tstate = wxPyBeginAllowThreads();
25070 (arg1)->SetToolSeparation(arg2);
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = SWIG_Py_Void();
25075 return resultobj;
25076 fail:
25077 return NULL;
25078 }
25079
25080
25081 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25082 PyObject *resultobj = 0;
25083 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25084 wxSize result;
25085 void *argp1 = 0 ;
25086 int res1 = 0 ;
25087 PyObject *swig_obj[1] ;
25088
25089 if (!args) SWIG_fail;
25090 swig_obj[0] = args;
25091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25092 if (!SWIG_IsOK(res1)) {
25093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25094 }
25095 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25096 {
25097 PyThreadState* __tstate = wxPyBeginAllowThreads();
25098 result = (arg1)->GetToolMargins();
25099 wxPyEndAllowThreads(__tstate);
25100 if (PyErr_Occurred()) SWIG_fail;
25101 }
25102 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25103 return resultobj;
25104 fail:
25105 return NULL;
25106 }
25107
25108
25109 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25110 PyObject *resultobj = 0;
25111 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25112 wxSize result;
25113 void *argp1 = 0 ;
25114 int res1 = 0 ;
25115 PyObject *swig_obj[1] ;
25116
25117 if (!args) SWIG_fail;
25118 swig_obj[0] = args;
25119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25120 if (!SWIG_IsOK(res1)) {
25121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25122 }
25123 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25124 {
25125 PyThreadState* __tstate = wxPyBeginAllowThreads();
25126 result = (arg1)->GetMargins();
25127 wxPyEndAllowThreads(__tstate);
25128 if (PyErr_Occurred()) SWIG_fail;
25129 }
25130 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25131 return resultobj;
25132 fail:
25133 return NULL;
25134 }
25135
25136
25137 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25138 PyObject *resultobj = 0;
25139 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25140 int result;
25141 void *argp1 = 0 ;
25142 int res1 = 0 ;
25143 PyObject *swig_obj[1] ;
25144
25145 if (!args) SWIG_fail;
25146 swig_obj[0] = args;
25147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25148 if (!SWIG_IsOK(res1)) {
25149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25150 }
25151 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25152 {
25153 PyThreadState* __tstate = wxPyBeginAllowThreads();
25154 result = (int)(arg1)->GetToolPacking();
25155 wxPyEndAllowThreads(__tstate);
25156 if (PyErr_Occurred()) SWIG_fail;
25157 }
25158 resultobj = SWIG_From_int(static_cast< int >(result));
25159 return resultobj;
25160 fail:
25161 return NULL;
25162 }
25163
25164
25165 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25166 PyObject *resultobj = 0;
25167 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25168 int result;
25169 void *argp1 = 0 ;
25170 int res1 = 0 ;
25171 PyObject *swig_obj[1] ;
25172
25173 if (!args) SWIG_fail;
25174 swig_obj[0] = args;
25175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25176 if (!SWIG_IsOK(res1)) {
25177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25178 }
25179 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25180 {
25181 PyThreadState* __tstate = wxPyBeginAllowThreads();
25182 result = (int)(arg1)->GetToolSeparation();
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 resultobj = SWIG_From_int(static_cast< int >(result));
25187 return resultobj;
25188 fail:
25189 return NULL;
25190 }
25191
25192
25193 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj = 0;
25195 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25196 int arg2 ;
25197 void *argp1 = 0 ;
25198 int res1 = 0 ;
25199 int val2 ;
25200 int ecode2 = 0 ;
25201 PyObject * obj0 = 0 ;
25202 PyObject * obj1 = 0 ;
25203 char * kwnames[] = {
25204 (char *) "self",(char *) "nRows", NULL
25205 };
25206
25207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25211 }
25212 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25213 ecode2 = SWIG_AsVal_int(obj1, &val2);
25214 if (!SWIG_IsOK(ecode2)) {
25215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25216 }
25217 arg2 = static_cast< int >(val2);
25218 {
25219 PyThreadState* __tstate = wxPyBeginAllowThreads();
25220 (arg1)->SetRows(arg2);
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 resultobj = SWIG_Py_Void();
25225 return resultobj;
25226 fail:
25227 return NULL;
25228 }
25229
25230
25231 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj = 0;
25233 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25234 int arg2 ;
25235 int arg3 ;
25236 void *argp1 = 0 ;
25237 int res1 = 0 ;
25238 int val2 ;
25239 int ecode2 = 0 ;
25240 int val3 ;
25241 int ecode3 = 0 ;
25242 PyObject * obj0 = 0 ;
25243 PyObject * obj1 = 0 ;
25244 PyObject * obj2 = 0 ;
25245 char * kwnames[] = {
25246 (char *) "self",(char *) "rows",(char *) "cols", NULL
25247 };
25248
25249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25251 if (!SWIG_IsOK(res1)) {
25252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25253 }
25254 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25255 ecode2 = SWIG_AsVal_int(obj1, &val2);
25256 if (!SWIG_IsOK(ecode2)) {
25257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25258 }
25259 arg2 = static_cast< int >(val2);
25260 ecode3 = SWIG_AsVal_int(obj2, &val3);
25261 if (!SWIG_IsOK(ecode3)) {
25262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25263 }
25264 arg3 = static_cast< int >(val3);
25265 {
25266 PyThreadState* __tstate = wxPyBeginAllowThreads();
25267 (arg1)->SetMaxRowsCols(arg2,arg3);
25268 wxPyEndAllowThreads(__tstate);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 resultobj = SWIG_Py_Void();
25272 return resultobj;
25273 fail:
25274 return NULL;
25275 }
25276
25277
25278 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25279 PyObject *resultobj = 0;
25280 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25281 int result;
25282 void *argp1 = 0 ;
25283 int res1 = 0 ;
25284 PyObject *swig_obj[1] ;
25285
25286 if (!args) SWIG_fail;
25287 swig_obj[0] = args;
25288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25289 if (!SWIG_IsOK(res1)) {
25290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25291 }
25292 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25293 {
25294 PyThreadState* __tstate = wxPyBeginAllowThreads();
25295 result = (int)(arg1)->GetMaxRows();
25296 wxPyEndAllowThreads(__tstate);
25297 if (PyErr_Occurred()) SWIG_fail;
25298 }
25299 resultobj = SWIG_From_int(static_cast< int >(result));
25300 return resultobj;
25301 fail:
25302 return NULL;
25303 }
25304
25305
25306 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25307 PyObject *resultobj = 0;
25308 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25309 int result;
25310 void *argp1 = 0 ;
25311 int res1 = 0 ;
25312 PyObject *swig_obj[1] ;
25313
25314 if (!args) SWIG_fail;
25315 swig_obj[0] = args;
25316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25317 if (!SWIG_IsOK(res1)) {
25318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25319 }
25320 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25321 {
25322 PyThreadState* __tstate = wxPyBeginAllowThreads();
25323 result = (int)(arg1)->GetMaxCols();
25324 wxPyEndAllowThreads(__tstate);
25325 if (PyErr_Occurred()) SWIG_fail;
25326 }
25327 resultobj = SWIG_From_int(static_cast< int >(result));
25328 return resultobj;
25329 fail:
25330 return NULL;
25331 }
25332
25333
25334 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25335 PyObject *resultobj = 0;
25336 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25337 wxSize *arg2 = 0 ;
25338 void *argp1 = 0 ;
25339 int res1 = 0 ;
25340 wxSize temp2 ;
25341 PyObject * obj0 = 0 ;
25342 PyObject * obj1 = 0 ;
25343 char * kwnames[] = {
25344 (char *) "self",(char *) "size", NULL
25345 };
25346
25347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25349 if (!SWIG_IsOK(res1)) {
25350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25351 }
25352 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25353 {
25354 arg2 = &temp2;
25355 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25356 }
25357 {
25358 PyThreadState* __tstate = wxPyBeginAllowThreads();
25359 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25360 wxPyEndAllowThreads(__tstate);
25361 if (PyErr_Occurred()) SWIG_fail;
25362 }
25363 resultobj = SWIG_Py_Void();
25364 return resultobj;
25365 fail:
25366 return NULL;
25367 }
25368
25369
25370 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25371 PyObject *resultobj = 0;
25372 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25373 wxSize result;
25374 void *argp1 = 0 ;
25375 int res1 = 0 ;
25376 PyObject *swig_obj[1] ;
25377
25378 if (!args) SWIG_fail;
25379 swig_obj[0] = args;
25380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25381 if (!SWIG_IsOK(res1)) {
25382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25383 }
25384 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25385 {
25386 PyThreadState* __tstate = wxPyBeginAllowThreads();
25387 result = (arg1)->GetToolBitmapSize();
25388 wxPyEndAllowThreads(__tstate);
25389 if (PyErr_Occurred()) SWIG_fail;
25390 }
25391 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25392 return resultobj;
25393 fail:
25394 return NULL;
25395 }
25396
25397
25398 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25399 PyObject *resultobj = 0;
25400 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25401 wxSize result;
25402 void *argp1 = 0 ;
25403 int res1 = 0 ;
25404 PyObject *swig_obj[1] ;
25405
25406 if (!args) SWIG_fail;
25407 swig_obj[0] = args;
25408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25409 if (!SWIG_IsOK(res1)) {
25410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25411 }
25412 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25413 {
25414 PyThreadState* __tstate = wxPyBeginAllowThreads();
25415 result = (arg1)->GetToolSize();
25416 wxPyEndAllowThreads(__tstate);
25417 if (PyErr_Occurred()) SWIG_fail;
25418 }
25419 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25420 return resultobj;
25421 fail:
25422 return NULL;
25423 }
25424
25425
25426 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25427 PyObject *resultobj = 0;
25428 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25429 int arg2 ;
25430 int arg3 ;
25431 wxToolBarToolBase *result = 0 ;
25432 void *argp1 = 0 ;
25433 int res1 = 0 ;
25434 int val2 ;
25435 int ecode2 = 0 ;
25436 int val3 ;
25437 int ecode3 = 0 ;
25438 PyObject * obj0 = 0 ;
25439 PyObject * obj1 = 0 ;
25440 PyObject * obj2 = 0 ;
25441 char * kwnames[] = {
25442 (char *) "self",(char *) "x",(char *) "y", NULL
25443 };
25444
25445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25447 if (!SWIG_IsOK(res1)) {
25448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25449 }
25450 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25451 ecode2 = SWIG_AsVal_int(obj1, &val2);
25452 if (!SWIG_IsOK(ecode2)) {
25453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25454 }
25455 arg2 = static_cast< int >(val2);
25456 ecode3 = SWIG_AsVal_int(obj2, &val3);
25457 if (!SWIG_IsOK(ecode3)) {
25458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25459 }
25460 arg3 = static_cast< int >(val3);
25461 {
25462 PyThreadState* __tstate = wxPyBeginAllowThreads();
25463 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25464 wxPyEndAllowThreads(__tstate);
25465 if (PyErr_Occurred()) SWIG_fail;
25466 }
25467 {
25468 resultobj = wxPyMake_wxObject(result, (bool)0);
25469 }
25470 return resultobj;
25471 fail:
25472 return NULL;
25473 }
25474
25475
25476 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25477 PyObject *resultobj = 0;
25478 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25479 int arg2 ;
25480 wxToolBarToolBase *result = 0 ;
25481 void *argp1 = 0 ;
25482 int res1 = 0 ;
25483 int val2 ;
25484 int ecode2 = 0 ;
25485 PyObject * obj0 = 0 ;
25486 PyObject * obj1 = 0 ;
25487 char * kwnames[] = {
25488 (char *) "self",(char *) "toolid", NULL
25489 };
25490
25491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25493 if (!SWIG_IsOK(res1)) {
25494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25495 }
25496 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25497 ecode2 = SWIG_AsVal_int(obj1, &val2);
25498 if (!SWIG_IsOK(ecode2)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25500 }
25501 arg2 = static_cast< int >(val2);
25502 {
25503 PyThreadState* __tstate = wxPyBeginAllowThreads();
25504 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25505 wxPyEndAllowThreads(__tstate);
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 {
25509 resultobj = wxPyMake_wxObject(result, (bool)0);
25510 }
25511 return resultobj;
25512 fail:
25513 return NULL;
25514 }
25515
25516
25517 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25518 PyObject *resultobj = 0;
25519 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25520 bool result;
25521 void *argp1 = 0 ;
25522 int res1 = 0 ;
25523 PyObject *swig_obj[1] ;
25524
25525 if (!args) SWIG_fail;
25526 swig_obj[0] = args;
25527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25528 if (!SWIG_IsOK(res1)) {
25529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25530 }
25531 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25532 {
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 result = (bool)(arg1)->IsVertical();
25535 wxPyEndAllowThreads(__tstate);
25536 if (PyErr_Occurred()) SWIG_fail;
25537 }
25538 {
25539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25540 }
25541 return resultobj;
25542 fail:
25543 return NULL;
25544 }
25545
25546
25547 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25548 PyObject *resultobj = 0;
25549 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25550 size_t result;
25551 void *argp1 = 0 ;
25552 int res1 = 0 ;
25553 PyObject *swig_obj[1] ;
25554
25555 if (!args) SWIG_fail;
25556 swig_obj[0] = args;
25557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25558 if (!SWIG_IsOK(res1)) {
25559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25560 }
25561 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25562 {
25563 PyThreadState* __tstate = wxPyBeginAllowThreads();
25564 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25565 wxPyEndAllowThreads(__tstate);
25566 if (PyErr_Occurred()) SWIG_fail;
25567 }
25568 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25569 return resultobj;
25570 fail:
25571 return NULL;
25572 }
25573
25574
25575 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25576 PyObject *obj;
25577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25578 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25579 return SWIG_Py_Void();
25580 }
25581
25582 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25583 PyObject *resultobj = 0;
25584 wxWindow *arg1 = (wxWindow *) 0 ;
25585 int arg2 = (int) -1 ;
25586 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25587 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25588 wxSize const &arg4_defvalue = wxDefaultSize ;
25589 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25590 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25591 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25592 wxString *arg6 = (wxString *) &arg6_defvalue ;
25593 wxToolBar *result = 0 ;
25594 void *argp1 = 0 ;
25595 int res1 = 0 ;
25596 int val2 ;
25597 int ecode2 = 0 ;
25598 wxPoint temp3 ;
25599 wxSize temp4 ;
25600 long val5 ;
25601 int ecode5 = 0 ;
25602 bool temp6 = false ;
25603 PyObject * obj0 = 0 ;
25604 PyObject * obj1 = 0 ;
25605 PyObject * obj2 = 0 ;
25606 PyObject * obj3 = 0 ;
25607 PyObject * obj4 = 0 ;
25608 PyObject * obj5 = 0 ;
25609 char * kwnames[] = {
25610 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25611 };
25612
25613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25615 if (!SWIG_IsOK(res1)) {
25616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25617 }
25618 arg1 = reinterpret_cast< wxWindow * >(argp1);
25619 if (obj1) {
25620 ecode2 = SWIG_AsVal_int(obj1, &val2);
25621 if (!SWIG_IsOK(ecode2)) {
25622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25623 }
25624 arg2 = static_cast< int >(val2);
25625 }
25626 if (obj2) {
25627 {
25628 arg3 = &temp3;
25629 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25630 }
25631 }
25632 if (obj3) {
25633 {
25634 arg4 = &temp4;
25635 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25636 }
25637 }
25638 if (obj4) {
25639 ecode5 = SWIG_AsVal_long(obj4, &val5);
25640 if (!SWIG_IsOK(ecode5)) {
25641 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25642 }
25643 arg5 = static_cast< long >(val5);
25644 }
25645 if (obj5) {
25646 {
25647 arg6 = wxString_in_helper(obj5);
25648 if (arg6 == NULL) SWIG_fail;
25649 temp6 = true;
25650 }
25651 }
25652 {
25653 if (!wxPyCheckForApp()) SWIG_fail;
25654 PyThreadState* __tstate = wxPyBeginAllowThreads();
25655 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25656 wxPyEndAllowThreads(__tstate);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
25659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25660 {
25661 if (temp6)
25662 delete arg6;
25663 }
25664 return resultobj;
25665 fail:
25666 {
25667 if (temp6)
25668 delete arg6;
25669 }
25670 return NULL;
25671 }
25672
25673
25674 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25675 PyObject *resultobj = 0;
25676 wxToolBar *result = 0 ;
25677
25678 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25679 {
25680 if (!wxPyCheckForApp()) SWIG_fail;
25681 PyThreadState* __tstate = wxPyBeginAllowThreads();
25682 result = (wxToolBar *)new wxToolBar();
25683 wxPyEndAllowThreads(__tstate);
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25687 return resultobj;
25688 fail:
25689 return NULL;
25690 }
25691
25692
25693 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj = 0;
25695 wxToolBar *arg1 = (wxToolBar *) 0 ;
25696 wxWindow *arg2 = (wxWindow *) 0 ;
25697 int arg3 = (int) -1 ;
25698 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25699 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25700 wxSize const &arg5_defvalue = wxDefaultSize ;
25701 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25702 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25703 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25704 wxString *arg7 = (wxString *) &arg7_defvalue ;
25705 bool result;
25706 void *argp1 = 0 ;
25707 int res1 = 0 ;
25708 void *argp2 = 0 ;
25709 int res2 = 0 ;
25710 int val3 ;
25711 int ecode3 = 0 ;
25712 wxPoint temp4 ;
25713 wxSize temp5 ;
25714 long val6 ;
25715 int ecode6 = 0 ;
25716 bool temp7 = false ;
25717 PyObject * obj0 = 0 ;
25718 PyObject * obj1 = 0 ;
25719 PyObject * obj2 = 0 ;
25720 PyObject * obj3 = 0 ;
25721 PyObject * obj4 = 0 ;
25722 PyObject * obj5 = 0 ;
25723 PyObject * obj6 = 0 ;
25724 char * kwnames[] = {
25725 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25726 };
25727
25728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25730 if (!SWIG_IsOK(res1)) {
25731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25732 }
25733 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25735 if (!SWIG_IsOK(res2)) {
25736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25737 }
25738 arg2 = reinterpret_cast< wxWindow * >(argp2);
25739 if (obj2) {
25740 ecode3 = SWIG_AsVal_int(obj2, &val3);
25741 if (!SWIG_IsOK(ecode3)) {
25742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25743 }
25744 arg3 = static_cast< int >(val3);
25745 }
25746 if (obj3) {
25747 {
25748 arg4 = &temp4;
25749 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25750 }
25751 }
25752 if (obj4) {
25753 {
25754 arg5 = &temp5;
25755 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25756 }
25757 }
25758 if (obj5) {
25759 ecode6 = SWIG_AsVal_long(obj5, &val6);
25760 if (!SWIG_IsOK(ecode6)) {
25761 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25762 }
25763 arg6 = static_cast< long >(val6);
25764 }
25765 if (obj6) {
25766 {
25767 arg7 = wxString_in_helper(obj6);
25768 if (arg7 == NULL) SWIG_fail;
25769 temp7 = true;
25770 }
25771 }
25772 {
25773 PyThreadState* __tstate = wxPyBeginAllowThreads();
25774 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25775 wxPyEndAllowThreads(__tstate);
25776 if (PyErr_Occurred()) SWIG_fail;
25777 }
25778 {
25779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25780 }
25781 {
25782 if (temp7)
25783 delete arg7;
25784 }
25785 return resultobj;
25786 fail:
25787 {
25788 if (temp7)
25789 delete arg7;
25790 }
25791 return NULL;
25792 }
25793
25794
25795 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25796 PyObject *resultobj = 0;
25797 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25798 SwigValueWrapper<wxVisualAttributes > result;
25799 int val1 ;
25800 int ecode1 = 0 ;
25801 PyObject * obj0 = 0 ;
25802 char * kwnames[] = {
25803 (char *) "variant", NULL
25804 };
25805
25806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25807 if (obj0) {
25808 ecode1 = SWIG_AsVal_int(obj0, &val1);
25809 if (!SWIG_IsOK(ecode1)) {
25810 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25811 }
25812 arg1 = static_cast< wxWindowVariant >(val1);
25813 }
25814 {
25815 if (!wxPyCheckForApp()) SWIG_fail;
25816 PyThreadState* __tstate = wxPyBeginAllowThreads();
25817 result = wxToolBar::GetClassDefaultAttributes(arg1);
25818 wxPyEndAllowThreads(__tstate);
25819 if (PyErr_Occurred()) SWIG_fail;
25820 }
25821 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25822 return resultobj;
25823 fail:
25824 return NULL;
25825 }
25826
25827
25828 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25829 PyObject *obj;
25830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25831 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25832 return SWIG_Py_Void();
25833 }
25834
25835 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25836 return SWIG_Python_InitShadowInstance(args);
25837 }
25838
25839 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25840 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25841 return 1;
25842 }
25843
25844
25845 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25846 PyObject *pyobj = 0;
25847
25848 {
25849 #if wxUSE_UNICODE
25850 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25851 #else
25852 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25853 #endif
25854 }
25855 return pyobj;
25856 }
25857
25858
25859 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25860 PyObject *resultobj = 0;
25861 wxColour const &arg1_defvalue = wxNullColour ;
25862 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25863 wxColour const &arg2_defvalue = wxNullColour ;
25864 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25865 wxFont const &arg3_defvalue = wxNullFont ;
25866 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25867 wxListItemAttr *result = 0 ;
25868 wxColour temp1 ;
25869 wxColour temp2 ;
25870 void *argp3 = 0 ;
25871 int res3 = 0 ;
25872 PyObject * obj0 = 0 ;
25873 PyObject * obj1 = 0 ;
25874 PyObject * obj2 = 0 ;
25875 char * kwnames[] = {
25876 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25877 };
25878
25879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25880 if (obj0) {
25881 {
25882 arg1 = &temp1;
25883 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25884 }
25885 }
25886 if (obj1) {
25887 {
25888 arg2 = &temp2;
25889 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25890 }
25891 }
25892 if (obj2) {
25893 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25894 if (!SWIG_IsOK(res3)) {
25895 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25896 }
25897 if (!argp3) {
25898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25899 }
25900 arg3 = reinterpret_cast< wxFont * >(argp3);
25901 }
25902 {
25903 PyThreadState* __tstate = wxPyBeginAllowThreads();
25904 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25905 wxPyEndAllowThreads(__tstate);
25906 if (PyErr_Occurred()) SWIG_fail;
25907 }
25908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25909 return resultobj;
25910 fail:
25911 return NULL;
25912 }
25913
25914
25915 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25916 PyObject *resultobj = 0;
25917 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25918 void *argp1 = 0 ;
25919 int res1 = 0 ;
25920 PyObject *swig_obj[1] ;
25921
25922 if (!args) SWIG_fail;
25923 swig_obj[0] = args;
25924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25925 if (!SWIG_IsOK(res1)) {
25926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25927 }
25928 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 delete arg1;
25932
25933 wxPyEndAllowThreads(__tstate);
25934 if (PyErr_Occurred()) SWIG_fail;
25935 }
25936 resultobj = SWIG_Py_Void();
25937 return resultobj;
25938 fail:
25939 return NULL;
25940 }
25941
25942
25943 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25944 PyObject *resultobj = 0;
25945 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25946 wxColour *arg2 = 0 ;
25947 void *argp1 = 0 ;
25948 int res1 = 0 ;
25949 wxColour temp2 ;
25950 PyObject * obj0 = 0 ;
25951 PyObject * obj1 = 0 ;
25952 char * kwnames[] = {
25953 (char *) "self",(char *) "colText", NULL
25954 };
25955
25956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25958 if (!SWIG_IsOK(res1)) {
25959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25960 }
25961 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25962 {
25963 arg2 = &temp2;
25964 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25965 }
25966 {
25967 PyThreadState* __tstate = wxPyBeginAllowThreads();
25968 (arg1)->SetTextColour((wxColour const &)*arg2);
25969 wxPyEndAllowThreads(__tstate);
25970 if (PyErr_Occurred()) SWIG_fail;
25971 }
25972 resultobj = SWIG_Py_Void();
25973 return resultobj;
25974 fail:
25975 return NULL;
25976 }
25977
25978
25979 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25980 PyObject *resultobj = 0;
25981 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25982 wxColour *arg2 = 0 ;
25983 void *argp1 = 0 ;
25984 int res1 = 0 ;
25985 wxColour temp2 ;
25986 PyObject * obj0 = 0 ;
25987 PyObject * obj1 = 0 ;
25988 char * kwnames[] = {
25989 (char *) "self",(char *) "colBack", NULL
25990 };
25991
25992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25994 if (!SWIG_IsOK(res1)) {
25995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25996 }
25997 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25998 {
25999 arg2 = &temp2;
26000 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26001 }
26002 {
26003 PyThreadState* __tstate = wxPyBeginAllowThreads();
26004 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26005 wxPyEndAllowThreads(__tstate);
26006 if (PyErr_Occurred()) SWIG_fail;
26007 }
26008 resultobj = SWIG_Py_Void();
26009 return resultobj;
26010 fail:
26011 return NULL;
26012 }
26013
26014
26015 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26016 PyObject *resultobj = 0;
26017 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26018 wxFont *arg2 = 0 ;
26019 void *argp1 = 0 ;
26020 int res1 = 0 ;
26021 void *argp2 = 0 ;
26022 int res2 = 0 ;
26023 PyObject * obj0 = 0 ;
26024 PyObject * obj1 = 0 ;
26025 char * kwnames[] = {
26026 (char *) "self",(char *) "font", NULL
26027 };
26028
26029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26031 if (!SWIG_IsOK(res1)) {
26032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26033 }
26034 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26036 if (!SWIG_IsOK(res2)) {
26037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26038 }
26039 if (!argp2) {
26040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26041 }
26042 arg2 = reinterpret_cast< wxFont * >(argp2);
26043 {
26044 PyThreadState* __tstate = wxPyBeginAllowThreads();
26045 (arg1)->SetFont((wxFont const &)*arg2);
26046 wxPyEndAllowThreads(__tstate);
26047 if (PyErr_Occurred()) SWIG_fail;
26048 }
26049 resultobj = SWIG_Py_Void();
26050 return resultobj;
26051 fail:
26052 return NULL;
26053 }
26054
26055
26056 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26057 PyObject *resultobj = 0;
26058 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26059 bool result;
26060 void *argp1 = 0 ;
26061 int res1 = 0 ;
26062 PyObject *swig_obj[1] ;
26063
26064 if (!args) SWIG_fail;
26065 swig_obj[0] = args;
26066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26067 if (!SWIG_IsOK(res1)) {
26068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26069 }
26070 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26071 {
26072 PyThreadState* __tstate = wxPyBeginAllowThreads();
26073 result = (bool)(arg1)->HasTextColour();
26074 wxPyEndAllowThreads(__tstate);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 {
26078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26079 }
26080 return resultobj;
26081 fail:
26082 return NULL;
26083 }
26084
26085
26086 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26087 PyObject *resultobj = 0;
26088 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26089 bool result;
26090 void *argp1 = 0 ;
26091 int res1 = 0 ;
26092 PyObject *swig_obj[1] ;
26093
26094 if (!args) SWIG_fail;
26095 swig_obj[0] = args;
26096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26097 if (!SWIG_IsOK(res1)) {
26098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26099 }
26100 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26101 {
26102 PyThreadState* __tstate = wxPyBeginAllowThreads();
26103 result = (bool)(arg1)->HasBackgroundColour();
26104 wxPyEndAllowThreads(__tstate);
26105 if (PyErr_Occurred()) SWIG_fail;
26106 }
26107 {
26108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26109 }
26110 return resultobj;
26111 fail:
26112 return NULL;
26113 }
26114
26115
26116 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26117 PyObject *resultobj = 0;
26118 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26119 bool result;
26120 void *argp1 = 0 ;
26121 int res1 = 0 ;
26122 PyObject *swig_obj[1] ;
26123
26124 if (!args) SWIG_fail;
26125 swig_obj[0] = args;
26126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26127 if (!SWIG_IsOK(res1)) {
26128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26129 }
26130 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26131 {
26132 PyThreadState* __tstate = wxPyBeginAllowThreads();
26133 result = (bool)(arg1)->HasFont();
26134 wxPyEndAllowThreads(__tstate);
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 {
26138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26139 }
26140 return resultobj;
26141 fail:
26142 return NULL;
26143 }
26144
26145
26146 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26147 PyObject *resultobj = 0;
26148 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26149 wxColour result;
26150 void *argp1 = 0 ;
26151 int res1 = 0 ;
26152 PyObject *swig_obj[1] ;
26153
26154 if (!args) SWIG_fail;
26155 swig_obj[0] = args;
26156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26157 if (!SWIG_IsOK(res1)) {
26158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26159 }
26160 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26161 {
26162 PyThreadState* __tstate = wxPyBeginAllowThreads();
26163 result = (arg1)->GetTextColour();
26164 wxPyEndAllowThreads(__tstate);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26168 return resultobj;
26169 fail:
26170 return NULL;
26171 }
26172
26173
26174 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26175 PyObject *resultobj = 0;
26176 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26177 wxColour result;
26178 void *argp1 = 0 ;
26179 int res1 = 0 ;
26180 PyObject *swig_obj[1] ;
26181
26182 if (!args) SWIG_fail;
26183 swig_obj[0] = args;
26184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26187 }
26188 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26189 {
26190 PyThreadState* __tstate = wxPyBeginAllowThreads();
26191 result = (arg1)->GetBackgroundColour();
26192 wxPyEndAllowThreads(__tstate);
26193 if (PyErr_Occurred()) SWIG_fail;
26194 }
26195 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26196 return resultobj;
26197 fail:
26198 return NULL;
26199 }
26200
26201
26202 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26203 PyObject *resultobj = 0;
26204 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26205 wxFont result;
26206 void *argp1 = 0 ;
26207 int res1 = 0 ;
26208 PyObject *swig_obj[1] ;
26209
26210 if (!args) SWIG_fail;
26211 swig_obj[0] = args;
26212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26213 if (!SWIG_IsOK(res1)) {
26214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26215 }
26216 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26217 {
26218 PyThreadState* __tstate = wxPyBeginAllowThreads();
26219 result = (arg1)->GetFont();
26220 wxPyEndAllowThreads(__tstate);
26221 if (PyErr_Occurred()) SWIG_fail;
26222 }
26223 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26224 return resultobj;
26225 fail:
26226 return NULL;
26227 }
26228
26229
26230 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26231 PyObject *resultobj = 0;
26232 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26233 wxListItemAttr *arg2 = 0 ;
26234 void *argp1 = 0 ;
26235 int res1 = 0 ;
26236 void *argp2 = 0 ;
26237 int res2 = 0 ;
26238 PyObject * obj0 = 0 ;
26239 PyObject * obj1 = 0 ;
26240 char * kwnames[] = {
26241 (char *) "self",(char *) "source", NULL
26242 };
26243
26244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26246 if (!SWIG_IsOK(res1)) {
26247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26248 }
26249 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26251 if (!SWIG_IsOK(res2)) {
26252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26253 }
26254 if (!argp2) {
26255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26256 }
26257 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26258 {
26259 PyThreadState* __tstate = wxPyBeginAllowThreads();
26260 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26261 wxPyEndAllowThreads(__tstate);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 resultobj = SWIG_Py_Void();
26265 return resultobj;
26266 fail:
26267 return NULL;
26268 }
26269
26270
26271 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26272 PyObject *resultobj = 0;
26273 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26274 void *argp1 = 0 ;
26275 int res1 = 0 ;
26276 PyObject *swig_obj[1] ;
26277
26278 if (!args) SWIG_fail;
26279 swig_obj[0] = args;
26280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26281 if (!SWIG_IsOK(res1)) {
26282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26283 }
26284 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26285 {
26286 PyThreadState* __tstate = wxPyBeginAllowThreads();
26287 wxListItemAttr_Destroy(arg1);
26288 wxPyEndAllowThreads(__tstate);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 }
26291 resultobj = SWIG_Py_Void();
26292 return resultobj;
26293 fail:
26294 return NULL;
26295 }
26296
26297
26298 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26299 PyObject *obj;
26300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26301 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26302 return SWIG_Py_Void();
26303 }
26304
26305 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26306 return SWIG_Python_InitShadowInstance(args);
26307 }
26308
26309 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26310 PyObject *resultobj = 0;
26311 wxListItem *result = 0 ;
26312
26313 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26314 {
26315 PyThreadState* __tstate = wxPyBeginAllowThreads();
26316 result = (wxListItem *)new wxListItem();
26317 wxPyEndAllowThreads(__tstate);
26318 if (PyErr_Occurred()) SWIG_fail;
26319 }
26320 {
26321 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26322 }
26323 return resultobj;
26324 fail:
26325 return NULL;
26326 }
26327
26328
26329 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26330 PyObject *resultobj = 0;
26331 wxListItem *arg1 = (wxListItem *) 0 ;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 PyObject *swig_obj[1] ;
26335
26336 if (!args) SWIG_fail;
26337 swig_obj[0] = args;
26338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26339 if (!SWIG_IsOK(res1)) {
26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26341 }
26342 arg1 = reinterpret_cast< wxListItem * >(argp1);
26343 {
26344 PyThreadState* __tstate = wxPyBeginAllowThreads();
26345 delete arg1;
26346
26347 wxPyEndAllowThreads(__tstate);
26348 if (PyErr_Occurred()) SWIG_fail;
26349 }
26350 resultobj = SWIG_Py_Void();
26351 return resultobj;
26352 fail:
26353 return NULL;
26354 }
26355
26356
26357 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26358 PyObject *resultobj = 0;
26359 wxListItem *arg1 = (wxListItem *) 0 ;
26360 void *argp1 = 0 ;
26361 int res1 = 0 ;
26362 PyObject *swig_obj[1] ;
26363
26364 if (!args) SWIG_fail;
26365 swig_obj[0] = args;
26366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26367 if (!SWIG_IsOK(res1)) {
26368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26369 }
26370 arg1 = reinterpret_cast< wxListItem * >(argp1);
26371 {
26372 PyThreadState* __tstate = wxPyBeginAllowThreads();
26373 (arg1)->Clear();
26374 wxPyEndAllowThreads(__tstate);
26375 if (PyErr_Occurred()) SWIG_fail;
26376 }
26377 resultobj = SWIG_Py_Void();
26378 return resultobj;
26379 fail:
26380 return NULL;
26381 }
26382
26383
26384 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26385 PyObject *resultobj = 0;
26386 wxListItem *arg1 = (wxListItem *) 0 ;
26387 void *argp1 = 0 ;
26388 int res1 = 0 ;
26389 PyObject *swig_obj[1] ;
26390
26391 if (!args) SWIG_fail;
26392 swig_obj[0] = args;
26393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26396 }
26397 arg1 = reinterpret_cast< wxListItem * >(argp1);
26398 {
26399 PyThreadState* __tstate = wxPyBeginAllowThreads();
26400 (arg1)->ClearAttributes();
26401 wxPyEndAllowThreads(__tstate);
26402 if (PyErr_Occurred()) SWIG_fail;
26403 }
26404 resultobj = SWIG_Py_Void();
26405 return resultobj;
26406 fail:
26407 return NULL;
26408 }
26409
26410
26411 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26412 PyObject *resultobj = 0;
26413 wxListItem *arg1 = (wxListItem *) 0 ;
26414 long arg2 ;
26415 void *argp1 = 0 ;
26416 int res1 = 0 ;
26417 long val2 ;
26418 int ecode2 = 0 ;
26419 PyObject * obj0 = 0 ;
26420 PyObject * obj1 = 0 ;
26421 char * kwnames[] = {
26422 (char *) "self",(char *) "mask", NULL
26423 };
26424
26425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26427 if (!SWIG_IsOK(res1)) {
26428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26429 }
26430 arg1 = reinterpret_cast< wxListItem * >(argp1);
26431 ecode2 = SWIG_AsVal_long(obj1, &val2);
26432 if (!SWIG_IsOK(ecode2)) {
26433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26434 }
26435 arg2 = static_cast< long >(val2);
26436 {
26437 PyThreadState* __tstate = wxPyBeginAllowThreads();
26438 (arg1)->SetMask(arg2);
26439 wxPyEndAllowThreads(__tstate);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_Py_Void();
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26450 PyObject *resultobj = 0;
26451 wxListItem *arg1 = (wxListItem *) 0 ;
26452 long arg2 ;
26453 void *argp1 = 0 ;
26454 int res1 = 0 ;
26455 long val2 ;
26456 int ecode2 = 0 ;
26457 PyObject * obj0 = 0 ;
26458 PyObject * obj1 = 0 ;
26459 char * kwnames[] = {
26460 (char *) "self",(char *) "id", NULL
26461 };
26462
26463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26465 if (!SWIG_IsOK(res1)) {
26466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26467 }
26468 arg1 = reinterpret_cast< wxListItem * >(argp1);
26469 ecode2 = SWIG_AsVal_long(obj1, &val2);
26470 if (!SWIG_IsOK(ecode2)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26472 }
26473 arg2 = static_cast< long >(val2);
26474 {
26475 PyThreadState* __tstate = wxPyBeginAllowThreads();
26476 (arg1)->SetId(arg2);
26477 wxPyEndAllowThreads(__tstate);
26478 if (PyErr_Occurred()) SWIG_fail;
26479 }
26480 resultobj = SWIG_Py_Void();
26481 return resultobj;
26482 fail:
26483 return NULL;
26484 }
26485
26486
26487 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26488 PyObject *resultobj = 0;
26489 wxListItem *arg1 = (wxListItem *) 0 ;
26490 int arg2 ;
26491 void *argp1 = 0 ;
26492 int res1 = 0 ;
26493 int val2 ;
26494 int ecode2 = 0 ;
26495 PyObject * obj0 = 0 ;
26496 PyObject * obj1 = 0 ;
26497 char * kwnames[] = {
26498 (char *) "self",(char *) "col", NULL
26499 };
26500
26501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26503 if (!SWIG_IsOK(res1)) {
26504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26505 }
26506 arg1 = reinterpret_cast< wxListItem * >(argp1);
26507 ecode2 = SWIG_AsVal_int(obj1, &val2);
26508 if (!SWIG_IsOK(ecode2)) {
26509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26510 }
26511 arg2 = static_cast< int >(val2);
26512 {
26513 PyThreadState* __tstate = wxPyBeginAllowThreads();
26514 (arg1)->SetColumn(arg2);
26515 wxPyEndAllowThreads(__tstate);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 }
26518 resultobj = SWIG_Py_Void();
26519 return resultobj;
26520 fail:
26521 return NULL;
26522 }
26523
26524
26525 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26526 PyObject *resultobj = 0;
26527 wxListItem *arg1 = (wxListItem *) 0 ;
26528 long arg2 ;
26529 void *argp1 = 0 ;
26530 int res1 = 0 ;
26531 long val2 ;
26532 int ecode2 = 0 ;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 char * kwnames[] = {
26536 (char *) "self",(char *) "state", NULL
26537 };
26538
26539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26543 }
26544 arg1 = reinterpret_cast< wxListItem * >(argp1);
26545 ecode2 = SWIG_AsVal_long(obj1, &val2);
26546 if (!SWIG_IsOK(ecode2)) {
26547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26548 }
26549 arg2 = static_cast< long >(val2);
26550 {
26551 PyThreadState* __tstate = wxPyBeginAllowThreads();
26552 (arg1)->SetState(arg2);
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 return resultobj;
26558 fail:
26559 return NULL;
26560 }
26561
26562
26563 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj = 0;
26565 wxListItem *arg1 = (wxListItem *) 0 ;
26566 long arg2 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 long val2 ;
26570 int ecode2 = 0 ;
26571 PyObject * obj0 = 0 ;
26572 PyObject * obj1 = 0 ;
26573 char * kwnames[] = {
26574 (char *) "self",(char *) "stateMask", NULL
26575 };
26576
26577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26581 }
26582 arg1 = reinterpret_cast< wxListItem * >(argp1);
26583 ecode2 = SWIG_AsVal_long(obj1, &val2);
26584 if (!SWIG_IsOK(ecode2)) {
26585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26586 }
26587 arg2 = static_cast< long >(val2);
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 (arg1)->SetStateMask(arg2);
26591 wxPyEndAllowThreads(__tstate);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26602 PyObject *resultobj = 0;
26603 wxListItem *arg1 = (wxListItem *) 0 ;
26604 wxString *arg2 = 0 ;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 bool temp2 = false ;
26608 PyObject * obj0 = 0 ;
26609 PyObject * obj1 = 0 ;
26610 char * kwnames[] = {
26611 (char *) "self",(char *) "text", NULL
26612 };
26613
26614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26616 if (!SWIG_IsOK(res1)) {
26617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26618 }
26619 arg1 = reinterpret_cast< wxListItem * >(argp1);
26620 {
26621 arg2 = wxString_in_helper(obj1);
26622 if (arg2 == NULL) SWIG_fail;
26623 temp2 = true;
26624 }
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 (arg1)->SetText((wxString const &)*arg2);
26628 wxPyEndAllowThreads(__tstate);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = SWIG_Py_Void();
26632 {
26633 if (temp2)
26634 delete arg2;
26635 }
26636 return resultobj;
26637 fail:
26638 {
26639 if (temp2)
26640 delete arg2;
26641 }
26642 return NULL;
26643 }
26644
26645
26646 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26647 PyObject *resultobj = 0;
26648 wxListItem *arg1 = (wxListItem *) 0 ;
26649 int arg2 ;
26650 void *argp1 = 0 ;
26651 int res1 = 0 ;
26652 int val2 ;
26653 int ecode2 = 0 ;
26654 PyObject * obj0 = 0 ;
26655 PyObject * obj1 = 0 ;
26656 char * kwnames[] = {
26657 (char *) "self",(char *) "image", NULL
26658 };
26659
26660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26662 if (!SWIG_IsOK(res1)) {
26663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26664 }
26665 arg1 = reinterpret_cast< wxListItem * >(argp1);
26666 ecode2 = SWIG_AsVal_int(obj1, &val2);
26667 if (!SWIG_IsOK(ecode2)) {
26668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26669 }
26670 arg2 = static_cast< int >(val2);
26671 {
26672 PyThreadState* __tstate = wxPyBeginAllowThreads();
26673 (arg1)->SetImage(arg2);
26674 wxPyEndAllowThreads(__tstate);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 resultobj = SWIG_Py_Void();
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj = 0;
26686 wxListItem *arg1 = (wxListItem *) 0 ;
26687 long arg2 ;
26688 void *argp1 = 0 ;
26689 int res1 = 0 ;
26690 long val2 ;
26691 int ecode2 = 0 ;
26692 PyObject * obj0 = 0 ;
26693 PyObject * obj1 = 0 ;
26694 char * kwnames[] = {
26695 (char *) "self",(char *) "data", NULL
26696 };
26697
26698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26700 if (!SWIG_IsOK(res1)) {
26701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26702 }
26703 arg1 = reinterpret_cast< wxListItem * >(argp1);
26704 ecode2 = SWIG_AsVal_long(obj1, &val2);
26705 if (!SWIG_IsOK(ecode2)) {
26706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26707 }
26708 arg2 = static_cast< long >(val2);
26709 {
26710 PyThreadState* __tstate = wxPyBeginAllowThreads();
26711 (arg1)->SetData(arg2);
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 resultobj = SWIG_Py_Void();
26716 return resultobj;
26717 fail:
26718 return NULL;
26719 }
26720
26721
26722 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26723 PyObject *resultobj = 0;
26724 wxListItem *arg1 = (wxListItem *) 0 ;
26725 int arg2 ;
26726 void *argp1 = 0 ;
26727 int res1 = 0 ;
26728 int val2 ;
26729 int ecode2 = 0 ;
26730 PyObject * obj0 = 0 ;
26731 PyObject * obj1 = 0 ;
26732 char * kwnames[] = {
26733 (char *) "self",(char *) "width", NULL
26734 };
26735
26736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26738 if (!SWIG_IsOK(res1)) {
26739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26740 }
26741 arg1 = reinterpret_cast< wxListItem * >(argp1);
26742 ecode2 = SWIG_AsVal_int(obj1, &val2);
26743 if (!SWIG_IsOK(ecode2)) {
26744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26745 }
26746 arg2 = static_cast< int >(val2);
26747 {
26748 PyThreadState* __tstate = wxPyBeginAllowThreads();
26749 (arg1)->SetWidth(arg2);
26750 wxPyEndAllowThreads(__tstate);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 }
26753 resultobj = SWIG_Py_Void();
26754 return resultobj;
26755 fail:
26756 return NULL;
26757 }
26758
26759
26760 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26761 PyObject *resultobj = 0;
26762 wxListItem *arg1 = (wxListItem *) 0 ;
26763 wxListColumnFormat arg2 ;
26764 void *argp1 = 0 ;
26765 int res1 = 0 ;
26766 int val2 ;
26767 int ecode2 = 0 ;
26768 PyObject * obj0 = 0 ;
26769 PyObject * obj1 = 0 ;
26770 char * kwnames[] = {
26771 (char *) "self",(char *) "align", NULL
26772 };
26773
26774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26776 if (!SWIG_IsOK(res1)) {
26777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26778 }
26779 arg1 = reinterpret_cast< wxListItem * >(argp1);
26780 ecode2 = SWIG_AsVal_int(obj1, &val2);
26781 if (!SWIG_IsOK(ecode2)) {
26782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26783 }
26784 arg2 = static_cast< wxListColumnFormat >(val2);
26785 {
26786 PyThreadState* __tstate = wxPyBeginAllowThreads();
26787 (arg1)->SetAlign(arg2);
26788 wxPyEndAllowThreads(__tstate);
26789 if (PyErr_Occurred()) SWIG_fail;
26790 }
26791 resultobj = SWIG_Py_Void();
26792 return resultobj;
26793 fail:
26794 return NULL;
26795 }
26796
26797
26798 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26799 PyObject *resultobj = 0;
26800 wxListItem *arg1 = (wxListItem *) 0 ;
26801 wxColour *arg2 = 0 ;
26802 void *argp1 = 0 ;
26803 int res1 = 0 ;
26804 wxColour temp2 ;
26805 PyObject * obj0 = 0 ;
26806 PyObject * obj1 = 0 ;
26807 char * kwnames[] = {
26808 (char *) "self",(char *) "colText", NULL
26809 };
26810
26811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26813 if (!SWIG_IsOK(res1)) {
26814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26815 }
26816 arg1 = reinterpret_cast< wxListItem * >(argp1);
26817 {
26818 arg2 = &temp2;
26819 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26820 }
26821 {
26822 PyThreadState* __tstate = wxPyBeginAllowThreads();
26823 (arg1)->SetTextColour((wxColour const &)*arg2);
26824 wxPyEndAllowThreads(__tstate);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 }
26827 resultobj = SWIG_Py_Void();
26828 return resultobj;
26829 fail:
26830 return NULL;
26831 }
26832
26833
26834 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26835 PyObject *resultobj = 0;
26836 wxListItem *arg1 = (wxListItem *) 0 ;
26837 wxColour *arg2 = 0 ;
26838 void *argp1 = 0 ;
26839 int res1 = 0 ;
26840 wxColour temp2 ;
26841 PyObject * obj0 = 0 ;
26842 PyObject * obj1 = 0 ;
26843 char * kwnames[] = {
26844 (char *) "self",(char *) "colBack", NULL
26845 };
26846
26847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26849 if (!SWIG_IsOK(res1)) {
26850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26851 }
26852 arg1 = reinterpret_cast< wxListItem * >(argp1);
26853 {
26854 arg2 = &temp2;
26855 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26856 }
26857 {
26858 PyThreadState* __tstate = wxPyBeginAllowThreads();
26859 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26860 wxPyEndAllowThreads(__tstate);
26861 if (PyErr_Occurred()) SWIG_fail;
26862 }
26863 resultobj = SWIG_Py_Void();
26864 return resultobj;
26865 fail:
26866 return NULL;
26867 }
26868
26869
26870 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26871 PyObject *resultobj = 0;
26872 wxListItem *arg1 = (wxListItem *) 0 ;
26873 wxFont *arg2 = 0 ;
26874 void *argp1 = 0 ;
26875 int res1 = 0 ;
26876 void *argp2 = 0 ;
26877 int res2 = 0 ;
26878 PyObject * obj0 = 0 ;
26879 PyObject * obj1 = 0 ;
26880 char * kwnames[] = {
26881 (char *) "self",(char *) "font", NULL
26882 };
26883
26884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26886 if (!SWIG_IsOK(res1)) {
26887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26888 }
26889 arg1 = reinterpret_cast< wxListItem * >(argp1);
26890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26891 if (!SWIG_IsOK(res2)) {
26892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26893 }
26894 if (!argp2) {
26895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26896 }
26897 arg2 = reinterpret_cast< wxFont * >(argp2);
26898 {
26899 PyThreadState* __tstate = wxPyBeginAllowThreads();
26900 (arg1)->SetFont((wxFont const &)*arg2);
26901 wxPyEndAllowThreads(__tstate);
26902 if (PyErr_Occurred()) SWIG_fail;
26903 }
26904 resultobj = SWIG_Py_Void();
26905 return resultobj;
26906 fail:
26907 return NULL;
26908 }
26909
26910
26911 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26912 PyObject *resultobj = 0;
26913 wxListItem *arg1 = (wxListItem *) 0 ;
26914 long result;
26915 void *argp1 = 0 ;
26916 int res1 = 0 ;
26917 PyObject *swig_obj[1] ;
26918
26919 if (!args) SWIG_fail;
26920 swig_obj[0] = args;
26921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26922 if (!SWIG_IsOK(res1)) {
26923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26924 }
26925 arg1 = reinterpret_cast< wxListItem * >(argp1);
26926 {
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 result = (long)(arg1)->GetMask();
26929 wxPyEndAllowThreads(__tstate);
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 resultobj = SWIG_From_long(static_cast< long >(result));
26933 return resultobj;
26934 fail:
26935 return NULL;
26936 }
26937
26938
26939 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26940 PyObject *resultobj = 0;
26941 wxListItem *arg1 = (wxListItem *) 0 ;
26942 long result;
26943 void *argp1 = 0 ;
26944 int res1 = 0 ;
26945 PyObject *swig_obj[1] ;
26946
26947 if (!args) SWIG_fail;
26948 swig_obj[0] = args;
26949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26950 if (!SWIG_IsOK(res1)) {
26951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26952 }
26953 arg1 = reinterpret_cast< wxListItem * >(argp1);
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 result = (long)(arg1)->GetId();
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_From_long(static_cast< long >(result));
26961 return resultobj;
26962 fail:
26963 return NULL;
26964 }
26965
26966
26967 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26968 PyObject *resultobj = 0;
26969 wxListItem *arg1 = (wxListItem *) 0 ;
26970 int result;
26971 void *argp1 = 0 ;
26972 int res1 = 0 ;
26973 PyObject *swig_obj[1] ;
26974
26975 if (!args) SWIG_fail;
26976 swig_obj[0] = args;
26977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26978 if (!SWIG_IsOK(res1)) {
26979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26980 }
26981 arg1 = reinterpret_cast< wxListItem * >(argp1);
26982 {
26983 PyThreadState* __tstate = wxPyBeginAllowThreads();
26984 result = (int)(arg1)->GetColumn();
26985 wxPyEndAllowThreads(__tstate);
26986 if (PyErr_Occurred()) SWIG_fail;
26987 }
26988 resultobj = SWIG_From_int(static_cast< int >(result));
26989 return resultobj;
26990 fail:
26991 return NULL;
26992 }
26993
26994
26995 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26996 PyObject *resultobj = 0;
26997 wxListItem *arg1 = (wxListItem *) 0 ;
26998 long result;
26999 void *argp1 = 0 ;
27000 int res1 = 0 ;
27001 PyObject *swig_obj[1] ;
27002
27003 if (!args) SWIG_fail;
27004 swig_obj[0] = args;
27005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27006 if (!SWIG_IsOK(res1)) {
27007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27008 }
27009 arg1 = reinterpret_cast< wxListItem * >(argp1);
27010 {
27011 PyThreadState* __tstate = wxPyBeginAllowThreads();
27012 result = (long)(arg1)->GetState();
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 resultobj = SWIG_From_long(static_cast< long >(result));
27017 return resultobj;
27018 fail:
27019 return NULL;
27020 }
27021
27022
27023 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27024 PyObject *resultobj = 0;
27025 wxListItem *arg1 = (wxListItem *) 0 ;
27026 wxString *result = 0 ;
27027 void *argp1 = 0 ;
27028 int res1 = 0 ;
27029 PyObject *swig_obj[1] ;
27030
27031 if (!args) SWIG_fail;
27032 swig_obj[0] = args;
27033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27034 if (!SWIG_IsOK(res1)) {
27035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27036 }
27037 arg1 = reinterpret_cast< wxListItem * >(argp1);
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 {
27041 wxString const &_result_ref = (arg1)->GetText();
27042 result = (wxString *) &_result_ref;
27043 }
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 {
27048 #if wxUSE_UNICODE
27049 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27050 #else
27051 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27052 #endif
27053 }
27054 return resultobj;
27055 fail:
27056 return NULL;
27057 }
27058
27059
27060 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27061 PyObject *resultobj = 0;
27062 wxListItem *arg1 = (wxListItem *) 0 ;
27063 int result;
27064 void *argp1 = 0 ;
27065 int res1 = 0 ;
27066 PyObject *swig_obj[1] ;
27067
27068 if (!args) SWIG_fail;
27069 swig_obj[0] = args;
27070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27071 if (!SWIG_IsOK(res1)) {
27072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27073 }
27074 arg1 = reinterpret_cast< wxListItem * >(argp1);
27075 {
27076 PyThreadState* __tstate = wxPyBeginAllowThreads();
27077 result = (int)(arg1)->GetImage();
27078 wxPyEndAllowThreads(__tstate);
27079 if (PyErr_Occurred()) SWIG_fail;
27080 }
27081 resultobj = SWIG_From_int(static_cast< int >(result));
27082 return resultobj;
27083 fail:
27084 return NULL;
27085 }
27086
27087
27088 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27089 PyObject *resultobj = 0;
27090 wxListItem *arg1 = (wxListItem *) 0 ;
27091 long result;
27092 void *argp1 = 0 ;
27093 int res1 = 0 ;
27094 PyObject *swig_obj[1] ;
27095
27096 if (!args) SWIG_fail;
27097 swig_obj[0] = args;
27098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27099 if (!SWIG_IsOK(res1)) {
27100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27101 }
27102 arg1 = reinterpret_cast< wxListItem * >(argp1);
27103 {
27104 PyThreadState* __tstate = wxPyBeginAllowThreads();
27105 result = (long)(arg1)->GetData();
27106 wxPyEndAllowThreads(__tstate);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 resultobj = SWIG_From_long(static_cast< long >(result));
27110 return resultobj;
27111 fail:
27112 return NULL;
27113 }
27114
27115
27116 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27117 PyObject *resultobj = 0;
27118 wxListItem *arg1 = (wxListItem *) 0 ;
27119 int result;
27120 void *argp1 = 0 ;
27121 int res1 = 0 ;
27122 PyObject *swig_obj[1] ;
27123
27124 if (!args) SWIG_fail;
27125 swig_obj[0] = args;
27126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27127 if (!SWIG_IsOK(res1)) {
27128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27129 }
27130 arg1 = reinterpret_cast< wxListItem * >(argp1);
27131 {
27132 PyThreadState* __tstate = wxPyBeginAllowThreads();
27133 result = (int)(arg1)->GetWidth();
27134 wxPyEndAllowThreads(__tstate);
27135 if (PyErr_Occurred()) SWIG_fail;
27136 }
27137 resultobj = SWIG_From_int(static_cast< int >(result));
27138 return resultobj;
27139 fail:
27140 return NULL;
27141 }
27142
27143
27144 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27145 PyObject *resultobj = 0;
27146 wxListItem *arg1 = (wxListItem *) 0 ;
27147 wxListColumnFormat result;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 PyObject *swig_obj[1] ;
27151
27152 if (!args) SWIG_fail;
27153 swig_obj[0] = args;
27154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27155 if (!SWIG_IsOK(res1)) {
27156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27157 }
27158 arg1 = reinterpret_cast< wxListItem * >(argp1);
27159 {
27160 PyThreadState* __tstate = wxPyBeginAllowThreads();
27161 result = (wxListColumnFormat)(arg1)->GetAlign();
27162 wxPyEndAllowThreads(__tstate);
27163 if (PyErr_Occurred()) SWIG_fail;
27164 }
27165 resultobj = SWIG_From_int(static_cast< int >(result));
27166 return resultobj;
27167 fail:
27168 return NULL;
27169 }
27170
27171
27172 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27173 PyObject *resultobj = 0;
27174 wxListItem *arg1 = (wxListItem *) 0 ;
27175 wxListItemAttr *result = 0 ;
27176 void *argp1 = 0 ;
27177 int res1 = 0 ;
27178 PyObject *swig_obj[1] ;
27179
27180 if (!args) SWIG_fail;
27181 swig_obj[0] = args;
27182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27183 if (!SWIG_IsOK(res1)) {
27184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27185 }
27186 arg1 = reinterpret_cast< wxListItem * >(argp1);
27187 {
27188 PyThreadState* __tstate = wxPyBeginAllowThreads();
27189 result = (wxListItemAttr *)(arg1)->GetAttributes();
27190 wxPyEndAllowThreads(__tstate);
27191 if (PyErr_Occurred()) SWIG_fail;
27192 }
27193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27194 return resultobj;
27195 fail:
27196 return NULL;
27197 }
27198
27199
27200 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27201 PyObject *resultobj = 0;
27202 wxListItem *arg1 = (wxListItem *) 0 ;
27203 bool result;
27204 void *argp1 = 0 ;
27205 int res1 = 0 ;
27206 PyObject *swig_obj[1] ;
27207
27208 if (!args) SWIG_fail;
27209 swig_obj[0] = args;
27210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27211 if (!SWIG_IsOK(res1)) {
27212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27213 }
27214 arg1 = reinterpret_cast< wxListItem * >(argp1);
27215 {
27216 PyThreadState* __tstate = wxPyBeginAllowThreads();
27217 result = (bool)(arg1)->HasAttributes();
27218 wxPyEndAllowThreads(__tstate);
27219 if (PyErr_Occurred()) SWIG_fail;
27220 }
27221 {
27222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27223 }
27224 return resultobj;
27225 fail:
27226 return NULL;
27227 }
27228
27229
27230 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27231 PyObject *resultobj = 0;
27232 wxListItem *arg1 = (wxListItem *) 0 ;
27233 wxColour result;
27234 void *argp1 = 0 ;
27235 int res1 = 0 ;
27236 PyObject *swig_obj[1] ;
27237
27238 if (!args) SWIG_fail;
27239 swig_obj[0] = args;
27240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27241 if (!SWIG_IsOK(res1)) {
27242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27243 }
27244 arg1 = reinterpret_cast< wxListItem * >(argp1);
27245 {
27246 PyThreadState* __tstate = wxPyBeginAllowThreads();
27247 result = ((wxListItem const *)arg1)->GetTextColour();
27248 wxPyEndAllowThreads(__tstate);
27249 if (PyErr_Occurred()) SWIG_fail;
27250 }
27251 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27252 return resultobj;
27253 fail:
27254 return NULL;
27255 }
27256
27257
27258 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27259 PyObject *resultobj = 0;
27260 wxListItem *arg1 = (wxListItem *) 0 ;
27261 wxColour result;
27262 void *argp1 = 0 ;
27263 int res1 = 0 ;
27264 PyObject *swig_obj[1] ;
27265
27266 if (!args) SWIG_fail;
27267 swig_obj[0] = args;
27268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27269 if (!SWIG_IsOK(res1)) {
27270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27271 }
27272 arg1 = reinterpret_cast< wxListItem * >(argp1);
27273 {
27274 PyThreadState* __tstate = wxPyBeginAllowThreads();
27275 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27276 wxPyEndAllowThreads(__tstate);
27277 if (PyErr_Occurred()) SWIG_fail;
27278 }
27279 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27280 return resultobj;
27281 fail:
27282 return NULL;
27283 }
27284
27285
27286 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27287 PyObject *resultobj = 0;
27288 wxListItem *arg1 = (wxListItem *) 0 ;
27289 wxFont result;
27290 void *argp1 = 0 ;
27291 int res1 = 0 ;
27292 PyObject *swig_obj[1] ;
27293
27294 if (!args) SWIG_fail;
27295 swig_obj[0] = args;
27296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27297 if (!SWIG_IsOK(res1)) {
27298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27299 }
27300 arg1 = reinterpret_cast< wxListItem * >(argp1);
27301 {
27302 PyThreadState* __tstate = wxPyBeginAllowThreads();
27303 result = ((wxListItem const *)arg1)->GetFont();
27304 wxPyEndAllowThreads(__tstate);
27305 if (PyErr_Occurred()) SWIG_fail;
27306 }
27307 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27308 return resultobj;
27309 fail:
27310 return NULL;
27311 }
27312
27313
27314 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27315 PyObject *resultobj = 0;
27316 wxListItem *arg1 = (wxListItem *) 0 ;
27317 long arg2 ;
27318 void *argp1 = 0 ;
27319 int res1 = 0 ;
27320 long val2 ;
27321 int ecode2 = 0 ;
27322 PyObject *swig_obj[2] ;
27323
27324 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27328 }
27329 arg1 = reinterpret_cast< wxListItem * >(argp1);
27330 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27331 if (!SWIG_IsOK(ecode2)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27333 }
27334 arg2 = static_cast< long >(val2);
27335 if (arg1) (arg1)->m_mask = arg2;
27336
27337 resultobj = SWIG_Py_Void();
27338 return resultobj;
27339 fail:
27340 return NULL;
27341 }
27342
27343
27344 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27345 PyObject *resultobj = 0;
27346 wxListItem *arg1 = (wxListItem *) 0 ;
27347 long result;
27348 void *argp1 = 0 ;
27349 int res1 = 0 ;
27350 PyObject *swig_obj[1] ;
27351
27352 if (!args) SWIG_fail;
27353 swig_obj[0] = args;
27354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27355 if (!SWIG_IsOK(res1)) {
27356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27357 }
27358 arg1 = reinterpret_cast< wxListItem * >(argp1);
27359 result = (long) ((arg1)->m_mask);
27360 resultobj = SWIG_From_long(static_cast< long >(result));
27361 return resultobj;
27362 fail:
27363 return NULL;
27364 }
27365
27366
27367 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27368 PyObject *resultobj = 0;
27369 wxListItem *arg1 = (wxListItem *) 0 ;
27370 long arg2 ;
27371 void *argp1 = 0 ;
27372 int res1 = 0 ;
27373 long val2 ;
27374 int ecode2 = 0 ;
27375 PyObject *swig_obj[2] ;
27376
27377 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27379 if (!SWIG_IsOK(res1)) {
27380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27381 }
27382 arg1 = reinterpret_cast< wxListItem * >(argp1);
27383 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27384 if (!SWIG_IsOK(ecode2)) {
27385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27386 }
27387 arg2 = static_cast< long >(val2);
27388 if (arg1) (arg1)->m_itemId = arg2;
27389
27390 resultobj = SWIG_Py_Void();
27391 return resultobj;
27392 fail:
27393 return NULL;
27394 }
27395
27396
27397 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27398 PyObject *resultobj = 0;
27399 wxListItem *arg1 = (wxListItem *) 0 ;
27400 long result;
27401 void *argp1 = 0 ;
27402 int res1 = 0 ;
27403 PyObject *swig_obj[1] ;
27404
27405 if (!args) SWIG_fail;
27406 swig_obj[0] = args;
27407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27408 if (!SWIG_IsOK(res1)) {
27409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27410 }
27411 arg1 = reinterpret_cast< wxListItem * >(argp1);
27412 result = (long) ((arg1)->m_itemId);
27413 resultobj = SWIG_From_long(static_cast< long >(result));
27414 return resultobj;
27415 fail:
27416 return NULL;
27417 }
27418
27419
27420 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27421 PyObject *resultobj = 0;
27422 wxListItem *arg1 = (wxListItem *) 0 ;
27423 int arg2 ;
27424 void *argp1 = 0 ;
27425 int res1 = 0 ;
27426 int val2 ;
27427 int ecode2 = 0 ;
27428 PyObject *swig_obj[2] ;
27429
27430 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27432 if (!SWIG_IsOK(res1)) {
27433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27434 }
27435 arg1 = reinterpret_cast< wxListItem * >(argp1);
27436 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27437 if (!SWIG_IsOK(ecode2)) {
27438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27439 }
27440 arg2 = static_cast< int >(val2);
27441 if (arg1) (arg1)->m_col = arg2;
27442
27443 resultobj = SWIG_Py_Void();
27444 return resultobj;
27445 fail:
27446 return NULL;
27447 }
27448
27449
27450 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27451 PyObject *resultobj = 0;
27452 wxListItem *arg1 = (wxListItem *) 0 ;
27453 int result;
27454 void *argp1 = 0 ;
27455 int res1 = 0 ;
27456 PyObject *swig_obj[1] ;
27457
27458 if (!args) SWIG_fail;
27459 swig_obj[0] = args;
27460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27461 if (!SWIG_IsOK(res1)) {
27462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27463 }
27464 arg1 = reinterpret_cast< wxListItem * >(argp1);
27465 result = (int) ((arg1)->m_col);
27466 resultobj = SWIG_From_int(static_cast< int >(result));
27467 return resultobj;
27468 fail:
27469 return NULL;
27470 }
27471
27472
27473 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27474 PyObject *resultobj = 0;
27475 wxListItem *arg1 = (wxListItem *) 0 ;
27476 long arg2 ;
27477 void *argp1 = 0 ;
27478 int res1 = 0 ;
27479 long val2 ;
27480 int ecode2 = 0 ;
27481 PyObject *swig_obj[2] ;
27482
27483 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27485 if (!SWIG_IsOK(res1)) {
27486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27487 }
27488 arg1 = reinterpret_cast< wxListItem * >(argp1);
27489 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27490 if (!SWIG_IsOK(ecode2)) {
27491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27492 }
27493 arg2 = static_cast< long >(val2);
27494 if (arg1) (arg1)->m_state = arg2;
27495
27496 resultobj = SWIG_Py_Void();
27497 return resultobj;
27498 fail:
27499 return NULL;
27500 }
27501
27502
27503 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27504 PyObject *resultobj = 0;
27505 wxListItem *arg1 = (wxListItem *) 0 ;
27506 long result;
27507 void *argp1 = 0 ;
27508 int res1 = 0 ;
27509 PyObject *swig_obj[1] ;
27510
27511 if (!args) SWIG_fail;
27512 swig_obj[0] = args;
27513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27514 if (!SWIG_IsOK(res1)) {
27515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27516 }
27517 arg1 = reinterpret_cast< wxListItem * >(argp1);
27518 result = (long) ((arg1)->m_state);
27519 resultobj = SWIG_From_long(static_cast< long >(result));
27520 return resultobj;
27521 fail:
27522 return NULL;
27523 }
27524
27525
27526 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27527 PyObject *resultobj = 0;
27528 wxListItem *arg1 = (wxListItem *) 0 ;
27529 long arg2 ;
27530 void *argp1 = 0 ;
27531 int res1 = 0 ;
27532 long val2 ;
27533 int ecode2 = 0 ;
27534 PyObject *swig_obj[2] ;
27535
27536 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27538 if (!SWIG_IsOK(res1)) {
27539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27540 }
27541 arg1 = reinterpret_cast< wxListItem * >(argp1);
27542 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27543 if (!SWIG_IsOK(ecode2)) {
27544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27545 }
27546 arg2 = static_cast< long >(val2);
27547 if (arg1) (arg1)->m_stateMask = arg2;
27548
27549 resultobj = SWIG_Py_Void();
27550 return resultobj;
27551 fail:
27552 return NULL;
27553 }
27554
27555
27556 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27557 PyObject *resultobj = 0;
27558 wxListItem *arg1 = (wxListItem *) 0 ;
27559 long result;
27560 void *argp1 = 0 ;
27561 int res1 = 0 ;
27562 PyObject *swig_obj[1] ;
27563
27564 if (!args) SWIG_fail;
27565 swig_obj[0] = args;
27566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27567 if (!SWIG_IsOK(res1)) {
27568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27569 }
27570 arg1 = reinterpret_cast< wxListItem * >(argp1);
27571 result = (long) ((arg1)->m_stateMask);
27572 resultobj = SWIG_From_long(static_cast< long >(result));
27573 return resultobj;
27574 fail:
27575 return NULL;
27576 }
27577
27578
27579 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27580 PyObject *resultobj = 0;
27581 wxListItem *arg1 = (wxListItem *) 0 ;
27582 wxString *arg2 = (wxString *) 0 ;
27583 void *argp1 = 0 ;
27584 int res1 = 0 ;
27585 bool temp2 = false ;
27586 PyObject *swig_obj[2] ;
27587
27588 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27590 if (!SWIG_IsOK(res1)) {
27591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27592 }
27593 arg1 = reinterpret_cast< wxListItem * >(argp1);
27594 {
27595 arg2 = wxString_in_helper(swig_obj[1]);
27596 if (arg2 == NULL) SWIG_fail;
27597 temp2 = true;
27598 }
27599 if (arg1) (arg1)->m_text = *arg2;
27600
27601 resultobj = SWIG_Py_Void();
27602 {
27603 if (temp2)
27604 delete arg2;
27605 }
27606 return resultobj;
27607 fail:
27608 {
27609 if (temp2)
27610 delete arg2;
27611 }
27612 return NULL;
27613 }
27614
27615
27616 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27617 PyObject *resultobj = 0;
27618 wxListItem *arg1 = (wxListItem *) 0 ;
27619 wxString *result = 0 ;
27620 void *argp1 = 0 ;
27621 int res1 = 0 ;
27622 PyObject *swig_obj[1] ;
27623
27624 if (!args) SWIG_fail;
27625 swig_obj[0] = args;
27626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27627 if (!SWIG_IsOK(res1)) {
27628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27629 }
27630 arg1 = reinterpret_cast< wxListItem * >(argp1);
27631 result = (wxString *)& ((arg1)->m_text);
27632 {
27633 #if wxUSE_UNICODE
27634 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27635 #else
27636 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27637 #endif
27638 }
27639 return resultobj;
27640 fail:
27641 return NULL;
27642 }
27643
27644
27645 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27646 PyObject *resultobj = 0;
27647 wxListItem *arg1 = (wxListItem *) 0 ;
27648 int arg2 ;
27649 void *argp1 = 0 ;
27650 int res1 = 0 ;
27651 int val2 ;
27652 int ecode2 = 0 ;
27653 PyObject *swig_obj[2] ;
27654
27655 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27657 if (!SWIG_IsOK(res1)) {
27658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27659 }
27660 arg1 = reinterpret_cast< wxListItem * >(argp1);
27661 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27662 if (!SWIG_IsOK(ecode2)) {
27663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27664 }
27665 arg2 = static_cast< int >(val2);
27666 if (arg1) (arg1)->m_image = arg2;
27667
27668 resultobj = SWIG_Py_Void();
27669 return resultobj;
27670 fail:
27671 return NULL;
27672 }
27673
27674
27675 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27676 PyObject *resultobj = 0;
27677 wxListItem *arg1 = (wxListItem *) 0 ;
27678 int result;
27679 void *argp1 = 0 ;
27680 int res1 = 0 ;
27681 PyObject *swig_obj[1] ;
27682
27683 if (!args) SWIG_fail;
27684 swig_obj[0] = args;
27685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27686 if (!SWIG_IsOK(res1)) {
27687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27688 }
27689 arg1 = reinterpret_cast< wxListItem * >(argp1);
27690 result = (int) ((arg1)->m_image);
27691 resultobj = SWIG_From_int(static_cast< int >(result));
27692 return resultobj;
27693 fail:
27694 return NULL;
27695 }
27696
27697
27698 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27699 PyObject *resultobj = 0;
27700 wxListItem *arg1 = (wxListItem *) 0 ;
27701 long arg2 ;
27702 void *argp1 = 0 ;
27703 int res1 = 0 ;
27704 long val2 ;
27705 int ecode2 = 0 ;
27706 PyObject *swig_obj[2] ;
27707
27708 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27710 if (!SWIG_IsOK(res1)) {
27711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27712 }
27713 arg1 = reinterpret_cast< wxListItem * >(argp1);
27714 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27715 if (!SWIG_IsOK(ecode2)) {
27716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27717 }
27718 arg2 = static_cast< long >(val2);
27719 if (arg1) (arg1)->m_data = arg2;
27720
27721 resultobj = SWIG_Py_Void();
27722 return resultobj;
27723 fail:
27724 return NULL;
27725 }
27726
27727
27728 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27729 PyObject *resultobj = 0;
27730 wxListItem *arg1 = (wxListItem *) 0 ;
27731 long result;
27732 void *argp1 = 0 ;
27733 int res1 = 0 ;
27734 PyObject *swig_obj[1] ;
27735
27736 if (!args) SWIG_fail;
27737 swig_obj[0] = args;
27738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27739 if (!SWIG_IsOK(res1)) {
27740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27741 }
27742 arg1 = reinterpret_cast< wxListItem * >(argp1);
27743 result = (long) ((arg1)->m_data);
27744 resultobj = SWIG_From_long(static_cast< long >(result));
27745 return resultobj;
27746 fail:
27747 return NULL;
27748 }
27749
27750
27751 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27752 PyObject *resultobj = 0;
27753 wxListItem *arg1 = (wxListItem *) 0 ;
27754 int arg2 ;
27755 void *argp1 = 0 ;
27756 int res1 = 0 ;
27757 int val2 ;
27758 int ecode2 = 0 ;
27759 PyObject *swig_obj[2] ;
27760
27761 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27763 if (!SWIG_IsOK(res1)) {
27764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27765 }
27766 arg1 = reinterpret_cast< wxListItem * >(argp1);
27767 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27768 if (!SWIG_IsOK(ecode2)) {
27769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27770 }
27771 arg2 = static_cast< int >(val2);
27772 if (arg1) (arg1)->m_format = arg2;
27773
27774 resultobj = SWIG_Py_Void();
27775 return resultobj;
27776 fail:
27777 return NULL;
27778 }
27779
27780
27781 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27782 PyObject *resultobj = 0;
27783 wxListItem *arg1 = (wxListItem *) 0 ;
27784 int result;
27785 void *argp1 = 0 ;
27786 int res1 = 0 ;
27787 PyObject *swig_obj[1] ;
27788
27789 if (!args) SWIG_fail;
27790 swig_obj[0] = args;
27791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27792 if (!SWIG_IsOK(res1)) {
27793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27794 }
27795 arg1 = reinterpret_cast< wxListItem * >(argp1);
27796 result = (int) ((arg1)->m_format);
27797 resultobj = SWIG_From_int(static_cast< int >(result));
27798 return resultobj;
27799 fail:
27800 return NULL;
27801 }
27802
27803
27804 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27805 PyObject *resultobj = 0;
27806 wxListItem *arg1 = (wxListItem *) 0 ;
27807 int arg2 ;
27808 void *argp1 = 0 ;
27809 int res1 = 0 ;
27810 int val2 ;
27811 int ecode2 = 0 ;
27812 PyObject *swig_obj[2] ;
27813
27814 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27816 if (!SWIG_IsOK(res1)) {
27817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27818 }
27819 arg1 = reinterpret_cast< wxListItem * >(argp1);
27820 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27821 if (!SWIG_IsOK(ecode2)) {
27822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27823 }
27824 arg2 = static_cast< int >(val2);
27825 if (arg1) (arg1)->m_width = arg2;
27826
27827 resultobj = SWIG_Py_Void();
27828 return resultobj;
27829 fail:
27830 return NULL;
27831 }
27832
27833
27834 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27835 PyObject *resultobj = 0;
27836 wxListItem *arg1 = (wxListItem *) 0 ;
27837 int result;
27838 void *argp1 = 0 ;
27839 int res1 = 0 ;
27840 PyObject *swig_obj[1] ;
27841
27842 if (!args) SWIG_fail;
27843 swig_obj[0] = args;
27844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27845 if (!SWIG_IsOK(res1)) {
27846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27847 }
27848 arg1 = reinterpret_cast< wxListItem * >(argp1);
27849 result = (int) ((arg1)->m_width);
27850 resultobj = SWIG_From_int(static_cast< int >(result));
27851 return resultobj;
27852 fail:
27853 return NULL;
27854 }
27855
27856
27857 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27858 PyObject *obj;
27859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27860 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27861 return SWIG_Py_Void();
27862 }
27863
27864 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27865 return SWIG_Python_InitShadowInstance(args);
27866 }
27867
27868 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27869 PyObject *resultobj = 0;
27870 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27871 int arg2 = (int) 0 ;
27872 wxListEvent *result = 0 ;
27873 int val1 ;
27874 int ecode1 = 0 ;
27875 int val2 ;
27876 int ecode2 = 0 ;
27877 PyObject * obj0 = 0 ;
27878 PyObject * obj1 = 0 ;
27879 char * kwnames[] = {
27880 (char *) "commandType",(char *) "id", NULL
27881 };
27882
27883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27884 if (obj0) {
27885 ecode1 = SWIG_AsVal_int(obj0, &val1);
27886 if (!SWIG_IsOK(ecode1)) {
27887 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27888 }
27889 arg1 = static_cast< wxEventType >(val1);
27890 }
27891 if (obj1) {
27892 ecode2 = SWIG_AsVal_int(obj1, &val2);
27893 if (!SWIG_IsOK(ecode2)) {
27894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27895 }
27896 arg2 = static_cast< int >(val2);
27897 }
27898 {
27899 PyThreadState* __tstate = wxPyBeginAllowThreads();
27900 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27901 wxPyEndAllowThreads(__tstate);
27902 if (PyErr_Occurred()) SWIG_fail;
27903 }
27904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27905 return resultobj;
27906 fail:
27907 return NULL;
27908 }
27909
27910
27911 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27912 PyObject *resultobj = 0;
27913 wxListEvent *arg1 = (wxListEvent *) 0 ;
27914 int arg2 ;
27915 void *argp1 = 0 ;
27916 int res1 = 0 ;
27917 int val2 ;
27918 int ecode2 = 0 ;
27919 PyObject *swig_obj[2] ;
27920
27921 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27925 }
27926 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27927 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27928 if (!SWIG_IsOK(ecode2)) {
27929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27930 }
27931 arg2 = static_cast< int >(val2);
27932 if (arg1) (arg1)->m_code = arg2;
27933
27934 resultobj = SWIG_Py_Void();
27935 return resultobj;
27936 fail:
27937 return NULL;
27938 }
27939
27940
27941 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27942 PyObject *resultobj = 0;
27943 wxListEvent *arg1 = (wxListEvent *) 0 ;
27944 int result;
27945 void *argp1 = 0 ;
27946 int res1 = 0 ;
27947 PyObject *swig_obj[1] ;
27948
27949 if (!args) SWIG_fail;
27950 swig_obj[0] = args;
27951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27952 if (!SWIG_IsOK(res1)) {
27953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27954 }
27955 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27956 result = (int) ((arg1)->m_code);
27957 resultobj = SWIG_From_int(static_cast< int >(result));
27958 return resultobj;
27959 fail:
27960 return NULL;
27961 }
27962
27963
27964 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27965 PyObject *resultobj = 0;
27966 wxListEvent *arg1 = (wxListEvent *) 0 ;
27967 long arg2 ;
27968 void *argp1 = 0 ;
27969 int res1 = 0 ;
27970 long val2 ;
27971 int ecode2 = 0 ;
27972 PyObject *swig_obj[2] ;
27973
27974 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27978 }
27979 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27980 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27981 if (!SWIG_IsOK(ecode2)) {
27982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27983 }
27984 arg2 = static_cast< long >(val2);
27985 if (arg1) (arg1)->m_oldItemIndex = arg2;
27986
27987 resultobj = SWIG_Py_Void();
27988 return resultobj;
27989 fail:
27990 return NULL;
27991 }
27992
27993
27994 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27995 PyObject *resultobj = 0;
27996 wxListEvent *arg1 = (wxListEvent *) 0 ;
27997 long result;
27998 void *argp1 = 0 ;
27999 int res1 = 0 ;
28000 PyObject *swig_obj[1] ;
28001
28002 if (!args) SWIG_fail;
28003 swig_obj[0] = args;
28004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28005 if (!SWIG_IsOK(res1)) {
28006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28007 }
28008 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28009 result = (long) ((arg1)->m_oldItemIndex);
28010 resultobj = SWIG_From_long(static_cast< long >(result));
28011 return resultobj;
28012 fail:
28013 return NULL;
28014 }
28015
28016
28017 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28018 PyObject *resultobj = 0;
28019 wxListEvent *arg1 = (wxListEvent *) 0 ;
28020 long arg2 ;
28021 void *argp1 = 0 ;
28022 int res1 = 0 ;
28023 long val2 ;
28024 int ecode2 = 0 ;
28025 PyObject *swig_obj[2] ;
28026
28027 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28029 if (!SWIG_IsOK(res1)) {
28030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28031 }
28032 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28033 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28034 if (!SWIG_IsOK(ecode2)) {
28035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28036 }
28037 arg2 = static_cast< long >(val2);
28038 if (arg1) (arg1)->m_itemIndex = arg2;
28039
28040 resultobj = SWIG_Py_Void();
28041 return resultobj;
28042 fail:
28043 return NULL;
28044 }
28045
28046
28047 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28048 PyObject *resultobj = 0;
28049 wxListEvent *arg1 = (wxListEvent *) 0 ;
28050 long result;
28051 void *argp1 = 0 ;
28052 int res1 = 0 ;
28053 PyObject *swig_obj[1] ;
28054
28055 if (!args) SWIG_fail;
28056 swig_obj[0] = args;
28057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28058 if (!SWIG_IsOK(res1)) {
28059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28060 }
28061 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28062 result = (long) ((arg1)->m_itemIndex);
28063 resultobj = SWIG_From_long(static_cast< long >(result));
28064 return resultobj;
28065 fail:
28066 return NULL;
28067 }
28068
28069
28070 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28071 PyObject *resultobj = 0;
28072 wxListEvent *arg1 = (wxListEvent *) 0 ;
28073 int arg2 ;
28074 void *argp1 = 0 ;
28075 int res1 = 0 ;
28076 int val2 ;
28077 int ecode2 = 0 ;
28078 PyObject *swig_obj[2] ;
28079
28080 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28082 if (!SWIG_IsOK(res1)) {
28083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28084 }
28085 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28086 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28087 if (!SWIG_IsOK(ecode2)) {
28088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28089 }
28090 arg2 = static_cast< int >(val2);
28091 if (arg1) (arg1)->m_col = arg2;
28092
28093 resultobj = SWIG_Py_Void();
28094 return resultobj;
28095 fail:
28096 return NULL;
28097 }
28098
28099
28100 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28101 PyObject *resultobj = 0;
28102 wxListEvent *arg1 = (wxListEvent *) 0 ;
28103 int result;
28104 void *argp1 = 0 ;
28105 int res1 = 0 ;
28106 PyObject *swig_obj[1] ;
28107
28108 if (!args) SWIG_fail;
28109 swig_obj[0] = args;
28110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28111 if (!SWIG_IsOK(res1)) {
28112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28113 }
28114 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28115 result = (int) ((arg1)->m_col);
28116 resultobj = SWIG_From_int(static_cast< int >(result));
28117 return resultobj;
28118 fail:
28119 return NULL;
28120 }
28121
28122
28123 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28124 PyObject *resultobj = 0;
28125 wxListEvent *arg1 = (wxListEvent *) 0 ;
28126 wxPoint *arg2 = (wxPoint *) 0 ;
28127 void *argp1 = 0 ;
28128 int res1 = 0 ;
28129 void *argp2 = 0 ;
28130 int res2 = 0 ;
28131 PyObject *swig_obj[2] ;
28132
28133 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28135 if (!SWIG_IsOK(res1)) {
28136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28137 }
28138 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28139 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28140 if (!SWIG_IsOK(res2)) {
28141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28142 }
28143 arg2 = reinterpret_cast< wxPoint * >(argp2);
28144 if (arg1) (arg1)->m_pointDrag = *arg2;
28145
28146 resultobj = SWIG_Py_Void();
28147 return resultobj;
28148 fail:
28149 return NULL;
28150 }
28151
28152
28153 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28154 PyObject *resultobj = 0;
28155 wxListEvent *arg1 = (wxListEvent *) 0 ;
28156 wxPoint *result = 0 ;
28157 void *argp1 = 0 ;
28158 int res1 = 0 ;
28159 PyObject *swig_obj[1] ;
28160
28161 if (!args) SWIG_fail;
28162 swig_obj[0] = args;
28163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28164 if (!SWIG_IsOK(res1)) {
28165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28166 }
28167 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28168 result = (wxPoint *)& ((arg1)->m_pointDrag);
28169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28170 return resultobj;
28171 fail:
28172 return NULL;
28173 }
28174
28175
28176 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28177 PyObject *resultobj = 0;
28178 wxListEvent *arg1 = (wxListEvent *) 0 ;
28179 wxListItem *result = 0 ;
28180 void *argp1 = 0 ;
28181 int res1 = 0 ;
28182 PyObject *swig_obj[1] ;
28183
28184 if (!args) SWIG_fail;
28185 swig_obj[0] = args;
28186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28187 if (!SWIG_IsOK(res1)) {
28188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28189 }
28190 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28191 result = (wxListItem *)& ((arg1)->m_item);
28192 {
28193 resultobj = wxPyMake_wxObject(result, (bool)0);
28194 }
28195 return resultobj;
28196 fail:
28197 return NULL;
28198 }
28199
28200
28201 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28202 PyObject *resultobj = 0;
28203 wxListEvent *arg1 = (wxListEvent *) 0 ;
28204 int result;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 PyObject *swig_obj[1] ;
28208
28209 if (!args) SWIG_fail;
28210 swig_obj[0] = args;
28211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28212 if (!SWIG_IsOK(res1)) {
28213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28214 }
28215 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28216 {
28217 PyThreadState* __tstate = wxPyBeginAllowThreads();
28218 result = (int)(arg1)->GetKeyCode();
28219 wxPyEndAllowThreads(__tstate);
28220 if (PyErr_Occurred()) SWIG_fail;
28221 }
28222 resultobj = SWIG_From_int(static_cast< int >(result));
28223 return resultobj;
28224 fail:
28225 return NULL;
28226 }
28227
28228
28229 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28230 PyObject *resultobj = 0;
28231 wxListEvent *arg1 = (wxListEvent *) 0 ;
28232 long result;
28233 void *argp1 = 0 ;
28234 int res1 = 0 ;
28235 PyObject *swig_obj[1] ;
28236
28237 if (!args) SWIG_fail;
28238 swig_obj[0] = args;
28239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28240 if (!SWIG_IsOK(res1)) {
28241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28242 }
28243 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28244 {
28245 PyThreadState* __tstate = wxPyBeginAllowThreads();
28246 result = (long)(arg1)->GetIndex();
28247 wxPyEndAllowThreads(__tstate);
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 resultobj = SWIG_From_long(static_cast< long >(result));
28251 return resultobj;
28252 fail:
28253 return NULL;
28254 }
28255
28256
28257 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28258 PyObject *resultobj = 0;
28259 wxListEvent *arg1 = (wxListEvent *) 0 ;
28260 int result;
28261 void *argp1 = 0 ;
28262 int res1 = 0 ;
28263 PyObject *swig_obj[1] ;
28264
28265 if (!args) SWIG_fail;
28266 swig_obj[0] = args;
28267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28268 if (!SWIG_IsOK(res1)) {
28269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28270 }
28271 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28272 {
28273 PyThreadState* __tstate = wxPyBeginAllowThreads();
28274 result = (int)(arg1)->GetColumn();
28275 wxPyEndAllowThreads(__tstate);
28276 if (PyErr_Occurred()) SWIG_fail;
28277 }
28278 resultobj = SWIG_From_int(static_cast< int >(result));
28279 return resultobj;
28280 fail:
28281 return NULL;
28282 }
28283
28284
28285 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28286 PyObject *resultobj = 0;
28287 wxListEvent *arg1 = (wxListEvent *) 0 ;
28288 wxPoint result;
28289 void *argp1 = 0 ;
28290 int res1 = 0 ;
28291 PyObject *swig_obj[1] ;
28292
28293 if (!args) SWIG_fail;
28294 swig_obj[0] = args;
28295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28296 if (!SWIG_IsOK(res1)) {
28297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28298 }
28299 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28300 {
28301 PyThreadState* __tstate = wxPyBeginAllowThreads();
28302 result = (arg1)->GetPoint();
28303 wxPyEndAllowThreads(__tstate);
28304 if (PyErr_Occurred()) SWIG_fail;
28305 }
28306 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28307 return resultobj;
28308 fail:
28309 return NULL;
28310 }
28311
28312
28313 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28314 PyObject *resultobj = 0;
28315 wxListEvent *arg1 = (wxListEvent *) 0 ;
28316 wxString *result = 0 ;
28317 void *argp1 = 0 ;
28318 int res1 = 0 ;
28319 PyObject *swig_obj[1] ;
28320
28321 if (!args) SWIG_fail;
28322 swig_obj[0] = args;
28323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28324 if (!SWIG_IsOK(res1)) {
28325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28326 }
28327 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28328 {
28329 PyThreadState* __tstate = wxPyBeginAllowThreads();
28330 {
28331 wxString const &_result_ref = (arg1)->GetLabel();
28332 result = (wxString *) &_result_ref;
28333 }
28334 wxPyEndAllowThreads(__tstate);
28335 if (PyErr_Occurred()) SWIG_fail;
28336 }
28337 {
28338 #if wxUSE_UNICODE
28339 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28340 #else
28341 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28342 #endif
28343 }
28344 return resultobj;
28345 fail:
28346 return NULL;
28347 }
28348
28349
28350 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28351 PyObject *resultobj = 0;
28352 wxListEvent *arg1 = (wxListEvent *) 0 ;
28353 wxString *result = 0 ;
28354 void *argp1 = 0 ;
28355 int res1 = 0 ;
28356 PyObject *swig_obj[1] ;
28357
28358 if (!args) SWIG_fail;
28359 swig_obj[0] = args;
28360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28361 if (!SWIG_IsOK(res1)) {
28362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28363 }
28364 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28365 {
28366 PyThreadState* __tstate = wxPyBeginAllowThreads();
28367 {
28368 wxString const &_result_ref = (arg1)->GetText();
28369 result = (wxString *) &_result_ref;
28370 }
28371 wxPyEndAllowThreads(__tstate);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 {
28375 #if wxUSE_UNICODE
28376 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28377 #else
28378 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28379 #endif
28380 }
28381 return resultobj;
28382 fail:
28383 return NULL;
28384 }
28385
28386
28387 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28388 PyObject *resultobj = 0;
28389 wxListEvent *arg1 = (wxListEvent *) 0 ;
28390 int result;
28391 void *argp1 = 0 ;
28392 int res1 = 0 ;
28393 PyObject *swig_obj[1] ;
28394
28395 if (!args) SWIG_fail;
28396 swig_obj[0] = args;
28397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28398 if (!SWIG_IsOK(res1)) {
28399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28400 }
28401 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28402 {
28403 PyThreadState* __tstate = wxPyBeginAllowThreads();
28404 result = (int)(arg1)->GetImage();
28405 wxPyEndAllowThreads(__tstate);
28406 if (PyErr_Occurred()) SWIG_fail;
28407 }
28408 resultobj = SWIG_From_int(static_cast< int >(result));
28409 return resultobj;
28410 fail:
28411 return NULL;
28412 }
28413
28414
28415 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28416 PyObject *resultobj = 0;
28417 wxListEvent *arg1 = (wxListEvent *) 0 ;
28418 long result;
28419 void *argp1 = 0 ;
28420 int res1 = 0 ;
28421 PyObject *swig_obj[1] ;
28422
28423 if (!args) SWIG_fail;
28424 swig_obj[0] = args;
28425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28426 if (!SWIG_IsOK(res1)) {
28427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28428 }
28429 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28430 {
28431 PyThreadState* __tstate = wxPyBeginAllowThreads();
28432 result = (long)(arg1)->GetData();
28433 wxPyEndAllowThreads(__tstate);
28434 if (PyErr_Occurred()) SWIG_fail;
28435 }
28436 resultobj = SWIG_From_long(static_cast< long >(result));
28437 return resultobj;
28438 fail:
28439 return NULL;
28440 }
28441
28442
28443 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28444 PyObject *resultobj = 0;
28445 wxListEvent *arg1 = (wxListEvent *) 0 ;
28446 long result;
28447 void *argp1 = 0 ;
28448 int res1 = 0 ;
28449 PyObject *swig_obj[1] ;
28450
28451 if (!args) SWIG_fail;
28452 swig_obj[0] = args;
28453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28454 if (!SWIG_IsOK(res1)) {
28455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28456 }
28457 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28458 {
28459 PyThreadState* __tstate = wxPyBeginAllowThreads();
28460 result = (long)(arg1)->GetMask();
28461 wxPyEndAllowThreads(__tstate);
28462 if (PyErr_Occurred()) SWIG_fail;
28463 }
28464 resultobj = SWIG_From_long(static_cast< long >(result));
28465 return resultobj;
28466 fail:
28467 return NULL;
28468 }
28469
28470
28471 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28472 PyObject *resultobj = 0;
28473 wxListEvent *arg1 = (wxListEvent *) 0 ;
28474 wxListItem *result = 0 ;
28475 void *argp1 = 0 ;
28476 int res1 = 0 ;
28477 PyObject *swig_obj[1] ;
28478
28479 if (!args) SWIG_fail;
28480 swig_obj[0] = args;
28481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28482 if (!SWIG_IsOK(res1)) {
28483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28484 }
28485 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28486 {
28487 PyThreadState* __tstate = wxPyBeginAllowThreads();
28488 {
28489 wxListItem const &_result_ref = (arg1)->GetItem();
28490 result = (wxListItem *) &_result_ref;
28491 }
28492 wxPyEndAllowThreads(__tstate);
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28496 return resultobj;
28497 fail:
28498 return NULL;
28499 }
28500
28501
28502 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28503 PyObject *resultobj = 0;
28504 wxListEvent *arg1 = (wxListEvent *) 0 ;
28505 long result;
28506 void *argp1 = 0 ;
28507 int res1 = 0 ;
28508 PyObject *swig_obj[1] ;
28509
28510 if (!args) SWIG_fail;
28511 swig_obj[0] = args;
28512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28515 }
28516 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28517 {
28518 PyThreadState* __tstate = wxPyBeginAllowThreads();
28519 result = (long)(arg1)->GetCacheFrom();
28520 wxPyEndAllowThreads(__tstate);
28521 if (PyErr_Occurred()) SWIG_fail;
28522 }
28523 resultobj = SWIG_From_long(static_cast< long >(result));
28524 return resultobj;
28525 fail:
28526 return NULL;
28527 }
28528
28529
28530 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28531 PyObject *resultobj = 0;
28532 wxListEvent *arg1 = (wxListEvent *) 0 ;
28533 long result;
28534 void *argp1 = 0 ;
28535 int res1 = 0 ;
28536 PyObject *swig_obj[1] ;
28537
28538 if (!args) SWIG_fail;
28539 swig_obj[0] = args;
28540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28541 if (!SWIG_IsOK(res1)) {
28542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28543 }
28544 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28545 {
28546 PyThreadState* __tstate = wxPyBeginAllowThreads();
28547 result = (long)(arg1)->GetCacheTo();
28548 wxPyEndAllowThreads(__tstate);
28549 if (PyErr_Occurred()) SWIG_fail;
28550 }
28551 resultobj = SWIG_From_long(static_cast< long >(result));
28552 return resultobj;
28553 fail:
28554 return NULL;
28555 }
28556
28557
28558 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28559 PyObject *resultobj = 0;
28560 wxListEvent *arg1 = (wxListEvent *) 0 ;
28561 bool result;
28562 void *argp1 = 0 ;
28563 int res1 = 0 ;
28564 PyObject *swig_obj[1] ;
28565
28566 if (!args) SWIG_fail;
28567 swig_obj[0] = args;
28568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28569 if (!SWIG_IsOK(res1)) {
28570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28571 }
28572 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28573 {
28574 PyThreadState* __tstate = wxPyBeginAllowThreads();
28575 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28576 wxPyEndAllowThreads(__tstate);
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 {
28580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28581 }
28582 return resultobj;
28583 fail:
28584 return NULL;
28585 }
28586
28587
28588 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28589 PyObject *resultobj = 0;
28590 wxListEvent *arg1 = (wxListEvent *) 0 ;
28591 bool arg2 ;
28592 void *argp1 = 0 ;
28593 int res1 = 0 ;
28594 bool val2 ;
28595 int ecode2 = 0 ;
28596 PyObject * obj0 = 0 ;
28597 PyObject * obj1 = 0 ;
28598 char * kwnames[] = {
28599 (char *) "self",(char *) "editCancelled", NULL
28600 };
28601
28602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28604 if (!SWIG_IsOK(res1)) {
28605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28606 }
28607 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28608 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28609 if (!SWIG_IsOK(ecode2)) {
28610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28611 }
28612 arg2 = static_cast< bool >(val2);
28613 {
28614 PyThreadState* __tstate = wxPyBeginAllowThreads();
28615 (arg1)->SetEditCanceled(arg2);
28616 wxPyEndAllowThreads(__tstate);
28617 if (PyErr_Occurred()) SWIG_fail;
28618 }
28619 resultobj = SWIG_Py_Void();
28620 return resultobj;
28621 fail:
28622 return NULL;
28623 }
28624
28625
28626 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28627 PyObject *obj;
28628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28629 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28630 return SWIG_Py_Void();
28631 }
28632
28633 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28634 return SWIG_Python_InitShadowInstance(args);
28635 }
28636
28637 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28638 PyObject *resultobj = 0;
28639 wxWindow *arg1 = (wxWindow *) 0 ;
28640 int arg2 = (int) -1 ;
28641 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28642 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28643 wxSize const &arg4_defvalue = wxDefaultSize ;
28644 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28645 long arg5 = (long) wxLC_ICON ;
28646 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28647 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28648 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28649 wxString *arg7 = (wxString *) &arg7_defvalue ;
28650 wxPyListCtrl *result = 0 ;
28651 void *argp1 = 0 ;
28652 int res1 = 0 ;
28653 int val2 ;
28654 int ecode2 = 0 ;
28655 wxPoint temp3 ;
28656 wxSize temp4 ;
28657 long val5 ;
28658 int ecode5 = 0 ;
28659 void *argp6 = 0 ;
28660 int res6 = 0 ;
28661 bool temp7 = false ;
28662 PyObject * obj0 = 0 ;
28663 PyObject * obj1 = 0 ;
28664 PyObject * obj2 = 0 ;
28665 PyObject * obj3 = 0 ;
28666 PyObject * obj4 = 0 ;
28667 PyObject * obj5 = 0 ;
28668 PyObject * obj6 = 0 ;
28669 char * kwnames[] = {
28670 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28671 };
28672
28673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28675 if (!SWIG_IsOK(res1)) {
28676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28677 }
28678 arg1 = reinterpret_cast< wxWindow * >(argp1);
28679 if (obj1) {
28680 ecode2 = SWIG_AsVal_int(obj1, &val2);
28681 if (!SWIG_IsOK(ecode2)) {
28682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28683 }
28684 arg2 = static_cast< int >(val2);
28685 }
28686 if (obj2) {
28687 {
28688 arg3 = &temp3;
28689 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28690 }
28691 }
28692 if (obj3) {
28693 {
28694 arg4 = &temp4;
28695 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28696 }
28697 }
28698 if (obj4) {
28699 ecode5 = SWIG_AsVal_long(obj4, &val5);
28700 if (!SWIG_IsOK(ecode5)) {
28701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28702 }
28703 arg5 = static_cast< long >(val5);
28704 }
28705 if (obj5) {
28706 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28707 if (!SWIG_IsOK(res6)) {
28708 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28709 }
28710 if (!argp6) {
28711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28712 }
28713 arg6 = reinterpret_cast< wxValidator * >(argp6);
28714 }
28715 if (obj6) {
28716 {
28717 arg7 = wxString_in_helper(obj6);
28718 if (arg7 == NULL) SWIG_fail;
28719 temp7 = true;
28720 }
28721 }
28722 {
28723 if (!wxPyCheckForApp()) SWIG_fail;
28724 PyThreadState* __tstate = wxPyBeginAllowThreads();
28725 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28726 wxPyEndAllowThreads(__tstate);
28727 if (PyErr_Occurred()) SWIG_fail;
28728 }
28729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28730 {
28731 if (temp7)
28732 delete arg7;
28733 }
28734 return resultobj;
28735 fail:
28736 {
28737 if (temp7)
28738 delete arg7;
28739 }
28740 return NULL;
28741 }
28742
28743
28744 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28745 PyObject *resultobj = 0;
28746 wxPyListCtrl *result = 0 ;
28747
28748 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28749 {
28750 if (!wxPyCheckForApp()) SWIG_fail;
28751 PyThreadState* __tstate = wxPyBeginAllowThreads();
28752 result = (wxPyListCtrl *)new wxPyListCtrl();
28753 wxPyEndAllowThreads(__tstate);
28754 if (PyErr_Occurred()) SWIG_fail;
28755 }
28756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28757 return resultobj;
28758 fail:
28759 return NULL;
28760 }
28761
28762
28763 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28764 PyObject *resultobj = 0;
28765 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28766 wxWindow *arg2 = (wxWindow *) 0 ;
28767 int arg3 = (int) -1 ;
28768 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28769 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28770 wxSize const &arg5_defvalue = wxDefaultSize ;
28771 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28772 long arg6 = (long) wxLC_ICON ;
28773 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28774 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28775 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28776 wxString *arg8 = (wxString *) &arg8_defvalue ;
28777 bool result;
28778 void *argp1 = 0 ;
28779 int res1 = 0 ;
28780 void *argp2 = 0 ;
28781 int res2 = 0 ;
28782 int val3 ;
28783 int ecode3 = 0 ;
28784 wxPoint temp4 ;
28785 wxSize temp5 ;
28786 long val6 ;
28787 int ecode6 = 0 ;
28788 void *argp7 = 0 ;
28789 int res7 = 0 ;
28790 bool temp8 = false ;
28791 PyObject * obj0 = 0 ;
28792 PyObject * obj1 = 0 ;
28793 PyObject * obj2 = 0 ;
28794 PyObject * obj3 = 0 ;
28795 PyObject * obj4 = 0 ;
28796 PyObject * obj5 = 0 ;
28797 PyObject * obj6 = 0 ;
28798 PyObject * obj7 = 0 ;
28799 char * kwnames[] = {
28800 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28801 };
28802
28803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28805 if (!SWIG_IsOK(res1)) {
28806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28807 }
28808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28809 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28810 if (!SWIG_IsOK(res2)) {
28811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28812 }
28813 arg2 = reinterpret_cast< wxWindow * >(argp2);
28814 if (obj2) {
28815 ecode3 = SWIG_AsVal_int(obj2, &val3);
28816 if (!SWIG_IsOK(ecode3)) {
28817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28818 }
28819 arg3 = static_cast< int >(val3);
28820 }
28821 if (obj3) {
28822 {
28823 arg4 = &temp4;
28824 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28825 }
28826 }
28827 if (obj4) {
28828 {
28829 arg5 = &temp5;
28830 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28831 }
28832 }
28833 if (obj5) {
28834 ecode6 = SWIG_AsVal_long(obj5, &val6);
28835 if (!SWIG_IsOK(ecode6)) {
28836 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28837 }
28838 arg6 = static_cast< long >(val6);
28839 }
28840 if (obj6) {
28841 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28842 if (!SWIG_IsOK(res7)) {
28843 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28844 }
28845 if (!argp7) {
28846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28847 }
28848 arg7 = reinterpret_cast< wxValidator * >(argp7);
28849 }
28850 if (obj7) {
28851 {
28852 arg8 = wxString_in_helper(obj7);
28853 if (arg8 == NULL) SWIG_fail;
28854 temp8 = true;
28855 }
28856 }
28857 {
28858 PyThreadState* __tstate = wxPyBeginAllowThreads();
28859 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28860 wxPyEndAllowThreads(__tstate);
28861 if (PyErr_Occurred()) SWIG_fail;
28862 }
28863 {
28864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28865 }
28866 {
28867 if (temp8)
28868 delete arg8;
28869 }
28870 return resultobj;
28871 fail:
28872 {
28873 if (temp8)
28874 delete arg8;
28875 }
28876 return NULL;
28877 }
28878
28879
28880 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28881 PyObject *resultobj = 0;
28882 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28883 PyObject *arg2 = (PyObject *) 0 ;
28884 PyObject *arg3 = (PyObject *) 0 ;
28885 void *argp1 = 0 ;
28886 int res1 = 0 ;
28887 PyObject * obj0 = 0 ;
28888 PyObject * obj1 = 0 ;
28889 PyObject * obj2 = 0 ;
28890 char * kwnames[] = {
28891 (char *) "self",(char *) "self",(char *) "_class", NULL
28892 };
28893
28894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28896 if (!SWIG_IsOK(res1)) {
28897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28898 }
28899 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28900 arg2 = obj1;
28901 arg3 = obj2;
28902 {
28903 PyThreadState* __tstate = wxPyBeginAllowThreads();
28904 (arg1)->_setCallbackInfo(arg2,arg3);
28905 wxPyEndAllowThreads(__tstate);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 }
28908 resultobj = SWIG_Py_Void();
28909 return resultobj;
28910 fail:
28911 return NULL;
28912 }
28913
28914
28915 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28916 PyObject *resultobj = 0;
28917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28918 int arg2 ;
28919 wxListItem *result = 0 ;
28920 void *argp1 = 0 ;
28921 int res1 = 0 ;
28922 int val2 ;
28923 int ecode2 = 0 ;
28924 PyObject * obj0 = 0 ;
28925 PyObject * obj1 = 0 ;
28926 char * kwnames[] = {
28927 (char *) "self",(char *) "col", NULL
28928 };
28929
28930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28932 if (!SWIG_IsOK(res1)) {
28933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28934 }
28935 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28936 ecode2 = SWIG_AsVal_int(obj1, &val2);
28937 if (!SWIG_IsOK(ecode2)) {
28938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28939 }
28940 arg2 = static_cast< int >(val2);
28941 {
28942 PyThreadState* __tstate = wxPyBeginAllowThreads();
28943 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28944 wxPyEndAllowThreads(__tstate);
28945 if (PyErr_Occurred()) SWIG_fail;
28946 }
28947 {
28948 resultobj = wxPyMake_wxObject(result, (bool)0);
28949 }
28950 return resultobj;
28951 fail:
28952 return NULL;
28953 }
28954
28955
28956 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28957 PyObject *resultobj = 0;
28958 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28959 int arg2 ;
28960 wxListItem *arg3 = 0 ;
28961 bool result;
28962 void *argp1 = 0 ;
28963 int res1 = 0 ;
28964 int val2 ;
28965 int ecode2 = 0 ;
28966 void *argp3 = 0 ;
28967 int res3 = 0 ;
28968 PyObject * obj0 = 0 ;
28969 PyObject * obj1 = 0 ;
28970 PyObject * obj2 = 0 ;
28971 char * kwnames[] = {
28972 (char *) "self",(char *) "col",(char *) "item", NULL
28973 };
28974
28975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28977 if (!SWIG_IsOK(res1)) {
28978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28979 }
28980 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28981 ecode2 = SWIG_AsVal_int(obj1, &val2);
28982 if (!SWIG_IsOK(ecode2)) {
28983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28984 }
28985 arg2 = static_cast< int >(val2);
28986 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28987 if (!SWIG_IsOK(res3)) {
28988 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28989 }
28990 if (!argp3) {
28991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28992 }
28993 arg3 = reinterpret_cast< wxListItem * >(argp3);
28994 {
28995 PyThreadState* __tstate = wxPyBeginAllowThreads();
28996 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28997 wxPyEndAllowThreads(__tstate);
28998 if (PyErr_Occurred()) SWIG_fail;
28999 }
29000 {
29001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29002 }
29003 return resultobj;
29004 fail:
29005 return NULL;
29006 }
29007
29008
29009 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29010 PyObject *resultobj = 0;
29011 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29012 int arg2 ;
29013 int result;
29014 void *argp1 = 0 ;
29015 int res1 = 0 ;
29016 int val2 ;
29017 int ecode2 = 0 ;
29018 PyObject * obj0 = 0 ;
29019 PyObject * obj1 = 0 ;
29020 char * kwnames[] = {
29021 (char *) "self",(char *) "col", NULL
29022 };
29023
29024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29026 if (!SWIG_IsOK(res1)) {
29027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29028 }
29029 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29030 ecode2 = SWIG_AsVal_int(obj1, &val2);
29031 if (!SWIG_IsOK(ecode2)) {
29032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29033 }
29034 arg2 = static_cast< int >(val2);
29035 {
29036 PyThreadState* __tstate = wxPyBeginAllowThreads();
29037 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29038 wxPyEndAllowThreads(__tstate);
29039 if (PyErr_Occurred()) SWIG_fail;
29040 }
29041 resultobj = SWIG_From_int(static_cast< int >(result));
29042 return resultobj;
29043 fail:
29044 return NULL;
29045 }
29046
29047
29048 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29049 PyObject *resultobj = 0;
29050 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29051 int arg2 ;
29052 int arg3 ;
29053 bool result;
29054 void *argp1 = 0 ;
29055 int res1 = 0 ;
29056 int val2 ;
29057 int ecode2 = 0 ;
29058 int val3 ;
29059 int ecode3 = 0 ;
29060 PyObject * obj0 = 0 ;
29061 PyObject * obj1 = 0 ;
29062 PyObject * obj2 = 0 ;
29063 char * kwnames[] = {
29064 (char *) "self",(char *) "col",(char *) "width", NULL
29065 };
29066
29067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29069 if (!SWIG_IsOK(res1)) {
29070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29071 }
29072 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29073 ecode2 = SWIG_AsVal_int(obj1, &val2);
29074 if (!SWIG_IsOK(ecode2)) {
29075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29076 }
29077 arg2 = static_cast< int >(val2);
29078 ecode3 = SWIG_AsVal_int(obj2, &val3);
29079 if (!SWIG_IsOK(ecode3)) {
29080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29081 }
29082 arg3 = static_cast< int >(val3);
29083 {
29084 PyThreadState* __tstate = wxPyBeginAllowThreads();
29085 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29086 wxPyEndAllowThreads(__tstate);
29087 if (PyErr_Occurred()) SWIG_fail;
29088 }
29089 {
29090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29091 }
29092 return resultobj;
29093 fail:
29094 return NULL;
29095 }
29096
29097
29098 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29099 PyObject *resultobj = 0;
29100 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29101 int result;
29102 void *argp1 = 0 ;
29103 int res1 = 0 ;
29104 PyObject *swig_obj[1] ;
29105
29106 if (!args) SWIG_fail;
29107 swig_obj[0] = args;
29108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29109 if (!SWIG_IsOK(res1)) {
29110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29111 }
29112 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29113 {
29114 PyThreadState* __tstate = wxPyBeginAllowThreads();
29115 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29116 wxPyEndAllowThreads(__tstate);
29117 if (PyErr_Occurred()) SWIG_fail;
29118 }
29119 resultobj = SWIG_From_int(static_cast< int >(result));
29120 return resultobj;
29121 fail:
29122 return NULL;
29123 }
29124
29125
29126 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29127 PyObject *resultobj = 0;
29128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29129 wxRect result;
29130 void *argp1 = 0 ;
29131 int res1 = 0 ;
29132 PyObject *swig_obj[1] ;
29133
29134 if (!args) SWIG_fail;
29135 swig_obj[0] = args;
29136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29137 if (!SWIG_IsOK(res1)) {
29138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29139 }
29140 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29141 {
29142 PyThreadState* __tstate = wxPyBeginAllowThreads();
29143 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29144 wxPyEndAllowThreads(__tstate);
29145 if (PyErr_Occurred()) SWIG_fail;
29146 }
29147 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29148 return resultobj;
29149 fail:
29150 return NULL;
29151 }
29152
29153
29154 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29155 PyObject *resultobj = 0;
29156 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29157 wxTextCtrl *result = 0 ;
29158 void *argp1 = 0 ;
29159 int res1 = 0 ;
29160 PyObject *swig_obj[1] ;
29161
29162 if (!args) SWIG_fail;
29163 swig_obj[0] = args;
29164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29165 if (!SWIG_IsOK(res1)) {
29166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29167 }
29168 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29169 {
29170 PyThreadState* __tstate = wxPyBeginAllowThreads();
29171 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29172 wxPyEndAllowThreads(__tstate);
29173 if (PyErr_Occurred()) SWIG_fail;
29174 }
29175 {
29176 resultobj = wxPyMake_wxObject(result, 0);
29177 }
29178 return resultobj;
29179 fail:
29180 return NULL;
29181 }
29182
29183
29184 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29185 PyObject *resultobj = 0;
29186 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29187 long arg2 ;
29188 int arg3 = (int) 0 ;
29189 wxListItem *result = 0 ;
29190 void *argp1 = 0 ;
29191 int res1 = 0 ;
29192 long val2 ;
29193 int ecode2 = 0 ;
29194 int val3 ;
29195 int ecode3 = 0 ;
29196 PyObject * obj0 = 0 ;
29197 PyObject * obj1 = 0 ;
29198 PyObject * obj2 = 0 ;
29199 char * kwnames[] = {
29200 (char *) "self",(char *) "itemId",(char *) "col", NULL
29201 };
29202
29203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29205 if (!SWIG_IsOK(res1)) {
29206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29207 }
29208 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29209 ecode2 = SWIG_AsVal_long(obj1, &val2);
29210 if (!SWIG_IsOK(ecode2)) {
29211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29212 }
29213 arg2 = static_cast< long >(val2);
29214 if (obj2) {
29215 ecode3 = SWIG_AsVal_int(obj2, &val3);
29216 if (!SWIG_IsOK(ecode3)) {
29217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29218 }
29219 arg3 = static_cast< int >(val3);
29220 }
29221 {
29222 PyThreadState* __tstate = wxPyBeginAllowThreads();
29223 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29224 wxPyEndAllowThreads(__tstate);
29225 if (PyErr_Occurred()) SWIG_fail;
29226 }
29227 {
29228 resultobj = wxPyMake_wxObject(result, (bool)0);
29229 }
29230 return resultobj;
29231 fail:
29232 return NULL;
29233 }
29234
29235
29236 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29237 PyObject *resultobj = 0;
29238 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29239 wxListItem *arg2 = 0 ;
29240 bool result;
29241 void *argp1 = 0 ;
29242 int res1 = 0 ;
29243 void *argp2 = 0 ;
29244 int res2 = 0 ;
29245 PyObject * obj0 = 0 ;
29246 PyObject * obj1 = 0 ;
29247 char * kwnames[] = {
29248 (char *) "self",(char *) "info", NULL
29249 };
29250
29251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29255 }
29256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29258 if (!SWIG_IsOK(res2)) {
29259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29260 }
29261 if (!argp2) {
29262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29263 }
29264 arg2 = reinterpret_cast< wxListItem * >(argp2);
29265 {
29266 PyThreadState* __tstate = wxPyBeginAllowThreads();
29267 result = (bool)(arg1)->SetItem(*arg2);
29268 wxPyEndAllowThreads(__tstate);
29269 if (PyErr_Occurred()) SWIG_fail;
29270 }
29271 {
29272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29273 }
29274 return resultobj;
29275 fail:
29276 return NULL;
29277 }
29278
29279
29280 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29281 PyObject *resultobj = 0;
29282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29283 long arg2 ;
29284 int arg3 ;
29285 wxString *arg4 = 0 ;
29286 int arg5 = (int) -1 ;
29287 long result;
29288 void *argp1 = 0 ;
29289 int res1 = 0 ;
29290 long val2 ;
29291 int ecode2 = 0 ;
29292 int val3 ;
29293 int ecode3 = 0 ;
29294 bool temp4 = false ;
29295 int val5 ;
29296 int ecode5 = 0 ;
29297 PyObject * obj0 = 0 ;
29298 PyObject * obj1 = 0 ;
29299 PyObject * obj2 = 0 ;
29300 PyObject * obj3 = 0 ;
29301 PyObject * obj4 = 0 ;
29302 char * kwnames[] = {
29303 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29304 };
29305
29306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29308 if (!SWIG_IsOK(res1)) {
29309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29310 }
29311 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29312 ecode2 = SWIG_AsVal_long(obj1, &val2);
29313 if (!SWIG_IsOK(ecode2)) {
29314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29315 }
29316 arg2 = static_cast< long >(val2);
29317 ecode3 = SWIG_AsVal_int(obj2, &val3);
29318 if (!SWIG_IsOK(ecode3)) {
29319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29320 }
29321 arg3 = static_cast< int >(val3);
29322 {
29323 arg4 = wxString_in_helper(obj3);
29324 if (arg4 == NULL) SWIG_fail;
29325 temp4 = true;
29326 }
29327 if (obj4) {
29328 ecode5 = SWIG_AsVal_int(obj4, &val5);
29329 if (!SWIG_IsOK(ecode5)) {
29330 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29331 }
29332 arg5 = static_cast< int >(val5);
29333 }
29334 {
29335 PyThreadState* __tstate = wxPyBeginAllowThreads();
29336 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29337 wxPyEndAllowThreads(__tstate);
29338 if (PyErr_Occurred()) SWIG_fail;
29339 }
29340 resultobj = SWIG_From_long(static_cast< long >(result));
29341 {
29342 if (temp4)
29343 delete arg4;
29344 }
29345 return resultobj;
29346 fail:
29347 {
29348 if (temp4)
29349 delete arg4;
29350 }
29351 return NULL;
29352 }
29353
29354
29355 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = 0;
29357 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29358 long arg2 ;
29359 long arg3 ;
29360 int result;
29361 void *argp1 = 0 ;
29362 int res1 = 0 ;
29363 long val2 ;
29364 int ecode2 = 0 ;
29365 long val3 ;
29366 int ecode3 = 0 ;
29367 PyObject * obj0 = 0 ;
29368 PyObject * obj1 = 0 ;
29369 PyObject * obj2 = 0 ;
29370 char * kwnames[] = {
29371 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29372 };
29373
29374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29376 if (!SWIG_IsOK(res1)) {
29377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29378 }
29379 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29380 ecode2 = SWIG_AsVal_long(obj1, &val2);
29381 if (!SWIG_IsOK(ecode2)) {
29382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29383 }
29384 arg2 = static_cast< long >(val2);
29385 ecode3 = SWIG_AsVal_long(obj2, &val3);
29386 if (!SWIG_IsOK(ecode3)) {
29387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29388 }
29389 arg3 = static_cast< long >(val3);
29390 {
29391 PyThreadState* __tstate = wxPyBeginAllowThreads();
29392 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29393 wxPyEndAllowThreads(__tstate);
29394 if (PyErr_Occurred()) SWIG_fail;
29395 }
29396 resultobj = SWIG_From_int(static_cast< int >(result));
29397 return resultobj;
29398 fail:
29399 return NULL;
29400 }
29401
29402
29403 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29404 PyObject *resultobj = 0;
29405 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29406 long arg2 ;
29407 long arg3 ;
29408 long arg4 ;
29409 bool result;
29410 void *argp1 = 0 ;
29411 int res1 = 0 ;
29412 long val2 ;
29413 int ecode2 = 0 ;
29414 long val3 ;
29415 int ecode3 = 0 ;
29416 long val4 ;
29417 int ecode4 = 0 ;
29418 PyObject * obj0 = 0 ;
29419 PyObject * obj1 = 0 ;
29420 PyObject * obj2 = 0 ;
29421 PyObject * obj3 = 0 ;
29422 char * kwnames[] = {
29423 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29424 };
29425
29426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29428 if (!SWIG_IsOK(res1)) {
29429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29430 }
29431 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29432 ecode2 = SWIG_AsVal_long(obj1, &val2);
29433 if (!SWIG_IsOK(ecode2)) {
29434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29435 }
29436 arg2 = static_cast< long >(val2);
29437 ecode3 = SWIG_AsVal_long(obj2, &val3);
29438 if (!SWIG_IsOK(ecode3)) {
29439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29440 }
29441 arg3 = static_cast< long >(val3);
29442 ecode4 = SWIG_AsVal_long(obj3, &val4);
29443 if (!SWIG_IsOK(ecode4)) {
29444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29445 }
29446 arg4 = static_cast< long >(val4);
29447 {
29448 PyThreadState* __tstate = wxPyBeginAllowThreads();
29449 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29450 wxPyEndAllowThreads(__tstate);
29451 if (PyErr_Occurred()) SWIG_fail;
29452 }
29453 {
29454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29455 }
29456 return resultobj;
29457 fail:
29458 return NULL;
29459 }
29460
29461
29462 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29463 PyObject *resultobj = 0;
29464 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29465 long arg2 ;
29466 int arg3 ;
29467 int arg4 = (int) -1 ;
29468 bool result;
29469 void *argp1 = 0 ;
29470 int res1 = 0 ;
29471 long val2 ;
29472 int ecode2 = 0 ;
29473 int val3 ;
29474 int ecode3 = 0 ;
29475 int val4 ;
29476 int ecode4 = 0 ;
29477 PyObject * obj0 = 0 ;
29478 PyObject * obj1 = 0 ;
29479 PyObject * obj2 = 0 ;
29480 PyObject * obj3 = 0 ;
29481 char * kwnames[] = {
29482 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29483 };
29484
29485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29487 if (!SWIG_IsOK(res1)) {
29488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29489 }
29490 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29491 ecode2 = SWIG_AsVal_long(obj1, &val2);
29492 if (!SWIG_IsOK(ecode2)) {
29493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29494 }
29495 arg2 = static_cast< long >(val2);
29496 ecode3 = SWIG_AsVal_int(obj2, &val3);
29497 if (!SWIG_IsOK(ecode3)) {
29498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29499 }
29500 arg3 = static_cast< int >(val3);
29501 if (obj3) {
29502 ecode4 = SWIG_AsVal_int(obj3, &val4);
29503 if (!SWIG_IsOK(ecode4)) {
29504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29505 }
29506 arg4 = static_cast< int >(val4);
29507 }
29508 {
29509 PyThreadState* __tstate = wxPyBeginAllowThreads();
29510 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29511 wxPyEndAllowThreads(__tstate);
29512 if (PyErr_Occurred()) SWIG_fail;
29513 }
29514 {
29515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29516 }
29517 return resultobj;
29518 fail:
29519 return NULL;
29520 }
29521
29522
29523 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29524 PyObject *resultobj = 0;
29525 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29526 long arg2 ;
29527 long arg3 ;
29528 int arg4 ;
29529 bool result;
29530 void *argp1 = 0 ;
29531 int res1 = 0 ;
29532 long val2 ;
29533 int ecode2 = 0 ;
29534 long val3 ;
29535 int ecode3 = 0 ;
29536 int val4 ;
29537 int ecode4 = 0 ;
29538 PyObject * obj0 = 0 ;
29539 PyObject * obj1 = 0 ;
29540 PyObject * obj2 = 0 ;
29541 PyObject * obj3 = 0 ;
29542 char * kwnames[] = {
29543 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29544 };
29545
29546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29548 if (!SWIG_IsOK(res1)) {
29549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29550 }
29551 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29552 ecode2 = SWIG_AsVal_long(obj1, &val2);
29553 if (!SWIG_IsOK(ecode2)) {
29554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29555 }
29556 arg2 = static_cast< long >(val2);
29557 ecode3 = SWIG_AsVal_long(obj2, &val3);
29558 if (!SWIG_IsOK(ecode3)) {
29559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29560 }
29561 arg3 = static_cast< long >(val3);
29562 ecode4 = SWIG_AsVal_int(obj3, &val4);
29563 if (!SWIG_IsOK(ecode4)) {
29564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29565 }
29566 arg4 = static_cast< int >(val4);
29567 {
29568 PyThreadState* __tstate = wxPyBeginAllowThreads();
29569 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29570 wxPyEndAllowThreads(__tstate);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 }
29573 {
29574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29575 }
29576 return resultobj;
29577 fail:
29578 return NULL;
29579 }
29580
29581
29582 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29583 PyObject *resultobj = 0;
29584 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29585 long arg2 ;
29586 wxString result;
29587 void *argp1 = 0 ;
29588 int res1 = 0 ;
29589 long val2 ;
29590 int ecode2 = 0 ;
29591 PyObject * obj0 = 0 ;
29592 PyObject * obj1 = 0 ;
29593 char * kwnames[] = {
29594 (char *) "self",(char *) "item", NULL
29595 };
29596
29597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29599 if (!SWIG_IsOK(res1)) {
29600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29601 }
29602 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29603 ecode2 = SWIG_AsVal_long(obj1, &val2);
29604 if (!SWIG_IsOK(ecode2)) {
29605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29606 }
29607 arg2 = static_cast< long >(val2);
29608 {
29609 PyThreadState* __tstate = wxPyBeginAllowThreads();
29610 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29611 wxPyEndAllowThreads(__tstate);
29612 if (PyErr_Occurred()) SWIG_fail;
29613 }
29614 {
29615 #if wxUSE_UNICODE
29616 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29617 #else
29618 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29619 #endif
29620 }
29621 return resultobj;
29622 fail:
29623 return NULL;
29624 }
29625
29626
29627 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29628 PyObject *resultobj = 0;
29629 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29630 long arg2 ;
29631 wxString *arg3 = 0 ;
29632 void *argp1 = 0 ;
29633 int res1 = 0 ;
29634 long val2 ;
29635 int ecode2 = 0 ;
29636 bool temp3 = false ;
29637 PyObject * obj0 = 0 ;
29638 PyObject * obj1 = 0 ;
29639 PyObject * obj2 = 0 ;
29640 char * kwnames[] = {
29641 (char *) "self",(char *) "item",(char *) "str", NULL
29642 };
29643
29644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29646 if (!SWIG_IsOK(res1)) {
29647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29648 }
29649 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29650 ecode2 = SWIG_AsVal_long(obj1, &val2);
29651 if (!SWIG_IsOK(ecode2)) {
29652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29653 }
29654 arg2 = static_cast< long >(val2);
29655 {
29656 arg3 = wxString_in_helper(obj2);
29657 if (arg3 == NULL) SWIG_fail;
29658 temp3 = true;
29659 }
29660 {
29661 PyThreadState* __tstate = wxPyBeginAllowThreads();
29662 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29663 wxPyEndAllowThreads(__tstate);
29664 if (PyErr_Occurred()) SWIG_fail;
29665 }
29666 resultobj = SWIG_Py_Void();
29667 {
29668 if (temp3)
29669 delete arg3;
29670 }
29671 return resultobj;
29672 fail:
29673 {
29674 if (temp3)
29675 delete arg3;
29676 }
29677 return NULL;
29678 }
29679
29680
29681 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29682 PyObject *resultobj = 0;
29683 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29684 long arg2 ;
29685 long result;
29686 void *argp1 = 0 ;
29687 int res1 = 0 ;
29688 long val2 ;
29689 int ecode2 = 0 ;
29690 PyObject * obj0 = 0 ;
29691 PyObject * obj1 = 0 ;
29692 char * kwnames[] = {
29693 (char *) "self",(char *) "item", NULL
29694 };
29695
29696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29698 if (!SWIG_IsOK(res1)) {
29699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29700 }
29701 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29702 ecode2 = SWIG_AsVal_long(obj1, &val2);
29703 if (!SWIG_IsOK(ecode2)) {
29704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29705 }
29706 arg2 = static_cast< long >(val2);
29707 {
29708 PyThreadState* __tstate = wxPyBeginAllowThreads();
29709 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29710 wxPyEndAllowThreads(__tstate);
29711 if (PyErr_Occurred()) SWIG_fail;
29712 }
29713 resultobj = SWIG_From_long(static_cast< long >(result));
29714 return resultobj;
29715 fail:
29716 return NULL;
29717 }
29718
29719
29720 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29721 PyObject *resultobj = 0;
29722 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29723 long arg2 ;
29724 long arg3 ;
29725 bool result;
29726 void *argp1 = 0 ;
29727 int res1 = 0 ;
29728 long val2 ;
29729 int ecode2 = 0 ;
29730 long val3 ;
29731 int ecode3 = 0 ;
29732 PyObject * obj0 = 0 ;
29733 PyObject * obj1 = 0 ;
29734 PyObject * obj2 = 0 ;
29735 char * kwnames[] = {
29736 (char *) "self",(char *) "item",(char *) "data", NULL
29737 };
29738
29739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29741 if (!SWIG_IsOK(res1)) {
29742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29743 }
29744 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29745 ecode2 = SWIG_AsVal_long(obj1, &val2);
29746 if (!SWIG_IsOK(ecode2)) {
29747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29748 }
29749 arg2 = static_cast< long >(val2);
29750 ecode3 = SWIG_AsVal_long(obj2, &val3);
29751 if (!SWIG_IsOK(ecode3)) {
29752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29753 }
29754 arg3 = static_cast< long >(val3);
29755 {
29756 PyThreadState* __tstate = wxPyBeginAllowThreads();
29757 result = (bool)(arg1)->SetItemData(arg2,arg3);
29758 wxPyEndAllowThreads(__tstate);
29759 if (PyErr_Occurred()) SWIG_fail;
29760 }
29761 {
29762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29763 }
29764 return resultobj;
29765 fail:
29766 return NULL;
29767 }
29768
29769
29770 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29771 PyObject *resultobj = 0;
29772 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29773 long arg2 ;
29774 wxPoint result;
29775 void *argp1 = 0 ;
29776 int res1 = 0 ;
29777 long val2 ;
29778 int ecode2 = 0 ;
29779 PyObject * obj0 = 0 ;
29780 PyObject * obj1 = 0 ;
29781 char * kwnames[] = {
29782 (char *) "self",(char *) "item", NULL
29783 };
29784
29785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29787 if (!SWIG_IsOK(res1)) {
29788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29789 }
29790 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29791 ecode2 = SWIG_AsVal_long(obj1, &val2);
29792 if (!SWIG_IsOK(ecode2)) {
29793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29794 }
29795 arg2 = static_cast< long >(val2);
29796 {
29797 PyThreadState* __tstate = wxPyBeginAllowThreads();
29798 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29799 wxPyEndAllowThreads(__tstate);
29800 if (PyErr_Occurred()) SWIG_fail;
29801 }
29802 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29803 return resultobj;
29804 fail:
29805 return NULL;
29806 }
29807
29808
29809 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29810 PyObject *resultobj = 0;
29811 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29812 long arg2 ;
29813 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29814 wxRect result;
29815 void *argp1 = 0 ;
29816 int res1 = 0 ;
29817 long val2 ;
29818 int ecode2 = 0 ;
29819 int val3 ;
29820 int ecode3 = 0 ;
29821 PyObject * obj0 = 0 ;
29822 PyObject * obj1 = 0 ;
29823 PyObject * obj2 = 0 ;
29824 char * kwnames[] = {
29825 (char *) "self",(char *) "item",(char *) "code", NULL
29826 };
29827
29828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29830 if (!SWIG_IsOK(res1)) {
29831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29832 }
29833 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29834 ecode2 = SWIG_AsVal_long(obj1, &val2);
29835 if (!SWIG_IsOK(ecode2)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29837 }
29838 arg2 = static_cast< long >(val2);
29839 if (obj2) {
29840 ecode3 = SWIG_AsVal_int(obj2, &val3);
29841 if (!SWIG_IsOK(ecode3)) {
29842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29843 }
29844 arg3 = static_cast< int >(val3);
29845 }
29846 {
29847 PyThreadState* __tstate = wxPyBeginAllowThreads();
29848 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29849 wxPyEndAllowThreads(__tstate);
29850 if (PyErr_Occurred()) SWIG_fail;
29851 }
29852 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29853 return resultobj;
29854 fail:
29855 return NULL;
29856 }
29857
29858
29859 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29860 PyObject *resultobj = 0;
29861 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29862 long arg2 ;
29863 wxPoint *arg3 = 0 ;
29864 bool result;
29865 void *argp1 = 0 ;
29866 int res1 = 0 ;
29867 long val2 ;
29868 int ecode2 = 0 ;
29869 wxPoint temp3 ;
29870 PyObject * obj0 = 0 ;
29871 PyObject * obj1 = 0 ;
29872 PyObject * obj2 = 0 ;
29873 char * kwnames[] = {
29874 (char *) "self",(char *) "item",(char *) "pos", NULL
29875 };
29876
29877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29879 if (!SWIG_IsOK(res1)) {
29880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29881 }
29882 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29883 ecode2 = SWIG_AsVal_long(obj1, &val2);
29884 if (!SWIG_IsOK(ecode2)) {
29885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29886 }
29887 arg2 = static_cast< long >(val2);
29888 {
29889 arg3 = &temp3;
29890 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29891 }
29892 {
29893 PyThreadState* __tstate = wxPyBeginAllowThreads();
29894 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29895 wxPyEndAllowThreads(__tstate);
29896 if (PyErr_Occurred()) SWIG_fail;
29897 }
29898 {
29899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29900 }
29901 return resultobj;
29902 fail:
29903 return NULL;
29904 }
29905
29906
29907 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29908 PyObject *resultobj = 0;
29909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29910 int result;
29911 void *argp1 = 0 ;
29912 int res1 = 0 ;
29913 PyObject *swig_obj[1] ;
29914
29915 if (!args) SWIG_fail;
29916 swig_obj[0] = args;
29917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29918 if (!SWIG_IsOK(res1)) {
29919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29920 }
29921 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29922 {
29923 PyThreadState* __tstate = wxPyBeginAllowThreads();
29924 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29925 wxPyEndAllowThreads(__tstate);
29926 if (PyErr_Occurred()) SWIG_fail;
29927 }
29928 resultobj = SWIG_From_int(static_cast< int >(result));
29929 return resultobj;
29930 fail:
29931 return NULL;
29932 }
29933
29934
29935 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29936 PyObject *resultobj = 0;
29937 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29938 int result;
29939 void *argp1 = 0 ;
29940 int res1 = 0 ;
29941 PyObject *swig_obj[1] ;
29942
29943 if (!args) SWIG_fail;
29944 swig_obj[0] = args;
29945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29946 if (!SWIG_IsOK(res1)) {
29947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29948 }
29949 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29950 {
29951 PyThreadState* __tstate = wxPyBeginAllowThreads();
29952 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29953 wxPyEndAllowThreads(__tstate);
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 resultobj = SWIG_From_int(static_cast< int >(result));
29957 return resultobj;
29958 fail:
29959 return NULL;
29960 }
29961
29962
29963 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29964 PyObject *resultobj = 0;
29965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29966 wxSize result;
29967 void *argp1 = 0 ;
29968 int res1 = 0 ;
29969 PyObject *swig_obj[1] ;
29970
29971 if (!args) SWIG_fail;
29972 swig_obj[0] = args;
29973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29974 if (!SWIG_IsOK(res1)) {
29975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29976 }
29977 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29978 {
29979 PyThreadState* __tstate = wxPyBeginAllowThreads();
29980 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29981 wxPyEndAllowThreads(__tstate);
29982 if (PyErr_Occurred()) SWIG_fail;
29983 }
29984 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29985 return resultobj;
29986 fail:
29987 return NULL;
29988 }
29989
29990
29991 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29992 PyObject *resultobj = 0;
29993 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29994 int result;
29995 void *argp1 = 0 ;
29996 int res1 = 0 ;
29997 PyObject *swig_obj[1] ;
29998
29999 if (!args) SWIG_fail;
30000 swig_obj[0] = args;
30001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30002 if (!SWIG_IsOK(res1)) {
30003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30004 }
30005 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30006 {
30007 PyThreadState* __tstate = wxPyBeginAllowThreads();
30008 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30009 wxPyEndAllowThreads(__tstate);
30010 if (PyErr_Occurred()) SWIG_fail;
30011 }
30012 resultobj = SWIG_From_int(static_cast< int >(result));
30013 return resultobj;
30014 fail:
30015 return NULL;
30016 }
30017
30018
30019 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30020 PyObject *resultobj = 0;
30021 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30022 wxColour result;
30023 void *argp1 = 0 ;
30024 int res1 = 0 ;
30025 PyObject *swig_obj[1] ;
30026
30027 if (!args) SWIG_fail;
30028 swig_obj[0] = args;
30029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30030 if (!SWIG_IsOK(res1)) {
30031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30032 }
30033 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30034 {
30035 PyThreadState* __tstate = wxPyBeginAllowThreads();
30036 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30037 wxPyEndAllowThreads(__tstate);
30038 if (PyErr_Occurred()) SWIG_fail;
30039 }
30040 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30041 return resultobj;
30042 fail:
30043 return NULL;
30044 }
30045
30046
30047 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30048 PyObject *resultobj = 0;
30049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30050 wxColour *arg2 = 0 ;
30051 void *argp1 = 0 ;
30052 int res1 = 0 ;
30053 wxColour temp2 ;
30054 PyObject * obj0 = 0 ;
30055 PyObject * obj1 = 0 ;
30056 char * kwnames[] = {
30057 (char *) "self",(char *) "col", NULL
30058 };
30059
30060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30062 if (!SWIG_IsOK(res1)) {
30063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30064 }
30065 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30066 {
30067 arg2 = &temp2;
30068 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30069 }
30070 {
30071 PyThreadState* __tstate = wxPyBeginAllowThreads();
30072 (arg1)->SetTextColour((wxColour const &)*arg2);
30073 wxPyEndAllowThreads(__tstate);
30074 if (PyErr_Occurred()) SWIG_fail;
30075 }
30076 resultobj = SWIG_Py_Void();
30077 return resultobj;
30078 fail:
30079 return NULL;
30080 }
30081
30082
30083 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30084 PyObject *resultobj = 0;
30085 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30086 long result;
30087 void *argp1 = 0 ;
30088 int res1 = 0 ;
30089 PyObject *swig_obj[1] ;
30090
30091 if (!args) SWIG_fail;
30092 swig_obj[0] = args;
30093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30094 if (!SWIG_IsOK(res1)) {
30095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30096 }
30097 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30098 {
30099 PyThreadState* __tstate = wxPyBeginAllowThreads();
30100 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30101 wxPyEndAllowThreads(__tstate);
30102 if (PyErr_Occurred()) SWIG_fail;
30103 }
30104 resultobj = SWIG_From_long(static_cast< long >(result));
30105 return resultobj;
30106 fail:
30107 return NULL;
30108 }
30109
30110
30111 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30112 PyObject *resultobj = 0;
30113 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30114 long arg2 ;
30115 bool arg3 = (bool) true ;
30116 void *argp1 = 0 ;
30117 int res1 = 0 ;
30118 long val2 ;
30119 int ecode2 = 0 ;
30120 bool val3 ;
30121 int ecode3 = 0 ;
30122 PyObject * obj0 = 0 ;
30123 PyObject * obj1 = 0 ;
30124 PyObject * obj2 = 0 ;
30125 char * kwnames[] = {
30126 (char *) "self",(char *) "style",(char *) "add", NULL
30127 };
30128
30129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30131 if (!SWIG_IsOK(res1)) {
30132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30133 }
30134 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30135 ecode2 = SWIG_AsVal_long(obj1, &val2);
30136 if (!SWIG_IsOK(ecode2)) {
30137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30138 }
30139 arg2 = static_cast< long >(val2);
30140 if (obj2) {
30141 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30142 if (!SWIG_IsOK(ecode3)) {
30143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30144 }
30145 arg3 = static_cast< bool >(val3);
30146 }
30147 {
30148 PyThreadState* __tstate = wxPyBeginAllowThreads();
30149 (arg1)->SetSingleStyle(arg2,arg3);
30150 wxPyEndAllowThreads(__tstate);
30151 if (PyErr_Occurred()) SWIG_fail;
30152 }
30153 resultobj = SWIG_Py_Void();
30154 return resultobj;
30155 fail:
30156 return NULL;
30157 }
30158
30159
30160 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30161 PyObject *resultobj = 0;
30162 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30163 long arg2 ;
30164 int arg3 = (int) wxLIST_NEXT_ALL ;
30165 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30166 long result;
30167 void *argp1 = 0 ;
30168 int res1 = 0 ;
30169 long val2 ;
30170 int ecode2 = 0 ;
30171 int val3 ;
30172 int ecode3 = 0 ;
30173 int val4 ;
30174 int ecode4 = 0 ;
30175 PyObject * obj0 = 0 ;
30176 PyObject * obj1 = 0 ;
30177 PyObject * obj2 = 0 ;
30178 PyObject * obj3 = 0 ;
30179 char * kwnames[] = {
30180 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30181 };
30182
30183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30185 if (!SWIG_IsOK(res1)) {
30186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30187 }
30188 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30189 ecode2 = SWIG_AsVal_long(obj1, &val2);
30190 if (!SWIG_IsOK(ecode2)) {
30191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30192 }
30193 arg2 = static_cast< long >(val2);
30194 if (obj2) {
30195 ecode3 = SWIG_AsVal_int(obj2, &val3);
30196 if (!SWIG_IsOK(ecode3)) {
30197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30198 }
30199 arg3 = static_cast< int >(val3);
30200 }
30201 if (obj3) {
30202 ecode4 = SWIG_AsVal_int(obj3, &val4);
30203 if (!SWIG_IsOK(ecode4)) {
30204 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30205 }
30206 arg4 = static_cast< int >(val4);
30207 }
30208 {
30209 PyThreadState* __tstate = wxPyBeginAllowThreads();
30210 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30211 wxPyEndAllowThreads(__tstate);
30212 if (PyErr_Occurred()) SWIG_fail;
30213 }
30214 resultobj = SWIG_From_long(static_cast< long >(result));
30215 return resultobj;
30216 fail:
30217 return NULL;
30218 }
30219
30220
30221 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30222 PyObject *resultobj = 0;
30223 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30224 int arg2 ;
30225 wxImageList *result = 0 ;
30226 void *argp1 = 0 ;
30227 int res1 = 0 ;
30228 int val2 ;
30229 int ecode2 = 0 ;
30230 PyObject * obj0 = 0 ;
30231 PyObject * obj1 = 0 ;
30232 char * kwnames[] = {
30233 (char *) "self",(char *) "which", NULL
30234 };
30235
30236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30238 if (!SWIG_IsOK(res1)) {
30239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30240 }
30241 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30242 ecode2 = SWIG_AsVal_int(obj1, &val2);
30243 if (!SWIG_IsOK(ecode2)) {
30244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30245 }
30246 arg2 = static_cast< int >(val2);
30247 {
30248 PyThreadState* __tstate = wxPyBeginAllowThreads();
30249 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30250 wxPyEndAllowThreads(__tstate);
30251 if (PyErr_Occurred()) SWIG_fail;
30252 }
30253 {
30254 resultobj = wxPyMake_wxObject(result, (bool)0);
30255 }
30256 return resultobj;
30257 fail:
30258 return NULL;
30259 }
30260
30261
30262 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30263 PyObject *resultobj = 0;
30264 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30265 wxImageList *arg2 = (wxImageList *) 0 ;
30266 int arg3 ;
30267 void *argp1 = 0 ;
30268 int res1 = 0 ;
30269 void *argp2 = 0 ;
30270 int res2 = 0 ;
30271 int val3 ;
30272 int ecode3 = 0 ;
30273 PyObject * obj0 = 0 ;
30274 PyObject * obj1 = 0 ;
30275 PyObject * obj2 = 0 ;
30276 char * kwnames[] = {
30277 (char *) "self",(char *) "imageList",(char *) "which", NULL
30278 };
30279
30280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30282 if (!SWIG_IsOK(res1)) {
30283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30284 }
30285 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30287 if (!SWIG_IsOK(res2)) {
30288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30289 }
30290 arg2 = reinterpret_cast< wxImageList * >(argp2);
30291 ecode3 = SWIG_AsVal_int(obj2, &val3);
30292 if (!SWIG_IsOK(ecode3)) {
30293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30294 }
30295 arg3 = static_cast< int >(val3);
30296 {
30297 PyThreadState* __tstate = wxPyBeginAllowThreads();
30298 (arg1)->SetImageList(arg2,arg3);
30299 wxPyEndAllowThreads(__tstate);
30300 if (PyErr_Occurred()) SWIG_fail;
30301 }
30302 resultobj = SWIG_Py_Void();
30303 return resultobj;
30304 fail:
30305 return NULL;
30306 }
30307
30308
30309 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30310 PyObject *resultobj = 0;
30311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30312 wxImageList *arg2 = (wxImageList *) 0 ;
30313 int arg3 ;
30314 void *argp1 = 0 ;
30315 int res1 = 0 ;
30316 int res2 = 0 ;
30317 int val3 ;
30318 int ecode3 = 0 ;
30319 PyObject * obj0 = 0 ;
30320 PyObject * obj1 = 0 ;
30321 PyObject * obj2 = 0 ;
30322 char * kwnames[] = {
30323 (char *) "self",(char *) "imageList",(char *) "which", NULL
30324 };
30325
30326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30328 if (!SWIG_IsOK(res1)) {
30329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30330 }
30331 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30332 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30333 if (!SWIG_IsOK(res2)) {
30334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30335 }
30336 ecode3 = SWIG_AsVal_int(obj2, &val3);
30337 if (!SWIG_IsOK(ecode3)) {
30338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30339 }
30340 arg3 = static_cast< int >(val3);
30341 {
30342 PyThreadState* __tstate = wxPyBeginAllowThreads();
30343 (arg1)->AssignImageList(arg2,arg3);
30344 wxPyEndAllowThreads(__tstate);
30345 if (PyErr_Occurred()) SWIG_fail;
30346 }
30347 resultobj = SWIG_Py_Void();
30348 return resultobj;
30349 fail:
30350 return NULL;
30351 }
30352
30353
30354 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30355 PyObject *resultobj = 0;
30356 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30357 bool result;
30358 void *argp1 = 0 ;
30359 int res1 = 0 ;
30360 PyObject *swig_obj[1] ;
30361
30362 if (!args) SWIG_fail;
30363 swig_obj[0] = args;
30364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30365 if (!SWIG_IsOK(res1)) {
30366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30367 }
30368 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30369 {
30370 PyThreadState* __tstate = wxPyBeginAllowThreads();
30371 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30372 wxPyEndAllowThreads(__tstate);
30373 if (PyErr_Occurred()) SWIG_fail;
30374 }
30375 {
30376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30377 }
30378 return resultobj;
30379 fail:
30380 return NULL;
30381 }
30382
30383
30384 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30385 PyObject *resultobj = 0;
30386 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30387 bool result;
30388 void *argp1 = 0 ;
30389 int res1 = 0 ;
30390 PyObject *swig_obj[1] ;
30391
30392 if (!args) SWIG_fail;
30393 swig_obj[0] = args;
30394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30395 if (!SWIG_IsOK(res1)) {
30396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30397 }
30398 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30399 {
30400 PyThreadState* __tstate = wxPyBeginAllowThreads();
30401 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30402 wxPyEndAllowThreads(__tstate);
30403 if (PyErr_Occurred()) SWIG_fail;
30404 }
30405 {
30406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30407 }
30408 return resultobj;
30409 fail:
30410 return NULL;
30411 }
30412
30413
30414 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30415 PyObject *resultobj = 0;
30416 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30417 long arg2 ;
30418 void *argp1 = 0 ;
30419 int res1 = 0 ;
30420 long val2 ;
30421 int ecode2 = 0 ;
30422 PyObject * obj0 = 0 ;
30423 PyObject * obj1 = 0 ;
30424 char * kwnames[] = {
30425 (char *) "self",(char *) "item", NULL
30426 };
30427
30428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30430 if (!SWIG_IsOK(res1)) {
30431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30432 }
30433 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30434 ecode2 = SWIG_AsVal_long(obj1, &val2);
30435 if (!SWIG_IsOK(ecode2)) {
30436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30437 }
30438 arg2 = static_cast< long >(val2);
30439 {
30440 PyThreadState* __tstate = wxPyBeginAllowThreads();
30441 (arg1)->RefreshItem(arg2);
30442 wxPyEndAllowThreads(__tstate);
30443 if (PyErr_Occurred()) SWIG_fail;
30444 }
30445 resultobj = SWIG_Py_Void();
30446 return resultobj;
30447 fail:
30448 return NULL;
30449 }
30450
30451
30452 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30453 PyObject *resultobj = 0;
30454 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30455 long arg2 ;
30456 long arg3 ;
30457 void *argp1 = 0 ;
30458 int res1 = 0 ;
30459 long val2 ;
30460 int ecode2 = 0 ;
30461 long val3 ;
30462 int ecode3 = 0 ;
30463 PyObject * obj0 = 0 ;
30464 PyObject * obj1 = 0 ;
30465 PyObject * obj2 = 0 ;
30466 char * kwnames[] = {
30467 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30468 };
30469
30470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30472 if (!SWIG_IsOK(res1)) {
30473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30474 }
30475 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30476 ecode2 = SWIG_AsVal_long(obj1, &val2);
30477 if (!SWIG_IsOK(ecode2)) {
30478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30479 }
30480 arg2 = static_cast< long >(val2);
30481 ecode3 = SWIG_AsVal_long(obj2, &val3);
30482 if (!SWIG_IsOK(ecode3)) {
30483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30484 }
30485 arg3 = static_cast< long >(val3);
30486 {
30487 PyThreadState* __tstate = wxPyBeginAllowThreads();
30488 (arg1)->RefreshItems(arg2,arg3);
30489 wxPyEndAllowThreads(__tstate);
30490 if (PyErr_Occurred()) SWIG_fail;
30491 }
30492 resultobj = SWIG_Py_Void();
30493 return resultobj;
30494 fail:
30495 return NULL;
30496 }
30497
30498
30499 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30500 PyObject *resultobj = 0;
30501 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30502 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30503 bool result;
30504 void *argp1 = 0 ;
30505 int res1 = 0 ;
30506 int val2 ;
30507 int ecode2 = 0 ;
30508 PyObject * obj0 = 0 ;
30509 PyObject * obj1 = 0 ;
30510 char * kwnames[] = {
30511 (char *) "self",(char *) "flag", NULL
30512 };
30513
30514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30516 if (!SWIG_IsOK(res1)) {
30517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30518 }
30519 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30520 if (obj1) {
30521 ecode2 = SWIG_AsVal_int(obj1, &val2);
30522 if (!SWIG_IsOK(ecode2)) {
30523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30524 }
30525 arg2 = static_cast< int >(val2);
30526 }
30527 {
30528 PyThreadState* __tstate = wxPyBeginAllowThreads();
30529 result = (bool)(arg1)->Arrange(arg2);
30530 wxPyEndAllowThreads(__tstate);
30531 if (PyErr_Occurred()) SWIG_fail;
30532 }
30533 {
30534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30535 }
30536 return resultobj;
30537 fail:
30538 return NULL;
30539 }
30540
30541
30542 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30543 PyObject *resultobj = 0;
30544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30545 long arg2 ;
30546 bool result;
30547 void *argp1 = 0 ;
30548 int res1 = 0 ;
30549 long val2 ;
30550 int ecode2 = 0 ;
30551 PyObject * obj0 = 0 ;
30552 PyObject * obj1 = 0 ;
30553 char * kwnames[] = {
30554 (char *) "self",(char *) "item", NULL
30555 };
30556
30557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30559 if (!SWIG_IsOK(res1)) {
30560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30561 }
30562 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30563 ecode2 = SWIG_AsVal_long(obj1, &val2);
30564 if (!SWIG_IsOK(ecode2)) {
30565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30566 }
30567 arg2 = static_cast< long >(val2);
30568 {
30569 PyThreadState* __tstate = wxPyBeginAllowThreads();
30570 result = (bool)(arg1)->DeleteItem(arg2);
30571 wxPyEndAllowThreads(__tstate);
30572 if (PyErr_Occurred()) SWIG_fail;
30573 }
30574 {
30575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30576 }
30577 return resultobj;
30578 fail:
30579 return NULL;
30580 }
30581
30582
30583 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30584 PyObject *resultobj = 0;
30585 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30586 bool result;
30587 void *argp1 = 0 ;
30588 int res1 = 0 ;
30589 PyObject *swig_obj[1] ;
30590
30591 if (!args) SWIG_fail;
30592 swig_obj[0] = args;
30593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30594 if (!SWIG_IsOK(res1)) {
30595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30596 }
30597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30598 {
30599 PyThreadState* __tstate = wxPyBeginAllowThreads();
30600 result = (bool)(arg1)->DeleteAllItems();
30601 wxPyEndAllowThreads(__tstate);
30602 if (PyErr_Occurred()) SWIG_fail;
30603 }
30604 {
30605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30606 }
30607 return resultobj;
30608 fail:
30609 return NULL;
30610 }
30611
30612
30613 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30614 PyObject *resultobj = 0;
30615 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30616 int arg2 ;
30617 bool result;
30618 void *argp1 = 0 ;
30619 int res1 = 0 ;
30620 int val2 ;
30621 int ecode2 = 0 ;
30622 PyObject * obj0 = 0 ;
30623 PyObject * obj1 = 0 ;
30624 char * kwnames[] = {
30625 (char *) "self",(char *) "col", NULL
30626 };
30627
30628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30630 if (!SWIG_IsOK(res1)) {
30631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30632 }
30633 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30634 ecode2 = SWIG_AsVal_int(obj1, &val2);
30635 if (!SWIG_IsOK(ecode2)) {
30636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30637 }
30638 arg2 = static_cast< int >(val2);
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 result = (bool)(arg1)->DeleteColumn(arg2);
30642 wxPyEndAllowThreads(__tstate);
30643 if (PyErr_Occurred()) SWIG_fail;
30644 }
30645 {
30646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30647 }
30648 return resultobj;
30649 fail:
30650 return NULL;
30651 }
30652
30653
30654 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30655 PyObject *resultobj = 0;
30656 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30657 bool result;
30658 void *argp1 = 0 ;
30659 int res1 = 0 ;
30660 PyObject *swig_obj[1] ;
30661
30662 if (!args) SWIG_fail;
30663 swig_obj[0] = args;
30664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30665 if (!SWIG_IsOK(res1)) {
30666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30667 }
30668 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30669 {
30670 PyThreadState* __tstate = wxPyBeginAllowThreads();
30671 result = (bool)(arg1)->DeleteAllColumns();
30672 wxPyEndAllowThreads(__tstate);
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 {
30676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30677 }
30678 return resultobj;
30679 fail:
30680 return NULL;
30681 }
30682
30683
30684 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30685 PyObject *resultobj = 0;
30686 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30687 void *argp1 = 0 ;
30688 int res1 = 0 ;
30689 PyObject *swig_obj[1] ;
30690
30691 if (!args) SWIG_fail;
30692 swig_obj[0] = args;
30693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30694 if (!SWIG_IsOK(res1)) {
30695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30696 }
30697 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30698 {
30699 PyThreadState* __tstate = wxPyBeginAllowThreads();
30700 (arg1)->ClearAll();
30701 wxPyEndAllowThreads(__tstate);
30702 if (PyErr_Occurred()) SWIG_fail;
30703 }
30704 resultobj = SWIG_Py_Void();
30705 return resultobj;
30706 fail:
30707 return NULL;
30708 }
30709
30710
30711 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30712 PyObject *resultobj = 0;
30713 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30714 long arg2 ;
30715 wxTextCtrl *result = 0 ;
30716 void *argp1 = 0 ;
30717 int res1 = 0 ;
30718 long val2 ;
30719 int ecode2 = 0 ;
30720 PyObject * obj0 = 0 ;
30721 PyObject * obj1 = 0 ;
30722 char * kwnames[] = {
30723 (char *) "self",(char *) "item", NULL
30724 };
30725
30726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30728 if (!SWIG_IsOK(res1)) {
30729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30730 }
30731 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30732 ecode2 = SWIG_AsVal_long(obj1, &val2);
30733 if (!SWIG_IsOK(ecode2)) {
30734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30735 }
30736 arg2 = static_cast< long >(val2);
30737 {
30738 PyThreadState* __tstate = wxPyBeginAllowThreads();
30739 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30740 wxPyEndAllowThreads(__tstate);
30741 if (PyErr_Occurred()) SWIG_fail;
30742 }
30743 {
30744 resultobj = wxPyMake_wxObject(result, 0);
30745 }
30746 return resultobj;
30747 fail:
30748 return NULL;
30749 }
30750
30751
30752 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30753 PyObject *resultobj = 0;
30754 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30755 bool arg2 ;
30756 bool result;
30757 void *argp1 = 0 ;
30758 int res1 = 0 ;
30759 bool val2 ;
30760 int ecode2 = 0 ;
30761 PyObject * obj0 = 0 ;
30762 PyObject * obj1 = 0 ;
30763 char * kwnames[] = {
30764 (char *) "self",(char *) "cancel", NULL
30765 };
30766
30767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30769 if (!SWIG_IsOK(res1)) {
30770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30771 }
30772 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30773 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30774 if (!SWIG_IsOK(ecode2)) {
30775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30776 }
30777 arg2 = static_cast< bool >(val2);
30778 {
30779 PyThreadState* __tstate = wxPyBeginAllowThreads();
30780 result = (bool)(arg1)->EndEditLabel(arg2);
30781 wxPyEndAllowThreads(__tstate);
30782 if (PyErr_Occurred()) SWIG_fail;
30783 }
30784 {
30785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30786 }
30787 return resultobj;
30788 fail:
30789 return NULL;
30790 }
30791
30792
30793 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj = 0;
30795 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30796 long arg2 ;
30797 bool result;
30798 void *argp1 = 0 ;
30799 int res1 = 0 ;
30800 long val2 ;
30801 int ecode2 = 0 ;
30802 PyObject * obj0 = 0 ;
30803 PyObject * obj1 = 0 ;
30804 char * kwnames[] = {
30805 (char *) "self",(char *) "item", NULL
30806 };
30807
30808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30810 if (!SWIG_IsOK(res1)) {
30811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30812 }
30813 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30814 ecode2 = SWIG_AsVal_long(obj1, &val2);
30815 if (!SWIG_IsOK(ecode2)) {
30816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30817 }
30818 arg2 = static_cast< long >(val2);
30819 {
30820 PyThreadState* __tstate = wxPyBeginAllowThreads();
30821 result = (bool)(arg1)->EnsureVisible(arg2);
30822 wxPyEndAllowThreads(__tstate);
30823 if (PyErr_Occurred()) SWIG_fail;
30824 }
30825 {
30826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30827 }
30828 return resultobj;
30829 fail:
30830 return NULL;
30831 }
30832
30833
30834 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30835 PyObject *resultobj = 0;
30836 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30837 long arg2 ;
30838 wxString *arg3 = 0 ;
30839 bool arg4 = (bool) false ;
30840 long result;
30841 void *argp1 = 0 ;
30842 int res1 = 0 ;
30843 long val2 ;
30844 int ecode2 = 0 ;
30845 bool temp3 = false ;
30846 bool val4 ;
30847 int ecode4 = 0 ;
30848 PyObject * obj0 = 0 ;
30849 PyObject * obj1 = 0 ;
30850 PyObject * obj2 = 0 ;
30851 PyObject * obj3 = 0 ;
30852 char * kwnames[] = {
30853 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30854 };
30855
30856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30858 if (!SWIG_IsOK(res1)) {
30859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30860 }
30861 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30862 ecode2 = SWIG_AsVal_long(obj1, &val2);
30863 if (!SWIG_IsOK(ecode2)) {
30864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30865 }
30866 arg2 = static_cast< long >(val2);
30867 {
30868 arg3 = wxString_in_helper(obj2);
30869 if (arg3 == NULL) SWIG_fail;
30870 temp3 = true;
30871 }
30872 if (obj3) {
30873 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30874 if (!SWIG_IsOK(ecode4)) {
30875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30876 }
30877 arg4 = static_cast< bool >(val4);
30878 }
30879 {
30880 PyThreadState* __tstate = wxPyBeginAllowThreads();
30881 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30882 wxPyEndAllowThreads(__tstate);
30883 if (PyErr_Occurred()) SWIG_fail;
30884 }
30885 resultobj = SWIG_From_long(static_cast< long >(result));
30886 {
30887 if (temp3)
30888 delete arg3;
30889 }
30890 return resultobj;
30891 fail:
30892 {
30893 if (temp3)
30894 delete arg3;
30895 }
30896 return NULL;
30897 }
30898
30899
30900 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30901 PyObject *resultobj = 0;
30902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30903 long arg2 ;
30904 long arg3 ;
30905 long result;
30906 void *argp1 = 0 ;
30907 int res1 = 0 ;
30908 long val2 ;
30909 int ecode2 = 0 ;
30910 long val3 ;
30911 int ecode3 = 0 ;
30912 PyObject * obj0 = 0 ;
30913 PyObject * obj1 = 0 ;
30914 PyObject * obj2 = 0 ;
30915 char * kwnames[] = {
30916 (char *) "self",(char *) "start",(char *) "data", NULL
30917 };
30918
30919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30921 if (!SWIG_IsOK(res1)) {
30922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30923 }
30924 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30925 ecode2 = SWIG_AsVal_long(obj1, &val2);
30926 if (!SWIG_IsOK(ecode2)) {
30927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30928 }
30929 arg2 = static_cast< long >(val2);
30930 ecode3 = SWIG_AsVal_long(obj2, &val3);
30931 if (!SWIG_IsOK(ecode3)) {
30932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30933 }
30934 arg3 = static_cast< long >(val3);
30935 {
30936 PyThreadState* __tstate = wxPyBeginAllowThreads();
30937 result = (long)(arg1)->FindItem(arg2,arg3);
30938 wxPyEndAllowThreads(__tstate);
30939 if (PyErr_Occurred()) SWIG_fail;
30940 }
30941 resultobj = SWIG_From_long(static_cast< long >(result));
30942 return resultobj;
30943 fail:
30944 return NULL;
30945 }
30946
30947
30948 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30949 PyObject *resultobj = 0;
30950 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30951 long arg2 ;
30952 wxPoint *arg3 = 0 ;
30953 int arg4 ;
30954 long result;
30955 void *argp1 = 0 ;
30956 int res1 = 0 ;
30957 long val2 ;
30958 int ecode2 = 0 ;
30959 wxPoint temp3 ;
30960 int val4 ;
30961 int ecode4 = 0 ;
30962 PyObject * obj0 = 0 ;
30963 PyObject * obj1 = 0 ;
30964 PyObject * obj2 = 0 ;
30965 PyObject * obj3 = 0 ;
30966 char * kwnames[] = {
30967 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30968 };
30969
30970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30972 if (!SWIG_IsOK(res1)) {
30973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30974 }
30975 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30976 ecode2 = SWIG_AsVal_long(obj1, &val2);
30977 if (!SWIG_IsOK(ecode2)) {
30978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30979 }
30980 arg2 = static_cast< long >(val2);
30981 {
30982 arg3 = &temp3;
30983 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30984 }
30985 ecode4 = SWIG_AsVal_int(obj3, &val4);
30986 if (!SWIG_IsOK(ecode4)) {
30987 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30988 }
30989 arg4 = static_cast< int >(val4);
30990 {
30991 PyThreadState* __tstate = wxPyBeginAllowThreads();
30992 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30993 wxPyEndAllowThreads(__tstate);
30994 if (PyErr_Occurred()) SWIG_fail;
30995 }
30996 resultobj = SWIG_From_long(static_cast< long >(result));
30997 return resultobj;
30998 fail:
30999 return NULL;
31000 }
31001
31002
31003 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31004 PyObject *resultobj = 0;
31005 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31006 wxPoint *arg2 = 0 ;
31007 int *arg3 = 0 ;
31008 long result;
31009 void *argp1 = 0 ;
31010 int res1 = 0 ;
31011 wxPoint temp2 ;
31012 int temp3 ;
31013 int res3 = SWIG_TMPOBJ ;
31014 PyObject * obj0 = 0 ;
31015 PyObject * obj1 = 0 ;
31016 char * kwnames[] = {
31017 (char *) "self",(char *) "point", NULL
31018 };
31019
31020 arg3 = &temp3;
31021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31023 if (!SWIG_IsOK(res1)) {
31024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31025 }
31026 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31027 {
31028 arg2 = &temp2;
31029 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31030 }
31031 {
31032 PyThreadState* __tstate = wxPyBeginAllowThreads();
31033 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31034 wxPyEndAllowThreads(__tstate);
31035 if (PyErr_Occurred()) SWIG_fail;
31036 }
31037 resultobj = SWIG_From_long(static_cast< long >(result));
31038 if (SWIG_IsTmpObj(res3)) {
31039 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31040 } else {
31041 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31042 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31043 }
31044 return resultobj;
31045 fail:
31046 return NULL;
31047 }
31048
31049
31050 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31051 PyObject *resultobj = 0;
31052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31053 wxPoint *arg2 = 0 ;
31054 int *arg3 = 0 ;
31055 long *arg4 = (long *) 0 ;
31056 long result;
31057 void *argp1 = 0 ;
31058 int res1 = 0 ;
31059 wxPoint temp2 ;
31060 int temp3 ;
31061 int res3 = SWIG_TMPOBJ ;
31062 long temp4 ;
31063 int res4 = SWIG_TMPOBJ ;
31064 PyObject * obj0 = 0 ;
31065 PyObject * obj1 = 0 ;
31066 char * kwnames[] = {
31067 (char *) "self",(char *) "point", NULL
31068 };
31069
31070 arg3 = &temp3;
31071 arg4 = &temp4;
31072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31074 if (!SWIG_IsOK(res1)) {
31075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31076 }
31077 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31078 {
31079 arg2 = &temp2;
31080 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31081 }
31082 {
31083 PyThreadState* __tstate = wxPyBeginAllowThreads();
31084 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31085 wxPyEndAllowThreads(__tstate);
31086 if (PyErr_Occurred()) SWIG_fail;
31087 }
31088 resultobj = SWIG_From_long(static_cast< long >(result));
31089 if (SWIG_IsTmpObj(res3)) {
31090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31091 } else {
31092 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31094 }
31095 if (SWIG_IsTmpObj(res4)) {
31096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31097 } else {
31098 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31100 }
31101 return resultobj;
31102 fail:
31103 return NULL;
31104 }
31105
31106
31107 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31108 PyObject *resultobj = 0;
31109 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31110 wxListItem *arg2 = 0 ;
31111 long result;
31112 void *argp1 = 0 ;
31113 int res1 = 0 ;
31114 void *argp2 = 0 ;
31115 int res2 = 0 ;
31116 PyObject * obj0 = 0 ;
31117 PyObject * obj1 = 0 ;
31118 char * kwnames[] = {
31119 (char *) "self",(char *) "info", NULL
31120 };
31121
31122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31124 if (!SWIG_IsOK(res1)) {
31125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31126 }
31127 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31129 if (!SWIG_IsOK(res2)) {
31130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31131 }
31132 if (!argp2) {
31133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31134 }
31135 arg2 = reinterpret_cast< wxListItem * >(argp2);
31136 {
31137 PyThreadState* __tstate = wxPyBeginAllowThreads();
31138 result = (long)(arg1)->InsertItem(*arg2);
31139 wxPyEndAllowThreads(__tstate);
31140 if (PyErr_Occurred()) SWIG_fail;
31141 }
31142 resultobj = SWIG_From_long(static_cast< long >(result));
31143 return resultobj;
31144 fail:
31145 return NULL;
31146 }
31147
31148
31149 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31150 PyObject *resultobj = 0;
31151 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31152 long arg2 ;
31153 wxString *arg3 = 0 ;
31154 int arg4 = (int) -1 ;
31155 long result;
31156 void *argp1 = 0 ;
31157 int res1 = 0 ;
31158 long val2 ;
31159 int ecode2 = 0 ;
31160 bool temp3 = false ;
31161 int val4 ;
31162 int ecode4 = 0 ;
31163 PyObject * obj0 = 0 ;
31164 PyObject * obj1 = 0 ;
31165 PyObject * obj2 = 0 ;
31166 PyObject * obj3 = 0 ;
31167 char * kwnames[] = {
31168 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31169 };
31170
31171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31173 if (!SWIG_IsOK(res1)) {
31174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31175 }
31176 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31177 ecode2 = SWIG_AsVal_long(obj1, &val2);
31178 if (!SWIG_IsOK(ecode2)) {
31179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31180 }
31181 arg2 = static_cast< long >(val2);
31182 {
31183 arg3 = wxString_in_helper(obj2);
31184 if (arg3 == NULL) SWIG_fail;
31185 temp3 = true;
31186 }
31187 if (obj3) {
31188 ecode4 = SWIG_AsVal_int(obj3, &val4);
31189 if (!SWIG_IsOK(ecode4)) {
31190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31191 }
31192 arg4 = static_cast< int >(val4);
31193 }
31194 {
31195 PyThreadState* __tstate = wxPyBeginAllowThreads();
31196 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31197 wxPyEndAllowThreads(__tstate);
31198 if (PyErr_Occurred()) SWIG_fail;
31199 }
31200 resultobj = SWIG_From_long(static_cast< long >(result));
31201 {
31202 if (temp3)
31203 delete arg3;
31204 }
31205 return resultobj;
31206 fail:
31207 {
31208 if (temp3)
31209 delete arg3;
31210 }
31211 return NULL;
31212 }
31213
31214
31215 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31216 PyObject *resultobj = 0;
31217 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31218 long arg2 ;
31219 int arg3 ;
31220 long result;
31221 void *argp1 = 0 ;
31222 int res1 = 0 ;
31223 long val2 ;
31224 int ecode2 = 0 ;
31225 int val3 ;
31226 int ecode3 = 0 ;
31227 PyObject * obj0 = 0 ;
31228 PyObject * obj1 = 0 ;
31229 PyObject * obj2 = 0 ;
31230 char * kwnames[] = {
31231 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31232 };
31233
31234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31236 if (!SWIG_IsOK(res1)) {
31237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31238 }
31239 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31240 ecode2 = SWIG_AsVal_long(obj1, &val2);
31241 if (!SWIG_IsOK(ecode2)) {
31242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31243 }
31244 arg2 = static_cast< long >(val2);
31245 ecode3 = SWIG_AsVal_int(obj2, &val3);
31246 if (!SWIG_IsOK(ecode3)) {
31247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31248 }
31249 arg3 = static_cast< int >(val3);
31250 {
31251 PyThreadState* __tstate = wxPyBeginAllowThreads();
31252 result = (long)(arg1)->InsertItem(arg2,arg3);
31253 wxPyEndAllowThreads(__tstate);
31254 if (PyErr_Occurred()) SWIG_fail;
31255 }
31256 resultobj = SWIG_From_long(static_cast< long >(result));
31257 return resultobj;
31258 fail:
31259 return NULL;
31260 }
31261
31262
31263 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31264 PyObject *resultobj = 0;
31265 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31266 long arg2 ;
31267 wxString *arg3 = 0 ;
31268 int arg4 ;
31269 long result;
31270 void *argp1 = 0 ;
31271 int res1 = 0 ;
31272 long val2 ;
31273 int ecode2 = 0 ;
31274 bool temp3 = false ;
31275 int val4 ;
31276 int ecode4 = 0 ;
31277 PyObject * obj0 = 0 ;
31278 PyObject * obj1 = 0 ;
31279 PyObject * obj2 = 0 ;
31280 PyObject * obj3 = 0 ;
31281 char * kwnames[] = {
31282 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31283 };
31284
31285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31287 if (!SWIG_IsOK(res1)) {
31288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31289 }
31290 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31291 ecode2 = SWIG_AsVal_long(obj1, &val2);
31292 if (!SWIG_IsOK(ecode2)) {
31293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31294 }
31295 arg2 = static_cast< long >(val2);
31296 {
31297 arg3 = wxString_in_helper(obj2);
31298 if (arg3 == NULL) SWIG_fail;
31299 temp3 = true;
31300 }
31301 ecode4 = SWIG_AsVal_int(obj3, &val4);
31302 if (!SWIG_IsOK(ecode4)) {
31303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31304 }
31305 arg4 = static_cast< int >(val4);
31306 {
31307 PyThreadState* __tstate = wxPyBeginAllowThreads();
31308 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31309 wxPyEndAllowThreads(__tstate);
31310 if (PyErr_Occurred()) SWIG_fail;
31311 }
31312 resultobj = SWIG_From_long(static_cast< long >(result));
31313 {
31314 if (temp3)
31315 delete arg3;
31316 }
31317 return resultobj;
31318 fail:
31319 {
31320 if (temp3)
31321 delete arg3;
31322 }
31323 return NULL;
31324 }
31325
31326
31327 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31328 PyObject *resultobj = 0;
31329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31330 long arg2 ;
31331 wxListItem *arg3 = 0 ;
31332 long result;
31333 void *argp1 = 0 ;
31334 int res1 = 0 ;
31335 long val2 ;
31336 int ecode2 = 0 ;
31337 void *argp3 = 0 ;
31338 int res3 = 0 ;
31339 PyObject * obj0 = 0 ;
31340 PyObject * obj1 = 0 ;
31341 PyObject * obj2 = 0 ;
31342 char * kwnames[] = {
31343 (char *) "self",(char *) "col",(char *) "info", NULL
31344 };
31345
31346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31348 if (!SWIG_IsOK(res1)) {
31349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31350 }
31351 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31352 ecode2 = SWIG_AsVal_long(obj1, &val2);
31353 if (!SWIG_IsOK(ecode2)) {
31354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31355 }
31356 arg2 = static_cast< long >(val2);
31357 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31358 if (!SWIG_IsOK(res3)) {
31359 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31360 }
31361 if (!argp3) {
31362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31363 }
31364 arg3 = reinterpret_cast< wxListItem * >(argp3);
31365 {
31366 PyThreadState* __tstate = wxPyBeginAllowThreads();
31367 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31368 wxPyEndAllowThreads(__tstate);
31369 if (PyErr_Occurred()) SWIG_fail;
31370 }
31371 resultobj = SWIG_From_long(static_cast< long >(result));
31372 return resultobj;
31373 fail:
31374 return NULL;
31375 }
31376
31377
31378 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31379 PyObject *resultobj = 0;
31380 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31381 long arg2 ;
31382 wxString *arg3 = 0 ;
31383 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31384 int arg5 = (int) -1 ;
31385 long result;
31386 void *argp1 = 0 ;
31387 int res1 = 0 ;
31388 long val2 ;
31389 int ecode2 = 0 ;
31390 bool temp3 = false ;
31391 int val4 ;
31392 int ecode4 = 0 ;
31393 int val5 ;
31394 int ecode5 = 0 ;
31395 PyObject * obj0 = 0 ;
31396 PyObject * obj1 = 0 ;
31397 PyObject * obj2 = 0 ;
31398 PyObject * obj3 = 0 ;
31399 PyObject * obj4 = 0 ;
31400 char * kwnames[] = {
31401 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31402 };
31403
31404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31406 if (!SWIG_IsOK(res1)) {
31407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31408 }
31409 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31410 ecode2 = SWIG_AsVal_long(obj1, &val2);
31411 if (!SWIG_IsOK(ecode2)) {
31412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31413 }
31414 arg2 = static_cast< long >(val2);
31415 {
31416 arg3 = wxString_in_helper(obj2);
31417 if (arg3 == NULL) SWIG_fail;
31418 temp3 = true;
31419 }
31420 if (obj3) {
31421 ecode4 = SWIG_AsVal_int(obj3, &val4);
31422 if (!SWIG_IsOK(ecode4)) {
31423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31424 }
31425 arg4 = static_cast< int >(val4);
31426 }
31427 if (obj4) {
31428 ecode5 = SWIG_AsVal_int(obj4, &val5);
31429 if (!SWIG_IsOK(ecode5)) {
31430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31431 }
31432 arg5 = static_cast< int >(val5);
31433 }
31434 {
31435 PyThreadState* __tstate = wxPyBeginAllowThreads();
31436 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31437 wxPyEndAllowThreads(__tstate);
31438 if (PyErr_Occurred()) SWIG_fail;
31439 }
31440 resultobj = SWIG_From_long(static_cast< long >(result));
31441 {
31442 if (temp3)
31443 delete arg3;
31444 }
31445 return resultobj;
31446 fail:
31447 {
31448 if (temp3)
31449 delete arg3;
31450 }
31451 return NULL;
31452 }
31453
31454
31455 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31456 PyObject *resultobj = 0;
31457 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31458 long arg2 ;
31459 void *argp1 = 0 ;
31460 int res1 = 0 ;
31461 long val2 ;
31462 int ecode2 = 0 ;
31463 PyObject * obj0 = 0 ;
31464 PyObject * obj1 = 0 ;
31465 char * kwnames[] = {
31466 (char *) "self",(char *) "count", NULL
31467 };
31468
31469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31471 if (!SWIG_IsOK(res1)) {
31472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31473 }
31474 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31475 ecode2 = SWIG_AsVal_long(obj1, &val2);
31476 if (!SWIG_IsOK(ecode2)) {
31477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31478 }
31479 arg2 = static_cast< long >(val2);
31480 {
31481 PyThreadState* __tstate = wxPyBeginAllowThreads();
31482 (arg1)->SetItemCount(arg2);
31483 wxPyEndAllowThreads(__tstate);
31484 if (PyErr_Occurred()) SWIG_fail;
31485 }
31486 resultobj = SWIG_Py_Void();
31487 return resultobj;
31488 fail:
31489 return NULL;
31490 }
31491
31492
31493 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31494 PyObject *resultobj = 0;
31495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31496 int arg2 ;
31497 int arg3 ;
31498 bool result;
31499 void *argp1 = 0 ;
31500 int res1 = 0 ;
31501 int val2 ;
31502 int ecode2 = 0 ;
31503 int val3 ;
31504 int ecode3 = 0 ;
31505 PyObject * obj0 = 0 ;
31506 PyObject * obj1 = 0 ;
31507 PyObject * obj2 = 0 ;
31508 char * kwnames[] = {
31509 (char *) "self",(char *) "dx",(char *) "dy", NULL
31510 };
31511
31512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31514 if (!SWIG_IsOK(res1)) {
31515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31516 }
31517 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31518 ecode2 = SWIG_AsVal_int(obj1, &val2);
31519 if (!SWIG_IsOK(ecode2)) {
31520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31521 }
31522 arg2 = static_cast< int >(val2);
31523 ecode3 = SWIG_AsVal_int(obj2, &val3);
31524 if (!SWIG_IsOK(ecode3)) {
31525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31526 }
31527 arg3 = static_cast< int >(val3);
31528 {
31529 PyThreadState* __tstate = wxPyBeginAllowThreads();
31530 result = (bool)(arg1)->ScrollList(arg2,arg3);
31531 wxPyEndAllowThreads(__tstate);
31532 if (PyErr_Occurred()) SWIG_fail;
31533 }
31534 {
31535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31536 }
31537 return resultobj;
31538 fail:
31539 return NULL;
31540 }
31541
31542
31543 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31544 PyObject *resultobj = 0;
31545 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31546 long arg2 ;
31547 wxColour *arg3 = 0 ;
31548 void *argp1 = 0 ;
31549 int res1 = 0 ;
31550 long val2 ;
31551 int ecode2 = 0 ;
31552 wxColour temp3 ;
31553 PyObject * obj0 = 0 ;
31554 PyObject * obj1 = 0 ;
31555 PyObject * obj2 = 0 ;
31556 char * kwnames[] = {
31557 (char *) "self",(char *) "item",(char *) "col", NULL
31558 };
31559
31560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31562 if (!SWIG_IsOK(res1)) {
31563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31564 }
31565 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31566 ecode2 = SWIG_AsVal_long(obj1, &val2);
31567 if (!SWIG_IsOK(ecode2)) {
31568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31569 }
31570 arg2 = static_cast< long >(val2);
31571 {
31572 arg3 = &temp3;
31573 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31574 }
31575 {
31576 PyThreadState* __tstate = wxPyBeginAllowThreads();
31577 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31578 wxPyEndAllowThreads(__tstate);
31579 if (PyErr_Occurred()) SWIG_fail;
31580 }
31581 resultobj = SWIG_Py_Void();
31582 return resultobj;
31583 fail:
31584 return NULL;
31585 }
31586
31587
31588 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31589 PyObject *resultobj = 0;
31590 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31591 long arg2 ;
31592 wxColour result;
31593 void *argp1 = 0 ;
31594 int res1 = 0 ;
31595 long val2 ;
31596 int ecode2 = 0 ;
31597 PyObject * obj0 = 0 ;
31598 PyObject * obj1 = 0 ;
31599 char * kwnames[] = {
31600 (char *) "self",(char *) "item", NULL
31601 };
31602
31603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31605 if (!SWIG_IsOK(res1)) {
31606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31607 }
31608 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31609 ecode2 = SWIG_AsVal_long(obj1, &val2);
31610 if (!SWIG_IsOK(ecode2)) {
31611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31612 }
31613 arg2 = static_cast< long >(val2);
31614 {
31615 PyThreadState* __tstate = wxPyBeginAllowThreads();
31616 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31617 wxPyEndAllowThreads(__tstate);
31618 if (PyErr_Occurred()) SWIG_fail;
31619 }
31620 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31621 return resultobj;
31622 fail:
31623 return NULL;
31624 }
31625
31626
31627 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31628 PyObject *resultobj = 0;
31629 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31630 long arg2 ;
31631 wxColour *arg3 = 0 ;
31632 void *argp1 = 0 ;
31633 int res1 = 0 ;
31634 long val2 ;
31635 int ecode2 = 0 ;
31636 wxColour temp3 ;
31637 PyObject * obj0 = 0 ;
31638 PyObject * obj1 = 0 ;
31639 PyObject * obj2 = 0 ;
31640 char * kwnames[] = {
31641 (char *) "self",(char *) "item",(char *) "col", NULL
31642 };
31643
31644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31646 if (!SWIG_IsOK(res1)) {
31647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31648 }
31649 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31650 ecode2 = SWIG_AsVal_long(obj1, &val2);
31651 if (!SWIG_IsOK(ecode2)) {
31652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31653 }
31654 arg2 = static_cast< long >(val2);
31655 {
31656 arg3 = &temp3;
31657 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31658 }
31659 {
31660 PyThreadState* __tstate = wxPyBeginAllowThreads();
31661 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31662 wxPyEndAllowThreads(__tstate);
31663 if (PyErr_Occurred()) SWIG_fail;
31664 }
31665 resultobj = SWIG_Py_Void();
31666 return resultobj;
31667 fail:
31668 return NULL;
31669 }
31670
31671
31672 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj = 0;
31674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31675 long arg2 ;
31676 wxColour result;
31677 void *argp1 = 0 ;
31678 int res1 = 0 ;
31679 long val2 ;
31680 int ecode2 = 0 ;
31681 PyObject * obj0 = 0 ;
31682 PyObject * obj1 = 0 ;
31683 char * kwnames[] = {
31684 (char *) "self",(char *) "item", NULL
31685 };
31686
31687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31689 if (!SWIG_IsOK(res1)) {
31690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31691 }
31692 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31693 ecode2 = SWIG_AsVal_long(obj1, &val2);
31694 if (!SWIG_IsOK(ecode2)) {
31695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31696 }
31697 arg2 = static_cast< long >(val2);
31698 {
31699 PyThreadState* __tstate = wxPyBeginAllowThreads();
31700 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31701 wxPyEndAllowThreads(__tstate);
31702 if (PyErr_Occurred()) SWIG_fail;
31703 }
31704 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31705 return resultobj;
31706 fail:
31707 return NULL;
31708 }
31709
31710
31711 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31712 PyObject *resultobj = 0;
31713 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31714 long arg2 ;
31715 wxFont *arg3 = 0 ;
31716 void *argp1 = 0 ;
31717 int res1 = 0 ;
31718 long val2 ;
31719 int ecode2 = 0 ;
31720 void *argp3 = 0 ;
31721 int res3 = 0 ;
31722 PyObject * obj0 = 0 ;
31723 PyObject * obj1 = 0 ;
31724 PyObject * obj2 = 0 ;
31725 char * kwnames[] = {
31726 (char *) "self",(char *) "item",(char *) "f", NULL
31727 };
31728
31729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31731 if (!SWIG_IsOK(res1)) {
31732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31733 }
31734 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31735 ecode2 = SWIG_AsVal_long(obj1, &val2);
31736 if (!SWIG_IsOK(ecode2)) {
31737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31738 }
31739 arg2 = static_cast< long >(val2);
31740 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31741 if (!SWIG_IsOK(res3)) {
31742 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31743 }
31744 if (!argp3) {
31745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31746 }
31747 arg3 = reinterpret_cast< wxFont * >(argp3);
31748 {
31749 PyThreadState* __tstate = wxPyBeginAllowThreads();
31750 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31751 wxPyEndAllowThreads(__tstate);
31752 if (PyErr_Occurred()) SWIG_fail;
31753 }
31754 resultobj = SWIG_Py_Void();
31755 return resultobj;
31756 fail:
31757 return NULL;
31758 }
31759
31760
31761 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31762 PyObject *resultobj = 0;
31763 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31764 long arg2 ;
31765 wxFont result;
31766 void *argp1 = 0 ;
31767 int res1 = 0 ;
31768 long val2 ;
31769 int ecode2 = 0 ;
31770 PyObject * obj0 = 0 ;
31771 PyObject * obj1 = 0 ;
31772 char * kwnames[] = {
31773 (char *) "self",(char *) "item", NULL
31774 };
31775
31776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31778 if (!SWIG_IsOK(res1)) {
31779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31780 }
31781 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31782 ecode2 = SWIG_AsVal_long(obj1, &val2);
31783 if (!SWIG_IsOK(ecode2)) {
31784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31785 }
31786 arg2 = static_cast< long >(val2);
31787 {
31788 PyThreadState* __tstate = wxPyBeginAllowThreads();
31789 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31790 wxPyEndAllowThreads(__tstate);
31791 if (PyErr_Occurred()) SWIG_fail;
31792 }
31793 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31794 return resultobj;
31795 fail:
31796 return NULL;
31797 }
31798
31799
31800 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31801 PyObject *resultobj = 0;
31802 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31803 PyObject *arg2 = (PyObject *) 0 ;
31804 bool result;
31805 void *argp1 = 0 ;
31806 int res1 = 0 ;
31807 PyObject * obj0 = 0 ;
31808 PyObject * obj1 = 0 ;
31809 char * kwnames[] = {
31810 (char *) "self",(char *) "func", NULL
31811 };
31812
31813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31815 if (!SWIG_IsOK(res1)) {
31816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31817 }
31818 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31819 arg2 = obj1;
31820 {
31821 PyThreadState* __tstate = wxPyBeginAllowThreads();
31822 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31823 wxPyEndAllowThreads(__tstate);
31824 if (PyErr_Occurred()) SWIG_fail;
31825 }
31826 {
31827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31828 }
31829 return resultobj;
31830 fail:
31831 return NULL;
31832 }
31833
31834
31835 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31836 PyObject *resultobj = 0;
31837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31838 wxWindow *result = 0 ;
31839 void *argp1 = 0 ;
31840 int res1 = 0 ;
31841 PyObject *swig_obj[1] ;
31842
31843 if (!args) SWIG_fail;
31844 swig_obj[0] = args;
31845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31846 if (!SWIG_IsOK(res1)) {
31847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31848 }
31849 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31850 {
31851 PyThreadState* __tstate = wxPyBeginAllowThreads();
31852 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31853 wxPyEndAllowThreads(__tstate);
31854 if (PyErr_Occurred()) SWIG_fail;
31855 }
31856 {
31857 resultobj = wxPyMake_wxObject(result, 0);
31858 }
31859 return resultobj;
31860 fail:
31861 return NULL;
31862 }
31863
31864
31865 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31866 PyObject *resultobj = 0;
31867 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31868 SwigValueWrapper<wxVisualAttributes > result;
31869 int val1 ;
31870 int ecode1 = 0 ;
31871 PyObject * obj0 = 0 ;
31872 char * kwnames[] = {
31873 (char *) "variant", NULL
31874 };
31875
31876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31877 if (obj0) {
31878 ecode1 = SWIG_AsVal_int(obj0, &val1);
31879 if (!SWIG_IsOK(ecode1)) {
31880 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31881 }
31882 arg1 = static_cast< wxWindowVariant >(val1);
31883 }
31884 {
31885 if (!wxPyCheckForApp()) SWIG_fail;
31886 PyThreadState* __tstate = wxPyBeginAllowThreads();
31887 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31888 wxPyEndAllowThreads(__tstate);
31889 if (PyErr_Occurred()) SWIG_fail;
31890 }
31891 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31892 return resultobj;
31893 fail:
31894 return NULL;
31895 }
31896
31897
31898 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31899 PyObject *obj;
31900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31901 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31902 return SWIG_Py_Void();
31903 }
31904
31905 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31906 return SWIG_Python_InitShadowInstance(args);
31907 }
31908
31909 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31910 PyObject *resultobj = 0;
31911 wxWindow *arg1 = (wxWindow *) 0 ;
31912 int arg2 = (int) -1 ;
31913 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31914 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31915 wxSize const &arg4_defvalue = wxDefaultSize ;
31916 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31917 long arg5 = (long) wxLC_REPORT ;
31918 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31919 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31920 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31921 wxString *arg7 = (wxString *) &arg7_defvalue ;
31922 wxListView *result = 0 ;
31923 void *argp1 = 0 ;
31924 int res1 = 0 ;
31925 int val2 ;
31926 int ecode2 = 0 ;
31927 wxPoint temp3 ;
31928 wxSize temp4 ;
31929 long val5 ;
31930 int ecode5 = 0 ;
31931 void *argp6 = 0 ;
31932 int res6 = 0 ;
31933 bool temp7 = false ;
31934 PyObject * obj0 = 0 ;
31935 PyObject * obj1 = 0 ;
31936 PyObject * obj2 = 0 ;
31937 PyObject * obj3 = 0 ;
31938 PyObject * obj4 = 0 ;
31939 PyObject * obj5 = 0 ;
31940 PyObject * obj6 = 0 ;
31941 char * kwnames[] = {
31942 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31943 };
31944
31945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31947 if (!SWIG_IsOK(res1)) {
31948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31949 }
31950 arg1 = reinterpret_cast< wxWindow * >(argp1);
31951 if (obj1) {
31952 ecode2 = SWIG_AsVal_int(obj1, &val2);
31953 if (!SWIG_IsOK(ecode2)) {
31954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31955 }
31956 arg2 = static_cast< int >(val2);
31957 }
31958 if (obj2) {
31959 {
31960 arg3 = &temp3;
31961 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31962 }
31963 }
31964 if (obj3) {
31965 {
31966 arg4 = &temp4;
31967 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31968 }
31969 }
31970 if (obj4) {
31971 ecode5 = SWIG_AsVal_long(obj4, &val5);
31972 if (!SWIG_IsOK(ecode5)) {
31973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31974 }
31975 arg5 = static_cast< long >(val5);
31976 }
31977 if (obj5) {
31978 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31979 if (!SWIG_IsOK(res6)) {
31980 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31981 }
31982 if (!argp6) {
31983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31984 }
31985 arg6 = reinterpret_cast< wxValidator * >(argp6);
31986 }
31987 if (obj6) {
31988 {
31989 arg7 = wxString_in_helper(obj6);
31990 if (arg7 == NULL) SWIG_fail;
31991 temp7 = true;
31992 }
31993 }
31994 {
31995 if (!wxPyCheckForApp()) SWIG_fail;
31996 PyThreadState* __tstate = wxPyBeginAllowThreads();
31997 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31998 wxPyEndAllowThreads(__tstate);
31999 if (PyErr_Occurred()) SWIG_fail;
32000 }
32001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32002 {
32003 if (temp7)
32004 delete arg7;
32005 }
32006 return resultobj;
32007 fail:
32008 {
32009 if (temp7)
32010 delete arg7;
32011 }
32012 return NULL;
32013 }
32014
32015
32016 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32017 PyObject *resultobj = 0;
32018 wxListView *result = 0 ;
32019
32020 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32021 {
32022 if (!wxPyCheckForApp()) SWIG_fail;
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 result = (wxListView *)new wxListView();
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32029 return resultobj;
32030 fail:
32031 return NULL;
32032 }
32033
32034
32035 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32036 PyObject *resultobj = 0;
32037 wxListView *arg1 = (wxListView *) 0 ;
32038 wxWindow *arg2 = (wxWindow *) 0 ;
32039 int arg3 = (int) -1 ;
32040 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32041 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32042 wxSize const &arg5_defvalue = wxDefaultSize ;
32043 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32044 long arg6 = (long) wxLC_REPORT ;
32045 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32046 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32047 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32048 wxString *arg8 = (wxString *) &arg8_defvalue ;
32049 bool result;
32050 void *argp1 = 0 ;
32051 int res1 = 0 ;
32052 void *argp2 = 0 ;
32053 int res2 = 0 ;
32054 int val3 ;
32055 int ecode3 = 0 ;
32056 wxPoint temp4 ;
32057 wxSize temp5 ;
32058 long val6 ;
32059 int ecode6 = 0 ;
32060 void *argp7 = 0 ;
32061 int res7 = 0 ;
32062 bool temp8 = false ;
32063 PyObject * obj0 = 0 ;
32064 PyObject * obj1 = 0 ;
32065 PyObject * obj2 = 0 ;
32066 PyObject * obj3 = 0 ;
32067 PyObject * obj4 = 0 ;
32068 PyObject * obj5 = 0 ;
32069 PyObject * obj6 = 0 ;
32070 PyObject * obj7 = 0 ;
32071 char * kwnames[] = {
32072 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32073 };
32074
32075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32077 if (!SWIG_IsOK(res1)) {
32078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32079 }
32080 arg1 = reinterpret_cast< wxListView * >(argp1);
32081 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32082 if (!SWIG_IsOK(res2)) {
32083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32084 }
32085 arg2 = reinterpret_cast< wxWindow * >(argp2);
32086 if (obj2) {
32087 ecode3 = SWIG_AsVal_int(obj2, &val3);
32088 if (!SWIG_IsOK(ecode3)) {
32089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32090 }
32091 arg3 = static_cast< int >(val3);
32092 }
32093 if (obj3) {
32094 {
32095 arg4 = &temp4;
32096 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32097 }
32098 }
32099 if (obj4) {
32100 {
32101 arg5 = &temp5;
32102 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32103 }
32104 }
32105 if (obj5) {
32106 ecode6 = SWIG_AsVal_long(obj5, &val6);
32107 if (!SWIG_IsOK(ecode6)) {
32108 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32109 }
32110 arg6 = static_cast< long >(val6);
32111 }
32112 if (obj6) {
32113 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32114 if (!SWIG_IsOK(res7)) {
32115 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32116 }
32117 if (!argp7) {
32118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32119 }
32120 arg7 = reinterpret_cast< wxValidator * >(argp7);
32121 }
32122 if (obj7) {
32123 {
32124 arg8 = wxString_in_helper(obj7);
32125 if (arg8 == NULL) SWIG_fail;
32126 temp8 = true;
32127 }
32128 }
32129 {
32130 PyThreadState* __tstate = wxPyBeginAllowThreads();
32131 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32132 wxPyEndAllowThreads(__tstate);
32133 if (PyErr_Occurred()) SWIG_fail;
32134 }
32135 {
32136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32137 }
32138 {
32139 if (temp8)
32140 delete arg8;
32141 }
32142 return resultobj;
32143 fail:
32144 {
32145 if (temp8)
32146 delete arg8;
32147 }
32148 return NULL;
32149 }
32150
32151
32152 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32153 PyObject *resultobj = 0;
32154 wxListView *arg1 = (wxListView *) 0 ;
32155 long arg2 ;
32156 bool arg3 = (bool) true ;
32157 void *argp1 = 0 ;
32158 int res1 = 0 ;
32159 long val2 ;
32160 int ecode2 = 0 ;
32161 bool val3 ;
32162 int ecode3 = 0 ;
32163 PyObject * obj0 = 0 ;
32164 PyObject * obj1 = 0 ;
32165 PyObject * obj2 = 0 ;
32166 char * kwnames[] = {
32167 (char *) "self",(char *) "n",(char *) "on", NULL
32168 };
32169
32170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32172 if (!SWIG_IsOK(res1)) {
32173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32174 }
32175 arg1 = reinterpret_cast< wxListView * >(argp1);
32176 ecode2 = SWIG_AsVal_long(obj1, &val2);
32177 if (!SWIG_IsOK(ecode2)) {
32178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32179 }
32180 arg2 = static_cast< long >(val2);
32181 if (obj2) {
32182 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32183 if (!SWIG_IsOK(ecode3)) {
32184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32185 }
32186 arg3 = static_cast< bool >(val3);
32187 }
32188 {
32189 PyThreadState* __tstate = wxPyBeginAllowThreads();
32190 (arg1)->Select(arg2,arg3);
32191 wxPyEndAllowThreads(__tstate);
32192 if (PyErr_Occurred()) SWIG_fail;
32193 }
32194 resultobj = SWIG_Py_Void();
32195 return resultobj;
32196 fail:
32197 return NULL;
32198 }
32199
32200
32201 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32202 PyObject *resultobj = 0;
32203 wxListView *arg1 = (wxListView *) 0 ;
32204 long arg2 ;
32205 void *argp1 = 0 ;
32206 int res1 = 0 ;
32207 long val2 ;
32208 int ecode2 = 0 ;
32209 PyObject * obj0 = 0 ;
32210 PyObject * obj1 = 0 ;
32211 char * kwnames[] = {
32212 (char *) "self",(char *) "index", NULL
32213 };
32214
32215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32217 if (!SWIG_IsOK(res1)) {
32218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32219 }
32220 arg1 = reinterpret_cast< wxListView * >(argp1);
32221 ecode2 = SWIG_AsVal_long(obj1, &val2);
32222 if (!SWIG_IsOK(ecode2)) {
32223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32224 }
32225 arg2 = static_cast< long >(val2);
32226 {
32227 PyThreadState* __tstate = wxPyBeginAllowThreads();
32228 (arg1)->Focus(arg2);
32229 wxPyEndAllowThreads(__tstate);
32230 if (PyErr_Occurred()) SWIG_fail;
32231 }
32232 resultobj = SWIG_Py_Void();
32233 return resultobj;
32234 fail:
32235 return NULL;
32236 }
32237
32238
32239 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32240 PyObject *resultobj = 0;
32241 wxListView *arg1 = (wxListView *) 0 ;
32242 long result;
32243 void *argp1 = 0 ;
32244 int res1 = 0 ;
32245 PyObject *swig_obj[1] ;
32246
32247 if (!args) SWIG_fail;
32248 swig_obj[0] = args;
32249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32250 if (!SWIG_IsOK(res1)) {
32251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32252 }
32253 arg1 = reinterpret_cast< wxListView * >(argp1);
32254 {
32255 PyThreadState* __tstate = wxPyBeginAllowThreads();
32256 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32257 wxPyEndAllowThreads(__tstate);
32258 if (PyErr_Occurred()) SWIG_fail;
32259 }
32260 resultobj = SWIG_From_long(static_cast< long >(result));
32261 return resultobj;
32262 fail:
32263 return NULL;
32264 }
32265
32266
32267 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32268 PyObject *resultobj = 0;
32269 wxListView *arg1 = (wxListView *) 0 ;
32270 long arg2 ;
32271 long result;
32272 void *argp1 = 0 ;
32273 int res1 = 0 ;
32274 long val2 ;
32275 int ecode2 = 0 ;
32276 PyObject * obj0 = 0 ;
32277 PyObject * obj1 = 0 ;
32278 char * kwnames[] = {
32279 (char *) "self",(char *) "item", NULL
32280 };
32281
32282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32284 if (!SWIG_IsOK(res1)) {
32285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32286 }
32287 arg1 = reinterpret_cast< wxListView * >(argp1);
32288 ecode2 = SWIG_AsVal_long(obj1, &val2);
32289 if (!SWIG_IsOK(ecode2)) {
32290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32291 }
32292 arg2 = static_cast< long >(val2);
32293 {
32294 PyThreadState* __tstate = wxPyBeginAllowThreads();
32295 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32296 wxPyEndAllowThreads(__tstate);
32297 if (PyErr_Occurred()) SWIG_fail;
32298 }
32299 resultobj = SWIG_From_long(static_cast< long >(result));
32300 return resultobj;
32301 fail:
32302 return NULL;
32303 }
32304
32305
32306 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32307 PyObject *resultobj = 0;
32308 wxListView *arg1 = (wxListView *) 0 ;
32309 long result;
32310 void *argp1 = 0 ;
32311 int res1 = 0 ;
32312 PyObject *swig_obj[1] ;
32313
32314 if (!args) SWIG_fail;
32315 swig_obj[0] = args;
32316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32317 if (!SWIG_IsOK(res1)) {
32318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32319 }
32320 arg1 = reinterpret_cast< wxListView * >(argp1);
32321 {
32322 PyThreadState* __tstate = wxPyBeginAllowThreads();
32323 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32324 wxPyEndAllowThreads(__tstate);
32325 if (PyErr_Occurred()) SWIG_fail;
32326 }
32327 resultobj = SWIG_From_long(static_cast< long >(result));
32328 return resultobj;
32329 fail:
32330 return NULL;
32331 }
32332
32333
32334 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32335 PyObject *resultobj = 0;
32336 wxListView *arg1 = (wxListView *) 0 ;
32337 long arg2 ;
32338 bool result;
32339 void *argp1 = 0 ;
32340 int res1 = 0 ;
32341 long val2 ;
32342 int ecode2 = 0 ;
32343 PyObject * obj0 = 0 ;
32344 PyObject * obj1 = 0 ;
32345 char * kwnames[] = {
32346 (char *) "self",(char *) "index", NULL
32347 };
32348
32349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32351 if (!SWIG_IsOK(res1)) {
32352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32353 }
32354 arg1 = reinterpret_cast< wxListView * >(argp1);
32355 ecode2 = SWIG_AsVal_long(obj1, &val2);
32356 if (!SWIG_IsOK(ecode2)) {
32357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32358 }
32359 arg2 = static_cast< long >(val2);
32360 {
32361 PyThreadState* __tstate = wxPyBeginAllowThreads();
32362 result = (bool)(arg1)->IsSelected(arg2);
32363 wxPyEndAllowThreads(__tstate);
32364 if (PyErr_Occurred()) SWIG_fail;
32365 }
32366 {
32367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32368 }
32369 return resultobj;
32370 fail:
32371 return NULL;
32372 }
32373
32374
32375 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32376 PyObject *resultobj = 0;
32377 wxListView *arg1 = (wxListView *) 0 ;
32378 int arg2 ;
32379 int arg3 ;
32380 void *argp1 = 0 ;
32381 int res1 = 0 ;
32382 int val2 ;
32383 int ecode2 = 0 ;
32384 int val3 ;
32385 int ecode3 = 0 ;
32386 PyObject * obj0 = 0 ;
32387 PyObject * obj1 = 0 ;
32388 PyObject * obj2 = 0 ;
32389 char * kwnames[] = {
32390 (char *) "self",(char *) "col",(char *) "image", NULL
32391 };
32392
32393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32395 if (!SWIG_IsOK(res1)) {
32396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32397 }
32398 arg1 = reinterpret_cast< wxListView * >(argp1);
32399 ecode2 = SWIG_AsVal_int(obj1, &val2);
32400 if (!SWIG_IsOK(ecode2)) {
32401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32402 }
32403 arg2 = static_cast< int >(val2);
32404 ecode3 = SWIG_AsVal_int(obj2, &val3);
32405 if (!SWIG_IsOK(ecode3)) {
32406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32407 }
32408 arg3 = static_cast< int >(val3);
32409 {
32410 PyThreadState* __tstate = wxPyBeginAllowThreads();
32411 (arg1)->SetColumnImage(arg2,arg3);
32412 wxPyEndAllowThreads(__tstate);
32413 if (PyErr_Occurred()) SWIG_fail;
32414 }
32415 resultobj = SWIG_Py_Void();
32416 return resultobj;
32417 fail:
32418 return NULL;
32419 }
32420
32421
32422 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32423 PyObject *resultobj = 0;
32424 wxListView *arg1 = (wxListView *) 0 ;
32425 int arg2 ;
32426 void *argp1 = 0 ;
32427 int res1 = 0 ;
32428 int val2 ;
32429 int ecode2 = 0 ;
32430 PyObject * obj0 = 0 ;
32431 PyObject * obj1 = 0 ;
32432 char * kwnames[] = {
32433 (char *) "self",(char *) "col", NULL
32434 };
32435
32436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32438 if (!SWIG_IsOK(res1)) {
32439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32440 }
32441 arg1 = reinterpret_cast< wxListView * >(argp1);
32442 ecode2 = SWIG_AsVal_int(obj1, &val2);
32443 if (!SWIG_IsOK(ecode2)) {
32444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32445 }
32446 arg2 = static_cast< int >(val2);
32447 {
32448 PyThreadState* __tstate = wxPyBeginAllowThreads();
32449 (arg1)->ClearColumnImage(arg2);
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 resultobj = SWIG_Py_Void();
32454 return resultobj;
32455 fail:
32456 return NULL;
32457 }
32458
32459
32460 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32461 PyObject *obj;
32462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32463 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32464 return SWIG_Py_Void();
32465 }
32466
32467 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32468 return SWIG_Python_InitShadowInstance(args);
32469 }
32470
32471 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32472 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32473 return 1;
32474 }
32475
32476
32477 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32478 PyObject *pyobj = 0;
32479
32480 {
32481 #if wxUSE_UNICODE
32482 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32483 #else
32484 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32485 #endif
32486 }
32487 return pyobj;
32488 }
32489
32490
32491 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32492 PyObject *resultobj = 0;
32493 wxTreeItemId *result = 0 ;
32494
32495 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32496 {
32497 PyThreadState* __tstate = wxPyBeginAllowThreads();
32498 result = (wxTreeItemId *)new wxTreeItemId();
32499 wxPyEndAllowThreads(__tstate);
32500 if (PyErr_Occurred()) SWIG_fail;
32501 }
32502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32503 return resultobj;
32504 fail:
32505 return NULL;
32506 }
32507
32508
32509 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32510 PyObject *resultobj = 0;
32511 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32512 void *argp1 = 0 ;
32513 int res1 = 0 ;
32514 PyObject *swig_obj[1] ;
32515
32516 if (!args) SWIG_fail;
32517 swig_obj[0] = args;
32518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32519 if (!SWIG_IsOK(res1)) {
32520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32521 }
32522 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32523 {
32524 PyThreadState* __tstate = wxPyBeginAllowThreads();
32525 delete arg1;
32526
32527 wxPyEndAllowThreads(__tstate);
32528 if (PyErr_Occurred()) SWIG_fail;
32529 }
32530 resultobj = SWIG_Py_Void();
32531 return resultobj;
32532 fail:
32533 return NULL;
32534 }
32535
32536
32537 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32538 PyObject *resultobj = 0;
32539 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32540 bool result;
32541 void *argp1 = 0 ;
32542 int res1 = 0 ;
32543 PyObject *swig_obj[1] ;
32544
32545 if (!args) SWIG_fail;
32546 swig_obj[0] = args;
32547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32548 if (!SWIG_IsOK(res1)) {
32549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32550 }
32551 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32552 {
32553 PyThreadState* __tstate = wxPyBeginAllowThreads();
32554 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32555 wxPyEndAllowThreads(__tstate);
32556 if (PyErr_Occurred()) SWIG_fail;
32557 }
32558 {
32559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32560 }
32561 return resultobj;
32562 fail:
32563 return NULL;
32564 }
32565
32566
32567 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32568 PyObject *resultobj = 0;
32569 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32570 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32571 bool result;
32572 void *argp1 = 0 ;
32573 int res1 = 0 ;
32574 void *argp2 = 0 ;
32575 int res2 = 0 ;
32576 PyObject * obj0 = 0 ;
32577 PyObject * obj1 = 0 ;
32578 char * kwnames[] = {
32579 (char *) "self",(char *) "other", NULL
32580 };
32581
32582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32584 if (!SWIG_IsOK(res1)) {
32585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32586 }
32587 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32588 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32589 if (!SWIG_IsOK(res2)) {
32590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32591 }
32592 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32593 {
32594 PyThreadState* __tstate = wxPyBeginAllowThreads();
32595 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32596 wxPyEndAllowThreads(__tstate);
32597 if (PyErr_Occurred()) SWIG_fail;
32598 }
32599 {
32600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32601 }
32602 return resultobj;
32603 fail:
32604 return NULL;
32605 }
32606
32607
32608 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32609 PyObject *resultobj = 0;
32610 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32611 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32612 bool result;
32613 void *argp1 = 0 ;
32614 int res1 = 0 ;
32615 void *argp2 = 0 ;
32616 int res2 = 0 ;
32617 PyObject * obj0 = 0 ;
32618 PyObject * obj1 = 0 ;
32619 char * kwnames[] = {
32620 (char *) "self",(char *) "other", NULL
32621 };
32622
32623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32625 if (!SWIG_IsOK(res1)) {
32626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32627 }
32628 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32629 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32630 if (!SWIG_IsOK(res2)) {
32631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32632 }
32633 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32634 {
32635 PyThreadState* __tstate = wxPyBeginAllowThreads();
32636 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32637 wxPyEndAllowThreads(__tstate);
32638 if (PyErr_Occurred()) SWIG_fail;
32639 }
32640 {
32641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32642 }
32643 return resultobj;
32644 fail:
32645 return NULL;
32646 }
32647
32648
32649 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32650 PyObject *resultobj = 0;
32651 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32652 void *arg2 = (void *) 0 ;
32653 void *argp1 = 0 ;
32654 int res1 = 0 ;
32655 int res2 ;
32656 PyObject *swig_obj[2] ;
32657
32658 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32660 if (!SWIG_IsOK(res1)) {
32661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32662 }
32663 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32664 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32665 if (!SWIG_IsOK(res2)) {
32666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32667 }
32668 if (arg1) (arg1)->m_pItem = arg2;
32669
32670 resultobj = SWIG_Py_Void();
32671 return resultobj;
32672 fail:
32673 return NULL;
32674 }
32675
32676
32677 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32678 PyObject *resultobj = 0;
32679 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32680 void *result = 0 ;
32681 void *argp1 = 0 ;
32682 int res1 = 0 ;
32683 PyObject *swig_obj[1] ;
32684
32685 if (!args) SWIG_fail;
32686 swig_obj[0] = args;
32687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32688 if (!SWIG_IsOK(res1)) {
32689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32690 }
32691 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32692 result = (void *) ((arg1)->m_pItem);
32693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32694 return resultobj;
32695 fail:
32696 return NULL;
32697 }
32698
32699
32700 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32701 PyObject *obj;
32702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32703 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32704 return SWIG_Py_Void();
32705 }
32706
32707 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32708 return SWIG_Python_InitShadowInstance(args);
32709 }
32710
32711 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32712 PyObject *resultobj = 0;
32713 PyObject *arg1 = (PyObject *) NULL ;
32714 wxPyTreeItemData *result = 0 ;
32715 PyObject * obj0 = 0 ;
32716 char * kwnames[] = {
32717 (char *) "obj", NULL
32718 };
32719
32720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32721 if (obj0) {
32722 arg1 = obj0;
32723 }
32724 {
32725 PyThreadState* __tstate = wxPyBeginAllowThreads();
32726 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32727 wxPyEndAllowThreads(__tstate);
32728 if (PyErr_Occurred()) SWIG_fail;
32729 }
32730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32731 return resultobj;
32732 fail:
32733 return NULL;
32734 }
32735
32736
32737 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32738 PyObject *resultobj = 0;
32739 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32740 void *argp1 = 0 ;
32741 int res1 = 0 ;
32742 PyObject *swig_obj[1] ;
32743
32744 if (!args) SWIG_fail;
32745 swig_obj[0] = args;
32746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32747 if (!SWIG_IsOK(res1)) {
32748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32749 }
32750 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32751 {
32752 PyThreadState* __tstate = wxPyBeginAllowThreads();
32753 delete arg1;
32754
32755 wxPyEndAllowThreads(__tstate);
32756 if (PyErr_Occurred()) SWIG_fail;
32757 }
32758 resultobj = SWIG_Py_Void();
32759 return resultobj;
32760 fail:
32761 return NULL;
32762 }
32763
32764
32765 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32766 PyObject *resultobj = 0;
32767 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32768 PyObject *result = 0 ;
32769 void *argp1 = 0 ;
32770 int res1 = 0 ;
32771 PyObject *swig_obj[1] ;
32772
32773 if (!args) SWIG_fail;
32774 swig_obj[0] = args;
32775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32776 if (!SWIG_IsOK(res1)) {
32777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32778 }
32779 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32780 {
32781 PyThreadState* __tstate = wxPyBeginAllowThreads();
32782 result = (PyObject *)(arg1)->GetData();
32783 wxPyEndAllowThreads(__tstate);
32784 if (PyErr_Occurred()) SWIG_fail;
32785 }
32786 resultobj = result;
32787 return resultobj;
32788 fail:
32789 return NULL;
32790 }
32791
32792
32793 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32794 PyObject *resultobj = 0;
32795 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32796 PyObject *arg2 = (PyObject *) 0 ;
32797 void *argp1 = 0 ;
32798 int res1 = 0 ;
32799 PyObject * obj0 = 0 ;
32800 PyObject * obj1 = 0 ;
32801 char * kwnames[] = {
32802 (char *) "self",(char *) "obj", NULL
32803 };
32804
32805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32807 if (!SWIG_IsOK(res1)) {
32808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32809 }
32810 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32811 arg2 = obj1;
32812 {
32813 PyThreadState* __tstate = wxPyBeginAllowThreads();
32814 (arg1)->SetData(arg2);
32815 wxPyEndAllowThreads(__tstate);
32816 if (PyErr_Occurred()) SWIG_fail;
32817 }
32818 resultobj = SWIG_Py_Void();
32819 return resultobj;
32820 fail:
32821 return NULL;
32822 }
32823
32824
32825 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32826 PyObject *resultobj = 0;
32827 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32828 wxTreeItemId *result = 0 ;
32829 void *argp1 = 0 ;
32830 int res1 = 0 ;
32831 PyObject *swig_obj[1] ;
32832
32833 if (!args) SWIG_fail;
32834 swig_obj[0] = args;
32835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32836 if (!SWIG_IsOK(res1)) {
32837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32838 }
32839 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32840 {
32841 PyThreadState* __tstate = wxPyBeginAllowThreads();
32842 {
32843 wxTreeItemId const &_result_ref = (arg1)->GetId();
32844 result = (wxTreeItemId *) &_result_ref;
32845 }
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32850 return resultobj;
32851 fail:
32852 return NULL;
32853 }
32854
32855
32856 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32857 PyObject *resultobj = 0;
32858 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32859 wxTreeItemId *arg2 = 0 ;
32860 void *argp1 = 0 ;
32861 int res1 = 0 ;
32862 void *argp2 = 0 ;
32863 int res2 = 0 ;
32864 PyObject * obj0 = 0 ;
32865 PyObject * obj1 = 0 ;
32866 char * kwnames[] = {
32867 (char *) "self",(char *) "id", NULL
32868 };
32869
32870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32872 if (!SWIG_IsOK(res1)) {
32873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32874 }
32875 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32877 if (!SWIG_IsOK(res2)) {
32878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32879 }
32880 if (!argp2) {
32881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32882 }
32883 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32884 {
32885 PyThreadState* __tstate = wxPyBeginAllowThreads();
32886 (arg1)->SetId((wxTreeItemId const &)*arg2);
32887 wxPyEndAllowThreads(__tstate);
32888 if (PyErr_Occurred()) SWIG_fail;
32889 }
32890 resultobj = SWIG_Py_Void();
32891 return resultobj;
32892 fail:
32893 return NULL;
32894 }
32895
32896
32897 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32898 PyObject *resultobj = 0;
32899 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32900 void *argp1 = 0 ;
32901 int res1 = 0 ;
32902 PyObject *swig_obj[1] ;
32903
32904 if (!args) SWIG_fail;
32905 swig_obj[0] = args;
32906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32907 if (!SWIG_IsOK(res1)) {
32908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32909 }
32910 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32911 {
32912 PyThreadState* __tstate = wxPyBeginAllowThreads();
32913 wxPyTreeItemData_Destroy(arg1);
32914 wxPyEndAllowThreads(__tstate);
32915 if (PyErr_Occurred()) SWIG_fail;
32916 }
32917 resultobj = SWIG_Py_Void();
32918 return resultobj;
32919 fail:
32920 return NULL;
32921 }
32922
32923
32924 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32925 PyObject *obj;
32926 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32927 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32928 return SWIG_Py_Void();
32929 }
32930
32931 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32932 return SWIG_Python_InitShadowInstance(args);
32933 }
32934
32935 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32936 {
32937 void *argp = 0;
32938 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32939 if (!SWIG_IsOK(res)) {
32940 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32941 }
32942 if (!argp) {
32943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32944 } else {
32945 wxTreeItemId * temp;
32946 temp = reinterpret_cast< wxTreeItemId * >(argp);
32947 wxNullTreeItemId = *temp;
32948 if (SWIG_IsNewObj(res)) delete temp;
32949 }
32950 }
32951 return 0;
32952 fail:
32953 return 1;
32954 }
32955
32956
32957 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32958 PyObject *pyobj = 0;
32959
32960 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32961 return pyobj;
32962 }
32963
32964
32965 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32966 PyObject *resultobj = 0;
32967 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32968 int arg2 = (int) 0 ;
32969 wxTreeEvent *result = 0 ;
32970 int val1 ;
32971 int ecode1 = 0 ;
32972 int val2 ;
32973 int ecode2 = 0 ;
32974
32975 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32976 if (swig_obj[0]) {
32977 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32978 if (!SWIG_IsOK(ecode1)) {
32979 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32980 }
32981 arg1 = static_cast< wxEventType >(val1);
32982 }
32983 if (swig_obj[1]) {
32984 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32985 if (!SWIG_IsOK(ecode2)) {
32986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32987 }
32988 arg2 = static_cast< int >(val2);
32989 }
32990 {
32991 PyThreadState* __tstate = wxPyBeginAllowThreads();
32992 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32993 wxPyEndAllowThreads(__tstate);
32994 if (PyErr_Occurred()) SWIG_fail;
32995 }
32996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32997 return resultobj;
32998 fail:
32999 return NULL;
33000 }
33001
33002
33003 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33004 PyObject *resultobj = 0;
33005 wxEventType arg1 ;
33006 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33007 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33008 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33009 wxTreeEvent *result = 0 ;
33010 int val1 ;
33011 int ecode1 = 0 ;
33012 void *argp2 = 0 ;
33013 int res2 = 0 ;
33014 void *argp3 = 0 ;
33015 int res3 = 0 ;
33016
33017 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33018 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33019 if (!SWIG_IsOK(ecode1)) {
33020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33021 }
33022 arg1 = static_cast< wxEventType >(val1);
33023 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33024 if (!SWIG_IsOK(res2)) {
33025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33026 }
33027 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33028 if (swig_obj[2]) {
33029 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33030 if (!SWIG_IsOK(res3)) {
33031 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33032 }
33033 if (!argp3) {
33034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33035 }
33036 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33037 }
33038 {
33039 PyThreadState* __tstate = wxPyBeginAllowThreads();
33040 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33041 wxPyEndAllowThreads(__tstate);
33042 if (PyErr_Occurred()) SWIG_fail;
33043 }
33044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33045 return resultobj;
33046 fail:
33047 return NULL;
33048 }
33049
33050
33051 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33052 int argc;
33053 PyObject *argv[4];
33054
33055 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33056 --argc;
33057 if ((argc >= 0) && (argc <= 2)) {
33058 int _v = 0;
33059 if (argc > 1) {
33060 {
33061 {
33062 int res = SWIG_AsVal_int(argv[1], NULL);
33063 _v = SWIG_CheckState(res);
33064 }
33065 }
33066 if (!_v) goto check_1;
33067 }
33068 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33069 }
33070 check_1:
33071
33072 if ((argc >= 2) && (argc <= 3)) {
33073 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33074 }
33075
33076 fail:
33077 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33078 return NULL;
33079 }
33080
33081
33082 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33083 PyObject *resultobj = 0;
33084 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33085 wxTreeItemId result;
33086 void *argp1 = 0 ;
33087 int res1 = 0 ;
33088 PyObject *swig_obj[1] ;
33089
33090 if (!args) SWIG_fail;
33091 swig_obj[0] = args;
33092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33093 if (!SWIG_IsOK(res1)) {
33094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33095 }
33096 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33097 {
33098 PyThreadState* __tstate = wxPyBeginAllowThreads();
33099 result = ((wxTreeEvent const *)arg1)->GetItem();
33100 wxPyEndAllowThreads(__tstate);
33101 if (PyErr_Occurred()) SWIG_fail;
33102 }
33103 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33104 return resultobj;
33105 fail:
33106 return NULL;
33107 }
33108
33109
33110 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33111 PyObject *resultobj = 0;
33112 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33113 wxTreeItemId *arg2 = 0 ;
33114 void *argp1 = 0 ;
33115 int res1 = 0 ;
33116 void *argp2 = 0 ;
33117 int res2 = 0 ;
33118 PyObject * obj0 = 0 ;
33119 PyObject * obj1 = 0 ;
33120 char * kwnames[] = {
33121 (char *) "self",(char *) "item", NULL
33122 };
33123
33124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33126 if (!SWIG_IsOK(res1)) {
33127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33128 }
33129 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33131 if (!SWIG_IsOK(res2)) {
33132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33133 }
33134 if (!argp2) {
33135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33136 }
33137 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33138 {
33139 PyThreadState* __tstate = wxPyBeginAllowThreads();
33140 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33141 wxPyEndAllowThreads(__tstate);
33142 if (PyErr_Occurred()) SWIG_fail;
33143 }
33144 resultobj = SWIG_Py_Void();
33145 return resultobj;
33146 fail:
33147 return NULL;
33148 }
33149
33150
33151 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33152 PyObject *resultobj = 0;
33153 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33154 wxTreeItemId result;
33155 void *argp1 = 0 ;
33156 int res1 = 0 ;
33157 PyObject *swig_obj[1] ;
33158
33159 if (!args) SWIG_fail;
33160 swig_obj[0] = args;
33161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33162 if (!SWIG_IsOK(res1)) {
33163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33164 }
33165 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33166 {
33167 PyThreadState* __tstate = wxPyBeginAllowThreads();
33168 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33169 wxPyEndAllowThreads(__tstate);
33170 if (PyErr_Occurred()) SWIG_fail;
33171 }
33172 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33173 return resultobj;
33174 fail:
33175 return NULL;
33176 }
33177
33178
33179 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33180 PyObject *resultobj = 0;
33181 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33182 wxTreeItemId *arg2 = 0 ;
33183 void *argp1 = 0 ;
33184 int res1 = 0 ;
33185 void *argp2 = 0 ;
33186 int res2 = 0 ;
33187 PyObject * obj0 = 0 ;
33188 PyObject * obj1 = 0 ;
33189 char * kwnames[] = {
33190 (char *) "self",(char *) "item", NULL
33191 };
33192
33193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33195 if (!SWIG_IsOK(res1)) {
33196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33197 }
33198 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33200 if (!SWIG_IsOK(res2)) {
33201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33202 }
33203 if (!argp2) {
33204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33205 }
33206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33207 {
33208 PyThreadState* __tstate = wxPyBeginAllowThreads();
33209 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33210 wxPyEndAllowThreads(__tstate);
33211 if (PyErr_Occurred()) SWIG_fail;
33212 }
33213 resultobj = SWIG_Py_Void();
33214 return resultobj;
33215 fail:
33216 return NULL;
33217 }
33218
33219
33220 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33221 PyObject *resultobj = 0;
33222 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33223 wxPoint result;
33224 void *argp1 = 0 ;
33225 int res1 = 0 ;
33226 PyObject *swig_obj[1] ;
33227
33228 if (!args) SWIG_fail;
33229 swig_obj[0] = args;
33230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33231 if (!SWIG_IsOK(res1)) {
33232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33233 }
33234 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33235 {
33236 PyThreadState* __tstate = wxPyBeginAllowThreads();
33237 result = ((wxTreeEvent const *)arg1)->GetPoint();
33238 wxPyEndAllowThreads(__tstate);
33239 if (PyErr_Occurred()) SWIG_fail;
33240 }
33241 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33242 return resultobj;
33243 fail:
33244 return NULL;
33245 }
33246
33247
33248 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33249 PyObject *resultobj = 0;
33250 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33251 wxPoint *arg2 = 0 ;
33252 void *argp1 = 0 ;
33253 int res1 = 0 ;
33254 wxPoint temp2 ;
33255 PyObject * obj0 = 0 ;
33256 PyObject * obj1 = 0 ;
33257 char * kwnames[] = {
33258 (char *) "self",(char *) "pt", NULL
33259 };
33260
33261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33263 if (!SWIG_IsOK(res1)) {
33264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33265 }
33266 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33267 {
33268 arg2 = &temp2;
33269 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33270 }
33271 {
33272 PyThreadState* __tstate = wxPyBeginAllowThreads();
33273 (arg1)->SetPoint((wxPoint const &)*arg2);
33274 wxPyEndAllowThreads(__tstate);
33275 if (PyErr_Occurred()) SWIG_fail;
33276 }
33277 resultobj = SWIG_Py_Void();
33278 return resultobj;
33279 fail:
33280 return NULL;
33281 }
33282
33283
33284 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33285 PyObject *resultobj = 0;
33286 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33287 wxKeyEvent *result = 0 ;
33288 void *argp1 = 0 ;
33289 int res1 = 0 ;
33290 PyObject *swig_obj[1] ;
33291
33292 if (!args) SWIG_fail;
33293 swig_obj[0] = args;
33294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33295 if (!SWIG_IsOK(res1)) {
33296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33297 }
33298 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33299 {
33300 PyThreadState* __tstate = wxPyBeginAllowThreads();
33301 {
33302 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33303 result = (wxKeyEvent *) &_result_ref;
33304 }
33305 wxPyEndAllowThreads(__tstate);
33306 if (PyErr_Occurred()) SWIG_fail;
33307 }
33308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33309 return resultobj;
33310 fail:
33311 return NULL;
33312 }
33313
33314
33315 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33316 PyObject *resultobj = 0;
33317 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33318 int result;
33319 void *argp1 = 0 ;
33320 int res1 = 0 ;
33321 PyObject *swig_obj[1] ;
33322
33323 if (!args) SWIG_fail;
33324 swig_obj[0] = args;
33325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33326 if (!SWIG_IsOK(res1)) {
33327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33328 }
33329 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33330 {
33331 PyThreadState* __tstate = wxPyBeginAllowThreads();
33332 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33333 wxPyEndAllowThreads(__tstate);
33334 if (PyErr_Occurred()) SWIG_fail;
33335 }
33336 resultobj = SWIG_From_int(static_cast< int >(result));
33337 return resultobj;
33338 fail:
33339 return NULL;
33340 }
33341
33342
33343 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33344 PyObject *resultobj = 0;
33345 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33346 wxKeyEvent *arg2 = 0 ;
33347 void *argp1 = 0 ;
33348 int res1 = 0 ;
33349 void *argp2 = 0 ;
33350 int res2 = 0 ;
33351 PyObject * obj0 = 0 ;
33352 PyObject * obj1 = 0 ;
33353 char * kwnames[] = {
33354 (char *) "self",(char *) "evt", NULL
33355 };
33356
33357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33359 if (!SWIG_IsOK(res1)) {
33360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33361 }
33362 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33363 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33364 if (!SWIG_IsOK(res2)) {
33365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33366 }
33367 if (!argp2) {
33368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33369 }
33370 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33371 {
33372 PyThreadState* __tstate = wxPyBeginAllowThreads();
33373 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33374 wxPyEndAllowThreads(__tstate);
33375 if (PyErr_Occurred()) SWIG_fail;
33376 }
33377 resultobj = SWIG_Py_Void();
33378 return resultobj;
33379 fail:
33380 return NULL;
33381 }
33382
33383
33384 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33385 PyObject *resultobj = 0;
33386 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33387 wxString *result = 0 ;
33388 void *argp1 = 0 ;
33389 int res1 = 0 ;
33390 PyObject *swig_obj[1] ;
33391
33392 if (!args) SWIG_fail;
33393 swig_obj[0] = args;
33394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33395 if (!SWIG_IsOK(res1)) {
33396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33397 }
33398 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33399 {
33400 PyThreadState* __tstate = wxPyBeginAllowThreads();
33401 {
33402 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33403 result = (wxString *) &_result_ref;
33404 }
33405 wxPyEndAllowThreads(__tstate);
33406 if (PyErr_Occurred()) SWIG_fail;
33407 }
33408 {
33409 #if wxUSE_UNICODE
33410 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33411 #else
33412 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33413 #endif
33414 }
33415 return resultobj;
33416 fail:
33417 return NULL;
33418 }
33419
33420
33421 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33422 PyObject *resultobj = 0;
33423 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33424 wxString *arg2 = 0 ;
33425 void *argp1 = 0 ;
33426 int res1 = 0 ;
33427 bool temp2 = false ;
33428 PyObject * obj0 = 0 ;
33429 PyObject * obj1 = 0 ;
33430 char * kwnames[] = {
33431 (char *) "self",(char *) "label", NULL
33432 };
33433
33434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33436 if (!SWIG_IsOK(res1)) {
33437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33438 }
33439 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33440 {
33441 arg2 = wxString_in_helper(obj1);
33442 if (arg2 == NULL) SWIG_fail;
33443 temp2 = true;
33444 }
33445 {
33446 PyThreadState* __tstate = wxPyBeginAllowThreads();
33447 (arg1)->SetLabel((wxString const &)*arg2);
33448 wxPyEndAllowThreads(__tstate);
33449 if (PyErr_Occurred()) SWIG_fail;
33450 }
33451 resultobj = SWIG_Py_Void();
33452 {
33453 if (temp2)
33454 delete arg2;
33455 }
33456 return resultobj;
33457 fail:
33458 {
33459 if (temp2)
33460 delete arg2;
33461 }
33462 return NULL;
33463 }
33464
33465
33466 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33467 PyObject *resultobj = 0;
33468 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33469 bool result;
33470 void *argp1 = 0 ;
33471 int res1 = 0 ;
33472 PyObject *swig_obj[1] ;
33473
33474 if (!args) SWIG_fail;
33475 swig_obj[0] = args;
33476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33477 if (!SWIG_IsOK(res1)) {
33478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33479 }
33480 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33481 {
33482 PyThreadState* __tstate = wxPyBeginAllowThreads();
33483 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33484 wxPyEndAllowThreads(__tstate);
33485 if (PyErr_Occurred()) SWIG_fail;
33486 }
33487 {
33488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33489 }
33490 return resultobj;
33491 fail:
33492 return NULL;
33493 }
33494
33495
33496 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33497 PyObject *resultobj = 0;
33498 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33499 bool arg2 ;
33500 void *argp1 = 0 ;
33501 int res1 = 0 ;
33502 bool val2 ;
33503 int ecode2 = 0 ;
33504 PyObject * obj0 = 0 ;
33505 PyObject * obj1 = 0 ;
33506 char * kwnames[] = {
33507 (char *) "self",(char *) "editCancelled", NULL
33508 };
33509
33510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33512 if (!SWIG_IsOK(res1)) {
33513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33514 }
33515 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33516 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33517 if (!SWIG_IsOK(ecode2)) {
33518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33519 }
33520 arg2 = static_cast< bool >(val2);
33521 {
33522 PyThreadState* __tstate = wxPyBeginAllowThreads();
33523 (arg1)->SetEditCanceled(arg2);
33524 wxPyEndAllowThreads(__tstate);
33525 if (PyErr_Occurred()) SWIG_fail;
33526 }
33527 resultobj = SWIG_Py_Void();
33528 return resultobj;
33529 fail:
33530 return NULL;
33531 }
33532
33533
33534 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33535 PyObject *resultobj = 0;
33536 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33537 wxString *arg2 = 0 ;
33538 void *argp1 = 0 ;
33539 int res1 = 0 ;
33540 bool temp2 = false ;
33541 PyObject * obj0 = 0 ;
33542 PyObject * obj1 = 0 ;
33543 char * kwnames[] = {
33544 (char *) "self",(char *) "toolTip", NULL
33545 };
33546
33547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33549 if (!SWIG_IsOK(res1)) {
33550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33551 }
33552 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33553 {
33554 arg2 = wxString_in_helper(obj1);
33555 if (arg2 == NULL) SWIG_fail;
33556 temp2 = true;
33557 }
33558 {
33559 PyThreadState* __tstate = wxPyBeginAllowThreads();
33560 (arg1)->SetToolTip((wxString const &)*arg2);
33561 wxPyEndAllowThreads(__tstate);
33562 if (PyErr_Occurred()) SWIG_fail;
33563 }
33564 resultobj = SWIG_Py_Void();
33565 {
33566 if (temp2)
33567 delete arg2;
33568 }
33569 return resultobj;
33570 fail:
33571 {
33572 if (temp2)
33573 delete arg2;
33574 }
33575 return NULL;
33576 }
33577
33578
33579 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33580 PyObject *resultobj = 0;
33581 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33582 wxString result;
33583 void *argp1 = 0 ;
33584 int res1 = 0 ;
33585 PyObject *swig_obj[1] ;
33586
33587 if (!args) SWIG_fail;
33588 swig_obj[0] = args;
33589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33590 if (!SWIG_IsOK(res1)) {
33591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33592 }
33593 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33594 {
33595 PyThreadState* __tstate = wxPyBeginAllowThreads();
33596 result = (arg1)->GetToolTip();
33597 wxPyEndAllowThreads(__tstate);
33598 if (PyErr_Occurred()) SWIG_fail;
33599 }
33600 {
33601 #if wxUSE_UNICODE
33602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33603 #else
33604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33605 #endif
33606 }
33607 return resultobj;
33608 fail:
33609 return NULL;
33610 }
33611
33612
33613 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33614 PyObject *obj;
33615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33616 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33617 return SWIG_Py_Void();
33618 }
33619
33620 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33621 return SWIG_Python_InitShadowInstance(args);
33622 }
33623
33624 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33625 PyObject *resultobj = 0;
33626 wxWindow *arg1 = (wxWindow *) 0 ;
33627 int arg2 = (int) -1 ;
33628 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33629 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33630 wxSize const &arg4_defvalue = wxDefaultSize ;
33631 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33632 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33633 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33634 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33635 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33636 wxString *arg7 = (wxString *) &arg7_defvalue ;
33637 wxPyTreeCtrl *result = 0 ;
33638 void *argp1 = 0 ;
33639 int res1 = 0 ;
33640 int val2 ;
33641 int ecode2 = 0 ;
33642 wxPoint temp3 ;
33643 wxSize temp4 ;
33644 long val5 ;
33645 int ecode5 = 0 ;
33646 void *argp6 = 0 ;
33647 int res6 = 0 ;
33648 bool temp7 = false ;
33649 PyObject * obj0 = 0 ;
33650 PyObject * obj1 = 0 ;
33651 PyObject * obj2 = 0 ;
33652 PyObject * obj3 = 0 ;
33653 PyObject * obj4 = 0 ;
33654 PyObject * obj5 = 0 ;
33655 PyObject * obj6 = 0 ;
33656 char * kwnames[] = {
33657 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33658 };
33659
33660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33662 if (!SWIG_IsOK(res1)) {
33663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33664 }
33665 arg1 = reinterpret_cast< wxWindow * >(argp1);
33666 if (obj1) {
33667 ecode2 = SWIG_AsVal_int(obj1, &val2);
33668 if (!SWIG_IsOK(ecode2)) {
33669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33670 }
33671 arg2 = static_cast< int >(val2);
33672 }
33673 if (obj2) {
33674 {
33675 arg3 = &temp3;
33676 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33677 }
33678 }
33679 if (obj3) {
33680 {
33681 arg4 = &temp4;
33682 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33683 }
33684 }
33685 if (obj4) {
33686 ecode5 = SWIG_AsVal_long(obj4, &val5);
33687 if (!SWIG_IsOK(ecode5)) {
33688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33689 }
33690 arg5 = static_cast< long >(val5);
33691 }
33692 if (obj5) {
33693 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33694 if (!SWIG_IsOK(res6)) {
33695 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33696 }
33697 if (!argp6) {
33698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33699 }
33700 arg6 = reinterpret_cast< wxValidator * >(argp6);
33701 }
33702 if (obj6) {
33703 {
33704 arg7 = wxString_in_helper(obj6);
33705 if (arg7 == NULL) SWIG_fail;
33706 temp7 = true;
33707 }
33708 }
33709 {
33710 if (!wxPyCheckForApp()) SWIG_fail;
33711 PyThreadState* __tstate = wxPyBeginAllowThreads();
33712 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33713 wxPyEndAllowThreads(__tstate);
33714 if (PyErr_Occurred()) SWIG_fail;
33715 }
33716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33717 {
33718 if (temp7)
33719 delete arg7;
33720 }
33721 return resultobj;
33722 fail:
33723 {
33724 if (temp7)
33725 delete arg7;
33726 }
33727 return NULL;
33728 }
33729
33730
33731 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33732 PyObject *resultobj = 0;
33733 wxPyTreeCtrl *result = 0 ;
33734
33735 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33736 {
33737 if (!wxPyCheckForApp()) SWIG_fail;
33738 PyThreadState* __tstate = wxPyBeginAllowThreads();
33739 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33740 wxPyEndAllowThreads(__tstate);
33741 if (PyErr_Occurred()) SWIG_fail;
33742 }
33743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33744 return resultobj;
33745 fail:
33746 return NULL;
33747 }
33748
33749
33750 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33751 PyObject *resultobj = 0;
33752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33753 wxWindow *arg2 = (wxWindow *) 0 ;
33754 int arg3 = (int) -1 ;
33755 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33756 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33757 wxSize const &arg5_defvalue = wxDefaultSize ;
33758 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33759 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33760 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33761 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33762 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33763 wxString *arg8 = (wxString *) &arg8_defvalue ;
33764 bool result;
33765 void *argp1 = 0 ;
33766 int res1 = 0 ;
33767 void *argp2 = 0 ;
33768 int res2 = 0 ;
33769 int val3 ;
33770 int ecode3 = 0 ;
33771 wxPoint temp4 ;
33772 wxSize temp5 ;
33773 long val6 ;
33774 int ecode6 = 0 ;
33775 void *argp7 = 0 ;
33776 int res7 = 0 ;
33777 bool temp8 = false ;
33778 PyObject * obj0 = 0 ;
33779 PyObject * obj1 = 0 ;
33780 PyObject * obj2 = 0 ;
33781 PyObject * obj3 = 0 ;
33782 PyObject * obj4 = 0 ;
33783 PyObject * obj5 = 0 ;
33784 PyObject * obj6 = 0 ;
33785 PyObject * obj7 = 0 ;
33786 char * kwnames[] = {
33787 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33788 };
33789
33790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33792 if (!SWIG_IsOK(res1)) {
33793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33794 }
33795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33797 if (!SWIG_IsOK(res2)) {
33798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33799 }
33800 arg2 = reinterpret_cast< wxWindow * >(argp2);
33801 if (obj2) {
33802 ecode3 = SWIG_AsVal_int(obj2, &val3);
33803 if (!SWIG_IsOK(ecode3)) {
33804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33805 }
33806 arg3 = static_cast< int >(val3);
33807 }
33808 if (obj3) {
33809 {
33810 arg4 = &temp4;
33811 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33812 }
33813 }
33814 if (obj4) {
33815 {
33816 arg5 = &temp5;
33817 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33818 }
33819 }
33820 if (obj5) {
33821 ecode6 = SWIG_AsVal_long(obj5, &val6);
33822 if (!SWIG_IsOK(ecode6)) {
33823 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33824 }
33825 arg6 = static_cast< long >(val6);
33826 }
33827 if (obj6) {
33828 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33829 if (!SWIG_IsOK(res7)) {
33830 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33831 }
33832 if (!argp7) {
33833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33834 }
33835 arg7 = reinterpret_cast< wxValidator * >(argp7);
33836 }
33837 if (obj7) {
33838 {
33839 arg8 = wxString_in_helper(obj7);
33840 if (arg8 == NULL) SWIG_fail;
33841 temp8 = true;
33842 }
33843 }
33844 {
33845 PyThreadState* __tstate = wxPyBeginAllowThreads();
33846 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33847 wxPyEndAllowThreads(__tstate);
33848 if (PyErr_Occurred()) SWIG_fail;
33849 }
33850 {
33851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33852 }
33853 {
33854 if (temp8)
33855 delete arg8;
33856 }
33857 return resultobj;
33858 fail:
33859 {
33860 if (temp8)
33861 delete arg8;
33862 }
33863 return NULL;
33864 }
33865
33866
33867 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33868 PyObject *resultobj = 0;
33869 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33870 PyObject *arg2 = (PyObject *) 0 ;
33871 PyObject *arg3 = (PyObject *) 0 ;
33872 void *argp1 = 0 ;
33873 int res1 = 0 ;
33874 PyObject * obj0 = 0 ;
33875 PyObject * obj1 = 0 ;
33876 PyObject * obj2 = 0 ;
33877 char * kwnames[] = {
33878 (char *) "self",(char *) "self",(char *) "_class", NULL
33879 };
33880
33881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33883 if (!SWIG_IsOK(res1)) {
33884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33885 }
33886 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33887 arg2 = obj1;
33888 arg3 = obj2;
33889 {
33890 PyThreadState* __tstate = wxPyBeginAllowThreads();
33891 (arg1)->_setCallbackInfo(arg2,arg3);
33892 wxPyEndAllowThreads(__tstate);
33893 if (PyErr_Occurred()) SWIG_fail;
33894 }
33895 resultobj = SWIG_Py_Void();
33896 return resultobj;
33897 fail:
33898 return NULL;
33899 }
33900
33901
33902 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33903 PyObject *resultobj = 0;
33904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33905 unsigned int result;
33906 void *argp1 = 0 ;
33907 int res1 = 0 ;
33908 PyObject *swig_obj[1] ;
33909
33910 if (!args) SWIG_fail;
33911 swig_obj[0] = args;
33912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33913 if (!SWIG_IsOK(res1)) {
33914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33915 }
33916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33917 {
33918 PyThreadState* __tstate = wxPyBeginAllowThreads();
33919 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33920 wxPyEndAllowThreads(__tstate);
33921 if (PyErr_Occurred()) SWIG_fail;
33922 }
33923 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33924 return resultobj;
33925 fail:
33926 return NULL;
33927 }
33928
33929
33930 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33931 PyObject *resultobj = 0;
33932 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33933 unsigned int result;
33934 void *argp1 = 0 ;
33935 int res1 = 0 ;
33936 PyObject *swig_obj[1] ;
33937
33938 if (!args) SWIG_fail;
33939 swig_obj[0] = args;
33940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33941 if (!SWIG_IsOK(res1)) {
33942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33943 }
33944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33945 {
33946 PyThreadState* __tstate = wxPyBeginAllowThreads();
33947 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33948 wxPyEndAllowThreads(__tstate);
33949 if (PyErr_Occurred()) SWIG_fail;
33950 }
33951 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33952 return resultobj;
33953 fail:
33954 return NULL;
33955 }
33956
33957
33958 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33959 PyObject *resultobj = 0;
33960 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33961 unsigned int arg2 ;
33962 void *argp1 = 0 ;
33963 int res1 = 0 ;
33964 unsigned int val2 ;
33965 int ecode2 = 0 ;
33966 PyObject * obj0 = 0 ;
33967 PyObject * obj1 = 0 ;
33968 char * kwnames[] = {
33969 (char *) "self",(char *) "indent", NULL
33970 };
33971
33972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33974 if (!SWIG_IsOK(res1)) {
33975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33976 }
33977 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33978 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33979 if (!SWIG_IsOK(ecode2)) {
33980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33981 }
33982 arg2 = static_cast< unsigned int >(val2);
33983 {
33984 PyThreadState* __tstate = wxPyBeginAllowThreads();
33985 (arg1)->SetIndent(arg2);
33986 wxPyEndAllowThreads(__tstate);
33987 if (PyErr_Occurred()) SWIG_fail;
33988 }
33989 resultobj = SWIG_Py_Void();
33990 return resultobj;
33991 fail:
33992 return NULL;
33993 }
33994
33995
33996 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33997 PyObject *resultobj = 0;
33998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33999 unsigned int result;
34000 void *argp1 = 0 ;
34001 int res1 = 0 ;
34002 PyObject *swig_obj[1] ;
34003
34004 if (!args) SWIG_fail;
34005 swig_obj[0] = args;
34006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34007 if (!SWIG_IsOK(res1)) {
34008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34009 }
34010 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34011 {
34012 PyThreadState* __tstate = wxPyBeginAllowThreads();
34013 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34014 wxPyEndAllowThreads(__tstate);
34015 if (PyErr_Occurred()) SWIG_fail;
34016 }
34017 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34018 return resultobj;
34019 fail:
34020 return NULL;
34021 }
34022
34023
34024 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34025 PyObject *resultobj = 0;
34026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34027 unsigned int arg2 ;
34028 void *argp1 = 0 ;
34029 int res1 = 0 ;
34030 unsigned int val2 ;
34031 int ecode2 = 0 ;
34032 PyObject * obj0 = 0 ;
34033 PyObject * obj1 = 0 ;
34034 char * kwnames[] = {
34035 (char *) "self",(char *) "spacing", NULL
34036 };
34037
34038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34040 if (!SWIG_IsOK(res1)) {
34041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34042 }
34043 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34044 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34045 if (!SWIG_IsOK(ecode2)) {
34046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34047 }
34048 arg2 = static_cast< unsigned int >(val2);
34049 {
34050 PyThreadState* __tstate = wxPyBeginAllowThreads();
34051 (arg1)->SetSpacing(arg2);
34052 wxPyEndAllowThreads(__tstate);
34053 if (PyErr_Occurred()) SWIG_fail;
34054 }
34055 resultobj = SWIG_Py_Void();
34056 return resultobj;
34057 fail:
34058 return NULL;
34059 }
34060
34061
34062 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34063 PyObject *resultobj = 0;
34064 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34065 wxImageList *result = 0 ;
34066 void *argp1 = 0 ;
34067 int res1 = 0 ;
34068 PyObject *swig_obj[1] ;
34069
34070 if (!args) SWIG_fail;
34071 swig_obj[0] = args;
34072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34073 if (!SWIG_IsOK(res1)) {
34074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34075 }
34076 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34077 {
34078 PyThreadState* __tstate = wxPyBeginAllowThreads();
34079 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34080 wxPyEndAllowThreads(__tstate);
34081 if (PyErr_Occurred()) SWIG_fail;
34082 }
34083 {
34084 resultobj = wxPyMake_wxObject(result, (bool)0);
34085 }
34086 return resultobj;
34087 fail:
34088 return NULL;
34089 }
34090
34091
34092 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34093 PyObject *resultobj = 0;
34094 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34095 wxImageList *result = 0 ;
34096 void *argp1 = 0 ;
34097 int res1 = 0 ;
34098 PyObject *swig_obj[1] ;
34099
34100 if (!args) SWIG_fail;
34101 swig_obj[0] = args;
34102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34103 if (!SWIG_IsOK(res1)) {
34104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34105 }
34106 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34107 {
34108 PyThreadState* __tstate = wxPyBeginAllowThreads();
34109 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34110 wxPyEndAllowThreads(__tstate);
34111 if (PyErr_Occurred()) SWIG_fail;
34112 }
34113 {
34114 resultobj = wxPyMake_wxObject(result, (bool)0);
34115 }
34116 return resultobj;
34117 fail:
34118 return NULL;
34119 }
34120
34121
34122 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34123 PyObject *resultobj = 0;
34124 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34125 wxImageList *arg2 = (wxImageList *) 0 ;
34126 void *argp1 = 0 ;
34127 int res1 = 0 ;
34128 void *argp2 = 0 ;
34129 int res2 = 0 ;
34130 PyObject * obj0 = 0 ;
34131 PyObject * obj1 = 0 ;
34132 char * kwnames[] = {
34133 (char *) "self",(char *) "imageList", NULL
34134 };
34135
34136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34138 if (!SWIG_IsOK(res1)) {
34139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34140 }
34141 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34143 if (!SWIG_IsOK(res2)) {
34144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34145 }
34146 arg2 = reinterpret_cast< wxImageList * >(argp2);
34147 {
34148 PyThreadState* __tstate = wxPyBeginAllowThreads();
34149 (arg1)->SetImageList(arg2);
34150 wxPyEndAllowThreads(__tstate);
34151 if (PyErr_Occurred()) SWIG_fail;
34152 }
34153 resultobj = SWIG_Py_Void();
34154 return resultobj;
34155 fail:
34156 return NULL;
34157 }
34158
34159
34160 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34161 PyObject *resultobj = 0;
34162 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34163 wxImageList *arg2 = (wxImageList *) 0 ;
34164 void *argp1 = 0 ;
34165 int res1 = 0 ;
34166 void *argp2 = 0 ;
34167 int res2 = 0 ;
34168 PyObject * obj0 = 0 ;
34169 PyObject * obj1 = 0 ;
34170 char * kwnames[] = {
34171 (char *) "self",(char *) "imageList", NULL
34172 };
34173
34174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34176 if (!SWIG_IsOK(res1)) {
34177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34178 }
34179 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34181 if (!SWIG_IsOK(res2)) {
34182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34183 }
34184 arg2 = reinterpret_cast< wxImageList * >(argp2);
34185 {
34186 PyThreadState* __tstate = wxPyBeginAllowThreads();
34187 (arg1)->SetStateImageList(arg2);
34188 wxPyEndAllowThreads(__tstate);
34189 if (PyErr_Occurred()) SWIG_fail;
34190 }
34191 resultobj = SWIG_Py_Void();
34192 return resultobj;
34193 fail:
34194 return NULL;
34195 }
34196
34197
34198 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34199 PyObject *resultobj = 0;
34200 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34201 wxImageList *arg2 = (wxImageList *) 0 ;
34202 void *argp1 = 0 ;
34203 int res1 = 0 ;
34204 int res2 = 0 ;
34205 PyObject * obj0 = 0 ;
34206 PyObject * obj1 = 0 ;
34207 char * kwnames[] = {
34208 (char *) "self",(char *) "imageList", NULL
34209 };
34210
34211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34213 if (!SWIG_IsOK(res1)) {
34214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34215 }
34216 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34217 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34218 if (!SWIG_IsOK(res2)) {
34219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34220 }
34221 {
34222 PyThreadState* __tstate = wxPyBeginAllowThreads();
34223 (arg1)->AssignImageList(arg2);
34224 wxPyEndAllowThreads(__tstate);
34225 if (PyErr_Occurred()) SWIG_fail;
34226 }
34227 resultobj = SWIG_Py_Void();
34228 return resultobj;
34229 fail:
34230 return NULL;
34231 }
34232
34233
34234 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34235 PyObject *resultobj = 0;
34236 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34237 wxImageList *arg2 = (wxImageList *) 0 ;
34238 void *argp1 = 0 ;
34239 int res1 = 0 ;
34240 int res2 = 0 ;
34241 PyObject * obj0 = 0 ;
34242 PyObject * obj1 = 0 ;
34243 char * kwnames[] = {
34244 (char *) "self",(char *) "imageList", NULL
34245 };
34246
34247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34249 if (!SWIG_IsOK(res1)) {
34250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34251 }
34252 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34253 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34254 if (!SWIG_IsOK(res2)) {
34255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34256 }
34257 {
34258 PyThreadState* __tstate = wxPyBeginAllowThreads();
34259 (arg1)->AssignStateImageList(arg2);
34260 wxPyEndAllowThreads(__tstate);
34261 if (PyErr_Occurred()) SWIG_fail;
34262 }
34263 resultobj = SWIG_Py_Void();
34264 return resultobj;
34265 fail:
34266 return NULL;
34267 }
34268
34269
34270 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34271 PyObject *resultobj = 0;
34272 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34273 wxTreeItemId *arg2 = 0 ;
34274 wxString result;
34275 void *argp1 = 0 ;
34276 int res1 = 0 ;
34277 void *argp2 = 0 ;
34278 int res2 = 0 ;
34279 PyObject * obj0 = 0 ;
34280 PyObject * obj1 = 0 ;
34281 char * kwnames[] = {
34282 (char *) "self",(char *) "item", NULL
34283 };
34284
34285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34287 if (!SWIG_IsOK(res1)) {
34288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34289 }
34290 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34292 if (!SWIG_IsOK(res2)) {
34293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34294 }
34295 if (!argp2) {
34296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34297 }
34298 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34299 {
34300 PyThreadState* __tstate = wxPyBeginAllowThreads();
34301 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34302 wxPyEndAllowThreads(__tstate);
34303 if (PyErr_Occurred()) SWIG_fail;
34304 }
34305 {
34306 #if wxUSE_UNICODE
34307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34308 #else
34309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34310 #endif
34311 }
34312 return resultobj;
34313 fail:
34314 return NULL;
34315 }
34316
34317
34318 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34319 PyObject *resultobj = 0;
34320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34321 wxTreeItemId *arg2 = 0 ;
34322 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34323 int result;
34324 void *argp1 = 0 ;
34325 int res1 = 0 ;
34326 void *argp2 = 0 ;
34327 int res2 = 0 ;
34328 int val3 ;
34329 int ecode3 = 0 ;
34330 PyObject * obj0 = 0 ;
34331 PyObject * obj1 = 0 ;
34332 PyObject * obj2 = 0 ;
34333 char * kwnames[] = {
34334 (char *) "self",(char *) "item",(char *) "which", NULL
34335 };
34336
34337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34339 if (!SWIG_IsOK(res1)) {
34340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34341 }
34342 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34344 if (!SWIG_IsOK(res2)) {
34345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34346 }
34347 if (!argp2) {
34348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34349 }
34350 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34351 if (obj2) {
34352 ecode3 = SWIG_AsVal_int(obj2, &val3);
34353 if (!SWIG_IsOK(ecode3)) {
34354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34355 }
34356 arg3 = static_cast< wxTreeItemIcon >(val3);
34357 }
34358 {
34359 PyThreadState* __tstate = wxPyBeginAllowThreads();
34360 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34361 wxPyEndAllowThreads(__tstate);
34362 if (PyErr_Occurred()) SWIG_fail;
34363 }
34364 resultobj = SWIG_From_int(static_cast< int >(result));
34365 return resultobj;
34366 fail:
34367 return NULL;
34368 }
34369
34370
34371 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34372 PyObject *resultobj = 0;
34373 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34374 wxTreeItemId *arg2 = 0 ;
34375 wxPyTreeItemData *result = 0 ;
34376 void *argp1 = 0 ;
34377 int res1 = 0 ;
34378 void *argp2 = 0 ;
34379 int res2 = 0 ;
34380 PyObject * obj0 = 0 ;
34381 PyObject * obj1 = 0 ;
34382 char * kwnames[] = {
34383 (char *) "self",(char *) "item", NULL
34384 };
34385
34386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34388 if (!SWIG_IsOK(res1)) {
34389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34390 }
34391 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34393 if (!SWIG_IsOK(res2)) {
34394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34395 }
34396 if (!argp2) {
34397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34398 }
34399 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34400 {
34401 PyThreadState* __tstate = wxPyBeginAllowThreads();
34402 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34403 wxPyEndAllowThreads(__tstate);
34404 if (PyErr_Occurred()) SWIG_fail;
34405 }
34406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34407 return resultobj;
34408 fail:
34409 return NULL;
34410 }
34411
34412
34413 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34414 PyObject *resultobj = 0;
34415 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34416 wxTreeItemId *arg2 = 0 ;
34417 PyObject *result = 0 ;
34418 void *argp1 = 0 ;
34419 int res1 = 0 ;
34420 void *argp2 = 0 ;
34421 int res2 = 0 ;
34422 PyObject * obj0 = 0 ;
34423 PyObject * obj1 = 0 ;
34424 char * kwnames[] = {
34425 (char *) "self",(char *) "item", NULL
34426 };
34427
34428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34430 if (!SWIG_IsOK(res1)) {
34431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34432 }
34433 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34434 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34435 if (!SWIG_IsOK(res2)) {
34436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34437 }
34438 if (!argp2) {
34439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34440 }
34441 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34442 {
34443 PyThreadState* __tstate = wxPyBeginAllowThreads();
34444 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34445 wxPyEndAllowThreads(__tstate);
34446 if (PyErr_Occurred()) SWIG_fail;
34447 }
34448 resultobj = result;
34449 return resultobj;
34450 fail:
34451 return NULL;
34452 }
34453
34454
34455 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34456 PyObject *resultobj = 0;
34457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34458 wxTreeItemId *arg2 = 0 ;
34459 wxColour result;
34460 void *argp1 = 0 ;
34461 int res1 = 0 ;
34462 void *argp2 = 0 ;
34463 int res2 = 0 ;
34464 PyObject * obj0 = 0 ;
34465 PyObject * obj1 = 0 ;
34466 char * kwnames[] = {
34467 (char *) "self",(char *) "item", NULL
34468 };
34469
34470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34472 if (!SWIG_IsOK(res1)) {
34473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34474 }
34475 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34477 if (!SWIG_IsOK(res2)) {
34478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34479 }
34480 if (!argp2) {
34481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34482 }
34483 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34484 {
34485 PyThreadState* __tstate = wxPyBeginAllowThreads();
34486 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34487 wxPyEndAllowThreads(__tstate);
34488 if (PyErr_Occurred()) SWIG_fail;
34489 }
34490 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34491 return resultobj;
34492 fail:
34493 return NULL;
34494 }
34495
34496
34497 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34498 PyObject *resultobj = 0;
34499 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34500 wxTreeItemId *arg2 = 0 ;
34501 wxColour result;
34502 void *argp1 = 0 ;
34503 int res1 = 0 ;
34504 void *argp2 = 0 ;
34505 int res2 = 0 ;
34506 PyObject * obj0 = 0 ;
34507 PyObject * obj1 = 0 ;
34508 char * kwnames[] = {
34509 (char *) "self",(char *) "item", NULL
34510 };
34511
34512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34514 if (!SWIG_IsOK(res1)) {
34515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34516 }
34517 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34519 if (!SWIG_IsOK(res2)) {
34520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34521 }
34522 if (!argp2) {
34523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34524 }
34525 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34526 {
34527 PyThreadState* __tstate = wxPyBeginAllowThreads();
34528 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34529 wxPyEndAllowThreads(__tstate);
34530 if (PyErr_Occurred()) SWIG_fail;
34531 }
34532 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34533 return resultobj;
34534 fail:
34535 return NULL;
34536 }
34537
34538
34539 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34540 PyObject *resultobj = 0;
34541 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34542 wxTreeItemId *arg2 = 0 ;
34543 wxFont result;
34544 void *argp1 = 0 ;
34545 int res1 = 0 ;
34546 void *argp2 = 0 ;
34547 int res2 = 0 ;
34548 PyObject * obj0 = 0 ;
34549 PyObject * obj1 = 0 ;
34550 char * kwnames[] = {
34551 (char *) "self",(char *) "item", NULL
34552 };
34553
34554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34556 if (!SWIG_IsOK(res1)) {
34557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34558 }
34559 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34561 if (!SWIG_IsOK(res2)) {
34562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34563 }
34564 if (!argp2) {
34565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34566 }
34567 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34568 {
34569 PyThreadState* __tstate = wxPyBeginAllowThreads();
34570 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34571 wxPyEndAllowThreads(__tstate);
34572 if (PyErr_Occurred()) SWIG_fail;
34573 }
34574 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34575 return resultobj;
34576 fail:
34577 return NULL;
34578 }
34579
34580
34581 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34582 PyObject *resultobj = 0;
34583 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34584 wxTreeItemId *arg2 = 0 ;
34585 wxString *arg3 = 0 ;
34586 void *argp1 = 0 ;
34587 int res1 = 0 ;
34588 void *argp2 = 0 ;
34589 int res2 = 0 ;
34590 bool temp3 = false ;
34591 PyObject * obj0 = 0 ;
34592 PyObject * obj1 = 0 ;
34593 PyObject * obj2 = 0 ;
34594 char * kwnames[] = {
34595 (char *) "self",(char *) "item",(char *) "text", NULL
34596 };
34597
34598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34600 if (!SWIG_IsOK(res1)) {
34601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34602 }
34603 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34605 if (!SWIG_IsOK(res2)) {
34606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34607 }
34608 if (!argp2) {
34609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34610 }
34611 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34612 {
34613 arg3 = wxString_in_helper(obj2);
34614 if (arg3 == NULL) SWIG_fail;
34615 temp3 = true;
34616 }
34617 {
34618 PyThreadState* __tstate = wxPyBeginAllowThreads();
34619 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34620 wxPyEndAllowThreads(__tstate);
34621 if (PyErr_Occurred()) SWIG_fail;
34622 }
34623 resultobj = SWIG_Py_Void();
34624 {
34625 if (temp3)
34626 delete arg3;
34627 }
34628 return resultobj;
34629 fail:
34630 {
34631 if (temp3)
34632 delete arg3;
34633 }
34634 return NULL;
34635 }
34636
34637
34638 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34639 PyObject *resultobj = 0;
34640 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34641 wxTreeItemId *arg2 = 0 ;
34642 int arg3 ;
34643 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34644 void *argp1 = 0 ;
34645 int res1 = 0 ;
34646 void *argp2 = 0 ;
34647 int res2 = 0 ;
34648 int val3 ;
34649 int ecode3 = 0 ;
34650 int val4 ;
34651 int ecode4 = 0 ;
34652 PyObject * obj0 = 0 ;
34653 PyObject * obj1 = 0 ;
34654 PyObject * obj2 = 0 ;
34655 PyObject * obj3 = 0 ;
34656 char * kwnames[] = {
34657 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34658 };
34659
34660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34662 if (!SWIG_IsOK(res1)) {
34663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34664 }
34665 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34667 if (!SWIG_IsOK(res2)) {
34668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34669 }
34670 if (!argp2) {
34671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34672 }
34673 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34674 ecode3 = SWIG_AsVal_int(obj2, &val3);
34675 if (!SWIG_IsOK(ecode3)) {
34676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34677 }
34678 arg3 = static_cast< int >(val3);
34679 if (obj3) {
34680 ecode4 = SWIG_AsVal_int(obj3, &val4);
34681 if (!SWIG_IsOK(ecode4)) {
34682 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34683 }
34684 arg4 = static_cast< wxTreeItemIcon >(val4);
34685 }
34686 {
34687 PyThreadState* __tstate = wxPyBeginAllowThreads();
34688 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34689 wxPyEndAllowThreads(__tstate);
34690 if (PyErr_Occurred()) SWIG_fail;
34691 }
34692 resultobj = SWIG_Py_Void();
34693 return resultobj;
34694 fail:
34695 return NULL;
34696 }
34697
34698
34699 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34700 PyObject *resultobj = 0;
34701 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34702 wxTreeItemId *arg2 = 0 ;
34703 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34704 void *argp1 = 0 ;
34705 int res1 = 0 ;
34706 void *argp2 = 0 ;
34707 int res2 = 0 ;
34708 int res3 = 0 ;
34709 PyObject * obj0 = 0 ;
34710 PyObject * obj1 = 0 ;
34711 PyObject * obj2 = 0 ;
34712 char * kwnames[] = {
34713 (char *) "self",(char *) "item",(char *) "data", NULL
34714 };
34715
34716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34718 if (!SWIG_IsOK(res1)) {
34719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34720 }
34721 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34723 if (!SWIG_IsOK(res2)) {
34724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34725 }
34726 if (!argp2) {
34727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34728 }
34729 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34730 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34731 if (!SWIG_IsOK(res3)) {
34732 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34733 }
34734 {
34735 PyThreadState* __tstate = wxPyBeginAllowThreads();
34736 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34737 wxPyEndAllowThreads(__tstate);
34738 if (PyErr_Occurred()) SWIG_fail;
34739 }
34740 resultobj = SWIG_Py_Void();
34741 return resultobj;
34742 fail:
34743 return NULL;
34744 }
34745
34746
34747 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34748 PyObject *resultobj = 0;
34749 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34750 wxTreeItemId *arg2 = 0 ;
34751 PyObject *arg3 = (PyObject *) 0 ;
34752 void *argp1 = 0 ;
34753 int res1 = 0 ;
34754 void *argp2 = 0 ;
34755 int res2 = 0 ;
34756 PyObject * obj0 = 0 ;
34757 PyObject * obj1 = 0 ;
34758 PyObject * obj2 = 0 ;
34759 char * kwnames[] = {
34760 (char *) "self",(char *) "item",(char *) "obj", NULL
34761 };
34762
34763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34765 if (!SWIG_IsOK(res1)) {
34766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34767 }
34768 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34770 if (!SWIG_IsOK(res2)) {
34771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34772 }
34773 if (!argp2) {
34774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34775 }
34776 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34777 arg3 = obj2;
34778 {
34779 PyThreadState* __tstate = wxPyBeginAllowThreads();
34780 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34781 wxPyEndAllowThreads(__tstate);
34782 if (PyErr_Occurred()) SWIG_fail;
34783 }
34784 resultobj = SWIG_Py_Void();
34785 return resultobj;
34786 fail:
34787 return NULL;
34788 }
34789
34790
34791 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34792 PyObject *resultobj = 0;
34793 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34794 wxTreeItemId *arg2 = 0 ;
34795 bool arg3 = (bool) true ;
34796 void *argp1 = 0 ;
34797 int res1 = 0 ;
34798 void *argp2 = 0 ;
34799 int res2 = 0 ;
34800 bool val3 ;
34801 int ecode3 = 0 ;
34802 PyObject * obj0 = 0 ;
34803 PyObject * obj1 = 0 ;
34804 PyObject * obj2 = 0 ;
34805 char * kwnames[] = {
34806 (char *) "self",(char *) "item",(char *) "has", NULL
34807 };
34808
34809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34811 if (!SWIG_IsOK(res1)) {
34812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34813 }
34814 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34816 if (!SWIG_IsOK(res2)) {
34817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34818 }
34819 if (!argp2) {
34820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34821 }
34822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34823 if (obj2) {
34824 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34825 if (!SWIG_IsOK(ecode3)) {
34826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34827 }
34828 arg3 = static_cast< bool >(val3);
34829 }
34830 {
34831 PyThreadState* __tstate = wxPyBeginAllowThreads();
34832 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34833 wxPyEndAllowThreads(__tstate);
34834 if (PyErr_Occurred()) SWIG_fail;
34835 }
34836 resultobj = SWIG_Py_Void();
34837 return resultobj;
34838 fail:
34839 return NULL;
34840 }
34841
34842
34843 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34844 PyObject *resultobj = 0;
34845 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34846 wxTreeItemId *arg2 = 0 ;
34847 bool arg3 = (bool) true ;
34848 void *argp1 = 0 ;
34849 int res1 = 0 ;
34850 void *argp2 = 0 ;
34851 int res2 = 0 ;
34852 bool val3 ;
34853 int ecode3 = 0 ;
34854 PyObject * obj0 = 0 ;
34855 PyObject * obj1 = 0 ;
34856 PyObject * obj2 = 0 ;
34857 char * kwnames[] = {
34858 (char *) "self",(char *) "item",(char *) "bold", NULL
34859 };
34860
34861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34863 if (!SWIG_IsOK(res1)) {
34864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34865 }
34866 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34868 if (!SWIG_IsOK(res2)) {
34869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34870 }
34871 if (!argp2) {
34872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34873 }
34874 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34875 if (obj2) {
34876 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34877 if (!SWIG_IsOK(ecode3)) {
34878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34879 }
34880 arg3 = static_cast< bool >(val3);
34881 }
34882 {
34883 PyThreadState* __tstate = wxPyBeginAllowThreads();
34884 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34885 wxPyEndAllowThreads(__tstate);
34886 if (PyErr_Occurred()) SWIG_fail;
34887 }
34888 resultobj = SWIG_Py_Void();
34889 return resultobj;
34890 fail:
34891 return NULL;
34892 }
34893
34894
34895 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34896 PyObject *resultobj = 0;
34897 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34898 wxTreeItemId *arg2 = 0 ;
34899 bool arg3 = (bool) true ;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 void *argp2 = 0 ;
34903 int res2 = 0 ;
34904 bool val3 ;
34905 int ecode3 = 0 ;
34906 PyObject * obj0 = 0 ;
34907 PyObject * obj1 = 0 ;
34908 PyObject * obj2 = 0 ;
34909 char * kwnames[] = {
34910 (char *) "self",(char *) "item",(char *) "highlight", NULL
34911 };
34912
34913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34915 if (!SWIG_IsOK(res1)) {
34916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34917 }
34918 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34919 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34920 if (!SWIG_IsOK(res2)) {
34921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34922 }
34923 if (!argp2) {
34924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34925 }
34926 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34927 if (obj2) {
34928 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34929 if (!SWIG_IsOK(ecode3)) {
34930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34931 }
34932 arg3 = static_cast< bool >(val3);
34933 }
34934 {
34935 PyThreadState* __tstate = wxPyBeginAllowThreads();
34936 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34937 wxPyEndAllowThreads(__tstate);
34938 if (PyErr_Occurred()) SWIG_fail;
34939 }
34940 resultobj = SWIG_Py_Void();
34941 return resultobj;
34942 fail:
34943 return NULL;
34944 }
34945
34946
34947 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34948 PyObject *resultobj = 0;
34949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34950 wxTreeItemId *arg2 = 0 ;
34951 wxColour *arg3 = 0 ;
34952 void *argp1 = 0 ;
34953 int res1 = 0 ;
34954 void *argp2 = 0 ;
34955 int res2 = 0 ;
34956 wxColour temp3 ;
34957 PyObject * obj0 = 0 ;
34958 PyObject * obj1 = 0 ;
34959 PyObject * obj2 = 0 ;
34960 char * kwnames[] = {
34961 (char *) "self",(char *) "item",(char *) "col", NULL
34962 };
34963
34964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34966 if (!SWIG_IsOK(res1)) {
34967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34968 }
34969 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34971 if (!SWIG_IsOK(res2)) {
34972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34973 }
34974 if (!argp2) {
34975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34976 }
34977 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34978 {
34979 arg3 = &temp3;
34980 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34981 }
34982 {
34983 PyThreadState* __tstate = wxPyBeginAllowThreads();
34984 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34985 wxPyEndAllowThreads(__tstate);
34986 if (PyErr_Occurred()) SWIG_fail;
34987 }
34988 resultobj = SWIG_Py_Void();
34989 return resultobj;
34990 fail:
34991 return NULL;
34992 }
34993
34994
34995 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34996 PyObject *resultobj = 0;
34997 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34998 wxTreeItemId *arg2 = 0 ;
34999 wxColour *arg3 = 0 ;
35000 void *argp1 = 0 ;
35001 int res1 = 0 ;
35002 void *argp2 = 0 ;
35003 int res2 = 0 ;
35004 wxColour temp3 ;
35005 PyObject * obj0 = 0 ;
35006 PyObject * obj1 = 0 ;
35007 PyObject * obj2 = 0 ;
35008 char * kwnames[] = {
35009 (char *) "self",(char *) "item",(char *) "col", NULL
35010 };
35011
35012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35014 if (!SWIG_IsOK(res1)) {
35015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35016 }
35017 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35019 if (!SWIG_IsOK(res2)) {
35020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35021 }
35022 if (!argp2) {
35023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35024 }
35025 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35026 {
35027 arg3 = &temp3;
35028 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35029 }
35030 {
35031 PyThreadState* __tstate = wxPyBeginAllowThreads();
35032 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35033 wxPyEndAllowThreads(__tstate);
35034 if (PyErr_Occurred()) SWIG_fail;
35035 }
35036 resultobj = SWIG_Py_Void();
35037 return resultobj;
35038 fail:
35039 return NULL;
35040 }
35041
35042
35043 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35044 PyObject *resultobj = 0;
35045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35046 wxTreeItemId *arg2 = 0 ;
35047 wxFont *arg3 = 0 ;
35048 void *argp1 = 0 ;
35049 int res1 = 0 ;
35050 void *argp2 = 0 ;
35051 int res2 = 0 ;
35052 void *argp3 = 0 ;
35053 int res3 = 0 ;
35054 PyObject * obj0 = 0 ;
35055 PyObject * obj1 = 0 ;
35056 PyObject * obj2 = 0 ;
35057 char * kwnames[] = {
35058 (char *) "self",(char *) "item",(char *) "font", NULL
35059 };
35060
35061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35063 if (!SWIG_IsOK(res1)) {
35064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35065 }
35066 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35068 if (!SWIG_IsOK(res2)) {
35069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35070 }
35071 if (!argp2) {
35072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35073 }
35074 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35075 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35076 if (!SWIG_IsOK(res3)) {
35077 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35078 }
35079 if (!argp3) {
35080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35081 }
35082 arg3 = reinterpret_cast< wxFont * >(argp3);
35083 {
35084 PyThreadState* __tstate = wxPyBeginAllowThreads();
35085 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35086 wxPyEndAllowThreads(__tstate);
35087 if (PyErr_Occurred()) SWIG_fail;
35088 }
35089 resultobj = SWIG_Py_Void();
35090 return resultobj;
35091 fail:
35092 return NULL;
35093 }
35094
35095
35096 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35097 PyObject *resultobj = 0;
35098 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35099 wxTreeItemId *arg2 = 0 ;
35100 bool result;
35101 void *argp1 = 0 ;
35102 int res1 = 0 ;
35103 void *argp2 = 0 ;
35104 int res2 = 0 ;
35105 PyObject * obj0 = 0 ;
35106 PyObject * obj1 = 0 ;
35107 char * kwnames[] = {
35108 (char *) "self",(char *) "item", NULL
35109 };
35110
35111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35113 if (!SWIG_IsOK(res1)) {
35114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35115 }
35116 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35118 if (!SWIG_IsOK(res2)) {
35119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35120 }
35121 if (!argp2) {
35122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35123 }
35124 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35125 {
35126 PyThreadState* __tstate = wxPyBeginAllowThreads();
35127 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35128 wxPyEndAllowThreads(__tstate);
35129 if (PyErr_Occurred()) SWIG_fail;
35130 }
35131 {
35132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35133 }
35134 return resultobj;
35135 fail:
35136 return NULL;
35137 }
35138
35139
35140 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35141 PyObject *resultobj = 0;
35142 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35143 wxTreeItemId *arg2 = 0 ;
35144 bool result;
35145 void *argp1 = 0 ;
35146 int res1 = 0 ;
35147 void *argp2 = 0 ;
35148 int res2 = 0 ;
35149 PyObject * obj0 = 0 ;
35150 PyObject * obj1 = 0 ;
35151 char * kwnames[] = {
35152 (char *) "self",(char *) "item", NULL
35153 };
35154
35155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35157 if (!SWIG_IsOK(res1)) {
35158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35159 }
35160 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35162 if (!SWIG_IsOK(res2)) {
35163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35164 }
35165 if (!argp2) {
35166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35167 }
35168 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35169 {
35170 PyThreadState* __tstate = wxPyBeginAllowThreads();
35171 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35172 wxPyEndAllowThreads(__tstate);
35173 if (PyErr_Occurred()) SWIG_fail;
35174 }
35175 {
35176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35177 }
35178 return resultobj;
35179 fail:
35180 return NULL;
35181 }
35182
35183
35184 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35185 PyObject *resultobj = 0;
35186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35187 wxTreeItemId *arg2 = 0 ;
35188 bool result;
35189 void *argp1 = 0 ;
35190 int res1 = 0 ;
35191 void *argp2 = 0 ;
35192 int res2 = 0 ;
35193 PyObject * obj0 = 0 ;
35194 PyObject * obj1 = 0 ;
35195 char * kwnames[] = {
35196 (char *) "self",(char *) "item", NULL
35197 };
35198
35199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35201 if (!SWIG_IsOK(res1)) {
35202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35203 }
35204 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35206 if (!SWIG_IsOK(res2)) {
35207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35208 }
35209 if (!argp2) {
35210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35211 }
35212 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35213 {
35214 PyThreadState* __tstate = wxPyBeginAllowThreads();
35215 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35216 wxPyEndAllowThreads(__tstate);
35217 if (PyErr_Occurred()) SWIG_fail;
35218 }
35219 {
35220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35221 }
35222 return resultobj;
35223 fail:
35224 return NULL;
35225 }
35226
35227
35228 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35229 PyObject *resultobj = 0;
35230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35231 wxTreeItemId *arg2 = 0 ;
35232 bool result;
35233 void *argp1 = 0 ;
35234 int res1 = 0 ;
35235 void *argp2 = 0 ;
35236 int res2 = 0 ;
35237 PyObject * obj0 = 0 ;
35238 PyObject * obj1 = 0 ;
35239 char * kwnames[] = {
35240 (char *) "self",(char *) "item", NULL
35241 };
35242
35243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35245 if (!SWIG_IsOK(res1)) {
35246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35247 }
35248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35250 if (!SWIG_IsOK(res2)) {
35251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35252 }
35253 if (!argp2) {
35254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35255 }
35256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35257 {
35258 PyThreadState* __tstate = wxPyBeginAllowThreads();
35259 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35260 wxPyEndAllowThreads(__tstate);
35261 if (PyErr_Occurred()) SWIG_fail;
35262 }
35263 {
35264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35265 }
35266 return resultobj;
35267 fail:
35268 return NULL;
35269 }
35270
35271
35272 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35273 PyObject *resultobj = 0;
35274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35275 wxTreeItemId *arg2 = 0 ;
35276 bool result;
35277 void *argp1 = 0 ;
35278 int res1 = 0 ;
35279 void *argp2 = 0 ;
35280 int res2 = 0 ;
35281 PyObject * obj0 = 0 ;
35282 PyObject * obj1 = 0 ;
35283 char * kwnames[] = {
35284 (char *) "self",(char *) "item", NULL
35285 };
35286
35287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35289 if (!SWIG_IsOK(res1)) {
35290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35291 }
35292 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35294 if (!SWIG_IsOK(res2)) {
35295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35296 }
35297 if (!argp2) {
35298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35299 }
35300 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35301 {
35302 PyThreadState* __tstate = wxPyBeginAllowThreads();
35303 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35304 wxPyEndAllowThreads(__tstate);
35305 if (PyErr_Occurred()) SWIG_fail;
35306 }
35307 {
35308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35309 }
35310 return resultobj;
35311 fail:
35312 return NULL;
35313 }
35314
35315
35316 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35317 PyObject *resultobj = 0;
35318 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35319 wxTreeItemId *arg2 = 0 ;
35320 bool arg3 = (bool) true ;
35321 size_t result;
35322 void *argp1 = 0 ;
35323 int res1 = 0 ;
35324 void *argp2 = 0 ;
35325 int res2 = 0 ;
35326 bool val3 ;
35327 int ecode3 = 0 ;
35328 PyObject * obj0 = 0 ;
35329 PyObject * obj1 = 0 ;
35330 PyObject * obj2 = 0 ;
35331 char * kwnames[] = {
35332 (char *) "self",(char *) "item",(char *) "recursively", NULL
35333 };
35334
35335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35337 if (!SWIG_IsOK(res1)) {
35338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35339 }
35340 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35342 if (!SWIG_IsOK(res2)) {
35343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35344 }
35345 if (!argp2) {
35346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35347 }
35348 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35349 if (obj2) {
35350 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35351 if (!SWIG_IsOK(ecode3)) {
35352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35353 }
35354 arg3 = static_cast< bool >(val3);
35355 }
35356 {
35357 PyThreadState* __tstate = wxPyBeginAllowThreads();
35358 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35359 wxPyEndAllowThreads(__tstate);
35360 if (PyErr_Occurred()) SWIG_fail;
35361 }
35362 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35363 return resultobj;
35364 fail:
35365 return NULL;
35366 }
35367
35368
35369 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35370 PyObject *resultobj = 0;
35371 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35372 wxTreeItemId result;
35373 void *argp1 = 0 ;
35374 int res1 = 0 ;
35375 PyObject *swig_obj[1] ;
35376
35377 if (!args) SWIG_fail;
35378 swig_obj[0] = args;
35379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35380 if (!SWIG_IsOK(res1)) {
35381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35382 }
35383 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35384 {
35385 PyThreadState* __tstate = wxPyBeginAllowThreads();
35386 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35387 wxPyEndAllowThreads(__tstate);
35388 if (PyErr_Occurred()) SWIG_fail;
35389 }
35390 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35391 return resultobj;
35392 fail:
35393 return NULL;
35394 }
35395
35396
35397 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35398 PyObject *resultobj = 0;
35399 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35400 wxTreeItemId result;
35401 void *argp1 = 0 ;
35402 int res1 = 0 ;
35403 PyObject *swig_obj[1] ;
35404
35405 if (!args) SWIG_fail;
35406 swig_obj[0] = args;
35407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35408 if (!SWIG_IsOK(res1)) {
35409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35410 }
35411 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35412 {
35413 PyThreadState* __tstate = wxPyBeginAllowThreads();
35414 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35415 wxPyEndAllowThreads(__tstate);
35416 if (PyErr_Occurred()) SWIG_fail;
35417 }
35418 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35419 return resultobj;
35420 fail:
35421 return NULL;
35422 }
35423
35424
35425 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35426 PyObject *resultobj = 0;
35427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35428 PyObject *result = 0 ;
35429 void *argp1 = 0 ;
35430 int res1 = 0 ;
35431 PyObject *swig_obj[1] ;
35432
35433 if (!args) SWIG_fail;
35434 swig_obj[0] = args;
35435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35436 if (!SWIG_IsOK(res1)) {
35437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35438 }
35439 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35440 {
35441 PyThreadState* __tstate = wxPyBeginAllowThreads();
35442 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35443 wxPyEndAllowThreads(__tstate);
35444 if (PyErr_Occurred()) SWIG_fail;
35445 }
35446 resultobj = result;
35447 return resultobj;
35448 fail:
35449 return NULL;
35450 }
35451
35452
35453 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35454 PyObject *resultobj = 0;
35455 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35456 wxTreeItemId *arg2 = 0 ;
35457 wxTreeItemId result;
35458 void *argp1 = 0 ;
35459 int res1 = 0 ;
35460 void *argp2 = 0 ;
35461 int res2 = 0 ;
35462 PyObject * obj0 = 0 ;
35463 PyObject * obj1 = 0 ;
35464 char * kwnames[] = {
35465 (char *) "self",(char *) "item", NULL
35466 };
35467
35468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35470 if (!SWIG_IsOK(res1)) {
35471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35472 }
35473 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35474 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35475 if (!SWIG_IsOK(res2)) {
35476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35477 }
35478 if (!argp2) {
35479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35480 }
35481 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35482 {
35483 PyThreadState* __tstate = wxPyBeginAllowThreads();
35484 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35485 wxPyEndAllowThreads(__tstate);
35486 if (PyErr_Occurred()) SWIG_fail;
35487 }
35488 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35489 return resultobj;
35490 fail:
35491 return NULL;
35492 }
35493
35494
35495 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35496 PyObject *resultobj = 0;
35497 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35498 wxTreeItemId *arg2 = 0 ;
35499 PyObject *result = 0 ;
35500 void *argp1 = 0 ;
35501 int res1 = 0 ;
35502 void *argp2 = 0 ;
35503 int res2 = 0 ;
35504 PyObject * obj0 = 0 ;
35505 PyObject * obj1 = 0 ;
35506 char * kwnames[] = {
35507 (char *) "self",(char *) "item", NULL
35508 };
35509
35510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35512 if (!SWIG_IsOK(res1)) {
35513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35514 }
35515 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35517 if (!SWIG_IsOK(res2)) {
35518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35519 }
35520 if (!argp2) {
35521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35522 }
35523 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35524 {
35525 PyThreadState* __tstate = wxPyBeginAllowThreads();
35526 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35527 wxPyEndAllowThreads(__tstate);
35528 if (PyErr_Occurred()) SWIG_fail;
35529 }
35530 resultobj = result;
35531 return resultobj;
35532 fail:
35533 return NULL;
35534 }
35535
35536
35537 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35538 PyObject *resultobj = 0;
35539 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35540 wxTreeItemId *arg2 = 0 ;
35541 void *arg3 = (void *) 0 ;
35542 PyObject *result = 0 ;
35543 void *argp1 = 0 ;
35544 int res1 = 0 ;
35545 void *argp2 = 0 ;
35546 int res2 = 0 ;
35547 int res3 ;
35548 PyObject * obj0 = 0 ;
35549 PyObject * obj1 = 0 ;
35550 PyObject * obj2 = 0 ;
35551 char * kwnames[] = {
35552 (char *) "self",(char *) "item",(char *) "cookie", NULL
35553 };
35554
35555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35557 if (!SWIG_IsOK(res1)) {
35558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35559 }
35560 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35561 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35562 if (!SWIG_IsOK(res2)) {
35563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35564 }
35565 if (!argp2) {
35566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35567 }
35568 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35569 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35570 if (!SWIG_IsOK(res3)) {
35571 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35572 }
35573 {
35574 PyThreadState* __tstate = wxPyBeginAllowThreads();
35575 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35576 wxPyEndAllowThreads(__tstate);
35577 if (PyErr_Occurred()) SWIG_fail;
35578 }
35579 resultobj = result;
35580 return resultobj;
35581 fail:
35582 return NULL;
35583 }
35584
35585
35586 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35587 PyObject *resultobj = 0;
35588 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35589 wxTreeItemId *arg2 = 0 ;
35590 wxTreeItemId result;
35591 void *argp1 = 0 ;
35592 int res1 = 0 ;
35593 void *argp2 = 0 ;
35594 int res2 = 0 ;
35595 PyObject * obj0 = 0 ;
35596 PyObject * obj1 = 0 ;
35597 char * kwnames[] = {
35598 (char *) "self",(char *) "item", NULL
35599 };
35600
35601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35603 if (!SWIG_IsOK(res1)) {
35604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35605 }
35606 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35608 if (!SWIG_IsOK(res2)) {
35609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35610 }
35611 if (!argp2) {
35612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35613 }
35614 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35615 {
35616 PyThreadState* __tstate = wxPyBeginAllowThreads();
35617 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35618 wxPyEndAllowThreads(__tstate);
35619 if (PyErr_Occurred()) SWIG_fail;
35620 }
35621 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35622 return resultobj;
35623 fail:
35624 return NULL;
35625 }
35626
35627
35628 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35629 PyObject *resultobj = 0;
35630 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35631 wxTreeItemId *arg2 = 0 ;
35632 wxTreeItemId result;
35633 void *argp1 = 0 ;
35634 int res1 = 0 ;
35635 void *argp2 = 0 ;
35636 int res2 = 0 ;
35637 PyObject * obj0 = 0 ;
35638 PyObject * obj1 = 0 ;
35639 char * kwnames[] = {
35640 (char *) "self",(char *) "item", NULL
35641 };
35642
35643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35645 if (!SWIG_IsOK(res1)) {
35646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35647 }
35648 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35650 if (!SWIG_IsOK(res2)) {
35651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35652 }
35653 if (!argp2) {
35654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35655 }
35656 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35657 {
35658 PyThreadState* __tstate = wxPyBeginAllowThreads();
35659 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35660 wxPyEndAllowThreads(__tstate);
35661 if (PyErr_Occurred()) SWIG_fail;
35662 }
35663 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35664 return resultobj;
35665 fail:
35666 return NULL;
35667 }
35668
35669
35670 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35671 PyObject *resultobj = 0;
35672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35673 wxTreeItemId *arg2 = 0 ;
35674 wxTreeItemId result;
35675 void *argp1 = 0 ;
35676 int res1 = 0 ;
35677 void *argp2 = 0 ;
35678 int res2 = 0 ;
35679 PyObject * obj0 = 0 ;
35680 PyObject * obj1 = 0 ;
35681 char * kwnames[] = {
35682 (char *) "self",(char *) "item", NULL
35683 };
35684
35685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35687 if (!SWIG_IsOK(res1)) {
35688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35689 }
35690 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35692 if (!SWIG_IsOK(res2)) {
35693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35694 }
35695 if (!argp2) {
35696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35697 }
35698 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35699 {
35700 PyThreadState* __tstate = wxPyBeginAllowThreads();
35701 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35702 wxPyEndAllowThreads(__tstate);
35703 if (PyErr_Occurred()) SWIG_fail;
35704 }
35705 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35706 return resultobj;
35707 fail:
35708 return NULL;
35709 }
35710
35711
35712 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35713 PyObject *resultobj = 0;
35714 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35715 wxTreeItemId result;
35716 void *argp1 = 0 ;
35717 int res1 = 0 ;
35718 PyObject *swig_obj[1] ;
35719
35720 if (!args) SWIG_fail;
35721 swig_obj[0] = args;
35722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35723 if (!SWIG_IsOK(res1)) {
35724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35725 }
35726 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35727 {
35728 PyThreadState* __tstate = wxPyBeginAllowThreads();
35729 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35730 wxPyEndAllowThreads(__tstate);
35731 if (PyErr_Occurred()) SWIG_fail;
35732 }
35733 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35734 return resultobj;
35735 fail:
35736 return NULL;
35737 }
35738
35739
35740 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35741 PyObject *resultobj = 0;
35742 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35743 wxTreeItemId *arg2 = 0 ;
35744 wxTreeItemId result;
35745 void *argp1 = 0 ;
35746 int res1 = 0 ;
35747 void *argp2 = 0 ;
35748 int res2 = 0 ;
35749 PyObject * obj0 = 0 ;
35750 PyObject * obj1 = 0 ;
35751 char * kwnames[] = {
35752 (char *) "self",(char *) "item", NULL
35753 };
35754
35755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35757 if (!SWIG_IsOK(res1)) {
35758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35759 }
35760 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35762 if (!SWIG_IsOK(res2)) {
35763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35764 }
35765 if (!argp2) {
35766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35767 }
35768 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35769 {
35770 PyThreadState* __tstate = wxPyBeginAllowThreads();
35771 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35772 wxPyEndAllowThreads(__tstate);
35773 if (PyErr_Occurred()) SWIG_fail;
35774 }
35775 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35776 return resultobj;
35777 fail:
35778 return NULL;
35779 }
35780
35781
35782 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35783 PyObject *resultobj = 0;
35784 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35785 wxTreeItemId *arg2 = 0 ;
35786 wxTreeItemId result;
35787 void *argp1 = 0 ;
35788 int res1 = 0 ;
35789 void *argp2 = 0 ;
35790 int res2 = 0 ;
35791 PyObject * obj0 = 0 ;
35792 PyObject * obj1 = 0 ;
35793 char * kwnames[] = {
35794 (char *) "self",(char *) "item", NULL
35795 };
35796
35797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35799 if (!SWIG_IsOK(res1)) {
35800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35801 }
35802 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35804 if (!SWIG_IsOK(res2)) {
35805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35806 }
35807 if (!argp2) {
35808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35809 }
35810 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35811 {
35812 PyThreadState* __tstate = wxPyBeginAllowThreads();
35813 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35814 wxPyEndAllowThreads(__tstate);
35815 if (PyErr_Occurred()) SWIG_fail;
35816 }
35817 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35818 return resultobj;
35819 fail:
35820 return NULL;
35821 }
35822
35823
35824 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35825 PyObject *resultobj = 0;
35826 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35827 wxString *arg2 = 0 ;
35828 int arg3 = (int) -1 ;
35829 int arg4 = (int) -1 ;
35830 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35831 wxTreeItemId result;
35832 void *argp1 = 0 ;
35833 int res1 = 0 ;
35834 bool temp2 = false ;
35835 int val3 ;
35836 int ecode3 = 0 ;
35837 int val4 ;
35838 int ecode4 = 0 ;
35839 int res5 = 0 ;
35840 PyObject * obj0 = 0 ;
35841 PyObject * obj1 = 0 ;
35842 PyObject * obj2 = 0 ;
35843 PyObject * obj3 = 0 ;
35844 PyObject * obj4 = 0 ;
35845 char * kwnames[] = {
35846 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35847 };
35848
35849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35851 if (!SWIG_IsOK(res1)) {
35852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35853 }
35854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35855 {
35856 arg2 = wxString_in_helper(obj1);
35857 if (arg2 == NULL) SWIG_fail;
35858 temp2 = true;
35859 }
35860 if (obj2) {
35861 ecode3 = SWIG_AsVal_int(obj2, &val3);
35862 if (!SWIG_IsOK(ecode3)) {
35863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35864 }
35865 arg3 = static_cast< int >(val3);
35866 }
35867 if (obj3) {
35868 ecode4 = SWIG_AsVal_int(obj3, &val4);
35869 if (!SWIG_IsOK(ecode4)) {
35870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35871 }
35872 arg4 = static_cast< int >(val4);
35873 }
35874 if (obj4) {
35875 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35876 if (!SWIG_IsOK(res5)) {
35877 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35878 }
35879 }
35880 {
35881 PyThreadState* __tstate = wxPyBeginAllowThreads();
35882 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35883 wxPyEndAllowThreads(__tstate);
35884 if (PyErr_Occurred()) SWIG_fail;
35885 }
35886 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35887 {
35888 if (temp2)
35889 delete arg2;
35890 }
35891 return resultobj;
35892 fail:
35893 {
35894 if (temp2)
35895 delete arg2;
35896 }
35897 return NULL;
35898 }
35899
35900
35901 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35902 PyObject *resultobj = 0;
35903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35904 wxTreeItemId *arg2 = 0 ;
35905 wxString *arg3 = 0 ;
35906 int arg4 = (int) -1 ;
35907 int arg5 = (int) -1 ;
35908 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35909 wxTreeItemId result;
35910 void *argp1 = 0 ;
35911 int res1 = 0 ;
35912 void *argp2 = 0 ;
35913 int res2 = 0 ;
35914 bool temp3 = false ;
35915 int val4 ;
35916 int ecode4 = 0 ;
35917 int val5 ;
35918 int ecode5 = 0 ;
35919 int res6 = 0 ;
35920 PyObject * obj0 = 0 ;
35921 PyObject * obj1 = 0 ;
35922 PyObject * obj2 = 0 ;
35923 PyObject * obj3 = 0 ;
35924 PyObject * obj4 = 0 ;
35925 PyObject * obj5 = 0 ;
35926 char * kwnames[] = {
35927 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35928 };
35929
35930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35932 if (!SWIG_IsOK(res1)) {
35933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35934 }
35935 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35937 if (!SWIG_IsOK(res2)) {
35938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35939 }
35940 if (!argp2) {
35941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35942 }
35943 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35944 {
35945 arg3 = wxString_in_helper(obj2);
35946 if (arg3 == NULL) SWIG_fail;
35947 temp3 = true;
35948 }
35949 if (obj3) {
35950 ecode4 = SWIG_AsVal_int(obj3, &val4);
35951 if (!SWIG_IsOK(ecode4)) {
35952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35953 }
35954 arg4 = static_cast< int >(val4);
35955 }
35956 if (obj4) {
35957 ecode5 = SWIG_AsVal_int(obj4, &val5);
35958 if (!SWIG_IsOK(ecode5)) {
35959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35960 }
35961 arg5 = static_cast< int >(val5);
35962 }
35963 if (obj5) {
35964 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35965 if (!SWIG_IsOK(res6)) {
35966 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35967 }
35968 }
35969 {
35970 PyThreadState* __tstate = wxPyBeginAllowThreads();
35971 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35972 wxPyEndAllowThreads(__tstate);
35973 if (PyErr_Occurred()) SWIG_fail;
35974 }
35975 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35976 {
35977 if (temp3)
35978 delete arg3;
35979 }
35980 return resultobj;
35981 fail:
35982 {
35983 if (temp3)
35984 delete arg3;
35985 }
35986 return NULL;
35987 }
35988
35989
35990 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35991 PyObject *resultobj = 0;
35992 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35993 wxTreeItemId *arg2 = 0 ;
35994 wxTreeItemId *arg3 = 0 ;
35995 wxString *arg4 = 0 ;
35996 int arg5 = (int) -1 ;
35997 int arg6 = (int) -1 ;
35998 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35999 wxTreeItemId result;
36000 void *argp1 = 0 ;
36001 int res1 = 0 ;
36002 void *argp2 = 0 ;
36003 int res2 = 0 ;
36004 void *argp3 = 0 ;
36005 int res3 = 0 ;
36006 bool temp4 = false ;
36007 int val5 ;
36008 int ecode5 = 0 ;
36009 int val6 ;
36010 int ecode6 = 0 ;
36011 int res7 = 0 ;
36012 PyObject * obj0 = 0 ;
36013 PyObject * obj1 = 0 ;
36014 PyObject * obj2 = 0 ;
36015 PyObject * obj3 = 0 ;
36016 PyObject * obj4 = 0 ;
36017 PyObject * obj5 = 0 ;
36018 PyObject * obj6 = 0 ;
36019 char * kwnames[] = {
36020 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36021 };
36022
36023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36025 if (!SWIG_IsOK(res1)) {
36026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36027 }
36028 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36030 if (!SWIG_IsOK(res2)) {
36031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36032 }
36033 if (!argp2) {
36034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36035 }
36036 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36037 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36038 if (!SWIG_IsOK(res3)) {
36039 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36040 }
36041 if (!argp3) {
36042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36043 }
36044 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36045 {
36046 arg4 = wxString_in_helper(obj3);
36047 if (arg4 == NULL) SWIG_fail;
36048 temp4 = true;
36049 }
36050 if (obj4) {
36051 ecode5 = SWIG_AsVal_int(obj4, &val5);
36052 if (!SWIG_IsOK(ecode5)) {
36053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36054 }
36055 arg5 = static_cast< int >(val5);
36056 }
36057 if (obj5) {
36058 ecode6 = SWIG_AsVal_int(obj5, &val6);
36059 if (!SWIG_IsOK(ecode6)) {
36060 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36061 }
36062 arg6 = static_cast< int >(val6);
36063 }
36064 if (obj6) {
36065 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36066 if (!SWIG_IsOK(res7)) {
36067 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36068 }
36069 }
36070 {
36071 PyThreadState* __tstate = wxPyBeginAllowThreads();
36072 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36073 wxPyEndAllowThreads(__tstate);
36074 if (PyErr_Occurred()) SWIG_fail;
36075 }
36076 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36077 {
36078 if (temp4)
36079 delete arg4;
36080 }
36081 return resultobj;
36082 fail:
36083 {
36084 if (temp4)
36085 delete arg4;
36086 }
36087 return NULL;
36088 }
36089
36090
36091 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36092 PyObject *resultobj = 0;
36093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36094 wxTreeItemId *arg2 = 0 ;
36095 size_t arg3 ;
36096 wxString *arg4 = 0 ;
36097 int arg5 = (int) -1 ;
36098 int arg6 = (int) -1 ;
36099 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36100 wxTreeItemId result;
36101 void *argp1 = 0 ;
36102 int res1 = 0 ;
36103 void *argp2 = 0 ;
36104 int res2 = 0 ;
36105 size_t val3 ;
36106 int ecode3 = 0 ;
36107 bool temp4 = false ;
36108 int val5 ;
36109 int ecode5 = 0 ;
36110 int val6 ;
36111 int ecode6 = 0 ;
36112 int res7 = 0 ;
36113 PyObject * obj0 = 0 ;
36114 PyObject * obj1 = 0 ;
36115 PyObject * obj2 = 0 ;
36116 PyObject * obj3 = 0 ;
36117 PyObject * obj4 = 0 ;
36118 PyObject * obj5 = 0 ;
36119 PyObject * obj6 = 0 ;
36120 char * kwnames[] = {
36121 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36122 };
36123
36124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36126 if (!SWIG_IsOK(res1)) {
36127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36128 }
36129 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36131 if (!SWIG_IsOK(res2)) {
36132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36133 }
36134 if (!argp2) {
36135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36136 }
36137 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36138 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36139 if (!SWIG_IsOK(ecode3)) {
36140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36141 }
36142 arg3 = static_cast< size_t >(val3);
36143 {
36144 arg4 = wxString_in_helper(obj3);
36145 if (arg4 == NULL) SWIG_fail;
36146 temp4 = true;
36147 }
36148 if (obj4) {
36149 ecode5 = SWIG_AsVal_int(obj4, &val5);
36150 if (!SWIG_IsOK(ecode5)) {
36151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36152 }
36153 arg5 = static_cast< int >(val5);
36154 }
36155 if (obj5) {
36156 ecode6 = SWIG_AsVal_int(obj5, &val6);
36157 if (!SWIG_IsOK(ecode6)) {
36158 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36159 }
36160 arg6 = static_cast< int >(val6);
36161 }
36162 if (obj6) {
36163 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36164 if (!SWIG_IsOK(res7)) {
36165 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36166 }
36167 }
36168 {
36169 PyThreadState* __tstate = wxPyBeginAllowThreads();
36170 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36171 wxPyEndAllowThreads(__tstate);
36172 if (PyErr_Occurred()) SWIG_fail;
36173 }
36174 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36175 {
36176 if (temp4)
36177 delete arg4;
36178 }
36179 return resultobj;
36180 fail:
36181 {
36182 if (temp4)
36183 delete arg4;
36184 }
36185 return NULL;
36186 }
36187
36188
36189 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36190 PyObject *resultobj = 0;
36191 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36192 wxTreeItemId *arg2 = 0 ;
36193 wxString *arg3 = 0 ;
36194 int arg4 = (int) -1 ;
36195 int arg5 = (int) -1 ;
36196 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36197 wxTreeItemId result;
36198 void *argp1 = 0 ;
36199 int res1 = 0 ;
36200 void *argp2 = 0 ;
36201 int res2 = 0 ;
36202 bool temp3 = false ;
36203 int val4 ;
36204 int ecode4 = 0 ;
36205 int val5 ;
36206 int ecode5 = 0 ;
36207 int res6 = 0 ;
36208 PyObject * obj0 = 0 ;
36209 PyObject * obj1 = 0 ;
36210 PyObject * obj2 = 0 ;
36211 PyObject * obj3 = 0 ;
36212 PyObject * obj4 = 0 ;
36213 PyObject * obj5 = 0 ;
36214 char * kwnames[] = {
36215 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36216 };
36217
36218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36220 if (!SWIG_IsOK(res1)) {
36221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36222 }
36223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36225 if (!SWIG_IsOK(res2)) {
36226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36227 }
36228 if (!argp2) {
36229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36230 }
36231 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36232 {
36233 arg3 = wxString_in_helper(obj2);
36234 if (arg3 == NULL) SWIG_fail;
36235 temp3 = true;
36236 }
36237 if (obj3) {
36238 ecode4 = SWIG_AsVal_int(obj3, &val4);
36239 if (!SWIG_IsOK(ecode4)) {
36240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36241 }
36242 arg4 = static_cast< int >(val4);
36243 }
36244 if (obj4) {
36245 ecode5 = SWIG_AsVal_int(obj4, &val5);
36246 if (!SWIG_IsOK(ecode5)) {
36247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36248 }
36249 arg5 = static_cast< int >(val5);
36250 }
36251 if (obj5) {
36252 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36253 if (!SWIG_IsOK(res6)) {
36254 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36255 }
36256 }
36257 {
36258 PyThreadState* __tstate = wxPyBeginAllowThreads();
36259 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36260 wxPyEndAllowThreads(__tstate);
36261 if (PyErr_Occurred()) SWIG_fail;
36262 }
36263 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36264 {
36265 if (temp3)
36266 delete arg3;
36267 }
36268 return resultobj;
36269 fail:
36270 {
36271 if (temp3)
36272 delete arg3;
36273 }
36274 return NULL;
36275 }
36276
36277
36278 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36279 PyObject *resultobj = 0;
36280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36281 wxTreeItemId *arg2 = 0 ;
36282 void *argp1 = 0 ;
36283 int res1 = 0 ;
36284 void *argp2 = 0 ;
36285 int res2 = 0 ;
36286 PyObject * obj0 = 0 ;
36287 PyObject * obj1 = 0 ;
36288 char * kwnames[] = {
36289 (char *) "self",(char *) "item", NULL
36290 };
36291
36292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36294 if (!SWIG_IsOK(res1)) {
36295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36296 }
36297 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36299 if (!SWIG_IsOK(res2)) {
36300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36301 }
36302 if (!argp2) {
36303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36304 }
36305 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36306 {
36307 PyThreadState* __tstate = wxPyBeginAllowThreads();
36308 (arg1)->Delete((wxTreeItemId const &)*arg2);
36309 wxPyEndAllowThreads(__tstate);
36310 if (PyErr_Occurred()) SWIG_fail;
36311 }
36312 resultobj = SWIG_Py_Void();
36313 return resultobj;
36314 fail:
36315 return NULL;
36316 }
36317
36318
36319 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36320 PyObject *resultobj = 0;
36321 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36322 wxTreeItemId *arg2 = 0 ;
36323 void *argp1 = 0 ;
36324 int res1 = 0 ;
36325 void *argp2 = 0 ;
36326 int res2 = 0 ;
36327 PyObject * obj0 = 0 ;
36328 PyObject * obj1 = 0 ;
36329 char * kwnames[] = {
36330 (char *) "self",(char *) "item", NULL
36331 };
36332
36333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36335 if (!SWIG_IsOK(res1)) {
36336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36337 }
36338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36340 if (!SWIG_IsOK(res2)) {
36341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36342 }
36343 if (!argp2) {
36344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36345 }
36346 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36347 {
36348 PyThreadState* __tstate = wxPyBeginAllowThreads();
36349 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36350 wxPyEndAllowThreads(__tstate);
36351 if (PyErr_Occurred()) SWIG_fail;
36352 }
36353 resultobj = SWIG_Py_Void();
36354 return resultobj;
36355 fail:
36356 return NULL;
36357 }
36358
36359
36360 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36361 PyObject *resultobj = 0;
36362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36363 void *argp1 = 0 ;
36364 int res1 = 0 ;
36365 PyObject *swig_obj[1] ;
36366
36367 if (!args) SWIG_fail;
36368 swig_obj[0] = args;
36369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36370 if (!SWIG_IsOK(res1)) {
36371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36372 }
36373 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36374 {
36375 PyThreadState* __tstate = wxPyBeginAllowThreads();
36376 (arg1)->DeleteAllItems();
36377 wxPyEndAllowThreads(__tstate);
36378 if (PyErr_Occurred()) SWIG_fail;
36379 }
36380 resultobj = SWIG_Py_Void();
36381 return resultobj;
36382 fail:
36383 return NULL;
36384 }
36385
36386
36387 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36388 PyObject *resultobj = 0;
36389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36390 wxTreeItemId *arg2 = 0 ;
36391 void *argp1 = 0 ;
36392 int res1 = 0 ;
36393 void *argp2 = 0 ;
36394 int res2 = 0 ;
36395 PyObject * obj0 = 0 ;
36396 PyObject * obj1 = 0 ;
36397 char * kwnames[] = {
36398 (char *) "self",(char *) "item", NULL
36399 };
36400
36401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36403 if (!SWIG_IsOK(res1)) {
36404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36405 }
36406 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36408 if (!SWIG_IsOK(res2)) {
36409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36410 }
36411 if (!argp2) {
36412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36413 }
36414 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36415 {
36416 PyThreadState* __tstate = wxPyBeginAllowThreads();
36417 (arg1)->Expand((wxTreeItemId const &)*arg2);
36418 wxPyEndAllowThreads(__tstate);
36419 if (PyErr_Occurred()) SWIG_fail;
36420 }
36421 resultobj = SWIG_Py_Void();
36422 return resultobj;
36423 fail:
36424 return NULL;
36425 }
36426
36427
36428 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36429 PyObject *resultobj = 0;
36430 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36431 wxTreeItemId *arg2 = 0 ;
36432 void *argp1 = 0 ;
36433 int res1 = 0 ;
36434 void *argp2 = 0 ;
36435 int res2 = 0 ;
36436 PyObject * obj0 = 0 ;
36437 PyObject * obj1 = 0 ;
36438 char * kwnames[] = {
36439 (char *) "self",(char *) "item", NULL
36440 };
36441
36442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36444 if (!SWIG_IsOK(res1)) {
36445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36446 }
36447 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36449 if (!SWIG_IsOK(res2)) {
36450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36451 }
36452 if (!argp2) {
36453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36454 }
36455 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36456 {
36457 PyThreadState* __tstate = wxPyBeginAllowThreads();
36458 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36459 wxPyEndAllowThreads(__tstate);
36460 if (PyErr_Occurred()) SWIG_fail;
36461 }
36462 resultobj = SWIG_Py_Void();
36463 return resultobj;
36464 fail:
36465 return NULL;
36466 }
36467
36468
36469 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36470 PyObject *resultobj = 0;
36471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36472 void *argp1 = 0 ;
36473 int res1 = 0 ;
36474 PyObject *swig_obj[1] ;
36475
36476 if (!args) SWIG_fail;
36477 swig_obj[0] = args;
36478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36479 if (!SWIG_IsOK(res1)) {
36480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36481 }
36482 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36483 {
36484 PyThreadState* __tstate = wxPyBeginAllowThreads();
36485 (arg1)->ExpandAll();
36486 wxPyEndAllowThreads(__tstate);
36487 if (PyErr_Occurred()) SWIG_fail;
36488 }
36489 resultobj = SWIG_Py_Void();
36490 return resultobj;
36491 fail:
36492 return NULL;
36493 }
36494
36495
36496 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36497 PyObject *resultobj = 0;
36498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36499 wxTreeItemId *arg2 = 0 ;
36500 void *argp1 = 0 ;
36501 int res1 = 0 ;
36502 void *argp2 = 0 ;
36503 int res2 = 0 ;
36504 PyObject * obj0 = 0 ;
36505 PyObject * obj1 = 0 ;
36506 char * kwnames[] = {
36507 (char *) "self",(char *) "item", NULL
36508 };
36509
36510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36512 if (!SWIG_IsOK(res1)) {
36513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36514 }
36515 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36517 if (!SWIG_IsOK(res2)) {
36518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36519 }
36520 if (!argp2) {
36521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36522 }
36523 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36524 {
36525 PyThreadState* __tstate = wxPyBeginAllowThreads();
36526 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36527 wxPyEndAllowThreads(__tstate);
36528 if (PyErr_Occurred()) SWIG_fail;
36529 }
36530 resultobj = SWIG_Py_Void();
36531 return resultobj;
36532 fail:
36533 return NULL;
36534 }
36535
36536
36537 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36538 PyObject *resultobj = 0;
36539 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36540 wxTreeItemId *arg2 = 0 ;
36541 void *argp1 = 0 ;
36542 int res1 = 0 ;
36543 void *argp2 = 0 ;
36544 int res2 = 0 ;
36545 PyObject * obj0 = 0 ;
36546 PyObject * obj1 = 0 ;
36547 char * kwnames[] = {
36548 (char *) "self",(char *) "item", NULL
36549 };
36550
36551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36553 if (!SWIG_IsOK(res1)) {
36554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36555 }
36556 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36558 if (!SWIG_IsOK(res2)) {
36559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36560 }
36561 if (!argp2) {
36562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36563 }
36564 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36565 {
36566 PyThreadState* __tstate = wxPyBeginAllowThreads();
36567 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36568 wxPyEndAllowThreads(__tstate);
36569 if (PyErr_Occurred()) SWIG_fail;
36570 }
36571 resultobj = SWIG_Py_Void();
36572 return resultobj;
36573 fail:
36574 return NULL;
36575 }
36576
36577
36578 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36579 PyObject *resultobj = 0;
36580 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36581 wxTreeItemId *arg2 = 0 ;
36582 void *argp1 = 0 ;
36583 int res1 = 0 ;
36584 void *argp2 = 0 ;
36585 int res2 = 0 ;
36586 PyObject * obj0 = 0 ;
36587 PyObject * obj1 = 0 ;
36588 char * kwnames[] = {
36589 (char *) "self",(char *) "item", NULL
36590 };
36591
36592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36594 if (!SWIG_IsOK(res1)) {
36595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36596 }
36597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36599 if (!SWIG_IsOK(res2)) {
36600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36601 }
36602 if (!argp2) {
36603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36604 }
36605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36606 {
36607 PyThreadState* __tstate = wxPyBeginAllowThreads();
36608 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36609 wxPyEndAllowThreads(__tstate);
36610 if (PyErr_Occurred()) SWIG_fail;
36611 }
36612 resultobj = SWIG_Py_Void();
36613 return resultobj;
36614 fail:
36615 return NULL;
36616 }
36617
36618
36619 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36620 PyObject *resultobj = 0;
36621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36622 void *argp1 = 0 ;
36623 int res1 = 0 ;
36624 PyObject *swig_obj[1] ;
36625
36626 if (!args) SWIG_fail;
36627 swig_obj[0] = args;
36628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36629 if (!SWIG_IsOK(res1)) {
36630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36631 }
36632 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36633 {
36634 PyThreadState* __tstate = wxPyBeginAllowThreads();
36635 (arg1)->Unselect();
36636 wxPyEndAllowThreads(__tstate);
36637 if (PyErr_Occurred()) SWIG_fail;
36638 }
36639 resultobj = SWIG_Py_Void();
36640 return resultobj;
36641 fail:
36642 return NULL;
36643 }
36644
36645
36646 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36647 PyObject *resultobj = 0;
36648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36649 wxTreeItemId *arg2 = 0 ;
36650 void *argp1 = 0 ;
36651 int res1 = 0 ;
36652 void *argp2 = 0 ;
36653 int res2 = 0 ;
36654 PyObject * obj0 = 0 ;
36655 PyObject * obj1 = 0 ;
36656 char * kwnames[] = {
36657 (char *) "self",(char *) "item", NULL
36658 };
36659
36660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36662 if (!SWIG_IsOK(res1)) {
36663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36664 }
36665 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36667 if (!SWIG_IsOK(res2)) {
36668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36669 }
36670 if (!argp2) {
36671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36672 }
36673 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36674 {
36675 PyThreadState* __tstate = wxPyBeginAllowThreads();
36676 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36677 wxPyEndAllowThreads(__tstate);
36678 if (PyErr_Occurred()) SWIG_fail;
36679 }
36680 resultobj = SWIG_Py_Void();
36681 return resultobj;
36682 fail:
36683 return NULL;
36684 }
36685
36686
36687 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36688 PyObject *resultobj = 0;
36689 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36690 void *argp1 = 0 ;
36691 int res1 = 0 ;
36692 PyObject *swig_obj[1] ;
36693
36694 if (!args) SWIG_fail;
36695 swig_obj[0] = args;
36696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36697 if (!SWIG_IsOK(res1)) {
36698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36699 }
36700 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36701 {
36702 PyThreadState* __tstate = wxPyBeginAllowThreads();
36703 (arg1)->UnselectAll();
36704 wxPyEndAllowThreads(__tstate);
36705 if (PyErr_Occurred()) SWIG_fail;
36706 }
36707 resultobj = SWIG_Py_Void();
36708 return resultobj;
36709 fail:
36710 return NULL;
36711 }
36712
36713
36714 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36715 PyObject *resultobj = 0;
36716 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36717 wxTreeItemId *arg2 = 0 ;
36718 bool arg3 = (bool) true ;
36719 void *argp1 = 0 ;
36720 int res1 = 0 ;
36721 void *argp2 = 0 ;
36722 int res2 = 0 ;
36723 bool val3 ;
36724 int ecode3 = 0 ;
36725 PyObject * obj0 = 0 ;
36726 PyObject * obj1 = 0 ;
36727 PyObject * obj2 = 0 ;
36728 char * kwnames[] = {
36729 (char *) "self",(char *) "item",(char *) "select", NULL
36730 };
36731
36732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36734 if (!SWIG_IsOK(res1)) {
36735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36736 }
36737 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36739 if (!SWIG_IsOK(res2)) {
36740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36741 }
36742 if (!argp2) {
36743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36744 }
36745 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36746 if (obj2) {
36747 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36748 if (!SWIG_IsOK(ecode3)) {
36749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36750 }
36751 arg3 = static_cast< bool >(val3);
36752 }
36753 {
36754 PyThreadState* __tstate = wxPyBeginAllowThreads();
36755 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36756 wxPyEndAllowThreads(__tstate);
36757 if (PyErr_Occurred()) SWIG_fail;
36758 }
36759 resultobj = SWIG_Py_Void();
36760 return resultobj;
36761 fail:
36762 return NULL;
36763 }
36764
36765
36766 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36767 PyObject *resultobj = 0;
36768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36769 wxTreeItemId *arg2 = 0 ;
36770 void *argp1 = 0 ;
36771 int res1 = 0 ;
36772 void *argp2 = 0 ;
36773 int res2 = 0 ;
36774 PyObject * obj0 = 0 ;
36775 PyObject * obj1 = 0 ;
36776 char * kwnames[] = {
36777 (char *) "self",(char *) "item", NULL
36778 };
36779
36780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36782 if (!SWIG_IsOK(res1)) {
36783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36784 }
36785 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36787 if (!SWIG_IsOK(res2)) {
36788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36789 }
36790 if (!argp2) {
36791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36792 }
36793 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36794 {
36795 PyThreadState* __tstate = wxPyBeginAllowThreads();
36796 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36797 wxPyEndAllowThreads(__tstate);
36798 if (PyErr_Occurred()) SWIG_fail;
36799 }
36800 resultobj = SWIG_Py_Void();
36801 return resultobj;
36802 fail:
36803 return NULL;
36804 }
36805
36806
36807 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36808 PyObject *resultobj = 0;
36809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36810 wxTreeItemId *arg2 = 0 ;
36811 void *argp1 = 0 ;
36812 int res1 = 0 ;
36813 void *argp2 = 0 ;
36814 int res2 = 0 ;
36815 PyObject * obj0 = 0 ;
36816 PyObject * obj1 = 0 ;
36817 char * kwnames[] = {
36818 (char *) "self",(char *) "item", NULL
36819 };
36820
36821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36823 if (!SWIG_IsOK(res1)) {
36824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36825 }
36826 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36828 if (!SWIG_IsOK(res2)) {
36829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36830 }
36831 if (!argp2) {
36832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36833 }
36834 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36835 {
36836 PyThreadState* __tstate = wxPyBeginAllowThreads();
36837 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36838 wxPyEndAllowThreads(__tstate);
36839 if (PyErr_Occurred()) SWIG_fail;
36840 }
36841 resultobj = SWIG_Py_Void();
36842 return resultobj;
36843 fail:
36844 return NULL;
36845 }
36846
36847
36848 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36849 PyObject *resultobj = 0;
36850 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36851 wxTreeItemId *arg2 = 0 ;
36852 void *argp1 = 0 ;
36853 int res1 = 0 ;
36854 void *argp2 = 0 ;
36855 int res2 = 0 ;
36856 PyObject * obj0 = 0 ;
36857 PyObject * obj1 = 0 ;
36858 char * kwnames[] = {
36859 (char *) "self",(char *) "item", NULL
36860 };
36861
36862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36864 if (!SWIG_IsOK(res1)) {
36865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36866 }
36867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36869 if (!SWIG_IsOK(res2)) {
36870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36871 }
36872 if (!argp2) {
36873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36874 }
36875 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36876 {
36877 PyThreadState* __tstate = wxPyBeginAllowThreads();
36878 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36879 wxPyEndAllowThreads(__tstate);
36880 if (PyErr_Occurred()) SWIG_fail;
36881 }
36882 resultobj = SWIG_Py_Void();
36883 return resultobj;
36884 fail:
36885 return NULL;
36886 }
36887
36888
36889 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36890 PyObject *resultobj = 0;
36891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36892 wxTreeItemId *arg2 = 0 ;
36893 void *argp1 = 0 ;
36894 int res1 = 0 ;
36895 void *argp2 = 0 ;
36896 int res2 = 0 ;
36897 PyObject * obj0 = 0 ;
36898 PyObject * obj1 = 0 ;
36899 char * kwnames[] = {
36900 (char *) "self",(char *) "item", NULL
36901 };
36902
36903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36905 if (!SWIG_IsOK(res1)) {
36906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36907 }
36908 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36910 if (!SWIG_IsOK(res2)) {
36911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36912 }
36913 if (!argp2) {
36914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36915 }
36916 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36917 {
36918 PyThreadState* __tstate = wxPyBeginAllowThreads();
36919 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36920 wxPyEndAllowThreads(__tstate);
36921 if (PyErr_Occurred()) SWIG_fail;
36922 }
36923 resultobj = SWIG_Py_Void();
36924 return resultobj;
36925 fail:
36926 return NULL;
36927 }
36928
36929
36930 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36931 PyObject *resultobj = 0;
36932 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36933 wxTextCtrl *result = 0 ;
36934 void *argp1 = 0 ;
36935 int res1 = 0 ;
36936 PyObject *swig_obj[1] ;
36937
36938 if (!args) SWIG_fail;
36939 swig_obj[0] = args;
36940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36941 if (!SWIG_IsOK(res1)) {
36942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36943 }
36944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36945 {
36946 PyThreadState* __tstate = wxPyBeginAllowThreads();
36947 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36948 wxPyEndAllowThreads(__tstate);
36949 if (PyErr_Occurred()) SWIG_fail;
36950 }
36951 {
36952 resultobj = wxPyMake_wxObject(result, 0);
36953 }
36954 return resultobj;
36955 fail:
36956 return NULL;
36957 }
36958
36959
36960 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36961 PyObject *resultobj = 0;
36962 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36963 wxTreeItemId *arg2 = 0 ;
36964 bool arg3 = (bool) false ;
36965 void *argp1 = 0 ;
36966 int res1 = 0 ;
36967 void *argp2 = 0 ;
36968 int res2 = 0 ;
36969 bool val3 ;
36970 int ecode3 = 0 ;
36971 PyObject * obj0 = 0 ;
36972 PyObject * obj1 = 0 ;
36973 PyObject * obj2 = 0 ;
36974 char * kwnames[] = {
36975 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36976 };
36977
36978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36980 if (!SWIG_IsOK(res1)) {
36981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36982 }
36983 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36985 if (!SWIG_IsOK(res2)) {
36986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36987 }
36988 if (!argp2) {
36989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36990 }
36991 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36992 if (obj2) {
36993 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36994 if (!SWIG_IsOK(ecode3)) {
36995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36996 }
36997 arg3 = static_cast< bool >(val3);
36998 }
36999 {
37000 PyThreadState* __tstate = wxPyBeginAllowThreads();
37001 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37002 wxPyEndAllowThreads(__tstate);
37003 if (PyErr_Occurred()) SWIG_fail;
37004 }
37005 resultobj = SWIG_Py_Void();
37006 return resultobj;
37007 fail:
37008 return NULL;
37009 }
37010
37011
37012 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37013 PyObject *resultobj = 0;
37014 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37015 wxTreeItemId *arg2 = 0 ;
37016 void *argp1 = 0 ;
37017 int res1 = 0 ;
37018 void *argp2 = 0 ;
37019 int res2 = 0 ;
37020 PyObject * obj0 = 0 ;
37021 PyObject * obj1 = 0 ;
37022 char * kwnames[] = {
37023 (char *) "self",(char *) "item", NULL
37024 };
37025
37026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37028 if (!SWIG_IsOK(res1)) {
37029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37030 }
37031 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37033 if (!SWIG_IsOK(res2)) {
37034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37035 }
37036 if (!argp2) {
37037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37038 }
37039 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37040 {
37041 PyThreadState* __tstate = wxPyBeginAllowThreads();
37042 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37043 wxPyEndAllowThreads(__tstate);
37044 if (PyErr_Occurred()) SWIG_fail;
37045 }
37046 resultobj = SWIG_Py_Void();
37047 return resultobj;
37048 fail:
37049 return NULL;
37050 }
37051
37052
37053 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37054 PyObject *resultobj = 0;
37055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37056 wxPoint *arg2 = 0 ;
37057 int *arg3 = 0 ;
37058 wxTreeItemId result;
37059 void *argp1 = 0 ;
37060 int res1 = 0 ;
37061 wxPoint temp2 ;
37062 int temp3 ;
37063 int res3 = SWIG_TMPOBJ ;
37064 PyObject * obj0 = 0 ;
37065 PyObject * obj1 = 0 ;
37066 char * kwnames[] = {
37067 (char *) "self",(char *) "point", NULL
37068 };
37069
37070 arg3 = &temp3;
37071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37073 if (!SWIG_IsOK(res1)) {
37074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37075 }
37076 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37077 {
37078 arg2 = &temp2;
37079 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37080 }
37081 {
37082 PyThreadState* __tstate = wxPyBeginAllowThreads();
37083 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37084 wxPyEndAllowThreads(__tstate);
37085 if (PyErr_Occurred()) SWIG_fail;
37086 }
37087 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37088 if (SWIG_IsTmpObj(res3)) {
37089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37090 } else {
37091 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37093 }
37094 return resultobj;
37095 fail:
37096 return NULL;
37097 }
37098
37099
37100 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37101 PyObject *resultobj = 0;
37102 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37103 wxTreeItemId *arg2 = 0 ;
37104 bool arg3 = (bool) false ;
37105 PyObject *result = 0 ;
37106 void *argp1 = 0 ;
37107 int res1 = 0 ;
37108 void *argp2 = 0 ;
37109 int res2 = 0 ;
37110 bool val3 ;
37111 int ecode3 = 0 ;
37112 PyObject * obj0 = 0 ;
37113 PyObject * obj1 = 0 ;
37114 PyObject * obj2 = 0 ;
37115 char * kwnames[] = {
37116 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37117 };
37118
37119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37121 if (!SWIG_IsOK(res1)) {
37122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37123 }
37124 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37126 if (!SWIG_IsOK(res2)) {
37127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37128 }
37129 if (!argp2) {
37130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37131 }
37132 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37133 if (obj2) {
37134 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37135 if (!SWIG_IsOK(ecode3)) {
37136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37137 }
37138 arg3 = static_cast< bool >(val3);
37139 }
37140 {
37141 PyThreadState* __tstate = wxPyBeginAllowThreads();
37142 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37143 wxPyEndAllowThreads(__tstate);
37144 if (PyErr_Occurred()) SWIG_fail;
37145 }
37146 resultobj = result;
37147 return resultobj;
37148 fail:
37149 return NULL;
37150 }
37151
37152
37153 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37154 PyObject *resultobj = 0;
37155 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37156 wxTreeItemId *arg2 = 0 ;
37157 int arg3 ;
37158 void *argp1 = 0 ;
37159 int res1 = 0 ;
37160 void *argp2 = 0 ;
37161 int res2 = 0 ;
37162 int val3 ;
37163 int ecode3 = 0 ;
37164 PyObject * obj0 = 0 ;
37165 PyObject * obj1 = 0 ;
37166 PyObject * obj2 = 0 ;
37167 char * kwnames[] = {
37168 (char *) "self",(char *) "node",(char *) "state", NULL
37169 };
37170
37171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37173 if (!SWIG_IsOK(res1)) {
37174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37175 }
37176 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37178 if (!SWIG_IsOK(res2)) {
37179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37180 }
37181 if (!argp2) {
37182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37183 }
37184 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37185 ecode3 = SWIG_AsVal_int(obj2, &val3);
37186 if (!SWIG_IsOK(ecode3)) {
37187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37188 }
37189 arg3 = static_cast< int >(val3);
37190 {
37191 PyThreadState* __tstate = wxPyBeginAllowThreads();
37192 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37193 wxPyEndAllowThreads(__tstate);
37194 if (PyErr_Occurred()) SWIG_fail;
37195 }
37196 resultobj = SWIG_Py_Void();
37197 return resultobj;
37198 fail:
37199 return NULL;
37200 }
37201
37202
37203 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37204 PyObject *resultobj = 0;
37205 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37206 wxTreeItemId *arg2 = 0 ;
37207 int result;
37208 void *argp1 = 0 ;
37209 int res1 = 0 ;
37210 void *argp2 = 0 ;
37211 int res2 = 0 ;
37212 PyObject * obj0 = 0 ;
37213 PyObject * obj1 = 0 ;
37214 char * kwnames[] = {
37215 (char *) "self",(char *) "node", NULL
37216 };
37217
37218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37220 if (!SWIG_IsOK(res1)) {
37221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37222 }
37223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37225 if (!SWIG_IsOK(res2)) {
37226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37227 }
37228 if (!argp2) {
37229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37230 }
37231 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37232 {
37233 PyThreadState* __tstate = wxPyBeginAllowThreads();
37234 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37235 wxPyEndAllowThreads(__tstate);
37236 if (PyErr_Occurred()) SWIG_fail;
37237 }
37238 resultobj = SWIG_From_int(static_cast< int >(result));
37239 return resultobj;
37240 fail:
37241 return NULL;
37242 }
37243
37244
37245 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37246 PyObject *resultobj = 0;
37247 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37248 SwigValueWrapper<wxVisualAttributes > result;
37249 int val1 ;
37250 int ecode1 = 0 ;
37251 PyObject * obj0 = 0 ;
37252 char * kwnames[] = {
37253 (char *) "variant", NULL
37254 };
37255
37256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37257 if (obj0) {
37258 ecode1 = SWIG_AsVal_int(obj0, &val1);
37259 if (!SWIG_IsOK(ecode1)) {
37260 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37261 }
37262 arg1 = static_cast< wxWindowVariant >(val1);
37263 }
37264 {
37265 if (!wxPyCheckForApp()) SWIG_fail;
37266 PyThreadState* __tstate = wxPyBeginAllowThreads();
37267 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37268 wxPyEndAllowThreads(__tstate);
37269 if (PyErr_Occurred()) SWIG_fail;
37270 }
37271 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37272 return resultobj;
37273 fail:
37274 return NULL;
37275 }
37276
37277
37278 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37279 PyObject *resultobj = 0;
37280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37281 bool arg2 ;
37282 void *argp1 = 0 ;
37283 int res1 = 0 ;
37284 bool val2 ;
37285 int ecode2 = 0 ;
37286 PyObject * obj0 = 0 ;
37287 PyObject * obj1 = 0 ;
37288 char * kwnames[] = {
37289 (char *) "self",(char *) "q", NULL
37290 };
37291
37292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37294 if (!SWIG_IsOK(res1)) {
37295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37296 }
37297 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37298 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37299 if (!SWIG_IsOK(ecode2)) {
37300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37301 }
37302 arg2 = static_cast< bool >(val2);
37303 {
37304 PyThreadState* __tstate = wxPyBeginAllowThreads();
37305 (arg1)->SetQuickBestSize(arg2);
37306 wxPyEndAllowThreads(__tstate);
37307 if (PyErr_Occurred()) SWIG_fail;
37308 }
37309 resultobj = SWIG_Py_Void();
37310 return resultobj;
37311 fail:
37312 return NULL;
37313 }
37314
37315
37316 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37317 PyObject *resultobj = 0;
37318 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37319 bool result;
37320 void *argp1 = 0 ;
37321 int res1 = 0 ;
37322 PyObject *swig_obj[1] ;
37323
37324 if (!args) SWIG_fail;
37325 swig_obj[0] = args;
37326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37327 if (!SWIG_IsOK(res1)) {
37328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37329 }
37330 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37331 {
37332 PyThreadState* __tstate = wxPyBeginAllowThreads();
37333 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37334 wxPyEndAllowThreads(__tstate);
37335 if (PyErr_Occurred()) SWIG_fail;
37336 }
37337 {
37338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37339 }
37340 return resultobj;
37341 fail:
37342 return NULL;
37343 }
37344
37345
37346 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37347 PyObject *obj;
37348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37349 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37350 return SWIG_Py_Void();
37351 }
37352
37353 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37354 return SWIG_Python_InitShadowInstance(args);
37355 }
37356
37357 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37358 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37359 return 1;
37360 }
37361
37362
37363 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37364 PyObject *pyobj = 0;
37365
37366 {
37367 #if wxUSE_UNICODE
37368 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37369 #else
37370 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37371 #endif
37372 }
37373 return pyobj;
37374 }
37375
37376
37377 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37378 PyObject *resultobj = 0;
37379 wxWindow *arg1 = (wxWindow *) 0 ;
37380 int arg2 = (int) (int)-1 ;
37381 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37382 wxString *arg3 = (wxString *) &arg3_defvalue ;
37383 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37384 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37385 wxSize const &arg5_defvalue = wxDefaultSize ;
37386 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37387 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37388 wxString const &arg7_defvalue = wxPyEmptyString ;
37389 wxString *arg7 = (wxString *) &arg7_defvalue ;
37390 int arg8 = (int) 0 ;
37391 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37392 wxString *arg9 = (wxString *) &arg9_defvalue ;
37393 wxGenericDirCtrl *result = 0 ;
37394 void *argp1 = 0 ;
37395 int res1 = 0 ;
37396 int val2 ;
37397 int ecode2 = 0 ;
37398 bool temp3 = false ;
37399 wxPoint temp4 ;
37400 wxSize temp5 ;
37401 long val6 ;
37402 int ecode6 = 0 ;
37403 bool temp7 = false ;
37404 int val8 ;
37405 int ecode8 = 0 ;
37406 bool temp9 = false ;
37407 PyObject * obj0 = 0 ;
37408 PyObject * obj1 = 0 ;
37409 PyObject * obj2 = 0 ;
37410 PyObject * obj3 = 0 ;
37411 PyObject * obj4 = 0 ;
37412 PyObject * obj5 = 0 ;
37413 PyObject * obj6 = 0 ;
37414 PyObject * obj7 = 0 ;
37415 PyObject * obj8 = 0 ;
37416 char * kwnames[] = {
37417 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37418 };
37419
37420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37422 if (!SWIG_IsOK(res1)) {
37423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37424 }
37425 arg1 = reinterpret_cast< wxWindow * >(argp1);
37426 if (obj1) {
37427 ecode2 = SWIG_AsVal_int(obj1, &val2);
37428 if (!SWIG_IsOK(ecode2)) {
37429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37430 }
37431 arg2 = static_cast< int >(val2);
37432 }
37433 if (obj2) {
37434 {
37435 arg3 = wxString_in_helper(obj2);
37436 if (arg3 == NULL) SWIG_fail;
37437 temp3 = true;
37438 }
37439 }
37440 if (obj3) {
37441 {
37442 arg4 = &temp4;
37443 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37444 }
37445 }
37446 if (obj4) {
37447 {
37448 arg5 = &temp5;
37449 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37450 }
37451 }
37452 if (obj5) {
37453 ecode6 = SWIG_AsVal_long(obj5, &val6);
37454 if (!SWIG_IsOK(ecode6)) {
37455 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37456 }
37457 arg6 = static_cast< long >(val6);
37458 }
37459 if (obj6) {
37460 {
37461 arg7 = wxString_in_helper(obj6);
37462 if (arg7 == NULL) SWIG_fail;
37463 temp7 = true;
37464 }
37465 }
37466 if (obj7) {
37467 ecode8 = SWIG_AsVal_int(obj7, &val8);
37468 if (!SWIG_IsOK(ecode8)) {
37469 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37470 }
37471 arg8 = static_cast< int >(val8);
37472 }
37473 if (obj8) {
37474 {
37475 arg9 = wxString_in_helper(obj8);
37476 if (arg9 == NULL) SWIG_fail;
37477 temp9 = true;
37478 }
37479 }
37480 {
37481 if (!wxPyCheckForApp()) SWIG_fail;
37482 PyThreadState* __tstate = wxPyBeginAllowThreads();
37483 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37484 wxPyEndAllowThreads(__tstate);
37485 if (PyErr_Occurred()) SWIG_fail;
37486 }
37487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37488 {
37489 if (temp3)
37490 delete arg3;
37491 }
37492 {
37493 if (temp7)
37494 delete arg7;
37495 }
37496 {
37497 if (temp9)
37498 delete arg9;
37499 }
37500 return resultobj;
37501 fail:
37502 {
37503 if (temp3)
37504 delete arg3;
37505 }
37506 {
37507 if (temp7)
37508 delete arg7;
37509 }
37510 {
37511 if (temp9)
37512 delete arg9;
37513 }
37514 return NULL;
37515 }
37516
37517
37518 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37519 PyObject *resultobj = 0;
37520 wxGenericDirCtrl *result = 0 ;
37521
37522 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37523 {
37524 if (!wxPyCheckForApp()) SWIG_fail;
37525 PyThreadState* __tstate = wxPyBeginAllowThreads();
37526 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37527 wxPyEndAllowThreads(__tstate);
37528 if (PyErr_Occurred()) SWIG_fail;
37529 }
37530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37531 return resultobj;
37532 fail:
37533 return NULL;
37534 }
37535
37536
37537 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37538 PyObject *resultobj = 0;
37539 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37540 wxWindow *arg2 = (wxWindow *) 0 ;
37541 int arg3 = (int) (int)-1 ;
37542 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37543 wxString *arg4 = (wxString *) &arg4_defvalue ;
37544 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37545 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37546 wxSize const &arg6_defvalue = wxDefaultSize ;
37547 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37548 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37549 wxString const &arg8_defvalue = wxPyEmptyString ;
37550 wxString *arg8 = (wxString *) &arg8_defvalue ;
37551 int arg9 = (int) 0 ;
37552 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37553 wxString *arg10 = (wxString *) &arg10_defvalue ;
37554 bool result;
37555 void *argp1 = 0 ;
37556 int res1 = 0 ;
37557 void *argp2 = 0 ;
37558 int res2 = 0 ;
37559 int val3 ;
37560 int ecode3 = 0 ;
37561 bool temp4 = false ;
37562 wxPoint temp5 ;
37563 wxSize temp6 ;
37564 long val7 ;
37565 int ecode7 = 0 ;
37566 bool temp8 = false ;
37567 int val9 ;
37568 int ecode9 = 0 ;
37569 bool temp10 = false ;
37570 PyObject * obj0 = 0 ;
37571 PyObject * obj1 = 0 ;
37572 PyObject * obj2 = 0 ;
37573 PyObject * obj3 = 0 ;
37574 PyObject * obj4 = 0 ;
37575 PyObject * obj5 = 0 ;
37576 PyObject * obj6 = 0 ;
37577 PyObject * obj7 = 0 ;
37578 PyObject * obj8 = 0 ;
37579 PyObject * obj9 = 0 ;
37580 char * kwnames[] = {
37581 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37582 };
37583
37584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37586 if (!SWIG_IsOK(res1)) {
37587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37588 }
37589 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37591 if (!SWIG_IsOK(res2)) {
37592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37593 }
37594 arg2 = reinterpret_cast< wxWindow * >(argp2);
37595 if (obj2) {
37596 ecode3 = SWIG_AsVal_int(obj2, &val3);
37597 if (!SWIG_IsOK(ecode3)) {
37598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37599 }
37600 arg3 = static_cast< int >(val3);
37601 }
37602 if (obj3) {
37603 {
37604 arg4 = wxString_in_helper(obj3);
37605 if (arg4 == NULL) SWIG_fail;
37606 temp4 = true;
37607 }
37608 }
37609 if (obj4) {
37610 {
37611 arg5 = &temp5;
37612 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37613 }
37614 }
37615 if (obj5) {
37616 {
37617 arg6 = &temp6;
37618 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37619 }
37620 }
37621 if (obj6) {
37622 ecode7 = SWIG_AsVal_long(obj6, &val7);
37623 if (!SWIG_IsOK(ecode7)) {
37624 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37625 }
37626 arg7 = static_cast< long >(val7);
37627 }
37628 if (obj7) {
37629 {
37630 arg8 = wxString_in_helper(obj7);
37631 if (arg8 == NULL) SWIG_fail;
37632 temp8 = true;
37633 }
37634 }
37635 if (obj8) {
37636 ecode9 = SWIG_AsVal_int(obj8, &val9);
37637 if (!SWIG_IsOK(ecode9)) {
37638 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37639 }
37640 arg9 = static_cast< int >(val9);
37641 }
37642 if (obj9) {
37643 {
37644 arg10 = wxString_in_helper(obj9);
37645 if (arg10 == NULL) SWIG_fail;
37646 temp10 = true;
37647 }
37648 }
37649 {
37650 PyThreadState* __tstate = wxPyBeginAllowThreads();
37651 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37652 wxPyEndAllowThreads(__tstate);
37653 if (PyErr_Occurred()) SWIG_fail;
37654 }
37655 {
37656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37657 }
37658 {
37659 if (temp4)
37660 delete arg4;
37661 }
37662 {
37663 if (temp8)
37664 delete arg8;
37665 }
37666 {
37667 if (temp10)
37668 delete arg10;
37669 }
37670 return resultobj;
37671 fail:
37672 {
37673 if (temp4)
37674 delete arg4;
37675 }
37676 {
37677 if (temp8)
37678 delete arg8;
37679 }
37680 {
37681 if (temp10)
37682 delete arg10;
37683 }
37684 return NULL;
37685 }
37686
37687
37688 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37689 PyObject *resultobj = 0;
37690 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37691 wxString *arg2 = 0 ;
37692 bool result;
37693 void *argp1 = 0 ;
37694 int res1 = 0 ;
37695 bool temp2 = false ;
37696 PyObject * obj0 = 0 ;
37697 PyObject * obj1 = 0 ;
37698 char * kwnames[] = {
37699 (char *) "self",(char *) "path", NULL
37700 };
37701
37702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37704 if (!SWIG_IsOK(res1)) {
37705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37706 }
37707 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37708 {
37709 arg2 = wxString_in_helper(obj1);
37710 if (arg2 == NULL) SWIG_fail;
37711 temp2 = true;
37712 }
37713 {
37714 PyThreadState* __tstate = wxPyBeginAllowThreads();
37715 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37716 wxPyEndAllowThreads(__tstate);
37717 if (PyErr_Occurred()) SWIG_fail;
37718 }
37719 {
37720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37721 }
37722 {
37723 if (temp2)
37724 delete arg2;
37725 }
37726 return resultobj;
37727 fail:
37728 {
37729 if (temp2)
37730 delete arg2;
37731 }
37732 return NULL;
37733 }
37734
37735
37736 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37737 PyObject *resultobj = 0;
37738 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37739 wxString *arg2 = 0 ;
37740 bool result;
37741 void *argp1 = 0 ;
37742 int res1 = 0 ;
37743 bool temp2 = false ;
37744 PyObject * obj0 = 0 ;
37745 PyObject * obj1 = 0 ;
37746 char * kwnames[] = {
37747 (char *) "self",(char *) "path", NULL
37748 };
37749
37750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37752 if (!SWIG_IsOK(res1)) {
37753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37754 }
37755 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37756 {
37757 arg2 = wxString_in_helper(obj1);
37758 if (arg2 == NULL) SWIG_fail;
37759 temp2 = true;
37760 }
37761 {
37762 PyThreadState* __tstate = wxPyBeginAllowThreads();
37763 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37764 wxPyEndAllowThreads(__tstate);
37765 if (PyErr_Occurred()) SWIG_fail;
37766 }
37767 {
37768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37769 }
37770 {
37771 if (temp2)
37772 delete arg2;
37773 }
37774 return resultobj;
37775 fail:
37776 {
37777 if (temp2)
37778 delete arg2;
37779 }
37780 return NULL;
37781 }
37782
37783
37784 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37785 PyObject *resultobj = 0;
37786 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37787 wxString result;
37788 void *argp1 = 0 ;
37789 int res1 = 0 ;
37790 PyObject *swig_obj[1] ;
37791
37792 if (!args) SWIG_fail;
37793 swig_obj[0] = args;
37794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37795 if (!SWIG_IsOK(res1)) {
37796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37797 }
37798 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37799 {
37800 PyThreadState* __tstate = wxPyBeginAllowThreads();
37801 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37802 wxPyEndAllowThreads(__tstate);
37803 if (PyErr_Occurred()) SWIG_fail;
37804 }
37805 {
37806 #if wxUSE_UNICODE
37807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37808 #else
37809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37810 #endif
37811 }
37812 return resultobj;
37813 fail:
37814 return NULL;
37815 }
37816
37817
37818 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37819 PyObject *resultobj = 0;
37820 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37821 wxString *arg2 = 0 ;
37822 void *argp1 = 0 ;
37823 int res1 = 0 ;
37824 bool temp2 = false ;
37825 PyObject * obj0 = 0 ;
37826 PyObject * obj1 = 0 ;
37827 char * kwnames[] = {
37828 (char *) "self",(char *) "path", NULL
37829 };
37830
37831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37833 if (!SWIG_IsOK(res1)) {
37834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37835 }
37836 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37837 {
37838 arg2 = wxString_in_helper(obj1);
37839 if (arg2 == NULL) SWIG_fail;
37840 temp2 = true;
37841 }
37842 {
37843 PyThreadState* __tstate = wxPyBeginAllowThreads();
37844 (arg1)->SetDefaultPath((wxString const &)*arg2);
37845 wxPyEndAllowThreads(__tstate);
37846 if (PyErr_Occurred()) SWIG_fail;
37847 }
37848 resultobj = SWIG_Py_Void();
37849 {
37850 if (temp2)
37851 delete arg2;
37852 }
37853 return resultobj;
37854 fail:
37855 {
37856 if (temp2)
37857 delete arg2;
37858 }
37859 return NULL;
37860 }
37861
37862
37863 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37864 PyObject *resultobj = 0;
37865 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37866 wxString result;
37867 void *argp1 = 0 ;
37868 int res1 = 0 ;
37869 PyObject *swig_obj[1] ;
37870
37871 if (!args) SWIG_fail;
37872 swig_obj[0] = args;
37873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37874 if (!SWIG_IsOK(res1)) {
37875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37876 }
37877 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37878 {
37879 PyThreadState* __tstate = wxPyBeginAllowThreads();
37880 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37881 wxPyEndAllowThreads(__tstate);
37882 if (PyErr_Occurred()) SWIG_fail;
37883 }
37884 {
37885 #if wxUSE_UNICODE
37886 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37887 #else
37888 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37889 #endif
37890 }
37891 return resultobj;
37892 fail:
37893 return NULL;
37894 }
37895
37896
37897 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37898 PyObject *resultobj = 0;
37899 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37900 wxString result;
37901 void *argp1 = 0 ;
37902 int res1 = 0 ;
37903 PyObject *swig_obj[1] ;
37904
37905 if (!args) SWIG_fail;
37906 swig_obj[0] = args;
37907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37908 if (!SWIG_IsOK(res1)) {
37909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37910 }
37911 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37912 {
37913 PyThreadState* __tstate = wxPyBeginAllowThreads();
37914 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37915 wxPyEndAllowThreads(__tstate);
37916 if (PyErr_Occurred()) SWIG_fail;
37917 }
37918 {
37919 #if wxUSE_UNICODE
37920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37921 #else
37922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37923 #endif
37924 }
37925 return resultobj;
37926 fail:
37927 return NULL;
37928 }
37929
37930
37931 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37932 PyObject *resultobj = 0;
37933 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37934 wxString *arg2 = 0 ;
37935 void *argp1 = 0 ;
37936 int res1 = 0 ;
37937 bool temp2 = false ;
37938 PyObject * obj0 = 0 ;
37939 PyObject * obj1 = 0 ;
37940 char * kwnames[] = {
37941 (char *) "self",(char *) "path", NULL
37942 };
37943
37944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37946 if (!SWIG_IsOK(res1)) {
37947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37948 }
37949 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37950 {
37951 arg2 = wxString_in_helper(obj1);
37952 if (arg2 == NULL) SWIG_fail;
37953 temp2 = true;
37954 }
37955 {
37956 PyThreadState* __tstate = wxPyBeginAllowThreads();
37957 (arg1)->SetPath((wxString const &)*arg2);
37958 wxPyEndAllowThreads(__tstate);
37959 if (PyErr_Occurred()) SWIG_fail;
37960 }
37961 resultobj = SWIG_Py_Void();
37962 {
37963 if (temp2)
37964 delete arg2;
37965 }
37966 return resultobj;
37967 fail:
37968 {
37969 if (temp2)
37970 delete arg2;
37971 }
37972 return NULL;
37973 }
37974
37975
37976 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37977 PyObject *resultobj = 0;
37978 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37979 bool arg2 ;
37980 void *argp1 = 0 ;
37981 int res1 = 0 ;
37982 bool val2 ;
37983 int ecode2 = 0 ;
37984 PyObject * obj0 = 0 ;
37985 PyObject * obj1 = 0 ;
37986 char * kwnames[] = {
37987 (char *) "self",(char *) "show", NULL
37988 };
37989
37990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37992 if (!SWIG_IsOK(res1)) {
37993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37994 }
37995 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37996 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37997 if (!SWIG_IsOK(ecode2)) {
37998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37999 }
38000 arg2 = static_cast< bool >(val2);
38001 {
38002 PyThreadState* __tstate = wxPyBeginAllowThreads();
38003 (arg1)->ShowHidden(arg2);
38004 wxPyEndAllowThreads(__tstate);
38005 if (PyErr_Occurred()) SWIG_fail;
38006 }
38007 resultobj = SWIG_Py_Void();
38008 return resultobj;
38009 fail:
38010 return NULL;
38011 }
38012
38013
38014 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38015 PyObject *resultobj = 0;
38016 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38017 bool result;
38018 void *argp1 = 0 ;
38019 int res1 = 0 ;
38020 PyObject *swig_obj[1] ;
38021
38022 if (!args) SWIG_fail;
38023 swig_obj[0] = args;
38024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38025 if (!SWIG_IsOK(res1)) {
38026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38027 }
38028 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38029 {
38030 PyThreadState* __tstate = wxPyBeginAllowThreads();
38031 result = (bool)(arg1)->GetShowHidden();
38032 wxPyEndAllowThreads(__tstate);
38033 if (PyErr_Occurred()) SWIG_fail;
38034 }
38035 {
38036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38037 }
38038 return resultobj;
38039 fail:
38040 return NULL;
38041 }
38042
38043
38044 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38045 PyObject *resultobj = 0;
38046 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38047 wxString result;
38048 void *argp1 = 0 ;
38049 int res1 = 0 ;
38050 PyObject *swig_obj[1] ;
38051
38052 if (!args) SWIG_fail;
38053 swig_obj[0] = args;
38054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38055 if (!SWIG_IsOK(res1)) {
38056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38057 }
38058 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38059 {
38060 PyThreadState* __tstate = wxPyBeginAllowThreads();
38061 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38062 wxPyEndAllowThreads(__tstate);
38063 if (PyErr_Occurred()) SWIG_fail;
38064 }
38065 {
38066 #if wxUSE_UNICODE
38067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38068 #else
38069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38070 #endif
38071 }
38072 return resultobj;
38073 fail:
38074 return NULL;
38075 }
38076
38077
38078 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38079 PyObject *resultobj = 0;
38080 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38081 wxString *arg2 = 0 ;
38082 void *argp1 = 0 ;
38083 int res1 = 0 ;
38084 bool temp2 = false ;
38085 PyObject * obj0 = 0 ;
38086 PyObject * obj1 = 0 ;
38087 char * kwnames[] = {
38088 (char *) "self",(char *) "filter", NULL
38089 };
38090
38091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38093 if (!SWIG_IsOK(res1)) {
38094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38095 }
38096 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38097 {
38098 arg2 = wxString_in_helper(obj1);
38099 if (arg2 == NULL) SWIG_fail;
38100 temp2 = true;
38101 }
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 (arg1)->SetFilter((wxString const &)*arg2);
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 {
38110 if (temp2)
38111 delete arg2;
38112 }
38113 return resultobj;
38114 fail:
38115 {
38116 if (temp2)
38117 delete arg2;
38118 }
38119 return NULL;
38120 }
38121
38122
38123 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38124 PyObject *resultobj = 0;
38125 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38126 int result;
38127 void *argp1 = 0 ;
38128 int res1 = 0 ;
38129 PyObject *swig_obj[1] ;
38130
38131 if (!args) SWIG_fail;
38132 swig_obj[0] = args;
38133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38134 if (!SWIG_IsOK(res1)) {
38135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38136 }
38137 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38138 {
38139 PyThreadState* __tstate = wxPyBeginAllowThreads();
38140 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38141 wxPyEndAllowThreads(__tstate);
38142 if (PyErr_Occurred()) SWIG_fail;
38143 }
38144 resultobj = SWIG_From_int(static_cast< int >(result));
38145 return resultobj;
38146 fail:
38147 return NULL;
38148 }
38149
38150
38151 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38152 PyObject *resultobj = 0;
38153 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38154 int arg2 ;
38155 void *argp1 = 0 ;
38156 int res1 = 0 ;
38157 int val2 ;
38158 int ecode2 = 0 ;
38159 PyObject * obj0 = 0 ;
38160 PyObject * obj1 = 0 ;
38161 char * kwnames[] = {
38162 (char *) "self",(char *) "n", NULL
38163 };
38164
38165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38167 if (!SWIG_IsOK(res1)) {
38168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38169 }
38170 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38171 ecode2 = SWIG_AsVal_int(obj1, &val2);
38172 if (!SWIG_IsOK(ecode2)) {
38173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38174 }
38175 arg2 = static_cast< int >(val2);
38176 {
38177 PyThreadState* __tstate = wxPyBeginAllowThreads();
38178 (arg1)->SetFilterIndex(arg2);
38179 wxPyEndAllowThreads(__tstate);
38180 if (PyErr_Occurred()) SWIG_fail;
38181 }
38182 resultobj = SWIG_Py_Void();
38183 return resultobj;
38184 fail:
38185 return NULL;
38186 }
38187
38188
38189 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38190 PyObject *resultobj = 0;
38191 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38192 wxTreeItemId result;
38193 void *argp1 = 0 ;
38194 int res1 = 0 ;
38195 PyObject *swig_obj[1] ;
38196
38197 if (!args) SWIG_fail;
38198 swig_obj[0] = args;
38199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38200 if (!SWIG_IsOK(res1)) {
38201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38202 }
38203 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38204 {
38205 PyThreadState* __tstate = wxPyBeginAllowThreads();
38206 result = (arg1)->GetRootId();
38207 wxPyEndAllowThreads(__tstate);
38208 if (PyErr_Occurred()) SWIG_fail;
38209 }
38210 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38211 return resultobj;
38212 fail:
38213 return NULL;
38214 }
38215
38216
38217 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38218 PyObject *resultobj = 0;
38219 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38220 wxPyTreeCtrl *result = 0 ;
38221 void *argp1 = 0 ;
38222 int res1 = 0 ;
38223 PyObject *swig_obj[1] ;
38224
38225 if (!args) SWIG_fail;
38226 swig_obj[0] = args;
38227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38228 if (!SWIG_IsOK(res1)) {
38229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38230 }
38231 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38232 {
38233 PyThreadState* __tstate = wxPyBeginAllowThreads();
38234 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38235 wxPyEndAllowThreads(__tstate);
38236 if (PyErr_Occurred()) SWIG_fail;
38237 }
38238 {
38239 resultobj = wxPyMake_wxObject(result, 0);
38240 }
38241 return resultobj;
38242 fail:
38243 return NULL;
38244 }
38245
38246
38247 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38248 PyObject *resultobj = 0;
38249 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38250 wxDirFilterListCtrl *result = 0 ;
38251 void *argp1 = 0 ;
38252 int res1 = 0 ;
38253 PyObject *swig_obj[1] ;
38254
38255 if (!args) SWIG_fail;
38256 swig_obj[0] = args;
38257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38258 if (!SWIG_IsOK(res1)) {
38259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38260 }
38261 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38262 {
38263 PyThreadState* __tstate = wxPyBeginAllowThreads();
38264 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38265 wxPyEndAllowThreads(__tstate);
38266 if (PyErr_Occurred()) SWIG_fail;
38267 }
38268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38269 return resultobj;
38270 fail:
38271 return NULL;
38272 }
38273
38274
38275 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38276 PyObject *resultobj = 0;
38277 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38278 wxTreeItemId arg2 ;
38279 wxString *arg3 = 0 ;
38280 bool *arg4 = 0 ;
38281 wxTreeItemId result;
38282 void *argp1 = 0 ;
38283 int res1 = 0 ;
38284 void *argp2 ;
38285 int res2 = 0 ;
38286 bool temp3 = false ;
38287 bool temp4 ;
38288 int res4 = SWIG_TMPOBJ ;
38289 PyObject * obj0 = 0 ;
38290 PyObject * obj1 = 0 ;
38291 PyObject * obj2 = 0 ;
38292 char * kwnames[] = {
38293 (char *) "self",(char *) "parentId",(char *) "path", NULL
38294 };
38295
38296 arg4 = &temp4;
38297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38299 if (!SWIG_IsOK(res1)) {
38300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38301 }
38302 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38303 {
38304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38305 if (!SWIG_IsOK(res2)) {
38306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38307 }
38308 if (!argp2) {
38309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38310 } else {
38311 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38312 arg2 = *temp;
38313 if (SWIG_IsNewObj(res2)) delete temp;
38314 }
38315 }
38316 {
38317 arg3 = wxString_in_helper(obj2);
38318 if (arg3 == NULL) SWIG_fail;
38319 temp3 = true;
38320 }
38321 {
38322 PyThreadState* __tstate = wxPyBeginAllowThreads();
38323 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38324 wxPyEndAllowThreads(__tstate);
38325 if (PyErr_Occurred()) SWIG_fail;
38326 }
38327 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38328 if (SWIG_IsTmpObj(res4)) {
38329 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38330 } else {
38331 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38333 }
38334 {
38335 if (temp3)
38336 delete arg3;
38337 }
38338 return resultobj;
38339 fail:
38340 {
38341 if (temp3)
38342 delete arg3;
38343 }
38344 return NULL;
38345 }
38346
38347
38348 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38349 PyObject *resultobj = 0;
38350 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38351 void *argp1 = 0 ;
38352 int res1 = 0 ;
38353 PyObject *swig_obj[1] ;
38354
38355 if (!args) SWIG_fail;
38356 swig_obj[0] = args;
38357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38358 if (!SWIG_IsOK(res1)) {
38359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38360 }
38361 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38362 {
38363 PyThreadState* __tstate = wxPyBeginAllowThreads();
38364 (arg1)->DoResize();
38365 wxPyEndAllowThreads(__tstate);
38366 if (PyErr_Occurred()) SWIG_fail;
38367 }
38368 resultobj = SWIG_Py_Void();
38369 return resultobj;
38370 fail:
38371 return NULL;
38372 }
38373
38374
38375 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38376 PyObject *resultobj = 0;
38377 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38378 void *argp1 = 0 ;
38379 int res1 = 0 ;
38380 PyObject *swig_obj[1] ;
38381
38382 if (!args) SWIG_fail;
38383 swig_obj[0] = args;
38384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38385 if (!SWIG_IsOK(res1)) {
38386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38387 }
38388 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38389 {
38390 PyThreadState* __tstate = wxPyBeginAllowThreads();
38391 (arg1)->ReCreateTree();
38392 wxPyEndAllowThreads(__tstate);
38393 if (PyErr_Occurred()) SWIG_fail;
38394 }
38395 resultobj = SWIG_Py_Void();
38396 return resultobj;
38397 fail:
38398 return NULL;
38399 }
38400
38401
38402 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38403 PyObject *obj;
38404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38405 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38406 return SWIG_Py_Void();
38407 }
38408
38409 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38410 return SWIG_Python_InitShadowInstance(args);
38411 }
38412
38413 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38414 PyObject *resultobj = 0;
38415 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38416 int arg2 = (int) (int)-1 ;
38417 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38418 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38419 wxSize const &arg4_defvalue = wxDefaultSize ;
38420 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38421 long arg5 = (long) 0 ;
38422 wxDirFilterListCtrl *result = 0 ;
38423 void *argp1 = 0 ;
38424 int res1 = 0 ;
38425 int val2 ;
38426 int ecode2 = 0 ;
38427 wxPoint temp3 ;
38428 wxSize temp4 ;
38429 long val5 ;
38430 int ecode5 = 0 ;
38431 PyObject * obj0 = 0 ;
38432 PyObject * obj1 = 0 ;
38433 PyObject * obj2 = 0 ;
38434 PyObject * obj3 = 0 ;
38435 PyObject * obj4 = 0 ;
38436 char * kwnames[] = {
38437 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38438 };
38439
38440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38442 if (!SWIG_IsOK(res1)) {
38443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38444 }
38445 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38446 if (obj1) {
38447 ecode2 = SWIG_AsVal_int(obj1, &val2);
38448 if (!SWIG_IsOK(ecode2)) {
38449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38450 }
38451 arg2 = static_cast< int >(val2);
38452 }
38453 if (obj2) {
38454 {
38455 arg3 = &temp3;
38456 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38457 }
38458 }
38459 if (obj3) {
38460 {
38461 arg4 = &temp4;
38462 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38463 }
38464 }
38465 if (obj4) {
38466 ecode5 = SWIG_AsVal_long(obj4, &val5);
38467 if (!SWIG_IsOK(ecode5)) {
38468 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38469 }
38470 arg5 = static_cast< long >(val5);
38471 }
38472 {
38473 if (!wxPyCheckForApp()) SWIG_fail;
38474 PyThreadState* __tstate = wxPyBeginAllowThreads();
38475 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38476 wxPyEndAllowThreads(__tstate);
38477 if (PyErr_Occurred()) SWIG_fail;
38478 }
38479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38480 return resultobj;
38481 fail:
38482 return NULL;
38483 }
38484
38485
38486 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38487 PyObject *resultobj = 0;
38488 wxDirFilterListCtrl *result = 0 ;
38489
38490 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38491 {
38492 if (!wxPyCheckForApp()) SWIG_fail;
38493 PyThreadState* __tstate = wxPyBeginAllowThreads();
38494 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38495 wxPyEndAllowThreads(__tstate);
38496 if (PyErr_Occurred()) SWIG_fail;
38497 }
38498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38499 return resultobj;
38500 fail:
38501 return NULL;
38502 }
38503
38504
38505 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38506 PyObject *resultobj = 0;
38507 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38508 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38509 int arg3 = (int) (int)-1 ;
38510 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38511 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38512 wxSize const &arg5_defvalue = wxDefaultSize ;
38513 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38514 long arg6 = (long) 0 ;
38515 bool result;
38516 void *argp1 = 0 ;
38517 int res1 = 0 ;
38518 void *argp2 = 0 ;
38519 int res2 = 0 ;
38520 int val3 ;
38521 int ecode3 = 0 ;
38522 wxPoint temp4 ;
38523 wxSize temp5 ;
38524 long val6 ;
38525 int ecode6 = 0 ;
38526 PyObject * obj0 = 0 ;
38527 PyObject * obj1 = 0 ;
38528 PyObject * obj2 = 0 ;
38529 PyObject * obj3 = 0 ;
38530 PyObject * obj4 = 0 ;
38531 PyObject * obj5 = 0 ;
38532 char * kwnames[] = {
38533 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38534 };
38535
38536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38538 if (!SWIG_IsOK(res1)) {
38539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38540 }
38541 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38542 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38543 if (!SWIG_IsOK(res2)) {
38544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38545 }
38546 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38547 if (obj2) {
38548 ecode3 = SWIG_AsVal_int(obj2, &val3);
38549 if (!SWIG_IsOK(ecode3)) {
38550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38551 }
38552 arg3 = static_cast< int >(val3);
38553 }
38554 if (obj3) {
38555 {
38556 arg4 = &temp4;
38557 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38558 }
38559 }
38560 if (obj4) {
38561 {
38562 arg5 = &temp5;
38563 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38564 }
38565 }
38566 if (obj5) {
38567 ecode6 = SWIG_AsVal_long(obj5, &val6);
38568 if (!SWIG_IsOK(ecode6)) {
38569 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38570 }
38571 arg6 = static_cast< long >(val6);
38572 }
38573 {
38574 PyThreadState* __tstate = wxPyBeginAllowThreads();
38575 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38576 wxPyEndAllowThreads(__tstate);
38577 if (PyErr_Occurred()) SWIG_fail;
38578 }
38579 {
38580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38581 }
38582 return resultobj;
38583 fail:
38584 return NULL;
38585 }
38586
38587
38588 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38589 PyObject *resultobj = 0;
38590 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38591 wxString *arg2 = 0 ;
38592 int arg3 ;
38593 void *argp1 = 0 ;
38594 int res1 = 0 ;
38595 bool temp2 = false ;
38596 int val3 ;
38597 int ecode3 = 0 ;
38598 PyObject * obj0 = 0 ;
38599 PyObject * obj1 = 0 ;
38600 PyObject * obj2 = 0 ;
38601 char * kwnames[] = {
38602 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38603 };
38604
38605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38607 if (!SWIG_IsOK(res1)) {
38608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38609 }
38610 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38611 {
38612 arg2 = wxString_in_helper(obj1);
38613 if (arg2 == NULL) SWIG_fail;
38614 temp2 = true;
38615 }
38616 ecode3 = SWIG_AsVal_int(obj2, &val3);
38617 if (!SWIG_IsOK(ecode3)) {
38618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38619 }
38620 arg3 = static_cast< int >(val3);
38621 {
38622 PyThreadState* __tstate = wxPyBeginAllowThreads();
38623 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38624 wxPyEndAllowThreads(__tstate);
38625 if (PyErr_Occurred()) SWIG_fail;
38626 }
38627 resultobj = SWIG_Py_Void();
38628 {
38629 if (temp2)
38630 delete arg2;
38631 }
38632 return resultobj;
38633 fail:
38634 {
38635 if (temp2)
38636 delete arg2;
38637 }
38638 return NULL;
38639 }
38640
38641
38642 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38643 PyObject *obj;
38644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38645 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38646 return SWIG_Py_Void();
38647 }
38648
38649 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38650 return SWIG_Python_InitShadowInstance(args);
38651 }
38652
38653 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38654 PyObject *resultobj = 0;
38655 wxWindow *arg1 = (wxWindow *) 0 ;
38656 int arg2 = (int) (int)-1 ;
38657 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38658 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38659 wxSize const &arg4_defvalue = wxDefaultSize ;
38660 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38661 long arg5 = (long) 0 ;
38662 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38663 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38664 wxString const &arg7_defvalue = wxPyControlNameStr ;
38665 wxString *arg7 = (wxString *) &arg7_defvalue ;
38666 wxPyControl *result = 0 ;
38667 void *argp1 = 0 ;
38668 int res1 = 0 ;
38669 int val2 ;
38670 int ecode2 = 0 ;
38671 wxPoint temp3 ;
38672 wxSize temp4 ;
38673 long val5 ;
38674 int ecode5 = 0 ;
38675 void *argp6 = 0 ;
38676 int res6 = 0 ;
38677 bool temp7 = false ;
38678 PyObject * obj0 = 0 ;
38679 PyObject * obj1 = 0 ;
38680 PyObject * obj2 = 0 ;
38681 PyObject * obj3 = 0 ;
38682 PyObject * obj4 = 0 ;
38683 PyObject * obj5 = 0 ;
38684 PyObject * obj6 = 0 ;
38685 char * kwnames[] = {
38686 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38687 };
38688
38689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38691 if (!SWIG_IsOK(res1)) {
38692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38693 }
38694 arg1 = reinterpret_cast< wxWindow * >(argp1);
38695 if (obj1) {
38696 ecode2 = SWIG_AsVal_int(obj1, &val2);
38697 if (!SWIG_IsOK(ecode2)) {
38698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38699 }
38700 arg2 = static_cast< int >(val2);
38701 }
38702 if (obj2) {
38703 {
38704 arg3 = &temp3;
38705 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38706 }
38707 }
38708 if (obj3) {
38709 {
38710 arg4 = &temp4;
38711 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38712 }
38713 }
38714 if (obj4) {
38715 ecode5 = SWIG_AsVal_long(obj4, &val5);
38716 if (!SWIG_IsOK(ecode5)) {
38717 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38718 }
38719 arg5 = static_cast< long >(val5);
38720 }
38721 if (obj5) {
38722 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38723 if (!SWIG_IsOK(res6)) {
38724 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38725 }
38726 if (!argp6) {
38727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38728 }
38729 arg6 = reinterpret_cast< wxValidator * >(argp6);
38730 }
38731 if (obj6) {
38732 {
38733 arg7 = wxString_in_helper(obj6);
38734 if (arg7 == NULL) SWIG_fail;
38735 temp7 = true;
38736 }
38737 }
38738 {
38739 if (!wxPyCheckForApp()) SWIG_fail;
38740 PyThreadState* __tstate = wxPyBeginAllowThreads();
38741 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38742 wxPyEndAllowThreads(__tstate);
38743 if (PyErr_Occurred()) SWIG_fail;
38744 }
38745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38746 {
38747 if (temp7)
38748 delete arg7;
38749 }
38750 return resultobj;
38751 fail:
38752 {
38753 if (temp7)
38754 delete arg7;
38755 }
38756 return NULL;
38757 }
38758
38759
38760 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38761 PyObject *resultobj = 0;
38762 wxPyControl *result = 0 ;
38763
38764 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38765 {
38766 if (!wxPyCheckForApp()) SWIG_fail;
38767 PyThreadState* __tstate = wxPyBeginAllowThreads();
38768 result = (wxPyControl *)new wxPyControl();
38769 wxPyEndAllowThreads(__tstate);
38770 if (PyErr_Occurred()) SWIG_fail;
38771 }
38772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38773 return resultobj;
38774 fail:
38775 return NULL;
38776 }
38777
38778
38779 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38780 PyObject *resultobj = 0;
38781 wxPyControl *arg1 = (wxPyControl *) 0 ;
38782 PyObject *arg2 = (PyObject *) 0 ;
38783 PyObject *arg3 = (PyObject *) 0 ;
38784 void *argp1 = 0 ;
38785 int res1 = 0 ;
38786 PyObject * obj0 = 0 ;
38787 PyObject * obj1 = 0 ;
38788 PyObject * obj2 = 0 ;
38789 char * kwnames[] = {
38790 (char *) "self",(char *) "self",(char *) "_class", NULL
38791 };
38792
38793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38795 if (!SWIG_IsOK(res1)) {
38796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38797 }
38798 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38799 arg2 = obj1;
38800 arg3 = obj2;
38801 {
38802 PyThreadState* __tstate = wxPyBeginAllowThreads();
38803 (arg1)->_setCallbackInfo(arg2,arg3);
38804 wxPyEndAllowThreads(__tstate);
38805 if (PyErr_Occurred()) SWIG_fail;
38806 }
38807 resultobj = SWIG_Py_Void();
38808 return resultobj;
38809 fail:
38810 return NULL;
38811 }
38812
38813
38814 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38815 PyObject *resultobj = 0;
38816 wxPyControl *arg1 = (wxPyControl *) 0 ;
38817 wxSize *arg2 = 0 ;
38818 void *argp1 = 0 ;
38819 int res1 = 0 ;
38820 wxSize temp2 ;
38821 PyObject * obj0 = 0 ;
38822 PyObject * obj1 = 0 ;
38823 char * kwnames[] = {
38824 (char *) "self",(char *) "size", NULL
38825 };
38826
38827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38829 if (!SWIG_IsOK(res1)) {
38830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38831 }
38832 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38833 {
38834 arg2 = &temp2;
38835 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38836 }
38837 {
38838 PyThreadState* __tstate = wxPyBeginAllowThreads();
38839 (arg1)->SetBestSize((wxSize const &)*arg2);
38840 wxPyEndAllowThreads(__tstate);
38841 if (PyErr_Occurred()) SWIG_fail;
38842 }
38843 resultobj = SWIG_Py_Void();
38844 return resultobj;
38845 fail:
38846 return NULL;
38847 }
38848
38849
38850 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38851 PyObject *resultobj = 0;
38852 wxPyControl *arg1 = (wxPyControl *) 0 ;
38853 wxDC *arg2 = (wxDC *) 0 ;
38854 bool result;
38855 void *argp1 = 0 ;
38856 int res1 = 0 ;
38857 void *argp2 = 0 ;
38858 int res2 = 0 ;
38859 PyObject * obj0 = 0 ;
38860 PyObject * obj1 = 0 ;
38861 char * kwnames[] = {
38862 (char *) "self",(char *) "dc", NULL
38863 };
38864
38865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38867 if (!SWIG_IsOK(res1)) {
38868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38869 }
38870 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38871 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38872 if (!SWIG_IsOK(res2)) {
38873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38874 }
38875 arg2 = reinterpret_cast< wxDC * >(argp2);
38876 {
38877 PyThreadState* __tstate = wxPyBeginAllowThreads();
38878 result = (bool)(arg1)->DoEraseBackground(arg2);
38879 wxPyEndAllowThreads(__tstate);
38880 if (PyErr_Occurred()) SWIG_fail;
38881 }
38882 {
38883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38884 }
38885 return resultobj;
38886 fail:
38887 return NULL;
38888 }
38889
38890
38891 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38892 PyObject *resultobj = 0;
38893 wxPyControl *arg1 = (wxPyControl *) 0 ;
38894 int arg2 ;
38895 int arg3 ;
38896 int arg4 ;
38897 int arg5 ;
38898 void *argp1 = 0 ;
38899 int res1 = 0 ;
38900 int val2 ;
38901 int ecode2 = 0 ;
38902 int val3 ;
38903 int ecode3 = 0 ;
38904 int val4 ;
38905 int ecode4 = 0 ;
38906 int val5 ;
38907 int ecode5 = 0 ;
38908 PyObject * obj0 = 0 ;
38909 PyObject * obj1 = 0 ;
38910 PyObject * obj2 = 0 ;
38911 PyObject * obj3 = 0 ;
38912 PyObject * obj4 = 0 ;
38913 char * kwnames[] = {
38914 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38915 };
38916
38917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38919 if (!SWIG_IsOK(res1)) {
38920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38921 }
38922 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38923 ecode2 = SWIG_AsVal_int(obj1, &val2);
38924 if (!SWIG_IsOK(ecode2)) {
38925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38926 }
38927 arg2 = static_cast< int >(val2);
38928 ecode3 = SWIG_AsVal_int(obj2, &val3);
38929 if (!SWIG_IsOK(ecode3)) {
38930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38931 }
38932 arg3 = static_cast< int >(val3);
38933 ecode4 = SWIG_AsVal_int(obj3, &val4);
38934 if (!SWIG_IsOK(ecode4)) {
38935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38936 }
38937 arg4 = static_cast< int >(val4);
38938 ecode5 = SWIG_AsVal_int(obj4, &val5);
38939 if (!SWIG_IsOK(ecode5)) {
38940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38941 }
38942 arg5 = static_cast< int >(val5);
38943 {
38944 PyThreadState* __tstate = wxPyBeginAllowThreads();
38945 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38946 wxPyEndAllowThreads(__tstate);
38947 if (PyErr_Occurred()) SWIG_fail;
38948 }
38949 resultobj = SWIG_Py_Void();
38950 return resultobj;
38951 fail:
38952 return NULL;
38953 }
38954
38955
38956 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38957 PyObject *resultobj = 0;
38958 wxPyControl *arg1 = (wxPyControl *) 0 ;
38959 int arg2 ;
38960 int arg3 ;
38961 int arg4 ;
38962 int arg5 ;
38963 int arg6 = (int) wxSIZE_AUTO ;
38964 void *argp1 = 0 ;
38965 int res1 = 0 ;
38966 int val2 ;
38967 int ecode2 = 0 ;
38968 int val3 ;
38969 int ecode3 = 0 ;
38970 int val4 ;
38971 int ecode4 = 0 ;
38972 int val5 ;
38973 int ecode5 = 0 ;
38974 int val6 ;
38975 int ecode6 = 0 ;
38976 PyObject * obj0 = 0 ;
38977 PyObject * obj1 = 0 ;
38978 PyObject * obj2 = 0 ;
38979 PyObject * obj3 = 0 ;
38980 PyObject * obj4 = 0 ;
38981 PyObject * obj5 = 0 ;
38982 char * kwnames[] = {
38983 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38984 };
38985
38986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38988 if (!SWIG_IsOK(res1)) {
38989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38990 }
38991 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38992 ecode2 = SWIG_AsVal_int(obj1, &val2);
38993 if (!SWIG_IsOK(ecode2)) {
38994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38995 }
38996 arg2 = static_cast< int >(val2);
38997 ecode3 = SWIG_AsVal_int(obj2, &val3);
38998 if (!SWIG_IsOK(ecode3)) {
38999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39000 }
39001 arg3 = static_cast< int >(val3);
39002 ecode4 = SWIG_AsVal_int(obj3, &val4);
39003 if (!SWIG_IsOK(ecode4)) {
39004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39005 }
39006 arg4 = static_cast< int >(val4);
39007 ecode5 = SWIG_AsVal_int(obj4, &val5);
39008 if (!SWIG_IsOK(ecode5)) {
39009 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39010 }
39011 arg5 = static_cast< int >(val5);
39012 if (obj5) {
39013 ecode6 = SWIG_AsVal_int(obj5, &val6);
39014 if (!SWIG_IsOK(ecode6)) {
39015 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39016 }
39017 arg6 = static_cast< int >(val6);
39018 }
39019 {
39020 PyThreadState* __tstate = wxPyBeginAllowThreads();
39021 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39022 wxPyEndAllowThreads(__tstate);
39023 if (PyErr_Occurred()) SWIG_fail;
39024 }
39025 resultobj = SWIG_Py_Void();
39026 return resultobj;
39027 fail:
39028 return NULL;
39029 }
39030
39031
39032 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39033 PyObject *resultobj = 0;
39034 wxPyControl *arg1 = (wxPyControl *) 0 ;
39035 int arg2 ;
39036 int arg3 ;
39037 void *argp1 = 0 ;
39038 int res1 = 0 ;
39039 int val2 ;
39040 int ecode2 = 0 ;
39041 int val3 ;
39042 int ecode3 = 0 ;
39043 PyObject * obj0 = 0 ;
39044 PyObject * obj1 = 0 ;
39045 PyObject * obj2 = 0 ;
39046 char * kwnames[] = {
39047 (char *) "self",(char *) "width",(char *) "height", NULL
39048 };
39049
39050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39052 if (!SWIG_IsOK(res1)) {
39053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39054 }
39055 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39056 ecode2 = SWIG_AsVal_int(obj1, &val2);
39057 if (!SWIG_IsOK(ecode2)) {
39058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39059 }
39060 arg2 = static_cast< int >(val2);
39061 ecode3 = SWIG_AsVal_int(obj2, &val3);
39062 if (!SWIG_IsOK(ecode3)) {
39063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39064 }
39065 arg3 = static_cast< int >(val3);
39066 {
39067 PyThreadState* __tstate = wxPyBeginAllowThreads();
39068 (arg1)->DoSetClientSize(arg2,arg3);
39069 wxPyEndAllowThreads(__tstate);
39070 if (PyErr_Occurred()) SWIG_fail;
39071 }
39072 resultobj = SWIG_Py_Void();
39073 return resultobj;
39074 fail:
39075 return NULL;
39076 }
39077
39078
39079 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39080 PyObject *resultobj = 0;
39081 wxPyControl *arg1 = (wxPyControl *) 0 ;
39082 int arg2 ;
39083 int arg3 ;
39084 void *argp1 = 0 ;
39085 int res1 = 0 ;
39086 int val2 ;
39087 int ecode2 = 0 ;
39088 int val3 ;
39089 int ecode3 = 0 ;
39090 PyObject * obj0 = 0 ;
39091 PyObject * obj1 = 0 ;
39092 PyObject * obj2 = 0 ;
39093 char * kwnames[] = {
39094 (char *) "self",(char *) "x",(char *) "y", NULL
39095 };
39096
39097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39099 if (!SWIG_IsOK(res1)) {
39100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39101 }
39102 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39103 ecode2 = SWIG_AsVal_int(obj1, &val2);
39104 if (!SWIG_IsOK(ecode2)) {
39105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39106 }
39107 arg2 = static_cast< int >(val2);
39108 ecode3 = SWIG_AsVal_int(obj2, &val3);
39109 if (!SWIG_IsOK(ecode3)) {
39110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39111 }
39112 arg3 = static_cast< int >(val3);
39113 {
39114 PyThreadState* __tstate = wxPyBeginAllowThreads();
39115 (arg1)->DoSetVirtualSize(arg2,arg3);
39116 wxPyEndAllowThreads(__tstate);
39117 if (PyErr_Occurred()) SWIG_fail;
39118 }
39119 resultobj = SWIG_Py_Void();
39120 return resultobj;
39121 fail:
39122 return NULL;
39123 }
39124
39125
39126 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39127 PyObject *resultobj = 0;
39128 wxPyControl *arg1 = (wxPyControl *) 0 ;
39129 int *arg2 = (int *) 0 ;
39130 int *arg3 = (int *) 0 ;
39131 void *argp1 = 0 ;
39132 int res1 = 0 ;
39133 int temp2 ;
39134 int res2 = SWIG_TMPOBJ ;
39135 int temp3 ;
39136 int res3 = SWIG_TMPOBJ ;
39137 PyObject *swig_obj[1] ;
39138
39139 arg2 = &temp2;
39140 arg3 = &temp3;
39141 if (!args) SWIG_fail;
39142 swig_obj[0] = args;
39143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39144 if (!SWIG_IsOK(res1)) {
39145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39146 }
39147 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39148 {
39149 PyThreadState* __tstate = wxPyBeginAllowThreads();
39150 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39151 wxPyEndAllowThreads(__tstate);
39152 if (PyErr_Occurred()) SWIG_fail;
39153 }
39154 resultobj = SWIG_Py_Void();
39155 if (SWIG_IsTmpObj(res2)) {
39156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39157 } else {
39158 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39160 }
39161 if (SWIG_IsTmpObj(res3)) {
39162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39163 } else {
39164 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39166 }
39167 return resultobj;
39168 fail:
39169 return NULL;
39170 }
39171
39172
39173 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39174 PyObject *resultobj = 0;
39175 wxPyControl *arg1 = (wxPyControl *) 0 ;
39176 int *arg2 = (int *) 0 ;
39177 int *arg3 = (int *) 0 ;
39178 void *argp1 = 0 ;
39179 int res1 = 0 ;
39180 int temp2 ;
39181 int res2 = SWIG_TMPOBJ ;
39182 int temp3 ;
39183 int res3 = SWIG_TMPOBJ ;
39184 PyObject *swig_obj[1] ;
39185
39186 arg2 = &temp2;
39187 arg3 = &temp3;
39188 if (!args) SWIG_fail;
39189 swig_obj[0] = args;
39190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39191 if (!SWIG_IsOK(res1)) {
39192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39193 }
39194 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39195 {
39196 PyThreadState* __tstate = wxPyBeginAllowThreads();
39197 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39198 wxPyEndAllowThreads(__tstate);
39199 if (PyErr_Occurred()) SWIG_fail;
39200 }
39201 resultobj = SWIG_Py_Void();
39202 if (SWIG_IsTmpObj(res2)) {
39203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39204 } else {
39205 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39207 }
39208 if (SWIG_IsTmpObj(res3)) {
39209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39210 } else {
39211 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39213 }
39214 return resultobj;
39215 fail:
39216 return NULL;
39217 }
39218
39219
39220 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39221 PyObject *resultobj = 0;
39222 wxPyControl *arg1 = (wxPyControl *) 0 ;
39223 int *arg2 = (int *) 0 ;
39224 int *arg3 = (int *) 0 ;
39225 void *argp1 = 0 ;
39226 int res1 = 0 ;
39227 int temp2 ;
39228 int res2 = SWIG_TMPOBJ ;
39229 int temp3 ;
39230 int res3 = SWIG_TMPOBJ ;
39231 PyObject *swig_obj[1] ;
39232
39233 arg2 = &temp2;
39234 arg3 = &temp3;
39235 if (!args) SWIG_fail;
39236 swig_obj[0] = args;
39237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39238 if (!SWIG_IsOK(res1)) {
39239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39240 }
39241 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39242 {
39243 PyThreadState* __tstate = wxPyBeginAllowThreads();
39244 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39245 wxPyEndAllowThreads(__tstate);
39246 if (PyErr_Occurred()) SWIG_fail;
39247 }
39248 resultobj = SWIG_Py_Void();
39249 if (SWIG_IsTmpObj(res2)) {
39250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39251 } else {
39252 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39254 }
39255 if (SWIG_IsTmpObj(res3)) {
39256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39257 } else {
39258 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39260 }
39261 return resultobj;
39262 fail:
39263 return NULL;
39264 }
39265
39266
39267 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39268 PyObject *resultobj = 0;
39269 wxPyControl *arg1 = (wxPyControl *) 0 ;
39270 wxSize result;
39271 void *argp1 = 0 ;
39272 int res1 = 0 ;
39273 PyObject *swig_obj[1] ;
39274
39275 if (!args) SWIG_fail;
39276 swig_obj[0] = args;
39277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39278 if (!SWIG_IsOK(res1)) {
39279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39280 }
39281 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39282 {
39283 PyThreadState* __tstate = wxPyBeginAllowThreads();
39284 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39285 wxPyEndAllowThreads(__tstate);
39286 if (PyErr_Occurred()) SWIG_fail;
39287 }
39288 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39289 return resultobj;
39290 fail:
39291 return NULL;
39292 }
39293
39294
39295 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39296 PyObject *resultobj = 0;
39297 wxPyControl *arg1 = (wxPyControl *) 0 ;
39298 wxSize result;
39299 void *argp1 = 0 ;
39300 int res1 = 0 ;
39301 PyObject *swig_obj[1] ;
39302
39303 if (!args) SWIG_fail;
39304 swig_obj[0] = args;
39305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39306 if (!SWIG_IsOK(res1)) {
39307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39308 }
39309 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39310 {
39311 PyThreadState* __tstate = wxPyBeginAllowThreads();
39312 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39313 wxPyEndAllowThreads(__tstate);
39314 if (PyErr_Occurred()) SWIG_fail;
39315 }
39316 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39317 return resultobj;
39318 fail:
39319 return NULL;
39320 }
39321
39322
39323 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39324 PyObject *resultobj = 0;
39325 wxPyControl *arg1 = (wxPyControl *) 0 ;
39326 SwigValueWrapper<wxVisualAttributes > result;
39327 void *argp1 = 0 ;
39328 int res1 = 0 ;
39329 PyObject *swig_obj[1] ;
39330
39331 if (!args) SWIG_fail;
39332 swig_obj[0] = args;
39333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39334 if (!SWIG_IsOK(res1)) {
39335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39336 }
39337 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39338 {
39339 PyThreadState* __tstate = wxPyBeginAllowThreads();
39340 result = (arg1)->GetDefaultAttributes();
39341 wxPyEndAllowThreads(__tstate);
39342 if (PyErr_Occurred()) SWIG_fail;
39343 }
39344 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39345 return resultobj;
39346 fail:
39347 return NULL;
39348 }
39349
39350
39351 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39352 PyObject *resultobj = 0;
39353 wxPyControl *arg1 = (wxPyControl *) 0 ;
39354 void *argp1 = 0 ;
39355 int res1 = 0 ;
39356 PyObject *swig_obj[1] ;
39357
39358 if (!args) SWIG_fail;
39359 swig_obj[0] = args;
39360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39361 if (!SWIG_IsOK(res1)) {
39362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39363 }
39364 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39365 {
39366 PyThreadState* __tstate = wxPyBeginAllowThreads();
39367 (arg1)->OnInternalIdle();
39368 wxPyEndAllowThreads(__tstate);
39369 if (PyErr_Occurred()) SWIG_fail;
39370 }
39371 resultobj = SWIG_Py_Void();
39372 return resultobj;
39373 fail:
39374 return NULL;
39375 }
39376
39377
39378 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39379 PyObject *obj;
39380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39381 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39382 return SWIG_Py_Void();
39383 }
39384
39385 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39386 return SWIG_Python_InitShadowInstance(args);
39387 }
39388
39389 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39390 PyObject *resultobj = 0;
39391 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39392 int arg2 = (int) 0 ;
39393 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39394 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39395 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39396 wxHelpEvent *result = 0 ;
39397 int val1 ;
39398 int ecode1 = 0 ;
39399 int val2 ;
39400 int ecode2 = 0 ;
39401 wxPoint temp3 ;
39402 int val4 ;
39403 int ecode4 = 0 ;
39404 PyObject * obj0 = 0 ;
39405 PyObject * obj1 = 0 ;
39406 PyObject * obj2 = 0 ;
39407 PyObject * obj3 = 0 ;
39408 char * kwnames[] = {
39409 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39410 };
39411
39412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39413 if (obj0) {
39414 ecode1 = SWIG_AsVal_int(obj0, &val1);
39415 if (!SWIG_IsOK(ecode1)) {
39416 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39417 }
39418 arg1 = static_cast< wxEventType >(val1);
39419 }
39420 if (obj1) {
39421 ecode2 = SWIG_AsVal_int(obj1, &val2);
39422 if (!SWIG_IsOK(ecode2)) {
39423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39424 }
39425 arg2 = static_cast< int >(val2);
39426 }
39427 if (obj2) {
39428 {
39429 arg3 = &temp3;
39430 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39431 }
39432 }
39433 if (obj3) {
39434 ecode4 = SWIG_AsVal_int(obj3, &val4);
39435 if (!SWIG_IsOK(ecode4)) {
39436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39437 }
39438 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39439 }
39440 {
39441 PyThreadState* __tstate = wxPyBeginAllowThreads();
39442 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39443 wxPyEndAllowThreads(__tstate);
39444 if (PyErr_Occurred()) SWIG_fail;
39445 }
39446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39447 return resultobj;
39448 fail:
39449 return NULL;
39450 }
39451
39452
39453 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39454 PyObject *resultobj = 0;
39455 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39456 wxPoint result;
39457 void *argp1 = 0 ;
39458 int res1 = 0 ;
39459 PyObject *swig_obj[1] ;
39460
39461 if (!args) SWIG_fail;
39462 swig_obj[0] = args;
39463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39464 if (!SWIG_IsOK(res1)) {
39465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39466 }
39467 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39468 {
39469 PyThreadState* __tstate = wxPyBeginAllowThreads();
39470 result = ((wxHelpEvent const *)arg1)->GetPosition();
39471 wxPyEndAllowThreads(__tstate);
39472 if (PyErr_Occurred()) SWIG_fail;
39473 }
39474 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39475 return resultobj;
39476 fail:
39477 return NULL;
39478 }
39479
39480
39481 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39482 PyObject *resultobj = 0;
39483 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39484 wxPoint *arg2 = 0 ;
39485 void *argp1 = 0 ;
39486 int res1 = 0 ;
39487 wxPoint temp2 ;
39488 PyObject * obj0 = 0 ;
39489 PyObject * obj1 = 0 ;
39490 char * kwnames[] = {
39491 (char *) "self",(char *) "pos", NULL
39492 };
39493
39494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39496 if (!SWIG_IsOK(res1)) {
39497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39498 }
39499 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39500 {
39501 arg2 = &temp2;
39502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39503 }
39504 {
39505 PyThreadState* __tstate = wxPyBeginAllowThreads();
39506 (arg1)->SetPosition((wxPoint const &)*arg2);
39507 wxPyEndAllowThreads(__tstate);
39508 if (PyErr_Occurred()) SWIG_fail;
39509 }
39510 resultobj = SWIG_Py_Void();
39511 return resultobj;
39512 fail:
39513 return NULL;
39514 }
39515
39516
39517 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39518 PyObject *resultobj = 0;
39519 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39520 wxString *result = 0 ;
39521 void *argp1 = 0 ;
39522 int res1 = 0 ;
39523 PyObject *swig_obj[1] ;
39524
39525 if (!args) SWIG_fail;
39526 swig_obj[0] = args;
39527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39528 if (!SWIG_IsOK(res1)) {
39529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39530 }
39531 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39532 {
39533 PyThreadState* __tstate = wxPyBeginAllowThreads();
39534 {
39535 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39536 result = (wxString *) &_result_ref;
39537 }
39538 wxPyEndAllowThreads(__tstate);
39539 if (PyErr_Occurred()) SWIG_fail;
39540 }
39541 {
39542 #if wxUSE_UNICODE
39543 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39544 #else
39545 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39546 #endif
39547 }
39548 return resultobj;
39549 fail:
39550 return NULL;
39551 }
39552
39553
39554 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39555 PyObject *resultobj = 0;
39556 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39557 wxString *arg2 = 0 ;
39558 void *argp1 = 0 ;
39559 int res1 = 0 ;
39560 bool temp2 = false ;
39561 PyObject * obj0 = 0 ;
39562 PyObject * obj1 = 0 ;
39563 char * kwnames[] = {
39564 (char *) "self",(char *) "link", NULL
39565 };
39566
39567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39569 if (!SWIG_IsOK(res1)) {
39570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39571 }
39572 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39573 {
39574 arg2 = wxString_in_helper(obj1);
39575 if (arg2 == NULL) SWIG_fail;
39576 temp2 = true;
39577 }
39578 {
39579 PyThreadState* __tstate = wxPyBeginAllowThreads();
39580 (arg1)->SetLink((wxString const &)*arg2);
39581 wxPyEndAllowThreads(__tstate);
39582 if (PyErr_Occurred()) SWIG_fail;
39583 }
39584 resultobj = SWIG_Py_Void();
39585 {
39586 if (temp2)
39587 delete arg2;
39588 }
39589 return resultobj;
39590 fail:
39591 {
39592 if (temp2)
39593 delete arg2;
39594 }
39595 return NULL;
39596 }
39597
39598
39599 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39600 PyObject *resultobj = 0;
39601 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39602 wxString *result = 0 ;
39603 void *argp1 = 0 ;
39604 int res1 = 0 ;
39605 PyObject *swig_obj[1] ;
39606
39607 if (!args) SWIG_fail;
39608 swig_obj[0] = args;
39609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39610 if (!SWIG_IsOK(res1)) {
39611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39612 }
39613 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39614 {
39615 PyThreadState* __tstate = wxPyBeginAllowThreads();
39616 {
39617 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39618 result = (wxString *) &_result_ref;
39619 }
39620 wxPyEndAllowThreads(__tstate);
39621 if (PyErr_Occurred()) SWIG_fail;
39622 }
39623 {
39624 #if wxUSE_UNICODE
39625 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39626 #else
39627 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39628 #endif
39629 }
39630 return resultobj;
39631 fail:
39632 return NULL;
39633 }
39634
39635
39636 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39637 PyObject *resultobj = 0;
39638 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39639 wxString *arg2 = 0 ;
39640 void *argp1 = 0 ;
39641 int res1 = 0 ;
39642 bool temp2 = false ;
39643 PyObject * obj0 = 0 ;
39644 PyObject * obj1 = 0 ;
39645 char * kwnames[] = {
39646 (char *) "self",(char *) "target", NULL
39647 };
39648
39649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39651 if (!SWIG_IsOK(res1)) {
39652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39653 }
39654 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39655 {
39656 arg2 = wxString_in_helper(obj1);
39657 if (arg2 == NULL) SWIG_fail;
39658 temp2 = true;
39659 }
39660 {
39661 PyThreadState* __tstate = wxPyBeginAllowThreads();
39662 (arg1)->SetTarget((wxString const &)*arg2);
39663 wxPyEndAllowThreads(__tstate);
39664 if (PyErr_Occurred()) SWIG_fail;
39665 }
39666 resultobj = SWIG_Py_Void();
39667 {
39668 if (temp2)
39669 delete arg2;
39670 }
39671 return resultobj;
39672 fail:
39673 {
39674 if (temp2)
39675 delete arg2;
39676 }
39677 return NULL;
39678 }
39679
39680
39681 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39682 PyObject *resultobj = 0;
39683 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39684 wxHelpEvent::Origin result;
39685 void *argp1 = 0 ;
39686 int res1 = 0 ;
39687 PyObject *swig_obj[1] ;
39688
39689 if (!args) SWIG_fail;
39690 swig_obj[0] = args;
39691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39692 if (!SWIG_IsOK(res1)) {
39693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39694 }
39695 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39696 {
39697 PyThreadState* __tstate = wxPyBeginAllowThreads();
39698 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39699 wxPyEndAllowThreads(__tstate);
39700 if (PyErr_Occurred()) SWIG_fail;
39701 }
39702 resultobj = SWIG_From_int(static_cast< int >(result));
39703 return resultobj;
39704 fail:
39705 return NULL;
39706 }
39707
39708
39709 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39710 PyObject *resultobj = 0;
39711 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39712 wxHelpEvent::Origin arg2 ;
39713 void *argp1 = 0 ;
39714 int res1 = 0 ;
39715 int val2 ;
39716 int ecode2 = 0 ;
39717 PyObject * obj0 = 0 ;
39718 PyObject * obj1 = 0 ;
39719 char * kwnames[] = {
39720 (char *) "self",(char *) "origin", NULL
39721 };
39722
39723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39725 if (!SWIG_IsOK(res1)) {
39726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39727 }
39728 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39729 ecode2 = SWIG_AsVal_int(obj1, &val2);
39730 if (!SWIG_IsOK(ecode2)) {
39731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39732 }
39733 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39734 {
39735 PyThreadState* __tstate = wxPyBeginAllowThreads();
39736 (arg1)->SetOrigin(arg2);
39737 wxPyEndAllowThreads(__tstate);
39738 if (PyErr_Occurred()) SWIG_fail;
39739 }
39740 resultobj = SWIG_Py_Void();
39741 return resultobj;
39742 fail:
39743 return NULL;
39744 }
39745
39746
39747 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39748 PyObject *obj;
39749 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39750 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39751 return SWIG_Py_Void();
39752 }
39753
39754 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39755 return SWIG_Python_InitShadowInstance(args);
39756 }
39757
39758 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39759 PyObject *resultobj = 0;
39760 wxWindow *arg1 = (wxWindow *) NULL ;
39761 bool arg2 = (bool) true ;
39762 wxContextHelp *result = 0 ;
39763 void *argp1 = 0 ;
39764 int res1 = 0 ;
39765 bool val2 ;
39766 int ecode2 = 0 ;
39767 PyObject * obj0 = 0 ;
39768 PyObject * obj1 = 0 ;
39769 char * kwnames[] = {
39770 (char *) "window",(char *) "doNow", NULL
39771 };
39772
39773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39774 if (obj0) {
39775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39776 if (!SWIG_IsOK(res1)) {
39777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39778 }
39779 arg1 = reinterpret_cast< wxWindow * >(argp1);
39780 }
39781 if (obj1) {
39782 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39783 if (!SWIG_IsOK(ecode2)) {
39784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39785 }
39786 arg2 = static_cast< bool >(val2);
39787 }
39788 {
39789 if (!wxPyCheckForApp()) SWIG_fail;
39790 PyThreadState* __tstate = wxPyBeginAllowThreads();
39791 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39792 wxPyEndAllowThreads(__tstate);
39793 if (PyErr_Occurred()) SWIG_fail;
39794 }
39795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39796 return resultobj;
39797 fail:
39798 return NULL;
39799 }
39800
39801
39802 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39803 PyObject *resultobj = 0;
39804 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39805 void *argp1 = 0 ;
39806 int res1 = 0 ;
39807 PyObject *swig_obj[1] ;
39808
39809 if (!args) SWIG_fail;
39810 swig_obj[0] = args;
39811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39812 if (!SWIG_IsOK(res1)) {
39813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39814 }
39815 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39816 {
39817 PyThreadState* __tstate = wxPyBeginAllowThreads();
39818 delete arg1;
39819
39820 wxPyEndAllowThreads(__tstate);
39821 if (PyErr_Occurred()) SWIG_fail;
39822 }
39823 resultobj = SWIG_Py_Void();
39824 return resultobj;
39825 fail:
39826 return NULL;
39827 }
39828
39829
39830 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39831 PyObject *resultobj = 0;
39832 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39833 wxWindow *arg2 = (wxWindow *) NULL ;
39834 bool result;
39835 void *argp1 = 0 ;
39836 int res1 = 0 ;
39837 void *argp2 = 0 ;
39838 int res2 = 0 ;
39839 PyObject * obj0 = 0 ;
39840 PyObject * obj1 = 0 ;
39841 char * kwnames[] = {
39842 (char *) "self",(char *) "window", NULL
39843 };
39844
39845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39847 if (!SWIG_IsOK(res1)) {
39848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39849 }
39850 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39851 if (obj1) {
39852 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39853 if (!SWIG_IsOK(res2)) {
39854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39855 }
39856 arg2 = reinterpret_cast< wxWindow * >(argp2);
39857 }
39858 {
39859 PyThreadState* __tstate = wxPyBeginAllowThreads();
39860 result = (bool)(arg1)->BeginContextHelp(arg2);
39861 wxPyEndAllowThreads(__tstate);
39862 if (PyErr_Occurred()) SWIG_fail;
39863 }
39864 {
39865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39866 }
39867 return resultobj;
39868 fail:
39869 return NULL;
39870 }
39871
39872
39873 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39874 PyObject *resultobj = 0;
39875 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39876 bool result;
39877 void *argp1 = 0 ;
39878 int res1 = 0 ;
39879 PyObject *swig_obj[1] ;
39880
39881 if (!args) SWIG_fail;
39882 swig_obj[0] = args;
39883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39884 if (!SWIG_IsOK(res1)) {
39885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39886 }
39887 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39888 {
39889 PyThreadState* __tstate = wxPyBeginAllowThreads();
39890 result = (bool)(arg1)->EndContextHelp();
39891 wxPyEndAllowThreads(__tstate);
39892 if (PyErr_Occurred()) SWIG_fail;
39893 }
39894 {
39895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39896 }
39897 return resultobj;
39898 fail:
39899 return NULL;
39900 }
39901
39902
39903 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39904 PyObject *obj;
39905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39906 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39907 return SWIG_Py_Void();
39908 }
39909
39910 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39911 return SWIG_Python_InitShadowInstance(args);
39912 }
39913
39914 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39915 PyObject *resultobj = 0;
39916 wxWindow *arg1 = (wxWindow *) 0 ;
39917 int arg2 = (int) wxID_CONTEXT_HELP ;
39918 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39919 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39920 wxSize const &arg4_defvalue = wxDefaultSize ;
39921 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39922 long arg5 = (long) wxBU_AUTODRAW ;
39923 wxContextHelpButton *result = 0 ;
39924 void *argp1 = 0 ;
39925 int res1 = 0 ;
39926 int val2 ;
39927 int ecode2 = 0 ;
39928 wxPoint temp3 ;
39929 wxSize temp4 ;
39930 long val5 ;
39931 int ecode5 = 0 ;
39932 PyObject * obj0 = 0 ;
39933 PyObject * obj1 = 0 ;
39934 PyObject * obj2 = 0 ;
39935 PyObject * obj3 = 0 ;
39936 PyObject * obj4 = 0 ;
39937 char * kwnames[] = {
39938 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39939 };
39940
39941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39943 if (!SWIG_IsOK(res1)) {
39944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39945 }
39946 arg1 = reinterpret_cast< wxWindow * >(argp1);
39947 if (obj1) {
39948 ecode2 = SWIG_AsVal_int(obj1, &val2);
39949 if (!SWIG_IsOK(ecode2)) {
39950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39951 }
39952 arg2 = static_cast< int >(val2);
39953 }
39954 if (obj2) {
39955 {
39956 arg3 = &temp3;
39957 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39958 }
39959 }
39960 if (obj3) {
39961 {
39962 arg4 = &temp4;
39963 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39964 }
39965 }
39966 if (obj4) {
39967 ecode5 = SWIG_AsVal_long(obj4, &val5);
39968 if (!SWIG_IsOK(ecode5)) {
39969 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39970 }
39971 arg5 = static_cast< long >(val5);
39972 }
39973 {
39974 if (!wxPyCheckForApp()) SWIG_fail;
39975 PyThreadState* __tstate = wxPyBeginAllowThreads();
39976 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39977 wxPyEndAllowThreads(__tstate);
39978 if (PyErr_Occurred()) SWIG_fail;
39979 }
39980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39981 return resultobj;
39982 fail:
39983 return NULL;
39984 }
39985
39986
39987 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39988 PyObject *obj;
39989 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39990 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39991 return SWIG_Py_Void();
39992 }
39993
39994 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39995 return SWIG_Python_InitShadowInstance(args);
39996 }
39997
39998 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39999 PyObject *resultobj = 0;
40000 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40001 void *argp1 = 0 ;
40002 int res1 = 0 ;
40003 PyObject *swig_obj[1] ;
40004
40005 if (!args) SWIG_fail;
40006 swig_obj[0] = args;
40007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40008 if (!SWIG_IsOK(res1)) {
40009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40010 }
40011 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40012 {
40013 PyThreadState* __tstate = wxPyBeginAllowThreads();
40014 delete arg1;
40015
40016 wxPyEndAllowThreads(__tstate);
40017 if (PyErr_Occurred()) SWIG_fail;
40018 }
40019 resultobj = SWIG_Py_Void();
40020 return resultobj;
40021 fail:
40022 return NULL;
40023 }
40024
40025
40026 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40027 PyObject *resultobj = 0;
40028 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40029 wxHelpProvider *result = 0 ;
40030 int res1 = 0 ;
40031 PyObject * obj0 = 0 ;
40032 char * kwnames[] = {
40033 (char *) "helpProvider", NULL
40034 };
40035
40036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40037 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40038 if (!SWIG_IsOK(res1)) {
40039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40040 }
40041 {
40042 PyThreadState* __tstate = wxPyBeginAllowThreads();
40043 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40044 wxPyEndAllowThreads(__tstate);
40045 if (PyErr_Occurred()) SWIG_fail;
40046 }
40047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40048 return resultobj;
40049 fail:
40050 return NULL;
40051 }
40052
40053
40054 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40055 PyObject *resultobj = 0;
40056 wxHelpProvider *result = 0 ;
40057
40058 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40059 {
40060 PyThreadState* __tstate = wxPyBeginAllowThreads();
40061 result = (wxHelpProvider *)wxHelpProvider::Get();
40062 wxPyEndAllowThreads(__tstate);
40063 if (PyErr_Occurred()) SWIG_fail;
40064 }
40065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40066 return resultobj;
40067 fail:
40068 return NULL;
40069 }
40070
40071
40072 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40073 PyObject *resultobj = 0;
40074 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40075 wxWindow *arg2 = (wxWindow *) 0 ;
40076 wxString result;
40077 void *argp1 = 0 ;
40078 int res1 = 0 ;
40079 void *argp2 = 0 ;
40080 int res2 = 0 ;
40081 PyObject * obj0 = 0 ;
40082 PyObject * obj1 = 0 ;
40083 char * kwnames[] = {
40084 (char *) "self",(char *) "window", NULL
40085 };
40086
40087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40089 if (!SWIG_IsOK(res1)) {
40090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40091 }
40092 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40093 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40094 if (!SWIG_IsOK(res2)) {
40095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40096 }
40097 arg2 = reinterpret_cast< wxWindow * >(argp2);
40098 {
40099 PyThreadState* __tstate = wxPyBeginAllowThreads();
40100 result = (arg1)->GetHelp((wxWindow const *)arg2);
40101 wxPyEndAllowThreads(__tstate);
40102 if (PyErr_Occurred()) SWIG_fail;
40103 }
40104 {
40105 #if wxUSE_UNICODE
40106 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40107 #else
40108 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40109 #endif
40110 }
40111 return resultobj;
40112 fail:
40113 return NULL;
40114 }
40115
40116
40117 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40118 PyObject *resultobj = 0;
40119 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40120 wxWindow *arg2 = (wxWindow *) 0 ;
40121 bool result;
40122 void *argp1 = 0 ;
40123 int res1 = 0 ;
40124 void *argp2 = 0 ;
40125 int res2 = 0 ;
40126 PyObject * obj0 = 0 ;
40127 PyObject * obj1 = 0 ;
40128 char * kwnames[] = {
40129 (char *) "self",(char *) "window", NULL
40130 };
40131
40132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40134 if (!SWIG_IsOK(res1)) {
40135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40136 }
40137 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40138 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40139 if (!SWIG_IsOK(res2)) {
40140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40141 }
40142 arg2 = reinterpret_cast< wxWindow * >(argp2);
40143 {
40144 PyThreadState* __tstate = wxPyBeginAllowThreads();
40145 result = (bool)(arg1)->ShowHelp(arg2);
40146 wxPyEndAllowThreads(__tstate);
40147 if (PyErr_Occurred()) SWIG_fail;
40148 }
40149 {
40150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40151 }
40152 return resultobj;
40153 fail:
40154 return NULL;
40155 }
40156
40157
40158 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40159 PyObject *resultobj = 0;
40160 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40161 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40162 wxPoint *arg3 = 0 ;
40163 wxHelpEvent::Origin arg4 ;
40164 bool result;
40165 void *argp1 = 0 ;
40166 int res1 = 0 ;
40167 void *argp2 = 0 ;
40168 int res2 = 0 ;
40169 wxPoint temp3 ;
40170 int val4 ;
40171 int ecode4 = 0 ;
40172 PyObject * obj0 = 0 ;
40173 PyObject * obj1 = 0 ;
40174 PyObject * obj2 = 0 ;
40175 PyObject * obj3 = 0 ;
40176 char * kwnames[] = {
40177 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40178 };
40179
40180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40182 if (!SWIG_IsOK(res1)) {
40183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40184 }
40185 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40187 if (!SWIG_IsOK(res2)) {
40188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40189 }
40190 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40191 {
40192 arg3 = &temp3;
40193 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40194 }
40195 ecode4 = SWIG_AsVal_int(obj3, &val4);
40196 if (!SWIG_IsOK(ecode4)) {
40197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40198 }
40199 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40200 {
40201 PyThreadState* __tstate = wxPyBeginAllowThreads();
40202 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40203 wxPyEndAllowThreads(__tstate);
40204 if (PyErr_Occurred()) SWIG_fail;
40205 }
40206 {
40207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40208 }
40209 return resultobj;
40210 fail:
40211 return NULL;
40212 }
40213
40214
40215 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40216 PyObject *resultobj = 0;
40217 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40218 wxWindow *arg2 = (wxWindow *) 0 ;
40219 wxString *arg3 = 0 ;
40220 void *argp1 = 0 ;
40221 int res1 = 0 ;
40222 void *argp2 = 0 ;
40223 int res2 = 0 ;
40224 bool temp3 = false ;
40225 PyObject * obj0 = 0 ;
40226 PyObject * obj1 = 0 ;
40227 PyObject * obj2 = 0 ;
40228 char * kwnames[] = {
40229 (char *) "self",(char *) "window",(char *) "text", NULL
40230 };
40231
40232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40234 if (!SWIG_IsOK(res1)) {
40235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40236 }
40237 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40239 if (!SWIG_IsOK(res2)) {
40240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40241 }
40242 arg2 = reinterpret_cast< wxWindow * >(argp2);
40243 {
40244 arg3 = wxString_in_helper(obj2);
40245 if (arg3 == NULL) SWIG_fail;
40246 temp3 = true;
40247 }
40248 {
40249 PyThreadState* __tstate = wxPyBeginAllowThreads();
40250 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40251 wxPyEndAllowThreads(__tstate);
40252 if (PyErr_Occurred()) SWIG_fail;
40253 }
40254 resultobj = SWIG_Py_Void();
40255 {
40256 if (temp3)
40257 delete arg3;
40258 }
40259 return resultobj;
40260 fail:
40261 {
40262 if (temp3)
40263 delete arg3;
40264 }
40265 return NULL;
40266 }
40267
40268
40269 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40270 PyObject *resultobj = 0;
40271 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40272 int arg2 ;
40273 wxString *arg3 = 0 ;
40274 void *argp1 = 0 ;
40275 int res1 = 0 ;
40276 int val2 ;
40277 int ecode2 = 0 ;
40278 bool temp3 = false ;
40279 PyObject * obj0 = 0 ;
40280 PyObject * obj1 = 0 ;
40281 PyObject * obj2 = 0 ;
40282 char * kwnames[] = {
40283 (char *) "self",(char *) "id",(char *) "text", NULL
40284 };
40285
40286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40288 if (!SWIG_IsOK(res1)) {
40289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40290 }
40291 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40292 ecode2 = SWIG_AsVal_int(obj1, &val2);
40293 if (!SWIG_IsOK(ecode2)) {
40294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40295 }
40296 arg2 = static_cast< int >(val2);
40297 {
40298 arg3 = wxString_in_helper(obj2);
40299 if (arg3 == NULL) SWIG_fail;
40300 temp3 = true;
40301 }
40302 {
40303 PyThreadState* __tstate = wxPyBeginAllowThreads();
40304 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40305 wxPyEndAllowThreads(__tstate);
40306 if (PyErr_Occurred()) SWIG_fail;
40307 }
40308 resultobj = SWIG_Py_Void();
40309 {
40310 if (temp3)
40311 delete arg3;
40312 }
40313 return resultobj;
40314 fail:
40315 {
40316 if (temp3)
40317 delete arg3;
40318 }
40319 return NULL;
40320 }
40321
40322
40323 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40324 PyObject *resultobj = 0;
40325 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40326 wxWindow *arg2 = (wxWindow *) 0 ;
40327 void *argp1 = 0 ;
40328 int res1 = 0 ;
40329 void *argp2 = 0 ;
40330 int res2 = 0 ;
40331 PyObject * obj0 = 0 ;
40332 PyObject * obj1 = 0 ;
40333 char * kwnames[] = {
40334 (char *) "self",(char *) "window", NULL
40335 };
40336
40337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40339 if (!SWIG_IsOK(res1)) {
40340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40341 }
40342 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40344 if (!SWIG_IsOK(res2)) {
40345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40346 }
40347 arg2 = reinterpret_cast< wxWindow * >(argp2);
40348 {
40349 PyThreadState* __tstate = wxPyBeginAllowThreads();
40350 (arg1)->RemoveHelp(arg2);
40351 wxPyEndAllowThreads(__tstate);
40352 if (PyErr_Occurred()) SWIG_fail;
40353 }
40354 resultobj = SWIG_Py_Void();
40355 return resultobj;
40356 fail:
40357 return NULL;
40358 }
40359
40360
40361 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40362 PyObject *resultobj = 0;
40363 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40364 void *argp1 = 0 ;
40365 int res1 = 0 ;
40366 PyObject *swig_obj[1] ;
40367
40368 if (!args) SWIG_fail;
40369 swig_obj[0] = args;
40370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40371 if (!SWIG_IsOK(res1)) {
40372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40373 }
40374 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40375 {
40376 PyThreadState* __tstate = wxPyBeginAllowThreads();
40377 wxHelpProvider_Destroy(arg1);
40378 wxPyEndAllowThreads(__tstate);
40379 if (PyErr_Occurred()) SWIG_fail;
40380 }
40381 resultobj = SWIG_Py_Void();
40382 return resultobj;
40383 fail:
40384 return NULL;
40385 }
40386
40387
40388 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40389 PyObject *obj;
40390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40391 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40392 return SWIG_Py_Void();
40393 }
40394
40395 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40396 PyObject *resultobj = 0;
40397 wxSimpleHelpProvider *result = 0 ;
40398
40399 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40400 {
40401 PyThreadState* __tstate = wxPyBeginAllowThreads();
40402 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40403 wxPyEndAllowThreads(__tstate);
40404 if (PyErr_Occurred()) SWIG_fail;
40405 }
40406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40407 return resultobj;
40408 fail:
40409 return NULL;
40410 }
40411
40412
40413 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40414 PyObject *obj;
40415 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40416 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40417 return SWIG_Py_Void();
40418 }
40419
40420 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40421 return SWIG_Python_InitShadowInstance(args);
40422 }
40423
40424 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40425 PyObject *resultobj = 0;
40426 wxBitmap *arg1 = 0 ;
40427 wxCursor const &arg2_defvalue = wxNullCursor ;
40428 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40429 wxGenericDragImage *result = 0 ;
40430 void *argp1 = 0 ;
40431 int res1 = 0 ;
40432 void *argp2 = 0 ;
40433 int res2 = 0 ;
40434 PyObject * obj0 = 0 ;
40435 PyObject * obj1 = 0 ;
40436 char * kwnames[] = {
40437 (char *) "image",(char *) "cursor", NULL
40438 };
40439
40440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40441 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40442 if (!SWIG_IsOK(res1)) {
40443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40444 }
40445 if (!argp1) {
40446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40447 }
40448 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40449 if (obj1) {
40450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40451 if (!SWIG_IsOK(res2)) {
40452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40453 }
40454 if (!argp2) {
40455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40456 }
40457 arg2 = reinterpret_cast< wxCursor * >(argp2);
40458 }
40459 {
40460 if (!wxPyCheckForApp()) SWIG_fail;
40461 PyThreadState* __tstate = wxPyBeginAllowThreads();
40462 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40463 wxPyEndAllowThreads(__tstate);
40464 if (PyErr_Occurred()) SWIG_fail;
40465 }
40466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40467 return resultobj;
40468 fail:
40469 return NULL;
40470 }
40471
40472
40473 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40474 PyObject *resultobj = 0;
40475 wxIcon *arg1 = 0 ;
40476 wxCursor const &arg2_defvalue = wxNullCursor ;
40477 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40478 wxGenericDragImage *result = 0 ;
40479 void *argp1 = 0 ;
40480 int res1 = 0 ;
40481 void *argp2 = 0 ;
40482 int res2 = 0 ;
40483 PyObject * obj0 = 0 ;
40484 PyObject * obj1 = 0 ;
40485 char * kwnames[] = {
40486 (char *) "image",(char *) "cursor", NULL
40487 };
40488
40489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40490 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40491 if (!SWIG_IsOK(res1)) {
40492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40493 }
40494 if (!argp1) {
40495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40496 }
40497 arg1 = reinterpret_cast< wxIcon * >(argp1);
40498 if (obj1) {
40499 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40500 if (!SWIG_IsOK(res2)) {
40501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40502 }
40503 if (!argp2) {
40504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40505 }
40506 arg2 = reinterpret_cast< wxCursor * >(argp2);
40507 }
40508 {
40509 if (!wxPyCheckForApp()) SWIG_fail;
40510 PyThreadState* __tstate = wxPyBeginAllowThreads();
40511 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40512 wxPyEndAllowThreads(__tstate);
40513 if (PyErr_Occurred()) SWIG_fail;
40514 }
40515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40516 return resultobj;
40517 fail:
40518 return NULL;
40519 }
40520
40521
40522 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40523 PyObject *resultobj = 0;
40524 wxString *arg1 = 0 ;
40525 wxCursor const &arg2_defvalue = wxNullCursor ;
40526 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40527 wxGenericDragImage *result = 0 ;
40528 bool temp1 = false ;
40529 void *argp2 = 0 ;
40530 int res2 = 0 ;
40531 PyObject * obj0 = 0 ;
40532 PyObject * obj1 = 0 ;
40533 char * kwnames[] = {
40534 (char *) "str",(char *) "cursor", NULL
40535 };
40536
40537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40538 {
40539 arg1 = wxString_in_helper(obj0);
40540 if (arg1 == NULL) SWIG_fail;
40541 temp1 = true;
40542 }
40543 if (obj1) {
40544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40545 if (!SWIG_IsOK(res2)) {
40546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40547 }
40548 if (!argp2) {
40549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40550 }
40551 arg2 = reinterpret_cast< wxCursor * >(argp2);
40552 }
40553 {
40554 if (!wxPyCheckForApp()) SWIG_fail;
40555 PyThreadState* __tstate = wxPyBeginAllowThreads();
40556 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40557 wxPyEndAllowThreads(__tstate);
40558 if (PyErr_Occurred()) SWIG_fail;
40559 }
40560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40561 {
40562 if (temp1)
40563 delete arg1;
40564 }
40565 return resultobj;
40566 fail:
40567 {
40568 if (temp1)
40569 delete arg1;
40570 }
40571 return NULL;
40572 }
40573
40574
40575 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40576 PyObject *resultobj = 0;
40577 wxPyTreeCtrl *arg1 = 0 ;
40578 wxTreeItemId *arg2 = 0 ;
40579 wxGenericDragImage *result = 0 ;
40580 void *argp1 = 0 ;
40581 int res1 = 0 ;
40582 void *argp2 = 0 ;
40583 int res2 = 0 ;
40584 PyObject * obj0 = 0 ;
40585 PyObject * obj1 = 0 ;
40586 char * kwnames[] = {
40587 (char *) "treeCtrl",(char *) "id", NULL
40588 };
40589
40590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40591 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40592 if (!SWIG_IsOK(res1)) {
40593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40594 }
40595 if (!argp1) {
40596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40597 }
40598 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40600 if (!SWIG_IsOK(res2)) {
40601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40602 }
40603 if (!argp2) {
40604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40605 }
40606 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40607 {
40608 if (!wxPyCheckForApp()) SWIG_fail;
40609 PyThreadState* __tstate = wxPyBeginAllowThreads();
40610 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40611 wxPyEndAllowThreads(__tstate);
40612 if (PyErr_Occurred()) SWIG_fail;
40613 }
40614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40615 return resultobj;
40616 fail:
40617 return NULL;
40618 }
40619
40620
40621 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40622 PyObject *resultobj = 0;
40623 wxPyListCtrl *arg1 = 0 ;
40624 long arg2 ;
40625 wxGenericDragImage *result = 0 ;
40626 void *argp1 = 0 ;
40627 int res1 = 0 ;
40628 long val2 ;
40629 int ecode2 = 0 ;
40630 PyObject * obj0 = 0 ;
40631 PyObject * obj1 = 0 ;
40632 char * kwnames[] = {
40633 (char *) "listCtrl",(char *) "id", NULL
40634 };
40635
40636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40637 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40638 if (!SWIG_IsOK(res1)) {
40639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40640 }
40641 if (!argp1) {
40642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40643 }
40644 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40645 ecode2 = SWIG_AsVal_long(obj1, &val2);
40646 if (!SWIG_IsOK(ecode2)) {
40647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40648 }
40649 arg2 = static_cast< long >(val2);
40650 {
40651 if (!wxPyCheckForApp()) SWIG_fail;
40652 PyThreadState* __tstate = wxPyBeginAllowThreads();
40653 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40654 wxPyEndAllowThreads(__tstate);
40655 if (PyErr_Occurred()) SWIG_fail;
40656 }
40657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40658 return resultobj;
40659 fail:
40660 return NULL;
40661 }
40662
40663
40664 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40665 PyObject *resultobj = 0;
40666 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40667 void *argp1 = 0 ;
40668 int res1 = 0 ;
40669 PyObject *swig_obj[1] ;
40670
40671 if (!args) SWIG_fail;
40672 swig_obj[0] = args;
40673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40674 if (!SWIG_IsOK(res1)) {
40675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40676 }
40677 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40678 {
40679 PyThreadState* __tstate = wxPyBeginAllowThreads();
40680 delete arg1;
40681
40682 wxPyEndAllowThreads(__tstate);
40683 if (PyErr_Occurred()) SWIG_fail;
40684 }
40685 resultobj = SWIG_Py_Void();
40686 return resultobj;
40687 fail:
40688 return NULL;
40689 }
40690
40691
40692 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40693 PyObject *resultobj = 0;
40694 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40695 wxBitmap *arg2 = (wxBitmap *) 0 ;
40696 void *argp1 = 0 ;
40697 int res1 = 0 ;
40698 void *argp2 = 0 ;
40699 int res2 = 0 ;
40700 PyObject * obj0 = 0 ;
40701 PyObject * obj1 = 0 ;
40702 char * kwnames[] = {
40703 (char *) "self",(char *) "bitmap", NULL
40704 };
40705
40706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40708 if (!SWIG_IsOK(res1)) {
40709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40710 }
40711 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40712 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40713 if (!SWIG_IsOK(res2)) {
40714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40715 }
40716 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40717 {
40718 PyThreadState* __tstate = wxPyBeginAllowThreads();
40719 (arg1)->SetBackingBitmap(arg2);
40720 wxPyEndAllowThreads(__tstate);
40721 if (PyErr_Occurred()) SWIG_fail;
40722 }
40723 resultobj = SWIG_Py_Void();
40724 return resultobj;
40725 fail:
40726 return NULL;
40727 }
40728
40729
40730 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40731 PyObject *resultobj = 0;
40732 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40733 wxPoint *arg2 = 0 ;
40734 wxWindow *arg3 = (wxWindow *) 0 ;
40735 bool arg4 = (bool) false ;
40736 wxRect *arg5 = (wxRect *) NULL ;
40737 bool result;
40738 void *argp1 = 0 ;
40739 int res1 = 0 ;
40740 wxPoint temp2 ;
40741 void *argp3 = 0 ;
40742 int res3 = 0 ;
40743 bool val4 ;
40744 int ecode4 = 0 ;
40745 void *argp5 = 0 ;
40746 int res5 = 0 ;
40747 PyObject * obj0 = 0 ;
40748 PyObject * obj1 = 0 ;
40749 PyObject * obj2 = 0 ;
40750 PyObject * obj3 = 0 ;
40751 PyObject * obj4 = 0 ;
40752 char * kwnames[] = {
40753 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40754 };
40755
40756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40758 if (!SWIG_IsOK(res1)) {
40759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40760 }
40761 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40762 {
40763 arg2 = &temp2;
40764 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40765 }
40766 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40767 if (!SWIG_IsOK(res3)) {
40768 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40769 }
40770 arg3 = reinterpret_cast< wxWindow * >(argp3);
40771 if (obj3) {
40772 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40773 if (!SWIG_IsOK(ecode4)) {
40774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40775 }
40776 arg4 = static_cast< bool >(val4);
40777 }
40778 if (obj4) {
40779 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40780 if (!SWIG_IsOK(res5)) {
40781 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40782 }
40783 arg5 = reinterpret_cast< wxRect * >(argp5);
40784 }
40785 {
40786 PyThreadState* __tstate = wxPyBeginAllowThreads();
40787 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40788 wxPyEndAllowThreads(__tstate);
40789 if (PyErr_Occurred()) SWIG_fail;
40790 }
40791 {
40792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40793 }
40794 return resultobj;
40795 fail:
40796 return NULL;
40797 }
40798
40799
40800 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40801 PyObject *resultobj = 0;
40802 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40803 wxPoint *arg2 = 0 ;
40804 wxWindow *arg3 = (wxWindow *) 0 ;
40805 wxWindow *arg4 = (wxWindow *) 0 ;
40806 bool result;
40807 void *argp1 = 0 ;
40808 int res1 = 0 ;
40809 wxPoint temp2 ;
40810 void *argp3 = 0 ;
40811 int res3 = 0 ;
40812 void *argp4 = 0 ;
40813 int res4 = 0 ;
40814 PyObject * obj0 = 0 ;
40815 PyObject * obj1 = 0 ;
40816 PyObject * obj2 = 0 ;
40817 PyObject * obj3 = 0 ;
40818 char * kwnames[] = {
40819 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40820 };
40821
40822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40824 if (!SWIG_IsOK(res1)) {
40825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40826 }
40827 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40828 {
40829 arg2 = &temp2;
40830 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40831 }
40832 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40833 if (!SWIG_IsOK(res3)) {
40834 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40835 }
40836 arg3 = reinterpret_cast< wxWindow * >(argp3);
40837 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40838 if (!SWIG_IsOK(res4)) {
40839 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40840 }
40841 arg4 = reinterpret_cast< wxWindow * >(argp4);
40842 {
40843 PyThreadState* __tstate = wxPyBeginAllowThreads();
40844 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40845 wxPyEndAllowThreads(__tstate);
40846 if (PyErr_Occurred()) SWIG_fail;
40847 }
40848 {
40849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40850 }
40851 return resultobj;
40852 fail:
40853 return NULL;
40854 }
40855
40856
40857 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40858 PyObject *resultobj = 0;
40859 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40860 bool result;
40861 void *argp1 = 0 ;
40862 int res1 = 0 ;
40863 PyObject *swig_obj[1] ;
40864
40865 if (!args) SWIG_fail;
40866 swig_obj[0] = args;
40867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40868 if (!SWIG_IsOK(res1)) {
40869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40870 }
40871 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40872 {
40873 PyThreadState* __tstate = wxPyBeginAllowThreads();
40874 result = (bool)(arg1)->EndDrag();
40875 wxPyEndAllowThreads(__tstate);
40876 if (PyErr_Occurred()) SWIG_fail;
40877 }
40878 {
40879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40880 }
40881 return resultobj;
40882 fail:
40883 return NULL;
40884 }
40885
40886
40887 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40888 PyObject *resultobj = 0;
40889 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40890 wxPoint *arg2 = 0 ;
40891 bool result;
40892 void *argp1 = 0 ;
40893 int res1 = 0 ;
40894 wxPoint temp2 ;
40895 PyObject * obj0 = 0 ;
40896 PyObject * obj1 = 0 ;
40897 char * kwnames[] = {
40898 (char *) "self",(char *) "pt", NULL
40899 };
40900
40901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40903 if (!SWIG_IsOK(res1)) {
40904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40905 }
40906 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40907 {
40908 arg2 = &temp2;
40909 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40910 }
40911 {
40912 PyThreadState* __tstate = wxPyBeginAllowThreads();
40913 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40914 wxPyEndAllowThreads(__tstate);
40915 if (PyErr_Occurred()) SWIG_fail;
40916 }
40917 {
40918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40919 }
40920 return resultobj;
40921 fail:
40922 return NULL;
40923 }
40924
40925
40926 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40927 PyObject *resultobj = 0;
40928 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40929 bool result;
40930 void *argp1 = 0 ;
40931 int res1 = 0 ;
40932 PyObject *swig_obj[1] ;
40933
40934 if (!args) SWIG_fail;
40935 swig_obj[0] = args;
40936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40937 if (!SWIG_IsOK(res1)) {
40938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40939 }
40940 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40941 {
40942 PyThreadState* __tstate = wxPyBeginAllowThreads();
40943 result = (bool)(arg1)->Show();
40944 wxPyEndAllowThreads(__tstate);
40945 if (PyErr_Occurred()) SWIG_fail;
40946 }
40947 {
40948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40949 }
40950 return resultobj;
40951 fail:
40952 return NULL;
40953 }
40954
40955
40956 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40957 PyObject *resultobj = 0;
40958 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40959 bool result;
40960 void *argp1 = 0 ;
40961 int res1 = 0 ;
40962 PyObject *swig_obj[1] ;
40963
40964 if (!args) SWIG_fail;
40965 swig_obj[0] = args;
40966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40967 if (!SWIG_IsOK(res1)) {
40968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40969 }
40970 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40971 {
40972 PyThreadState* __tstate = wxPyBeginAllowThreads();
40973 result = (bool)(arg1)->Hide();
40974 wxPyEndAllowThreads(__tstate);
40975 if (PyErr_Occurred()) SWIG_fail;
40976 }
40977 {
40978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40979 }
40980 return resultobj;
40981 fail:
40982 return NULL;
40983 }
40984
40985
40986 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40987 PyObject *resultobj = 0;
40988 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40989 wxPoint *arg2 = 0 ;
40990 wxRect result;
40991 void *argp1 = 0 ;
40992 int res1 = 0 ;
40993 wxPoint temp2 ;
40994 PyObject * obj0 = 0 ;
40995 PyObject * obj1 = 0 ;
40996 char * kwnames[] = {
40997 (char *) "self",(char *) "pos", NULL
40998 };
40999
41000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41002 if (!SWIG_IsOK(res1)) {
41003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41004 }
41005 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41006 {
41007 arg2 = &temp2;
41008 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41009 }
41010 {
41011 PyThreadState* __tstate = wxPyBeginAllowThreads();
41012 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41013 wxPyEndAllowThreads(__tstate);
41014 if (PyErr_Occurred()) SWIG_fail;
41015 }
41016 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41017 return resultobj;
41018 fail:
41019 return NULL;
41020 }
41021
41022
41023 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41024 PyObject *resultobj = 0;
41025 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41026 wxDC *arg2 = 0 ;
41027 wxPoint *arg3 = 0 ;
41028 bool result;
41029 void *argp1 = 0 ;
41030 int res1 = 0 ;
41031 void *argp2 = 0 ;
41032 int res2 = 0 ;
41033 wxPoint temp3 ;
41034 PyObject * obj0 = 0 ;
41035 PyObject * obj1 = 0 ;
41036 PyObject * obj2 = 0 ;
41037 char * kwnames[] = {
41038 (char *) "self",(char *) "dc",(char *) "pos", NULL
41039 };
41040
41041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41043 if (!SWIG_IsOK(res1)) {
41044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41045 }
41046 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41048 if (!SWIG_IsOK(res2)) {
41049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41050 }
41051 if (!argp2) {
41052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41053 }
41054 arg2 = reinterpret_cast< wxDC * >(argp2);
41055 {
41056 arg3 = &temp3;
41057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41058 }
41059 {
41060 PyThreadState* __tstate = wxPyBeginAllowThreads();
41061 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41062 wxPyEndAllowThreads(__tstate);
41063 if (PyErr_Occurred()) SWIG_fail;
41064 }
41065 {
41066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41067 }
41068 return resultobj;
41069 fail:
41070 return NULL;
41071 }
41072
41073
41074 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41075 PyObject *resultobj = 0;
41076 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41077 wxDC *arg2 = 0 ;
41078 wxMemoryDC *arg3 = 0 ;
41079 wxRect *arg4 = 0 ;
41080 wxRect *arg5 = 0 ;
41081 bool result;
41082 void *argp1 = 0 ;
41083 int res1 = 0 ;
41084 void *argp2 = 0 ;
41085 int res2 = 0 ;
41086 void *argp3 = 0 ;
41087 int res3 = 0 ;
41088 wxRect temp4 ;
41089 wxRect temp5 ;
41090 PyObject * obj0 = 0 ;
41091 PyObject * obj1 = 0 ;
41092 PyObject * obj2 = 0 ;
41093 PyObject * obj3 = 0 ;
41094 PyObject * obj4 = 0 ;
41095 char * kwnames[] = {
41096 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41097 };
41098
41099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41101 if (!SWIG_IsOK(res1)) {
41102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41103 }
41104 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41106 if (!SWIG_IsOK(res2)) {
41107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41108 }
41109 if (!argp2) {
41110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41111 }
41112 arg2 = reinterpret_cast< wxDC * >(argp2);
41113 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41114 if (!SWIG_IsOK(res3)) {
41115 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41116 }
41117 if (!argp3) {
41118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41119 }
41120 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41121 {
41122 arg4 = &temp4;
41123 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41124 }
41125 {
41126 arg5 = &temp5;
41127 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41128 }
41129 {
41130 PyThreadState* __tstate = wxPyBeginAllowThreads();
41131 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41132 wxPyEndAllowThreads(__tstate);
41133 if (PyErr_Occurred()) SWIG_fail;
41134 }
41135 {
41136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41137 }
41138 return resultobj;
41139 fail:
41140 return NULL;
41141 }
41142
41143
41144 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41145 PyObject *resultobj = 0;
41146 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41147 wxPoint *arg2 = 0 ;
41148 wxPoint *arg3 = 0 ;
41149 bool arg4 ;
41150 bool arg5 ;
41151 bool result;
41152 void *argp1 = 0 ;
41153 int res1 = 0 ;
41154 wxPoint temp2 ;
41155 wxPoint temp3 ;
41156 bool val4 ;
41157 int ecode4 = 0 ;
41158 bool val5 ;
41159 int ecode5 = 0 ;
41160 PyObject * obj0 = 0 ;
41161 PyObject * obj1 = 0 ;
41162 PyObject * obj2 = 0 ;
41163 PyObject * obj3 = 0 ;
41164 PyObject * obj4 = 0 ;
41165 char * kwnames[] = {
41166 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41167 };
41168
41169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41171 if (!SWIG_IsOK(res1)) {
41172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41173 }
41174 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41175 {
41176 arg2 = &temp2;
41177 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41178 }
41179 {
41180 arg3 = &temp3;
41181 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41182 }
41183 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41184 if (!SWIG_IsOK(ecode4)) {
41185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41186 }
41187 arg4 = static_cast< bool >(val4);
41188 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41189 if (!SWIG_IsOK(ecode5)) {
41190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41191 }
41192 arg5 = static_cast< bool >(val5);
41193 {
41194 PyThreadState* __tstate = wxPyBeginAllowThreads();
41195 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41196 wxPyEndAllowThreads(__tstate);
41197 if (PyErr_Occurred()) SWIG_fail;
41198 }
41199 {
41200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41201 }
41202 return resultobj;
41203 fail:
41204 return NULL;
41205 }
41206
41207
41208 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41209 PyObject *obj;
41210 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41211 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41212 return SWIG_Py_Void();
41213 }
41214
41215 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41216 return SWIG_Python_InitShadowInstance(args);
41217 }
41218
41219 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41220 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41221 return 1;
41222 }
41223
41224
41225 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41226 PyObject *pyobj = 0;
41227
41228 {
41229 #if wxUSE_UNICODE
41230 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41231 #else
41232 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41233 #endif
41234 }
41235 return pyobj;
41236 }
41237
41238
41239 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41240 PyObject *resultobj = 0;
41241 wxWindow *arg1 = (wxWindow *) 0 ;
41242 int arg2 = (int) -1 ;
41243 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41244 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41245 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41246 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41247 wxSize const &arg5_defvalue = wxDefaultSize ;
41248 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41249 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41250 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41251 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41252 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41253 wxString *arg8 = (wxString *) &arg8_defvalue ;
41254 wxDatePickerCtrl *result = 0 ;
41255 void *argp1 = 0 ;
41256 int res1 = 0 ;
41257 int val2 ;
41258 int ecode2 = 0 ;
41259 void *argp3 = 0 ;
41260 int res3 = 0 ;
41261 wxPoint temp4 ;
41262 wxSize temp5 ;
41263 long val6 ;
41264 int ecode6 = 0 ;
41265 void *argp7 = 0 ;
41266 int res7 = 0 ;
41267 bool temp8 = false ;
41268 PyObject * obj0 = 0 ;
41269 PyObject * obj1 = 0 ;
41270 PyObject * obj2 = 0 ;
41271 PyObject * obj3 = 0 ;
41272 PyObject * obj4 = 0 ;
41273 PyObject * obj5 = 0 ;
41274 PyObject * obj6 = 0 ;
41275 PyObject * obj7 = 0 ;
41276 char * kwnames[] = {
41277 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41278 };
41279
41280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41282 if (!SWIG_IsOK(res1)) {
41283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41284 }
41285 arg1 = reinterpret_cast< wxWindow * >(argp1);
41286 if (obj1) {
41287 ecode2 = SWIG_AsVal_int(obj1, &val2);
41288 if (!SWIG_IsOK(ecode2)) {
41289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41290 }
41291 arg2 = static_cast< int >(val2);
41292 }
41293 if (obj2) {
41294 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41295 if (!SWIG_IsOK(res3)) {
41296 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41297 }
41298 if (!argp3) {
41299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41300 }
41301 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41302 }
41303 if (obj3) {
41304 {
41305 arg4 = &temp4;
41306 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41307 }
41308 }
41309 if (obj4) {
41310 {
41311 arg5 = &temp5;
41312 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41313 }
41314 }
41315 if (obj5) {
41316 ecode6 = SWIG_AsVal_long(obj5, &val6);
41317 if (!SWIG_IsOK(ecode6)) {
41318 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41319 }
41320 arg6 = static_cast< long >(val6);
41321 }
41322 if (obj6) {
41323 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41324 if (!SWIG_IsOK(res7)) {
41325 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41326 }
41327 if (!argp7) {
41328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41329 }
41330 arg7 = reinterpret_cast< wxValidator * >(argp7);
41331 }
41332 if (obj7) {
41333 {
41334 arg8 = wxString_in_helper(obj7);
41335 if (arg8 == NULL) SWIG_fail;
41336 temp8 = true;
41337 }
41338 }
41339 {
41340 if (!wxPyCheckForApp()) SWIG_fail;
41341 PyThreadState* __tstate = wxPyBeginAllowThreads();
41342 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41343 wxPyEndAllowThreads(__tstate);
41344 if (PyErr_Occurred()) SWIG_fail;
41345 }
41346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41347 {
41348 if (temp8)
41349 delete arg8;
41350 }
41351 return resultobj;
41352 fail:
41353 {
41354 if (temp8)
41355 delete arg8;
41356 }
41357 return NULL;
41358 }
41359
41360
41361 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41362 PyObject *resultobj = 0;
41363 wxDatePickerCtrl *result = 0 ;
41364
41365 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41366 {
41367 if (!wxPyCheckForApp()) SWIG_fail;
41368 PyThreadState* __tstate = wxPyBeginAllowThreads();
41369 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41370 wxPyEndAllowThreads(__tstate);
41371 if (PyErr_Occurred()) SWIG_fail;
41372 }
41373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41374 return resultobj;
41375 fail:
41376 return NULL;
41377 }
41378
41379
41380 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41381 PyObject *resultobj = 0;
41382 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41383 wxWindow *arg2 = (wxWindow *) 0 ;
41384 int arg3 = (int) -1 ;
41385 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41386 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41387 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41388 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41389 wxSize const &arg6_defvalue = wxDefaultSize ;
41390 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41391 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41392 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41393 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41394 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41395 wxString *arg9 = (wxString *) &arg9_defvalue ;
41396 bool result;
41397 void *argp1 = 0 ;
41398 int res1 = 0 ;
41399 void *argp2 = 0 ;
41400 int res2 = 0 ;
41401 int val3 ;
41402 int ecode3 = 0 ;
41403 void *argp4 = 0 ;
41404 int res4 = 0 ;
41405 wxPoint temp5 ;
41406 wxSize temp6 ;
41407 long val7 ;
41408 int ecode7 = 0 ;
41409 void *argp8 = 0 ;
41410 int res8 = 0 ;
41411 bool temp9 = false ;
41412 PyObject * obj0 = 0 ;
41413 PyObject * obj1 = 0 ;
41414 PyObject * obj2 = 0 ;
41415 PyObject * obj3 = 0 ;
41416 PyObject * obj4 = 0 ;
41417 PyObject * obj5 = 0 ;
41418 PyObject * obj6 = 0 ;
41419 PyObject * obj7 = 0 ;
41420 PyObject * obj8 = 0 ;
41421 char * kwnames[] = {
41422 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41423 };
41424
41425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41427 if (!SWIG_IsOK(res1)) {
41428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41429 }
41430 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41431 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41432 if (!SWIG_IsOK(res2)) {
41433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41434 }
41435 arg2 = reinterpret_cast< wxWindow * >(argp2);
41436 if (obj2) {
41437 ecode3 = SWIG_AsVal_int(obj2, &val3);
41438 if (!SWIG_IsOK(ecode3)) {
41439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41440 }
41441 arg3 = static_cast< int >(val3);
41442 }
41443 if (obj3) {
41444 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41445 if (!SWIG_IsOK(res4)) {
41446 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41447 }
41448 if (!argp4) {
41449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41450 }
41451 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41452 }
41453 if (obj4) {
41454 {
41455 arg5 = &temp5;
41456 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41457 }
41458 }
41459 if (obj5) {
41460 {
41461 arg6 = &temp6;
41462 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41463 }
41464 }
41465 if (obj6) {
41466 ecode7 = SWIG_AsVal_long(obj6, &val7);
41467 if (!SWIG_IsOK(ecode7)) {
41468 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41469 }
41470 arg7 = static_cast< long >(val7);
41471 }
41472 if (obj7) {
41473 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41474 if (!SWIG_IsOK(res8)) {
41475 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41476 }
41477 if (!argp8) {
41478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41479 }
41480 arg8 = reinterpret_cast< wxValidator * >(argp8);
41481 }
41482 if (obj8) {
41483 {
41484 arg9 = wxString_in_helper(obj8);
41485 if (arg9 == NULL) SWIG_fail;
41486 temp9 = true;
41487 }
41488 }
41489 {
41490 PyThreadState* __tstate = wxPyBeginAllowThreads();
41491 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41492 wxPyEndAllowThreads(__tstate);
41493 if (PyErr_Occurred()) SWIG_fail;
41494 }
41495 {
41496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41497 }
41498 {
41499 if (temp9)
41500 delete arg9;
41501 }
41502 return resultobj;
41503 fail:
41504 {
41505 if (temp9)
41506 delete arg9;
41507 }
41508 return NULL;
41509 }
41510
41511
41512 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41513 PyObject *resultobj = 0;
41514 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41515 wxDateTime *arg2 = 0 ;
41516 void *argp1 = 0 ;
41517 int res1 = 0 ;
41518 void *argp2 = 0 ;
41519 int res2 = 0 ;
41520 PyObject * obj0 = 0 ;
41521 PyObject * obj1 = 0 ;
41522 char * kwnames[] = {
41523 (char *) "self",(char *) "dt", NULL
41524 };
41525
41526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41528 if (!SWIG_IsOK(res1)) {
41529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41530 }
41531 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41533 if (!SWIG_IsOK(res2)) {
41534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41535 }
41536 if (!argp2) {
41537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41538 }
41539 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41540 {
41541 PyThreadState* __tstate = wxPyBeginAllowThreads();
41542 (arg1)->SetValue((wxDateTime const &)*arg2);
41543 wxPyEndAllowThreads(__tstate);
41544 if (PyErr_Occurred()) SWIG_fail;
41545 }
41546 resultobj = SWIG_Py_Void();
41547 return resultobj;
41548 fail:
41549 return NULL;
41550 }
41551
41552
41553 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41554 PyObject *resultobj = 0;
41555 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41556 wxDateTime result;
41557 void *argp1 = 0 ;
41558 int res1 = 0 ;
41559 PyObject *swig_obj[1] ;
41560
41561 if (!args) SWIG_fail;
41562 swig_obj[0] = args;
41563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41564 if (!SWIG_IsOK(res1)) {
41565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41566 }
41567 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41568 {
41569 PyThreadState* __tstate = wxPyBeginAllowThreads();
41570 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41571 wxPyEndAllowThreads(__tstate);
41572 if (PyErr_Occurred()) SWIG_fail;
41573 }
41574 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41575 return resultobj;
41576 fail:
41577 return NULL;
41578 }
41579
41580
41581 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41582 PyObject *resultobj = 0;
41583 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41584 wxDateTime *arg2 = 0 ;
41585 wxDateTime *arg3 = 0 ;
41586 void *argp1 = 0 ;
41587 int res1 = 0 ;
41588 void *argp2 = 0 ;
41589 int res2 = 0 ;
41590 void *argp3 = 0 ;
41591 int res3 = 0 ;
41592 PyObject * obj0 = 0 ;
41593 PyObject * obj1 = 0 ;
41594 PyObject * obj2 = 0 ;
41595 char * kwnames[] = {
41596 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41597 };
41598
41599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41601 if (!SWIG_IsOK(res1)) {
41602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41603 }
41604 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41606 if (!SWIG_IsOK(res2)) {
41607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41608 }
41609 if (!argp2) {
41610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41611 }
41612 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41613 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41614 if (!SWIG_IsOK(res3)) {
41615 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41616 }
41617 if (!argp3) {
41618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41619 }
41620 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41621 {
41622 PyThreadState* __tstate = wxPyBeginAllowThreads();
41623 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41624 wxPyEndAllowThreads(__tstate);
41625 if (PyErr_Occurred()) SWIG_fail;
41626 }
41627 resultobj = SWIG_Py_Void();
41628 return resultobj;
41629 fail:
41630 return NULL;
41631 }
41632
41633
41634 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41635 PyObject *resultobj = 0;
41636 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41637 wxDateTime result;
41638 void *argp1 = 0 ;
41639 int res1 = 0 ;
41640 PyObject *swig_obj[1] ;
41641
41642 if (!args) SWIG_fail;
41643 swig_obj[0] = args;
41644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41645 if (!SWIG_IsOK(res1)) {
41646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41647 }
41648 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41649 {
41650 PyThreadState* __tstate = wxPyBeginAllowThreads();
41651 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41652 wxPyEndAllowThreads(__tstate);
41653 if (PyErr_Occurred()) SWIG_fail;
41654 }
41655 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41656 return resultobj;
41657 fail:
41658 return NULL;
41659 }
41660
41661
41662 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41663 PyObject *resultobj = 0;
41664 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41665 wxDateTime result;
41666 void *argp1 = 0 ;
41667 int res1 = 0 ;
41668 PyObject *swig_obj[1] ;
41669
41670 if (!args) SWIG_fail;
41671 swig_obj[0] = args;
41672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41673 if (!SWIG_IsOK(res1)) {
41674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41675 }
41676 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41677 {
41678 PyThreadState* __tstate = wxPyBeginAllowThreads();
41679 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41680 wxPyEndAllowThreads(__tstate);
41681 if (PyErr_Occurred()) SWIG_fail;
41682 }
41683 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41684 return resultobj;
41685 fail:
41686 return NULL;
41687 }
41688
41689
41690 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41691 PyObject *obj;
41692 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41693 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41694 return SWIG_Py_Void();
41695 }
41696
41697 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41698 return SWIG_Python_InitShadowInstance(args);
41699 }
41700
41701 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41702 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41703 return 1;
41704 }
41705
41706
41707 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41708 PyObject *pyobj = 0;
41709
41710 {
41711 #if wxUSE_UNICODE
41712 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41713 #else
41714 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41715 #endif
41716 }
41717 return pyobj;
41718 }
41719
41720
41721 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41722 PyObject *resultobj = 0;
41723 wxWindow *arg1 = (wxWindow *) 0 ;
41724 int arg2 ;
41725 wxString *arg3 = 0 ;
41726 wxString *arg4 = 0 ;
41727 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41728 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41729 wxSize const &arg6_defvalue = wxDefaultSize ;
41730 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41731 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41732 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41733 wxString *arg8 = (wxString *) &arg8_defvalue ;
41734 wxHyperlinkCtrl *result = 0 ;
41735 void *argp1 = 0 ;
41736 int res1 = 0 ;
41737 int val2 ;
41738 int ecode2 = 0 ;
41739 bool temp3 = false ;
41740 bool temp4 = false ;
41741 wxPoint temp5 ;
41742 wxSize temp6 ;
41743 long val7 ;
41744 int ecode7 = 0 ;
41745 bool temp8 = false ;
41746 PyObject * obj0 = 0 ;
41747 PyObject * obj1 = 0 ;
41748 PyObject * obj2 = 0 ;
41749 PyObject * obj3 = 0 ;
41750 PyObject * obj4 = 0 ;
41751 PyObject * obj5 = 0 ;
41752 PyObject * obj6 = 0 ;
41753 PyObject * obj7 = 0 ;
41754 char * kwnames[] = {
41755 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41756 };
41757
41758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41760 if (!SWIG_IsOK(res1)) {
41761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41762 }
41763 arg1 = reinterpret_cast< wxWindow * >(argp1);
41764 ecode2 = SWIG_AsVal_int(obj1, &val2);
41765 if (!SWIG_IsOK(ecode2)) {
41766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41767 }
41768 arg2 = static_cast< int >(val2);
41769 {
41770 arg3 = wxString_in_helper(obj2);
41771 if (arg3 == NULL) SWIG_fail;
41772 temp3 = true;
41773 }
41774 {
41775 arg4 = wxString_in_helper(obj3);
41776 if (arg4 == NULL) SWIG_fail;
41777 temp4 = true;
41778 }
41779 if (obj4) {
41780 {
41781 arg5 = &temp5;
41782 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41783 }
41784 }
41785 if (obj5) {
41786 {
41787 arg6 = &temp6;
41788 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41789 }
41790 }
41791 if (obj6) {
41792 ecode7 = SWIG_AsVal_long(obj6, &val7);
41793 if (!SWIG_IsOK(ecode7)) {
41794 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41795 }
41796 arg7 = static_cast< long >(val7);
41797 }
41798 if (obj7) {
41799 {
41800 arg8 = wxString_in_helper(obj7);
41801 if (arg8 == NULL) SWIG_fail;
41802 temp8 = true;
41803 }
41804 }
41805 {
41806 if (!wxPyCheckForApp()) SWIG_fail;
41807 PyThreadState* __tstate = wxPyBeginAllowThreads();
41808 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41809 wxPyEndAllowThreads(__tstate);
41810 if (PyErr_Occurred()) SWIG_fail;
41811 }
41812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41813 {
41814 if (temp3)
41815 delete arg3;
41816 }
41817 {
41818 if (temp4)
41819 delete arg4;
41820 }
41821 {
41822 if (temp8)
41823 delete arg8;
41824 }
41825 return resultobj;
41826 fail:
41827 {
41828 if (temp3)
41829 delete arg3;
41830 }
41831 {
41832 if (temp4)
41833 delete arg4;
41834 }
41835 {
41836 if (temp8)
41837 delete arg8;
41838 }
41839 return NULL;
41840 }
41841
41842
41843 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41844 PyObject *resultobj = 0;
41845 wxHyperlinkCtrl *result = 0 ;
41846
41847 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41848 {
41849 if (!wxPyCheckForApp()) SWIG_fail;
41850 PyThreadState* __tstate = wxPyBeginAllowThreads();
41851 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41852 wxPyEndAllowThreads(__tstate);
41853 if (PyErr_Occurred()) SWIG_fail;
41854 }
41855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41856 return resultobj;
41857 fail:
41858 return NULL;
41859 }
41860
41861
41862 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41863 PyObject *resultobj = 0;
41864 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41865 wxWindow *arg2 = (wxWindow *) 0 ;
41866 int arg3 ;
41867 wxString *arg4 = 0 ;
41868 wxString *arg5 = 0 ;
41869 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41870 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41871 wxSize const &arg7_defvalue = wxDefaultSize ;
41872 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41873 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41874 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41875 wxString *arg9 = (wxString *) &arg9_defvalue ;
41876 bool result;
41877 void *argp1 = 0 ;
41878 int res1 = 0 ;
41879 void *argp2 = 0 ;
41880 int res2 = 0 ;
41881 int val3 ;
41882 int ecode3 = 0 ;
41883 bool temp4 = false ;
41884 bool temp5 = false ;
41885 wxPoint temp6 ;
41886 wxSize temp7 ;
41887 long val8 ;
41888 int ecode8 = 0 ;
41889 bool temp9 = false ;
41890 PyObject * obj0 = 0 ;
41891 PyObject * obj1 = 0 ;
41892 PyObject * obj2 = 0 ;
41893 PyObject * obj3 = 0 ;
41894 PyObject * obj4 = 0 ;
41895 PyObject * obj5 = 0 ;
41896 PyObject * obj6 = 0 ;
41897 PyObject * obj7 = 0 ;
41898 PyObject * obj8 = 0 ;
41899 char * kwnames[] = {
41900 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41901 };
41902
41903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41905 if (!SWIG_IsOK(res1)) {
41906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41907 }
41908 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41910 if (!SWIG_IsOK(res2)) {
41911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41912 }
41913 arg2 = reinterpret_cast< wxWindow * >(argp2);
41914 ecode3 = SWIG_AsVal_int(obj2, &val3);
41915 if (!SWIG_IsOK(ecode3)) {
41916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41917 }
41918 arg3 = static_cast< int >(val3);
41919 {
41920 arg4 = wxString_in_helper(obj3);
41921 if (arg4 == NULL) SWIG_fail;
41922 temp4 = true;
41923 }
41924 {
41925 arg5 = wxString_in_helper(obj4);
41926 if (arg5 == NULL) SWIG_fail;
41927 temp5 = true;
41928 }
41929 if (obj5) {
41930 {
41931 arg6 = &temp6;
41932 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41933 }
41934 }
41935 if (obj6) {
41936 {
41937 arg7 = &temp7;
41938 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41939 }
41940 }
41941 if (obj7) {
41942 ecode8 = SWIG_AsVal_long(obj7, &val8);
41943 if (!SWIG_IsOK(ecode8)) {
41944 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41945 }
41946 arg8 = static_cast< long >(val8);
41947 }
41948 if (obj8) {
41949 {
41950 arg9 = wxString_in_helper(obj8);
41951 if (arg9 == NULL) SWIG_fail;
41952 temp9 = true;
41953 }
41954 }
41955 {
41956 PyThreadState* __tstate = wxPyBeginAllowThreads();
41957 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41958 wxPyEndAllowThreads(__tstate);
41959 if (PyErr_Occurred()) SWIG_fail;
41960 }
41961 {
41962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41963 }
41964 {
41965 if (temp4)
41966 delete arg4;
41967 }
41968 {
41969 if (temp5)
41970 delete arg5;
41971 }
41972 {
41973 if (temp9)
41974 delete arg9;
41975 }
41976 return resultobj;
41977 fail:
41978 {
41979 if (temp4)
41980 delete arg4;
41981 }
41982 {
41983 if (temp5)
41984 delete arg5;
41985 }
41986 {
41987 if (temp9)
41988 delete arg9;
41989 }
41990 return NULL;
41991 }
41992
41993
41994 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41995 PyObject *resultobj = 0;
41996 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41997 wxColour result;
41998 void *argp1 = 0 ;
41999 int res1 = 0 ;
42000 PyObject *swig_obj[1] ;
42001
42002 if (!args) SWIG_fail;
42003 swig_obj[0] = args;
42004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42005 if (!SWIG_IsOK(res1)) {
42006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42007 }
42008 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42009 {
42010 PyThreadState* __tstate = wxPyBeginAllowThreads();
42011 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42012 wxPyEndAllowThreads(__tstate);
42013 if (PyErr_Occurred()) SWIG_fail;
42014 }
42015 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42016 return resultobj;
42017 fail:
42018 return NULL;
42019 }
42020
42021
42022 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42023 PyObject *resultobj = 0;
42024 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42025 wxColour *arg2 = 0 ;
42026 void *argp1 = 0 ;
42027 int res1 = 0 ;
42028 wxColour temp2 ;
42029 PyObject * obj0 = 0 ;
42030 PyObject * obj1 = 0 ;
42031 char * kwnames[] = {
42032 (char *) "self",(char *) "colour", NULL
42033 };
42034
42035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42037 if (!SWIG_IsOK(res1)) {
42038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42039 }
42040 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42041 {
42042 arg2 = &temp2;
42043 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42044 }
42045 {
42046 PyThreadState* __tstate = wxPyBeginAllowThreads();
42047 (arg1)->SetHoverColour((wxColour const &)*arg2);
42048 wxPyEndAllowThreads(__tstate);
42049 if (PyErr_Occurred()) SWIG_fail;
42050 }
42051 resultobj = SWIG_Py_Void();
42052 return resultobj;
42053 fail:
42054 return NULL;
42055 }
42056
42057
42058 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42059 PyObject *resultobj = 0;
42060 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42061 wxColour result;
42062 void *argp1 = 0 ;
42063 int res1 = 0 ;
42064 PyObject *swig_obj[1] ;
42065
42066 if (!args) SWIG_fail;
42067 swig_obj[0] = args;
42068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42069 if (!SWIG_IsOK(res1)) {
42070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42071 }
42072 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42073 {
42074 PyThreadState* __tstate = wxPyBeginAllowThreads();
42075 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42076 wxPyEndAllowThreads(__tstate);
42077 if (PyErr_Occurred()) SWIG_fail;
42078 }
42079 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42080 return resultobj;
42081 fail:
42082 return NULL;
42083 }
42084
42085
42086 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42087 PyObject *resultobj = 0;
42088 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42089 wxColour *arg2 = 0 ;
42090 void *argp1 = 0 ;
42091 int res1 = 0 ;
42092 wxColour temp2 ;
42093 PyObject * obj0 = 0 ;
42094 PyObject * obj1 = 0 ;
42095 char * kwnames[] = {
42096 (char *) "self",(char *) "colour", NULL
42097 };
42098
42099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42101 if (!SWIG_IsOK(res1)) {
42102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42103 }
42104 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42105 {
42106 arg2 = &temp2;
42107 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42108 }
42109 {
42110 PyThreadState* __tstate = wxPyBeginAllowThreads();
42111 (arg1)->SetNormalColour((wxColour const &)*arg2);
42112 wxPyEndAllowThreads(__tstate);
42113 if (PyErr_Occurred()) SWIG_fail;
42114 }
42115 resultobj = SWIG_Py_Void();
42116 return resultobj;
42117 fail:
42118 return NULL;
42119 }
42120
42121
42122 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42123 PyObject *resultobj = 0;
42124 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42125 wxColour result;
42126 void *argp1 = 0 ;
42127 int res1 = 0 ;
42128 PyObject *swig_obj[1] ;
42129
42130 if (!args) SWIG_fail;
42131 swig_obj[0] = args;
42132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42133 if (!SWIG_IsOK(res1)) {
42134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42135 }
42136 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42137 {
42138 PyThreadState* __tstate = wxPyBeginAllowThreads();
42139 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42140 wxPyEndAllowThreads(__tstate);
42141 if (PyErr_Occurred()) SWIG_fail;
42142 }
42143 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42144 return resultobj;
42145 fail:
42146 return NULL;
42147 }
42148
42149
42150 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42151 PyObject *resultobj = 0;
42152 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42153 wxColour *arg2 = 0 ;
42154 void *argp1 = 0 ;
42155 int res1 = 0 ;
42156 wxColour temp2 ;
42157 PyObject * obj0 = 0 ;
42158 PyObject * obj1 = 0 ;
42159 char * kwnames[] = {
42160 (char *) "self",(char *) "colour", NULL
42161 };
42162
42163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42165 if (!SWIG_IsOK(res1)) {
42166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42167 }
42168 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42169 {
42170 arg2 = &temp2;
42171 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42172 }
42173 {
42174 PyThreadState* __tstate = wxPyBeginAllowThreads();
42175 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42176 wxPyEndAllowThreads(__tstate);
42177 if (PyErr_Occurred()) SWIG_fail;
42178 }
42179 resultobj = SWIG_Py_Void();
42180 return resultobj;
42181 fail:
42182 return NULL;
42183 }
42184
42185
42186 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42187 PyObject *resultobj = 0;
42188 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42189 wxString result;
42190 void *argp1 = 0 ;
42191 int res1 = 0 ;
42192 PyObject *swig_obj[1] ;
42193
42194 if (!args) SWIG_fail;
42195 swig_obj[0] = args;
42196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42197 if (!SWIG_IsOK(res1)) {
42198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42199 }
42200 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42201 {
42202 PyThreadState* __tstate = wxPyBeginAllowThreads();
42203 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42204 wxPyEndAllowThreads(__tstate);
42205 if (PyErr_Occurred()) SWIG_fail;
42206 }
42207 {
42208 #if wxUSE_UNICODE
42209 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42210 #else
42211 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42212 #endif
42213 }
42214 return resultobj;
42215 fail:
42216 return NULL;
42217 }
42218
42219
42220 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42221 PyObject *resultobj = 0;
42222 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42223 wxString *arg2 = 0 ;
42224 void *argp1 = 0 ;
42225 int res1 = 0 ;
42226 bool temp2 = false ;
42227 PyObject * obj0 = 0 ;
42228 PyObject * obj1 = 0 ;
42229 char * kwnames[] = {
42230 (char *) "self",(char *) "url", NULL
42231 };
42232
42233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42235 if (!SWIG_IsOK(res1)) {
42236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42237 }
42238 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42239 {
42240 arg2 = wxString_in_helper(obj1);
42241 if (arg2 == NULL) SWIG_fail;
42242 temp2 = true;
42243 }
42244 {
42245 PyThreadState* __tstate = wxPyBeginAllowThreads();
42246 (arg1)->SetURL((wxString const &)*arg2);
42247 wxPyEndAllowThreads(__tstate);
42248 if (PyErr_Occurred()) SWIG_fail;
42249 }
42250 resultobj = SWIG_Py_Void();
42251 {
42252 if (temp2)
42253 delete arg2;
42254 }
42255 return resultobj;
42256 fail:
42257 {
42258 if (temp2)
42259 delete arg2;
42260 }
42261 return NULL;
42262 }
42263
42264
42265 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42266 PyObject *resultobj = 0;
42267 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42268 bool arg2 = (bool) true ;
42269 void *argp1 = 0 ;
42270 int res1 = 0 ;
42271 bool val2 ;
42272 int ecode2 = 0 ;
42273 PyObject * obj0 = 0 ;
42274 PyObject * obj1 = 0 ;
42275 char * kwnames[] = {
42276 (char *) "self",(char *) "visited", NULL
42277 };
42278
42279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42281 if (!SWIG_IsOK(res1)) {
42282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42283 }
42284 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42285 if (obj1) {
42286 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42287 if (!SWIG_IsOK(ecode2)) {
42288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42289 }
42290 arg2 = static_cast< bool >(val2);
42291 }
42292 {
42293 PyThreadState* __tstate = wxPyBeginAllowThreads();
42294 (arg1)->SetVisited(arg2);
42295 wxPyEndAllowThreads(__tstate);
42296 if (PyErr_Occurred()) SWIG_fail;
42297 }
42298 resultobj = SWIG_Py_Void();
42299 return resultobj;
42300 fail:
42301 return NULL;
42302 }
42303
42304
42305 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42306 PyObject *resultobj = 0;
42307 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42308 bool result;
42309 void *argp1 = 0 ;
42310 int res1 = 0 ;
42311 PyObject *swig_obj[1] ;
42312
42313 if (!args) SWIG_fail;
42314 swig_obj[0] = args;
42315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42316 if (!SWIG_IsOK(res1)) {
42317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42318 }
42319 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42320 {
42321 PyThreadState* __tstate = wxPyBeginAllowThreads();
42322 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42323 wxPyEndAllowThreads(__tstate);
42324 if (PyErr_Occurred()) SWIG_fail;
42325 }
42326 {
42327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42328 }
42329 return resultobj;
42330 fail:
42331 return NULL;
42332 }
42333
42334
42335 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42336 PyObject *obj;
42337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42338 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42339 return SWIG_Py_Void();
42340 }
42341
42342 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42343 return SWIG_Python_InitShadowInstance(args);
42344 }
42345
42346 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42347 PyObject *resultobj = 0;
42348 wxObject *arg1 = (wxObject *) 0 ;
42349 int arg2 ;
42350 wxString *arg3 = 0 ;
42351 wxHyperlinkEvent *result = 0 ;
42352 void *argp1 = 0 ;
42353 int res1 = 0 ;
42354 int val2 ;
42355 int ecode2 = 0 ;
42356 bool temp3 = false ;
42357 PyObject * obj0 = 0 ;
42358 PyObject * obj1 = 0 ;
42359 PyObject * obj2 = 0 ;
42360 char * kwnames[] = {
42361 (char *) "generator",(char *) "id",(char *) "url", NULL
42362 };
42363
42364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42366 if (!SWIG_IsOK(res1)) {
42367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42368 }
42369 arg1 = reinterpret_cast< wxObject * >(argp1);
42370 ecode2 = SWIG_AsVal_int(obj1, &val2);
42371 if (!SWIG_IsOK(ecode2)) {
42372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42373 }
42374 arg2 = static_cast< int >(val2);
42375 {
42376 arg3 = wxString_in_helper(obj2);
42377 if (arg3 == NULL) SWIG_fail;
42378 temp3 = true;
42379 }
42380 {
42381 PyThreadState* __tstate = wxPyBeginAllowThreads();
42382 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42383 wxPyEndAllowThreads(__tstate);
42384 if (PyErr_Occurred()) SWIG_fail;
42385 }
42386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42387 {
42388 if (temp3)
42389 delete arg3;
42390 }
42391 return resultobj;
42392 fail:
42393 {
42394 if (temp3)
42395 delete arg3;
42396 }
42397 return NULL;
42398 }
42399
42400
42401 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42402 PyObject *resultobj = 0;
42403 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42404 wxString result;
42405 void *argp1 = 0 ;
42406 int res1 = 0 ;
42407 PyObject *swig_obj[1] ;
42408
42409 if (!args) SWIG_fail;
42410 swig_obj[0] = args;
42411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42412 if (!SWIG_IsOK(res1)) {
42413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42414 }
42415 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42416 {
42417 PyThreadState* __tstate = wxPyBeginAllowThreads();
42418 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42419 wxPyEndAllowThreads(__tstate);
42420 if (PyErr_Occurred()) SWIG_fail;
42421 }
42422 {
42423 #if wxUSE_UNICODE
42424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42425 #else
42426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42427 #endif
42428 }
42429 return resultobj;
42430 fail:
42431 return NULL;
42432 }
42433
42434
42435 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42436 PyObject *resultobj = 0;
42437 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42438 wxString *arg2 = 0 ;
42439 void *argp1 = 0 ;
42440 int res1 = 0 ;
42441 bool temp2 = false ;
42442 PyObject * obj0 = 0 ;
42443 PyObject * obj1 = 0 ;
42444 char * kwnames[] = {
42445 (char *) "self",(char *) "url", NULL
42446 };
42447
42448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42450 if (!SWIG_IsOK(res1)) {
42451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42452 }
42453 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42454 {
42455 arg2 = wxString_in_helper(obj1);
42456 if (arg2 == NULL) SWIG_fail;
42457 temp2 = true;
42458 }
42459 {
42460 PyThreadState* __tstate = wxPyBeginAllowThreads();
42461 (arg1)->SetURL((wxString const &)*arg2);
42462 wxPyEndAllowThreads(__tstate);
42463 if (PyErr_Occurred()) SWIG_fail;
42464 }
42465 resultobj = SWIG_Py_Void();
42466 {
42467 if (temp2)
42468 delete arg2;
42469 }
42470 return resultobj;
42471 fail:
42472 {
42473 if (temp2)
42474 delete arg2;
42475 }
42476 return NULL;
42477 }
42478
42479
42480 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42481 PyObject *obj;
42482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42483 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42484 return SWIG_Py_Void();
42485 }
42486
42487 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42488 return SWIG_Python_InitShadowInstance(args);
42489 }
42490
42491 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42492 PyObject *resultobj = 0;
42493 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42494 wxWindow *arg2 = (wxWindow *) 0 ;
42495 int arg3 ;
42496 wxString const &arg4_defvalue = wxEmptyString ;
42497 wxString *arg4 = (wxString *) &arg4_defvalue ;
42498 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42499 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42500 wxSize const &arg6_defvalue = wxDefaultSize ;
42501 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42502 long arg7 = (long) 0 ;
42503 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42504 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42505 wxString const &arg9_defvalue = wxButtonNameStr ;
42506 wxString *arg9 = (wxString *) &arg9_defvalue ;
42507 bool result;
42508 void *argp1 = 0 ;
42509 int res1 = 0 ;
42510 void *argp2 = 0 ;
42511 int res2 = 0 ;
42512 int val3 ;
42513 int ecode3 = 0 ;
42514 bool temp4 = false ;
42515 wxPoint temp5 ;
42516 wxSize temp6 ;
42517 long val7 ;
42518 int ecode7 = 0 ;
42519 void *argp8 = 0 ;
42520 int res8 = 0 ;
42521 bool temp9 = false ;
42522 PyObject * obj0 = 0 ;
42523 PyObject * obj1 = 0 ;
42524 PyObject * obj2 = 0 ;
42525 PyObject * obj3 = 0 ;
42526 PyObject * obj4 = 0 ;
42527 PyObject * obj5 = 0 ;
42528 PyObject * obj6 = 0 ;
42529 PyObject * obj7 = 0 ;
42530 PyObject * obj8 = 0 ;
42531 char * kwnames[] = {
42532 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42533 };
42534
42535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42537 if (!SWIG_IsOK(res1)) {
42538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42539 }
42540 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42542 if (!SWIG_IsOK(res2)) {
42543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42544 }
42545 arg2 = reinterpret_cast< wxWindow * >(argp2);
42546 ecode3 = SWIG_AsVal_int(obj2, &val3);
42547 if (!SWIG_IsOK(ecode3)) {
42548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42549 }
42550 arg3 = static_cast< int >(val3);
42551 if (obj3) {
42552 {
42553 arg4 = wxString_in_helper(obj3);
42554 if (arg4 == NULL) SWIG_fail;
42555 temp4 = true;
42556 }
42557 }
42558 if (obj4) {
42559 {
42560 arg5 = &temp5;
42561 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42562 }
42563 }
42564 if (obj5) {
42565 {
42566 arg6 = &temp6;
42567 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42568 }
42569 }
42570 if (obj6) {
42571 ecode7 = SWIG_AsVal_long(obj6, &val7);
42572 if (!SWIG_IsOK(ecode7)) {
42573 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42574 }
42575 arg7 = static_cast< long >(val7);
42576 }
42577 if (obj7) {
42578 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42579 if (!SWIG_IsOK(res8)) {
42580 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42581 }
42582 if (!argp8) {
42583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42584 }
42585 arg8 = reinterpret_cast< wxValidator * >(argp8);
42586 }
42587 if (obj8) {
42588 {
42589 arg9 = wxString_in_helper(obj8);
42590 if (arg9 == NULL) SWIG_fail;
42591 temp9 = true;
42592 }
42593 }
42594 {
42595 PyThreadState* __tstate = wxPyBeginAllowThreads();
42596 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42597 wxPyEndAllowThreads(__tstate);
42598 if (PyErr_Occurred()) SWIG_fail;
42599 }
42600 {
42601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42602 }
42603 {
42604 if (temp4)
42605 delete arg4;
42606 }
42607 {
42608 if (temp9)
42609 delete arg9;
42610 }
42611 return resultobj;
42612 fail:
42613 {
42614 if (temp4)
42615 delete arg4;
42616 }
42617 {
42618 if (temp9)
42619 delete arg9;
42620 }
42621 return NULL;
42622 }
42623
42624
42625 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42626 PyObject *resultobj = 0;
42627 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42628 int arg2 ;
42629 void *argp1 = 0 ;
42630 int res1 = 0 ;
42631 int val2 ;
42632 int ecode2 = 0 ;
42633 PyObject * obj0 = 0 ;
42634 PyObject * obj1 = 0 ;
42635 char * kwnames[] = {
42636 (char *) "self",(char *) "newmargin", NULL
42637 };
42638
42639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42641 if (!SWIG_IsOK(res1)) {
42642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42643 }
42644 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42645 ecode2 = SWIG_AsVal_int(obj1, &val2);
42646 if (!SWIG_IsOK(ecode2)) {
42647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42648 }
42649 arg2 = static_cast< int >(val2);
42650 {
42651 PyThreadState* __tstate = wxPyBeginAllowThreads();
42652 (arg1)->SetInternalMargin(arg2);
42653 wxPyEndAllowThreads(__tstate);
42654 if (PyErr_Occurred()) SWIG_fail;
42655 }
42656 resultobj = SWIG_Py_Void();
42657 return resultobj;
42658 fail:
42659 return NULL;
42660 }
42661
42662
42663 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42664 PyObject *resultobj = 0;
42665 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42666 int result;
42667 void *argp1 = 0 ;
42668 int res1 = 0 ;
42669 PyObject *swig_obj[1] ;
42670
42671 if (!args) SWIG_fail;
42672 swig_obj[0] = args;
42673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42674 if (!SWIG_IsOK(res1)) {
42675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42676 }
42677 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42678 {
42679 PyThreadState* __tstate = wxPyBeginAllowThreads();
42680 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42681 wxPyEndAllowThreads(__tstate);
42682 if (PyErr_Occurred()) SWIG_fail;
42683 }
42684 resultobj = SWIG_From_int(static_cast< int >(result));
42685 return resultobj;
42686 fail:
42687 return NULL;
42688 }
42689
42690
42691 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42692 PyObject *resultobj = 0;
42693 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42694 int arg2 ;
42695 void *argp1 = 0 ;
42696 int res1 = 0 ;
42697 int val2 ;
42698 int ecode2 = 0 ;
42699 PyObject * obj0 = 0 ;
42700 PyObject * obj1 = 0 ;
42701 char * kwnames[] = {
42702 (char *) "self",(char *) "prop", NULL
42703 };
42704
42705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42707 if (!SWIG_IsOK(res1)) {
42708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42709 }
42710 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42711 ecode2 = SWIG_AsVal_int(obj1, &val2);
42712 if (!SWIG_IsOK(ecode2)) {
42713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42714 }
42715 arg2 = static_cast< int >(val2);
42716 {
42717 PyThreadState* __tstate = wxPyBeginAllowThreads();
42718 (arg1)->SetTextCtrlProportion(arg2);
42719 wxPyEndAllowThreads(__tstate);
42720 if (PyErr_Occurred()) SWIG_fail;
42721 }
42722 resultobj = SWIG_Py_Void();
42723 return resultobj;
42724 fail:
42725 return NULL;
42726 }
42727
42728
42729 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42730 PyObject *resultobj = 0;
42731 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42732 int result;
42733 void *argp1 = 0 ;
42734 int res1 = 0 ;
42735 PyObject *swig_obj[1] ;
42736
42737 if (!args) SWIG_fail;
42738 swig_obj[0] = args;
42739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42740 if (!SWIG_IsOK(res1)) {
42741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42742 }
42743 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42744 {
42745 PyThreadState* __tstate = wxPyBeginAllowThreads();
42746 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42747 wxPyEndAllowThreads(__tstate);
42748 if (PyErr_Occurred()) SWIG_fail;
42749 }
42750 resultobj = SWIG_From_int(static_cast< int >(result));
42751 return resultobj;
42752 fail:
42753 return NULL;
42754 }
42755
42756
42757 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42758 PyObject *resultobj = 0;
42759 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42760 int arg2 ;
42761 void *argp1 = 0 ;
42762 int res1 = 0 ;
42763 int val2 ;
42764 int ecode2 = 0 ;
42765 PyObject * obj0 = 0 ;
42766 PyObject * obj1 = 0 ;
42767 char * kwnames[] = {
42768 (char *) "self",(char *) "prop", NULL
42769 };
42770
42771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42773 if (!SWIG_IsOK(res1)) {
42774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42775 }
42776 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42777 ecode2 = SWIG_AsVal_int(obj1, &val2);
42778 if (!SWIG_IsOK(ecode2)) {
42779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42780 }
42781 arg2 = static_cast< int >(val2);
42782 {
42783 PyThreadState* __tstate = wxPyBeginAllowThreads();
42784 (arg1)->SetPickerCtrlProportion(arg2);
42785 wxPyEndAllowThreads(__tstate);
42786 if (PyErr_Occurred()) SWIG_fail;
42787 }
42788 resultobj = SWIG_Py_Void();
42789 return resultobj;
42790 fail:
42791 return NULL;
42792 }
42793
42794
42795 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42796 PyObject *resultobj = 0;
42797 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42798 int result;
42799 void *argp1 = 0 ;
42800 int res1 = 0 ;
42801 PyObject *swig_obj[1] ;
42802
42803 if (!args) SWIG_fail;
42804 swig_obj[0] = args;
42805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42806 if (!SWIG_IsOK(res1)) {
42807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42808 }
42809 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42810 {
42811 PyThreadState* __tstate = wxPyBeginAllowThreads();
42812 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42813 wxPyEndAllowThreads(__tstate);
42814 if (PyErr_Occurred()) SWIG_fail;
42815 }
42816 resultobj = SWIG_From_int(static_cast< int >(result));
42817 return resultobj;
42818 fail:
42819 return NULL;
42820 }
42821
42822
42823 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42824 PyObject *resultobj = 0;
42825 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42826 bool result;
42827 void *argp1 = 0 ;
42828 int res1 = 0 ;
42829 PyObject *swig_obj[1] ;
42830
42831 if (!args) SWIG_fail;
42832 swig_obj[0] = args;
42833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42834 if (!SWIG_IsOK(res1)) {
42835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42836 }
42837 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42838 {
42839 PyThreadState* __tstate = wxPyBeginAllowThreads();
42840 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42841 wxPyEndAllowThreads(__tstate);
42842 if (PyErr_Occurred()) SWIG_fail;
42843 }
42844 {
42845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42846 }
42847 return resultobj;
42848 fail:
42849 return NULL;
42850 }
42851
42852
42853 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42854 PyObject *resultobj = 0;
42855 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42856 bool arg2 = (bool) true ;
42857 void *argp1 = 0 ;
42858 int res1 = 0 ;
42859 bool val2 ;
42860 int ecode2 = 0 ;
42861 PyObject * obj0 = 0 ;
42862 PyObject * obj1 = 0 ;
42863 char * kwnames[] = {
42864 (char *) "self",(char *) "grow", NULL
42865 };
42866
42867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42869 if (!SWIG_IsOK(res1)) {
42870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42871 }
42872 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42873 if (obj1) {
42874 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42875 if (!SWIG_IsOK(ecode2)) {
42876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42877 }
42878 arg2 = static_cast< bool >(val2);
42879 }
42880 {
42881 PyThreadState* __tstate = wxPyBeginAllowThreads();
42882 (arg1)->SetTextCtrlGrowable(arg2);
42883 wxPyEndAllowThreads(__tstate);
42884 if (PyErr_Occurred()) SWIG_fail;
42885 }
42886 resultobj = SWIG_Py_Void();
42887 return resultobj;
42888 fail:
42889 return NULL;
42890 }
42891
42892
42893 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42894 PyObject *resultobj = 0;
42895 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42896 bool result;
42897 void *argp1 = 0 ;
42898 int res1 = 0 ;
42899 PyObject *swig_obj[1] ;
42900
42901 if (!args) SWIG_fail;
42902 swig_obj[0] = args;
42903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42904 if (!SWIG_IsOK(res1)) {
42905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42906 }
42907 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42908 {
42909 PyThreadState* __tstate = wxPyBeginAllowThreads();
42910 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42911 wxPyEndAllowThreads(__tstate);
42912 if (PyErr_Occurred()) SWIG_fail;
42913 }
42914 {
42915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42916 }
42917 return resultobj;
42918 fail:
42919 return NULL;
42920 }
42921
42922
42923 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42924 PyObject *resultobj = 0;
42925 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42926 bool arg2 = (bool) true ;
42927 void *argp1 = 0 ;
42928 int res1 = 0 ;
42929 bool val2 ;
42930 int ecode2 = 0 ;
42931 PyObject * obj0 = 0 ;
42932 PyObject * obj1 = 0 ;
42933 char * kwnames[] = {
42934 (char *) "self",(char *) "grow", NULL
42935 };
42936
42937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42939 if (!SWIG_IsOK(res1)) {
42940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42941 }
42942 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42943 if (obj1) {
42944 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42945 if (!SWIG_IsOK(ecode2)) {
42946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42947 }
42948 arg2 = static_cast< bool >(val2);
42949 }
42950 {
42951 PyThreadState* __tstate = wxPyBeginAllowThreads();
42952 (arg1)->SetPickerCtrlGrowable(arg2);
42953 wxPyEndAllowThreads(__tstate);
42954 if (PyErr_Occurred()) SWIG_fail;
42955 }
42956 resultobj = SWIG_Py_Void();
42957 return resultobj;
42958 fail:
42959 return NULL;
42960 }
42961
42962
42963 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42964 PyObject *resultobj = 0;
42965 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42966 bool result;
42967 void *argp1 = 0 ;
42968 int res1 = 0 ;
42969 PyObject *swig_obj[1] ;
42970
42971 if (!args) SWIG_fail;
42972 swig_obj[0] = args;
42973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42974 if (!SWIG_IsOK(res1)) {
42975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42976 }
42977 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42978 {
42979 PyThreadState* __tstate = wxPyBeginAllowThreads();
42980 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42981 wxPyEndAllowThreads(__tstate);
42982 if (PyErr_Occurred()) SWIG_fail;
42983 }
42984 {
42985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42986 }
42987 return resultobj;
42988 fail:
42989 return NULL;
42990 }
42991
42992
42993 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42994 PyObject *resultobj = 0;
42995 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42996 wxTextCtrl *result = 0 ;
42997 void *argp1 = 0 ;
42998 int res1 = 0 ;
42999 PyObject *swig_obj[1] ;
43000
43001 if (!args) SWIG_fail;
43002 swig_obj[0] = args;
43003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43004 if (!SWIG_IsOK(res1)) {
43005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43006 }
43007 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43008 {
43009 PyThreadState* __tstate = wxPyBeginAllowThreads();
43010 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43011 wxPyEndAllowThreads(__tstate);
43012 if (PyErr_Occurred()) SWIG_fail;
43013 }
43014 {
43015 resultobj = wxPyMake_wxObject(result, 0);
43016 }
43017 return resultobj;
43018 fail:
43019 return NULL;
43020 }
43021
43022
43023 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43024 PyObject *resultobj = 0;
43025 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43026 wxControl *result = 0 ;
43027 void *argp1 = 0 ;
43028 int res1 = 0 ;
43029 PyObject *swig_obj[1] ;
43030
43031 if (!args) SWIG_fail;
43032 swig_obj[0] = args;
43033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43034 if (!SWIG_IsOK(res1)) {
43035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43036 }
43037 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43038 {
43039 PyThreadState* __tstate = wxPyBeginAllowThreads();
43040 result = (wxControl *)(arg1)->GetPickerCtrl();
43041 wxPyEndAllowThreads(__tstate);
43042 if (PyErr_Occurred()) SWIG_fail;
43043 }
43044 {
43045 resultobj = wxPyMake_wxObject(result, 0);
43046 }
43047 return resultobj;
43048 fail:
43049 return NULL;
43050 }
43051
43052
43053 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43054 PyObject *obj;
43055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43056 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43057 return SWIG_Py_Void();
43058 }
43059
43060 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43061 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43062 return 1;
43063 }
43064
43065
43066 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43067 PyObject *pyobj = 0;
43068
43069 {
43070 #if wxUSE_UNICODE
43071 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43072 #else
43073 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43074 #endif
43075 }
43076 return pyobj;
43077 }
43078
43079
43080 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43081 PyObject *resultobj = 0;
43082 wxWindow *arg1 = (wxWindow *) 0 ;
43083 int arg2 = (int) -1 ;
43084 wxColour const &arg3_defvalue = *wxBLACK ;
43085 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43086 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43087 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43088 wxSize const &arg5_defvalue = wxDefaultSize ;
43089 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43090 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43091 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43092 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43093 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43094 wxString *arg8 = (wxString *) &arg8_defvalue ;
43095 wxColourPickerCtrl *result = 0 ;
43096 void *argp1 = 0 ;
43097 int res1 = 0 ;
43098 int val2 ;
43099 int ecode2 = 0 ;
43100 wxColour temp3 ;
43101 wxPoint temp4 ;
43102 wxSize temp5 ;
43103 long val6 ;
43104 int ecode6 = 0 ;
43105 void *argp7 = 0 ;
43106 int res7 = 0 ;
43107 bool temp8 = false ;
43108 PyObject * obj0 = 0 ;
43109 PyObject * obj1 = 0 ;
43110 PyObject * obj2 = 0 ;
43111 PyObject * obj3 = 0 ;
43112 PyObject * obj4 = 0 ;
43113 PyObject * obj5 = 0 ;
43114 PyObject * obj6 = 0 ;
43115 PyObject * obj7 = 0 ;
43116 char * kwnames[] = {
43117 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43118 };
43119
43120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43122 if (!SWIG_IsOK(res1)) {
43123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43124 }
43125 arg1 = reinterpret_cast< wxWindow * >(argp1);
43126 if (obj1) {
43127 ecode2 = SWIG_AsVal_int(obj1, &val2);
43128 if (!SWIG_IsOK(ecode2)) {
43129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43130 }
43131 arg2 = static_cast< int >(val2);
43132 }
43133 if (obj2) {
43134 {
43135 arg3 = &temp3;
43136 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43137 }
43138 }
43139 if (obj3) {
43140 {
43141 arg4 = &temp4;
43142 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43143 }
43144 }
43145 if (obj4) {
43146 {
43147 arg5 = &temp5;
43148 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43149 }
43150 }
43151 if (obj5) {
43152 ecode6 = SWIG_AsVal_long(obj5, &val6);
43153 if (!SWIG_IsOK(ecode6)) {
43154 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43155 }
43156 arg6 = static_cast< long >(val6);
43157 }
43158 if (obj6) {
43159 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43160 if (!SWIG_IsOK(res7)) {
43161 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43162 }
43163 if (!argp7) {
43164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43165 }
43166 arg7 = reinterpret_cast< wxValidator * >(argp7);
43167 }
43168 if (obj7) {
43169 {
43170 arg8 = wxString_in_helper(obj7);
43171 if (arg8 == NULL) SWIG_fail;
43172 temp8 = true;
43173 }
43174 }
43175 {
43176 if (!wxPyCheckForApp()) SWIG_fail;
43177 PyThreadState* __tstate = wxPyBeginAllowThreads();
43178 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43179 wxPyEndAllowThreads(__tstate);
43180 if (PyErr_Occurred()) SWIG_fail;
43181 }
43182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43183 {
43184 if (temp8)
43185 delete arg8;
43186 }
43187 return resultobj;
43188 fail:
43189 {
43190 if (temp8)
43191 delete arg8;
43192 }
43193 return NULL;
43194 }
43195
43196
43197 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43198 PyObject *resultobj = 0;
43199 wxColourPickerCtrl *result = 0 ;
43200
43201 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43202 {
43203 if (!wxPyCheckForApp()) SWIG_fail;
43204 PyThreadState* __tstate = wxPyBeginAllowThreads();
43205 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43206 wxPyEndAllowThreads(__tstate);
43207 if (PyErr_Occurred()) SWIG_fail;
43208 }
43209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43210 return resultobj;
43211 fail:
43212 return NULL;
43213 }
43214
43215
43216 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43217 PyObject *resultobj = 0;
43218 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43219 wxWindow *arg2 = (wxWindow *) 0 ;
43220 int arg3 ;
43221 wxColour const &arg4_defvalue = *wxBLACK ;
43222 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43223 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43224 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43225 wxSize const &arg6_defvalue = wxDefaultSize ;
43226 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43227 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43228 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43229 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43230 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43231 wxString *arg9 = (wxString *) &arg9_defvalue ;
43232 bool result;
43233 void *argp1 = 0 ;
43234 int res1 = 0 ;
43235 void *argp2 = 0 ;
43236 int res2 = 0 ;
43237 int val3 ;
43238 int ecode3 = 0 ;
43239 wxColour temp4 ;
43240 wxPoint temp5 ;
43241 wxSize temp6 ;
43242 long val7 ;
43243 int ecode7 = 0 ;
43244 void *argp8 = 0 ;
43245 int res8 = 0 ;
43246 bool temp9 = false ;
43247 PyObject * obj0 = 0 ;
43248 PyObject * obj1 = 0 ;
43249 PyObject * obj2 = 0 ;
43250 PyObject * obj3 = 0 ;
43251 PyObject * obj4 = 0 ;
43252 PyObject * obj5 = 0 ;
43253 PyObject * obj6 = 0 ;
43254 PyObject * obj7 = 0 ;
43255 PyObject * obj8 = 0 ;
43256 char * kwnames[] = {
43257 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43258 };
43259
43260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43262 if (!SWIG_IsOK(res1)) {
43263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43264 }
43265 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43267 if (!SWIG_IsOK(res2)) {
43268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43269 }
43270 arg2 = reinterpret_cast< wxWindow * >(argp2);
43271 ecode3 = SWIG_AsVal_int(obj2, &val3);
43272 if (!SWIG_IsOK(ecode3)) {
43273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43274 }
43275 arg3 = static_cast< int >(val3);
43276 if (obj3) {
43277 {
43278 arg4 = &temp4;
43279 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43280 }
43281 }
43282 if (obj4) {
43283 {
43284 arg5 = &temp5;
43285 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43286 }
43287 }
43288 if (obj5) {
43289 {
43290 arg6 = &temp6;
43291 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43292 }
43293 }
43294 if (obj6) {
43295 ecode7 = SWIG_AsVal_long(obj6, &val7);
43296 if (!SWIG_IsOK(ecode7)) {
43297 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43298 }
43299 arg7 = static_cast< long >(val7);
43300 }
43301 if (obj7) {
43302 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43303 if (!SWIG_IsOK(res8)) {
43304 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43305 }
43306 if (!argp8) {
43307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43308 }
43309 arg8 = reinterpret_cast< wxValidator * >(argp8);
43310 }
43311 if (obj8) {
43312 {
43313 arg9 = wxString_in_helper(obj8);
43314 if (arg9 == NULL) SWIG_fail;
43315 temp9 = true;
43316 }
43317 }
43318 {
43319 PyThreadState* __tstate = wxPyBeginAllowThreads();
43320 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43321 wxPyEndAllowThreads(__tstate);
43322 if (PyErr_Occurred()) SWIG_fail;
43323 }
43324 {
43325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43326 }
43327 {
43328 if (temp9)
43329 delete arg9;
43330 }
43331 return resultobj;
43332 fail:
43333 {
43334 if (temp9)
43335 delete arg9;
43336 }
43337 return NULL;
43338 }
43339
43340
43341 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43342 PyObject *resultobj = 0;
43343 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43344 wxColour result;
43345 void *argp1 = 0 ;
43346 int res1 = 0 ;
43347 PyObject *swig_obj[1] ;
43348
43349 if (!args) SWIG_fail;
43350 swig_obj[0] = args;
43351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43352 if (!SWIG_IsOK(res1)) {
43353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43354 }
43355 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43356 {
43357 PyThreadState* __tstate = wxPyBeginAllowThreads();
43358 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43359 wxPyEndAllowThreads(__tstate);
43360 if (PyErr_Occurred()) SWIG_fail;
43361 }
43362 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43363 return resultobj;
43364 fail:
43365 return NULL;
43366 }
43367
43368
43369 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43370 PyObject *resultobj = 0;
43371 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43372 wxColour *arg2 = 0 ;
43373 void *argp1 = 0 ;
43374 int res1 = 0 ;
43375 wxColour temp2 ;
43376 PyObject * obj0 = 0 ;
43377 PyObject * obj1 = 0 ;
43378 char * kwnames[] = {
43379 (char *) "self",(char *) "col", NULL
43380 };
43381
43382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43384 if (!SWIG_IsOK(res1)) {
43385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43386 }
43387 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43388 {
43389 arg2 = &temp2;
43390 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43391 }
43392 {
43393 PyThreadState* __tstate = wxPyBeginAllowThreads();
43394 (arg1)->SetColour((wxColour const &)*arg2);
43395 wxPyEndAllowThreads(__tstate);
43396 if (PyErr_Occurred()) SWIG_fail;
43397 }
43398 resultobj = SWIG_Py_Void();
43399 return resultobj;
43400 fail:
43401 return NULL;
43402 }
43403
43404
43405 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43406 PyObject *obj;
43407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43408 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43409 return SWIG_Py_Void();
43410 }
43411
43412 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43413 return SWIG_Python_InitShadowInstance(args);
43414 }
43415
43416 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43417 PyObject *resultobj = 0;
43418 wxObject *arg1 = (wxObject *) 0 ;
43419 int arg2 ;
43420 wxColour *arg3 = 0 ;
43421 wxColourPickerEvent *result = 0 ;
43422 void *argp1 = 0 ;
43423 int res1 = 0 ;
43424 int val2 ;
43425 int ecode2 = 0 ;
43426 wxColour temp3 ;
43427 PyObject * obj0 = 0 ;
43428 PyObject * obj1 = 0 ;
43429 PyObject * obj2 = 0 ;
43430 char * kwnames[] = {
43431 (char *) "generator",(char *) "id",(char *) "col", NULL
43432 };
43433
43434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43436 if (!SWIG_IsOK(res1)) {
43437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43438 }
43439 arg1 = reinterpret_cast< wxObject * >(argp1);
43440 ecode2 = SWIG_AsVal_int(obj1, &val2);
43441 if (!SWIG_IsOK(ecode2)) {
43442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43443 }
43444 arg2 = static_cast< int >(val2);
43445 {
43446 arg3 = &temp3;
43447 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43448 }
43449 {
43450 PyThreadState* __tstate = wxPyBeginAllowThreads();
43451 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43452 wxPyEndAllowThreads(__tstate);
43453 if (PyErr_Occurred()) SWIG_fail;
43454 }
43455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43456 return resultobj;
43457 fail:
43458 return NULL;
43459 }
43460
43461
43462 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43463 PyObject *resultobj = 0;
43464 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43465 wxColour result;
43466 void *argp1 = 0 ;
43467 int res1 = 0 ;
43468 PyObject *swig_obj[1] ;
43469
43470 if (!args) SWIG_fail;
43471 swig_obj[0] = args;
43472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43473 if (!SWIG_IsOK(res1)) {
43474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43475 }
43476 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43477 {
43478 PyThreadState* __tstate = wxPyBeginAllowThreads();
43479 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43480 wxPyEndAllowThreads(__tstate);
43481 if (PyErr_Occurred()) SWIG_fail;
43482 }
43483 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43484 return resultobj;
43485 fail:
43486 return NULL;
43487 }
43488
43489
43490 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43491 PyObject *resultobj = 0;
43492 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43493 wxColour *arg2 = 0 ;
43494 void *argp1 = 0 ;
43495 int res1 = 0 ;
43496 wxColour temp2 ;
43497 PyObject * obj0 = 0 ;
43498 PyObject * obj1 = 0 ;
43499 char * kwnames[] = {
43500 (char *) "self",(char *) "c", NULL
43501 };
43502
43503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43505 if (!SWIG_IsOK(res1)) {
43506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43507 }
43508 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43509 {
43510 arg2 = &temp2;
43511 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43512 }
43513 {
43514 PyThreadState* __tstate = wxPyBeginAllowThreads();
43515 (arg1)->SetColour((wxColour const &)*arg2);
43516 wxPyEndAllowThreads(__tstate);
43517 if (PyErr_Occurred()) SWIG_fail;
43518 }
43519 resultobj = SWIG_Py_Void();
43520 return resultobj;
43521 fail:
43522 return NULL;
43523 }
43524
43525
43526 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43527 PyObject *obj;
43528 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43529 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43530 return SWIG_Py_Void();
43531 }
43532
43533 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43534 return SWIG_Python_InitShadowInstance(args);
43535 }
43536
43537 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43538 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43539 return 1;
43540 }
43541
43542
43543 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43544 PyObject *pyobj = 0;
43545
43546 {
43547 #if wxUSE_UNICODE
43548 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43549 #else
43550 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43551 #endif
43552 }
43553 return pyobj;
43554 }
43555
43556
43557 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43558 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43559 return 1;
43560 }
43561
43562
43563 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43564 PyObject *pyobj = 0;
43565
43566 {
43567 #if wxUSE_UNICODE
43568 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43569 #else
43570 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43571 #endif
43572 }
43573 return pyobj;
43574 }
43575
43576
43577 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43578 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43579 return 1;
43580 }
43581
43582
43583 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43584 PyObject *pyobj = 0;
43585
43586 {
43587 #if wxUSE_UNICODE
43588 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43589 #else
43590 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43591 #endif
43592 }
43593 return pyobj;
43594 }
43595
43596
43597 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43598 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43599 return 1;
43600 }
43601
43602
43603 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43604 PyObject *pyobj = 0;
43605
43606 {
43607 #if wxUSE_UNICODE
43608 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43609 #else
43610 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43611 #endif
43612 }
43613 return pyobj;
43614 }
43615
43616
43617 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43618 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43619 return 1;
43620 }
43621
43622
43623 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43624 PyObject *pyobj = 0;
43625
43626 {
43627 #if wxUSE_UNICODE
43628 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43629 #else
43630 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43631 #endif
43632 }
43633 return pyobj;
43634 }
43635
43636
43637 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43638 PyObject *resultobj = 0;
43639 wxWindow *arg1 = (wxWindow *) 0 ;
43640 int arg2 = (int) -1 ;
43641 wxString const &arg3_defvalue = wxPyEmptyString ;
43642 wxString *arg3 = (wxString *) &arg3_defvalue ;
43643 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43644 wxString *arg4 = (wxString *) &arg4_defvalue ;
43645 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43646 wxString *arg5 = (wxString *) &arg5_defvalue ;
43647 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43648 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43649 wxSize const &arg7_defvalue = wxDefaultSize ;
43650 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43651 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43652 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43653 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43654 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43655 wxString *arg10 = (wxString *) &arg10_defvalue ;
43656 wxFilePickerCtrl *result = 0 ;
43657 void *argp1 = 0 ;
43658 int res1 = 0 ;
43659 int val2 ;
43660 int ecode2 = 0 ;
43661 bool temp3 = false ;
43662 bool temp4 = false ;
43663 bool temp5 = false ;
43664 wxPoint temp6 ;
43665 wxSize temp7 ;
43666 long val8 ;
43667 int ecode8 = 0 ;
43668 void *argp9 = 0 ;
43669 int res9 = 0 ;
43670 bool temp10 = false ;
43671 PyObject * obj0 = 0 ;
43672 PyObject * obj1 = 0 ;
43673 PyObject * obj2 = 0 ;
43674 PyObject * obj3 = 0 ;
43675 PyObject * obj4 = 0 ;
43676 PyObject * obj5 = 0 ;
43677 PyObject * obj6 = 0 ;
43678 PyObject * obj7 = 0 ;
43679 PyObject * obj8 = 0 ;
43680 PyObject * obj9 = 0 ;
43681 char * kwnames[] = {
43682 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43683 };
43684
43685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43687 if (!SWIG_IsOK(res1)) {
43688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43689 }
43690 arg1 = reinterpret_cast< wxWindow * >(argp1);
43691 if (obj1) {
43692 ecode2 = SWIG_AsVal_int(obj1, &val2);
43693 if (!SWIG_IsOK(ecode2)) {
43694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43695 }
43696 arg2 = static_cast< int >(val2);
43697 }
43698 if (obj2) {
43699 {
43700 arg3 = wxString_in_helper(obj2);
43701 if (arg3 == NULL) SWIG_fail;
43702 temp3 = true;
43703 }
43704 }
43705 if (obj3) {
43706 {
43707 arg4 = wxString_in_helper(obj3);
43708 if (arg4 == NULL) SWIG_fail;
43709 temp4 = true;
43710 }
43711 }
43712 if (obj4) {
43713 {
43714 arg5 = wxString_in_helper(obj4);
43715 if (arg5 == NULL) SWIG_fail;
43716 temp5 = true;
43717 }
43718 }
43719 if (obj5) {
43720 {
43721 arg6 = &temp6;
43722 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43723 }
43724 }
43725 if (obj6) {
43726 {
43727 arg7 = &temp7;
43728 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43729 }
43730 }
43731 if (obj7) {
43732 ecode8 = SWIG_AsVal_long(obj7, &val8);
43733 if (!SWIG_IsOK(ecode8)) {
43734 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43735 }
43736 arg8 = static_cast< long >(val8);
43737 }
43738 if (obj8) {
43739 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43740 if (!SWIG_IsOK(res9)) {
43741 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43742 }
43743 if (!argp9) {
43744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43745 }
43746 arg9 = reinterpret_cast< wxValidator * >(argp9);
43747 }
43748 if (obj9) {
43749 {
43750 arg10 = wxString_in_helper(obj9);
43751 if (arg10 == NULL) SWIG_fail;
43752 temp10 = true;
43753 }
43754 }
43755 {
43756 if (!wxPyCheckForApp()) SWIG_fail;
43757 PyThreadState* __tstate = wxPyBeginAllowThreads();
43758 result = (wxFilePickerCtrl *)new wxFilePickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
43759 wxPyEndAllowThreads(__tstate);
43760 if (PyErr_Occurred()) SWIG_fail;
43761 }
43762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43763 {
43764 if (temp3)
43765 delete arg3;
43766 }
43767 {
43768 if (temp4)
43769 delete arg4;
43770 }
43771 {
43772 if (temp5)
43773 delete arg5;
43774 }
43775 {
43776 if (temp10)
43777 delete arg10;
43778 }
43779 return resultobj;
43780 fail:
43781 {
43782 if (temp3)
43783 delete arg3;
43784 }
43785 {
43786 if (temp4)
43787 delete arg4;
43788 }
43789 {
43790 if (temp5)
43791 delete arg5;
43792 }
43793 {
43794 if (temp10)
43795 delete arg10;
43796 }
43797 return NULL;
43798 }
43799
43800
43801 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43802 PyObject *resultobj = 0;
43803 wxFilePickerCtrl *result = 0 ;
43804
43805 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43806 {
43807 if (!wxPyCheckForApp()) SWIG_fail;
43808 PyThreadState* __tstate = wxPyBeginAllowThreads();
43809 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43810 wxPyEndAllowThreads(__tstate);
43811 if (PyErr_Occurred()) SWIG_fail;
43812 }
43813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43814 return resultobj;
43815 fail:
43816 return NULL;
43817 }
43818
43819
43820 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43821 PyObject *resultobj = 0;
43822 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43823 wxWindow *arg2 = (wxWindow *) 0 ;
43824 int arg3 = (int) -1 ;
43825 wxString const &arg4_defvalue = wxPyEmptyString ;
43826 wxString *arg4 = (wxString *) &arg4_defvalue ;
43827 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43828 wxString *arg5 = (wxString *) &arg5_defvalue ;
43829 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43830 wxString *arg6 = (wxString *) &arg6_defvalue ;
43831 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43832 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43833 wxSize const &arg8_defvalue = wxDefaultSize ;
43834 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43835 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43836 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43837 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43838 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43839 wxString *arg11 = (wxString *) &arg11_defvalue ;
43840 bool result;
43841 void *argp1 = 0 ;
43842 int res1 = 0 ;
43843 void *argp2 = 0 ;
43844 int res2 = 0 ;
43845 int val3 ;
43846 int ecode3 = 0 ;
43847 bool temp4 = false ;
43848 bool temp5 = false ;
43849 bool temp6 = false ;
43850 wxPoint temp7 ;
43851 wxSize temp8 ;
43852 long val9 ;
43853 int ecode9 = 0 ;
43854 void *argp10 = 0 ;
43855 int res10 = 0 ;
43856 bool temp11 = false ;
43857 PyObject * obj0 = 0 ;
43858 PyObject * obj1 = 0 ;
43859 PyObject * obj2 = 0 ;
43860 PyObject * obj3 = 0 ;
43861 PyObject * obj4 = 0 ;
43862 PyObject * obj5 = 0 ;
43863 PyObject * obj6 = 0 ;
43864 PyObject * obj7 = 0 ;
43865 PyObject * obj8 = 0 ;
43866 PyObject * obj9 = 0 ;
43867 PyObject * obj10 = 0 ;
43868 char * kwnames[] = {
43869 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43870 };
43871
43872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43874 if (!SWIG_IsOK(res1)) {
43875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43876 }
43877 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43879 if (!SWIG_IsOK(res2)) {
43880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43881 }
43882 arg2 = reinterpret_cast< wxWindow * >(argp2);
43883 if (obj2) {
43884 ecode3 = SWIG_AsVal_int(obj2, &val3);
43885 if (!SWIG_IsOK(ecode3)) {
43886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43887 }
43888 arg3 = static_cast< int >(val3);
43889 }
43890 if (obj3) {
43891 {
43892 arg4 = wxString_in_helper(obj3);
43893 if (arg4 == NULL) SWIG_fail;
43894 temp4 = true;
43895 }
43896 }
43897 if (obj4) {
43898 {
43899 arg5 = wxString_in_helper(obj4);
43900 if (arg5 == NULL) SWIG_fail;
43901 temp5 = true;
43902 }
43903 }
43904 if (obj5) {
43905 {
43906 arg6 = wxString_in_helper(obj5);
43907 if (arg6 == NULL) SWIG_fail;
43908 temp6 = true;
43909 }
43910 }
43911 if (obj6) {
43912 {
43913 arg7 = &temp7;
43914 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43915 }
43916 }
43917 if (obj7) {
43918 {
43919 arg8 = &temp8;
43920 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43921 }
43922 }
43923 if (obj8) {
43924 ecode9 = SWIG_AsVal_long(obj8, &val9);
43925 if (!SWIG_IsOK(ecode9)) {
43926 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43927 }
43928 arg9 = static_cast< long >(val9);
43929 }
43930 if (obj9) {
43931 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43932 if (!SWIG_IsOK(res10)) {
43933 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43934 }
43935 if (!argp10) {
43936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43937 }
43938 arg10 = reinterpret_cast< wxValidator * >(argp10);
43939 }
43940 if (obj10) {
43941 {
43942 arg11 = wxString_in_helper(obj10);
43943 if (arg11 == NULL) SWIG_fail;
43944 temp11 = true;
43945 }
43946 }
43947 {
43948 PyThreadState* __tstate = wxPyBeginAllowThreads();
43949 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxString const &)*arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
43950 wxPyEndAllowThreads(__tstate);
43951 if (PyErr_Occurred()) SWIG_fail;
43952 }
43953 {
43954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43955 }
43956 {
43957 if (temp4)
43958 delete arg4;
43959 }
43960 {
43961 if (temp5)
43962 delete arg5;
43963 }
43964 {
43965 if (temp6)
43966 delete arg6;
43967 }
43968 {
43969 if (temp11)
43970 delete arg11;
43971 }
43972 return resultobj;
43973 fail:
43974 {
43975 if (temp4)
43976 delete arg4;
43977 }
43978 {
43979 if (temp5)
43980 delete arg5;
43981 }
43982 {
43983 if (temp6)
43984 delete arg6;
43985 }
43986 {
43987 if (temp11)
43988 delete arg11;
43989 }
43990 return NULL;
43991 }
43992
43993
43994 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43995 PyObject *resultobj = 0;
43996 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43997 wxString result;
43998 void *argp1 = 0 ;
43999 int res1 = 0 ;
44000 PyObject *swig_obj[1] ;
44001
44002 if (!args) SWIG_fail;
44003 swig_obj[0] = args;
44004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44005 if (!SWIG_IsOK(res1)) {
44006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44007 }
44008 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44009 {
44010 PyThreadState* __tstate = wxPyBeginAllowThreads();
44011 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44012 wxPyEndAllowThreads(__tstate);
44013 if (PyErr_Occurred()) SWIG_fail;
44014 }
44015 {
44016 #if wxUSE_UNICODE
44017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44018 #else
44019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44020 #endif
44021 }
44022 return resultobj;
44023 fail:
44024 return NULL;
44025 }
44026
44027
44028 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44029 PyObject *resultobj = 0;
44030 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44031 wxString *arg2 = 0 ;
44032 void *argp1 = 0 ;
44033 int res1 = 0 ;
44034 bool temp2 = false ;
44035 PyObject * obj0 = 0 ;
44036 PyObject * obj1 = 0 ;
44037 char * kwnames[] = {
44038 (char *) "self",(char *) "str", NULL
44039 };
44040
44041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44043 if (!SWIG_IsOK(res1)) {
44044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44045 }
44046 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44047 {
44048 arg2 = wxString_in_helper(obj1);
44049 if (arg2 == NULL) SWIG_fail;
44050 temp2 = true;
44051 }
44052 {
44053 PyThreadState* __tstate = wxPyBeginAllowThreads();
44054 (arg1)->SetPath((wxString const &)*arg2);
44055 wxPyEndAllowThreads(__tstate);
44056 if (PyErr_Occurred()) SWIG_fail;
44057 }
44058 resultobj = SWIG_Py_Void();
44059 {
44060 if (temp2)
44061 delete arg2;
44062 }
44063 return resultobj;
44064 fail:
44065 {
44066 if (temp2)
44067 delete arg2;
44068 }
44069 return NULL;
44070 }
44071
44072
44073 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44074 PyObject *resultobj = 0;
44075 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44076 wxString *arg2 = 0 ;
44077 bool result;
44078 void *argp1 = 0 ;
44079 int res1 = 0 ;
44080 bool temp2 = false ;
44081 PyObject * obj0 = 0 ;
44082 PyObject * obj1 = 0 ;
44083 char * kwnames[] = {
44084 (char *) "self",(char *) "path", NULL
44085 };
44086
44087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44089 if (!SWIG_IsOK(res1)) {
44090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44091 }
44092 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44093 {
44094 arg2 = wxString_in_helper(obj1);
44095 if (arg2 == NULL) SWIG_fail;
44096 temp2 = true;
44097 }
44098 {
44099 PyThreadState* __tstate = wxPyBeginAllowThreads();
44100 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44101 wxPyEndAllowThreads(__tstate);
44102 if (PyErr_Occurred()) SWIG_fail;
44103 }
44104 {
44105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44106 }
44107 {
44108 if (temp2)
44109 delete arg2;
44110 }
44111 return resultobj;
44112 fail:
44113 {
44114 if (temp2)
44115 delete arg2;
44116 }
44117 return NULL;
44118 }
44119
44120
44121 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44122 PyObject *resultobj = 0;
44123 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44124 wxString result;
44125 void *argp1 = 0 ;
44126 int res1 = 0 ;
44127 PyObject *swig_obj[1] ;
44128
44129 if (!args) SWIG_fail;
44130 swig_obj[0] = args;
44131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44132 if (!SWIG_IsOK(res1)) {
44133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44134 }
44135 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44136 {
44137 PyThreadState* __tstate = wxPyBeginAllowThreads();
44138 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44139 wxPyEndAllowThreads(__tstate);
44140 if (PyErr_Occurred()) SWIG_fail;
44141 }
44142 {
44143 #if wxUSE_UNICODE
44144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44145 #else
44146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44147 #endif
44148 }
44149 return resultobj;
44150 fail:
44151 return NULL;
44152 }
44153
44154
44155 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44156 PyObject *obj;
44157 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44158 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44159 return SWIG_Py_Void();
44160 }
44161
44162 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44163 return SWIG_Python_InitShadowInstance(args);
44164 }
44165
44166 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44167 PyObject *resultobj = 0;
44168 wxWindow *arg1 = (wxWindow *) 0 ;
44169 int arg2 = (int) -1 ;
44170 wxString const &arg3_defvalue = wxPyEmptyString ;
44171 wxString *arg3 = (wxString *) &arg3_defvalue ;
44172 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44173 wxString *arg4 = (wxString *) &arg4_defvalue ;
44174 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44175 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44176 wxSize const &arg6_defvalue = wxDefaultSize ;
44177 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44178 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44179 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44180 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44181 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44182 wxString *arg9 = (wxString *) &arg9_defvalue ;
44183 wxDirPickerCtrl *result = 0 ;
44184 void *argp1 = 0 ;
44185 int res1 = 0 ;
44186 int val2 ;
44187 int ecode2 = 0 ;
44188 bool temp3 = false ;
44189 bool temp4 = false ;
44190 wxPoint temp5 ;
44191 wxSize temp6 ;
44192 long val7 ;
44193 int ecode7 = 0 ;
44194 void *argp8 = 0 ;
44195 int res8 = 0 ;
44196 bool temp9 = false ;
44197 PyObject * obj0 = 0 ;
44198 PyObject * obj1 = 0 ;
44199 PyObject * obj2 = 0 ;
44200 PyObject * obj3 = 0 ;
44201 PyObject * obj4 = 0 ;
44202 PyObject * obj5 = 0 ;
44203 PyObject * obj6 = 0 ;
44204 PyObject * obj7 = 0 ;
44205 PyObject * obj8 = 0 ;
44206 char * kwnames[] = {
44207 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44208 };
44209
44210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44212 if (!SWIG_IsOK(res1)) {
44213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44214 }
44215 arg1 = reinterpret_cast< wxWindow * >(argp1);
44216 if (obj1) {
44217 ecode2 = SWIG_AsVal_int(obj1, &val2);
44218 if (!SWIG_IsOK(ecode2)) {
44219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44220 }
44221 arg2 = static_cast< int >(val2);
44222 }
44223 if (obj2) {
44224 {
44225 arg3 = wxString_in_helper(obj2);
44226 if (arg3 == NULL) SWIG_fail;
44227 temp3 = true;
44228 }
44229 }
44230 if (obj3) {
44231 {
44232 arg4 = wxString_in_helper(obj3);
44233 if (arg4 == NULL) SWIG_fail;
44234 temp4 = true;
44235 }
44236 }
44237 if (obj4) {
44238 {
44239 arg5 = &temp5;
44240 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44241 }
44242 }
44243 if (obj5) {
44244 {
44245 arg6 = &temp6;
44246 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44247 }
44248 }
44249 if (obj6) {
44250 ecode7 = SWIG_AsVal_long(obj6, &val7);
44251 if (!SWIG_IsOK(ecode7)) {
44252 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44253 }
44254 arg7 = static_cast< long >(val7);
44255 }
44256 if (obj7) {
44257 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44258 if (!SWIG_IsOK(res8)) {
44259 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44260 }
44261 if (!argp8) {
44262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44263 }
44264 arg8 = reinterpret_cast< wxValidator * >(argp8);
44265 }
44266 if (obj8) {
44267 {
44268 arg9 = wxString_in_helper(obj8);
44269 if (arg9 == NULL) SWIG_fail;
44270 temp9 = true;
44271 }
44272 }
44273 {
44274 if (!wxPyCheckForApp()) SWIG_fail;
44275 PyThreadState* __tstate = wxPyBeginAllowThreads();
44276 result = (wxDirPickerCtrl *)new wxDirPickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44277 wxPyEndAllowThreads(__tstate);
44278 if (PyErr_Occurred()) SWIG_fail;
44279 }
44280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44281 {
44282 if (temp3)
44283 delete arg3;
44284 }
44285 {
44286 if (temp4)
44287 delete arg4;
44288 }
44289 {
44290 if (temp9)
44291 delete arg9;
44292 }
44293 return resultobj;
44294 fail:
44295 {
44296 if (temp3)
44297 delete arg3;
44298 }
44299 {
44300 if (temp4)
44301 delete arg4;
44302 }
44303 {
44304 if (temp9)
44305 delete arg9;
44306 }
44307 return NULL;
44308 }
44309
44310
44311 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44312 PyObject *resultobj = 0;
44313 wxDirPickerCtrl *result = 0 ;
44314
44315 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44316 {
44317 if (!wxPyCheckForApp()) SWIG_fail;
44318 PyThreadState* __tstate = wxPyBeginAllowThreads();
44319 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44320 wxPyEndAllowThreads(__tstate);
44321 if (PyErr_Occurred()) SWIG_fail;
44322 }
44323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44324 return resultobj;
44325 fail:
44326 return NULL;
44327 }
44328
44329
44330 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44331 PyObject *resultobj = 0;
44332 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44333 wxWindow *arg2 = (wxWindow *) 0 ;
44334 int arg3 = (int) -1 ;
44335 wxString const &arg4_defvalue = wxPyEmptyString ;
44336 wxString *arg4 = (wxString *) &arg4_defvalue ;
44337 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44338 wxString *arg5 = (wxString *) &arg5_defvalue ;
44339 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44340 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44341 wxSize const &arg7_defvalue = wxDefaultSize ;
44342 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44343 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44344 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44345 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44346 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44347 wxString *arg10 = (wxString *) &arg10_defvalue ;
44348 bool result;
44349 void *argp1 = 0 ;
44350 int res1 = 0 ;
44351 void *argp2 = 0 ;
44352 int res2 = 0 ;
44353 int val3 ;
44354 int ecode3 = 0 ;
44355 bool temp4 = false ;
44356 bool temp5 = false ;
44357 wxPoint temp6 ;
44358 wxSize temp7 ;
44359 long val8 ;
44360 int ecode8 = 0 ;
44361 void *argp9 = 0 ;
44362 int res9 = 0 ;
44363 bool temp10 = false ;
44364 PyObject * obj0 = 0 ;
44365 PyObject * obj1 = 0 ;
44366 PyObject * obj2 = 0 ;
44367 PyObject * obj3 = 0 ;
44368 PyObject * obj4 = 0 ;
44369 PyObject * obj5 = 0 ;
44370 PyObject * obj6 = 0 ;
44371 PyObject * obj7 = 0 ;
44372 PyObject * obj8 = 0 ;
44373 PyObject * obj9 = 0 ;
44374 char * kwnames[] = {
44375 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44376 };
44377
44378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44380 if (!SWIG_IsOK(res1)) {
44381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44382 }
44383 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44385 if (!SWIG_IsOK(res2)) {
44386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44387 }
44388 arg2 = reinterpret_cast< wxWindow * >(argp2);
44389 if (obj2) {
44390 ecode3 = SWIG_AsVal_int(obj2, &val3);
44391 if (!SWIG_IsOK(ecode3)) {
44392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44393 }
44394 arg3 = static_cast< int >(val3);
44395 }
44396 if (obj3) {
44397 {
44398 arg4 = wxString_in_helper(obj3);
44399 if (arg4 == NULL) SWIG_fail;
44400 temp4 = true;
44401 }
44402 }
44403 if (obj4) {
44404 {
44405 arg5 = wxString_in_helper(obj4);
44406 if (arg5 == NULL) SWIG_fail;
44407 temp5 = true;
44408 }
44409 }
44410 if (obj5) {
44411 {
44412 arg6 = &temp6;
44413 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44414 }
44415 }
44416 if (obj6) {
44417 {
44418 arg7 = &temp7;
44419 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44420 }
44421 }
44422 if (obj7) {
44423 ecode8 = SWIG_AsVal_long(obj7, &val8);
44424 if (!SWIG_IsOK(ecode8)) {
44425 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44426 }
44427 arg8 = static_cast< long >(val8);
44428 }
44429 if (obj8) {
44430 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44431 if (!SWIG_IsOK(res9)) {
44432 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44433 }
44434 if (!argp9) {
44435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44436 }
44437 arg9 = reinterpret_cast< wxValidator * >(argp9);
44438 }
44439 if (obj9) {
44440 {
44441 arg10 = wxString_in_helper(obj9);
44442 if (arg10 == NULL) SWIG_fail;
44443 temp10 = true;
44444 }
44445 }
44446 {
44447 PyThreadState* __tstate = wxPyBeginAllowThreads();
44448 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
44449 wxPyEndAllowThreads(__tstate);
44450 if (PyErr_Occurred()) SWIG_fail;
44451 }
44452 {
44453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44454 }
44455 {
44456 if (temp4)
44457 delete arg4;
44458 }
44459 {
44460 if (temp5)
44461 delete arg5;
44462 }
44463 {
44464 if (temp10)
44465 delete arg10;
44466 }
44467 return resultobj;
44468 fail:
44469 {
44470 if (temp4)
44471 delete arg4;
44472 }
44473 {
44474 if (temp5)
44475 delete arg5;
44476 }
44477 {
44478 if (temp10)
44479 delete arg10;
44480 }
44481 return NULL;
44482 }
44483
44484
44485 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44486 PyObject *resultobj = 0;
44487 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44488 wxString result;
44489 void *argp1 = 0 ;
44490 int res1 = 0 ;
44491 PyObject *swig_obj[1] ;
44492
44493 if (!args) SWIG_fail;
44494 swig_obj[0] = args;
44495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44496 if (!SWIG_IsOK(res1)) {
44497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44498 }
44499 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44500 {
44501 PyThreadState* __tstate = wxPyBeginAllowThreads();
44502 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44503 wxPyEndAllowThreads(__tstate);
44504 if (PyErr_Occurred()) SWIG_fail;
44505 }
44506 {
44507 #if wxUSE_UNICODE
44508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44509 #else
44510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44511 #endif
44512 }
44513 return resultobj;
44514 fail:
44515 return NULL;
44516 }
44517
44518
44519 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44520 PyObject *resultobj = 0;
44521 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44522 wxString *arg2 = 0 ;
44523 void *argp1 = 0 ;
44524 int res1 = 0 ;
44525 bool temp2 = false ;
44526 PyObject * obj0 = 0 ;
44527 PyObject * obj1 = 0 ;
44528 char * kwnames[] = {
44529 (char *) "self",(char *) "str", NULL
44530 };
44531
44532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44534 if (!SWIG_IsOK(res1)) {
44535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44536 }
44537 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44538 {
44539 arg2 = wxString_in_helper(obj1);
44540 if (arg2 == NULL) SWIG_fail;
44541 temp2 = true;
44542 }
44543 {
44544 PyThreadState* __tstate = wxPyBeginAllowThreads();
44545 (arg1)->SetPath((wxString const &)*arg2);
44546 wxPyEndAllowThreads(__tstate);
44547 if (PyErr_Occurred()) SWIG_fail;
44548 }
44549 resultobj = SWIG_Py_Void();
44550 {
44551 if (temp2)
44552 delete arg2;
44553 }
44554 return resultobj;
44555 fail:
44556 {
44557 if (temp2)
44558 delete arg2;
44559 }
44560 return NULL;
44561 }
44562
44563
44564 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44565 PyObject *resultobj = 0;
44566 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44567 wxString *arg2 = 0 ;
44568 bool result;
44569 void *argp1 = 0 ;
44570 int res1 = 0 ;
44571 bool temp2 = false ;
44572 PyObject * obj0 = 0 ;
44573 PyObject * obj1 = 0 ;
44574 char * kwnames[] = {
44575 (char *) "self",(char *) "path", NULL
44576 };
44577
44578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44580 if (!SWIG_IsOK(res1)) {
44581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44582 }
44583 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44584 {
44585 arg2 = wxString_in_helper(obj1);
44586 if (arg2 == NULL) SWIG_fail;
44587 temp2 = true;
44588 }
44589 {
44590 PyThreadState* __tstate = wxPyBeginAllowThreads();
44591 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44592 wxPyEndAllowThreads(__tstate);
44593 if (PyErr_Occurred()) SWIG_fail;
44594 }
44595 {
44596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44597 }
44598 {
44599 if (temp2)
44600 delete arg2;
44601 }
44602 return resultobj;
44603 fail:
44604 {
44605 if (temp2)
44606 delete arg2;
44607 }
44608 return NULL;
44609 }
44610
44611
44612 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44613 PyObject *resultobj = 0;
44614 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44615 wxString result;
44616 void *argp1 = 0 ;
44617 int res1 = 0 ;
44618 PyObject *swig_obj[1] ;
44619
44620 if (!args) SWIG_fail;
44621 swig_obj[0] = args;
44622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44623 if (!SWIG_IsOK(res1)) {
44624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44625 }
44626 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44627 {
44628 PyThreadState* __tstate = wxPyBeginAllowThreads();
44629 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44630 wxPyEndAllowThreads(__tstate);
44631 if (PyErr_Occurred()) SWIG_fail;
44632 }
44633 {
44634 #if wxUSE_UNICODE
44635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44636 #else
44637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44638 #endif
44639 }
44640 return resultobj;
44641 fail:
44642 return NULL;
44643 }
44644
44645
44646 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44647 PyObject *obj;
44648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44649 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44650 return SWIG_Py_Void();
44651 }
44652
44653 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44654 return SWIG_Python_InitShadowInstance(args);
44655 }
44656
44657 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44658 PyObject *resultobj = 0;
44659 wxEventType arg1 ;
44660 wxObject *arg2 = (wxObject *) 0 ;
44661 int arg3 ;
44662 wxString *arg4 = 0 ;
44663 wxFileDirPickerEvent *result = 0 ;
44664 int val1 ;
44665 int ecode1 = 0 ;
44666 void *argp2 = 0 ;
44667 int res2 = 0 ;
44668 int val3 ;
44669 int ecode3 = 0 ;
44670 bool temp4 = false ;
44671 PyObject * obj0 = 0 ;
44672 PyObject * obj1 = 0 ;
44673 PyObject * obj2 = 0 ;
44674 PyObject * obj3 = 0 ;
44675 char * kwnames[] = {
44676 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44677 };
44678
44679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44680 ecode1 = SWIG_AsVal_int(obj0, &val1);
44681 if (!SWIG_IsOK(ecode1)) {
44682 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44683 }
44684 arg1 = static_cast< wxEventType >(val1);
44685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44686 if (!SWIG_IsOK(res2)) {
44687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44688 }
44689 arg2 = reinterpret_cast< wxObject * >(argp2);
44690 ecode3 = SWIG_AsVal_int(obj2, &val3);
44691 if (!SWIG_IsOK(ecode3)) {
44692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44693 }
44694 arg3 = static_cast< int >(val3);
44695 {
44696 arg4 = wxString_in_helper(obj3);
44697 if (arg4 == NULL) SWIG_fail;
44698 temp4 = true;
44699 }
44700 {
44701 PyThreadState* __tstate = wxPyBeginAllowThreads();
44702 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44703 wxPyEndAllowThreads(__tstate);
44704 if (PyErr_Occurred()) SWIG_fail;
44705 }
44706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44707 {
44708 if (temp4)
44709 delete arg4;
44710 }
44711 return resultobj;
44712 fail:
44713 {
44714 if (temp4)
44715 delete arg4;
44716 }
44717 return NULL;
44718 }
44719
44720
44721 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44722 PyObject *resultobj = 0;
44723 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44724 wxString result;
44725 void *argp1 = 0 ;
44726 int res1 = 0 ;
44727 PyObject *swig_obj[1] ;
44728
44729 if (!args) SWIG_fail;
44730 swig_obj[0] = args;
44731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44732 if (!SWIG_IsOK(res1)) {
44733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44734 }
44735 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44736 {
44737 PyThreadState* __tstate = wxPyBeginAllowThreads();
44738 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44739 wxPyEndAllowThreads(__tstate);
44740 if (PyErr_Occurred()) SWIG_fail;
44741 }
44742 {
44743 #if wxUSE_UNICODE
44744 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44745 #else
44746 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44747 #endif
44748 }
44749 return resultobj;
44750 fail:
44751 return NULL;
44752 }
44753
44754
44755 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44756 PyObject *resultobj = 0;
44757 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44758 wxString *arg2 = 0 ;
44759 void *argp1 = 0 ;
44760 int res1 = 0 ;
44761 bool temp2 = false ;
44762 PyObject * obj0 = 0 ;
44763 PyObject * obj1 = 0 ;
44764 char * kwnames[] = {
44765 (char *) "self",(char *) "p", NULL
44766 };
44767
44768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44770 if (!SWIG_IsOK(res1)) {
44771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44772 }
44773 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44774 {
44775 arg2 = wxString_in_helper(obj1);
44776 if (arg2 == NULL) SWIG_fail;
44777 temp2 = true;
44778 }
44779 {
44780 PyThreadState* __tstate = wxPyBeginAllowThreads();
44781 (arg1)->SetPath((wxString const &)*arg2);
44782 wxPyEndAllowThreads(__tstate);
44783 if (PyErr_Occurred()) SWIG_fail;
44784 }
44785 resultobj = SWIG_Py_Void();
44786 {
44787 if (temp2)
44788 delete arg2;
44789 }
44790 return resultobj;
44791 fail:
44792 {
44793 if (temp2)
44794 delete arg2;
44795 }
44796 return NULL;
44797 }
44798
44799
44800 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44801 PyObject *obj;
44802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44803 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44804 return SWIG_Py_Void();
44805 }
44806
44807 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44808 return SWIG_Python_InitShadowInstance(args);
44809 }
44810
44811 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44812 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44813 return 1;
44814 }
44815
44816
44817 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44818 PyObject *pyobj = 0;
44819
44820 {
44821 #if wxUSE_UNICODE
44822 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44823 #else
44824 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44825 #endif
44826 }
44827 return pyobj;
44828 }
44829
44830
44831 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44832 PyObject *resultobj = 0;
44833 wxWindow *arg1 = (wxWindow *) 0 ;
44834 int arg2 = (int) -1 ;
44835 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44836 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44839 wxSize const &arg5_defvalue = wxDefaultSize ;
44840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44841 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44842 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44843 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44844 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44845 wxString *arg8 = (wxString *) &arg8_defvalue ;
44846 wxFontPickerCtrl *result = 0 ;
44847 void *argp1 = 0 ;
44848 int res1 = 0 ;
44849 int val2 ;
44850 int ecode2 = 0 ;
44851 void *argp3 = 0 ;
44852 int res3 = 0 ;
44853 wxPoint temp4 ;
44854 wxSize temp5 ;
44855 long val6 ;
44856 int ecode6 = 0 ;
44857 void *argp7 = 0 ;
44858 int res7 = 0 ;
44859 bool temp8 = false ;
44860 PyObject * obj0 = 0 ;
44861 PyObject * obj1 = 0 ;
44862 PyObject * obj2 = 0 ;
44863 PyObject * obj3 = 0 ;
44864 PyObject * obj4 = 0 ;
44865 PyObject * obj5 = 0 ;
44866 PyObject * obj6 = 0 ;
44867 PyObject * obj7 = 0 ;
44868 char * kwnames[] = {
44869 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44870 };
44871
44872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44874 if (!SWIG_IsOK(res1)) {
44875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44876 }
44877 arg1 = reinterpret_cast< wxWindow * >(argp1);
44878 if (obj1) {
44879 ecode2 = SWIG_AsVal_int(obj1, &val2);
44880 if (!SWIG_IsOK(ecode2)) {
44881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44882 }
44883 arg2 = static_cast< int >(val2);
44884 }
44885 if (obj2) {
44886 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44887 if (!SWIG_IsOK(res3)) {
44888 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44889 }
44890 if (!argp3) {
44891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44892 }
44893 arg3 = reinterpret_cast< wxFont * >(argp3);
44894 }
44895 if (obj3) {
44896 {
44897 arg4 = &temp4;
44898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44899 }
44900 }
44901 if (obj4) {
44902 {
44903 arg5 = &temp5;
44904 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44905 }
44906 }
44907 if (obj5) {
44908 ecode6 = SWIG_AsVal_long(obj5, &val6);
44909 if (!SWIG_IsOK(ecode6)) {
44910 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44911 }
44912 arg6 = static_cast< long >(val6);
44913 }
44914 if (obj6) {
44915 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44916 if (!SWIG_IsOK(res7)) {
44917 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44918 }
44919 if (!argp7) {
44920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44921 }
44922 arg7 = reinterpret_cast< wxValidator * >(argp7);
44923 }
44924 if (obj7) {
44925 {
44926 arg8 = wxString_in_helper(obj7);
44927 if (arg8 == NULL) SWIG_fail;
44928 temp8 = true;
44929 }
44930 }
44931 {
44932 if (!wxPyCheckForApp()) SWIG_fail;
44933 PyThreadState* __tstate = wxPyBeginAllowThreads();
44934 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44935 wxPyEndAllowThreads(__tstate);
44936 if (PyErr_Occurred()) SWIG_fail;
44937 }
44938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44939 {
44940 if (temp8)
44941 delete arg8;
44942 }
44943 return resultobj;
44944 fail:
44945 {
44946 if (temp8)
44947 delete arg8;
44948 }
44949 return NULL;
44950 }
44951
44952
44953 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44954 PyObject *resultobj = 0;
44955 wxFontPickerCtrl *result = 0 ;
44956
44957 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44958 {
44959 if (!wxPyCheckForApp()) SWIG_fail;
44960 PyThreadState* __tstate = wxPyBeginAllowThreads();
44961 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44962 wxPyEndAllowThreads(__tstate);
44963 if (PyErr_Occurred()) SWIG_fail;
44964 }
44965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44966 return resultobj;
44967 fail:
44968 return NULL;
44969 }
44970
44971
44972 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44973 PyObject *resultobj = 0;
44974 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44975 wxWindow *arg2 = (wxWindow *) 0 ;
44976 int arg3 = (int) -1 ;
44977 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44978 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44979 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44980 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44981 wxSize const &arg6_defvalue = wxDefaultSize ;
44982 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44983 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44984 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44985 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44986 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44987 wxString *arg9 = (wxString *) &arg9_defvalue ;
44988 bool result;
44989 void *argp1 = 0 ;
44990 int res1 = 0 ;
44991 void *argp2 = 0 ;
44992 int res2 = 0 ;
44993 int val3 ;
44994 int ecode3 = 0 ;
44995 void *argp4 = 0 ;
44996 int res4 = 0 ;
44997 wxPoint temp5 ;
44998 wxSize temp6 ;
44999 long val7 ;
45000 int ecode7 = 0 ;
45001 void *argp8 = 0 ;
45002 int res8 = 0 ;
45003 bool temp9 = false ;
45004 PyObject * obj0 = 0 ;
45005 PyObject * obj1 = 0 ;
45006 PyObject * obj2 = 0 ;
45007 PyObject * obj3 = 0 ;
45008 PyObject * obj4 = 0 ;
45009 PyObject * obj5 = 0 ;
45010 PyObject * obj6 = 0 ;
45011 PyObject * obj7 = 0 ;
45012 PyObject * obj8 = 0 ;
45013 char * kwnames[] = {
45014 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45015 };
45016
45017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45019 if (!SWIG_IsOK(res1)) {
45020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45021 }
45022 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45024 if (!SWIG_IsOK(res2)) {
45025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45026 }
45027 arg2 = reinterpret_cast< wxWindow * >(argp2);
45028 if (obj2) {
45029 ecode3 = SWIG_AsVal_int(obj2, &val3);
45030 if (!SWIG_IsOK(ecode3)) {
45031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45032 }
45033 arg3 = static_cast< int >(val3);
45034 }
45035 if (obj3) {
45036 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45037 if (!SWIG_IsOK(res4)) {
45038 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45039 }
45040 if (!argp4) {
45041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45042 }
45043 arg4 = reinterpret_cast< wxFont * >(argp4);
45044 }
45045 if (obj4) {
45046 {
45047 arg5 = &temp5;
45048 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45049 }
45050 }
45051 if (obj5) {
45052 {
45053 arg6 = &temp6;
45054 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45055 }
45056 }
45057 if (obj6) {
45058 ecode7 = SWIG_AsVal_long(obj6, &val7);
45059 if (!SWIG_IsOK(ecode7)) {
45060 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45061 }
45062 arg7 = static_cast< long >(val7);
45063 }
45064 if (obj7) {
45065 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45066 if (!SWIG_IsOK(res8)) {
45067 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45068 }
45069 if (!argp8) {
45070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45071 }
45072 arg8 = reinterpret_cast< wxValidator * >(argp8);
45073 }
45074 if (obj8) {
45075 {
45076 arg9 = wxString_in_helper(obj8);
45077 if (arg9 == NULL) SWIG_fail;
45078 temp9 = true;
45079 }
45080 }
45081 {
45082 PyThreadState* __tstate = wxPyBeginAllowThreads();
45083 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45084 wxPyEndAllowThreads(__tstate);
45085 if (PyErr_Occurred()) SWIG_fail;
45086 }
45087 {
45088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45089 }
45090 {
45091 if (temp9)
45092 delete arg9;
45093 }
45094 return resultobj;
45095 fail:
45096 {
45097 if (temp9)
45098 delete arg9;
45099 }
45100 return NULL;
45101 }
45102
45103
45104 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45105 PyObject *resultobj = 0;
45106 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45107 wxFont result;
45108 void *argp1 = 0 ;
45109 int res1 = 0 ;
45110 PyObject *swig_obj[1] ;
45111
45112 if (!args) SWIG_fail;
45113 swig_obj[0] = args;
45114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45115 if (!SWIG_IsOK(res1)) {
45116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45117 }
45118 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45119 {
45120 PyThreadState* __tstate = wxPyBeginAllowThreads();
45121 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45122 wxPyEndAllowThreads(__tstate);
45123 if (PyErr_Occurred()) SWIG_fail;
45124 }
45125 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45126 return resultobj;
45127 fail:
45128 return NULL;
45129 }
45130
45131
45132 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45133 PyObject *resultobj = 0;
45134 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45135 wxFont *arg2 = 0 ;
45136 void *argp1 = 0 ;
45137 int res1 = 0 ;
45138 void *argp2 = 0 ;
45139 int res2 = 0 ;
45140 PyObject * obj0 = 0 ;
45141 PyObject * obj1 = 0 ;
45142 char * kwnames[] = {
45143 (char *) "self",(char *) "f", NULL
45144 };
45145
45146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45148 if (!SWIG_IsOK(res1)) {
45149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45150 }
45151 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45153 if (!SWIG_IsOK(res2)) {
45154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45155 }
45156 if (!argp2) {
45157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45158 }
45159 arg2 = reinterpret_cast< wxFont * >(argp2);
45160 {
45161 PyThreadState* __tstate = wxPyBeginAllowThreads();
45162 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45163 wxPyEndAllowThreads(__tstate);
45164 if (PyErr_Occurred()) SWIG_fail;
45165 }
45166 resultobj = SWIG_Py_Void();
45167 return resultobj;
45168 fail:
45169 return NULL;
45170 }
45171
45172
45173 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45174 PyObject *resultobj = 0;
45175 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45176 unsigned int arg2 ;
45177 void *argp1 = 0 ;
45178 int res1 = 0 ;
45179 unsigned int val2 ;
45180 int ecode2 = 0 ;
45181 PyObject * obj0 = 0 ;
45182 PyObject * obj1 = 0 ;
45183 char * kwnames[] = {
45184 (char *) "self",(char *) "max", NULL
45185 };
45186
45187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45189 if (!SWIG_IsOK(res1)) {
45190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45191 }
45192 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45193 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45194 if (!SWIG_IsOK(ecode2)) {
45195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45196 }
45197 arg2 = static_cast< unsigned int >(val2);
45198 {
45199 PyThreadState* __tstate = wxPyBeginAllowThreads();
45200 (arg1)->SetMaxPointSize(arg2);
45201 wxPyEndAllowThreads(__tstate);
45202 if (PyErr_Occurred()) SWIG_fail;
45203 }
45204 resultobj = SWIG_Py_Void();
45205 return resultobj;
45206 fail:
45207 return NULL;
45208 }
45209
45210
45211 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45212 PyObject *resultobj = 0;
45213 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45214 unsigned int result;
45215 void *argp1 = 0 ;
45216 int res1 = 0 ;
45217 PyObject *swig_obj[1] ;
45218
45219 if (!args) SWIG_fail;
45220 swig_obj[0] = args;
45221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45222 if (!SWIG_IsOK(res1)) {
45223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45224 }
45225 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45226 {
45227 PyThreadState* __tstate = wxPyBeginAllowThreads();
45228 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45229 wxPyEndAllowThreads(__tstate);
45230 if (PyErr_Occurred()) SWIG_fail;
45231 }
45232 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45233 return resultobj;
45234 fail:
45235 return NULL;
45236 }
45237
45238
45239 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45240 PyObject *obj;
45241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45242 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45243 return SWIG_Py_Void();
45244 }
45245
45246 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45247 return SWIG_Python_InitShadowInstance(args);
45248 }
45249
45250 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45251 PyObject *resultobj = 0;
45252 wxObject *arg1 = (wxObject *) 0 ;
45253 int arg2 ;
45254 wxFont *arg3 = 0 ;
45255 wxFontPickerEvent *result = 0 ;
45256 void *argp1 = 0 ;
45257 int res1 = 0 ;
45258 int val2 ;
45259 int ecode2 = 0 ;
45260 void *argp3 = 0 ;
45261 int res3 = 0 ;
45262 PyObject * obj0 = 0 ;
45263 PyObject * obj1 = 0 ;
45264 PyObject * obj2 = 0 ;
45265 char * kwnames[] = {
45266 (char *) "generator",(char *) "id",(char *) "f", NULL
45267 };
45268
45269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45271 if (!SWIG_IsOK(res1)) {
45272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45273 }
45274 arg1 = reinterpret_cast< wxObject * >(argp1);
45275 ecode2 = SWIG_AsVal_int(obj1, &val2);
45276 if (!SWIG_IsOK(ecode2)) {
45277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45278 }
45279 arg2 = static_cast< int >(val2);
45280 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45281 if (!SWIG_IsOK(res3)) {
45282 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45283 }
45284 if (!argp3) {
45285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45286 }
45287 arg3 = reinterpret_cast< wxFont * >(argp3);
45288 {
45289 PyThreadState* __tstate = wxPyBeginAllowThreads();
45290 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45291 wxPyEndAllowThreads(__tstate);
45292 if (PyErr_Occurred()) SWIG_fail;
45293 }
45294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45295 return resultobj;
45296 fail:
45297 return NULL;
45298 }
45299
45300
45301 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45302 PyObject *resultobj = 0;
45303 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45304 wxFont result;
45305 void *argp1 = 0 ;
45306 int res1 = 0 ;
45307 PyObject *swig_obj[1] ;
45308
45309 if (!args) SWIG_fail;
45310 swig_obj[0] = args;
45311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45312 if (!SWIG_IsOK(res1)) {
45313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45314 }
45315 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45316 {
45317 PyThreadState* __tstate = wxPyBeginAllowThreads();
45318 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45319 wxPyEndAllowThreads(__tstate);
45320 if (PyErr_Occurred()) SWIG_fail;
45321 }
45322 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45323 return resultobj;
45324 fail:
45325 return NULL;
45326 }
45327
45328
45329 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45330 PyObject *resultobj = 0;
45331 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45332 wxFont *arg2 = 0 ;
45333 void *argp1 = 0 ;
45334 int res1 = 0 ;
45335 void *argp2 = 0 ;
45336 int res2 = 0 ;
45337 PyObject * obj0 = 0 ;
45338 PyObject * obj1 = 0 ;
45339 char * kwnames[] = {
45340 (char *) "self",(char *) "c", NULL
45341 };
45342
45343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45345 if (!SWIG_IsOK(res1)) {
45346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45347 }
45348 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45349 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45350 if (!SWIG_IsOK(res2)) {
45351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45352 }
45353 if (!argp2) {
45354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45355 }
45356 arg2 = reinterpret_cast< wxFont * >(argp2);
45357 {
45358 PyThreadState* __tstate = wxPyBeginAllowThreads();
45359 (arg1)->SetFont((wxFont const &)*arg2);
45360 wxPyEndAllowThreads(__tstate);
45361 if (PyErr_Occurred()) SWIG_fail;
45362 }
45363 resultobj = SWIG_Py_Void();
45364 return resultobj;
45365 fail:
45366 return NULL;
45367 }
45368
45369
45370 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45371 PyObject *obj;
45372 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45373 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45374 return SWIG_Py_Void();
45375 }
45376
45377 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45378 return SWIG_Python_InitShadowInstance(args);
45379 }
45380
45381 static PyMethodDef SwigMethods[] = {
45382 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45384 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45386 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45387 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45389 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45390 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45392 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45394 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45395 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45396 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45397 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45398 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45405 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45406 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45407 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45408 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45410 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45412 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45413 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45415 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45417 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45418 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45419 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45420 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45421 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45423 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45424 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45425 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45427 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45428 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45430 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45432 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45434 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45435 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45436 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45438 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45439 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45442 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45443 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45445 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45447 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45449 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45450 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45451 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45452 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45453 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45454 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45455 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45456 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45457 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45459 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45460 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45462 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45465 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45467 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45468 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45470 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45472 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45474 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45475 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45477 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45480 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45481 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45483 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45485 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45486 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45488 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45489 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45491 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45494 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45495 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45496 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45498 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45500 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45504 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45505 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45507 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45508 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45514 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45518 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45523 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45529 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45530 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45532 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45536 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45537 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45538 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45540 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45541 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45546 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45551 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45552 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45553 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45554 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45555 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45556 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45557 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45559 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45560 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45561 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45562 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45563 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45564 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45565 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45566 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45567 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45568 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45570 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45571 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45573 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45575 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45577 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45579 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45580 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45581 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45582 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45583 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45584 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45585 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45586 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45587 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45592 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45593 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45602 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45608 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45609 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45610 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45611 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45612 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45613 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45614 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45615 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45616 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45617 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45619 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45620 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45621 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45623 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
45625 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
45626 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45630 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45631 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45633 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45634 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45635 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45636 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45637 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45639 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45641 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45642 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45643 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45644 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45645 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45646 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45647 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45648 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45649 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45651 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45653 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45654 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45655 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45660 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45662 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45663 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45665 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45667 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45669 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45671 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45672 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45675 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45676 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45678 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45680 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45681 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45683 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45686 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45687 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45689 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45693 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45695 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45697 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45698 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45705 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45706 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45708 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45710 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45713 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45714 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45716 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45718 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45719 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45721 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45722 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45727 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45728 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45730 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45732 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45733 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45735 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45736 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45737 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45740 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45741 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45743 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45746 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45748 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45749 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45750 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45752 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45753 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45756 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45758 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45763 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45765 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45767 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45769 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45770 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45773 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45780 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45782 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45784 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45786 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45787 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45789 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45791 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45794 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45796 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45797 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45799 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45800 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45802 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45804 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45805 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45806 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45808 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45809 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45811 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45813 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45814 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45815 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45817 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45818 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45820 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45828 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45829 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45830 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45832 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45833 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45835 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45837 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45838 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45839 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45840 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45842 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45843 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45844 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45845 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45846 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45847 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45848 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45849 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45850 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45851 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45852 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45853 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45854 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45855 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45856 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45857 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45858 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45859 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45860 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45861 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45862 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45869 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45871 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45873 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45881 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45883 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45886 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45887 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45904 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45905 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45906 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45907 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45910 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45911 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45913 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45914 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45917 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45918 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45919 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45921 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45924 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45925 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45927 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45931 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45932 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45933 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45934 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45935 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45936 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45938 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45939 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45940 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45941 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45942 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45943 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45944 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45958 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45959 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45960 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45961 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45962 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45963 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45964 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45965 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45966 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45967 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45968 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45969 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45970 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45971 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45972 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45973 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45974 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45975 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45976 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45977 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45978 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45979 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45980 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45981 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45982 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45983 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45984 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45985 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45986 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45987 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45988 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45989 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45990 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45991 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45992 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45993 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45995 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45996 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45997 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45998 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45999 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46000 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46001 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46002 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46003 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46004 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46005 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46006 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46007 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46008 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46009 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46010 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46011 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46012 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46013 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46014 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46015 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46016 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46017 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46018 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46020 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46021 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46023 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46030 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46031 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46032 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46047 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46048 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46049 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46050 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46051 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46053 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46059 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46060 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46065 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46067 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46068 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46079 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46092 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46094 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46095 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46097 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46101 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46103 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46107 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46108 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46109 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46110 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46111 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46114 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46115 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46116 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46117 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46119 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46120 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46122 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46124 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46125 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
46126 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
46127 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46128 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46130 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46132 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46134 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46135 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46137 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46139 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46142 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46143 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46144 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46146 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46149 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46150 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46152 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46154 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46155 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46167 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46169 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46177 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46178 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46180 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46182 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46183 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46184 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46185 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46187 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46189 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46192 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46194 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46196 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46199 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46201 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46202 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
46203 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
46205 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46206 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46207 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46209 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46211 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46213 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46214 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46216 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46217 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46222 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
46223 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
46226 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46227 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46228 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46230 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46234 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46236 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46237 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46239 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46240 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46241 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46243 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46244 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46245 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46246 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46247 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46249 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46250 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46251 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46252 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46254 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46255 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46257 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46258 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46259 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46260 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46262 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46264 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46268 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46269 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46270 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46271 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46272 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46273 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46274 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46275 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46276 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46277 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46278 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46280 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46282 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46284 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46285 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46286 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46287 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46289 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46291 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46292 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46293 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46295 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46296 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46297 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46299 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46301 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46302 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46304 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46306 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46307 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46308 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46309 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46310 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46312 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46314 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46315 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46316 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46317 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46319 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46320 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46321 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46322 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46323 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46324 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46326 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46328 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46329 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46331 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46332 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46334 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46335 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46336 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46337 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46338 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46339 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46341 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46343 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46344 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46345 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46347 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46348 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46349 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46350 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46351 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46352 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46353 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46354 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46356 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46357 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46358 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46359 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46361 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46362 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46364 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46365 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
46366 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46367 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46369 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46370 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46371 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46372 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46373 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46374 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46375 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46376 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46377 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46378 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46379 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46380 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46381 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46382 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46383 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46384 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46385 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46386 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46387 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46388 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46390 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46391 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46392 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46393 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46394 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46395 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46396 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46397 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46398 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46399 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46400 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46401 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46402 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46403 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46404 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46405 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46406 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46407 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46408 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46409 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46410 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46411 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46412 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46413 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46414 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46415 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46416 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46417 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46418 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46419 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46420 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46421 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46422 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46423 { NULL, NULL, 0, NULL }
46424 };
46425
46426
46427 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46428
46429 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46430 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46431 }
46432 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46433 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46434 }
46435 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46436 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46437 }
46438 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46439 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46440 }
46441 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46442 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46443 }
46444 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46445 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46446 }
46447 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46448 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46449 }
46450 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46451 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46452 }
46453 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46454 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46455 }
46456 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46457 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46458 }
46459 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46460 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46461 }
46462 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46463 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46464 }
46465 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46466 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46467 }
46468 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46469 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46470 }
46471 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46472 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46473 }
46474 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46475 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46476 }
46477 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46478 return (void *)((wxEvent *) ((wxPyEvent *) x));
46479 }
46480 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46481 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46482 }
46483 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46484 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46485 }
46486 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46487 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46488 }
46489 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46490 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46491 }
46492 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46493 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46494 }
46495 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46496 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46497 }
46498 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46499 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46500 }
46501 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46502 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46503 }
46504 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46505 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46506 }
46507 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46508 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46509 }
46510 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46511 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46512 }
46513 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46514 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46515 }
46516 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46517 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46518 }
46519 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46520 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46521 }
46522 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46523 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46524 }
46525 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46526 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46527 }
46528 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46529 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46530 }
46531 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46532 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46533 }
46534 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46535 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46536 }
46537 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46538 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46539 }
46540 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46541 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46542 }
46543 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46544 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46545 }
46546 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46547 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46548 }
46549 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46550 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46551 }
46552 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46553 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46554 }
46555 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46556 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46557 }
46558 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46559 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46560 }
46561 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46562 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46563 }
46564 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46565 return (void *)((wxEvent *) ((wxShowEvent *) x));
46566 }
46567 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46568 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46569 }
46570 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46571 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46572 }
46573 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46574 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46575 }
46576 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46577 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46578 }
46579 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46580 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46581 }
46582 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46583 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46584 }
46585 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46586 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46587 }
46588 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46589 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46590 }
46591 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46592 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46593 }
46594 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46595 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46596 }
46597 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46598 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46599 }
46600 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46601 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46602 }
46603 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46604 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46605 }
46606 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46607 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46608 }
46609 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46610 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46611 }
46612 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46613 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46614 }
46615 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46616 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46617 }
46618 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46619 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46620 }
46621 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46622 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46623 }
46624 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46625 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46626 }
46627 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46628 return (void *)((wxControl *) ((wxPickerBase *) x));
46629 }
46630 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46631 return (void *)((wxControl *) ((wxToggleButton *) x));
46632 }
46633 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46634 return (void *)((wxControl *) ((wxRadioButton *) x));
46635 }
46636 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46637 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46638 }
46639 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46640 return (void *)((wxControl *) ((wxToolBarBase *) x));
46641 }
46642 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46643 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46644 }
46645 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46646 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46647 }
46648 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46649 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46650 }
46651 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46652 return (void *)((wxControl *) ((wxPyControl *) x));
46653 }
46654 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46655 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46656 }
46657 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46658 return (void *)((wxControl *) ((wxScrollBar *) x));
46659 }
46660 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46661 return (void *)((wxControl *) ((wxControlWithItems *) x));
46662 }
46663 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46664 return (void *)((wxControl *) ((wxGauge *) x));
46665 }
46666 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46667 return (void *)((wxControl *) ((wxStaticLine *) x));
46668 }
46669 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46670 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46671 }
46672 static void *_p_wxListbookTo_p_wxControl(void *x) {
46673 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46674 }
46675 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46676 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46677 }
46678 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46679 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46680 }
46681 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46682 return (void *)((wxControl *) ((wxCheckBox *) x));
46683 }
46684 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46685 return (void *)((wxControl *) ((wxRadioBox *) x));
46686 }
46687 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46688 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46689 }
46690 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46691 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46692 }
46693 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46694 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46695 }
46696 static void *_p_wxListViewTo_p_wxControl(void *x) {
46697 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46698 }
46699 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46700 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46701 }
46702 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46703 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46704 }
46705 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46706 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46707 }
46708 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46709 return (void *)((wxControl *) ((wxStaticText *) x));
46710 }
46711 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46712 return (void *)((wxControl *) ((wxStaticBox *) x));
46713 }
46714 static void *_p_wxSliderTo_p_wxControl(void *x) {
46715 return (void *)((wxControl *) ((wxSlider *) x));
46716 }
46717 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46718 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46719 }
46720 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46721 return (void *)((wxControl *) ((wxSpinButton *) x));
46722 }
46723 static void *_p_wxButtonTo_p_wxControl(void *x) {
46724 return (void *)((wxControl *) ((wxButton *) x));
46725 }
46726 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46727 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46728 }
46729 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46730 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46731 }
46732 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46733 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46734 }
46735 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46736 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46737 }
46738 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46739 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46740 }
46741 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46742 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46743 }
46744 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46745 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46746 }
46747 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46748 return (void *)((wxControl *) ((wxTextCtrl *) x));
46749 }
46750 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46751 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46752 }
46753 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
46754 return (void *)((wxChoice *) ((wxComboBox *) x));
46755 }
46756 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46757 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46758 }
46759 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46760 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46761 }
46762 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46763 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46764 }
46765 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46766 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46767 }
46768 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46769 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46770 }
46771 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46772 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46773 }
46774 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46775 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46776 }
46777 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46778 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46779 }
46780 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46781 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46782 }
46783 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46784 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46785 }
46786 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46787 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46788 }
46789 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46790 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46791 }
46792 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46793 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46794 }
46795 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46796 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46797 }
46798 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46799 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46800 }
46801 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46802 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46803 }
46804 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46805 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46806 }
46807 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46808 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46809 }
46810 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46811 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46812 }
46813 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46814 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46815 }
46816 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46817 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46818 }
46819 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46820 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46821 }
46822 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46823 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46824 }
46825 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46826 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46827 }
46828 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46829 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46830 }
46831 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46832 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46833 }
46834 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46835 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46836 }
46837 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46838 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46839 }
46840 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46841 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46842 }
46843 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46844 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46845 }
46846 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46847 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46848 }
46849 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46850 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46851 }
46852 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46853 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46854 }
46855 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46856 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46857 }
46858 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46859 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46860 }
46861 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46862 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46863 }
46864 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46865 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46866 }
46867 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46868 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46869 }
46870 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46871 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46872 }
46873 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46874 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46875 }
46876 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46877 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46878 }
46879 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46880 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46881 }
46882 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46883 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46884 }
46885 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46886 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46887 }
46888 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46889 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46890 }
46891 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46892 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46893 }
46894 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46895 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46896 }
46897 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46898 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46899 }
46900 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46901 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46902 }
46903 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46904 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46905 }
46906 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46907 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46908 }
46909 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46910 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46911 }
46912 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46913 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46914 }
46915 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46916 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46917 }
46918 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46919 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46920 }
46921 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46922 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46923 }
46924 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46925 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46926 }
46927 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46928 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46929 }
46930 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46931 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46932 }
46933 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46934 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46935 }
46936 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46937 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46938 }
46939 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46940 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46941 }
46942 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46943 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46944 }
46945 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46946 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46947 }
46948 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46949 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46950 }
46951 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46952 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46953 }
46954 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46955 return (void *)((wxButton *) ((wxBitmapButton *) x));
46956 }
46957 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46958 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46959 }
46960 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46961 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46962 }
46963 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46964 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46965 }
46966 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46967 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46968 }
46969 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46970 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46971 }
46972 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46973 return (void *)((wxObject *) ((wxSizerItem *) x));
46974 }
46975 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46976 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46977 }
46978 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46979 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46980 }
46981 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46982 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46983 }
46984 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46985 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46986 }
46987 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46988 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46989 }
46990 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46991 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46992 }
46993 static void *_p_wxSizerTo_p_wxObject(void *x) {
46994 return (void *)((wxObject *) ((wxSizer *) x));
46995 }
46996 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46997 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46998 }
46999 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47000 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47001 }
47002 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47003 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47004 }
47005 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47006 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47007 }
47008 static void *_p_wxEventTo_p_wxObject(void *x) {
47009 return (void *)((wxObject *) ((wxEvent *) x));
47010 }
47011 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47012 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47013 }
47014 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47015 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47016 }
47017 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47018 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47019 }
47020 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47021 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47022 }
47023 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47024 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47025 }
47026 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47027 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47028 }
47029 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47030 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47031 }
47032 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47033 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47034 }
47035 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47036 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47037 }
47038 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47039 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47040 }
47041 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47042 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47043 }
47044 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47045 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47046 }
47047 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47048 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47049 }
47050 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47051 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47052 }
47053 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47054 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47055 }
47056 static void *_p_wxControlTo_p_wxObject(void *x) {
47057 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47058 }
47059 static void *_p_wxPyControlTo_p_wxObject(void *x) {
47060 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47061 }
47062 static void *_p_wxGaugeTo_p_wxObject(void *x) {
47063 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47064 }
47065 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47066 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47067 }
47068 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47069 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47070 }
47071 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47072 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47073 }
47074 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47075 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47076 }
47077 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47078 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47079 }
47080 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47081 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47082 }
47083 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47084 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47085 }
47086 static void *_p_wxChoiceTo_p_wxObject(void *x) {
47087 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47088 }
47089 static void *_p_wxFSFileTo_p_wxObject(void *x) {
47090 return (void *)((wxObject *) ((wxFSFile *) x));
47091 }
47092 static void *_p_wxPySizerTo_p_wxObject(void *x) {
47093 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47094 }
47095 static void *_p_wxTreebookTo_p_wxObject(void *x) {
47096 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47097 }
47098 static void *_p_wxListViewTo_p_wxObject(void *x) {
47099 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47100 }
47101 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47102 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47103 }
47104 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47105 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47106 }
47107 static void *_p_wxNotebookTo_p_wxObject(void *x) {
47108 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47109 }
47110 static void *_p_wxPyEventTo_p_wxObject(void *x) {
47111 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47112 }
47113 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47114 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47115 }
47116 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47117 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47118 }
47119 static void *_p_wxListbookTo_p_wxObject(void *x) {
47120 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47121 }
47122 static void *_p_wxShowEventTo_p_wxObject(void *x) {
47123 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47124 }
47125 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47126 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47127 }
47128 static void *_p_wxSliderTo_p_wxObject(void *x) {
47129 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47130 }
47131 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47132 return (void *)((wxObject *) ((wxMenuItem *) x));
47133 }
47134 static void *_p_wxDateEventTo_p_wxObject(void *x) {
47135 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47136 }
47137 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47138 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47139 }
47140 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47141 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47142 }
47143 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47144 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47145 }
47146 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47147 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47148 }
47149 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47150 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47151 }
47152 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47153 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47154 }
47155 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47156 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47157 }
47158 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47159 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47160 }
47161 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47162 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47163 }
47164 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47165 return (void *)((wxObject *) ((wxContextHelp *) x));
47166 }
47167 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47168 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47169 }
47170 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47171 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47172 }
47173 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47174 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47175 }
47176 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47177 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47178 }
47179 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47180 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47181 }
47182 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47183 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47184 }
47185 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47186 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47187 }
47188 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47189 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47190 }
47191 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47192 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47193 }
47194 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47195 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47196 }
47197 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47198 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47199 }
47200 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47201 return (void *)((wxObject *) ((wxImageHandler *) x));
47202 }
47203 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47204 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47205 }
47206 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47207 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47208 }
47209 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47210 return (void *)((wxObject *) ((wxEvtHandler *) x));
47211 }
47212 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47213 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47214 }
47215 static void *_p_wxListEventTo_p_wxObject(void *x) {
47216 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47217 }
47218 static void *_p_wxListBoxTo_p_wxObject(void *x) {
47219 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47220 }
47221 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47222 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47223 }
47224 static void *_p_wxButtonTo_p_wxObject(void *x) {
47225 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47226 }
47227 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47228 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47229 }
47230 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47231 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47232 }
47233 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47234 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47235 }
47236 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47237 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47238 }
47239 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47240 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47241 }
47242 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47243 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47244 }
47245 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47246 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47247 }
47248 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47249 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47250 }
47251 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47252 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47253 }
47254 static void *_p_wxListItemTo_p_wxObject(void *x) {
47255 return (void *)((wxObject *) ((wxListItem *) x));
47256 }
47257 static void *_p_wxImageTo_p_wxObject(void *x) {
47258 return (void *)((wxObject *) ((wxImage *) x));
47259 }
47260 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47261 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47262 }
47263 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47264 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47265 }
47266 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47267 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47268 }
47269 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47270 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47271 }
47272 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47273 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47274 }
47275 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47276 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47277 }
47278 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47279 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47280 }
47281 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47282 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47283 }
47284 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47285 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47286 }
47287 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47288 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47289 }
47290 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47291 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47292 }
47293 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47294 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47295 }
47296 static void *_p_wxWindowTo_p_wxObject(void *x) {
47297 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47298 }
47299 static void *_p_wxMenuTo_p_wxObject(void *x) {
47300 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47301 }
47302 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47303 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47304 }
47305 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47306 return (void *)((wxObject *) ((wxFileSystem *) x));
47307 }
47308 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47309 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47310 }
47311 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47312 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47313 }
47314 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47315 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47316 }
47317 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47318 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47319 }
47320 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47321 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47322 }
47323 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47324 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47325 }
47326 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47327 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47328 }
47329 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47330 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47331 }
47332 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47333 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47334 }
47335 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47336 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47337 }
47338 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47340 }
47341 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47342 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47343 }
47344 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47345 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47346 }
47347 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47348 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47349 }
47350 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47351 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47352 }
47353 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47354 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47355 }
47356 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47357 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47358 }
47359 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47360 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47361 }
47362 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47363 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47364 }
47365 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47366 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47367 }
47368 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47369 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47370 }
47371 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47372 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47373 }
47374 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47375 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47376 }
47377 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47378 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47379 }
47380 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47381 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47382 }
47383 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47384 return (void *)((wxWindow *) ((wxMenuBar *) x));
47385 }
47386 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47387 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47388 }
47389 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47390 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47391 }
47392 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47393 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47394 }
47395 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47396 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47397 }
47398 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47399 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47400 }
47401 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47402 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47403 }
47404 static void *_p_wxControlTo_p_wxWindow(void *x) {
47405 return (void *)((wxWindow *) ((wxControl *) x));
47406 }
47407 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47408 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47409 }
47410 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47411 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47412 }
47413 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47414 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47415 }
47416 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47417 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47418 }
47419 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47420 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47421 }
47422 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47423 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47424 }
47425 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47426 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47427 }
47428 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47429 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47430 }
47431 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47432 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47433 }
47434 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47435 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47436 }
47437 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47438 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47439 }
47440 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47441 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47442 }
47443 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47444 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47445 }
47446 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47447 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47448 }
47449 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47450 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47451 }
47452 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47453 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47454 }
47455 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47456 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47457 }
47458 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47459 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47460 }
47461 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47462 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47463 }
47464 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47465 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47466 }
47467 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47468 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47469 }
47470 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47471 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47472 }
47473 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47474 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47475 }
47476 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47477 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47478 }
47479 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47480 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47481 }
47482 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47483 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47484 }
47485 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47486 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47487 }
47488 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47489 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47490 }
47491 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47492 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47493 }
47494 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47495 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47496 }
47497 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47498 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47499 }
47500 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47501 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47502 }
47503 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47504 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47505 }
47506 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47507 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47508 }
47509 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47510 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47511 }
47512 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47513 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47514 }
47515 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47516 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47517 }
47518 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47519 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47520 }
47521 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47522 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47523 }
47524 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47525 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47526 }
47527 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47528 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47529 }
47530 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47531 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47532 }
47533 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47534 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47535 }
47536 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47537 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47538 }
47539 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47540 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47541 }
47542 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47543 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47544 }
47545 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47546 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47547 }
47548 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47549 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47550 }
47551 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47552 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47553 }
47554 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47555 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47556 }
47557 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47558 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47559 }
47560 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47561 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47562 }
47563 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47564 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47565 }
47566 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47567 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47568 }
47569 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47570 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47571 }
47572 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47573 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47574 }
47575 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47576 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47577 }
47578 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47579 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47580 }
47581 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47582 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47583 }
47584 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47585 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47586 }
47587 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47588 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47589 }
47590 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47591 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47592 }
47593 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47594 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47595 }
47596 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47597 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47598 }
47599 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47600 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47601 }
47602 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47603 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47604 }
47605 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47606 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47607 }
47608 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
47609 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
47610 }
47611 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47612 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47613 }
47614 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47615 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47616 }
47617 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47618 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47619 }
47620 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47621 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47622 }
47623 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47624 return (void *)((wxValidator *) ((wxPyValidator *) x));
47625 }
47626 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47627 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47628 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47629 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47630 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47631 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47632 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47633 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47634 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47635 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47636 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47637 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47638 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47639 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47640 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47641 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47642 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47643 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47644 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47645 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47646 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47647 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47648 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47649 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47650 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47651 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47652 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47653 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47654 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47655 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47656 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47657 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47658 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47659 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47660 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47661 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47662 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47663 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47664 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47665 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47666 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47667 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47668 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47669 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47670 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47671 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47672 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47673 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47674 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47675 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47676 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47677 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47678 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47679 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
47680 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47681 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47682 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47683 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47684 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47685 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47686 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47687 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47688 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47689 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47690 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47691 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47692 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47693 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47694 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47695 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47696 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47697 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47698 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47699 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47700 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47701 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47702 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47703 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47704 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47705 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47706 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47707 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47708 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47709 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47710 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47711 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47712 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47713 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47714 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47715 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47716 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47717 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47718 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47719 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47720 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47721 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47722 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47723 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47724 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47725 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47726 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47727 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47728 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47729 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47730 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47731 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47732 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47733 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47734 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47735 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47736 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47737 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47738 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47739 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47740 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47741 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47742 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47743 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47744 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47745 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47746 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47747 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47748 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47749 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47750 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47751 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47752 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47753 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47754 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47755 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47756 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47757 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47758 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47759 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47760 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47761 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47762 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47763 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47764 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47765 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47766 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47767 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47768 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47769 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47770 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47771 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47772 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47773 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47774 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47775 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47776 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47777 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47778 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47779 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47780 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47781 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47782 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47783 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47784 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47785 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47786 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47787 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47788 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47789 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47790 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47791 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47792 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47793 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47794 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47795 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47796 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47797 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47798 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47799 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47800 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47801
47802 static swig_type_info *swig_type_initial[] = {
47803 &_swigt__p_bool,
47804 &_swigt__p_char,
47805 &_swigt__p_form_ops_t,
47806 &_swigt__p_int,
47807 &_swigt__p_long,
47808 &_swigt__p_unsigned_char,
47809 &_swigt__p_unsigned_int,
47810 &_swigt__p_unsigned_long,
47811 &_swigt__p_void,
47812 &_swigt__p_wxANIHandler,
47813 &_swigt__p_wxAcceleratorTable,
47814 &_swigt__p_wxActivateEvent,
47815 &_swigt__p_wxArrayInt,
47816 &_swigt__p_wxArrayString,
47817 &_swigt__p_wxBMPHandler,
47818 &_swigt__p_wxBitmap,
47819 &_swigt__p_wxBitmapButton,
47820 &_swigt__p_wxBookCtrlBase,
47821 &_swigt__p_wxBookCtrlBaseEvent,
47822 &_swigt__p_wxBoxSizer,
47823 &_swigt__p_wxButton,
47824 &_swigt__p_wxCURHandler,
47825 &_swigt__p_wxCheckBox,
47826 &_swigt__p_wxCheckListBox,
47827 &_swigt__p_wxChildFocusEvent,
47828 &_swigt__p_wxChoice,
47829 &_swigt__p_wxChoicebook,
47830 &_swigt__p_wxChoicebookEvent,
47831 &_swigt__p_wxClipboardTextEvent,
47832 &_swigt__p_wxCloseEvent,
47833 &_swigt__p_wxColour,
47834 &_swigt__p_wxColourPickerCtrl,
47835 &_swigt__p_wxColourPickerEvent,
47836 &_swigt__p_wxComboBox,
47837 &_swigt__p_wxCommandEvent,
47838 &_swigt__p_wxContextHelp,
47839 &_swigt__p_wxContextHelpButton,
47840 &_swigt__p_wxContextMenuEvent,
47841 &_swigt__p_wxControl,
47842 &_swigt__p_wxControlWithItems,
47843 &_swigt__p_wxCursor,
47844 &_swigt__p_wxDC,
47845 &_swigt__p_wxDateEvent,
47846 &_swigt__p_wxDatePickerCtrl,
47847 &_swigt__p_wxDateTime,
47848 &_swigt__p_wxDirFilterListCtrl,
47849 &_swigt__p_wxDirPickerCtrl,
47850 &_swigt__p_wxDisplayChangedEvent,
47851 &_swigt__p_wxDropFilesEvent,
47852 &_swigt__p_wxDuplexMode,
47853 &_swigt__p_wxEraseEvent,
47854 &_swigt__p_wxEvent,
47855 &_swigt__p_wxEvtHandler,
47856 &_swigt__p_wxFSFile,
47857 &_swigt__p_wxFileDirPickerEvent,
47858 &_swigt__p_wxFilePickerCtrl,
47859 &_swigt__p_wxFileSystem,
47860 &_swigt__p_wxFlexGridSizer,
47861 &_swigt__p_wxFocusEvent,
47862 &_swigt__p_wxFont,
47863 &_swigt__p_wxFontPickerCtrl,
47864 &_swigt__p_wxFontPickerEvent,
47865 &_swigt__p_wxGBSizerItem,
47866 &_swigt__p_wxGIFHandler,
47867 &_swigt__p_wxGauge,
47868 &_swigt__p_wxGenericDirCtrl,
47869 &_swigt__p_wxGenericDragImage,
47870 &_swigt__p_wxGridBagSizer,
47871 &_swigt__p_wxGridSizer,
47872 &_swigt__p_wxHelpEvent,
47873 &_swigt__p_wxHelpProvider,
47874 &_swigt__p_wxHyperlinkCtrl,
47875 &_swigt__p_wxHyperlinkEvent,
47876 &_swigt__p_wxICOHandler,
47877 &_swigt__p_wxIcon,
47878 &_swigt__p_wxIconizeEvent,
47879 &_swigt__p_wxIdleEvent,
47880 &_swigt__p_wxImage,
47881 &_swigt__p_wxImageHandler,
47882 &_swigt__p_wxImageList,
47883 &_swigt__p_wxIndividualLayoutConstraint,
47884 &_swigt__p_wxInitDialogEvent,
47885 &_swigt__p_wxItemContainer,
47886 &_swigt__p_wxJPEGHandler,
47887 &_swigt__p_wxKeyEvent,
47888 &_swigt__p_wxLayoutConstraints,
47889 &_swigt__p_wxListBox,
47890 &_swigt__p_wxListEvent,
47891 &_swigt__p_wxListItem,
47892 &_swigt__p_wxListItemAttr,
47893 &_swigt__p_wxListView,
47894 &_swigt__p_wxListbook,
47895 &_swigt__p_wxListbookEvent,
47896 &_swigt__p_wxMaximizeEvent,
47897 &_swigt__p_wxMemoryDC,
47898 &_swigt__p_wxMenu,
47899 &_swigt__p_wxMenuBar,
47900 &_swigt__p_wxMenuEvent,
47901 &_swigt__p_wxMenuItem,
47902 &_swigt__p_wxMouseCaptureChangedEvent,
47903 &_swigt__p_wxMouseCaptureLostEvent,
47904 &_swigt__p_wxMouseEvent,
47905 &_swigt__p_wxMoveEvent,
47906 &_swigt__p_wxNavigationKeyEvent,
47907 &_swigt__p_wxNcPaintEvent,
47908 &_swigt__p_wxNotebook,
47909 &_swigt__p_wxNotebookEvent,
47910 &_swigt__p_wxNotifyEvent,
47911 &_swigt__p_wxObject,
47912 &_swigt__p_wxPCXHandler,
47913 &_swigt__p_wxPNGHandler,
47914 &_swigt__p_wxPNMHandler,
47915 &_swigt__p_wxPaintEvent,
47916 &_swigt__p_wxPaletteChangedEvent,
47917 &_swigt__p_wxPaperSize,
47918 &_swigt__p_wxPickerBase,
47919 &_swigt__p_wxPoint,
47920 &_swigt__p_wxPyApp,
47921 &_swigt__p_wxPyCommandEvent,
47922 &_swigt__p_wxPyControl,
47923 &_swigt__p_wxPyEvent,
47924 &_swigt__p_wxPyImageHandler,
47925 &_swigt__p_wxPyListCtrl,
47926 &_swigt__p_wxPySizer,
47927 &_swigt__p_wxPyTreeCtrl,
47928 &_swigt__p_wxPyTreeItemData,
47929 &_swigt__p_wxPyValidator,
47930 &_swigt__p_wxQueryNewPaletteEvent,
47931 &_swigt__p_wxRadioBox,
47932 &_swigt__p_wxRadioButton,
47933 &_swigt__p_wxRect,
47934 &_swigt__p_wxScrollBar,
47935 &_swigt__p_wxScrollEvent,
47936 &_swigt__p_wxScrollWinEvent,
47937 &_swigt__p_wxSetCursorEvent,
47938 &_swigt__p_wxShowEvent,
47939 &_swigt__p_wxSimpleHelpProvider,
47940 &_swigt__p_wxSize,
47941 &_swigt__p_wxSizeEvent,
47942 &_swigt__p_wxSizer,
47943 &_swigt__p_wxSizerItem,
47944 &_swigt__p_wxSlider,
47945 &_swigt__p_wxSpinButton,
47946 &_swigt__p_wxSpinCtrl,
47947 &_swigt__p_wxSpinEvent,
47948 &_swigt__p_wxStaticBitmap,
47949 &_swigt__p_wxStaticBox,
47950 &_swigt__p_wxStaticBoxSizer,
47951 &_swigt__p_wxStaticLine,
47952 &_swigt__p_wxStaticText,
47953 &_swigt__p_wxStdDialogButtonSizer,
47954 &_swigt__p_wxString,
47955 &_swigt__p_wxSysColourChangedEvent,
47956 &_swigt__p_wxTIFFHandler,
47957 &_swigt__p_wxTextAttr,
47958 &_swigt__p_wxTextCtrl,
47959 &_swigt__p_wxTextUrlEvent,
47960 &_swigt__p_wxToggleButton,
47961 &_swigt__p_wxToolBar,
47962 &_swigt__p_wxToolBarBase,
47963 &_swigt__p_wxToolBarToolBase,
47964 &_swigt__p_wxToolbook,
47965 &_swigt__p_wxToolbookEvent,
47966 &_swigt__p_wxTreeEvent,
47967 &_swigt__p_wxTreeItemId,
47968 &_swigt__p_wxTreebook,
47969 &_swigt__p_wxTreebookEvent,
47970 &_swigt__p_wxUpdateUIEvent,
47971 &_swigt__p_wxValidator,
47972 &_swigt__p_wxVisualAttributes,
47973 &_swigt__p_wxWindow,
47974 &_swigt__p_wxWindowBase,
47975 &_swigt__p_wxWindowCreateEvent,
47976 &_swigt__p_wxWindowDestroyEvent,
47977 &_swigt__p_wxXPMHandler,
47978 };
47979
47980 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47981 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47982 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47983 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47984 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47985 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47986 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47987 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47988 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47989 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47990 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47991 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47992 static swig_cast_info _swigc__p_wxBitmapButton[] = { {&_swigt__p_wxBitmapButton, 0, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0},{0, 0, 0, 0}};
47993 static swig_cast_info _swigc__p_wxBookCtrlBase[] = { {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxBookCtrlBase, 0, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0},{0, 0, 0, 0}};
47994 static swig_cast_info _swigc__p_wxBookCtrlBaseEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, 0, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxBookCtrlBaseEvent, 0, 0},{0, 0, 0, 0}};
47995 static swig_cast_info _swigc__p_wxButton[] = { {&_swigt__p_wxButton, 0, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxButton, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxButton, 0, 0},{0, 0, 0, 0}};
47996 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47997 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47998 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
47999 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48000 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48001 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
48002 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48003 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48004 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48005 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
48006 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
48007 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48008 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48009 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48010 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48011 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48012 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48013 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
48014 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
48015 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48016 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
48017 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
48018 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
48019 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48020 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48021 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48022 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48023 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
48024 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48025 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48026 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48027 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48028 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48029 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48030 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48031 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
48032 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
48033 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48034 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48035 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48036 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48037 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48038 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
48039 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
48040 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48041 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48042 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48043 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48044 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48045 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48046 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48047 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48048 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48049 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48050 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
48051 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_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 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_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxHyperlinkEvent, _p_wxHyperlinkEventTo_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_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_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
48052 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48053 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48054 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48055 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
48056 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
48057 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48058 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48059 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
48060 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48061 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48062 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48063 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48064 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48065 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48066 static swig_cast_info _swigc__p_wxHelpProvider[] = { {&_swigt__p_wxHelpProvider, 0, 0, 0}, {&_swigt__p_wxSimpleHelpProvider, _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0},{0, 0, 0, 0}};
48067 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48068 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
48069 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48070 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48071 static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}};
48072 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48073 static swig_cast_info _swigc__p_wxListBox[] = { {&_swigt__p_wxListBox, 0, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxListBox, 0, 0},{0, 0, 0, 0}};
48074 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48075 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48076 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48077 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48078 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48079 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48080 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48081 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48082 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48083 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48084 static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
48085 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
48086 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48087 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48088 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48089 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48090 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48091 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48092 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48093 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48094 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48095 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48096 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48097 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
48098 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48099 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48100 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48101 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48102 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
48103 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48104 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48105 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48106 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
48107 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48108 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48109 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48110 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
48111 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
48112 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
48113 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48114 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
48115 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_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_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_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_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_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_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_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_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_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_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_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
48116 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
48117 static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
48118 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48119 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48120 static swig_cast_info _swigc__p_wxPyListCtrl[] = { {&_swigt__p_wxPyListCtrl, 0, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxPyListCtrl, 0, 0},{0, 0, 0, 0}};
48121 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48122 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48123 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48124 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48125 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48126 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48127 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48128 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48129 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48130 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48131 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48132 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48133 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48134 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48135 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48136 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48137 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48138 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48139 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48140 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48141 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48142 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48143 static swig_cast_info _swigc__p_wxToolBarBase[] = { {&_swigt__p_wxToolBarBase, 0, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxToolBarBase, 0, 0},{0, 0, 0, 0}};
48144 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48145 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48146 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48147 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48148 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48149 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48150 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48151 static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}};
48152 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
48153 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
48154 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
48155
48156 static swig_cast_info *swig_cast_initial[] = {
48157 _swigc__p_bool,
48158 _swigc__p_char,
48159 _swigc__p_form_ops_t,
48160 _swigc__p_int,
48161 _swigc__p_long,
48162 _swigc__p_unsigned_char,
48163 _swigc__p_unsigned_int,
48164 _swigc__p_unsigned_long,
48165 _swigc__p_void,
48166 _swigc__p_wxANIHandler,
48167 _swigc__p_wxAcceleratorTable,
48168 _swigc__p_wxActivateEvent,
48169 _swigc__p_wxArrayInt,
48170 _swigc__p_wxArrayString,
48171 _swigc__p_wxBMPHandler,
48172 _swigc__p_wxBitmap,
48173 _swigc__p_wxBitmapButton,
48174 _swigc__p_wxBookCtrlBase,
48175 _swigc__p_wxBookCtrlBaseEvent,
48176 _swigc__p_wxBoxSizer,
48177 _swigc__p_wxButton,
48178 _swigc__p_wxCURHandler,
48179 _swigc__p_wxCheckBox,
48180 _swigc__p_wxCheckListBox,
48181 _swigc__p_wxChildFocusEvent,
48182 _swigc__p_wxChoice,
48183 _swigc__p_wxChoicebook,
48184 _swigc__p_wxChoicebookEvent,
48185 _swigc__p_wxClipboardTextEvent,
48186 _swigc__p_wxCloseEvent,
48187 _swigc__p_wxColour,
48188 _swigc__p_wxColourPickerCtrl,
48189 _swigc__p_wxColourPickerEvent,
48190 _swigc__p_wxComboBox,
48191 _swigc__p_wxCommandEvent,
48192 _swigc__p_wxContextHelp,
48193 _swigc__p_wxContextHelpButton,
48194 _swigc__p_wxContextMenuEvent,
48195 _swigc__p_wxControl,
48196 _swigc__p_wxControlWithItems,
48197 _swigc__p_wxCursor,
48198 _swigc__p_wxDC,
48199 _swigc__p_wxDateEvent,
48200 _swigc__p_wxDatePickerCtrl,
48201 _swigc__p_wxDateTime,
48202 _swigc__p_wxDirFilterListCtrl,
48203 _swigc__p_wxDirPickerCtrl,
48204 _swigc__p_wxDisplayChangedEvent,
48205 _swigc__p_wxDropFilesEvent,
48206 _swigc__p_wxDuplexMode,
48207 _swigc__p_wxEraseEvent,
48208 _swigc__p_wxEvent,
48209 _swigc__p_wxEvtHandler,
48210 _swigc__p_wxFSFile,
48211 _swigc__p_wxFileDirPickerEvent,
48212 _swigc__p_wxFilePickerCtrl,
48213 _swigc__p_wxFileSystem,
48214 _swigc__p_wxFlexGridSizer,
48215 _swigc__p_wxFocusEvent,
48216 _swigc__p_wxFont,
48217 _swigc__p_wxFontPickerCtrl,
48218 _swigc__p_wxFontPickerEvent,
48219 _swigc__p_wxGBSizerItem,
48220 _swigc__p_wxGIFHandler,
48221 _swigc__p_wxGauge,
48222 _swigc__p_wxGenericDirCtrl,
48223 _swigc__p_wxGenericDragImage,
48224 _swigc__p_wxGridBagSizer,
48225 _swigc__p_wxGridSizer,
48226 _swigc__p_wxHelpEvent,
48227 _swigc__p_wxHelpProvider,
48228 _swigc__p_wxHyperlinkCtrl,
48229 _swigc__p_wxHyperlinkEvent,
48230 _swigc__p_wxICOHandler,
48231 _swigc__p_wxIcon,
48232 _swigc__p_wxIconizeEvent,
48233 _swigc__p_wxIdleEvent,
48234 _swigc__p_wxImage,
48235 _swigc__p_wxImageHandler,
48236 _swigc__p_wxImageList,
48237 _swigc__p_wxIndividualLayoutConstraint,
48238 _swigc__p_wxInitDialogEvent,
48239 _swigc__p_wxItemContainer,
48240 _swigc__p_wxJPEGHandler,
48241 _swigc__p_wxKeyEvent,
48242 _swigc__p_wxLayoutConstraints,
48243 _swigc__p_wxListBox,
48244 _swigc__p_wxListEvent,
48245 _swigc__p_wxListItem,
48246 _swigc__p_wxListItemAttr,
48247 _swigc__p_wxListView,
48248 _swigc__p_wxListbook,
48249 _swigc__p_wxListbookEvent,
48250 _swigc__p_wxMaximizeEvent,
48251 _swigc__p_wxMemoryDC,
48252 _swigc__p_wxMenu,
48253 _swigc__p_wxMenuBar,
48254 _swigc__p_wxMenuEvent,
48255 _swigc__p_wxMenuItem,
48256 _swigc__p_wxMouseCaptureChangedEvent,
48257 _swigc__p_wxMouseCaptureLostEvent,
48258 _swigc__p_wxMouseEvent,
48259 _swigc__p_wxMoveEvent,
48260 _swigc__p_wxNavigationKeyEvent,
48261 _swigc__p_wxNcPaintEvent,
48262 _swigc__p_wxNotebook,
48263 _swigc__p_wxNotebookEvent,
48264 _swigc__p_wxNotifyEvent,
48265 _swigc__p_wxObject,
48266 _swigc__p_wxPCXHandler,
48267 _swigc__p_wxPNGHandler,
48268 _swigc__p_wxPNMHandler,
48269 _swigc__p_wxPaintEvent,
48270 _swigc__p_wxPaletteChangedEvent,
48271 _swigc__p_wxPaperSize,
48272 _swigc__p_wxPickerBase,
48273 _swigc__p_wxPoint,
48274 _swigc__p_wxPyApp,
48275 _swigc__p_wxPyCommandEvent,
48276 _swigc__p_wxPyControl,
48277 _swigc__p_wxPyEvent,
48278 _swigc__p_wxPyImageHandler,
48279 _swigc__p_wxPyListCtrl,
48280 _swigc__p_wxPySizer,
48281 _swigc__p_wxPyTreeCtrl,
48282 _swigc__p_wxPyTreeItemData,
48283 _swigc__p_wxPyValidator,
48284 _swigc__p_wxQueryNewPaletteEvent,
48285 _swigc__p_wxRadioBox,
48286 _swigc__p_wxRadioButton,
48287 _swigc__p_wxRect,
48288 _swigc__p_wxScrollBar,
48289 _swigc__p_wxScrollEvent,
48290 _swigc__p_wxScrollWinEvent,
48291 _swigc__p_wxSetCursorEvent,
48292 _swigc__p_wxShowEvent,
48293 _swigc__p_wxSimpleHelpProvider,
48294 _swigc__p_wxSize,
48295 _swigc__p_wxSizeEvent,
48296 _swigc__p_wxSizer,
48297 _swigc__p_wxSizerItem,
48298 _swigc__p_wxSlider,
48299 _swigc__p_wxSpinButton,
48300 _swigc__p_wxSpinCtrl,
48301 _swigc__p_wxSpinEvent,
48302 _swigc__p_wxStaticBitmap,
48303 _swigc__p_wxStaticBox,
48304 _swigc__p_wxStaticBoxSizer,
48305 _swigc__p_wxStaticLine,
48306 _swigc__p_wxStaticText,
48307 _swigc__p_wxStdDialogButtonSizer,
48308 _swigc__p_wxString,
48309 _swigc__p_wxSysColourChangedEvent,
48310 _swigc__p_wxTIFFHandler,
48311 _swigc__p_wxTextAttr,
48312 _swigc__p_wxTextCtrl,
48313 _swigc__p_wxTextUrlEvent,
48314 _swigc__p_wxToggleButton,
48315 _swigc__p_wxToolBar,
48316 _swigc__p_wxToolBarBase,
48317 _swigc__p_wxToolBarToolBase,
48318 _swigc__p_wxToolbook,
48319 _swigc__p_wxToolbookEvent,
48320 _swigc__p_wxTreeEvent,
48321 _swigc__p_wxTreeItemId,
48322 _swigc__p_wxTreebook,
48323 _swigc__p_wxTreebookEvent,
48324 _swigc__p_wxUpdateUIEvent,
48325 _swigc__p_wxValidator,
48326 _swigc__p_wxVisualAttributes,
48327 _swigc__p_wxWindow,
48328 _swigc__p_wxWindowBase,
48329 _swigc__p_wxWindowCreateEvent,
48330 _swigc__p_wxWindowDestroyEvent,
48331 _swigc__p_wxXPMHandler,
48332 };
48333
48334
48335 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48336
48337 static swig_const_info swig_const_table[] = {
48338 {0, 0, 0, 0.0, 0, 0}};
48339
48340 #ifdef __cplusplus
48341 }
48342 #endif
48343 /* -----------------------------------------------------------------------------
48344 * Type initialization:
48345 * This problem is tough by the requirement that no dynamic
48346 * memory is used. Also, since swig_type_info structures store pointers to
48347 * swig_cast_info structures and swig_cast_info structures store pointers back
48348 * to swig_type_info structures, we need some lookup code at initialization.
48349 * The idea is that swig generates all the structures that are needed.
48350 * The runtime then collects these partially filled structures.
48351 * The SWIG_InitializeModule function takes these initial arrays out of
48352 * swig_module, and does all the lookup, filling in the swig_module.types
48353 * array with the correct data and linking the correct swig_cast_info
48354 * structures together.
48355 *
48356 * The generated swig_type_info structures are assigned staticly to an initial
48357 * array. We just loop though that array, and handle each type individually.
48358 * First we lookup if this type has been already loaded, and if so, use the
48359 * loaded structure instead of the generated one. Then we have to fill in the
48360 * cast linked list. The cast data is initially stored in something like a
48361 * two-dimensional array. Each row corresponds to a type (there are the same
48362 * number of rows as there are in the swig_type_initial array). Each entry in
48363 * a column is one of the swig_cast_info structures for that type.
48364 * The cast_initial array is actually an array of arrays, because each row has
48365 * a variable number of columns. So to actually build the cast linked list,
48366 * we find the array of casts associated with the type, and loop through it
48367 * adding the casts to the list. The one last trick we need to do is making
48368 * sure the type pointer in the swig_cast_info struct is correct.
48369 *
48370 * First off, we lookup the cast->type name to see if it is already loaded.
48371 * There are three cases to handle:
48372 * 1) If the cast->type has already been loaded AND the type we are adding
48373 * casting info to has not been loaded (it is in this module), THEN we
48374 * replace the cast->type pointer with the type pointer that has already
48375 * been loaded.
48376 * 2) If BOTH types (the one we are adding casting info to, and the
48377 * cast->type) are loaded, THEN the cast info has already been loaded by
48378 * the previous module so we just ignore it.
48379 * 3) Finally, if cast->type has not already been loaded, then we add that
48380 * swig_cast_info to the linked list (because the cast->type) pointer will
48381 * be correct.
48382 * ----------------------------------------------------------------------------- */
48383
48384 #ifdef __cplusplus
48385 extern "C" {
48386 #if 0
48387 } /* c-mode */
48388 #endif
48389 #endif
48390
48391 #if 0
48392 #define SWIGRUNTIME_DEBUG
48393 #endif
48394
48395 SWIGRUNTIME void
48396 SWIG_InitializeModule(void *clientdata) {
48397 size_t i;
48398 swig_module_info *module_head;
48399 static int init_run = 0;
48400
48401 clientdata = clientdata;
48402
48403 if (init_run) return;
48404 init_run = 1;
48405
48406 /* Initialize the swig_module */
48407 swig_module.type_initial = swig_type_initial;
48408 swig_module.cast_initial = swig_cast_initial;
48409
48410 /* Try and load any already created modules */
48411 module_head = SWIG_GetModule(clientdata);
48412 if (module_head) {
48413 swig_module.next = module_head->next;
48414 module_head->next = &swig_module;
48415 } else {
48416 /* This is the first module loaded */
48417 swig_module.next = &swig_module;
48418 SWIG_SetModule(clientdata, &swig_module);
48419 }
48420
48421 /* Now work on filling in swig_module.types */
48422 #ifdef SWIGRUNTIME_DEBUG
48423 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48424 #endif
48425 for (i = 0; i < swig_module.size; ++i) {
48426 swig_type_info *type = 0;
48427 swig_type_info *ret;
48428 swig_cast_info *cast;
48429
48430 #ifdef SWIGRUNTIME_DEBUG
48431 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48432 #endif
48433
48434 /* if there is another module already loaded */
48435 if (swig_module.next != &swig_module) {
48436 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48437 }
48438 if (type) {
48439 /* Overwrite clientdata field */
48440 #ifdef SWIGRUNTIME_DEBUG
48441 printf("SWIG_InitializeModule: found type %s\n", type->name);
48442 #endif
48443 if (swig_module.type_initial[i]->clientdata) {
48444 type->clientdata = swig_module.type_initial[i]->clientdata;
48445 #ifdef SWIGRUNTIME_DEBUG
48446 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48447 #endif
48448 }
48449 } else {
48450 type = swig_module.type_initial[i];
48451 }
48452
48453 /* Insert casting types */
48454 cast = swig_module.cast_initial[i];
48455 while (cast->type) {
48456 /* Don't need to add information already in the list */
48457 ret = 0;
48458 #ifdef SWIGRUNTIME_DEBUG
48459 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48460 #endif
48461 if (swig_module.next != &swig_module) {
48462 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48463 #ifdef SWIGRUNTIME_DEBUG
48464 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48465 #endif
48466 }
48467 if (ret) {
48468 if (type == swig_module.type_initial[i]) {
48469 #ifdef SWIGRUNTIME_DEBUG
48470 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48471 #endif
48472 cast->type = ret;
48473 ret = 0;
48474 } else {
48475 /* Check for casting already in the list */
48476 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48477 #ifdef SWIGRUNTIME_DEBUG
48478 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48479 #endif
48480 if (!ocast) ret = 0;
48481 }
48482 }
48483
48484 if (!ret) {
48485 #ifdef SWIGRUNTIME_DEBUG
48486 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48487 #endif
48488 if (type->cast) {
48489 type->cast->prev = cast;
48490 cast->next = type->cast;
48491 }
48492 type->cast = cast;
48493 }
48494 cast++;
48495 }
48496 /* Set entry in modules->types array equal to the type */
48497 swig_module.types[i] = type;
48498 }
48499 swig_module.types[i] = 0;
48500
48501 #ifdef SWIGRUNTIME_DEBUG
48502 printf("**** SWIG_InitializeModule: Cast List ******\n");
48503 for (i = 0; i < swig_module.size; ++i) {
48504 int j = 0;
48505 swig_cast_info *cast = swig_module.cast_initial[i];
48506 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48507 while (cast->type) {
48508 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48509 cast++;
48510 ++j;
48511 }
48512 printf("---- Total casts: %d\n",j);
48513 }
48514 printf("**** SWIG_InitializeModule: Cast List ******\n");
48515 #endif
48516 }
48517
48518 /* This function will propagate the clientdata field of type to
48519 * any new swig_type_info structures that have been added into the list
48520 * of equivalent types. It is like calling
48521 * SWIG_TypeClientData(type, clientdata) a second time.
48522 */
48523 SWIGRUNTIME void
48524 SWIG_PropagateClientData(void) {
48525 size_t i;
48526 swig_cast_info *equiv;
48527 static int init_run = 0;
48528
48529 if (init_run) return;
48530 init_run = 1;
48531
48532 for (i = 0; i < swig_module.size; i++) {
48533 if (swig_module.types[i]->clientdata) {
48534 equiv = swig_module.types[i]->cast;
48535 while (equiv) {
48536 if (!equiv->converter) {
48537 if (equiv->type && !equiv->type->clientdata)
48538 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48539 }
48540 equiv = equiv->next;
48541 }
48542 }
48543 }
48544 }
48545
48546 #ifdef __cplusplus
48547 #if 0
48548 {
48549 /* c-mode */
48550 #endif
48551 }
48552 #endif
48553
48554
48555
48556 #ifdef __cplusplus
48557 extern "C" {
48558 #endif
48559
48560 /* Python-specific SWIG API */
48561 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48562 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48563 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48564
48565 /* -----------------------------------------------------------------------------
48566 * global variable support code.
48567 * ----------------------------------------------------------------------------- */
48568
48569 typedef struct swig_globalvar {
48570 char *name; /* Name of global variable */
48571 PyObject *(*get_attr)(void); /* Return the current value */
48572 int (*set_attr)(PyObject *); /* Set the value */
48573 struct swig_globalvar *next;
48574 } swig_globalvar;
48575
48576 typedef struct swig_varlinkobject {
48577 PyObject_HEAD
48578 swig_globalvar *vars;
48579 } swig_varlinkobject;
48580
48581 SWIGINTERN PyObject *
48582 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48583 return PyString_FromString("<Swig global variables>");
48584 }
48585
48586 SWIGINTERN PyObject *
48587 swig_varlink_str(swig_varlinkobject *v) {
48588 PyObject *str = PyString_FromString("(");
48589 swig_globalvar *var;
48590 for (var = v->vars; var; var=var->next) {
48591 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48592 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48593 }
48594 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48595 return str;
48596 }
48597
48598 SWIGINTERN int
48599 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48600 PyObject *str = swig_varlink_str(v);
48601 fprintf(fp,"Swig global variables ");
48602 fprintf(fp,"%s\n", PyString_AsString(str));
48603 Py_DECREF(str);
48604 return 0;
48605 }
48606
48607 SWIGINTERN void
48608 swig_varlink_dealloc(swig_varlinkobject *v) {
48609 swig_globalvar *var = v->vars;
48610 while (var) {
48611 swig_globalvar *n = var->next;
48612 free(var->name);
48613 free(var);
48614 var = n;
48615 }
48616 }
48617
48618 SWIGINTERN PyObject *
48619 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48620 PyObject *res = NULL;
48621 swig_globalvar *var = v->vars;
48622 while (var) {
48623 if (strcmp(var->name,n) == 0) {
48624 res = (*var->get_attr)();
48625 break;
48626 }
48627 var = var->next;
48628 }
48629 if (res == NULL && !PyErr_Occurred()) {
48630 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48631 }
48632 return res;
48633 }
48634
48635 SWIGINTERN int
48636 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48637 int res = 1;
48638 swig_globalvar *var = v->vars;
48639 while (var) {
48640 if (strcmp(var->name,n) == 0) {
48641 res = (*var->set_attr)(p);
48642 break;
48643 }
48644 var = var->next;
48645 }
48646 if (res == 1 && !PyErr_Occurred()) {
48647 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48648 }
48649 return res;
48650 }
48651
48652 SWIGINTERN PyTypeObject*
48653 swig_varlink_type(void) {
48654 static char varlink__doc__[] = "Swig var link object";
48655 static PyTypeObject varlink_type;
48656 static int type_init = 0;
48657 if (!type_init) {
48658 const PyTypeObject tmp
48659 = {
48660 PyObject_HEAD_INIT(NULL)
48661 0, /* Number of items in variable part (ob_size) */
48662 (char *)"swigvarlink", /* Type name (tp_name) */
48663 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48664 0, /* Itemsize (tp_itemsize) */
48665 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48666 (printfunc) swig_varlink_print, /* Print (tp_print) */
48667 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48668 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48669 0, /* tp_compare */
48670 (reprfunc) swig_varlink_repr, /* tp_repr */
48671 0, /* tp_as_number */
48672 0, /* tp_as_sequence */
48673 0, /* tp_as_mapping */
48674 0, /* tp_hash */
48675 0, /* tp_call */
48676 (reprfunc)swig_varlink_str, /* tp_str */
48677 0, /* tp_getattro */
48678 0, /* tp_setattro */
48679 0, /* tp_as_buffer */
48680 0, /* tp_flags */
48681 varlink__doc__, /* tp_doc */
48682 0, /* tp_traverse */
48683 0, /* tp_clear */
48684 0, /* tp_richcompare */
48685 0, /* tp_weaklistoffset */
48686 #if PY_VERSION_HEX >= 0x02020000
48687 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48688 #endif
48689 #if PY_VERSION_HEX >= 0x02030000
48690 0, /* tp_del */
48691 #endif
48692 #ifdef COUNT_ALLOCS
48693 0,0,0,0 /* tp_alloc -> tp_next */
48694 #endif
48695 };
48696 varlink_type = tmp;
48697 varlink_type.ob_type = &PyType_Type;
48698 type_init = 1;
48699 }
48700 return &varlink_type;
48701 }
48702
48703 /* Create a variable linking object for use later */
48704 SWIGINTERN PyObject *
48705 SWIG_Python_newvarlink(void) {
48706 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48707 if (result) {
48708 result->vars = 0;
48709 }
48710 return ((PyObject*) result);
48711 }
48712
48713 SWIGINTERN void
48714 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48715 swig_varlinkobject *v = (swig_varlinkobject *) p;
48716 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48717 if (gv) {
48718 size_t size = strlen(name)+1;
48719 gv->name = (char *)malloc(size);
48720 if (gv->name) {
48721 strncpy(gv->name,name,size);
48722 gv->get_attr = get_attr;
48723 gv->set_attr = set_attr;
48724 gv->next = v->vars;
48725 }
48726 }
48727 v->vars = gv;
48728 }
48729
48730 SWIGINTERN PyObject *
48731 SWIG_globals() {
48732 static PyObject *_SWIG_globals = 0;
48733 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48734 return _SWIG_globals;
48735 }
48736
48737 /* -----------------------------------------------------------------------------
48738 * constants/methods manipulation
48739 * ----------------------------------------------------------------------------- */
48740
48741 /* Install Constants */
48742 SWIGINTERN void
48743 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48744 PyObject *obj = 0;
48745 size_t i;
48746 for (i = 0; constants[i].type; ++i) {
48747 switch(constants[i].type) {
48748 case SWIG_PY_POINTER:
48749 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48750 break;
48751 case SWIG_PY_BINARY:
48752 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48753 break;
48754 default:
48755 obj = 0;
48756 break;
48757 }
48758 if (obj) {
48759 PyDict_SetItemString(d, constants[i].name, obj);
48760 Py_DECREF(obj);
48761 }
48762 }
48763 }
48764
48765 /* -----------------------------------------------------------------------------*/
48766 /* Fix SwigMethods to carry the callback ptrs when needed */
48767 /* -----------------------------------------------------------------------------*/
48768
48769 SWIGINTERN void
48770 SWIG_Python_FixMethods(PyMethodDef *methods,
48771 swig_const_info *const_table,
48772 swig_type_info **types,
48773 swig_type_info **types_initial) {
48774 size_t i;
48775 for (i = 0; methods[i].ml_name; ++i) {
48776 const char *c = methods[i].ml_doc;
48777 if (c && (c = strstr(c, "swig_ptr: "))) {
48778 int j;
48779 swig_const_info *ci = 0;
48780 const char *name = c + 10;
48781 for (j = 0; const_table[j].type; ++j) {
48782 if (strncmp(const_table[j].name, name,
48783 strlen(const_table[j].name)) == 0) {
48784 ci = &(const_table[j]);
48785 break;
48786 }
48787 }
48788 if (ci) {
48789 size_t shift = (ci->ptype) - types;
48790 swig_type_info *ty = types_initial[shift];
48791 size_t ldoc = (c - methods[i].ml_doc);
48792 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48793 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48794 if (ndoc) {
48795 char *buff = ndoc;
48796 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48797 if (ptr) {
48798 strncpy(buff, methods[i].ml_doc, ldoc);
48799 buff += ldoc;
48800 strncpy(buff, "swig_ptr: ", 10);
48801 buff += 10;
48802 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48803 methods[i].ml_doc = ndoc;
48804 }
48805 }
48806 }
48807 }
48808 }
48809 }
48810
48811 #ifdef __cplusplus
48812 }
48813 #endif
48814
48815 /* -----------------------------------------------------------------------------*
48816 * Partial Init method
48817 * -----------------------------------------------------------------------------*/
48818
48819 #ifdef __cplusplus
48820 extern "C"
48821 #endif
48822 SWIGEXPORT void SWIG_init(void) {
48823 PyObject *m, *d;
48824
48825 /* Fix SwigMethods to carry the callback ptrs when needed */
48826 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48827
48828 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48829 d = PyModule_GetDict(m);
48830
48831 SWIG_InitializeModule(0);
48832 SWIG_InstallConstants(d,swig_const_table);
48833
48834
48835 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48836 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48837 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48838 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48839 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48840 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48841 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48842 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48843 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48844 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48845 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48846 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48847 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48848 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48849 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48850 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48851 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48852 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48853 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48854 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48855 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48856 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48857 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48858 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48859 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48860 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48861 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48862 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48863 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48864 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48865 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48866 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48867 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48868 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48869 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48870 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48871 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48872 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48873 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48874 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48875 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48876 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48877 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48878 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48879 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48880 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48881 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48882 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48883 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48884 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48885 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48886 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48887 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48888 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48889 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48890 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48891 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48892 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48893 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48894 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48895 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48896 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48897 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48898 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48899 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48900 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48901 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48902 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48903 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48904 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48905 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48906 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48907 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48908 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48909 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48910 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48911 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48912 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48913 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48914 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48915 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48916 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48917 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48918 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48919 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48920 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48921 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48922 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48923 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48924 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48925 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48926 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48927 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48928 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48929 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48930 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48931 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48932 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48933 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48934 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48935 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48936 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48937 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48938 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48939 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48940 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48941 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48942 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48943 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48944 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48945 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48946 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48947 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48948 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
48949 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48950 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48951 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48952 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48953 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48954 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48955 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48956 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48957 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48958 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48959 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48960 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48961 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48962 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48963 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48964 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48965 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48966 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48967 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48968 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48969 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48970 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48971 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48972 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48973 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48974 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48975 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48976 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48977 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48978 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48979 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48980 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48981 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48982 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48983 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48984 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48985 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48986 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48987 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48988 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48989 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48990 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48991 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48992 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48993 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48994 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48995 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48996 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48997 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48998 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
48999 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
49000 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49001 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49002 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49003 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49004 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49005 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49006 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49007 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49008 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49009 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49010 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49011 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49012 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49013 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49014 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49015 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49016 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49017 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49018 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49019 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49020 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49021 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49022 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49023 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49024 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49025 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49026 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49027 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49028 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49029 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49030 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49031 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49032 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49033 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49034 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49035 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49036 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49037 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49038 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49039 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49040 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49041 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49042 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49043 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49044 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49045 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49046 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
49047 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
49048 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49049 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49050 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49051 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49052 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49053 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49054 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49055 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49056 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49057 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49058 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49059 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49060 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49061 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49062 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49063 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49064 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49065 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49066 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49067 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49068 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49069 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49070 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49071 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49072 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49073 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49074 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49075 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49076 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49077 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49078 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49079 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49080 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49081 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49082 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49083 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49084 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49085 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49086 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49087 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49088 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49089 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49090
49091 // Map renamed classes back to their common name for OOR
49092 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49093
49094 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49095 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49096 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49097 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49098 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49099 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49100 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49101 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49102 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49103 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49104 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49105 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49106 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49107 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49108 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
49109 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49110 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49111 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49112 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49113 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49114 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49115 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49116 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49117 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49118 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49119 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49120 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49121 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49122 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49123 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49124 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49125 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49126 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49127 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49128 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49129 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49130 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49131 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49132 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49133 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49134 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49135 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49136 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49137 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49138 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49139 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49140 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49141 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49142 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49143 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49144 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49145 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49146 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49147 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49148 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
49149 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
49150
49151 // Map renamed classes back to their common name for OOR
49152 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49153 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49154
49155 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49156 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49157 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49158 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49159 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49160 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
49161 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49162 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
49163 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49164 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49165 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
49166
49167 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49168
49169 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49170 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49171 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49172 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49173 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49174 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
49175 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49176 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
49177 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49178 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
49179 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49180 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49181 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49182 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49183 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49184 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49185 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49186 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49187 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49188 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49189 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49190 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49191 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49192 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49193 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49194 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49195 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49196 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49197 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49198 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49199 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49200 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49201 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49202 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49203 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49204 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49205 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49206 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49207 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49208 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
49209 }
49210